@aiquants/html-to-markdown 0.5.0 → 0.5.2

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 +1 @@
1
- const e=new(require("happy-dom").Window);Object.assign(global,{document:e.document,window:e,self:e});const t=require("playwright"),n={"ja-JP":{error_url_required:"エラー: 変換対象のURLを引数で指定してください。",error_url_or_html_required:"エラー: URLまたはHTMLコンテンツのいずれかを指定してください。",usage:"使用法: node dist/main.js <URL> [--output <ファイルパス>] [--locale <ロケール>] [--html-content <HTMLテキスト>]",example:"例: node dist/main.js https://ja.wikipedia.org/wiki/Node.js -o output.md --locale ja-JP\n または: node dist/main.js --html-content '<html><body><h1>タイトル</h1></body></html>' -o output.md",cli_start:"🚀 コマンドラインから処理を開始します...",cli_url:" - URL: {url}",cli_html_content:" - HTML Content: {length} 文字",cli_locale:" - Locale: {locale}",cli_output:" - Output: {path}",success_save:"✅ Markdownファイルが正常に保存されました。",success_path:" -> {path}",error_app:"❌ アプリケーションの実行中にエラーが発生しました。",playwright_launch:"🚀 Playwrightでブラウザを起動中...",playwright_goto:"📄 {url} にアクセス中... (ロケール: {locale})",playwright_get_content:"HTMLコンテンツを取得中...",playwright_close:"✅ ブラウザを閉じました。",playwright_error:"PlaywrightでのHTML取得中にエラーが発生しました:",convert_start:"🔄 HTMLからMarkdownへの変換を開始...",convert_success:"✅ Markdown変換が完了しました。",url_parse_error:"URLのパースに失敗しました:"},"en-US":{error_url_required:"Error: Please specify the URL to convert as an argument.",error_url_or_html_required:"Error: Please specify either a URL or HTML content.",usage:"Usage: node dist/main.js <URL> [--output <file path>] [--locale <locale>] [--html-content <HTML text>]",example:"Example: node dist/main.js https://en.wikipedia.org/wiki/Node.js -o output.md --locale en-US\n or: node dist/main.js --html-content '<html><body><h1>Title</h1></body></html>' -o output.md",cli_start:"🚀 Starting process from command line...",cli_url:" - URL: {url}",cli_html_content:" - HTML Content: {length} characters",cli_locale:" - Locale: {locale}",cli_output:" - Output: {path}",success_save:"✅ Markdown file saved successfully.",success_path:" -> {path}",error_app:"❌ An error occurred during application execution.",playwright_launch:"🚀 Launching browser with Playwright...",playwright_goto:"📄 Accessing {url}... (Locale: {locale})",playwright_get_content:"Fetching HTML content...",playwright_close:"✅ Browser closed.",playwright_error:"An error occurred while fetching HTML with Playwright:",convert_start:"🔄 Starting HTML to Markdown conversion...",convert_success:"✅ Markdown conversion completed.",url_parse_error:"Failed to parse URL:"}},r=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,a=Object.hasOwnProperty;class o{constructor(){this.occurrences,this.reset()}slug(e,t){const n=this;let o=function(e,t){if("string"!=typeof e)return"";t||(e=e.toLowerCase());return e.replace(r,"").replace(/ /g,"-")}(e,!0===t);const i=o;for(;a.call(n.occurrences,o);)n.occurrences[i]++,o=i+"-"+n.occurrences[i];return n.occurrences[o]=0,o}reset(){this.occurrences=Object.create(null)}}const i=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];let s=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};function l(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new s(n,r,t)}function c(e){return e.toLowerCase()}s.prototype.normal={},s.prototype.property={},s.prototype.space=void 0;let u=class{constructor(e,t){this.attribute=t,this.property=e}};u.prototype.attribute="",u.prototype.booleanish=!1,u.prototype.boolean=!1,u.prototype.commaOrSpaceSeparated=!1,u.prototype.commaSeparated=!1,u.prototype.defined=!1,u.prototype.mustUseProperty=!1,u.prototype.number=!1,u.prototype.overloadedBoolean=!1,u.prototype.property="",u.prototype.spaceSeparated=!1,u.prototype.space=void 0;let h=0;const p=A(),d=A(),E=A(),f=A(),m=A(),T=A(),g=A();function A(){return 2**++h}const D=Object.freeze(Object.defineProperty({__proto__:null,boolean:p,booleanish:d,commaOrSpaceSeparated:g,commaSeparated:T,number:f,overloadedBoolean:E,spaceSeparated:m},Symbol.toStringTag,{value:"Module"})),_=Object.keys(D);let C=class extends u{constructor(e,t,n,r){let a=-1;if(super(e,t),N(this,"space",r),"number"==typeof n)for(;++a<_.length;){const e=_[a];N(this,_[a],(n&D[e])===D[e])}}};function N(e,t,n){n&&(e[t]=n)}function S(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const o=new C(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[c(r)]=r,n[c(o.attribute)]=r}return new s(t,n,e.space)}C.prototype.defined=!0;const I=S({properties:{ariaActiveDescendant:null,ariaAtomic:d,ariaAutoComplete:null,ariaBusy:d,ariaChecked:d,ariaColCount:f,ariaColIndex:f,ariaColSpan:f,ariaControls:m,ariaCurrent:null,ariaDescribedBy:m,ariaDetails:null,ariaDisabled:d,ariaDropEffect:m,ariaErrorMessage:null,ariaExpanded:d,ariaFlowTo:m,ariaGrabbed:d,ariaHasPopup:null,ariaHidden:d,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:m,ariaLevel:f,ariaLive:null,ariaModal:d,ariaMultiLine:d,ariaMultiSelectable:d,ariaOrientation:null,ariaOwns:m,ariaPlaceholder:null,ariaPosInSet:f,ariaPressed:d,ariaReadOnly:d,ariaRelevant:null,ariaRequired:d,ariaRoleDescription:m,ariaRowCount:f,ariaRowIndex:f,ariaRowSpan:f,ariaSelected:d,ariaSetSize:f,ariaSort:null,ariaValueMax:f,ariaValueMin:f,ariaValueNow:f,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function b(e,t){return t in e?e[t]:t}function k(e,t){return b(e,t.toLowerCase())}const y=S({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:T,acceptCharset:m,accessKey:m,action:null,allow:null,allowFullScreen:p,allowPaymentRequest:p,allowUserMedia:p,alt:null,as:null,async:p,autoCapitalize:null,autoComplete:m,autoFocus:p,autoPlay:p,blocking:m,capture:null,charSet:null,checked:p,cite:null,className:m,cols:f,colSpan:null,content:null,contentEditable:d,controls:p,controlsList:m,coords:f|T,crossOrigin:null,data:null,dateTime:null,decoding:null,default:p,defer:p,dir:null,dirName:null,disabled:p,download:E,draggable:d,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:p,formTarget:null,headers:m,height:f,hidden:E,high:f,href:null,hrefLang:null,htmlFor:m,httpEquiv:m,id:null,imageSizes:null,imageSrcSet:null,inert:p,inputMode:null,integrity:null,is:null,isMap:p,itemId:null,itemProp:m,itemRef:m,itemScope:p,itemType:m,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:p,low:f,manifest:null,max:null,maxLength:f,media:null,method:null,min:null,minLength:f,multiple:p,muted:p,name:null,nonce:null,noModule:p,noValidate:p,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:p,optimum:f,pattern:null,ping:m,placeholder:null,playsInline:p,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:p,referrerPolicy:null,rel:m,required:p,reversed:p,rows:f,rowSpan:f,sandbox:m,scope:null,scoped:p,seamless:p,selected:p,shadowRootClonable:p,shadowRootDelegatesFocus:p,shadowRootMode:null,shape:null,size:f,sizes:null,slot:null,span:f,spellCheck:d,src:null,srcDoc:null,srcLang:null,srcSet:null,start:f,step:null,style:null,tabIndex:f,target:null,title:null,translate:null,type:null,typeMustMatch:p,useMap:null,value:d,width:f,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:m,axis:null,background:null,bgColor:null,border:f,borderColor:null,bottomMargin:f,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:p,declare:p,event:null,face:null,frame:null,frameBorder:null,hSpace:f,leftMargin:f,link:null,longDesc:null,lowSrc:null,marginHeight:f,marginWidth:f,noResize:p,noHref:p,noShade:p,noWrap:p,object:null,profile:null,prompt:null,rev:null,rightMargin:f,rules:null,scheme:null,scrolling:d,standby:null,summary:null,text:null,topMargin:f,valueType:null,version:null,vAlign:null,vLink:null,vSpace:f,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:p,disableRemotePlayback:p,prefix:null,property:null,results:f,security:null,unselectable:null},space:"html",transform:k}),O=S({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:g,accentHeight:f,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:f,amplitude:f,arabicForm:null,ascent:f,attributeName:null,attributeType:null,azimuth:f,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:f,by:null,calcMode:null,capHeight:f,className:m,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:f,diffuseConstant:f,direction:null,display:null,dur:null,divisor:f,dominantBaseline:null,download:p,dx:null,dy:null,edgeMode:null,editable:null,elevation:f,enableBackground:null,end:null,event:null,exponent:f,externalResourcesRequired:null,fill:null,fillOpacity:f,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:T,g2:T,glyphName:T,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:f,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:f,horizOriginX:f,horizOriginY:f,id:null,ideographic:f,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:f,k:f,k1:f,k2:f,k3:f,k4:f,kernelMatrix:g,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:f,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:f,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:f,overlineThickness:f,paintOrder:null,panose1:null,path:null,pathLength:f,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:m,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:f,pointsAtY:f,pointsAtZ:f,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:g,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:g,rev:g,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:g,requiredFeatures:g,requiredFonts:g,requiredFormats:g,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:f,specularExponent:f,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:f,strikethroughThickness:f,string:null,stroke:null,strokeDashArray:g,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:f,strokeOpacity:f,strokeWidth:null,style:null,surfaceScale:f,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:g,tabIndex:f,tableValues:null,target:null,targetX:f,targetY:f,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:g,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:f,underlineThickness:f,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:f,values:null,vAlphabetic:f,vMathematical:f,vectorEffect:null,vHanging:f,vIdeographic:f,version:null,vertAdvY:f,vertOriginX:f,vertOriginY:f,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:f,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:b}),R=S({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),L=S({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:k}),F=S({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),P=/[A-Z]/g,M=/-[a-z]/g,B=/^data[-\w.:]+$/i;function v(e,t){const n=c(t);let r=t,a=u;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&B.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(M,w);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!M.test(e)){let n=e.replace(P,x);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}a=C}return new a(r,t)}function x(e){return"-"+e.toLowerCase()}function w(e){return e.charAt(1).toUpperCase()}const U=l([I,y,R,L,F],"html"),H=l([I,O,R,L,F],"svg"),G={}.hasOwnProperty;function Y(e,t){const n=t||{};function r(t,...n){let a=r.invalid;const o=r.handlers;if(t&&G.call(t,e)){const n=String(t[e]);a=G.call(o,n)?o[n]:r.unknown}if(a)return a.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const q=/["&'<>`]/g,z=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,W=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,j=/[|\\{}()[\]^$+*?.]/g,Q=new WeakMap;function V(e,t){return e=e.replace(t.subset?function(e){let t=Q.get(e);t||(t=function(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(j,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}(e),Q.set(e,t));return t}(t.subset):q,n),t.subset||t.escapeOnly?e:e.replace(z,function(e,n,r){return t.format(1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536,r.charCodeAt(n+2),t)}).replace(W,n);function n(e,n,r){return t.format(e.charCodeAt(0),r.charCodeAt(n+1),t)}}const K=/[\dA-Fa-f]/;const X=/\d/;const $=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],J={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},Z=["cent","copy","divide","gt","lt","not","para","times"],ee={}.hasOwnProperty,te={};let ne;for(ne in J)ee.call(J,ne)&&(te[J[ne]]=ne);const re=/[^\dA-Za-z]/;function ae(e,t,n){let r,a=function(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!K.test(String.fromCharCode(t))?r:r+";"}(e,t,n.omitOptionalSemicolons);if((n.useNamedReferences||n.useShortestReferences)&&(r=function(e,t,n,r){const a=String.fromCharCode(e);if(ee.call(te,a)){const e=te[a],o="&"+e;return n&&$.includes(e)&&!Z.includes(e)&&(!r||t&&61!==t&&re.test(String.fromCharCode(t)))?o:o+";"}return""}(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!r)&&n.useShortestReferences){const r=function(e,t,n){const r="&#"+String(e);return n&&t&&!X.test(String.fromCharCode(t))?r:r+";"}(e,t,n.omitOptionalSemicolons);r.length<a.length&&(a=r)}return r&&(!n.useShortestReferences||r.length<a.length)?r:a}function oe(e,t){return V(e,Object.assign({format:ae},t))}const ie=/^>|^->|<!--|-->|--!>|<!-$/g,se=[">"],le=["<",">"];function ce(e,t){const n=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let r=0,a=n.indexOf(t);for(;-1!==a;)r++,a=n.indexOf(t,a+t.length);return r}function ue(e){const t=[],n=String(e||"");let r=n.indexOf(","),a=0,o=!1;for(;!o;){-1===r&&(r=n.length,o=!0);const e=n.slice(a,r).trim();!e&&o||t.push(e),a=r+1,r=n.indexOf(",",a)}return t}function he(e,t){const n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}function pe(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function de(e){return e.join(" ").trim()}const Ee=/[ \t\n\f\r]/g;function fe(e){return"object"==typeof e?"text"===e.type&&me(e.value):me(e)}function me(e){return""===e.replace(Ee,"")}const Te=De(1),ge=De(-1),Ae=[];function De(e){return function(t,n,r){const a=t?t.children:Ae;let o=(n||0)+e,i=a[o];if(!r)for(;i&&fe(i);)o+=e,i=a[o];return i}}const _e={}.hasOwnProperty;function Ce(e){return function(t,n,r){return _e.call(e,t.tagName)&&e[t.tagName](t,n,r)}}const Ne=Ce({body:function(e,t,n){const r=Te(n,t);return!r||"comment"!==r.type},caption:Se,colgroup:Se,dd:function(e,t,n){const r=Te(n,t);return!r||"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName)},dt:function(e,t,n){const r=Te(n,t);return Boolean(r&&"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName))},head:Se,html:function(e,t,n){const r=Te(n,t);return!r||"comment"!==r.type},li:function(e,t,n){const r=Te(n,t);return!r||"element"===r.type&&"li"===r.tagName},optgroup:function(e,t,n){const r=Te(n,t);return!r||"element"===r.type&&"optgroup"===r.tagName},option:function(e,t,n){const r=Te(n,t);return!r||"element"===r.type&&("option"===r.tagName||"optgroup"===r.tagName)},p:function(e,t,n){const r=Te(n,t);return r?"element"===r.type&&("address"===r.tagName||"article"===r.tagName||"aside"===r.tagName||"blockquote"===r.tagName||"details"===r.tagName||"div"===r.tagName||"dl"===r.tagName||"fieldset"===r.tagName||"figcaption"===r.tagName||"figure"===r.tagName||"footer"===r.tagName||"form"===r.tagName||"h1"===r.tagName||"h2"===r.tagName||"h3"===r.tagName||"h4"===r.tagName||"h5"===r.tagName||"h6"===r.tagName||"header"===r.tagName||"hgroup"===r.tagName||"hr"===r.tagName||"main"===r.tagName||"menu"===r.tagName||"nav"===r.tagName||"ol"===r.tagName||"p"===r.tagName||"pre"===r.tagName||"section"===r.tagName||"table"===r.tagName||"ul"===r.tagName):!n||!("element"===n.type&&("a"===n.tagName||"audio"===n.tagName||"del"===n.tagName||"ins"===n.tagName||"map"===n.tagName||"noscript"===n.tagName||"video"===n.tagName))},rp:Ie,rt:Ie,tbody:function(e,t,n){const r=Te(n,t);return!r||"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName)},td:be,tfoot:function(e,t,n){return!Te(n,t)},th:be,thead:function(e,t,n){const r=Te(n,t);return Boolean(r&&"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName))},tr:function(e,t,n){const r=Te(n,t);return!r||"element"===r.type&&"tr"===r.tagName}});function Se(e,t,n){const r=Te(n,t,!0);return!r||"comment"!==r.type&&!("text"===r.type&&fe(r.value.charAt(0)))}function Ie(e,t,n){const r=Te(n,t);return!r||"element"===r.type&&("rp"===r.tagName||"rt"===r.tagName)}function be(e,t,n){const r=Te(n,t);return!r||"element"===r.type&&("td"===r.tagName||"th"===r.tagName)}const ke=Ce({body:function(e){const t=Te(e,-1,!0);return!(t&&("comment"===t.type||"text"===t.type&&fe(t.value.charAt(0))||"element"===t.type&&("meta"===t.tagName||"link"===t.tagName||"script"===t.tagName||"style"===t.tagName||"template"===t.tagName)))},colgroup:function(e,t,n){const r=ge(n,t),a=Te(e,-1,!0);if(n&&r&&"element"===r.type&&"colgroup"===r.tagName&&Ne(r,n.children.indexOf(r),n))return!1;return Boolean(a&&"element"===a.type&&"col"===a.tagName)},head:function(e){const t=new Set;for(const r of e.children)if("element"===r.type&&("base"===r.tagName||"title"===r.tagName)){if(t.has(r.tagName))return!1;t.add(r.tagName)}const n=e.children[0];return!n||"element"===n.type},html:function(e){const t=Te(e,-1);return!t||"comment"!==t.type},tbody:function(e,t,n){const r=ge(n,t),a=Te(e,-1);if(n&&r&&"element"===r.type&&("thead"===r.tagName||"tbody"===r.tagName)&&Ne(r,n.children.indexOf(r),n))return!1;return Boolean(a&&"element"===a.type&&"tr"===a.tagName)}});const ye={name:[["\t\n\f\r &/=>".split(""),"\t\n\f\r \"&'/=>`".split("")],["\0\t\n\f\r \"&'/<=>".split(""),"\0\t\n\f\r \"&'/<=>`".split("")]],unquoted:[["\t\n\f\r &>".split(""),"\0\t\n\f\r \"&'<=>`".split("")],["\0\t\n\f\r \"&'<=>`".split(""),"\0\t\n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function Oe(e,t,n){const r=v(e.schema,t),a=e.settings.allowParseErrors&&"html"===e.schema.space?0:1,o=e.settings.allowDangerousCharacters?0:1;let i,s=e.quote;if(!r.overloadedBoolean||n!==r.attribute&&""!==n?!r.boolean&&!r.overloadedBoolean||"string"==typeof n&&n!==r.attribute&&""!==n||(n=Boolean(n)):n=!0,null==n||!1===n||"number"==typeof n&&Number.isNaN(n))return"";const l=oe(r.attribute,Object.assign({},e.settings.characterReferences,{subset:ye.name[a][o]}));return!0===n?l:(n=Array.isArray(n)?(r.commaSeparated?he:de)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n?l:(e.settings.preferUnquoted&&(i=oe(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:ye.unquoted[a][o]}))),i!==n&&(e.settings.quoteSmart&&ce(n,s)>ce(n,e.alternative)&&(s=e.alternative),i=s+oe(n,Object.assign({},e.settings.characterReferences,{subset:("'"===s?ye.single:ye.double)[a][o],attribute:!0}))+s),l+(i?"="+i:i)))}const Re=["<","&"];function Le(e,t,n,r){return!n||"element"!==n.type||"script"!==n.tagName&&"style"!==n.tagName?oe(e.value,Object.assign({},r.settings.characterReferences,{subset:Re})):e.value}const Fe=Y("type",{invalid:function(e){throw new Error("Expected node, not `"+e+"`")},unknown:function(e){throw new Error("Cannot compile unknown node `"+e.type+"`")},handlers:{comment:function(e,t,n,r){return r.settings.bogusComments?"<?"+oe(e.value,Object.assign({},r.settings.characterReferences,{subset:se}))+">":"\x3c!--"+e.value.replace(ie,function(e){return oe(e,Object.assign({},r.settings.characterReferences,{subset:le}))})+"--\x3e"},doctype:function(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"},element:function(e,t,n,r){const a=r.schema,o="svg"!==a.space&&r.settings.omitOptionalTags;let i="svg"===a.space?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const s=[];let l;"html"===a.space&&"svg"===e.tagName&&(r.schema=H);const c=function(e,t){const n=[];let r,a=-1;if(t)for(r in t)if(null!==t[r]&&void 0!==t[r]){const a=Oe(e,r,t[r]);a&&n.push(a)}for(;++a<n.length;){const t=e.settings.tightAttributes?n[a].charAt(n[a].length-1):void 0;a!==n.length-1&&'"'!==t&&"'"!==t&&(n[a]+=" ")}return n.join("")}(r,e.properties),u=r.all("html"===a.space&&"template"===e.tagName?e.content:e);return r.schema=a,u&&(i=!1),!c&&o&&ke(e,t,n)||(s.push("<",e.tagName,c?" "+c:""),i&&("svg"===a.space||r.settings.closeSelfClosing)&&(l=c.charAt(c.length-1),(!r.settings.tightSelfClosing||"/"===l||l&&'"'!==l&&"'"!==l)&&s.push(" "),s.push("/")),s.push(">")),s.push(u),i||o&&Ne(e,t,n)||s.push("</"+e.tagName+">"),s.join("")},raw:function(e,t,n,r){return r.settings.allowDangerousHtml?e.value:Le(e,0,n,r)},root:function(e,t,n,r){return r.all(e)},text:Le}});const Pe={},Me={},Be=[];function ve(e,t,n){return Fe(e,t,n,this)}function xe(e){const t=[],n=e&&e.children||Be;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}const we=/[#.]/g;function Ue(e,t,n){const r=n?function(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}(n):void 0;return function(n,a,...o){let i;if(null==n){i={type:"root",children:[]};const e=a;o.unshift(e)}else{i=function(e,t){const n=e||"",r={};let a,o,i=0;for(;i<n.length;){we.lastIndex=i;const e=we.exec(n),t=n.slice(i,e?e.index:n.length);t&&(a?"#"===a?r.id=t:Array.isArray(r.className)?r.className.push(t):r.className=[t]:o=t,i+=t.length),e&&(a=e[0],i++)}return{type:"element",tagName:o||t||"div",properties:r,children:[]}}(n,t);const s=i.tagName.toLowerCase(),l=r?r.get(s):void 0;if(i.tagName=l||s,function(e){if(null===e||"object"!=typeof e||Array.isArray(e))return!0;if("string"!=typeof e.type)return!1;const t=e,n=Object.keys(e);for(const r of n){const e=t[r];if(e&&"object"==typeof e){if(!Array.isArray(e))return!0;const t=e;for(const e of t)if("number"!=typeof e&&"string"!=typeof e)return!0}}if("children"in e&&Array.isArray(e.children))return!0;return!1}(a))o.unshift(a);else for(const[t,n]of Object.entries(a))He(e,i.properties,t,n)}for(const e of o)Ge(i.children,e);return"element"===i.type&&"template"===i.tagName&&(i.content={type:"root",children:i.children},i.children=[]),i}}function He(e,t,n,r){const a=v(e,n);let o;if(null!=r){if("number"==typeof r){if(Number.isNaN(r))return;o=r}else o="boolean"==typeof r?r:"string"==typeof r?a.spaceSeparated?pe(r):a.commaSeparated?ue(r):a.commaOrSpaceSeparated?pe(ue(r).join(" ")):Ye(a,a.property,r):Array.isArray(r)?[...r]:"style"===a.property?function(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}(r):String(r);if(Array.isArray(o)){const e=[];for(const t of o)e.push(Ye(a,a.property,t));o=e}"className"===a.property&&Array.isArray(t.className)&&(o=t.className.concat(o)),t[a.property]=o}}function Ge(e,t){if(null==t);else if("number"==typeof t||"string"==typeof t)e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)Ge(e,n);else{if("object"!=typeof t||!("type"in t))throw new Error("Expected node, nodes, or string, got `"+t+"`");"root"===t.type?Ge(e,t.children):e.push(t)}}function Ye(e,t,n){if("string"==typeof n){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(""===n||c(n)===c(t)))return!0}return n}const qe=Ue(U,"div"),ze=Ue(H,"g",["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"]);function We(e,t){const n=e.indexOf("\r",t),r=e.indexOf("\n",t);return-1===r?n:-1===n||n+1===r?r:n<r?n:r}const je={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/"},Qe={}.hasOwnProperty,Ve=Object.prototype;function Ke(e,t){const n=t||{};return Xe({file:n.file||void 0,location:!1,schema:"svg"===n.space?H:U,verbose:n.verbose||!1},e)}function Xe(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},Je(e,r,n),n}case"#document":case"#document-fragment":{const r=t,a="mode"in r&&("quirks"===r.mode||"limited-quirks"===r.mode);if(n={type:"root",children:$e(e,t.childNodes),data:{quirksMode:a}},e.file&&e.location){const t=String(e.file),r=function(e){const t=String(e),n=[];return{toOffset:function(e){if(e&&"number"==typeof e.line&&"number"==typeof e.column&&!Number.isNaN(e.line)&&!Number.isNaN(e.column)){for(;n.length<e.line;){const e=n[n.length-1],r=We(t,e),a=-1===r?t.length+1:r+1;if(e===a)break;n.push(a)}const r=(e.line>1?n[e.line-2]:0)+e.column-1;if(r<n[e.line-1])return r}},toPoint:function(e){if("number"==typeof e&&e>-1&&e<=t.length){let r=0;for(;;){let a=n[r];if(void 0===a){const e=We(t,n[r-1]);a=-1===e?t.length+1:e+1,n[r]=a}if(a>e)return{line:r+1,column:e-(r>0?n[r-1]:0)+1,offset:e};r++}}}}}(t),a=r.toPoint(0),o=r.toPoint(t.length);n.position={start:a,end:o}}return n}case"#documentType":return n={type:"doctype"},Je(e,t,n),n;case"#text":{const r=t;return n={type:"text",value:r.value},Je(e,r,n),n}default:return n=function(e,t){const n=e.schema;e.schema=t.namespaceURI===je.svg?H:U;let r=-1;const a={};for(;++r<t.attrs.length;){const e=t.attrs[r],n=(e.prefix?e.prefix+":":"")+e.name;Qe.call(Ve,n)||(a[n]=e.value)}const o="svg"===e.schema.space?ze:qe,i=o(t.tagName,a,$e(e,t.childNodes));if(Je(e,t,i),"template"===i.tagName){const n=t,r=n.sourceCodeLocation,a=r&&r.startTag&&Ze(r.startTag),o=r&&r.endTag&&Ze(r.endTag),s=Xe(e,n.content);a&&o&&e.file&&(s.position={start:a.end,end:o.start}),i.content=s}return e.schema=n,i}(e,t),n}}function $e(e,t){let n=-1;const r=[];for(;++n<t.length;){const a=Xe(e,t[n]);r.push(a)}return r}function Je(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=function(e,t,n){const r=Ze(n);if("element"===t.type){const a=t.children[t.children.length-1];if(r&&!n.endTag&&a&&a.position&&a.position.end&&(r.end=Object.assign({},a.position.end)),e.verbose){const r={};let a;if(n.attrs)for(a in n.attrs)Qe.call(n.attrs,a)&&(r[v(e.schema,a).property]=Ze(n.attrs[a]));n.startTag;const o=Ze(n.startTag),i=n.endTag?Ze(n.endTag):void 0,s={opening:o};i&&(s.closing=i),s.properties=r,t.data={position:s}}}return r}(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function Ze(e){const t=et({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=et({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function et(e){return e.line&&e.column?e:void 0}const tt=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),nt="�";var rt,at;(at=rt||(rt={}))[at.EOF=-1]="EOF",at[at.NULL=0]="NULL",at[at.TABULATION=9]="TABULATION",at[at.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",at[at.LINE_FEED=10]="LINE_FEED",at[at.FORM_FEED=12]="FORM_FEED",at[at.SPACE=32]="SPACE",at[at.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",at[at.QUOTATION_MARK=34]="QUOTATION_MARK",at[at.AMPERSAND=38]="AMPERSAND",at[at.APOSTROPHE=39]="APOSTROPHE",at[at.HYPHEN_MINUS=45]="HYPHEN_MINUS",at[at.SOLIDUS=47]="SOLIDUS",at[at.DIGIT_0=48]="DIGIT_0",at[at.DIGIT_9=57]="DIGIT_9",at[at.SEMICOLON=59]="SEMICOLON",at[at.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",at[at.EQUALS_SIGN=61]="EQUALS_SIGN",at[at.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",at[at.QUESTION_MARK=63]="QUESTION_MARK",at[at.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",at[at.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",at[at.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",at[at.GRAVE_ACCENT=96]="GRAVE_ACCENT",at[at.LATIN_SMALL_A=97]="LATIN_SMALL_A",at[at.LATIN_SMALL_Z=122]="LATIN_SMALL_Z";const ot="--",it="[CDATA[",st="doctype",lt="script",ct="public",ut="system";function ht(e){return e>=55296&&e<=57343}function pt(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159}function dt(e){return e>=64976&&e<=65007||tt.has(e)}var Et,ft;(ft=Et||(Et={})).controlCharacterInInputStream="control-character-in-input-stream",ft.noncharacterInInputStream="noncharacter-in-input-stream",ft.surrogateInInputStream="surrogate-in-input-stream",ft.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",ft.endTagWithAttributes="end-tag-with-attributes",ft.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",ft.unexpectedSolidusInTag="unexpected-solidus-in-tag",ft.unexpectedNullCharacter="unexpected-null-character",ft.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",ft.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",ft.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",ft.missingEndTagName="missing-end-tag-name",ft.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",ft.unknownNamedCharacterReference="unknown-named-character-reference",ft.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",ft.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",ft.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",ft.eofBeforeTagName="eof-before-tag-name",ft.eofInTag="eof-in-tag",ft.missingAttributeValue="missing-attribute-value",ft.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",ft.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",ft.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",ft.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",ft.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",ft.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",ft.missingDoctypePublicIdentifier="missing-doctype-public-identifier",ft.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",ft.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",ft.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",ft.cdataInHtmlContent="cdata-in-html-content",ft.incorrectlyOpenedComment="incorrectly-opened-comment",ft.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",ft.eofInDoctype="eof-in-doctype",ft.nestedComment="nested-comment",ft.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",ft.eofInComment="eof-in-comment",ft.incorrectlyClosedComment="incorrectly-closed-comment",ft.eofInCdata="eof-in-cdata",ft.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",ft.nullCharacterReference="null-character-reference",ft.surrogateCharacterReference="surrogate-character-reference",ft.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",ft.controlCharacterReference="control-character-reference",ft.noncharacterCharacterReference="noncharacter-character-reference",ft.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",ft.missingDoctypeName="missing-doctype-name",ft.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",ft.duplicateAttribute="duplicate-attribute",ft.nonConformingDoctype="non-conforming-doctype",ft.missingDoctype="missing-doctype",ft.misplacedDoctype="misplaced-doctype",ft.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",ft.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",ft.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",ft.openElementsLeftAfterEof="open-elements-left-after-eof",ft.abandonedHeadElementChild="abandoned-head-element-child",ft.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",ft.nestedNoscriptInHead="nested-noscript-in-head",ft.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text";class mt{constructor(e){this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+Number(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e,t){const{line:n,col:r,offset:a}=this,o=r+t,i=a+t;return{code:e,startLine:n,endLine:n,startCol:o,endCol:o,startOffset:i,endOffset:i}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){const t=this.html.charCodeAt(this.pos+1);if(function(e){return e>=56320&&e<=57343}(t))return this.pos++,this._addGap(),1024*(e-55296)+9216+t}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,rt.EOF;return this._err(Et.surrogateInInputStream),e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(e,t){this.html.length>0?this.html+=e:this.html=e,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.endOfChunkHit=!1}startsWith(e,t){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(t)return this.html.startsWith(e,this.pos);for(let n=0;n<e.length;n++){if((32|this.html.charCodeAt(this.pos+n))!==e.charCodeAt(n))return!1}return!0}peek(e){const t=this.pos+e;if(t>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,rt.EOF;const n=this.html.charCodeAt(t);return n===rt.CARRIAGE_RETURN?rt.LINE_FEED:n}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,rt.EOF;let e=this.html.charCodeAt(this.pos);if(e===rt.CARRIAGE_RETURN)return this.isEol=!0,this.skipNextNewLine=!0,rt.LINE_FEED;if(e===rt.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine))return this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance();this.skipNextNewLine=!1,ht(e)&&(e=this._processSurrogate(e));return null===this.handler.onParseError||e>31&&e<127||e===rt.LINE_FEED||e===rt.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e}_checkForProblematicCharacters(e){pt(e)?this._err(Et.controlCharacterInInputStream):dt(e)&&this._err(Et.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var Tt,gt;function At(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}(gt=Tt||(Tt={}))[gt.CHARACTER=0]="CHARACTER",gt[gt.NULL_CHARACTER=1]="NULL_CHARACTER",gt[gt.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",gt[gt.START_TAG=3]="START_TAG",gt[gt.END_TAG=4]="END_TAG",gt[gt.COMMENT=5]="COMMENT",gt[gt.DOCTYPE=6]="DOCTYPE",gt[gt.EOF=7]="EOF",gt[gt.HIBERNATION=8]="HIBERNATION";const Dt=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),_t=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);var Ct,Nt;(Nt=Ct||(Ct={}))[Nt.NUM=35]="NUM",Nt[Nt.SEMI=59]="SEMI",Nt[Nt.EQUALS=61]="EQUALS",Nt[Nt.ZERO=48]="ZERO",Nt[Nt.NINE=57]="NINE",Nt[Nt.LOWER_A=97]="LOWER_A",Nt[Nt.LOWER_F=102]="LOWER_F",Nt[Nt.LOWER_X=120]="LOWER_X",Nt[Nt.LOWER_Z=122]="LOWER_Z",Nt[Nt.UPPER_A=65]="UPPER_A",Nt[Nt.UPPER_F=70]="UPPER_F",Nt[Nt.UPPER_Z=90]="UPPER_Z";var St,It,bt,kt,yt,Ot,Rt,Lt,Ft,Pt,Mt,Bt,vt,xt,wt,Ut;function Ht(e){return e>=Ct.ZERO&&e<=Ct.NINE}function Gt(e){return e>=Ct.UPPER_A&&e<=Ct.UPPER_F||e>=Ct.LOWER_A&&e<=Ct.LOWER_F}function Yt(e){return e===Ct.EQUALS||function(e){return e>=Ct.UPPER_A&&e<=Ct.UPPER_Z||e>=Ct.LOWER_A&&e<=Ct.LOWER_Z||Ht(e)}(e)}(It=St||(St={}))[It.VALUE_LENGTH=49152]="VALUE_LENGTH",It[It.BRANCH_LENGTH=16256]="BRANCH_LENGTH",It[It.JUMP_TABLE=127]="JUMP_TABLE",(kt=bt||(bt={}))[kt.EntityStart=0]="EntityStart",kt[kt.NumericStart=1]="NumericStart",kt[kt.NumericDecimal=2]="NumericDecimal",kt[kt.NumericHex=3]="NumericHex",kt[kt.NamedEntity=4]="NamedEntity",(Ot=yt||(yt={}))[Ot.Legacy=0]="Legacy",Ot[Ot.Strict=1]="Strict",Ot[Ot.Attribute=2]="Attribute";class qt{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=bt.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=yt.Strict}startEntity(e){this.decodeMode=e,this.state=bt.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case bt.EntityStart:return e.charCodeAt(t)===Ct.NUM?(this.state=bt.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=bt.NamedEntity,this.stateNamedEntity(e,t));case bt.NumericStart:return this.stateNumericStart(e,t);case bt.NumericDecimal:return this.stateNumericDecimal(e,t);case bt.NumericHex:return this.stateNumericHex(e,t);case bt.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===Ct.LOWER_X?(this.state=bt.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=bt.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,r){if(t!==n){const a=n-t;this.result=this.result*Math.pow(r,a)+Number.parseInt(e.substr(t,a),r),this.consumed+=a}}stateNumericHex(e,t){const n=t;for(;t<e.length;){const r=e.charCodeAt(t);if(!Ht(r)&&!Gt(r))return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(r,3);t+=1}return this.addToNumericResult(e,n,t,16),-1}stateNumericDecimal(e,t){const n=t;for(;t<e.length;){const r=e.charCodeAt(t);if(!Ht(r))return this.addToNumericResult(e,n,t,10),this.emitNumericEntity(r,2);t+=1}return this.addToNumericResult(e,n,t,10),-1}emitNumericEntity(e,t){var n;if(this.consumed<=t)return null===(n=this.errors)||void 0===n||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===Ct.SEMI)this.consumed+=1;else if(this.decodeMode===yt.Strict)return 0;return this.emitCodePoint(function(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=_t.get(e))&&void 0!==t?t:e}(this.result),this.consumed),this.errors&&(e!==Ct.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){const{decodeTree:n}=this;let r=n[this.treeIndex],a=(r&St.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){const o=e.charCodeAt(t);if(this.treeIndex=zt(n,r,this.treeIndex+Math.max(1,a),o),this.treeIndex<0)return 0===this.result||this.decodeMode===yt.Attribute&&(0===a||Yt(o))?0:this.emitNotTerminatedNamedEntity();if(r=n[this.treeIndex],a=(r&St.VALUE_LENGTH)>>14,0!==a){if(o===Ct.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==yt.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:t,decodeTree:n}=this,r=(n[t]&St.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){const{decodeTree:r}=this;return this.emitCodePoint(1===t?r[e]&~St.VALUE_LENGTH:r[e+1],n),3===t&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case bt.NamedEntity:return 0===this.result||this.decodeMode===yt.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case bt.NumericDecimal:return this.emitNumericEntity(0,2);case bt.NumericHex:return this.emitNumericEntity(0,3);case bt.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case bt.EntityStart:return 0}}}function zt(e,t,n,r){const a=(t&St.BRANCH_LENGTH)>>7,o=t&St.JUMP_TABLE;if(0===a)return 0!==o&&r===o?n:-1;if(o){const t=r-o;return t<0||t>=a?-1:e[n+t]-1}let i=n,s=i+a-1;for(;i<=s;){const t=i+s>>>1,n=e[t];if(n<r)i=t+1;else{if(!(n>r))return e[t+a];s=t-1}}return-1}(Lt=Rt||(Rt={})).HTML="http://www.w3.org/1999/xhtml",Lt.MATHML="http://www.w3.org/1998/Math/MathML",Lt.SVG="http://www.w3.org/2000/svg",Lt.XLINK="http://www.w3.org/1999/xlink",Lt.XML="http://www.w3.org/XML/1998/namespace",Lt.XMLNS="http://www.w3.org/2000/xmlns/",(Pt=Ft||(Ft={})).TYPE="type",Pt.ACTION="action",Pt.ENCODING="encoding",Pt.PROMPT="prompt",Pt.NAME="name",Pt.COLOR="color",Pt.FACE="face",Pt.SIZE="size",(Bt=Mt||(Mt={})).NO_QUIRKS="no-quirks",Bt.QUIRKS="quirks",Bt.LIMITED_QUIRKS="limited-quirks",(xt=vt||(vt={})).A="a",xt.ADDRESS="address",xt.ANNOTATION_XML="annotation-xml",xt.APPLET="applet",xt.AREA="area",xt.ARTICLE="article",xt.ASIDE="aside",xt.B="b",xt.BASE="base",xt.BASEFONT="basefont",xt.BGSOUND="bgsound",xt.BIG="big",xt.BLOCKQUOTE="blockquote",xt.BODY="body",xt.BR="br",xt.BUTTON="button",xt.CAPTION="caption",xt.CENTER="center",xt.CODE="code",xt.COL="col",xt.COLGROUP="colgroup",xt.DD="dd",xt.DESC="desc",xt.DETAILS="details",xt.DIALOG="dialog",xt.DIR="dir",xt.DIV="div",xt.DL="dl",xt.DT="dt",xt.EM="em",xt.EMBED="embed",xt.FIELDSET="fieldset",xt.FIGCAPTION="figcaption",xt.FIGURE="figure",xt.FONT="font",xt.FOOTER="footer",xt.FOREIGN_OBJECT="foreignObject",xt.FORM="form",xt.FRAME="frame",xt.FRAMESET="frameset",xt.H1="h1",xt.H2="h2",xt.H3="h3",xt.H4="h4",xt.H5="h5",xt.H6="h6",xt.HEAD="head",xt.HEADER="header",xt.HGROUP="hgroup",xt.HR="hr",xt.HTML="html",xt.I="i",xt.IMG="img",xt.IMAGE="image",xt.INPUT="input",xt.IFRAME="iframe",xt.KEYGEN="keygen",xt.LABEL="label",xt.LI="li",xt.LINK="link",xt.LISTING="listing",xt.MAIN="main",xt.MALIGNMARK="malignmark",xt.MARQUEE="marquee",xt.MATH="math",xt.MENU="menu",xt.META="meta",xt.MGLYPH="mglyph",xt.MI="mi",xt.MO="mo",xt.MN="mn",xt.MS="ms",xt.MTEXT="mtext",xt.NAV="nav",xt.NOBR="nobr",xt.NOFRAMES="noframes",xt.NOEMBED="noembed",xt.NOSCRIPT="noscript",xt.OBJECT="object",xt.OL="ol",xt.OPTGROUP="optgroup",xt.OPTION="option",xt.P="p",xt.PARAM="param",xt.PLAINTEXT="plaintext",xt.PRE="pre",xt.RB="rb",xt.RP="rp",xt.RT="rt",xt.RTC="rtc",xt.RUBY="ruby",xt.S="s",xt.SCRIPT="script",xt.SEARCH="search",xt.SECTION="section",xt.SELECT="select",xt.SOURCE="source",xt.SMALL="small",xt.SPAN="span",xt.STRIKE="strike",xt.STRONG="strong",xt.STYLE="style",xt.SUB="sub",xt.SUMMARY="summary",xt.SUP="sup",xt.TABLE="table",xt.TBODY="tbody",xt.TEMPLATE="template",xt.TEXTAREA="textarea",xt.TFOOT="tfoot",xt.TD="td",xt.TH="th",xt.THEAD="thead",xt.TITLE="title",xt.TR="tr",xt.TRACK="track",xt.TT="tt",xt.U="u",xt.UL="ul",xt.SVG="svg",xt.VAR="var",xt.WBR="wbr",xt.XMP="xmp",(Ut=wt||(wt={}))[Ut.UNKNOWN=0]="UNKNOWN",Ut[Ut.A=1]="A",Ut[Ut.ADDRESS=2]="ADDRESS",Ut[Ut.ANNOTATION_XML=3]="ANNOTATION_XML",Ut[Ut.APPLET=4]="APPLET",Ut[Ut.AREA=5]="AREA",Ut[Ut.ARTICLE=6]="ARTICLE",Ut[Ut.ASIDE=7]="ASIDE",Ut[Ut.B=8]="B",Ut[Ut.BASE=9]="BASE",Ut[Ut.BASEFONT=10]="BASEFONT",Ut[Ut.BGSOUND=11]="BGSOUND",Ut[Ut.BIG=12]="BIG",Ut[Ut.BLOCKQUOTE=13]="BLOCKQUOTE",Ut[Ut.BODY=14]="BODY",Ut[Ut.BR=15]="BR",Ut[Ut.BUTTON=16]="BUTTON",Ut[Ut.CAPTION=17]="CAPTION",Ut[Ut.CENTER=18]="CENTER",Ut[Ut.CODE=19]="CODE",Ut[Ut.COL=20]="COL",Ut[Ut.COLGROUP=21]="COLGROUP",Ut[Ut.DD=22]="DD",Ut[Ut.DESC=23]="DESC",Ut[Ut.DETAILS=24]="DETAILS",Ut[Ut.DIALOG=25]="DIALOG",Ut[Ut.DIR=26]="DIR",Ut[Ut.DIV=27]="DIV",Ut[Ut.DL=28]="DL",Ut[Ut.DT=29]="DT",Ut[Ut.EM=30]="EM",Ut[Ut.EMBED=31]="EMBED",Ut[Ut.FIELDSET=32]="FIELDSET",Ut[Ut.FIGCAPTION=33]="FIGCAPTION",Ut[Ut.FIGURE=34]="FIGURE",Ut[Ut.FONT=35]="FONT",Ut[Ut.FOOTER=36]="FOOTER",Ut[Ut.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",Ut[Ut.FORM=38]="FORM",Ut[Ut.FRAME=39]="FRAME",Ut[Ut.FRAMESET=40]="FRAMESET",Ut[Ut.H1=41]="H1",Ut[Ut.H2=42]="H2",Ut[Ut.H3=43]="H3",Ut[Ut.H4=44]="H4",Ut[Ut.H5=45]="H5",Ut[Ut.H6=46]="H6",Ut[Ut.HEAD=47]="HEAD",Ut[Ut.HEADER=48]="HEADER",Ut[Ut.HGROUP=49]="HGROUP",Ut[Ut.HR=50]="HR",Ut[Ut.HTML=51]="HTML",Ut[Ut.I=52]="I",Ut[Ut.IMG=53]="IMG",Ut[Ut.IMAGE=54]="IMAGE",Ut[Ut.INPUT=55]="INPUT",Ut[Ut.IFRAME=56]="IFRAME",Ut[Ut.KEYGEN=57]="KEYGEN",Ut[Ut.LABEL=58]="LABEL",Ut[Ut.LI=59]="LI",Ut[Ut.LINK=60]="LINK",Ut[Ut.LISTING=61]="LISTING",Ut[Ut.MAIN=62]="MAIN",Ut[Ut.MALIGNMARK=63]="MALIGNMARK",Ut[Ut.MARQUEE=64]="MARQUEE",Ut[Ut.MATH=65]="MATH",Ut[Ut.MENU=66]="MENU",Ut[Ut.META=67]="META",Ut[Ut.MGLYPH=68]="MGLYPH",Ut[Ut.MI=69]="MI",Ut[Ut.MO=70]="MO",Ut[Ut.MN=71]="MN",Ut[Ut.MS=72]="MS",Ut[Ut.MTEXT=73]="MTEXT",Ut[Ut.NAV=74]="NAV",Ut[Ut.NOBR=75]="NOBR",Ut[Ut.NOFRAMES=76]="NOFRAMES",Ut[Ut.NOEMBED=77]="NOEMBED",Ut[Ut.NOSCRIPT=78]="NOSCRIPT",Ut[Ut.OBJECT=79]="OBJECT",Ut[Ut.OL=80]="OL",Ut[Ut.OPTGROUP=81]="OPTGROUP",Ut[Ut.OPTION=82]="OPTION",Ut[Ut.P=83]="P",Ut[Ut.PARAM=84]="PARAM",Ut[Ut.PLAINTEXT=85]="PLAINTEXT",Ut[Ut.PRE=86]="PRE",Ut[Ut.RB=87]="RB",Ut[Ut.RP=88]="RP",Ut[Ut.RT=89]="RT",Ut[Ut.RTC=90]="RTC",Ut[Ut.RUBY=91]="RUBY",Ut[Ut.S=92]="S",Ut[Ut.SCRIPT=93]="SCRIPT",Ut[Ut.SEARCH=94]="SEARCH",Ut[Ut.SECTION=95]="SECTION",Ut[Ut.SELECT=96]="SELECT",Ut[Ut.SOURCE=97]="SOURCE",Ut[Ut.SMALL=98]="SMALL",Ut[Ut.SPAN=99]="SPAN",Ut[Ut.STRIKE=100]="STRIKE",Ut[Ut.STRONG=101]="STRONG",Ut[Ut.STYLE=102]="STYLE",Ut[Ut.SUB=103]="SUB",Ut[Ut.SUMMARY=104]="SUMMARY",Ut[Ut.SUP=105]="SUP",Ut[Ut.TABLE=106]="TABLE",Ut[Ut.TBODY=107]="TBODY",Ut[Ut.TEMPLATE=108]="TEMPLATE",Ut[Ut.TEXTAREA=109]="TEXTAREA",Ut[Ut.TFOOT=110]="TFOOT",Ut[Ut.TD=111]="TD",Ut[Ut.TH=112]="TH",Ut[Ut.THEAD=113]="THEAD",Ut[Ut.TITLE=114]="TITLE",Ut[Ut.TR=115]="TR",Ut[Ut.TRACK=116]="TRACK",Ut[Ut.TT=117]="TT",Ut[Ut.U=118]="U",Ut[Ut.UL=119]="UL",Ut[Ut.SVG=120]="SVG",Ut[Ut.VAR=121]="VAR",Ut[Ut.WBR=122]="WBR",Ut[Ut.XMP=123]="XMP";const Wt=new Map([[vt.A,wt.A],[vt.ADDRESS,wt.ADDRESS],[vt.ANNOTATION_XML,wt.ANNOTATION_XML],[vt.APPLET,wt.APPLET],[vt.AREA,wt.AREA],[vt.ARTICLE,wt.ARTICLE],[vt.ASIDE,wt.ASIDE],[vt.B,wt.B],[vt.BASE,wt.BASE],[vt.BASEFONT,wt.BASEFONT],[vt.BGSOUND,wt.BGSOUND],[vt.BIG,wt.BIG],[vt.BLOCKQUOTE,wt.BLOCKQUOTE],[vt.BODY,wt.BODY],[vt.BR,wt.BR],[vt.BUTTON,wt.BUTTON],[vt.CAPTION,wt.CAPTION],[vt.CENTER,wt.CENTER],[vt.CODE,wt.CODE],[vt.COL,wt.COL],[vt.COLGROUP,wt.COLGROUP],[vt.DD,wt.DD],[vt.DESC,wt.DESC],[vt.DETAILS,wt.DETAILS],[vt.DIALOG,wt.DIALOG],[vt.DIR,wt.DIR],[vt.DIV,wt.DIV],[vt.DL,wt.DL],[vt.DT,wt.DT],[vt.EM,wt.EM],[vt.EMBED,wt.EMBED],[vt.FIELDSET,wt.FIELDSET],[vt.FIGCAPTION,wt.FIGCAPTION],[vt.FIGURE,wt.FIGURE],[vt.FONT,wt.FONT],[vt.FOOTER,wt.FOOTER],[vt.FOREIGN_OBJECT,wt.FOREIGN_OBJECT],[vt.FORM,wt.FORM],[vt.FRAME,wt.FRAME],[vt.FRAMESET,wt.FRAMESET],[vt.H1,wt.H1],[vt.H2,wt.H2],[vt.H3,wt.H3],[vt.H4,wt.H4],[vt.H5,wt.H5],[vt.H6,wt.H6],[vt.HEAD,wt.HEAD],[vt.HEADER,wt.HEADER],[vt.HGROUP,wt.HGROUP],[vt.HR,wt.HR],[vt.HTML,wt.HTML],[vt.I,wt.I],[vt.IMG,wt.IMG],[vt.IMAGE,wt.IMAGE],[vt.INPUT,wt.INPUT],[vt.IFRAME,wt.IFRAME],[vt.KEYGEN,wt.KEYGEN],[vt.LABEL,wt.LABEL],[vt.LI,wt.LI],[vt.LINK,wt.LINK],[vt.LISTING,wt.LISTING],[vt.MAIN,wt.MAIN],[vt.MALIGNMARK,wt.MALIGNMARK],[vt.MARQUEE,wt.MARQUEE],[vt.MATH,wt.MATH],[vt.MENU,wt.MENU],[vt.META,wt.META],[vt.MGLYPH,wt.MGLYPH],[vt.MI,wt.MI],[vt.MO,wt.MO],[vt.MN,wt.MN],[vt.MS,wt.MS],[vt.MTEXT,wt.MTEXT],[vt.NAV,wt.NAV],[vt.NOBR,wt.NOBR],[vt.NOFRAMES,wt.NOFRAMES],[vt.NOEMBED,wt.NOEMBED],[vt.NOSCRIPT,wt.NOSCRIPT],[vt.OBJECT,wt.OBJECT],[vt.OL,wt.OL],[vt.OPTGROUP,wt.OPTGROUP],[vt.OPTION,wt.OPTION],[vt.P,wt.P],[vt.PARAM,wt.PARAM],[vt.PLAINTEXT,wt.PLAINTEXT],[vt.PRE,wt.PRE],[vt.RB,wt.RB],[vt.RP,wt.RP],[vt.RT,wt.RT],[vt.RTC,wt.RTC],[vt.RUBY,wt.RUBY],[vt.S,wt.S],[vt.SCRIPT,wt.SCRIPT],[vt.SEARCH,wt.SEARCH],[vt.SECTION,wt.SECTION],[vt.SELECT,wt.SELECT],[vt.SOURCE,wt.SOURCE],[vt.SMALL,wt.SMALL],[vt.SPAN,wt.SPAN],[vt.STRIKE,wt.STRIKE],[vt.STRONG,wt.STRONG],[vt.STYLE,wt.STYLE],[vt.SUB,wt.SUB],[vt.SUMMARY,wt.SUMMARY],[vt.SUP,wt.SUP],[vt.TABLE,wt.TABLE],[vt.TBODY,wt.TBODY],[vt.TEMPLATE,wt.TEMPLATE],[vt.TEXTAREA,wt.TEXTAREA],[vt.TFOOT,wt.TFOOT],[vt.TD,wt.TD],[vt.TH,wt.TH],[vt.THEAD,wt.THEAD],[vt.TITLE,wt.TITLE],[vt.TR,wt.TR],[vt.TRACK,wt.TRACK],[vt.TT,wt.TT],[vt.U,wt.U],[vt.UL,wt.UL],[vt.SVG,wt.SVG],[vt.VAR,wt.VAR],[vt.WBR,wt.WBR],[vt.XMP,wt.XMP]]);function jt(e){var t;return null!==(t=Wt.get(e))&&void 0!==t?t:wt.UNKNOWN}const Qt=wt,Vt={[Rt.HTML]:new Set([Qt.ADDRESS,Qt.APPLET,Qt.AREA,Qt.ARTICLE,Qt.ASIDE,Qt.BASE,Qt.BASEFONT,Qt.BGSOUND,Qt.BLOCKQUOTE,Qt.BODY,Qt.BR,Qt.BUTTON,Qt.CAPTION,Qt.CENTER,Qt.COL,Qt.COLGROUP,Qt.DD,Qt.DETAILS,Qt.DIR,Qt.DIV,Qt.DL,Qt.DT,Qt.EMBED,Qt.FIELDSET,Qt.FIGCAPTION,Qt.FIGURE,Qt.FOOTER,Qt.FORM,Qt.FRAME,Qt.FRAMESET,Qt.H1,Qt.H2,Qt.H3,Qt.H4,Qt.H5,Qt.H6,Qt.HEAD,Qt.HEADER,Qt.HGROUP,Qt.HR,Qt.HTML,Qt.IFRAME,Qt.IMG,Qt.INPUT,Qt.LI,Qt.LINK,Qt.LISTING,Qt.MAIN,Qt.MARQUEE,Qt.MENU,Qt.META,Qt.NAV,Qt.NOEMBED,Qt.NOFRAMES,Qt.NOSCRIPT,Qt.OBJECT,Qt.OL,Qt.P,Qt.PARAM,Qt.PLAINTEXT,Qt.PRE,Qt.SCRIPT,Qt.SECTION,Qt.SELECT,Qt.SOURCE,Qt.STYLE,Qt.SUMMARY,Qt.TABLE,Qt.TBODY,Qt.TD,Qt.TEMPLATE,Qt.TEXTAREA,Qt.TFOOT,Qt.TH,Qt.THEAD,Qt.TITLE,Qt.TR,Qt.TRACK,Qt.UL,Qt.WBR,Qt.XMP]),[Rt.MATHML]:new Set([Qt.MI,Qt.MO,Qt.MN,Qt.MS,Qt.MTEXT,Qt.ANNOTATION_XML]),[Rt.SVG]:new Set([Qt.TITLE,Qt.FOREIGN_OBJECT,Qt.DESC]),[Rt.XLINK]:new Set,[Rt.XML]:new Set,[Rt.XMLNS]:new Set},Kt=new Set([Qt.H1,Qt.H2,Qt.H3,Qt.H4,Qt.H5,Qt.H6]);var Xt,$t;vt.STYLE,vt.SCRIPT,vt.XMP,vt.IFRAME,vt.NOEMBED,vt.NOFRAMES,vt.PLAINTEXT,($t=Xt||(Xt={}))[$t.DATA=0]="DATA",$t[$t.RCDATA=1]="RCDATA",$t[$t.RAWTEXT=2]="RAWTEXT",$t[$t.SCRIPT_DATA=3]="SCRIPT_DATA",$t[$t.PLAINTEXT=4]="PLAINTEXT",$t[$t.TAG_OPEN=5]="TAG_OPEN",$t[$t.END_TAG_OPEN=6]="END_TAG_OPEN",$t[$t.TAG_NAME=7]="TAG_NAME",$t[$t.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",$t[$t.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",$t[$t.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",$t[$t.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",$t[$t.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",$t[$t.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",$t[$t.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",$t[$t.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",$t[$t.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",$t[$t.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",$t[$t.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",$t[$t.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",$t[$t.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",$t[$t.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",$t[$t.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",$t[$t.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",$t[$t.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",$t[$t.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",$t[$t.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",$t[$t.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",$t[$t.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",$t[$t.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",$t[$t.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",$t[$t.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",$t[$t.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",$t[$t.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",$t[$t.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",$t[$t.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",$t[$t.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",$t[$t.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",$t[$t.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",$t[$t.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",$t[$t.BOGUS_COMMENT=40]="BOGUS_COMMENT",$t[$t.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",$t[$t.COMMENT_START=42]="COMMENT_START",$t[$t.COMMENT_START_DASH=43]="COMMENT_START_DASH",$t[$t.COMMENT=44]="COMMENT",$t[$t.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",$t[$t.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",$t[$t.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",$t[$t.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",$t[$t.COMMENT_END_DASH=49]="COMMENT_END_DASH",$t[$t.COMMENT_END=50]="COMMENT_END",$t[$t.COMMENT_END_BANG=51]="COMMENT_END_BANG",$t[$t.DOCTYPE=52]="DOCTYPE",$t[$t.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",$t[$t.DOCTYPE_NAME=54]="DOCTYPE_NAME",$t[$t.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",$t[$t.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",$t[$t.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",$t[$t.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",$t[$t.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",$t[$t.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",$t[$t.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",$t[$t.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",$t[$t.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",$t[$t.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",$t[$t.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",$t[$t.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",$t[$t.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",$t[$t.CDATA_SECTION=68]="CDATA_SECTION",$t[$t.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",$t[$t.CDATA_SECTION_END=70]="CDATA_SECTION_END",$t[$t.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",$t[$t.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND";const Jt={DATA:Xt.DATA,RCDATA:Xt.RCDATA,RAWTEXT:Xt.RAWTEXT,SCRIPT_DATA:Xt.SCRIPT_DATA,PLAINTEXT:Xt.PLAINTEXT,CDATA_SECTION:Xt.CDATA_SECTION};function Zt(e){return e>=rt.LATIN_CAPITAL_A&&e<=rt.LATIN_CAPITAL_Z}function en(e){return function(e){return e>=rt.LATIN_SMALL_A&&e<=rt.LATIN_SMALL_Z}(e)||Zt(e)}function tn(e){return en(e)||function(e){return e>=rt.DIGIT_0&&e<=rt.DIGIT_9}(e)}function nn(e){return e+32}function rn(e){return e===rt.SPACE||e===rt.LINE_FEED||e===rt.TABULATION||e===rt.FORM_FEED}function an(e){return rn(e)||e===rt.SOLIDUS||e===rt.GREATER_THAN_SIGN}class on{constructor(e,t){this.options=e,this.handler=t,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=Xt.DATA,this.returnState=Xt.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new mt(t),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new qt(Dt,(e,t)=>{this.preprocessor.pos=this.entityStartPos+t-1,this._flushCodePointConsumedAsCharacterReference(e)},t.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(Et.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:e=>{this._err(Et.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+e)},validateNumericCharacterReference:e=>{const t=function(e){return e===rt.NULL?Et.nullCharacterReference:e>1114111?Et.characterReferenceOutsideUnicodeRange:ht(e)?Et.surrogateCharacterReference:dt(e)?Et.noncharacterCharacterReference:pt(e)||e===rt.CARRIAGE_RETURN?Et.controlCharacterReference:null}(e);t&&this._err(t,1)}}:void 0)}_err(e,t=0){var n,r;null===(r=(n=this.handler).onParseError)||void 0===r||r.call(n,this.preprocessor.getError(e,t))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,this.inLoop||(this._runParsingLoop(),this.paused||null==e||e())}write(e,t,n){this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),this.paused||null==n||n()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return!!this.preprocessor.endOfChunkHit&&(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0)}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let t=0;t<e;t++)this.preprocessor.advance()}_consumeSequenceIfMatch(e,t){return!!this.preprocessor.startsWith(e,t)&&(this._advanceBy(e.length-1),!0)}_createStartTagToken(){this.currentToken={type:Tt.START_TAG,tagName:"",tagID:wt.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Tt.END_TAG,tagName:"",tagID:wt.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(e){this.currentToken={type:Tt.COMMENT,data:"",location:this.getCurrentLocation(e)}}_createDoctypeToken(e){this.currentToken={type:Tt.DOCTYPE,name:e,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t,location:this.currentLocation}}_createAttr(e){this.currentAttr={name:e,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var e,t;const n=this.currentToken;if(null===At(n,this.currentAttr.name)){if(n.attrs.push(this.currentAttr),n.location&&this.currentLocation){(null!==(e=(t=n.location).attrs)&&void 0!==e?e:t.attrs=Object.create(null))[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(Et.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(e){this._emitCurrentCharacterToken(e.location),this.currentToken=null,e.location&&(e.location.endLine=this.preprocessor.line,e.location.endCol=this.preprocessor.col+1,e.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const e=this.currentToken;this.prepareToken(e),e.tagID=jt(e.tagName),e.type===Tt.START_TAG?(this.lastStartTagName=e.tagName,this.handler.onStartTag(e)):(e.attrs.length>0&&this._err(Et.endTagWithAttributes),e.selfClosing&&this._err(Et.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case Tt.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case Tt.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case Tt.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCharacterToken)}this.currentCharacterToken=null}}_emitEOFToken(){const e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:Tt.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken){if(this.currentCharacterToken.type===e)return void(this.currentCharacterToken.chars+=t);this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk()}this._createCharacterToken(e,t)}_emitCodePoint(e){const t=rn(e)?Tt.WHITESPACE_CHARACTER:e===rt.NULL?Tt.NULL_CHARACTER:Tt.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(Tt.CHARACTER,e)}_startCharacterReference(){this.returnState=this.state,this.state=Xt.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?yt.Attribute:yt.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===Xt.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===Xt.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===Xt.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case Xt.DATA:this._stateData(e);break;case Xt.RCDATA:this._stateRcdata(e);break;case Xt.RAWTEXT:this._stateRawtext(e);break;case Xt.SCRIPT_DATA:this._stateScriptData(e);break;case Xt.PLAINTEXT:this._statePlaintext(e);break;case Xt.TAG_OPEN:this._stateTagOpen(e);break;case Xt.END_TAG_OPEN:this._stateEndTagOpen(e);break;case Xt.TAG_NAME:this._stateTagName(e);break;case Xt.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case Xt.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case Xt.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case Xt.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case Xt.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case Xt.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case Xt.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case Xt.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case Xt.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case Xt.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case Xt.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case Xt.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case Xt.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case Xt.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case Xt.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);break;case Xt.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;case Xt.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;case Xt.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(e);break;case Xt.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case Xt.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;case Xt.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e);break;case Xt.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(e);break;case Xt.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case Xt.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case Xt.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case Xt.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case Xt.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case Xt.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case Xt.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case Xt.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case Xt.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case Xt.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case Xt.BOGUS_COMMENT:this._stateBogusComment(e);break;case Xt.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case Xt.COMMENT_START:this._stateCommentStart(e);break;case Xt.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case Xt.COMMENT:this._stateComment(e);break;case Xt.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case Xt.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case Xt.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;case Xt.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(e);break;case Xt.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case Xt.COMMENT_END:this._stateCommentEnd(e);break;case Xt.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case Xt.DOCTYPE:this._stateDoctype(e);break;case Xt.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case Xt.DOCTYPE_NAME:this._stateDoctypeName(e);break;case Xt.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case Xt.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case Xt.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);break;case Xt.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(e);break;case Xt.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(e);break;case Xt.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;case Xt.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break;case Xt.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case Xt.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(e);break;case Xt.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(e);break;case Xt.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(e);break;case Xt.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;case Xt.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case Xt.CDATA_SECTION:this._stateCdataSection(e);break;case Xt.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case Xt.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case Xt.CHARACTER_REFERENCE:this._stateCharacterReference();break;case Xt.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;default:throw new Error("Unknown state")}}_stateData(e){switch(e){case rt.LESS_THAN_SIGN:this.state=Xt.TAG_OPEN;break;case rt.AMPERSAND:this._startCharacterReference();break;case rt.NULL:this._err(Et.unexpectedNullCharacter),this._emitCodePoint(e);break;case rt.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case rt.AMPERSAND:this._startCharacterReference();break;case rt.LESS_THAN_SIGN:this.state=Xt.RCDATA_LESS_THAN_SIGN;break;case rt.NULL:this._err(Et.unexpectedNullCharacter),this._emitChars(nt);break;case rt.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case rt.LESS_THAN_SIGN:this.state=Xt.RAWTEXT_LESS_THAN_SIGN;break;case rt.NULL:this._err(Et.unexpectedNullCharacter),this._emitChars(nt);break;case rt.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case rt.LESS_THAN_SIGN:this.state=Xt.SCRIPT_DATA_LESS_THAN_SIGN;break;case rt.NULL:this._err(Et.unexpectedNullCharacter),this._emitChars(nt);break;case rt.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case rt.NULL:this._err(Et.unexpectedNullCharacter),this._emitChars(nt);break;case rt.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateTagOpen(e){if(en(e))this._createStartTagToken(),this.state=Xt.TAG_NAME,this._stateTagName(e);else switch(e){case rt.EXCLAMATION_MARK:this.state=Xt.MARKUP_DECLARATION_OPEN;break;case rt.SOLIDUS:this.state=Xt.END_TAG_OPEN;break;case rt.QUESTION_MARK:this._err(Et.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=Xt.BOGUS_COMMENT,this._stateBogusComment(e);break;case rt.EOF:this._err(Et.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break;default:this._err(Et.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=Xt.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(en(e))this._createEndTagToken(),this.state=Xt.TAG_NAME,this._stateTagName(e);else switch(e){case rt.GREATER_THAN_SIGN:this._err(Et.missingEndTagName),this.state=Xt.DATA;break;case rt.EOF:this._err(Et.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break;default:this._err(Et.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=Xt.BOGUS_COMMENT,this._stateBogusComment(e)}}_stateTagName(e){const t=this.currentToken;switch(e){case rt.SPACE:case rt.LINE_FEED:case rt.TABULATION:case rt.FORM_FEED:this.state=Xt.BEFORE_ATTRIBUTE_NAME;break;case rt.SOLIDUS:this.state=Xt.SELF_CLOSING_START_TAG;break;case rt.GREATER_THAN_SIGN:this.state=Xt.DATA,this.emitCurrentTagToken();break;case rt.NULL:this._err(Et.unexpectedNullCharacter),t.tagName+=nt;break;case rt.EOF:this._err(Et.eofInTag),this._emitEOFToken();break;default:t.tagName+=String.fromCodePoint(Zt(e)?nn(e):e)}}_stateRcdataLessThanSign(e){e===rt.SOLIDUS?this.state=Xt.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=Xt.RCDATA,this._stateRcdata(e))}_stateRcdataEndTagOpen(e){en(e)?(this.state=Xt.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(e)):(this._emitChars("</"),this.state=Xt.RCDATA,this._stateRcdata(e))}handleSpecialEndTag(e){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();this.currentToken.tagName=this.lastStartTagName;switch(this.preprocessor.peek(this.lastStartTagName.length)){case rt.SPACE:case rt.LINE_FEED:case rt.TABULATION:case rt.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=Xt.BEFORE_ATTRIBUTE_NAME,!1;case rt.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=Xt.SELF_CLOSING_START_TAG,!1;case rt.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=Xt.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=Xt.RCDATA,this._stateRcdata(e))}_stateRawtextLessThanSign(e){e===rt.SOLIDUS?this.state=Xt.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=Xt.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagOpen(e){en(e)?(this.state=Xt.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(e)):(this._emitChars("</"),this.state=Xt.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=Xt.RAWTEXT,this._stateRawtext(e))}_stateScriptDataLessThanSign(e){switch(e){case rt.SOLIDUS:this.state=Xt.SCRIPT_DATA_END_TAG_OPEN;break;case rt.EXCLAMATION_MARK:this.state=Xt.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break;default:this._emitChars("<"),this.state=Xt.SCRIPT_DATA,this._stateScriptData(e)}}_stateScriptDataEndTagOpen(e){en(e)?(this.state=Xt.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(e)):(this._emitChars("</"),this.state=Xt.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=Xt.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStart(e){e===rt.HYPHEN_MINUS?(this.state=Xt.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=Xt.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStartDash(e){e===rt.HYPHEN_MINUS?(this.state=Xt.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=Xt.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscaped(e){switch(e){case rt.HYPHEN_MINUS:this.state=Xt.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break;case rt.LESS_THAN_SIGN:this.state=Xt.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case rt.NULL:this._err(Et.unexpectedNullCharacter),this._emitChars(nt);break;case rt.EOF:this._err(Et.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataEscapedDash(e){switch(e){case rt.HYPHEN_MINUS:this.state=Xt.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break;case rt.LESS_THAN_SIGN:this.state=Xt.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case rt.NULL:this._err(Et.unexpectedNullCharacter),this.state=Xt.SCRIPT_DATA_ESCAPED,this._emitChars(nt);break;case rt.EOF:this._err(Et.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Xt.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedDashDash(e){switch(e){case rt.HYPHEN_MINUS:this._emitChars("-");break;case rt.LESS_THAN_SIGN:this.state=Xt.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case rt.GREATER_THAN_SIGN:this.state=Xt.SCRIPT_DATA,this._emitChars(">");break;case rt.NULL:this._err(Et.unexpectedNullCharacter),this.state=Xt.SCRIPT_DATA_ESCAPED,this._emitChars(nt);break;case rt.EOF:this._err(Et.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Xt.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===rt.SOLIDUS?this.state=Xt.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:en(e)?(this._emitChars("<"),this.state=Xt.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=Xt.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){en(e)?(this.state=Xt.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("</"),this.state=Xt.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=Xt.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscapeStart(e){if(this.preprocessor.startsWith(lt,!1)&&an(this.preprocessor.peek(lt.length))){this._emitCodePoint(e);for(let e=0;e<lt.length;e++)this._emitCodePoint(this._consume());this.state=Xt.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=Xt.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscaped(e){switch(e){case rt.HYPHEN_MINUS:this.state=Xt.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break;case rt.LESS_THAN_SIGN:this.state=Xt.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case rt.NULL:this._err(Et.unexpectedNullCharacter),this._emitChars(nt);break;case rt.EOF:this._err(Et.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDash(e){switch(e){case rt.HYPHEN_MINUS:this.state=Xt.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break;case rt.LESS_THAN_SIGN:this.state=Xt.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case rt.NULL:this._err(Et.unexpectedNullCharacter),this.state=Xt.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(nt);break;case rt.EOF:this._err(Et.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Xt.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDashDash(e){switch(e){case rt.HYPHEN_MINUS:this._emitChars("-");break;case rt.LESS_THAN_SIGN:this.state=Xt.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case rt.GREATER_THAN_SIGN:this.state=Xt.SCRIPT_DATA,this._emitChars(">");break;case rt.NULL:this._err(Et.unexpectedNullCharacter),this.state=Xt.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(nt);break;case rt.EOF:this._err(Et.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Xt.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===rt.SOLIDUS?(this.state=Xt.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=Xt.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(lt,!1)&&an(this.preprocessor.peek(lt.length))){this._emitCodePoint(e);for(let e=0;e<lt.length;e++)this._emitCodePoint(this._consume());this.state=Xt.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=Xt.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateBeforeAttributeName(e){switch(e){case rt.SPACE:case rt.LINE_FEED:case rt.TABULATION:case rt.FORM_FEED:break;case rt.SOLIDUS:case rt.GREATER_THAN_SIGN:case rt.EOF:this.state=Xt.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case rt.EQUALS_SIGN:this._err(Et.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=Xt.ATTRIBUTE_NAME;break;default:this._createAttr(""),this.state=Xt.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateAttributeName(e){switch(e){case rt.SPACE:case rt.LINE_FEED:case rt.TABULATION:case rt.FORM_FEED:case rt.SOLIDUS:case rt.GREATER_THAN_SIGN:case rt.EOF:this._leaveAttrName(),this.state=Xt.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case rt.EQUALS_SIGN:this._leaveAttrName(),this.state=Xt.BEFORE_ATTRIBUTE_VALUE;break;case rt.QUOTATION_MARK:case rt.APOSTROPHE:case rt.LESS_THAN_SIGN:this._err(Et.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(e);break;case rt.NULL:this._err(Et.unexpectedNullCharacter),this.currentAttr.name+=nt;break;default:this.currentAttr.name+=String.fromCodePoint(Zt(e)?nn(e):e)}}_stateAfterAttributeName(e){switch(e){case rt.SPACE:case rt.LINE_FEED:case rt.TABULATION:case rt.FORM_FEED:break;case rt.SOLIDUS:this.state=Xt.SELF_CLOSING_START_TAG;break;case rt.EQUALS_SIGN:this.state=Xt.BEFORE_ATTRIBUTE_VALUE;break;case rt.GREATER_THAN_SIGN:this.state=Xt.DATA,this.emitCurrentTagToken();break;case rt.EOF:this._err(Et.eofInTag),this._emitEOFToken();break;default:this._createAttr(""),this.state=Xt.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateBeforeAttributeValue(e){switch(e){case rt.SPACE:case rt.LINE_FEED:case rt.TABULATION:case rt.FORM_FEED:break;case rt.QUOTATION_MARK:this.state=Xt.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break;case rt.APOSTROPHE:this.state=Xt.ATTRIBUTE_VALUE_SINGLE_QUOTED;break;case rt.GREATER_THAN_SIGN:this._err(Et.missingAttributeValue),this.state=Xt.DATA,this.emitCurrentTagToken();break;default:this.state=Xt.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(e)}}_stateAttributeValueDoubleQuoted(e){switch(e){case rt.QUOTATION_MARK:this.state=Xt.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case rt.AMPERSAND:this._startCharacterReference();break;case rt.NULL:this._err(Et.unexpectedNullCharacter),this.currentAttr.value+=nt;break;case rt.EOF:this._err(Et.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueSingleQuoted(e){switch(e){case rt.APOSTROPHE:this.state=Xt.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case rt.AMPERSAND:this._startCharacterReference();break;case rt.NULL:this._err(Et.unexpectedNullCharacter),this.currentAttr.value+=nt;break;case rt.EOF:this._err(Et.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueUnquoted(e){switch(e){case rt.SPACE:case rt.LINE_FEED:case rt.TABULATION:case rt.FORM_FEED:this._leaveAttrValue(),this.state=Xt.BEFORE_ATTRIBUTE_NAME;break;case rt.AMPERSAND:this._startCharacterReference();break;case rt.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=Xt.DATA,this.emitCurrentTagToken();break;case rt.NULL:this._err(Et.unexpectedNullCharacter),this.currentAttr.value+=nt;break;case rt.QUOTATION_MARK:case rt.APOSTROPHE:case rt.LESS_THAN_SIGN:case rt.EQUALS_SIGN:case rt.GRAVE_ACCENT:this._err(Et.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(e);break;case rt.EOF:this._err(Et.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAfterAttributeValueQuoted(e){switch(e){case rt.SPACE:case rt.LINE_FEED:case rt.TABULATION:case rt.FORM_FEED:this._leaveAttrValue(),this.state=Xt.BEFORE_ATTRIBUTE_NAME;break;case rt.SOLIDUS:this._leaveAttrValue(),this.state=Xt.SELF_CLOSING_START_TAG;break;case rt.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=Xt.DATA,this.emitCurrentTagToken();break;case rt.EOF:this._err(Et.eofInTag),this._emitEOFToken();break;default:this._err(Et.missingWhitespaceBetweenAttributes),this.state=Xt.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateSelfClosingStartTag(e){switch(e){case rt.GREATER_THAN_SIGN:this.currentToken.selfClosing=!0,this.state=Xt.DATA,this.emitCurrentTagToken();break;case rt.EOF:this._err(Et.eofInTag),this._emitEOFToken();break;default:this._err(Et.unexpectedSolidusInTag),this.state=Xt.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateBogusComment(e){const t=this.currentToken;switch(e){case rt.GREATER_THAN_SIGN:this.state=Xt.DATA,this.emitCurrentComment(t);break;case rt.EOF:this.emitCurrentComment(t),this._emitEOFToken();break;case rt.NULL:this._err(Et.unexpectedNullCharacter),t.data+=nt;break;default:t.data+=String.fromCodePoint(e)}}_stateMarkupDeclarationOpen(e){this._consumeSequenceIfMatch(ot,!0)?(this._createCommentToken(ot.length+1),this.state=Xt.COMMENT_START):this._consumeSequenceIfMatch(st,!1)?(this.currentLocation=this.getCurrentLocation(st.length+1),this.state=Xt.DOCTYPE):this._consumeSequenceIfMatch(it,!0)?this.inForeignNode?this.state=Xt.CDATA_SECTION:(this._err(Et.cdataInHtmlContent),this._createCommentToken(it.length+1),this.currentToken.data="[CDATA[",this.state=Xt.BOGUS_COMMENT):this._ensureHibernation()||(this._err(Et.incorrectlyOpenedComment),this._createCommentToken(2),this.state=Xt.BOGUS_COMMENT,this._stateBogusComment(e))}_stateCommentStart(e){switch(e){case rt.HYPHEN_MINUS:this.state=Xt.COMMENT_START_DASH;break;case rt.GREATER_THAN_SIGN:{this._err(Et.abruptClosingOfEmptyComment),this.state=Xt.DATA;const e=this.currentToken;this.emitCurrentComment(e);break}default:this.state=Xt.COMMENT,this._stateComment(e)}}_stateCommentStartDash(e){const t=this.currentToken;switch(e){case rt.HYPHEN_MINUS:this.state=Xt.COMMENT_END;break;case rt.GREATER_THAN_SIGN:this._err(Et.abruptClosingOfEmptyComment),this.state=Xt.DATA,this.emitCurrentComment(t);break;case rt.EOF:this._err(Et.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=Xt.COMMENT,this._stateComment(e)}}_stateComment(e){const t=this.currentToken;switch(e){case rt.HYPHEN_MINUS:this.state=Xt.COMMENT_END_DASH;break;case rt.LESS_THAN_SIGN:t.data+="<",this.state=Xt.COMMENT_LESS_THAN_SIGN;break;case rt.NULL:this._err(Et.unexpectedNullCharacter),t.data+=nt;break;case rt.EOF:this._err(Et.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=String.fromCodePoint(e)}}_stateCommentLessThanSign(e){const t=this.currentToken;switch(e){case rt.EXCLAMATION_MARK:t.data+="!",this.state=Xt.COMMENT_LESS_THAN_SIGN_BANG;break;case rt.LESS_THAN_SIGN:t.data+="<";break;default:this.state=Xt.COMMENT,this._stateComment(e)}}_stateCommentLessThanSignBang(e){e===rt.HYPHEN_MINUS?this.state=Xt.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=Xt.COMMENT,this._stateComment(e))}_stateCommentLessThanSignBangDash(e){e===rt.HYPHEN_MINUS?this.state=Xt.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=Xt.COMMENT_END_DASH,this._stateCommentEndDash(e))}_stateCommentLessThanSignBangDashDash(e){e!==rt.GREATER_THAN_SIGN&&e!==rt.EOF&&this._err(Et.nestedComment),this.state=Xt.COMMENT_END,this._stateCommentEnd(e)}_stateCommentEndDash(e){const t=this.currentToken;switch(e){case rt.HYPHEN_MINUS:this.state=Xt.COMMENT_END;break;case rt.EOF:this._err(Et.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=Xt.COMMENT,this._stateComment(e)}}_stateCommentEnd(e){const t=this.currentToken;switch(e){case rt.GREATER_THAN_SIGN:this.state=Xt.DATA,this.emitCurrentComment(t);break;case rt.EXCLAMATION_MARK:this.state=Xt.COMMENT_END_BANG;break;case rt.HYPHEN_MINUS:t.data+="-";break;case rt.EOF:this._err(Et.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--",this.state=Xt.COMMENT,this._stateComment(e)}}_stateCommentEndBang(e){const t=this.currentToken;switch(e){case rt.HYPHEN_MINUS:t.data+="--!",this.state=Xt.COMMENT_END_DASH;break;case rt.GREATER_THAN_SIGN:this._err(Et.incorrectlyClosedComment),this.state=Xt.DATA,this.emitCurrentComment(t);break;case rt.EOF:this._err(Et.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--!",this.state=Xt.COMMENT,this._stateComment(e)}}_stateDoctype(e){switch(e){case rt.SPACE:case rt.LINE_FEED:case rt.TABULATION:case rt.FORM_FEED:this.state=Xt.BEFORE_DOCTYPE_NAME;break;case rt.GREATER_THAN_SIGN:this.state=Xt.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e);break;case rt.EOF:{this._err(Et.eofInDoctype),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._err(Et.missingWhitespaceBeforeDoctypeName),this.state=Xt.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e)}}_stateBeforeDoctypeName(e){if(Zt(e))this._createDoctypeToken(String.fromCharCode(nn(e))),this.state=Xt.DOCTYPE_NAME;else switch(e){case rt.SPACE:case rt.LINE_FEED:case rt.TABULATION:case rt.FORM_FEED:break;case rt.NULL:this._err(Et.unexpectedNullCharacter),this._createDoctypeToken(nt),this.state=Xt.DOCTYPE_NAME;break;case rt.GREATER_THAN_SIGN:{this._err(Et.missingDoctypeName),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this.state=Xt.DATA;break}case rt.EOF:{this._err(Et.eofInDoctype),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(e)),this.state=Xt.DOCTYPE_NAME}}_stateDoctypeName(e){const t=this.currentToken;switch(e){case rt.SPACE:case rt.LINE_FEED:case rt.TABULATION:case rt.FORM_FEED:this.state=Xt.AFTER_DOCTYPE_NAME;break;case rt.GREATER_THAN_SIGN:this.state=Xt.DATA,this.emitCurrentDoctype(t);break;case rt.NULL:this._err(Et.unexpectedNullCharacter),t.name+=nt;break;case rt.EOF:this._err(Et.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.name+=String.fromCodePoint(Zt(e)?nn(e):e)}}_stateAfterDoctypeName(e){const t=this.currentToken;switch(e){case rt.SPACE:case rt.LINE_FEED:case rt.TABULATION:case rt.FORM_FEED:break;case rt.GREATER_THAN_SIGN:this.state=Xt.DATA,this.emitCurrentDoctype(t);break;case rt.EOF:this._err(Et.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._consumeSequenceIfMatch(ct,!1)?this.state=Xt.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(ut,!1)?this.state=Xt.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(Et.invalidCharacterSequenceAfterDoctypeName),t.forceQuirks=!0,this.state=Xt.BOGUS_DOCTYPE,this._stateBogusDoctype(e))}}_stateAfterDoctypePublicKeyword(e){const t=this.currentToken;switch(e){case rt.SPACE:case rt.LINE_FEED:case rt.TABULATION:case rt.FORM_FEED:this.state=Xt.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break;case rt.QUOTATION_MARK:this._err(Et.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=Xt.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case rt.APOSTROPHE:this._err(Et.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=Xt.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case rt.GREATER_THAN_SIGN:this._err(Et.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=Xt.DATA,this.emitCurrentDoctype(t);break;case rt.EOF:this._err(Et.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(Et.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=Xt.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypePublicIdentifier(e){const t=this.currentToken;switch(e){case rt.SPACE:case rt.LINE_FEED:case rt.TABULATION:case rt.FORM_FEED:break;case rt.QUOTATION_MARK:t.publicId="",this.state=Xt.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case rt.APOSTROPHE:t.publicId="",this.state=Xt.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case rt.GREATER_THAN_SIGN:this._err(Et.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=Xt.DATA,this.emitCurrentDoctype(t);break;case rt.EOF:this._err(Et.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(Et.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=Xt.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypePublicIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case rt.QUOTATION_MARK:this.state=Xt.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case rt.NULL:this._err(Et.unexpectedNullCharacter),t.publicId+=nt;break;case rt.GREATER_THAN_SIGN:this._err(Et.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=Xt.DATA;break;case rt.EOF:this._err(Et.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateDoctypePublicIdentifierSingleQuoted(e){const t=this.currentToken;switch(e){case rt.APOSTROPHE:this.state=Xt.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case rt.NULL:this._err(Et.unexpectedNullCharacter),t.publicId+=nt;break;case rt.GREATER_THAN_SIGN:this._err(Et.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=Xt.DATA;break;case rt.EOF:this._err(Et.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateAfterDoctypePublicIdentifier(e){const t=this.currentToken;switch(e){case rt.SPACE:case rt.LINE_FEED:case rt.TABULATION:case rt.FORM_FEED:this.state=Xt.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break;case rt.GREATER_THAN_SIGN:this.state=Xt.DATA,this.emitCurrentDoctype(t);break;case rt.QUOTATION_MARK:this._err(Et.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=Xt.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case rt.APOSTROPHE:this._err(Et.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=Xt.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case rt.EOF:this._err(Et.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(Et.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Xt.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBetweenDoctypePublicAndSystemIdentifiers(e){const t=this.currentToken;switch(e){case rt.SPACE:case rt.LINE_FEED:case rt.TABULATION:case rt.FORM_FEED:break;case rt.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=Xt.DATA;break;case rt.QUOTATION_MARK:t.systemId="",this.state=Xt.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case rt.APOSTROPHE:t.systemId="",this.state=Xt.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case rt.EOF:this._err(Et.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(Et.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Xt.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateAfterDoctypeSystemKeyword(e){const t=this.currentToken;switch(e){case rt.SPACE:case rt.LINE_FEED:case rt.TABULATION:case rt.FORM_FEED:this.state=Xt.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break;case rt.QUOTATION_MARK:this._err(Et.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=Xt.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case rt.APOSTROPHE:this._err(Et.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=Xt.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case rt.GREATER_THAN_SIGN:this._err(Et.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Xt.DATA,this.emitCurrentDoctype(t);break;case rt.EOF:this._err(Et.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(Et.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Xt.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypeSystemIdentifier(e){const t=this.currentToken;switch(e){case rt.SPACE:case rt.LINE_FEED:case rt.TABULATION:case rt.FORM_FEED:break;case rt.QUOTATION_MARK:t.systemId="",this.state=Xt.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case rt.APOSTROPHE:t.systemId="",this.state=Xt.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case rt.GREATER_THAN_SIGN:this._err(Et.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Xt.DATA,this.emitCurrentDoctype(t);break;case rt.EOF:this._err(Et.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(Et.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Xt.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypeSystemIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case rt.QUOTATION_MARK:this.state=Xt.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case rt.NULL:this._err(Et.unexpectedNullCharacter),t.systemId+=nt;break;case rt.GREATER_THAN_SIGN:this._err(Et.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=Xt.DATA;break;case rt.EOF:this._err(Et.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateDoctypeSystemIdentifierSingleQuoted(e){const t=this.currentToken;switch(e){case rt.APOSTROPHE:this.state=Xt.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case rt.NULL:this._err(Et.unexpectedNullCharacter),t.systemId+=nt;break;case rt.GREATER_THAN_SIGN:this._err(Et.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=Xt.DATA;break;case rt.EOF:this._err(Et.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateAfterDoctypeSystemIdentifier(e){const t=this.currentToken;switch(e){case rt.SPACE:case rt.LINE_FEED:case rt.TABULATION:case rt.FORM_FEED:break;case rt.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=Xt.DATA;break;case rt.EOF:this._err(Et.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(Et.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=Xt.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBogusDoctype(e){const t=this.currentToken;switch(e){case rt.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=Xt.DATA;break;case rt.NULL:this._err(Et.unexpectedNullCharacter);break;case rt.EOF:this.emitCurrentDoctype(t),this._emitEOFToken()}}_stateCdataSection(e){switch(e){case rt.RIGHT_SQUARE_BRACKET:this.state=Xt.CDATA_SECTION_BRACKET;break;case rt.EOF:this._err(Et.eofInCdata),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateCdataSectionBracket(e){e===rt.RIGHT_SQUARE_BRACKET?this.state=Xt.CDATA_SECTION_END:(this._emitChars("]"),this.state=Xt.CDATA_SECTION,this._stateCdataSection(e))}_stateCdataSectionEnd(e){switch(e){case rt.GREATER_THAN_SIGN:this.state=Xt.DATA;break;case rt.RIGHT_SQUARE_BRACKET:this._emitChars("]");break;default:this._emitChars("]]"),this.state=Xt.CDATA_SECTION,this._stateCdataSection(e)}}_stateCharacterReference(){let e=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(e<0){if(!this.preprocessor.lastChunkWritten)return this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,void(this.preprocessor.endOfChunkHit=!0);e=this.entityDecoder.end()}0===e?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(rt.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&tn(this.preprocessor.peek(1))?Xt.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(e){tn(e)?this._flushCodePointConsumedAsCharacterReference(e):(e===rt.SEMICOLON&&this._err(Et.unknownNamedCharacterReference),this.state=this.returnState,this._callState(e))}}const sn=new Set([wt.DD,wt.DT,wt.LI,wt.OPTGROUP,wt.OPTION,wt.P,wt.RB,wt.RP,wt.RT,wt.RTC]),ln=new Set([...sn,wt.CAPTION,wt.COLGROUP,wt.TBODY,wt.TD,wt.TFOOT,wt.TH,wt.THEAD,wt.TR]),cn=new Set([wt.APPLET,wt.CAPTION,wt.HTML,wt.MARQUEE,wt.OBJECT,wt.TABLE,wt.TD,wt.TEMPLATE,wt.TH]),un=new Set([...cn,wt.OL,wt.UL]),hn=new Set([...cn,wt.BUTTON]),pn=new Set([wt.ANNOTATION_XML,wt.MI,wt.MN,wt.MO,wt.MS,wt.MTEXT]),dn=new Set([wt.DESC,wt.FOREIGN_OBJECT,wt.TITLE]),En=new Set([wt.TR,wt.TEMPLATE,wt.HTML]),fn=new Set([wt.TBODY,wt.TFOOT,wt.THEAD,wt.TEMPLATE,wt.HTML]),mn=new Set([wt.TABLE,wt.TEMPLATE,wt.HTML]),Tn=new Set([wt.TD,wt.TH]);class gn{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(e,t,n){this.treeAdapter=t,this.handler=n,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=wt.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===wt.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Rt.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(e,t){this.stackTop++,this.items[this.stackTop]=e,this.current=e,this.tagIDs[this.stackTop]=t,this.currentTagId=t,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(e,t,!0)}pop(){const e=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,t){const n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&(this.current=t)}insertAfter(e,t,n){const r=this._indexOf(e)+1;this.items.splice(r,0,t),this.tagIDs.splice(r,0,n),this.stackTop++,r===this.stackTop&&this._updateCurrentElement(),this.current&&void 0!==this.currentTagId&&this.handler.onItemPush(this.current,this.currentTagId,r===this.stackTop)}popUntilTagNamePopped(e){let t=this.stackTop+1;do{t=this.tagIDs.lastIndexOf(e,t-1)}while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==Rt.HTML);this.shortenToLength(Math.max(t,0))}shortenToLength(e){for(;this.stackTop>=e;){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,this.stackTop<e)}}popUntilElementPopped(e){const t=this._indexOf(e);this.shortenToLength(Math.max(t,0))}popUntilPopped(e,t){const n=this._indexOfTagNames(e,t);this.shortenToLength(Math.max(n,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(Kt,Rt.HTML)}popUntilTableCellPopped(){this.popUntilPopped(Tn,Rt.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(e,t){for(let n=this.stackTop;n>=0;n--)if(e.has(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===t)return n;return-1}clearBackTo(e,t){const n=this._indexOfTagNames(e,t);this.shortenToLength(n+1)}clearBackToTableContext(){this.clearBackTo(mn,Rt.HTML)}clearBackToTableBodyContext(){this.clearBackTo(fn,Rt.HTML)}clearBackToTableRowContext(){this.clearBackTo(En,Rt.HTML)}remove(e){const t=this._indexOf(e);t>=0&&(t===this.stackTop?this.pop():(this.items.splice(t,1),this.tagIDs.splice(t,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===wt.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){const t=this._indexOf(e)-1;return t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.tagIDs[0]===wt.HTML}hasInDynamicScope(e,t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n];switch(this.treeAdapter.getNamespaceURI(this.items[n])){case Rt.HTML:if(r===e)return!0;if(t.has(r))return!1;break;case Rt.SVG:if(dn.has(r))return!1;break;case Rt.MATHML:if(pn.has(r))return!1}}return!0}hasInScope(e){return this.hasInDynamicScope(e,cn)}hasInListItemScope(e){return this.hasInDynamicScope(e,un)}hasInButtonScope(e){return this.hasInDynamicScope(e,hn)}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){const t=this.tagIDs[e];switch(this.treeAdapter.getNamespaceURI(this.items[e])){case Rt.HTML:if(Kt.has(t))return!0;if(cn.has(t))return!1;break;case Rt.SVG:if(dn.has(t))return!1;break;case Rt.MATHML:if(pn.has(t))return!1}}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===Rt.HTML)switch(this.tagIDs[t]){case e:return!0;case wt.TABLE:case wt.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--)if(this.treeAdapter.getNamespaceURI(this.items[e])===Rt.HTML)switch(this.tagIDs[e]){case wt.TBODY:case wt.THEAD:case wt.TFOOT:return!0;case wt.TABLE:case wt.HTML:return!1}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===Rt.HTML)switch(this.tagIDs[t]){case e:return!0;case wt.OPTION:case wt.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;void 0!==this.currentTagId&&sn.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;void 0!==this.currentTagId&&ln.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;void 0!==this.currentTagId&&this.currentTagId!==e&&ln.has(this.currentTagId);)this.pop()}}var An,Dn;(Dn=An||(An={}))[Dn.Marker=0]="Marker",Dn[Dn.Element=1]="Element";const _n={type:An.Marker};class Cn{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,t){const n=[],r=t.length,a=this.treeAdapter.getTagName(e),o=this.treeAdapter.getNamespaceURI(e);for(let i=0;i<this.entries.length;i++){const e=this.entries[i];if(e.type===An.Marker)break;const{element:t}=e;if(this.treeAdapter.getTagName(t)===a&&this.treeAdapter.getNamespaceURI(t)===o){const e=this.treeAdapter.getAttrList(t);e.length===r&&n.push({idx:i,attrs:e})}}return n}_ensureNoahArkCondition(e){if(this.entries.length<3)return;const t=this.treeAdapter.getAttrList(e),n=this._getNoahArkConditionCandidates(e,t);if(n.length<3)return;const r=new Map(t.map(e=>[e.name,e.value]));let a=0;for(let o=0;o<n.length;o++){const e=n[o];e.attrs.every(e=>r.get(e.name)===e.value)&&(a+=1,a>=3&&this.entries.splice(e.idx,1))}}insertMarker(){this.entries.unshift(_n)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:An.Element,element:e,token:t})}insertElementAfterBookmark(e,t){const n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:An.Element,element:e,token:t})}removeEntry(e){const t=this.entries.indexOf(e);-1!==t&&this.entries.splice(t,1)}clearToLastMarker(){const e=this.entries.indexOf(_n);-1===e?this.entries.length=0:this.entries.splice(0,e+1)}getElementEntryInScopeWithTagName(e){const t=this.entries.find(t=>t.type===An.Marker||this.treeAdapter.getTagName(t.element)===e);return t&&t.type===An.Element?t:null}getElementEntry(e){return this.entries.find(t=>t.type===An.Element&&t.element===e)}}const Nn={createDocument:()=>({nodeName:"#document",mode:Mt.NO_QUIRKS,childNodes:[]}),createDocumentFragment:()=>({nodeName:"#document-fragment",childNodes:[]}),createElement:(e,t,n)=>({nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}),createCommentNode:e=>({nodeName:"#comment",data:e,parentNode:null}),createTextNode:e=>({nodeName:"#text",value:e,parentNode:null}),appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent:e=>e.content,setDocumentType(e,t,n,r){const a=e.childNodes.find(e=>"#documentType"===e.nodeName);if(a)a.name=t,a.publicId=n,a.systemId=r;else{const a={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};Nn.appendChild(e,a)}},setDocumentMode(e,t){e.mode=t},getDocumentMode:e=>e.mode,detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(Nn.isTextNode(n))return void(n.value+=t)}Nn.appendChild(e,Nn.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&Nn.isTextNode(r)?r.value+=t:Nn.insertBefore(e,Nn.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(e=>e.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild:e=>e.childNodes[0],getChildNodes:e=>e.childNodes,getParentNode:e=>e.parentNode,getAttrList:e=>e.attrs,getTagName:e=>e.tagName,getNamespaceURI:e=>e.namespaceURI,getTextNodeContent:e=>e.value,getCommentNodeContent:e=>e.data,getDocumentTypeNodeName:e=>e.name,getDocumentTypeNodePublicId:e=>e.publicId,getDocumentTypeNodeSystemId:e=>e.systemId,isTextNode:e=>"#text"===e.nodeName,isCommentNode:e=>"#comment"===e.nodeName,isDocumentTypeNode:e=>"#documentType"===e.nodeName,isElementNode:e=>Object.prototype.hasOwnProperty.call(e,"tagName"),setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation:e=>e.sourceCodeLocation,updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},Sn="html",In=["+//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//"],bn=[...In,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],kn=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),yn=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],On=[...yn,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Rn(e,t){return t.some(t=>e.startsWith(t))}const Ln="text/html",Fn="application/xhtml+xml",Pn=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),Mn=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:Rt.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:Rt.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:Rt.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:Rt.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:Rt.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:Rt.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:Rt.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:Rt.XML}],["xml:space",{prefix:"xml",name:"space",namespace:Rt.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:Rt.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:Rt.XMLNS}]]),Bn=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),vn=new Set([wt.B,wt.BIG,wt.BLOCKQUOTE,wt.BODY,wt.BR,wt.CENTER,wt.CODE,wt.DD,wt.DIV,wt.DL,wt.DT,wt.EM,wt.EMBED,wt.H1,wt.H2,wt.H3,wt.H4,wt.H5,wt.H6,wt.HEAD,wt.HR,wt.I,wt.IMG,wt.LI,wt.LISTING,wt.MENU,wt.META,wt.NOBR,wt.OL,wt.P,wt.PRE,wt.RUBY,wt.S,wt.SMALL,wt.SPAN,wt.STRONG,wt.STRIKE,wt.SUB,wt.SUP,wt.TABLE,wt.TT,wt.U,wt.UL,wt.VAR]);function xn(e){for(let t=0;t<e.attrs.length;t++)if("definitionurl"===e.attrs[t].name){e.attrs[t].name="definitionURL";break}}function wn(e){for(let t=0;t<e.attrs.length;t++){const n=Pn.get(e.attrs[t].name);null!=n&&(e.attrs[t].name=n)}}function Un(e){for(let t=0;t<e.attrs.length;t++){const n=Mn.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function Hn(e,t,n,r){return(!r||r===Rt.HTML)&&function(e,t,n){if(t===Rt.MATHML&&e===wt.ANNOTATION_XML)for(let r=0;r<n.length;r++)if(n[r].name===Ft.ENCODING){const e=n[r].value.toLowerCase();return e===Ln||e===Fn}return t===Rt.SVG&&(e===wt.FOREIGN_OBJECT||e===wt.DESC||e===wt.TITLE)}(e,t,n)||(!r||r===Rt.MATHML)&&function(e,t){return t===Rt.MATHML&&(e===wt.MI||e===wt.MO||e===wt.MN||e===wt.MS||e===wt.MTEXT)}(e,t)}var Gn,Yn;(Yn=Gn||(Gn={}))[Yn.INITIAL=0]="INITIAL",Yn[Yn.BEFORE_HTML=1]="BEFORE_HTML",Yn[Yn.BEFORE_HEAD=2]="BEFORE_HEAD",Yn[Yn.IN_HEAD=3]="IN_HEAD",Yn[Yn.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",Yn[Yn.AFTER_HEAD=5]="AFTER_HEAD",Yn[Yn.IN_BODY=6]="IN_BODY",Yn[Yn.TEXT=7]="TEXT",Yn[Yn.IN_TABLE=8]="IN_TABLE",Yn[Yn.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",Yn[Yn.IN_CAPTION=10]="IN_CAPTION",Yn[Yn.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",Yn[Yn.IN_TABLE_BODY=12]="IN_TABLE_BODY",Yn[Yn.IN_ROW=13]="IN_ROW",Yn[Yn.IN_CELL=14]="IN_CELL",Yn[Yn.IN_SELECT=15]="IN_SELECT",Yn[Yn.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",Yn[Yn.IN_TEMPLATE=17]="IN_TEMPLATE",Yn[Yn.AFTER_BODY=18]="AFTER_BODY",Yn[Yn.IN_FRAMESET=19]="IN_FRAMESET",Yn[Yn.AFTER_FRAMESET=20]="AFTER_FRAMESET",Yn[Yn.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",Yn[Yn.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET";const qn={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},zn=new Set([wt.TABLE,wt.TBODY,wt.TFOOT,wt.THEAD,wt.TR]),Wn={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Nn,onParseError:null};class jn{constructor(e,t,n=null,r=null){this.fragmentContext=n,this.scriptHandler=r,this.currentToken=null,this.stopped=!1,this.insertionMode=Gn.INITIAL,this.originalInsertionMode=Gn.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...Wn,...e},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=null!=t?t:this.treeAdapter.createDocument(),this.tokenizer=new on(this.options,this),this.activeFormattingElements=new Cn(this.treeAdapter),this.fragmentContextID=n?jt(this.treeAdapter.getTagName(n)):wt.UNKNOWN,this._setContextModes(null!=n?n:this.document,this.fragmentContextID),this.openElements=new gn(this.document,this.treeAdapter,this)}static parse(e,t){const n=new this(t);return n.tokenizer.write(e,!0),n.document}static getFragmentParser(e,t){const n={...Wn,...t};null!=e||(e=n.treeAdapter.createElement(vt.TEMPLATE,Rt.HTML,[]));const r=n.treeAdapter.createElement("documentmock",Rt.HTML,[]),a=new this(n,r,e);return a.fragmentContextID===wt.TEMPLATE&&a.tmplInsertionModeStack.unshift(Gn.IN_TEMPLATE),a._initTokenizerForFragmentParsing(),a._insertFakeRootElement(),a._resetInsertionMode(),a._findFormInFragmentContext(),a}getFragment(){const e=this.treeAdapter.getFirstChild(this.document),t=this.treeAdapter.createDocumentFragment();return this._adoptNodes(e,t),t}_err(e,t,n){var r;if(!this.onParseError)return;const a=null!==(r=e.location)&&void 0!==r?r:qn,o={code:t,startLine:a.startLine,startCol:a.startCol,startOffset:a.startOffset,endLine:n?a.startLine:a.endLine,endCol:n?a.startCol:a.endCol,endOffset:n?a.startOffset:a.endOffset};this.onParseError(o)}onItemPush(e,t,n){var r,a;null===(a=(r=this.treeAdapter).onItemPush)||void 0===a||a.call(r,e),n&&this.openElements.stackTop>0&&this._setContextModes(e,t)}onItemPop(e,t){var n,r;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),null===(r=(n=this.treeAdapter).onItemPop)||void 0===r||r.call(n,e,this.openElements.current),t){let e,t;0===this.openElements.stackTop&&this.fragmentContext?(e=this.fragmentContext,t=this.fragmentContextID):({current:e,currentTagId:t}=this.openElements),this._setContextModes(e,t)}}_setContextModes(e,t){const n=e===this.document||e&&this.treeAdapter.getNamespaceURI(e)===Rt.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&void 0!==e&&void 0!==t&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,Rt.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=Gn.TEXT}switchToPlaintextParsing(){this.insertionMode=Gn.TEXT,this.originalInsertionMode=Gn.IN_BODY,this.tokenizer.state=Jt.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;for(;e;){if(this.treeAdapter.getTagName(e)===vt.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(this.fragmentContext&&this.treeAdapter.getNamespaceURI(this.fragmentContext)===Rt.HTML)switch(this.fragmentContextID){case wt.TITLE:case wt.TEXTAREA:this.tokenizer.state=Jt.RCDATA;break;case wt.STYLE:case wt.XMP:case wt.IFRAME:case wt.NOEMBED:case wt.NOFRAMES:case wt.NOSCRIPT:this.tokenizer.state=Jt.RAWTEXT;break;case wt.SCRIPT:this.tokenizer.state=Jt.SCRIPT_DATA;break;case wt.PLAINTEXT:this.tokenizer.state=Jt.PLAINTEXT}}_setDocumentType(e){const t=e.name||"",n=e.publicId||"",r=e.systemId||"";if(this.treeAdapter.setDocumentType(this.document,t,n,r),e.location){const t=this.treeAdapter.getChildNodes(this.document).find(e=>this.treeAdapter.isDocumentTypeNode(e));t&&this.treeAdapter.setNodeSourceCodeLocation(t,e.location)}}_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo){const n=t&&{...t,startTag:t};this.treeAdapter.setNodeSourceCodeLocation(e,n)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{const t=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(null!=t?t:this.document,e)}}_appendElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location)}_insertElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location),this.openElements.push(n,e.tagID)}_insertFakeElement(e,t){const n=this.treeAdapter.createElement(e,Rt.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,t)}_insertTemplate(e){const t=this.treeAdapter.createElement(e.tagName,Rt.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t,e.location),this.openElements.push(t,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(){const e=this.treeAdapter.createElement(vt.HTML,Rt.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,wt.HTML)}_appendCommentNode(e,t){const n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,e.location)}_insertCharacters(e){let t,n;if(this._shouldFosterParentOnInsertion()?(({parent:t,beforeElement:n}=this._findFosterParentingLocation()),n?this.treeAdapter.insertTextBefore(t,e.chars,n):this.treeAdapter.insertText(t,e.chars)):(t=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(t,e.chars)),!e.location)return;const r=this.treeAdapter.getChildNodes(t),a=n?r.lastIndexOf(n):r.length,o=r[a-1];if(this.treeAdapter.getNodeSourceCodeLocation(o)){const{endLine:t,endCol:n,endOffset:r}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(o,{endLine:t,endCol:n,endOffset:r})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(o,e.location)}_adoptNodes(e,t){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){const n=t.location,r=this.treeAdapter.getTagName(e),a=t.type===Tt.END_TAG&&r===t.tagName?{endTag:{...n},endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,a)}}shouldProcessStartTagTokenInForeignContent(e){if(!this.currentNotInHTML)return!1;let t,n;return 0===this.openElements.stackTop&&this.fragmentContext?(t=this.fragmentContext,n=this.fragmentContextID):({current:t,currentTagId:n}=this.openElements),(e.tagID!==wt.SVG||this.treeAdapter.getTagName(t)!==vt.ANNOTATION_XML||this.treeAdapter.getNamespaceURI(t)!==Rt.MATHML)&&(this.tokenizer.inForeignNode||(e.tagID===wt.MGLYPH||e.tagID===wt.MALIGNMARK)&&void 0!==n&&!this._isIntegrationPoint(n,t,Rt.HTML))}_processToken(e){switch(e.type){case Tt.CHARACTER:this.onCharacter(e);break;case Tt.NULL_CHARACTER:this.onNullCharacter(e);break;case Tt.COMMENT:this.onComment(e);break;case Tt.DOCTYPE:this.onDoctype(e);break;case Tt.START_TAG:this._processStartTag(e);break;case Tt.END_TAG:this.onEndTag(e);break;case Tt.EOF:this.onEof(e);break;case Tt.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e)}}_isIntegrationPoint(e,t,n){return Hn(e,this.treeAdapter.getNamespaceURI(t),this.treeAdapter.getAttrList(t),n)}_reconstructActiveFormattingElements(){const e=this.activeFormattingElements.entries.length;if(e){const t=this.activeFormattingElements.entries.findIndex(e=>e.type===An.Marker||this.openElements.contains(e.element));for(let n=-1===t?e-1:t-1;n>=0;n--){const e=this.activeFormattingElements.entries[n];this._insertElement(e.token,this.treeAdapter.getNamespaceURI(e.element)),e.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=Gn.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(wt.P),this.openElements.popUntilTagNamePopped(wt.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(0===e&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case wt.TR:return void(this.insertionMode=Gn.IN_ROW);case wt.TBODY:case wt.THEAD:case wt.TFOOT:return void(this.insertionMode=Gn.IN_TABLE_BODY);case wt.CAPTION:return void(this.insertionMode=Gn.IN_CAPTION);case wt.COLGROUP:return void(this.insertionMode=Gn.IN_COLUMN_GROUP);case wt.TABLE:return void(this.insertionMode=Gn.IN_TABLE);case wt.BODY:return void(this.insertionMode=Gn.IN_BODY);case wt.FRAMESET:return void(this.insertionMode=Gn.IN_FRAMESET);case wt.SELECT:return void this._resetInsertionModeForSelect(e);case wt.TEMPLATE:return void(this.insertionMode=this.tmplInsertionModeStack[0]);case wt.HTML:return void(this.insertionMode=this.headElement?Gn.AFTER_HEAD:Gn.BEFORE_HEAD);case wt.TD:case wt.TH:if(e>0)return void(this.insertionMode=Gn.IN_CELL);break;case wt.HEAD:if(e>0)return void(this.insertionMode=Gn.IN_HEAD)}this.insertionMode=Gn.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){const e=this.openElements.tagIDs[t];if(e===wt.TEMPLATE)break;if(e===wt.TABLE)return void(this.insertionMode=Gn.IN_SELECT_IN_TABLE)}this.insertionMode=Gn.IN_SELECT}_isElementCausesFosterParenting(e){return zn.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&void 0!==this.openElements.currentTagId&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){const t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case wt.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===Rt.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break;case wt.TABLE:{const n=this.treeAdapter.getParentNode(t);return n?{parent:n,beforeElement:t}:{parent:this.openElements.items[e-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_isSpecialElement(e,t){const n=this.treeAdapter.getNamespaceURI(e);return Vt[n].has(t)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!function(e,t){e._insertCharacters(t),e.framesetOk=!1}(this,e);else switch(this.insertionMode){case Gn.INITIAL:nr(this,e);break;case Gn.BEFORE_HTML:rr(this,e);break;case Gn.BEFORE_HEAD:ar(this,e);break;case Gn.IN_HEAD:sr(this,e);break;case Gn.IN_HEAD_NO_SCRIPT:lr(this,e);break;case Gn.AFTER_HEAD:cr(this,e);break;case Gn.IN_BODY:case Gn.IN_CAPTION:case Gn.IN_CELL:case Gn.IN_TEMPLATE:pr(this,e);break;case Gn.TEXT:case Gn.IN_SELECT:case Gn.IN_SELECT_IN_TABLE:this._insertCharacters(e);break;case Gn.IN_TABLE:case Gn.IN_TABLE_BODY:case Gn.IN_ROW:_r(this,e);break;case Gn.IN_TABLE_TEXT:br(this,e);break;case Gn.IN_COLUMN_GROUP:Rr(this,e);break;case Gn.AFTER_BODY:Ur(this,e);break;case Gn.AFTER_AFTER_BODY:Hr(this,e)}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!function(e,t){t.chars=nt,e._insertCharacters(t)}(this,e);else switch(this.insertionMode){case Gn.INITIAL:nr(this,e);break;case Gn.BEFORE_HTML:rr(this,e);break;case Gn.BEFORE_HEAD:ar(this,e);break;case Gn.IN_HEAD:sr(this,e);break;case Gn.IN_HEAD_NO_SCRIPT:lr(this,e);break;case Gn.AFTER_HEAD:cr(this,e);break;case Gn.TEXT:this._insertCharacters(e);break;case Gn.IN_TABLE:case Gn.IN_TABLE_BODY:case Gn.IN_ROW:_r(this,e);break;case Gn.IN_COLUMN_GROUP:Rr(this,e);break;case Gn.AFTER_BODY:Ur(this,e);break;case Gn.AFTER_AFTER_BODY:Hr(this,e)}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML)er(this,e);else switch(this.insertionMode){case Gn.INITIAL:case Gn.BEFORE_HTML:case Gn.BEFORE_HEAD:case Gn.IN_HEAD:case Gn.IN_HEAD_NO_SCRIPT:case Gn.AFTER_HEAD:case Gn.IN_BODY:case Gn.IN_TABLE:case Gn.IN_CAPTION:case Gn.IN_COLUMN_GROUP:case Gn.IN_TABLE_BODY:case Gn.IN_ROW:case Gn.IN_CELL:case Gn.IN_SELECT:case Gn.IN_SELECT_IN_TABLE:case Gn.IN_TEMPLATE:case Gn.IN_FRAMESET:case Gn.AFTER_FRAMESET:er(this,e);break;case Gn.IN_TABLE_TEXT:kr(this,e);break;case Gn.AFTER_BODY:!function(e,t){e._appendCommentNode(t,e.openElements.items[0])}(this,e);break;case Gn.AFTER_AFTER_BODY:case Gn.AFTER_AFTER_FRAMESET:!function(e,t){e._appendCommentNode(t,e.document)}(this,e)}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case Gn.INITIAL:!function(e,t){e._setDocumentType(t);const n=t.forceQuirks?Mt.QUIRKS:function(e){if(e.name!==Sn)return Mt.QUIRKS;const{systemId:t}=e;if(t&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===t.toLowerCase())return Mt.QUIRKS;let{publicId:n}=e;if(null!==n){if(n=n.toLowerCase(),kn.has(n))return Mt.QUIRKS;let e=null===t?bn:In;if(Rn(n,e))return Mt.QUIRKS;if(e=null===t?yn:On,Rn(n,e))return Mt.LIMITED_QUIRKS}return Mt.NO_QUIRKS}(t);(function(e){return e.name===Sn&&null===e.publicId&&(null===e.systemId||"about:legacy-compat"===e.systemId)})(t)||e._err(t,Et.nonConformingDoctype);e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=Gn.BEFORE_HTML}(this,e);break;case Gn.BEFORE_HEAD:case Gn.IN_HEAD:case Gn.IN_HEAD_NO_SCRIPT:case Gn.AFTER_HEAD:this._err(e,Et.misplacedDoctype);break;case Gn.IN_TABLE_TEXT:kr(this,e)}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,Et.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?function(e,t){if(function(e){const t=e.tagID;return t===wt.FONT&&e.attrs.some(({name:e})=>e===Ft.COLOR||e===Ft.SIZE||e===Ft.FACE)||vn.has(t)}(t))Gr(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===Rt.MATHML?xn(t):r===Rt.SVG&&(!function(e){const t=Bn.get(e.tagName);null!=t&&(e.tagName=t,e.tagID=jt(e.tagName))}(t),wn(t)),Un(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case Gn.INITIAL:nr(this,e);break;case Gn.BEFORE_HTML:!function(e,t){t.tagID===wt.HTML?(e._insertElement(t,Rt.HTML),e.insertionMode=Gn.BEFORE_HEAD):rr(e,t)}(this,e);break;case Gn.BEFORE_HEAD:!function(e,t){switch(t.tagID){case wt.HTML:Tr(e,t);break;case wt.HEAD:e._insertElement(t,Rt.HTML),e.headElement=e.openElements.current,e.insertionMode=Gn.IN_HEAD;break;default:ar(e,t)}}(this,e);break;case Gn.IN_HEAD:or(this,e);break;case Gn.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case wt.HTML:Tr(e,t);break;case wt.BASEFONT:case wt.BGSOUND:case wt.HEAD:case wt.LINK:case wt.META:case wt.NOFRAMES:case wt.STYLE:or(e,t);break;case wt.NOSCRIPT:e._err(t,Et.nestedNoscriptInHead);break;default:lr(e,t)}}(this,e);break;case Gn.AFTER_HEAD:!function(e,t){switch(t.tagID){case wt.HTML:Tr(e,t);break;case wt.BODY:e._insertElement(t,Rt.HTML),e.framesetOk=!1,e.insertionMode=Gn.IN_BODY;break;case wt.FRAMESET:e._insertElement(t,Rt.HTML),e.insertionMode=Gn.IN_FRAMESET;break;case wt.BASE:case wt.BASEFONT:case wt.BGSOUND:case wt.LINK:case wt.META:case wt.NOFRAMES:case wt.SCRIPT:case wt.STYLE:case wt.TEMPLATE:case wt.TITLE:e._err(t,Et.abandonedHeadElementChild),e.openElements.push(e.headElement,wt.HEAD),or(e,t),e.openElements.remove(e.headElement);break;case wt.HEAD:e._err(t,Et.misplacedStartTagForHeadElement);break;default:cr(e,t)}}(this,e);break;case Gn.IN_BODY:Tr(this,e);break;case Gn.IN_TABLE:Cr(this,e);break;case Gn.IN_TABLE_TEXT:kr(this,e);break;case Gn.IN_CAPTION:!function(e,t){const n=t.tagID;yr.has(n)?e.openElements.hasInTableScope(wt.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(wt.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Gn.IN_TABLE,Cr(e,t)):Tr(e,t)}(this,e);break;case Gn.IN_COLUMN_GROUP:Or(this,e);break;case Gn.IN_TABLE_BODY:Lr(this,e);break;case Gn.IN_ROW:Pr(this,e);break;case Gn.IN_CELL:!function(e,t){const n=t.tagID;yr.has(n)?(e.openElements.hasInTableScope(wt.TD)||e.openElements.hasInTableScope(wt.TH))&&(e._closeTableCell(),Pr(e,t)):Tr(e,t)}(this,e);break;case Gn.IN_SELECT:Br(this,e);break;case Gn.IN_SELECT_IN_TABLE:!function(e,t){const n=t.tagID;n===wt.CAPTION||n===wt.TABLE||n===wt.TBODY||n===wt.TFOOT||n===wt.THEAD||n===wt.TR||n===wt.TD||n===wt.TH?(e.openElements.popUntilTagNamePopped(wt.SELECT),e._resetInsertionMode(),e._processStartTag(t)):Br(e,t)}(this,e);break;case Gn.IN_TEMPLATE:!function(e,t){switch(t.tagID){case wt.BASE:case wt.BASEFONT:case wt.BGSOUND:case wt.LINK:case wt.META:case wt.NOFRAMES:case wt.SCRIPT:case wt.STYLE:case wt.TEMPLATE:case wt.TITLE:or(e,t);break;case wt.CAPTION:case wt.COLGROUP:case wt.TBODY:case wt.TFOOT:case wt.THEAD:e.tmplInsertionModeStack[0]=Gn.IN_TABLE,e.insertionMode=Gn.IN_TABLE,Cr(e,t);break;case wt.COL:e.tmplInsertionModeStack[0]=Gn.IN_COLUMN_GROUP,e.insertionMode=Gn.IN_COLUMN_GROUP,Or(e,t);break;case wt.TR:e.tmplInsertionModeStack[0]=Gn.IN_TABLE_BODY,e.insertionMode=Gn.IN_TABLE_BODY,Lr(e,t);break;case wt.TD:case wt.TH:e.tmplInsertionModeStack[0]=Gn.IN_ROW,e.insertionMode=Gn.IN_ROW,Pr(e,t);break;default:e.tmplInsertionModeStack[0]=Gn.IN_BODY,e.insertionMode=Gn.IN_BODY,Tr(e,t)}}(this,e);break;case Gn.AFTER_BODY:!function(e,t){t.tagID===wt.HTML?Tr(e,t):Ur(e,t)}(this,e);break;case Gn.IN_FRAMESET:!function(e,t){switch(t.tagID){case wt.HTML:Tr(e,t);break;case wt.FRAMESET:e._insertElement(t,Rt.HTML);break;case wt.FRAME:e._appendElement(t,Rt.HTML),t.ackSelfClosing=!0;break;case wt.NOFRAMES:or(e,t)}}(this,e);break;case Gn.AFTER_FRAMESET:!function(e,t){switch(t.tagID){case wt.HTML:Tr(e,t);break;case wt.NOFRAMES:or(e,t)}}(this,e);break;case Gn.AFTER_AFTER_BODY:!function(e,t){t.tagID===wt.HTML?Tr(e,t):Hr(e,t)}(this,e);break;case Gn.AFTER_AFTER_FRAMESET:!function(e,t){switch(t.tagID){case wt.HTML:Tr(e,t);break;case wt.NOFRAMES:or(e,t)}}(this,e)}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?function(e,t){if(t.tagID===wt.P||t.tagID===wt.BR)return Gr(e),void e._endTagOutsideForeignContent(t);for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===Rt.HTML){e._endTagOutsideForeignContent(t);break}const a=e.treeAdapter.getTagName(r);if(a.toLowerCase()===t.tagName){t.tagName=a,e.openElements.shortenToLength(n);break}}}(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case Gn.INITIAL:nr(this,e);break;case Gn.BEFORE_HTML:!function(e,t){const n=t.tagID;n!==wt.HTML&&n!==wt.HEAD&&n!==wt.BODY&&n!==wt.BR||rr(e,t)}(this,e);break;case Gn.BEFORE_HEAD:!function(e,t){const n=t.tagID;n===wt.HEAD||n===wt.BODY||n===wt.HTML||n===wt.BR?ar(e,t):e._err(t,Et.endTagWithoutMatchingOpenElement)}(this,e);break;case Gn.IN_HEAD:!function(e,t){switch(t.tagID){case wt.HEAD:e.openElements.pop(),e.insertionMode=Gn.AFTER_HEAD;break;case wt.BODY:case wt.BR:case wt.HTML:sr(e,t);break;case wt.TEMPLATE:ir(e,t);break;default:e._err(t,Et.endTagWithoutMatchingOpenElement)}}(this,e);break;case Gn.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case wt.NOSCRIPT:e.openElements.pop(),e.insertionMode=Gn.IN_HEAD;break;case wt.BR:lr(e,t);break;default:e._err(t,Et.endTagWithoutMatchingOpenElement)}}(this,e);break;case Gn.AFTER_HEAD:!function(e,t){switch(t.tagID){case wt.BODY:case wt.HTML:case wt.BR:cr(e,t);break;case wt.TEMPLATE:ir(e,t);break;default:e._err(t,Et.endTagWithoutMatchingOpenElement)}}(this,e);break;case Gn.IN_BODY:Ar(this,e);break;case Gn.TEXT:!function(e,t){var n;t.tagID===wt.SCRIPT&&(null===(n=e.scriptHandler)||void 0===n||n.call(e,e.openElements.current));e.openElements.pop(),e.insertionMode=e.originalInsertionMode}(this,e);break;case Gn.IN_TABLE:Nr(this,e);break;case Gn.IN_TABLE_TEXT:kr(this,e);break;case Gn.IN_CAPTION:!function(e,t){const n=t.tagID;switch(n){case wt.CAPTION:case wt.TABLE:e.openElements.hasInTableScope(wt.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(wt.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Gn.IN_TABLE,n===wt.TABLE&&Nr(e,t));break;case wt.BODY:case wt.COL:case wt.COLGROUP:case wt.HTML:case wt.TBODY:case wt.TD:case wt.TFOOT:case wt.TH:case wt.THEAD:case wt.TR:break;default:Ar(e,t)}}(this,e);break;case Gn.IN_COLUMN_GROUP:!function(e,t){switch(t.tagID){case wt.COLGROUP:e.openElements.currentTagId===wt.COLGROUP&&(e.openElements.pop(),e.insertionMode=Gn.IN_TABLE);break;case wt.TEMPLATE:ir(e,t);break;case wt.COL:break;default:Rr(e,t)}}(this,e);break;case Gn.IN_TABLE_BODY:Fr(this,e);break;case Gn.IN_ROW:Mr(this,e);break;case Gn.IN_CELL:!function(e,t){const n=t.tagID;switch(n){case wt.TD:case wt.TH:e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Gn.IN_ROW);break;case wt.TABLE:case wt.TBODY:case wt.TFOOT:case wt.THEAD:case wt.TR:e.openElements.hasInTableScope(n)&&(e._closeTableCell(),Mr(e,t));break;case wt.BODY:case wt.CAPTION:case wt.COL:case wt.COLGROUP:case wt.HTML:break;default:Ar(e,t)}}(this,e);break;case Gn.IN_SELECT:vr(this,e);break;case Gn.IN_SELECT_IN_TABLE:!function(e,t){const n=t.tagID;n===wt.CAPTION||n===wt.TABLE||n===wt.TBODY||n===wt.TFOOT||n===wt.THEAD||n===wt.TR||n===wt.TD||n===wt.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(wt.SELECT),e._resetInsertionMode(),e.onEndTag(t)):vr(e,t)}(this,e);break;case Gn.IN_TEMPLATE:!function(e,t){t.tagID===wt.TEMPLATE&&ir(e,t)}(this,e);break;case Gn.AFTER_BODY:wr(this,e);break;case Gn.IN_FRAMESET:!function(e,t){t.tagID!==wt.FRAMESET||e.openElements.isRootHtmlElementCurrent()||(e.openElements.pop(),e.fragmentContext||e.openElements.currentTagId===wt.FRAMESET||(e.insertionMode=Gn.AFTER_FRAMESET))}(this,e);break;case Gn.AFTER_FRAMESET:!function(e,t){t.tagID===wt.HTML&&(e.insertionMode=Gn.AFTER_AFTER_FRAMESET)}(this,e);break;case Gn.AFTER_AFTER_BODY:Hr(this,e)}}onEof(e){switch(this.insertionMode){case Gn.INITIAL:nr(this,e);break;case Gn.BEFORE_HTML:rr(this,e);break;case Gn.BEFORE_HEAD:ar(this,e);break;case Gn.IN_HEAD:sr(this,e);break;case Gn.IN_HEAD_NO_SCRIPT:lr(this,e);break;case Gn.AFTER_HEAD:cr(this,e);break;case Gn.IN_BODY:case Gn.IN_TABLE:case Gn.IN_CAPTION:case Gn.IN_COLUMN_GROUP:case Gn.IN_TABLE_BODY:case Gn.IN_ROW:case Gn.IN_CELL:case Gn.IN_SELECT:case Gn.IN_SELECT_IN_TABLE:Dr(this,e);break;case Gn.TEXT:!function(e,t){e._err(t,Et.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}(this,e);break;case Gn.IN_TABLE_TEXT:kr(this,e);break;case Gn.IN_TEMPLATE:xr(this,e);break;case Gn.AFTER_BODY:case Gn.IN_FRAMESET:case Gn.AFTER_FRAMESET:case Gn.AFTER_AFTER_BODY:case Gn.AFTER_AFTER_FRAMESET:tr(this,e)}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===rt.LINE_FEED)){if(1===e.chars.length)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode)this._insertCharacters(e);else switch(this.insertionMode){case Gn.IN_HEAD:case Gn.IN_HEAD_NO_SCRIPT:case Gn.AFTER_HEAD:case Gn.TEXT:case Gn.IN_COLUMN_GROUP:case Gn.IN_SELECT:case Gn.IN_SELECT_IN_TABLE:case Gn.IN_FRAMESET:case Gn.AFTER_FRAMESET:this._insertCharacters(e);break;case Gn.IN_BODY:case Gn.IN_CAPTION:case Gn.IN_CELL:case Gn.IN_TEMPLATE:case Gn.AFTER_BODY:case Gn.AFTER_AFTER_BODY:case Gn.AFTER_AFTER_FRAMESET:hr(this,e);break;case Gn.IN_TABLE:case Gn.IN_TABLE_BODY:case Gn.IN_ROW:_r(this,e);break;case Gn.IN_TABLE_TEXT:Ir(this,e)}}}function Qn(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):gr(e,t),n}function Vn(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const a=e.openElements.items[r];if(a===t.element)break;e._isSpecialElement(a,e.openElements.tagIDs[r])&&(n=a)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function Kn(e,t,n){let r=t,a=e.openElements.getCommonAncestor(t);for(let o=0,i=a;i!==n;o++,i=a){a=e.openElements.getCommonAncestor(i);const n=e.activeFormattingElements.getElementEntry(i),s=n&&o>=3;!n||s?(s&&e.activeFormattingElements.removeEntry(n),e.openElements.remove(i)):(i=Xn(e,n),r===t&&(e.activeFormattingElements.bookmark=n),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(i,r),r=i)}return r}function Xn(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function $n(e,t,n){const r=jt(e.treeAdapter.getTagName(t));if(e._isElementCausesFosterParenting(r))e._fosterParentElement(n);else{const a=e.treeAdapter.getNamespaceURI(t);r===wt.TEMPLATE&&a===Rt.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function Jn(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:a}=n,o=e.treeAdapter.createElement(a.tagName,r,a.attrs);e._adoptNodes(t,o),e.treeAdapter.appendChild(t,o),e.activeFormattingElements.insertElementAfterBookmark(o,a),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,o,a.tagID)}function Zn(e,t){for(let n=0;n<8;n++){const n=Qn(e,t);if(!n)break;const r=Vn(e,n);if(!r)break;e.activeFormattingElements.bookmark=n;const a=Kn(e,r,n.element),o=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(a),o&&$n(e,o,a),Jn(e,r,n)}}function er(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function tr(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const n=e.openElements.items[0],r=e.treeAdapter.getNodeSourceCodeLocation(n);if(r&&!r.endTag&&(e._setEndLocation(n,t),e.openElements.stackTop>=1)){const n=e.openElements.items[1],r=e.treeAdapter.getNodeSourceCodeLocation(n);r&&!r.endTag&&e._setEndLocation(n,t)}}}}function nr(e,t){e._err(t,Et.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Mt.QUIRKS),e.insertionMode=Gn.BEFORE_HTML,e._processToken(t)}function rr(e,t){e._insertFakeRootElement(),e.insertionMode=Gn.BEFORE_HEAD,e._processToken(t)}function ar(e,t){e._insertFakeElement(vt.HEAD,wt.HEAD),e.headElement=e.openElements.current,e.insertionMode=Gn.IN_HEAD,e._processToken(t)}function or(e,t){switch(t.tagID){case wt.HTML:Tr(e,t);break;case wt.BASE:case wt.BASEFONT:case wt.BGSOUND:case wt.LINK:case wt.META:e._appendElement(t,Rt.HTML),t.ackSelfClosing=!0;break;case wt.TITLE:e._switchToTextParsing(t,Jt.RCDATA);break;case wt.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,Jt.RAWTEXT):(e._insertElement(t,Rt.HTML),e.insertionMode=Gn.IN_HEAD_NO_SCRIPT);break;case wt.NOFRAMES:case wt.STYLE:e._switchToTextParsing(t,Jt.RAWTEXT);break;case wt.SCRIPT:e._switchToTextParsing(t,Jt.SCRIPT_DATA);break;case wt.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=Gn.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(Gn.IN_TEMPLATE);break;case wt.HEAD:e._err(t,Et.misplacedStartTagForHeadElement);break;default:sr(e,t)}}function ir(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==wt.TEMPLATE&&e._err(t,Et.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(wt.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,Et.endTagWithoutMatchingOpenElement)}function sr(e,t){e.openElements.pop(),e.insertionMode=Gn.AFTER_HEAD,e._processToken(t)}function lr(e,t){const n=t.type===Tt.EOF?Et.openElementsLeftAfterEof:Et.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=Gn.IN_HEAD,e._processToken(t)}function cr(e,t){e._insertFakeElement(vt.BODY,wt.BODY),e.insertionMode=Gn.IN_BODY,ur(e,t)}function ur(e,t){switch(t.type){case Tt.CHARACTER:pr(e,t);break;case Tt.WHITESPACE_CHARACTER:hr(e,t);break;case Tt.COMMENT:er(e,t);break;case Tt.START_TAG:Tr(e,t);break;case Tt.END_TAG:Ar(e,t);break;case Tt.EOF:Dr(e,t)}}function hr(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function pr(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function dr(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Rt.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Er(e){const t=At(e,Ft.TYPE);return null!=t&&"hidden"===t.toLowerCase()}function fr(e,t){e._switchToTextParsing(t,Jt.RAWTEXT)}function mr(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Rt.HTML)}function Tr(e,t){switch(t.tagID){case wt.I:case wt.S:case wt.B:case wt.U:case wt.EM:case wt.TT:case wt.BIG:case wt.CODE:case wt.FONT:case wt.SMALL:case wt.STRIKE:case wt.STRONG:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Rt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case wt.A:!function(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(vt.A);n&&(Zn(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,Rt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case wt.H1:case wt.H2:case wt.H3:case wt.H4:case wt.H5:case wt.H6:!function(e,t){e.openElements.hasInButtonScope(wt.P)&&e._closePElement(),void 0!==e.openElements.currentTagId&&Kt.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,Rt.HTML)}(e,t);break;case wt.P:case wt.DL:case wt.OL:case wt.UL:case wt.DIV:case wt.DIR:case wt.NAV:case wt.MAIN:case wt.MENU:case wt.ASIDE:case wt.CENTER:case wt.FIGURE:case wt.FOOTER:case wt.HEADER:case wt.HGROUP:case wt.DIALOG:case wt.DETAILS:case wt.ADDRESS:case wt.ARTICLE:case wt.SEARCH:case wt.SECTION:case wt.SUMMARY:case wt.FIELDSET:case wt.BLOCKQUOTE:case wt.FIGCAPTION:!function(e,t){e.openElements.hasInButtonScope(wt.P)&&e._closePElement(),e._insertElement(t,Rt.HTML)}(e,t);break;case wt.LI:case wt.DD:case wt.DT:!function(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const t=e.openElements.tagIDs[r];if(n===wt.LI&&t===wt.LI||(n===wt.DD||n===wt.DT)&&(t===wt.DD||t===wt.DT)){e.openElements.generateImpliedEndTagsWithExclusion(t),e.openElements.popUntilTagNamePopped(t);break}if(t!==wt.ADDRESS&&t!==wt.DIV&&t!==wt.P&&e._isSpecialElement(e.openElements.items[r],t))break}e.openElements.hasInButtonScope(wt.P)&&e._closePElement(),e._insertElement(t,Rt.HTML)}(e,t);break;case wt.BR:case wt.IMG:case wt.WBR:case wt.AREA:case wt.EMBED:case wt.KEYGEN:dr(e,t);break;case wt.HR:!function(e,t){e.openElements.hasInButtonScope(wt.P)&&e._closePElement(),e._appendElement(t,Rt.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}(e,t);break;case wt.RB:case wt.RTC:!function(e,t){e.openElements.hasInScope(wt.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,Rt.HTML)}(e,t);break;case wt.RT:case wt.RP:!function(e,t){e.openElements.hasInScope(wt.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(wt.RTC),e._insertElement(t,Rt.HTML)}(e,t);break;case wt.PRE:case wt.LISTING:!function(e,t){e.openElements.hasInButtonScope(wt.P)&&e._closePElement(),e._insertElement(t,Rt.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}(e,t);break;case wt.XMP:!function(e,t){e.openElements.hasInButtonScope(wt.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Jt.RAWTEXT)}(e,t);break;case wt.SVG:!function(e,t){e._reconstructActiveFormattingElements(),wn(t),Un(t),t.selfClosing?e._appendElement(t,Rt.SVG):e._insertElement(t,Rt.SVG),t.ackSelfClosing=!0}(e,t);break;case wt.HTML:!function(e,t){0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}(e,t);break;case wt.BASE:case wt.LINK:case wt.META:case wt.STYLE:case wt.TITLE:case wt.SCRIPT:case wt.BGSOUND:case wt.BASEFONT:case wt.TEMPLATE:or(e,t);break;case wt.BODY:!function(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}(e,t);break;case wt.FORM:!function(e,t){const n=e.openElements.tmplCount>0;e.formElement&&!n||(e.openElements.hasInButtonScope(wt.P)&&e._closePElement(),e._insertElement(t,Rt.HTML),n||(e.formElement=e.openElements.current))}(e,t);break;case wt.NOBR:!function(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(wt.NOBR)&&(Zn(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,Rt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case wt.MATH:!function(e,t){e._reconstructActiveFormattingElements(),xn(t),Un(t),t.selfClosing?e._appendElement(t,Rt.MATHML):e._insertElement(t,Rt.MATHML),t.ackSelfClosing=!0}(e,t);break;case wt.TABLE:!function(e,t){e.treeAdapter.getDocumentMode(e.document)!==Mt.QUIRKS&&e.openElements.hasInButtonScope(wt.P)&&e._closePElement(),e._insertElement(t,Rt.HTML),e.framesetOk=!1,e.insertionMode=Gn.IN_TABLE}(e,t);break;case wt.INPUT:!function(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Rt.HTML),Er(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}(e,t);break;case wt.PARAM:case wt.TRACK:case wt.SOURCE:!function(e,t){e._appendElement(t,Rt.HTML),t.ackSelfClosing=!0}(e,t);break;case wt.IMAGE:!function(e,t){t.tagName=vt.IMG,t.tagID=wt.IMG,dr(e,t)}(e,t);break;case wt.BUTTON:!function(e,t){e.openElements.hasInScope(wt.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(wt.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,Rt.HTML),e.framesetOk=!1}(e,t);break;case wt.APPLET:case wt.OBJECT:case wt.MARQUEE:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Rt.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}(e,t);break;case wt.IFRAME:!function(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Jt.RAWTEXT)}(e,t);break;case wt.SELECT:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Rt.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===Gn.IN_TABLE||e.insertionMode===Gn.IN_CAPTION||e.insertionMode===Gn.IN_TABLE_BODY||e.insertionMode===Gn.IN_ROW||e.insertionMode===Gn.IN_CELL?Gn.IN_SELECT_IN_TABLE:Gn.IN_SELECT}(e,t);break;case wt.OPTION:case wt.OPTGROUP:!function(e,t){e.openElements.currentTagId===wt.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,Rt.HTML)}(e,t);break;case wt.NOEMBED:case wt.NOFRAMES:fr(e,t);break;case wt.FRAMESET:!function(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,Rt.HTML),e.insertionMode=Gn.IN_FRAMESET)}(e,t);break;case wt.TEXTAREA:!function(e,t){e._insertElement(t,Rt.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Jt.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=Gn.TEXT}(e,t);break;case wt.NOSCRIPT:e.options.scriptingEnabled?fr(e,t):mr(e,t);break;case wt.PLAINTEXT:!function(e,t){e.openElements.hasInButtonScope(wt.P)&&e._closePElement(),e._insertElement(t,Rt.HTML),e.tokenizer.state=Jt.PLAINTEXT}(e,t);break;case wt.COL:case wt.TH:case wt.TD:case wt.TR:case wt.HEAD:case wt.FRAME:case wt.TBODY:case wt.TFOOT:case wt.THEAD:case wt.CAPTION:case wt.COLGROUP:break;default:mr(e,t)}}function gr(e,t){const n=t.tagName,r=t.tagID;for(let a=e.openElements.stackTop;a>0;a--){const t=e.openElements.items[a],o=e.openElements.tagIDs[a];if(r===o&&(r!==wt.UNKNOWN||e.treeAdapter.getTagName(t)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=a&&e.openElements.shortenToLength(a);break}if(e._isSpecialElement(t,o))break}}function Ar(e,t){switch(t.tagID){case wt.A:case wt.B:case wt.I:case wt.S:case wt.U:case wt.EM:case wt.TT:case wt.BIG:case wt.CODE:case wt.FONT:case wt.NOBR:case wt.SMALL:case wt.STRIKE:case wt.STRONG:Zn(e,t);break;case wt.P:!function(e){e.openElements.hasInButtonScope(wt.P)||e._insertFakeElement(vt.P,wt.P),e._closePElement()}(e);break;case wt.DL:case wt.UL:case wt.OL:case wt.DIR:case wt.DIV:case wt.NAV:case wt.PRE:case wt.MAIN:case wt.MENU:case wt.ASIDE:case wt.BUTTON:case wt.CENTER:case wt.FIGURE:case wt.FOOTER:case wt.HEADER:case wt.HGROUP:case wt.DIALOG:case wt.ADDRESS:case wt.ARTICLE:case wt.DETAILS:case wt.SEARCH:case wt.SECTION:case wt.SUMMARY:case wt.LISTING:case wt.FIELDSET:case wt.BLOCKQUOTE:case wt.FIGCAPTION:!function(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}(e,t);break;case wt.LI:!function(e){e.openElements.hasInListItemScope(wt.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(wt.LI),e.openElements.popUntilTagNamePopped(wt.LI))}(e);break;case wt.DD:case wt.DT:!function(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}(e,t);break;case wt.H1:case wt.H2:case wt.H3:case wt.H4:case wt.H5:case wt.H6:!function(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}(e);break;case wt.BR:!function(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(vt.BR,wt.BR),e.openElements.pop(),e.framesetOk=!1}(e);break;case wt.BODY:!function(e,t){if(e.openElements.hasInScope(wt.BODY)&&(e.insertionMode=Gn.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}(e,t);break;case wt.HTML:!function(e,t){e.openElements.hasInScope(wt.BODY)&&(e.insertionMode=Gn.AFTER_BODY,wr(e,t))}(e,t);break;case wt.FORM:!function(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(wt.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(wt.FORM):n&&e.openElements.remove(n))}(e);break;case wt.APPLET:case wt.OBJECT:case wt.MARQUEE:!function(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}(e,t);break;case wt.TEMPLATE:ir(e,t);break;default:gr(e,t)}}function Dr(e,t){e.tmplInsertionModeStack.length>0?xr(e,t):tr(e,t)}function _r(e,t){if(void 0!==e.openElements.currentTagId&&zn.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=Gn.IN_TABLE_TEXT,t.type){case Tt.CHARACTER:br(e,t);break;case Tt.WHITESPACE_CHARACTER:Ir(e,t)}else Sr(e,t)}function Cr(e,t){switch(t.tagID){case wt.TD:case wt.TH:case wt.TR:!function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(vt.TBODY,wt.TBODY),e.insertionMode=Gn.IN_TABLE_BODY,Lr(e,t)}(e,t);break;case wt.STYLE:case wt.SCRIPT:case wt.TEMPLATE:or(e,t);break;case wt.COL:!function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(vt.COLGROUP,wt.COLGROUP),e.insertionMode=Gn.IN_COLUMN_GROUP,Or(e,t)}(e,t);break;case wt.FORM:!function(e,t){e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,Rt.HTML),e.formElement=e.openElements.current,e.openElements.pop())}(e,t);break;case wt.TABLE:!function(e,t){e.openElements.hasInTableScope(wt.TABLE)&&(e.openElements.popUntilTagNamePopped(wt.TABLE),e._resetInsertionMode(),e._processStartTag(t))}(e,t);break;case wt.TBODY:case wt.TFOOT:case wt.THEAD:!function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Rt.HTML),e.insertionMode=Gn.IN_TABLE_BODY}(e,t);break;case wt.INPUT:!function(e,t){Er(t)?e._appendElement(t,Rt.HTML):Sr(e,t),t.ackSelfClosing=!0}(e,t);break;case wt.CAPTION:!function(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,Rt.HTML),e.insertionMode=Gn.IN_CAPTION}(e,t);break;case wt.COLGROUP:!function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Rt.HTML),e.insertionMode=Gn.IN_COLUMN_GROUP}(e,t);break;default:Sr(e,t)}}function Nr(e,t){switch(t.tagID){case wt.TABLE:e.openElements.hasInTableScope(wt.TABLE)&&(e.openElements.popUntilTagNamePopped(wt.TABLE),e._resetInsertionMode());break;case wt.TEMPLATE:ir(e,t);break;case wt.BODY:case wt.CAPTION:case wt.COL:case wt.COLGROUP:case wt.HTML:case wt.TBODY:case wt.TD:case wt.TFOOT:case wt.TH:case wt.THEAD:case wt.TR:break;default:Sr(e,t)}}function Sr(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,ur(e,t),e.fosterParentingEnabled=n}function Ir(e,t){e.pendingCharacterTokens.push(t)}function br(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function kr(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)Sr(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const yr=new Set([wt.CAPTION,wt.COL,wt.COLGROUP,wt.TBODY,wt.TD,wt.TFOOT,wt.TH,wt.THEAD,wt.TR]);function Or(e,t){switch(t.tagID){case wt.HTML:Tr(e,t);break;case wt.COL:e._appendElement(t,Rt.HTML),t.ackSelfClosing=!0;break;case wt.TEMPLATE:or(e,t);break;default:Rr(e,t)}}function Rr(e,t){e.openElements.currentTagId===wt.COLGROUP&&(e.openElements.pop(),e.insertionMode=Gn.IN_TABLE,e._processToken(t))}function Lr(e,t){switch(t.tagID){case wt.TR:e.openElements.clearBackToTableBodyContext(),e._insertElement(t,Rt.HTML),e.insertionMode=Gn.IN_ROW;break;case wt.TH:case wt.TD:e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(vt.TR,wt.TR),e.insertionMode=Gn.IN_ROW,Pr(e,t);break;case wt.CAPTION:case wt.COL:case wt.COLGROUP:case wt.TBODY:case wt.TFOOT:case wt.THEAD:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Gn.IN_TABLE,Cr(e,t));break;default:Cr(e,t)}}function Fr(e,t){const n=t.tagID;switch(t.tagID){case wt.TBODY:case wt.TFOOT:case wt.THEAD:e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Gn.IN_TABLE);break;case wt.TABLE:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Gn.IN_TABLE,Nr(e,t));break;case wt.BODY:case wt.CAPTION:case wt.COL:case wt.COLGROUP:case wt.HTML:case wt.TD:case wt.TH:case wt.TR:break;default:Nr(e,t)}}function Pr(e,t){switch(t.tagID){case wt.TH:case wt.TD:e.openElements.clearBackToTableRowContext(),e._insertElement(t,Rt.HTML),e.insertionMode=Gn.IN_CELL,e.activeFormattingElements.insertMarker();break;case wt.CAPTION:case wt.COL:case wt.COLGROUP:case wt.TBODY:case wt.TFOOT:case wt.THEAD:case wt.TR:e.openElements.hasInTableScope(wt.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Gn.IN_TABLE_BODY,Lr(e,t));break;default:Cr(e,t)}}function Mr(e,t){switch(t.tagID){case wt.TR:e.openElements.hasInTableScope(wt.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Gn.IN_TABLE_BODY);break;case wt.TABLE:e.openElements.hasInTableScope(wt.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Gn.IN_TABLE_BODY,Fr(e,t));break;case wt.TBODY:case wt.TFOOT:case wt.THEAD:(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(wt.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Gn.IN_TABLE_BODY,Fr(e,t));break;case wt.BODY:case wt.CAPTION:case wt.COL:case wt.COLGROUP:case wt.HTML:case wt.TD:case wt.TH:break;default:Nr(e,t)}}function Br(e,t){switch(t.tagID){case wt.HTML:Tr(e,t);break;case wt.OPTION:e.openElements.currentTagId===wt.OPTION&&e.openElements.pop(),e._insertElement(t,Rt.HTML);break;case wt.OPTGROUP:e.openElements.currentTagId===wt.OPTION&&e.openElements.pop(),e.openElements.currentTagId===wt.OPTGROUP&&e.openElements.pop(),e._insertElement(t,Rt.HTML);break;case wt.HR:e.openElements.currentTagId===wt.OPTION&&e.openElements.pop(),e.openElements.currentTagId===wt.OPTGROUP&&e.openElements.pop(),e._appendElement(t,Rt.HTML),t.ackSelfClosing=!0;break;case wt.INPUT:case wt.KEYGEN:case wt.TEXTAREA:case wt.SELECT:e.openElements.hasInSelectScope(wt.SELECT)&&(e.openElements.popUntilTagNamePopped(wt.SELECT),e._resetInsertionMode(),t.tagID!==wt.SELECT&&e._processStartTag(t));break;case wt.SCRIPT:case wt.TEMPLATE:or(e,t)}}function vr(e,t){switch(t.tagID){case wt.OPTGROUP:e.openElements.stackTop>0&&e.openElements.currentTagId===wt.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===wt.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===wt.OPTGROUP&&e.openElements.pop();break;case wt.OPTION:e.openElements.currentTagId===wt.OPTION&&e.openElements.pop();break;case wt.SELECT:e.openElements.hasInSelectScope(wt.SELECT)&&(e.openElements.popUntilTagNamePopped(wt.SELECT),e._resetInsertionMode());break;case wt.TEMPLATE:ir(e,t)}}function xr(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(wt.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):tr(e,t)}function wr(e,t){var n;if(t.tagID===wt.HTML){if(e.fragmentContext||(e.insertionMode=Gn.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===wt.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(null===(n=e.treeAdapter.getNodeSourceCodeLocation(r))||void 0===n?void 0:n.endTag)&&e._setEndLocation(r,t)}}else Ur(e,t)}function Ur(e,t){e.insertionMode=Gn.IN_BODY,ur(e,t)}function Hr(e,t){e.insertionMode=Gn.IN_BODY,ur(e,t)}function Gr(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Rt.HTML&&void 0!==e.openElements.currentTagId&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function Yr(e,t){return jn.parse(e,t)}function qr(e,t,n){"string"==typeof e&&(n=t,t=e,e=null);const r=jn.getFragmentParser(e,n);return r.tokenizer.write(t,!0),r.getFragment()}function zr(e){return jr(e&&e.line)+":"+jr(e&&e.column)}function Wr(e){return zr(e&&e.start)+"-"+zr(e&&e.end)}function jr(e){return e&&"number"==typeof e?e:1}vt.AREA,vt.BASE,vt.BASEFONT,vt.BGSOUND,vt.BR,vt.COL,vt.EMBED,vt.FRAME,vt.HR,vt.IMG,vt.INPUT,vt.KEYGEN,vt.LINK,vt.META,vt.PARAM,vt.SOURCE,vt.TRACK,vt.WBR;class Qr extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",a={},o=!1;if(t&&(a="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!a.cause&&e&&(o=!0,r=e.message,a.cause=e),!a.ruleId&&!a.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?a.ruleId=n:(a.source=n.slice(0,e),a.ruleId=n.slice(e+1))}if(!a.place&&a.ancestors&&a.ancestors){const e=a.ancestors[a.ancestors.length-1];e&&(a.place=e.position)}const i=a.place&&"start"in a.place?a.place.start:a.place;var s;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=i?i.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=i?i.line:void 0,this.name=((s=a.place)&&"object"==typeof s?"position"in s||"type"in s?Wr(s.position):"start"in s||"end"in s?Wr(s):"line"in s||"column"in s?zr(s):"":"")||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&"string"==typeof a.cause.stack?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Qr.prototype.file="",Qr.prototype.name="",Qr.prototype.reason="",Qr.prototype.message="",Qr.prototype.stack="",Qr.prototype.column=void 0,Qr.prototype.line=void 0,Qr.prototype.ancestors=void 0,Qr.prototype.cause=void 0,Qr.prototype.fatal=void 0,Qr.prototype.place=void 0,Qr.prototype.ruleId=void 0,Qr.prototype.source=void 0;const Vr={basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');Kr(e);let n,r=0,a=-1,o=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else a<0&&(n=!0,a=o+1);return a<0?"":e.slice(r,a)}if(t===e)return"";let i=-1,s=t.length-1;for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else i<0&&(n=!0,i=o+1),s>-1&&(e.codePointAt(o)===t.codePointAt(s--)?s<0&&(a=o):(s=-1,a=i));r===a?a=i:a<0&&(a=e.length);return e.slice(r,a)},dirname:function(e){if(Kr(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){Kr(e);let t,n=e.length,r=-1,a=0,o=-1,i=0;for(;n--;){const s=e.codePointAt(n);if(47!==s)r<0&&(t=!0,r=n+1),46===s?o<0?o=n:1!==i&&(i=1):o>-1&&(i=-1);else if(t){a=n+1;break}}if(o<0||r<0||0===i||1===i&&o===r-1&&o===a+1)return"";return e.slice(o,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)Kr(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){Kr(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,r,a="",o=0,i=-1,s=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.codePointAt(l);else{if(47===n)break;n=47}if(47===n){if(i===l-1||1===s);else if(i!==l-1&&2===s){if(a.length<2||2!==o||46!==a.codePointAt(a.length-1)||46!==a.codePointAt(a.length-2))if(a.length>2){if(r=a.lastIndexOf("/"),r!==a.length-1){r<0?(a="",o=0):(a=a.slice(0,r),o=a.length-1-a.lastIndexOf("/")),i=l,s=0;continue}}else if(a.length>0){a="",o=0,i=l,s=0;continue}t&&(a=a.length>0?a+"/..":"..",o=2)}else a.length>0?a+="/"+e.slice(i+1,l):a=e.slice(i+1,l),o=l-i-1;i=l,s=0}else 46===n&&s>-1?s++:s=-1}return a}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/");return t?"/"+n:n}(t)},sep:"/"};function Kr(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Xr={cwd:function(){return"/"}};function $r(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function Jr(e){if("string"==typeof e)e=new URL(e);else if(!$r(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}const Zr=["history","path","basename","stem","extname","dirname"];class ea{constructor(e){let t;t=e?$r(e)?{path:e}:"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":Xr.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<Zr.length;){const e=Zr[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)Zr.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?Vr.basename(this.path):void 0}set basename(e){na(e,"basename"),ta(e,"basename"),this.path=Vr.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?Vr.dirname(this.path):void 0}set dirname(e){ra(this.basename,"dirname"),this.path=Vr.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?Vr.extname(this.path):void 0}set extname(e){if(ta(e,"extname"),ra(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Vr.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){$r(e)&&(e=Jr(e)),na(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?Vr.basename(this.path,this.extname):void 0}set stem(e){na(e,"stem"),ta(e,"stem"),this.path=Vr.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new Qr(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){if(void 0===this.value)return"";if("string"==typeof this.value)return this.value;return new TextDecoder(e||void 0).decode(this.value)}}function ta(e,t){if(e&&e.includes(Vr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Vr.sep+"`")}function na(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function ra(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const aa={abandonedHeadElementChild:{reason:"Unexpected metadata element after head",description:"Unexpected element after head. Expected the element before `</head>`",url:!1},abruptClosingOfEmptyComment:{reason:"Unexpected abruptly closed empty comment",description:"Unexpected `>` or `->`. Expected `--\x3e` to close comments"},abruptDoctypePublicIdentifier:{reason:"Unexpected abruptly closed public identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the public identifier"},abruptDoctypeSystemIdentifier:{reason:"Unexpected abruptly closed system identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the identifier identifier"},absenceOfDigitsInNumericCharacterReference:{reason:"Unexpected non-digit at start of numeric character reference",description:"Unexpected `%c`. Expected `[0-9]` for decimal references or `[0-9a-fA-F]` for hexadecimal references"},cdataInHtmlContent:{reason:"Unexpected CDATA section in HTML",description:"Unexpected `<![CDATA[` in HTML. Remove it, use a comment, or encode special characters instead"},characterReferenceOutsideUnicodeRange:{reason:"Unexpected too big numeric character reference",description:"Unexpectedly high character reference. Expected character references to be at most hexadecimal 10ffff (or decimal 1114111)"},closingOfElementWithOpenChildElements:{reason:"Unexpected closing tag with open child elements",description:"Unexpectedly closing tag. Expected other tags to be closed first",url:!1},controlCharacterInInputStream:{reason:"Unexpected control character",description:"Unexpected control character `%x`. Expected a non-control code point, 0x00, or ASCII whitespace"},controlCharacterReference:{reason:"Unexpected control character reference",description:"Unexpectedly control character in reference. Expected a non-control code point, 0x00, or ASCII whitespace"},disallowedContentInNoscriptInHead:{reason:"Disallowed content inside `<noscript>` in `<head>`",description:"Unexpected text character `%c`. Only use text in `<noscript>`s in `<body>`",url:!1},duplicateAttribute:{reason:"Unexpected duplicate attribute",description:"Unexpectedly double attribute. Expected attributes to occur only once"},endTagWithAttributes:{reason:"Unexpected attribute on closing tag",description:"Unexpected attribute. Expected `>` instead"},endTagWithTrailingSolidus:{reason:"Unexpected slash at end of closing tag",description:"Unexpected `%c-1`. Expected `>` instead"},endTagWithoutMatchingOpenElement:{reason:"Unexpected unopened end tag",description:"Unexpected end tag. Expected no end tag or another end tag",url:!1},eofBeforeTagName:{reason:"Unexpected end of file",description:"Unexpected end of file. Expected tag name instead"},eofInCdata:{reason:"Unexpected end of file in CDATA",description:"Unexpected end of file. Expected `]]>` to close the CDATA"},eofInComment:{reason:"Unexpected end of file in comment",description:"Unexpected end of file. Expected `--\x3e` to close the comment"},eofInDoctype:{reason:"Unexpected end of file in doctype",description:"Unexpected end of file. Expected a valid doctype (such as `<!doctype html>`)"},eofInElementThatCanContainOnlyText:{reason:"Unexpected end of file in element that can only contain text",description:"Unexpected end of file. Expected text or a closing tag",url:!1},eofInScriptHtmlCommentLikeText:{reason:"Unexpected end of file in comment inside script",description:"Unexpected end of file. Expected `--\x3e` to close the comment"},eofInTag:{reason:"Unexpected end of file in tag",description:"Unexpected end of file. Expected `>` to close the tag"},incorrectlyClosedComment:{reason:"Incorrectly closed comment",description:"Unexpected `%c-1`. Expected `--\x3e` to close the comment"},incorrectlyOpenedComment:{reason:"Incorrectly opened comment",description:"Unexpected `%c`. Expected `\x3c!--` to open the comment"},invalidCharacterSequenceAfterDoctypeName:{reason:"Invalid sequence after doctype name",description:"Unexpected sequence at `%c`. Expected `public` or `system`"},invalidFirstCharacterOfTagName:{reason:"Invalid first character in tag name",description:"Unexpected `%c`. Expected an ASCII letter instead"},misplacedDoctype:{reason:"Misplaced doctype",description:"Unexpected doctype. Expected doctype before head",url:!1},misplacedStartTagForHeadElement:{reason:"Misplaced `<head>` start tag",description:"Unexpected start tag `<head>`. Expected `<head>` directly after doctype",url:!1},missingAttributeValue:{reason:"Missing attribute value",description:"Unexpected `%c-1`. Expected an attribute value or no `%c-1` instead"},missingDoctype:{reason:"Missing doctype before other content",description:"Expected a `<!doctype html>` before anything else",url:!1},missingDoctypeName:{reason:"Missing doctype name",description:"Unexpected doctype end at `%c`. Expected `html` instead"},missingDoctypePublicIdentifier:{reason:"Missing public identifier in doctype",description:"Unexpected `%c`. Expected identifier for `public` instead"},missingDoctypeSystemIdentifier:{reason:"Missing system identifier in doctype",description:'Unexpected `%c`. Expected identifier for `system` instead (suggested: `"about:legacy-compat"`)'},missingEndTagName:{reason:"Missing name in end tag",description:"Unexpected `%c`. Expected an ASCII letter instead"},missingQuoteBeforeDoctypePublicIdentifier:{reason:"Missing quote before public identifier in doctype",description:"Unexpected `%c`. Expected `\"` or `'` instead"},missingQuoteBeforeDoctypeSystemIdentifier:{reason:"Missing quote before system identifier in doctype",description:"Unexpected `%c`. Expected `\"` or `'` instead"},missingSemicolonAfterCharacterReference:{reason:"Missing semicolon after character reference",description:"Unexpected `%c`. Expected `;` instead"},missingWhitespaceAfterDoctypePublicKeyword:{reason:"Missing whitespace after public identifier in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceAfterDoctypeSystemKeyword:{reason:"Missing whitespace after system identifier in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBeforeDoctypeName:{reason:"Missing whitespace before doctype name",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBetweenAttributes:{reason:"Missing whitespace between attributes",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:{reason:"Missing whitespace between public and system identifiers in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},nestedComment:{reason:"Unexpected nested comment",description:"Unexpected `\x3c!--`. Expected `--\x3e`"},nestedNoscriptInHead:{reason:"Unexpected nested `<noscript>` in `<head>`",description:"Unexpected `<noscript>`. Expected a closing tag or a meta element",url:!1},nonConformingDoctype:{reason:"Unexpected non-conforming doctype declaration",description:'Expected `<!doctype html>` or `<!doctype html system "about:legacy-compat">`',url:!1},nonVoidHtmlElementStartTagWithTrailingSolidus:{reason:"Unexpected trailing slash on start tag of non-void element",description:"Unexpected `/`. Expected `>` instead"},noncharacterCharacterReference:{reason:"Unexpected noncharacter code point referenced by character reference",description:"Unexpected code point. Do not use noncharacters in HTML"},noncharacterInInputStream:{reason:"Unexpected noncharacter character",description:"Unexpected code point `%x`. Do not use noncharacters in HTML"},nullCharacterReference:{reason:"Unexpected NULL character referenced by character reference",description:"Unexpected code point. Do not use NULL characters in HTML"},openElementsLeftAfterEof:{reason:"Unexpected end of file",description:"Unexpected end of file. Expected closing tag instead",url:!1},surrogateCharacterReference:{reason:"Unexpected surrogate character referenced by character reference",description:"Unexpected code point. Do not use lone surrogate characters in HTML"},surrogateInInputStream:{reason:"Unexpected surrogate character",description:"Unexpected code point `%x`. Do not use lone surrogate characters in HTML"},unexpectedCharacterAfterDoctypeSystemIdentifier:{reason:"Invalid character after system identifier in doctype",description:"Unexpected character at `%c`. Expected `>`"},unexpectedCharacterInAttributeName:{reason:"Unexpected character in attribute name",description:"Unexpected `%c`. Expected whitespace, `/`, `>`, `=`, or probably an ASCII letter"},unexpectedCharacterInUnquotedAttributeValue:{reason:"Unexpected character in unquoted attribute value",description:"Unexpected `%c`. Quote the attribute value to include it"},unexpectedEqualsSignBeforeAttributeName:{reason:"Unexpected equals sign before attribute name",description:"Unexpected `%c`. Add an attribute name before it"},unexpectedNullCharacter:{reason:"Unexpected NULL character",description:"Unexpected code point `%x`. Do not use NULL characters in HTML"},unexpectedQuestionMarkInsteadOfTagName:{reason:"Unexpected question mark instead of tag name",description:"Unexpected `%c`. Expected an ASCII letter instead"},unexpectedSolidusInTag:{reason:"Unexpected slash in tag",description:"Unexpected `%c-1`. Expected it followed by `>` or in a quoted attribute value"},unknownNamedCharacterReference:{reason:"Unexpected unknown named character reference",description:"Unexpected character reference. Expected known named character references"}},oa=/-[a-z]/g,ia=/%c(?:([-+])(\d+))?/g,sa=/%x/g,la={2:!0,1:!1,0:null},ca={};function ua(e,t){const n=t||ca,r=n.onerror,a=e instanceof ea?e:new ea(e),o=n.fragment?qr:Yr,i=String(a),s=o(i,{sourceCodeLocationInfo:!0,onParseError:n.onerror?function(e){const t=e.code,o=function(e){return e.replace(oa,ha)}(t),s=n[o],l=null==s||s,c="number"==typeof l?l:l?1:0;if(c){const n=aa[o],i=new Qr(u(n.reason),{place:{start:{line:e.startLine,column:e.startCol,offset:e.startOffset},end:{line:e.endLine,column:e.endCol,offset:e.endOffset}},ruleId:t,source:"hast-util-from-html"});a.path&&(i.file=a.path,i.name=a.path+":"+i.name),i.fatal=la[c],i.note=u(n.description),i.url=!1===n.url?void 0:"https://html.spec.whatwg.org/multipage/parsing.html#parse-error-"+t,r(i)}function u(t){return t.replace(ia,function(t,n,r){const a=(r?Number.parseInt(r,10):0)*("-"===n?-1:1);return function(e){return"`"===e?"` ` `":e}(i.charAt(e.startOffset+a))}).replace(sa,function(){return t=i.charCodeAt(e.startOffset),"0x"+t.toString(16).toUpperCase();var t})}}:null,scriptingEnabled:!1});return Ke(s,{file:a,space:n.space,verbose:n.verbose})}function ha(e){return e.charAt(1).toUpperCase()}function pa(e){const{emitParseErrors:t,...n}={...this.data("settings"),...e};this.parser=function(e,r){return ua(e,{...n,onerror:t?function(e){r.path&&(e.name=r.path+":"+e.name,e.file=r.path),r.messages.push(e)}:void 0})}}const da="object"==typeof self?self:globalThis,Ea=e=>((e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=a=>{if(e.has(a))return e.get(a);const[o,i]=t[a];switch(o){case 0:case-1:return n(i,a);case 1:{const e=n([],a);for(const t of i)e.push(r(t));return e}case 2:{const e=n({},a);for(const[t,n]of i)e[r(t)]=r(n);return e}case 3:return n(new Date(i),a);case 4:{const{source:e,flags:t}=i;return n(new RegExp(e,t),a)}case 5:{const e=n(new Map,a);for(const[t,n]of i)e.set(r(t),r(n));return e}case 6:{const e=n(new Set,a);for(const t of i)e.add(r(t));return e}case 7:{const{name:e,message:t}=i;return n(new da[e](t),a)}case 8:return n(BigInt(i),a);case"BigInt":return n(Object(BigInt(i)),a);case"ArrayBuffer":return n(new Uint8Array(i).buffer,i);case"DataView":{const{buffer:e}=new Uint8Array(i);return n(new DataView(e),i)}}return n(new da[o](i),a)};return r})(new Map,e)(0),fa="",{toString:ma}={},{keys:Ta}=Object,ga=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=ma.call(e).slice(8,-1);switch(n){case"Array":return[1,fa];case"Object":return[2,fa];case"Date":return[3,fa];case"RegExp":return[4,fa];case"Map":return[5,fa];case"Set":return[6,fa];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},Aa=([e,t])=>0===e&&("function"===t||"symbol"===t),Da=(e,{json:t,lossy:n}={})=>{const r=[];return((e,t,n,r)=>{const a=(e,t)=>{const a=r.push(e)-1;return n.set(t,a),a},o=r=>{if(n.has(r))return n.get(r);let[i,s]=ga(r);switch(i){case 0:{let t=r;switch(s){case"bigint":i=8,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);t=null;break;case"undefined":return a([-1],r)}return a([i,t],r)}case 1:{if(s){let e=r;return"DataView"===s?e=new Uint8Array(r.buffer):"ArrayBuffer"===s&&(e=new Uint8Array(r)),a([s,[...e]],r)}const e=[],t=a([i,e],r);for(const n of r)e.push(o(n));return t}case 2:{if(s)switch(s){case"BigInt":return a([s,r.toString()],r);case"Boolean":case"Number":case"String":return a([s,r.valueOf()],r)}if(t&&"toJSON"in r)return o(r.toJSON());const n=[],l=a([i,n],r);for(const t of Ta(r))!e&&Aa(ga(r[t]))||n.push([o(t),o(r[t])]);return l}case 3:return a([i,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return a([i,{source:e,flags:t}],r)}case 5:{const t=[],n=a([i,t],r);for(const[a,i]of r)(e||!Aa(ga(a))&&!Aa(ga(i)))&&t.push([o(a),o(i)]);return n}case 6:{const t=[],n=a([i,t],r);for(const a of r)!e&&Aa(ga(a))||t.push(o(a));return n}}const{message:l}=r;return a([i,{name:s,message:l}],r)};return o})(!(t||n),!!t,new Map,r)(e),r},_a="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?Ea(Da(e,t)):structuredClone(e):(e,t)=>Ea(Da(e,t));class Ca{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function Na(e,t){const n={},r={};let a=-1;for(;++a<e.length;)Object.assign(n,e[a].property),Object.assign(r,e[a].normal);return new Ca(n,r,t)}function Sa(e){return e.toLowerCase()}Ca.prototype.property={},Ca.prototype.normal={},Ca.prototype.space=null;class Ia{constructor(e,t){this.property=e,this.attribute=t}}Ia.prototype.space=null,Ia.prototype.boolean=!1,Ia.prototype.booleanish=!1,Ia.prototype.overloadedBoolean=!1,Ia.prototype.number=!1,Ia.prototype.commaSeparated=!1,Ia.prototype.spaceSeparated=!1,Ia.prototype.commaOrSpaceSeparated=!1,Ia.prototype.mustUseProperty=!1,Ia.prototype.defined=!1;let ba=0;const ka=Ma(),ya=Ma(),Oa=Ma(),Ra=Ma(),La=Ma(),Fa=Ma(),Pa=Ma();function Ma(){return 2**++ba}const Ba=Object.freeze(Object.defineProperty({__proto__:null,boolean:ka,booleanish:ya,commaOrSpaceSeparated:Pa,commaSeparated:Fa,number:Ra,overloadedBoolean:Oa,spaceSeparated:La},Symbol.toStringTag,{value:"Module"})),va=Object.keys(Ba);class xa extends Ia{constructor(e,t,n,r){let a=-1;if(super(e,t),wa(this,"space",r),"number"==typeof n)for(;++a<va.length;){const e=va[a];wa(this,va[a],(n&Ba[e])===Ba[e])}}}function wa(e,t,n){n&&(e[t]=n)}xa.prototype.defined=!0;const Ua={}.hasOwnProperty;function Ha(e){const t={},n={};let r;for(r in e.properties)if(Ua.call(e.properties,r)){const a=e.properties[r],o=new xa(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Sa(r)]=r,n[Sa(o.attribute)]=r}return new Ca(t,n,e.space)}const Ga=Ha({space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Ya=Ha({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function qa(e,t){return t in e?e[t]:t}function za(e,t){return qa(e,t.toLowerCase())}const Wa=Ha({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:za,properties:{xmlns:null,xmlnsXLink:null}}),ja=Ha({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:ya,ariaAutoComplete:null,ariaBusy:ya,ariaChecked:ya,ariaColCount:Ra,ariaColIndex:Ra,ariaColSpan:Ra,ariaControls:La,ariaCurrent:null,ariaDescribedBy:La,ariaDetails:null,ariaDisabled:ya,ariaDropEffect:La,ariaErrorMessage:null,ariaExpanded:ya,ariaFlowTo:La,ariaGrabbed:ya,ariaHasPopup:null,ariaHidden:ya,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:La,ariaLevel:Ra,ariaLive:null,ariaModal:ya,ariaMultiLine:ya,ariaMultiSelectable:ya,ariaOrientation:null,ariaOwns:La,ariaPlaceholder:null,ariaPosInSet:Ra,ariaPressed:ya,ariaReadOnly:ya,ariaRelevant:null,ariaRequired:ya,ariaRoleDescription:La,ariaRowCount:Ra,ariaRowIndex:Ra,ariaRowSpan:Ra,ariaSelected:ya,ariaSetSize:Ra,ariaSort:null,ariaValueMax:Ra,ariaValueMin:Ra,ariaValueNow:Ra,ariaValueText:null,role:null}}),Qa=Ha({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:za,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Fa,acceptCharset:La,accessKey:La,action:null,allow:null,allowFullScreen:ka,allowPaymentRequest:ka,allowUserMedia:ka,alt:null,as:null,async:ka,autoCapitalize:null,autoComplete:La,autoFocus:ka,autoPlay:ka,blocking:La,capture:null,charSet:null,checked:ka,cite:null,className:La,cols:Ra,colSpan:null,content:null,contentEditable:ya,controls:ka,controlsList:La,coords:Ra|Fa,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ka,defer:ka,dir:null,dirName:null,disabled:ka,download:Oa,draggable:ya,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ka,formTarget:null,headers:La,height:Ra,hidden:ka,high:Ra,href:null,hrefLang:null,htmlFor:La,httpEquiv:La,id:null,imageSizes:null,imageSrcSet:null,inert:ka,inputMode:null,integrity:null,is:null,isMap:ka,itemId:null,itemProp:La,itemRef:La,itemScope:ka,itemType:La,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ka,low:Ra,manifest:null,max:null,maxLength:Ra,media:null,method:null,min:null,minLength:Ra,multiple:ka,muted:ka,name:null,nonce:null,noModule:ka,noValidate:ka,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ka,optimum:Ra,pattern:null,ping:La,placeholder:null,playsInline:ka,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ka,referrerPolicy:null,rel:La,required:ka,reversed:ka,rows:Ra,rowSpan:Ra,sandbox:La,scope:null,scoped:ka,seamless:ka,selected:ka,shadowRootClonable:ka,shadowRootDelegatesFocus:ka,shadowRootMode:null,shape:null,size:Ra,sizes:null,slot:null,span:Ra,spellCheck:ya,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Ra,step:null,style:null,tabIndex:Ra,target:null,title:null,translate:null,type:null,typeMustMatch:ka,useMap:null,value:ya,width:Ra,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:La,axis:null,background:null,bgColor:null,border:Ra,borderColor:null,bottomMargin:Ra,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ka,declare:ka,event:null,face:null,frame:null,frameBorder:null,hSpace:Ra,leftMargin:Ra,link:null,longDesc:null,lowSrc:null,marginHeight:Ra,marginWidth:Ra,noResize:ka,noHref:ka,noShade:ka,noWrap:ka,object:null,profile:null,prompt:null,rev:null,rightMargin:Ra,rules:null,scheme:null,scrolling:ya,standby:null,summary:null,text:null,topMargin:Ra,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Ra,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ka,disableRemotePlayback:ka,prefix:null,property:null,results:Ra,security:null,unselectable:null}}),Va=Ha({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:qa,properties:{about:Pa,accentHeight:Ra,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Ra,amplitude:Ra,arabicForm:null,ascent:Ra,attributeName:null,attributeType:null,azimuth:Ra,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Ra,by:null,calcMode:null,capHeight:Ra,className:La,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Ra,diffuseConstant:Ra,direction:null,display:null,dur:null,divisor:Ra,dominantBaseline:null,download:ka,dx:null,dy:null,edgeMode:null,editable:null,elevation:Ra,enableBackground:null,end:null,event:null,exponent:Ra,externalResourcesRequired:null,fill:null,fillOpacity:Ra,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Fa,g2:Fa,glyphName:Fa,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Ra,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Ra,horizOriginX:Ra,horizOriginY:Ra,id:null,ideographic:Ra,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Ra,k:Ra,k1:Ra,k2:Ra,k3:Ra,k4:Ra,kernelMatrix:Pa,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Ra,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Ra,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Ra,overlineThickness:Ra,paintOrder:null,panose1:null,path:null,pathLength:Ra,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:La,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Ra,pointsAtY:Ra,pointsAtZ:Ra,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Pa,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Pa,rev:Pa,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Pa,requiredFeatures:Pa,requiredFonts:Pa,requiredFormats:Pa,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Ra,specularExponent:Ra,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Ra,strikethroughThickness:Ra,string:null,stroke:null,strokeDashArray:Pa,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Ra,strokeOpacity:Ra,strokeWidth:null,style:null,surfaceScale:Ra,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Pa,tabIndex:Ra,tableValues:null,target:null,targetX:Ra,targetY:Ra,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Pa,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Ra,underlineThickness:Ra,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Ra,values:null,vAlphabetic:Ra,vMathematical:Ra,vectorEffect:null,vHanging:Ra,vIdeographic:Ra,version:null,vertAdvY:Ra,vertOriginX:Ra,vertOriginY:Ra,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Ra,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Ka=/^data[-\w.:]+$/i,Xa=/-[a-z]/g,$a=/[A-Z]/g;function Ja(e){return"-"+e.toLowerCase()}function Za(e){return e.charAt(1).toUpperCase()}const eo=Na([Ya,Ga,Wa,ja,Qa],"html"),to=Na([Ya,Ga,Wa,ja,Va],"svg"),no={},ro={}.hasOwnProperty,ao=Y("type",{handlers:{root:function(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=io(e.children,n,t),so(e,n),n},element:function(e,t){const n=t;let r=n;"element"===e.type&&"svg"===e.tagName.toLowerCase()&&"html"===n.space&&(r=to);const a=[];let o;if(e.properties)for(o in e.properties)if("children"!==o&&ro.call(e.properties,o)){const t=oo(r,o,e.properties[o]);t&&a.push(t)}const i=r.space,s={nodeName:e.tagName,tagName:e.tagName,attrs:a,namespaceURI:je[i],childNodes:[],parentNode:null};s.childNodes=io(e.children,s,r),so(e,s),"template"===e.tagName&&e.content&&(s.content=function(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=io(e.children,n,t),so(e,n),n}(e.content,r));return s},text:function(e){const t={nodeName:"#text",value:e.value,parentNode:null};return so(e,t),t},comment:function(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return so(e,t),t},doctype:function(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return so(e,t),t}}});function oo(e,t,n){const r=function(e,t){const n=Sa(t);let r=t,a=Ia;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&Ka.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(Xa,Za);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!Xa.test(e)){let n=e.replace($a,Ja);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}a=xa}return new a(r,t)}(e,t);if(!1===n||null==n||"number"==typeof n&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?he(n):de(n));const a={name:r.attribute,value:!0===n?"":String(n)};if(r.space&&"html"!==r.space&&"svg"!==r.space){const e=a.name.indexOf(":");e<0?a.prefix="":(a.name=a.name.slice(e+1),a.prefix=r.attribute.slice(0,e)),a.namespace=je[r.space]}return a}function io(e,t,n){let r=-1;const a=[];if(e)for(;++r<e.length;){const o=ao(e[r],n);o.parentNode=t,a.push(o)}return a}function so(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const lo=uo("end"),co=uo("start");function uo(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}const ho=function(e){if(null==e)return Eo;if("function"==typeof e)return po(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=ho(e[n]);return po(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}(e):function(e){const t=e;return po(n);function n(n){const r=n;let a;for(a in e)if(r[a]!==t[a])return!1;return!0}}(e);if("string"==typeof e)return function(e){return po(t);function t(t){return t&&t.type===e}}(e);throw new Error("Expected function, string, or object as test")};function po(e){return function(t,n,r){return Boolean(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function Eo(){return!0}const fo=[],mo=!0,To=!1,go="skip";function Ao(e,t,n,r){let a;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):a=t;const o=ho(a),i=r?-1:1;!function e(a,s,l){const c=a&&"object"==typeof a?a:{};if("string"==typeof c.type){const e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node ("+a.type+(e?"<"+e+">":"")+")"})}return u;function u(){let c,u,h,p=fo;if((!t||o(a,s,l[l.length-1]||void 0))&&(p=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[mo,e];return null==e?fo:[e]}(n(a,l)),p[0]===To))return p;if("children"in a&&a.children){const t=a;if(t.children&&p[0]!==go)for(u=(r?t.children.length:-1)+i,h=l.concat(t);u>-1&&u<t.children.length;){const n=t.children[u];if(c=e(n,u,h)(),c[0]===To)return c;u="number"==typeof c[1]?c[1]:u+i}}return p}}(e,void 0,[])()}function Do(e,t,n,r){let a,o,i;"function"==typeof t&&"function"!=typeof n?(o=void 0,i=t,a=n):(o=t,i=n,a=r),Ao(e,o,function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return i(e,r,n)},a)}const _o=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,Co=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),No={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function So(e,t){const n=function(e){const t="root"===e.type?e.children[0]:e;return Boolean(t&&("doctype"===t.type||"element"===t.type&&"html"===t.tagName.toLowerCase()))}(e),r=Y("type",{handlers:{root:bo,element:ko,text:yo,comment:Lo,doctype:Oo,raw:Fo},unknown:Po}),a={parser:n?new jn(No):jn.getFragmentParser(void 0,No),handle(e){r(e,a)},stitches:!1,options:t||{}};r(e,a),Mo(a,co());const o=Ke(n?a.parser.document:a.parser.getFragment(),{file:a.options.file});return a.stitches&&Do(o,"comment",function(e,t,n){const r=e;if(r.value.stitch&&n&&void 0!==t){return n.children[t]=r.value.stitch,t}}),"root"===o.type&&1===o.children.length&&o.children[0].type===e.type?o.children[0]:o}function Io(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function bo(e,t){Io(e.children,t)}function ko(e,t){!function(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Jt.PLAINTEXT)return;Mo(t,co(e));const r=t.parser.openElements.current;let a="namespaceURI"in r?r.namespaceURI:je.html;a===je.html&&"svg"===n&&(a=je.svg);const o=function(e,t){const n=(t||no).space;return ao(e,"svg"===n?to:eo)}({...e,children:[]},{space:a===je.svg?"svg":"html"}),i={type:Tt.START_TAG,tagName:n,tagID:jt(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in o?o.attrs:[],location:vo(e)};t.parser.currentToken=i,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}(e,t),Io(e.children,t),function(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&i.includes(n))return;if(t.parser.tokenizer.state===Jt.PLAINTEXT)return;Mo(t,lo(e));const r={type:Tt.END_TAG,tagName:n,tagID:jt(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:vo(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n!==t.parser.tokenizer.lastStartTagName||t.parser.tokenizer.state!==Jt.RCDATA&&t.parser.tokenizer.state!==Jt.RAWTEXT&&t.parser.tokenizer.state!==Jt.SCRIPT_DATA||(t.parser.tokenizer.state=Jt.DATA)}(e,t)}function yo(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:Tt.CHARACTER,chars:e.value,location:vo(e)};Mo(t,co(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function Oo(e,t){const n={type:Tt.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:vo(e)};Mo(t,co(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function Ro(e,t){t.stitches=!0;const n=function(e){return _a("children"in e?{...e,children:[]}:e)}(e);if("children"in e&&"children"in n){const r=So({type:"root",children:e.children},t.options);n.children=r.children}Lo({type:"comment",value:{stitch:n}},t)}function Lo(e,t){const n=e.value,r={type:Tt.COMMENT,data:n,location:vo(e)};Mo(t,co(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function Fo(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,Bo(t,co(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(_o,"&lt;$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),72===t.parser.tokenizer.state||78===t.parser.tokenizer.state){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const e=t.parser.tokenizer._consume();t.parser.tokenizer._callState(e)}}function Po(e,t){const n=e;if(!t.options.passThrough||!t.options.passThrough.includes(n.type)){let e="";throw Co.has(n.type)&&(e=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+e)}Ro(n,t)}function Mo(e,t){Bo(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=Jt.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function Bo(e,t){if(t&&void 0!==t.offset){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=1-t.column,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function vo(e){const t=co(e)||{line:void 0,column:void 0,offset:void 0},n=lo(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function xo(e){return function(t,n){return So(t,{...e,file:n})}}const wo=function(e,t,n,r,a){const o=Uo(t);return!!Yo(e)&&o.call(a,e,n,r)},Uo=function(e){if(null==e)return Go;if("string"==typeof e)return function(e){return Ho(t);function t(t){return t.tagName===e}}(e);if("object"==typeof e)return function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Uo(e[n]);return Ho(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}(e);if("function"==typeof e)return Ho(e);throw new Error("Expected function, string, or array as `test`")};function Ho(e){return function(t,n,r){return Boolean(Yo(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function Go(e){return Boolean(e&&"object"==typeof e&&"type"in e&&"element"===e.type&&"tagName"in e&&"string"==typeof e.tagName)}function Yo(e){return null!==e&&"object"==typeof e&&"type"in e&&"tagName"in e}const qo=Uo(function(e){return"audio"===e.tagName||"canvas"===e.tagName||"embed"===e.tagName||"iframe"===e.tagName||"img"===e.tagName||"math"===e.tagName||"object"===e.tagName||"picture"===e.tagName||"svg"===e.tagName||"video"===e.tagName}),zo=["address","article","aside","blockquote","body","br","caption","center","col","colgroup","dd","dialog","dir","div","dl","dt","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","legend","li","li","listing","main","menu","nav","ol","optgroup","option","p","plaintext","pre","section","summary","table","tbody","td","td","tfoot","th","th","thead","tr","ul","wbr","xmp"],Wo=["button","input","select","textarea"],jo=["area","base","basefont","dialog","datalist","head","link","meta","noembed","noframes","param","rp","script","source","style","template","track","title"],Qo={},Vo=ho(["comment","doctype"]);function Ko(e,t){if("children"in e){const n={...t};return("root"===e.type||Zo(e))&&(n.before=!0,n.after=!0),n.whitespace=function(e,t){if("tagName"in e&&e.properties)switch(e.tagName){case"listing":case"plaintext":case"script":case"style":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return e.properties.wrap?"pre-wrap":"pre";case"td":case"th":return e.properties.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}return t.whitespace}(e,t),function(e,t){let n=t.before;const r=t.after,a=e.children;let o=a.length,i=-1;for(;++i<o;){const e=Ko(a[i],{...t,after:Xo(a,i,r),before:n});e.remove?(a.splice(i,1),i--,o--):e.ignore||(n=e.stripAtStart),Jo(a[i])&&(n=!1)}return{ignore:!1,stripAtStart:Boolean(n||r),remove:!1}}(e,n)}if("text"===e.type){if("normal"===t.whitespace)return function(e,t){const n=t.collapse(e.value),r={ignore:!1,stripAtStart:!1,remove:!1};let a=0,o=n.length;t.before&&ti(n.charAt(0))&&a++;a!==o&&ti(n.charAt(o-1))&&(t.after?o--:r.stripAtStart=!0);a===o?r.remove=!0:e.value=n.slice(a,o);return r}(e,t);"nowrap"===t.whitespace&&(e.value=t.collapse(e.value))}return{ignore:Vo(e),stripAtStart:!1,remove:!1}}function Xo(e,t,n){for(;++t<e.length;){const n=e[t];let r=$o(n);if(void 0===r&&"children"in n&&!ei(n)&&(r=Xo(n.children,-1)),"boolean"==typeof r)return r}return n}function $o(e){if("element"===e.type){if(Jo(e))return!1;if(Zo(e))return!0}else if("text"===e.type){if(!fe(e))return!1}else if(!Vo(e))return!1}function Jo(e){return qo(e)||wo(e,Wo)}function Zo(e){return wo(e,zo)}function ei(e){return Boolean("element"===e.type&&e.properties.hidden)||Vo(e)||wo(e,jo)}function ti(e){return" "===e||"\n"===e}function ni(e){const t=/\r?\n|\r/.exec(e);return t?t[0]:" "}function ri(){return" "}function ai(e){return function(t){return String(t).replace(/[\t\n\v\f\r ]+/g,e)}}function oi(e){return function(t){!function(e,t){Ko(e,{collapse:ai((t||Qo).newlines?ni:ri),whitespace:"normal"})}(t,e)}}const ii=function(e,t,n){const r=ho(n);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if("number"==typeof t){if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if((t=e.children.indexOf(t))<0)throw new Error("Expected child node or index");for(;++t<e.children.length;)if(r(e.children[t],t,e))return e.children[t]},si=/\n/g,li=/[\t ]+/g,ci=Uo("br"),ui=Uo(function(e){return"td"===e.tagName||"th"===e.tagName}),hi=Uo("p"),pi=Uo("tr"),di=Uo(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",function(e){return Boolean((e.properties||{}).hidden)},function(e){return"dialog"===e.tagName&&!(e.properties||{}).open}]),Ei=Uo(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function fi(e,t){const n="children"in e?e.children:[],r=Ei(e),a=Ai(e,{whitespace:{}.whitespace||"normal"}),o=[];"text"!==e.type&&"comment"!==e.type||o.push(...Ti(e,{breakBefore:!0,breakAfter:!0}));let i=-1;for(;++i<n.length;)o.push(...mi(n[i],e,{whitespace:a,breakBefore:i?void 0:r,breakAfter:i<n.length-1?ci(n[i+1]):r}));const s=[];let l;for(i=-1;++i<o.length;){const e=o[i];"number"==typeof e?void 0!==l&&e>l&&(l=e):e&&(void 0!==l&&l>-1&&s.push("\n".repeat(l)||" "),l=-1,s.push(e))}return s.join("")}function mi(e,t,n){return"element"===e.type?function(e,t,n){const r=Ai(e,n),a=e.children||[];let o,i,s=-1,l=[];if(di(e))return l;ci(e)||pi(e)&&ii(t,e,pi)?i="\n":hi(e)?(o=2,i=2):Ei(e)&&(o=1,i=1);for(;++s<a.length;)l=l.concat(mi(a[s],e,{whitespace:r,breakBefore:s?void 0:o,breakAfter:s<a.length-1?ci(a[s+1]):i}));ui(e)&&ii(t,e,ui)&&l.push("\t");o&&l.unshift(o);i&&l.push(i);return l}(e,t,n):"text"===e.type?"normal"===n.whitespace?Ti(e,n):function(e){return[String(e.value)]}(e):[]}function Ti(e,t){const n=String(e.value),r=[],a=[];let o=0;for(;o<=n.length;){si.lastIndex=o;const e=si.exec(n),a=e&&"index"in e?e.index:n.length;r.push(gi(n.slice(o,a).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),0!==o||t.breakBefore,a!==n.length||t.breakAfter)),o=a+1}let i,s=-1;for(;++s<r.length;)8203===r[s].charCodeAt(r[s].length-1)||s<r.length-1&&8203===r[s+1].charCodeAt(0)?(a.push(r[s]),i=void 0):r[s]?("number"==typeof i&&a.push(i),a.push(r[s]),i=0):0!==s&&s!==r.length-1||a.push(0);return a}function gi(e,t,n){const r=[];let a,o=0;for(;o<e.length;){li.lastIndex=o;const n=li.exec(e);a=n?n.index:e.length,o||a||!n||t||r.push(""),o!==a&&r.push(e.slice(o,a)),o=n?a+n[0].length:a}return o===a||n||r.push(""),r.join(" ")}function Ai(e,t){if("element"===e.type){const n=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return n.wrap?"pre-wrap":"pre";case"td":case"th":return n.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}function Di(e){const t=String(e);let n=t.length;for(;n>0;){const e=t.codePointAt(n-1);if(void 0===e||10!==e&&13!==e)break;n--}return t.slice(0,n)}const _i="language-";function Ci(e,t){const n=t.children;let r,a,o=-1;if("pre"===t.tagName)for(;++o<n.length;){const e=n[o];if("element"===e.type&&"code"===e.tagName&&e.properties&&e.properties.className&&Array.isArray(e.properties.className)){r=e.properties.className;break}}if(r)for(o=-1;++o<r.length;)if(String(r[o]).slice(0,9)===_i){a=String(r[o]).slice(9);break}const i={type:"code",lang:a||null,meta:null,value:Di(fi(t))};return e.patch(t,i),i}function Ni(e,t){const n={type:"delete",children:e.all(t)};return e.patch(t,n),n}function Si(e){let t=-1;if(e.length>1)for(;++t<e.length;)if(e[t].spread)return!0;return!1}function Ii(e,t){const n=e.all({type:"root",children:t}),r=e.toSpecificContent(n,bi);return 0===r.length?[]:1===r.length?r[0].children:[{type:"list",ordered:!1,start:null,spread:Si(r),children:r}]}function bi(){return{type:"listItem",spread:!1,checked:null,children:[]}}function ki(e,t){const n={type:"emphasis",children:e.all(t)};return e.patch(t,n),n}function yi(e){let t=0,n=e.length;for(;t<n&&"break"===e[t].type;)t++;for(;n>t&&"break"===e[n-1].type;)n--;return 0===t&&n===e.length?e:e.slice(t,n)}function Oi(e,t){const n={type:"heading",depth:Number(t.tagName.charAt(1))||1,children:yi(e.all(t))};return e.patch(t,n),n}function Ri(e,t){const n=t.properties||{},r={type:"image",url:e.resolve(String(n.src||"")||null),title:n.title?String(n.title):null,alt:n.alt?String(n.alt):""};return e.patch(t,r),r}function Li(e,t){const n={type:"inlineCode",value:fi(t)};return e.patch(t,n),n}function Fi(e,t){const n=[],r=[],a=t||e.properties||{},o=Pi(e),i=Math.min(Number.parseInt(String(a.size),10),0)||(a.multiple?4:1);let s=-1;for(;++s<o.length;){const e=o[s];e&&e.properties&&e.properties.selected&&n.push(e)}const l=n.length>0?n:o,c=Math.min(l.length,i);for(s=-1;++s<c;){const e=l[s],t=e.properties||{},n=fi(e),a=n||String(t.label||""),o=String(t.value||"")||n;r.push([o,a===o?void 0:a])}return r}function Pi(e){const t=[];let n=-1;for(;++n<e.children.length;){const r=e.children[n];"children"in r&&Array.isArray(r.children)&&t.push(...Pi(r)),"element"!==r.type||"option"!==r.tagName||r.properties&&r.properties.disabled||t.push(r)}return t}const Mi={}.hasOwnProperty;const Bi=new Set(["pingback","prefetch","stylesheet"]);const vi=Uo(["a","abbr","area","b","bdi","bdo","br","button","cite","code","data","datalist","del","dfn","em","i","input","ins","kbd","keygen","label","map","mark","meter","noscript","output","progress","q","ruby","s","samp","script","select","small","span","strong","sub","sup","template","textarea","time","u","var","wbr"]),xi=Uo("meta");function wi(e){return Boolean("text"===e.type||vi(e)||qo(e)||function(e){if("element"!==e.type||"link"!==e.tagName)return!1;if(e.properties.itemProp)return!0;const t=e.properties.rel;let n=-1;if(!Array.isArray(t)||0===t.length)return!1;for(;++n<t.length;)if(!Bi.has(String(t[n])))return!1;return!0}(e)||xi(e)&&function(e,t){const n="element"===e.type&&Mi.call(e.properties,t)&&e.properties[t];return null!=n&&!1!==n}(e,"itemProp"))}function Ui(e,t){const{rest:n,checkbox:r}=Gi(t),a=r?Boolean(r.properties.checked):null,o={type:"listItem",spread:Hi(n),checked:a,children:e.toFlow(e.all(n))};return e.patch(t,o),o}function Hi(e){let t=-1,n=!1;for(;++t<e.children.length;){const r=e.children[t];if("element"===r.type){if(wi(r))continue;if("p"===r.tagName||n||Hi(r))return!0;n=!0}}return!1}function Gi(e){const t=e.children[0];if(t&&"element"===t.type&&"input"===t.tagName&&t.properties&&("checkbox"===t.properties.type||"radio"===t.properties.type)){return{checkbox:t,rest:{...e,children:e.children.slice(1)}}}if(t&&"element"===t.type&&"p"===t.tagName){const{checkbox:n,rest:r}=Gi(t);if(n){return{checkbox:n,rest:{...e,children:[r,...e.children.slice(1)]}}}}return{checkbox:void 0,rest:e}}function Yi(e,t){const n="ol"===t.tagName,r=e.toSpecificContent(e.all(t),qi);let a=null;n&&(a=t.properties&&t.properties.start?Number.parseInt(String(t.properties.start),10):1);const o={type:"list",ordered:n,start:a,spread:Si(r),children:r};return e.patch(t,o),o}function qi(){return{type:"listItem",spread:!1,checked:null,children:[]}}const zi={};function Wi(e,t){return ji(e,"boolean"!=typeof zi.includeImageAlt||zi.includeImageAlt,"boolean"!=typeof zi.includeHtml||zi.includeHtml)}function ji(e,t,n){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Qi(e.children,t,n)}return Array.isArray(e)?Qi(e,t,n):""}function Qi(e,t,n){const r=[];let a=-1;for(;++a<e.length;)r[a]=ji(e[a],t,n);return r.join("")}const Vi=ho(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Ki(e){let t=-1;for(;++t<e.length;){const n=e[t];if(!Zi(n)||"children"in n&&Ki(n.children))return!0}return!1}function Xi(e){return Ji(e,function(e){return e.every(function(e){return"text"===e.type&&fe(e.value)})?[]:[{type:"paragraph",children:yi(e)}]},function(e){return e})}function $i(e){return Ji(e.children,function(t){const n=es(e);return n.children=t,[n]},function(t){if("children"in t&&"children"in e){const n=es(e),r=es(t);return n.children=t.children,r.children.push(n),r}return{...t}})}function Ji(e,t,n){const r=function(e){const t=[];let n=-1;for(;++n<e.length;){const r=e[n];"delete"!==r.type&&"link"!==r.type||!Ki(r.children)?t.push(r):t.push(...$i(r))}return t}(e),a=[];let o=[],i=-1;for(;++i<r.length;){const e=r[i];Zi(e)?o.push(e):(o.length>0&&(a.push(...t(o)),o=[]),a.push(n(e)))}return o.length>0&&(a.push(...t(o)),o=[]),a}function Zi(e){const t=e.data&&e.data.hName;return t?wi({type:"element",tagName:t,properties:{},children:[]}):Vi(e)}function es(e){return _a({...e,children:[]})}function ts(e,t){const n=t.properties||{},r="video"===t.tagName?String(n.poster||""):"";let a=String(n.src||""),o=-1,i=!1,s=e.all(t);if(Do({type:"root",children:s},function(e){if("link"===e.type)return i=!0,To}),i||Ki(s))return s;for(;!a&&++o<t.children.length;){const e=t.children[o];"element"===e.type&&"source"===e.tagName&&e.properties&&(a=String(e.properties.src||""))}if(r){const n={type:"image",title:null,url:e.resolve(r),alt:Wi(s)};e.patch(t,n),s=[n]}const l=s,c={type:"link",title:n.title?String(n.title):null,url:e.resolve(a),children:l};return e.patch(t,c),c}function ns(e,t){const n=yi(e.all(t));if(n.length>0){const r={type:"paragraph",children:n};return e.patch(t,r),r}}const rs=['"'];function as(e,t){const n={type:"strong",children:e.all(t)};return e.patch(t,n),n}function os(e,t){const n={type:"tableCell",children:e.all(t)};if(e.patch(t,n),t.properties){const e=t.properties.rowSpan,r=t.properties.colSpan;if(e||r){const t=n.data||(n.data={});e&&(t.hastUtilToMdastTemporaryRowSpan=e),r&&(t.hastUtilToMdastTemporaryColSpan=r)}}return n}function is(){return{type:"tableCell",children:[]}}function ss(){return{type:"tableCell",children:[]}}function ls(){return{type:"tableRow",children:[]}}const cs={comment:function(e,t){const n={type:"html",value:"\x3c!--"+t.value+"--\x3e"};return e.patch(t,n),n},doctype:ds,root:function(e,t){let n=e.all(t);(e.options.document||Ki(n))&&(n=Xi(n));const r={type:"root",children:n};return e.patch(t,r),r},text:function(e,t){const n={type:"text",value:t.value};return e.patch(t,n),n}},us={applet:ds,area:ds,basefont:ds,bgsound:ds,caption:ds,col:ds,colgroup:ds,command:ds,content:ds,datalist:ds,dialog:ds,element:ds,embed:ds,frame:ds,frameset:ds,isindex:ds,keygen:ds,link:ds,math:ds,menu:ds,menuitem:ds,meta:ds,nextid:ds,noembed:ds,noframes:ds,optgroup:ds,option:ds,param:ds,script:ds,shadow:ds,source:ds,spacer:ds,style:ds,svg:ds,template:ds,title:ds,track:ds,abbr:hs,acronym:hs,bdi:hs,bdo:hs,big:hs,blink:hs,button:hs,canvas:hs,cite:hs,data:hs,details:hs,dfn:hs,font:hs,ins:hs,label:hs,map:hs,marquee:hs,meter:hs,nobr:hs,noscript:hs,object:hs,output:hs,progress:hs,rb:hs,rbc:hs,rp:hs,rt:hs,rtc:hs,ruby:hs,slot:hs,small:hs,span:hs,sup:hs,sub:hs,tbody:hs,tfoot:hs,thead:hs,time:hs,address:ps,article:ps,aside:ps,body:ps,center:ps,div:ps,fieldset:ps,figcaption:ps,figure:ps,form:ps,footer:ps,header:ps,hgroup:ps,html:ps,legend:ps,main:ps,multicol:ps,nav:ps,picture:ps,section:ps,a:function(e,t){const n=t.properties||{},r=e.all(t),a={type:"link",url:e.resolve(String(n.href||"")||null),title:n.title?String(n.title):null,children:r};return e.patch(t,a),a},audio:ts,b:as,base:function(e,t){e.baseFound||(e.frozenBaseUrl=String(t.properties&&t.properties.href||"")||void 0,e.baseFound=!0)},blockquote:function(e,t){const n={type:"blockquote",children:e.toFlow(e.all(t))};return e.patch(t,n),n},br:function(e,t){const n={type:"break"};return e.patch(t,n),n},code:Li,dir:Yi,dl:function(e,t){const n=[],r=[];let a=-1;for(;++a<t.children.length;){const e=t.children[a];"element"===e.type&&"div"===e.tagName?n.push(...e.children):n.push(e)}let o={definitions:[],titles:[]};for(a=-1;++a<n.length;){const e=n[a];if("element"===e.type&&"dt"===e.tagName){const t=n[a-1];t&&"element"===t.type&&"dd"===t.tagName&&(r.push(o),o={definitions:[],titles:[]}),o.titles.push(e)}else o.definitions.push(e)}r.push(o),a=-1;const i=[];for(;++a<r.length;){const t=[...Ii(e,r[a].titles),...Ii(e,r[a].definitions)];t.length>0&&i.push({type:"listItem",spread:t.length>1,checked:null,children:t})}if(i.length>0){const n={type:"list",ordered:!1,start:null,spread:Si(i),children:i};return e.patch(t,n),n}},dt:Ui,dd:Ui,del:Ni,em:ki,h1:Oi,h2:Oi,h3:Oi,h4:Oi,h5:Oi,h6:Oi,hr:function(e,t){const n={type:"thematicBreak"};return e.patch(t,n),n},i:ki,iframe:function(e,t){const n=t.properties||{},r=String(n.src||""),a=String(n.title||"");if(r&&a){const n={type:"link",title:null,url:e.resolve(r),children:[{type:"text",value:a}]};return e.patch(t,n),n}},img:Ri,image:Ri,input:function(e,t){const n=t.properties||{},r=String(n.value||n.placeholder||"");if(n.disabled||"hidden"===n.type||"file"===n.type)return;if("checkbox"===n.type||"radio"===n.type){const r={type:"text",value:n.checked?e.options.checked||"[x]":e.options.unchecked||"[ ]"};return e.patch(t,r),r}if("image"===n.type){const a=n.alt||r;if(a){const r={type:"image",url:e.resolve(String(n.src||"")||null),title:String(n.title||"")||null,alt:String(a)};return e.patch(t,r),r}return}let a=[];if(r)a=[[r,void 0]];else if("button"!==n.type&&"file"!==n.type&&"password"!==n.type&&"reset"!==n.type&&"submit"!==n.type&&n.list){const t=String(n.list),r=e.elementById.get(t);r&&"datalist"===r.tagName&&(a=Fi(r,n))}if(0===a.length)return;if("password"===n.type&&(a[0]=["•".repeat(a[0][0].length),void 0]),"email"===n.type||"url"===n.type){const t=[];let r=-1;for(;++r<a.length;){const o=e.resolve(a[r][0]),i={type:"link",title:null,url:"email"===n.type?"mailto:"+o:o,children:[{type:"text",value:a[r][1]||o}]};t.push(i),r!==a.length-1&&t.push({type:"text",value:", "})}return t}const o=[];let i=-1;for(;++i<a.length;)o.push(a[i][1]?a[i][1]+" ("+a[i][0]+")":a[i][0]);const s={type:"text",value:o.join(", ")};return e.patch(t,s),s},kbd:Li,li:Ui,listing:Ci,mark:ki,ol:Yi,p:ns,plaintext:Ci,pre:Ci,q:function(e,t){const n=e.options.quotes||rs;e.qNesting++;const r=e.all(t);e.qNesting--;const a=n[e.qNesting%n.length],o=r[0],i=r[r.length-1],s=a.charAt(0),l=a.length>1?a.charAt(1):a;return o&&"text"===o.type?o.value=s+o.value:r.unshift({type:"text",value:s}),i&&"text"===i.type?i.value+=l:r.push({type:"text",value:l}),r},s:Ni,samp:Li,select:function(e,t){const n=Fi(t);let r=-1;const a=[];for(;++r<n.length;){const e=n[r];a.push(e[1]?e[1]+" ("+e[0]+")":e[0])}if(a.length>0){const n={type:"text",value:a.join(", ")};return e.patch(t,n),n}},strike:Ni,strong:as,summary:ns,table:function(e,t){if(e.inTable){const n={type:"text",value:fi(t)};return e.patch(t,n),n}e.inTable=!0;const{align:n,headless:r}=function(e){const t={align:[null],headless:!0};let n=0,r=0;return Do(e,function(a){if("element"===a.type){if("table"===a.tagName&&e!==a)return go;if("th"!==a.tagName&&"td"!==a.tagName||!a.properties)"thead"===a.tagName?t.headless=!1:"tr"===a.tagName&&(n++,r=0);else{if(!t.align[r]){const e=String(a.properties.align||"")||null;"center"!==e&&"left"!==e&&"right"!==e&&null!==e||(t.align[r]=e)}t.headless&&n<2&&"th"===a.tagName&&(t.headless=!1),r++}}}),t}(t),a=e.toSpecificContent(e.all(t),ls);r&&a.unshift({type:"tableRow",children:[]});let o=-1;for(;++o<a.length;){const t=a[o],n=e.toSpecificContent(t.children,ss);t.children=n}let i=1;for(o=-1;++o<a.length;){const e=a[o].children;let t=-1;for(;++t<e.length;){const n=e[t];if(n.data){const e=n.data,r=Number.parseInt(String(e.hastUtilToMdastTemporaryColSpan),10)||1,i=Number.parseInt(String(e.hastUtilToMdastTemporaryRowSpan),10)||1;if(r>1||i>1){let e=o-1;for(;++e<o+i;){let n=t-1;for(;++n<t+r&&a[e];){const r=[];e===o&&n===t||r.push({type:"tableCell",children:[]}),a[e].children.splice(n,0,...r)}}}"hastUtilToMdastTemporaryColSpan"in n.data&&delete n.data.hastUtilToMdastTemporaryColSpan,"hastUtilToMdastTemporaryRowSpan"in n.data&&delete n.data.hastUtilToMdastTemporaryRowSpan,0===Object.keys(n.data).length&&delete n.data}}e.length>i&&(i=e.length)}for(o=-1;++o<a.length;){const e=a[o].children;let t=e.length-1;for(;++t<i;)e.push({type:"tableCell",children:[]})}let s=n.length-1;for(;++s<i;)n.push(null);e.inTable=!1;const l={type:"table",align:n,children:a};return e.patch(t,l),l},td:os,textarea:function(e,t){const n={type:"text",value:fi(t)};return e.patch(t,n),n},th:os,tr:function(e,t){const n={type:"tableRow",children:e.toSpecificContent(e.all(t),is)};return e.patch(t,n),n},tt:Li,u:ki,ul:Yi,var:Li,video:ts,wbr:function(e,t){const n={type:"text",value:"​"};return e.patch(t,n),n},xmp:Ci};function hs(e,t){return e.all(t)}function ps(e,t){return e.toFlow(e.all(t))}function ds(){}const Es={}.hasOwnProperty;function fs(e){const t=e.children||[],n=[];let r=-1;for(;++r<t.length;){const a=t[r],o=this.one(a,e);Array.isArray(o)?n.push(...o):o&&n.push(o)}return n}function ms(e,t){if("element"===e.type){if(e.properties&&"ignore"===e.properties.dataMdast)return;if(Es.call(this.handlers,e.tagName))return this.handlers[e.tagName](this,e,t)||void 0}else if(Es.call(this.nodeHandlers,e.type))return this.nodeHandlers[e.type](this,e,t)||void 0;if("value"in e&&"string"==typeof e.value){const t={type:"text",value:e.value};return this.patch(e,t),t}if("children"in e)return this.all(e)}function Ts(e,t){e.position&&(t.position=function(e){const t=co(e),n=lo(e);if(t&&n)return{start:t,end:n}}(e))}function gs(e){const t=this.frozenBaseUrl;return null==e?"":t?String(new URL(e,t)):e}function As(e){return Xi(e)}function Ds(e,t){const n=t(),r=[];let a=[],o=-1;for(;++o<e.length;){const t=e[o];if(i(t))a.length>0&&(t.children.unshift(...a),a=[]),r.push(t);else{const e=t;a.push(e)}}if(a.length>0){let e=r[r.length-1];e||(e=t(),r.push(e)),e.children.push(...a),a=[]}return r;function i(e){return e.type===n.type}}const _s={};function Cs(e,t){const n=_a(e),r=t||_s,a=oi({newlines:!0===r.newlines}),o=function(e){return{all:fs,baseFound:!1,elementById:new Map,frozenBaseUrl:void 0,handlers:{...us,...e.handlers},inTable:!1,nodeHandlers:{...cs,...e.nodeHandlers},one:ms,options:e,patch:Ts,qNesting:0,resolve:gs,toFlow:As,toSpecificContent:Ds}}(r);let i;a(n),Do(n,function(e){if(e&&"element"===e.type&&e.properties){const t=String(e.properties.id||"")||void 0;t&&!o.elementById.has(t)&&o.elementById.set(t,e)}});const s=o.one(n,void 0);if(s)if(Array.isArray(s)){i={type:"root",children:s}}else i=s;else i={type:"root",children:[]};return Do(i,function(e,t,n){if("text"===e.type&&void 0!==t&&n){const r=n.children[t-1];if(r&&r.type===e.type)return r.value+=e.value,n.children.splice(t,1),r.position&&e.position&&(r.position.end=e.position.end),t-1;if(e.value=e.value.replace(/[\t ]*(\r?\n|\r)[\t ]*/,"$1"),!n||"heading"!==n.type&&"paragraph"!==n.type&&"root"!==n.type||(t||(e.value=e.value.replace(/^[\t ]+/,"")),t===n.children.length-1&&(e.value=e.value.replace(/[\t ]+$/,""))),!e.value)return n.children.splice(t,1),t}}),i}const Ns={document:!0};function Ss(e,t){return e&&"run"in e?async function(n,r){const a=Cs(n,{...Ns,...t});await e.run(a,r)}:function(t){return Cs(t,{...Ns,...e})}}function Is(e){return"text"===e.type?e.value:"children"in e?bs(e):""}function bs(e){let t=-1;const n=[];for(;++t<e.children.length;)n[t]=Is(e.children[t]);return n.join("")}const ks={},ys=new o;function Os(e){const t=(e||ks).prefix||"";return function(e){ys.reset(),Do(e,"element",function(e){(function(e){const t="element"===e.type?e.tagName.toLowerCase():"",n=2===t.length&&104===t.charCodeAt(0)?t.charCodeAt(1):0;return n>48&&n<55?n-48:void 0})(e)&&!e.properties.id&&(e.properties.id=t+ys.slug(function(e){return"children"in e?bs(e):"value"in e?e.value:""}(e)))})}}const Rs=xs(/[A-Za-z]/),Ls=xs(/[\dA-Za-z]/);function Fs(e){return null!==e&&e<-2}function Ps(e){return null!==e&&(e<0||32===e)}function Ms(e){return-2===e||-1===e||32===e}const Bs=xs(new RegExp("\\p{P}|\\p{S}","u")),vs=xs(/\s/);function xs(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function ws(e,t,n){const r=ho((n||{}).ignore||[]),a=function(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const e=n[r];t.push([Us(e[0]),Hs(e[1])])}return t}(t);let o=-1;for(;++o<a.length;)Ao(e,"text",i);function i(e,t){let n,i=-1;for(;++i<t.length;){const e=t[i],a=n?n.children:void 0;if(r(e,a?a.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){const n=t[t.length-1],r=a[o][0],i=a[o][1];let s=0;const l=n.children.indexOf(e);let c=!1,u=[];r.lastIndex=0;let h=r.exec(e.value);for(;h;){const n=h.index,a={index:h.index,input:h.input,stack:[...t,e]};let o=i(...h,a);if("string"==typeof o&&(o=o.length>0?{type:"text",value:o}:void 0),!1===o?r.lastIndex=n+1:(s!==n&&u.push({type:"text",value:e.value.slice(s,n)}),Array.isArray(o)?u.push(...o):o&&u.push(o),s=n+h[0].length,c=!0),!r.global)break;h=r.exec(e.value)}c?(s<e.value.length&&u.push({type:"text",value:e.value.slice(s)}),n.children.splice(l,1,...u)):u=[e];return l+u.length}(e,t)}}function Us(e){return"string"==typeof e?new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e),"g"):e}function Hs(e){return"function"==typeof e?e:function(){return e}}const Gs="phrasing",Ys=["autolink","link","image","label"];function qs(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function zs(e){this.config.enter.autolinkProtocol.call(this,e)}function Ws(e){this.config.exit.autolinkProtocol.call(this,e)}function js(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function Qs(e){this.config.exit.autolinkEmail.call(this,e)}function Vs(e){this.exit(e)}function Ks(e){ws(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Xs],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),$s]],{ignore:["link","linkReference"]})}function Xs(e,t,n,r,a){let o="";if(!Js(a))return!1;if(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!function(e){const t=e.split(".");if(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))return!1;return!0}(n))return!1;const i=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const a=ce(e,"(");let o=ce(e,")");for(;-1!==r&&a>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}(n+r);if(!i[0])return!1;const s={type:"link",title:null,url:o+t+i[0],children:[{type:"text",value:t+i[0]}]};return i[1]?[s,{type:"text",value:i[1]}]:s}function $s(e,t,n,r){return!(!Js(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Js(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||vs(n)||Bs(n))&&(!t||47!==n)}function Zs(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}function el(){this.buffer()}function tl(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function nl(){this.buffer()}function rl(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function al(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Zs(this.sliceSerialize(e)).toLowerCase(),n.label=t}function ol(e){this.exit(e)}function il(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Zs(this.sliceSerialize(e)).toLowerCase(),n.label=t}function sl(e){this.exit(e)}function ll(e,t,n,r){const a=n.createTracker(r);let o=a.move("[^");const i=n.enter("footnoteReference"),s=n.enter("reference");return o+=a.move(n.safe(n.associationId(e),{after:"]",before:o})),s(),i(),o+=a.move("]"),o}function cl(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:function(e,n,r,a){const o=r.createTracker(a);let i=o.move("[^");const s=r.enter("footnoteDefinition"),l=r.enter("label");i+=o.move(r.safe(r.associationId(e),{before:i,after:"]"})),l(),i+=o.move("]:"),e.children&&e.children.length>0&&(o.shift(4),i+=o.move((t?"\n":" ")+r.indentLines(r.containerFlow(e,o.current()),t?hl:ul)));return s(),i},footnoteReference:ll},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}}function ul(e,t,n){return 0===t?e:hl(e,t,n)}function hl(e,t,n){return(n?"":" ")+e}ll.peek=function(){return"["};const pl=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function dl(e){this.enter({type:"delete",children:[]},e)}function El(e){this.exit(e)}function fl(e,t,n,r){const a=n.createTracker(r),o=n.enter("strikethrough");let i=a.move("~~");return i+=n.containerPhrasing(e,{...a.current(),before:i,after:"~"}),i+=a.move("~~"),o(),i}function ml(e){return e.length}function Tl(e){return null==e?"":String(e)}function gl(e){const t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}fl.peek=function(){return"~"};const Al={}.hasOwnProperty;function Dl(e,t){let n,r=-1;if(t.extensions)for(;++r<t.extensions.length;)Dl(e,t.extensions[r]);for(n in t)if(Al.call(t,n))switch(n){case"extensions":break;case"unsafe":case"join":_l(e[n],t[n]);break;case"handlers":Cl(e[n],t[n]);break;default:e.options[n]=t[n]}return e}function _l(e,t){t&&e.push(...t)}function Cl(e,t){t&&Object.assign(e,t)}function Nl(e,t,n){return">"+(n?"":" ")+e}function Sl(e,t){return Il(e,t.inConstruct,!0)&&!Il(e,t.notInConstruct,!1)}function Il(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function bl(e,t,n,r){let a=-1;for(;++a<n.unsafe.length;)if("\n"===n.unsafe[a].character&&Sl(n.stack,n.unsafe[a]))return/[ \t]/.test(r.before)?"":" ";return"\\\n"}function kl(e,t){return Boolean(!1===t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function yl(e,t,n){return(n?"":" ")+e}function Ol(e){const t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function Rl(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Ll(e){return null===e||Ps(e)||vs(e)?1:Bs(e)?2:void 0}function Fl(e,t,n){const r=Ll(e),a=Ll(t);return void 0===r?void 0===a?"_"===n?{inside:!0,outside:!0}:{inside:!1,outside:!1}:1===a?{inside:!0,outside:!0}:{inside:!1,outside:!0}:1===r?void 0===a?{inside:!1,outside:!1}:1===a?{inside:!0,outside:!0}:{inside:!1,outside:!1}:void 0===a?{inside:!1,outside:!1}:1===a?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function Pl(e,t,n,r){const a=function(e){const t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(n),o=n.enter("emphasis"),i=n.createTracker(r),s=i.move(a);let l=i.move(n.containerPhrasing(e,{after:a,before:s,...i.current()}));const c=l.charCodeAt(0),u=Fl(r.before.charCodeAt(r.before.length-1),c,a);u.inside&&(l=Rl(c)+l.slice(1));const h=l.charCodeAt(l.length-1),p=Fl(r.after.charCodeAt(0),h,a);p.inside&&(l=l.slice(0,-1)+Rl(h));const d=i.move(a);return o(),n.attentionEncodeSurroundingInfo={after:p.outside,before:u.outside},s+l+d}function Ml(e,t){let n=!1;return Do(e,function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return n=!0,To}),Boolean((!e.depth||e.depth<3)&&Wi(e)&&(t.options.setext||n))}function Bl(e){return e.value||""}function vl(e,t,n,r){const a=Ol(n),o='"'===a?"Quote":"Apostrophe",i=n.enter("image");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("![");return c+=l.move(n.safe(e.alt,{before:c,after:"]",...l.current()})),c+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),c+=l.move(" "+a),c+=l.move(n.safe(e.title,{before:c,after:a,...l.current()})),c+=l.move(a),s()),c+=l.move(")"),i(),c}function xl(e,t,n,r){const a=e.referenceType,o=n.enter("imageReference");let i=n.enter("label");const s=n.createTracker(r);let l=s.move("![");const c=n.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),i();const u=n.stack;n.stack=[],i=n.enter("reference");const h=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return i(),n.stack=u,o(),"full"!==a&&c&&c===h?"shortcut"===a?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(h+"]"),l}function wl(e,t,n){let r=e.value||"",a="`",o=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(r);)a+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const e=n.unsafe[o],t=n.compilePattern(e);let a;if(e.atBreak)for(;a=t.exec(r);){let e=a.index;10===r.charCodeAt(e)&&13===r.charCodeAt(e-1)&&e--,r=r.slice(0,e)+" "+r.slice(a.index+1)}}return a+r+a}function Ul(e,t){const n=Wi(e);return Boolean(!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}function Hl(e,t,n,r){const a=Ol(n),o='"'===a?"Quote":"Apostrophe",i=n.createTracker(r);let s,l;if(Ul(e,n)){const t=n.stack;n.stack=[],s=n.enter("autolink");let r=i.move("<");return r+=i.move(n.containerPhrasing(e,{before:r,after:">",...i.current()})),r+=i.move(">"),s(),n.stack=t,r}s=n.enter("link"),l=n.enter("label");let c=i.move("[");return c+=i.move(n.containerPhrasing(e,{before:c,after:"](",...i.current()})),c+=i.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=i.move("<"),c+=i.move(n.safe(e.url,{before:c,after:">",...i.current()})),c+=i.move(">")):(l=n.enter("destinationRaw"),c+=i.move(n.safe(e.url,{before:c,after:e.title?" ":")",...i.current()}))),l(),e.title&&(l=n.enter(`title${o}`),c+=i.move(" "+a),c+=i.move(n.safe(e.title,{before:c,after:a,...i.current()})),c+=i.move(a),l()),c+=i.move(")"),s(),c}function Gl(e,t,n,r){const a=e.referenceType,o=n.enter("linkReference");let i=n.enter("label");const s=n.createTracker(r);let l=s.move("[");const c=n.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),i();const u=n.stack;n.stack=[],i=n.enter("reference");const h=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return i(),n.stack=u,o(),"full"!==a&&c&&c===h?"shortcut"===a?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(h+"]"),l}function Yl(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function ql(e){const t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function zl(e,t,n,r){const a=function(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(n),o=n.enter("strong"),i=n.createTracker(r),s=i.move(a+a);let l=i.move(n.containerPhrasing(e,{after:a,before:s,...i.current()}));const c=l.charCodeAt(0),u=Fl(r.before.charCodeAt(r.before.length-1),c,a);u.inside&&(l=Rl(c)+l.slice(1));const h=l.charCodeAt(l.length-1),p=Fl(r.after.charCodeAt(0),h,a);p.inside&&(l=l.slice(0,-1)+Rl(h));const d=i.move(a+a);return o(),n.attentionEncodeSurroundingInfo={after:p.outside,before:u.outside},s+l+d}Pl.peek=function(e,t,n){return n.options.emphasis||"*"},Bl.peek=function(){return"<"},vl.peek=function(){return"!"},xl.peek=function(){return"!"},wl.peek=function(){return"`"},Hl.peek=function(e,t,n){return Ul(e,n)?"<":"["},Gl.peek=function(){return"["},zl.peek=function(e,t,n){return n.options.strong||"*"};const Wl={blockquote:function(e,t,n,r){const a=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);const i=n.indentLines(n.containerFlow(e,o.current()),Nl);return a(),i},break:bl,code:function(e,t,n,r){const a=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(n),o=e.value||"",i="`"===a?"GraveAccent":"Tilde";if(kl(e,n)){const e=n.enter("codeIndented"),t=n.indentLines(o,yl);return e(),t}const s=n.createTracker(r),l=a.repeat(Math.max(function(e,t){const n=String(e);let r=n.indexOf(t),a=r,o=0,i=0;if("string"!=typeof t)throw new TypeError("Expected substring");for(;-1!==r;)r===a?++o>i&&(i=o):o=1,a=r+t.length,r=n.indexOf(t,a);return i}(o,a)+1,3)),c=n.enter("codeFenced");let u=s.move(l);if(e.lang){const t=n.enter(`codeFencedLang${i}`);u+=s.move(n.safe(e.lang,{before:u,after:" ",encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){const t=n.enter(`codeFencedMeta${i}`);u+=s.move(" "),u+=s.move(n.safe(e.meta,{before:u,after:"\n",encode:["`"],...s.current()})),t()}return u+=s.move("\n"),o&&(u+=s.move(o+"\n")),u+=s.move(l),c(),u},definition:function(e,t,n,r){const a=Ol(n),o='"'===a?"Quote":"Apostrophe",i=n.enter("definition");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("[");return c+=l.move(n.safe(n.associationId(e),{before:c,after:"]",...l.current()})),c+=l.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":"\n",...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),c+=l.move(" "+a),c+=l.move(n.safe(e.title,{before:c,after:a,...l.current()})),c+=l.move(a),s()),i(),c},emphasis:Pl,hardBreak:bl,heading:function(e,t,n,r){const a=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(Ml(e,n)){const t=n.enter("headingSetext"),r=n.enter("phrasing"),i=n.containerPhrasing(e,{...o.current(),before:"\n",after:"\n"});return r(),t(),i+"\n"+(1===a?"=":"-").repeat(i.length-(Math.max(i.lastIndexOf("\r"),i.lastIndexOf("\n"))+1))}const i="#".repeat(a),s=n.enter("headingAtx"),l=n.enter("phrasing");o.move(i+" ");let c=n.containerPhrasing(e,{before:"# ",after:"\n",...o.current()});return/^[\t ]/.test(c)&&(c=Rl(c.charCodeAt(0))+c.slice(1)),c=c?i+" "+c:i,n.options.closeAtx&&(c+=" "+i),l(),s(),c},html:Bl,image:vl,imageReference:xl,inlineCode:wl,link:Hl,linkReference:Gl,list:function(e,t,n,r){const a=n.enter("list"),o=n.bulletCurrent;let i=e.ordered?function(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(n):Yl(n);const s=e.ordered?"."===i?")":".":function(e){const t=Yl(e),n=e.options.bulletOther;if(!n)return"*"===t?"-":"*";if("*"!==n&&"+"!==n&&"-"!==n)throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}(n);let l=!(!t||!n.bulletLastUsed)&&i===n.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==i&&"-"!==i||!t||t.children&&t.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(l=!0),ql(n)===i&&t){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if(n&&"listItem"===n.type&&n.children&&n.children[0]&&"thematicBreak"===n.children[0].type){l=!0;break}}}}l&&(i=s),n.bulletCurrent=i;const c=n.containerFlow(e,r);return n.bulletLastUsed=i,n.bulletCurrent=o,a(),c},listItem:function(e,t,n,r){const a=function(e){const t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n);let o=n.bulletCurrent||Yl(n);t&&"list"===t.type&&t.ordered&&(o=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+o);let i=o.length+1;("tab"===a||"mixed"===a&&(t&&"list"===t.type&&t.spread||e.spread))&&(i=4*Math.ceil(i/4));const s=n.createTracker(r);s.move(o+" ".repeat(i-o.length)),s.shift(i);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),function(e,t,n){if(t)return(n?"":" ".repeat(i))+e;return(n?o:o+" ".repeat(i-o.length))+e});return l(),c},paragraph:function(e,t,n,r){const a=n.enter("paragraph"),o=n.enter("phrasing"),i=n.containerPhrasing(e,r);return o(),a(),i},root:function(e,t,n,r){return(e.children.some(function(e){return Vi(e)})?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:zl,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){const r=(ql(n)+(n.options.ruleSpaces?" ":"")).repeat(function(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(n));return n.options.ruleSpaces?r.slice(0,-1):r}},jl=[function(e,t,n,r){if("code"===t.type&&kl(t,r)&&("list"===e.type||e.type===t.type&&kl(e,r)))return!1;if("spread"in n&&"boolean"==typeof n.spread){if("paragraph"===e.type&&(e.type===t.type||"definition"===t.type||"heading"===t.type&&Ml(t,r)))return;return n.spread?1:0}}];const Ql=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],Vl=[{character:"\t",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"\t",before:"[\\r\\n]",inConstruct:"phrasing"},{character:"\t",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"\r",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:"\n",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"!",after:"\\[",inConstruct:"phrasing",notInConstruct:Ql},{character:'"',inConstruct:"titleQuote"},{atBreak:!0,character:"#"},{character:"#",inConstruct:"headingAtx",after:"(?:[\r\n]|$)"},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing",notInConstruct:Ql},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*",after:"(?:[ \t\r\n*])"},{character:"*",inConstruct:"phrasing",notInConstruct:Ql},{atBreak:!0,character:"+",after:"(?:[ \t\r\n])"},{atBreak:!0,character:"-",after:"(?:[ \t\r\n-])"},{atBreak:!0,before:"\\d+",character:".",after:"(?:[ \t\r\n]|$)"},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:Ql},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",notInConstruct:Ql},{character:"[",inConstruct:["label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",inConstruct:"phrasing",notInConstruct:Ql},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{character:"`",inConstruct:"phrasing",notInConstruct:Ql},{atBreak:!0,character:"~"}],Kl=document.createElement("i");const Xl=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function $l(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return function(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||65534==(65535&n)||n>1114111?"�":String.fromCodePoint(n)}(n.slice(t?2:1),t?16:10)}return function(e){const t="&"+e+";";Kl.innerHTML=t;const n=Kl.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}(n)||e}function Jl(e){return e.label||!e.identifier?e.label||"":e.identifier.replace(Xl,$l)}function Zl(e){if(!e._compiled){const t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function ec(e,t,n,r){let a=r.join.length;for(;a--;){const o=r.join[a](e,t,n,r);if(!0===o||1===o)break;if("number"==typeof o)return"\n".repeat(1+o);if(!1===o)return"\n\n\x3c!----\x3e\n\n"}return"\n\n"}const tc=/\r?\n|\r/g;function nc(e,t){const n=[];let r,a=0,o=0;for(;r=tc.exec(e);)i(e.slice(a,r.index)),n.push(r[0]),a=r.index+r[0].length,o++;return i(e.slice(a)),n.join("");function i(e){n.push(t(e,o,!e))}}function rc(e,t){return e-t}function ac(e,t){const n=/\\(?=[!-/:-@[-`{-~])/g,r=[],a=[],o=e+t;let i,s=-1,l=0;for(;i=n.exec(o);)r.push(i.index);for(;++s<r.length;)l!==r[s]&&a.push(e.slice(l,r[s])),a.push("\\"),l=r[s];return a.push(e.slice(l)),a.join("")}function oc(e){const t=e||{},n=t.now||{};let r=t.lineShift||0,a=n.line||1,o=n.column||1;return{move:function(e){const t=e||"",n=t.split(/\r?\n|\r/g),i=n[n.length-1];return a+=n.length-1,o=1===n.length?o+i.length:1+i.length+r,t},current:function(){return{now:{line:a,column:o},lineShift:r}},shift:function(e){r+=e}}}function ic(e,t){const n=t||{},r={associationId:Jl,containerPhrasing:uc,containerFlow:hc,createTracker:oc,compilePattern:Zl,enter:function(e){return r.stack.push(e),function(){r.stack.pop()}},handlers:{...Wl},handle:void 0,indentLines:nc,indexStack:[],join:[...jl],options:{},safe:pc,stack:[],unsafe:[...Vl]};Dl(r,n),r.options.tightDefinitions&&r.join.push(cc),r.handle=Y("type",{invalid:sc,unknown:lc,handlers:r.handlers});let a=r.handle(e,void 0,r,{before:"\n",after:"\n",now:{line:1,column:1},lineShift:0});return a&&10!==a.charCodeAt(a.length-1)&&13!==a.charCodeAt(a.length-1)&&(a+="\n"),a}function sc(e){throw new Error("Cannot handle value `"+e+"`, expected node")}function lc(e){throw new Error("Cannot handle unknown node `"+e.type+"`")}function cc(e,t){if("definition"===e.type&&e.type===t.type)return 0}function uc(e,t){return function(e,t,n){const r=t.indexStack,a=e.children||[],o=[];let i,s=-1,l=n.before;r.push(-1);let c=t.createTracker(n);for(;++s<a.length;){const u=a[s];let h;if(r[r.length-1]=s,s+1<a.length){let n=t.handle.handlers[a[s+1].type];n&&n.peek&&(n=n.peek),h=n?n(a[s+1],e,t,{before:"",after:"",...c.current()}).charAt(0):""}else h=n.after;o.length>0&&("\r"===l||"\n"===l)&&"html"===u.type&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),l=" ",c=t.createTracker(n),c.move(o.join("")));let p=t.handle(u,e,t,{...c.current(),after:h,before:l});i&&i===p.slice(0,1)&&(p=Rl(i.charCodeAt(0))+p.slice(1));const d=t.attentionEncodeSurroundingInfo;t.attentionEncodeSurroundingInfo=void 0,i=void 0,d&&(o.length>0&&d.before&&l===o[o.length-1].slice(-1)&&(o[o.length-1]=o[o.length-1].slice(0,-1)+Rl(l.charCodeAt(0))),d.after&&(i=h)),c.move(p),o.push(p),l=p.slice(-1)}return r.pop(),o.join("")}(e,this,t)}function hc(e,t){return function(e,t,n){const r=t.indexStack,a=e.children||[],o=t.createTracker(n),i=[];let s=-1;for(r.push(-1);++s<a.length;){const n=a[s];r[r.length-1]=s,i.push(o.move(t.handle(n,e,t,{before:"\n",after:"\n",...o.current()}))),"list"!==n.type&&(t.bulletLastUsed=void 0),s<a.length-1&&i.push(o.move(ec(n,a[s+1],e,t)))}return r.pop(),i.join("")}(e,this,t)}function pc(e,t){return function(e,t,n){const r=(n.before||"")+(t||"")+(n.after||""),a=[],o=[],i={};let s=-1;for(;++s<e.unsafe.length;){const t=e.unsafe[s];if(!Sl(e.stack,t))continue;const n=e.compilePattern(t);let o;for(;o=n.exec(r);){const e="before"in t||Boolean(t.atBreak),n="after"in t,r=o.index+(e?o[1].length:0);a.includes(r)?(i[r].before&&!e&&(i[r].before=!1),i[r].after&&!n&&(i[r].after=!1)):(a.push(r),i[r]={before:e,after:n})}}a.sort(rc);let l=n.before?n.before.length:0;const c=r.length-(n.after?n.after.length:0);for(s=-1;++s<a.length;){const e=a[s];e<l||e>=c||e+1<c&&a[s+1]===e+1&&i[e].after&&!i[e+1].before&&!i[e+1].after||a[s-1]===e-1&&i[e].before&&!i[e-1].before&&!i[e-1].after||(l!==e&&o.push(ac(r.slice(l,e),"\\")),l=e,!/[!-/:-@[-`{-~]/.test(r.charAt(e))||n.encode&&n.encode.includes(r.charAt(e))?(o.push(Rl(r.charCodeAt(e))),l++):o.push("\\"))}return o.push(ac(r.slice(l,c),n.after)),o.join("")}(this,e,t)}function dc(e){const t=e._align;this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function Ec(e){this.exit(e),this.data.inTable=void 0}function fc(e){this.enter({type:"tableRow",children:[]},e)}function mc(e){this.exit(e)}function Tc(e){this.enter({type:"tableCell",children:[]},e)}function gc(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Ac));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Ac(e,t){return"|"===t?t:e}function Dc(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,a=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=Wl.inlineCode(e,t,n);n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&"));return r},table:function(e,t,n,r){return s(function(e,t,n){const r=e.children;let a=-1;const o=[],i=t.enter("table");for(;++a<r.length;)o[a]=l(r[a],t,n);return i(),o}(e,n,r),e.align)},tableCell:i,tableRow:function(e,t,n,r){const a=s([l(e,n,r)]);return a.slice(0,a.indexOf("\n"))}}};function i(e,t,n,r){const a=n.enter("tableCell"),i=n.enter("phrasing"),s=n.containerPhrasing(e,{...r,before:o,after:o});return i(),a(),s}function s(e,t){return function(e,t){const n=t||{},r=(n.align||[]).concat(),a=n.stringLength||ml,o=[],i=[],s=[],l=[];let c=0,u=-1;for(;++u<e.length;){const t=[],r=[];let o=-1;for(e[u].length>c&&(c=e[u].length);++o<e[u].length;){const i=Tl(e[u][o]);if(!1!==n.alignDelimiters){const e=a(i);r[o]=e,(void 0===l[o]||e>l[o])&&(l[o]=e)}t.push(i)}i[u]=t,s[u]=r}let h=-1;if("object"==typeof r&&"length"in r)for(;++h<c;)o[h]=gl(r[h]);else{const e=gl(r);for(;++h<c;)o[h]=e}h=-1;const p=[],d=[];for(;++h<c;){const e=o[h];let t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let a=!1===n.alignDelimiters?1:Math.max(1,l[h]-t.length-r.length);const i=t+"-".repeat(a)+r;!1!==n.alignDelimiters&&(a=t.length+a+r.length,a>l[h]&&(l[h]=a),d[h]=a),p[h]=i}i.splice(1,0,p),s.splice(1,0,d),u=-1;const E=[];for(;++u<i.length;){const e=i[u],t=s[u];h=-1;const r=[];for(;++h<c;){const a=e[h]||"";let i="",s="";if(!1!==n.alignDelimiters){const e=l[h]-(t[h]||0),n=o[h];114===n?i=" ".repeat(e):99===n?e%2?(i=" ".repeat(e/2+.5),s=" ".repeat(e/2-.5)):(i=" ".repeat(e/2),s=i):s=" ".repeat(e)}!1===n.delimiterStart||h||r.push("|"),!1===n.padding||!1===n.alignDelimiters&&""===a||!1===n.delimiterStart&&!h||r.push(" "),!1!==n.alignDelimiters&&r.push(i),r.push(a),!1!==n.alignDelimiters&&r.push(s),!1!==n.padding&&r.push(" "),!1===n.delimiterEnd&&h===c-1||r.push("|")}E.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return E.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:a})}function l(e,t,n){const r=e.children;let a=-1;const o=[],s=t.enter("tableRow");for(;++a<r.length;)o[a]=i(r[a],0,t,n);return s(),o}}function _c(e){const t=this.stack[this.stack.length-2];t.type,t.checked="taskListCheckValueChecked"===e.type}function Cc(e){const t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){const e=this.stack[this.stack.length-1];e.type;const n=e.children[0];if(n&&"text"===n.type){const r=t.children;let a,o=-1;for(;++o<r.length;){const e=r[o];if("paragraph"===e.type){a=e;break}}a===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function Nc(e,t,n,r){const a=e.children[0],o="boolean"==typeof e.checked&&a&&"paragraph"===a.type,i="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);o&&s.move(i);let l=Wl.listItem(e,t,n,{...r,...s.current()});return o&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+i})),l}function Sc(e,t,n,r){const a=e.length;let o,i=0;if(t=t<0?-t>a?0:a+t:t>a?a:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);i<r.length;)o=r.slice(i,i+1e4),o.unshift(t,0),e.splice(...o),i+=1e4,t+=1e4}const Ic={}.hasOwnProperty;function bc(e,t){let n;for(n in t){const r=(Ic.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let o;if(a)for(o in a){Ic.call(r,o)||(r[o]=[]);const e=a[o];kc(r[o],Array.isArray(e)?e:e?[e]:[])}}}function kc(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);Sc(e,0,0,r)}const yc={tokenize:function(e,t,n){let r=0;return function t(o){if((87===o||119===o)&&r<3)return r++,e.consume(o),t;if(46===o&&3===r)return e.consume(o),a;return n(o)};function a(e){return null===e?n(e):t(e)}},partial:!0},Oc={tokenize:function(e,t,n){let r,a,o;return i;function i(t){return 46===t||95===t?e.check(Lc,l,s)(t):null===t||Ps(t)||vs(t)||45!==t&&Bs(t)?l(t):(o=!0,e.consume(t),i)}function s(t){return 95===t?r=!0:(a=r,r=void 0),e.consume(t),i}function l(e){return a||r||!o?n(e):t(e)}},partial:!0},Rc={tokenize:function(e,t){let n=0,r=0;return a;function a(i){return 40===i?(n++,e.consume(i),a):41===i&&r<n?o(i):33===i||34===i||38===i||39===i||41===i||42===i||44===i||46===i||58===i||59===i||60===i||63===i||93===i||95===i||126===i?e.check(Lc,t,o)(i):null===i||Ps(i)||vs(i)?t(i):(e.consume(i),a)}function o(t){return 41===t&&r++,e.consume(t),a}},partial:!0},Lc={tokenize:function(e,t,n){return r;function r(i){return 33===i||34===i||39===i||41===i||42===i||44===i||46===i||58===i||59===i||63===i||95===i||126===i?(e.consume(i),r):38===i?(e.consume(i),o):93===i?(e.consume(i),a):60===i||null===i||Ps(i)||vs(i)?t(i):n(i)}function a(e){return null===e||40===e||91===e||Ps(e)||vs(e)?t(e):r(e)}function o(e){return Rs(e)?i(e):n(e)}function i(t){return 59===t?(e.consume(t),r):Rs(t)?(e.consume(t),i):n(t)}},partial:!0},Fc={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return Ls(e)?n(e):t(e)}},partial:!0},Pc={name:"wwwAutolink",tokenize:function(e,t,n){const r=this;return function(t){if(87!==t&&119!==t||!wc.call(r,r.previous)||Yc(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(yc,e.attempt(Oc,e.attempt(Rc,a),n),n)(t)};function a(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:wc},Mc={name:"protocolAutolink",tokenize:function(e,t,n){const r=this;let a="",o=!1;return function(t){if((72===t||104===t)&&Uc.call(r,r.previous)&&!Yc(r.events))return e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(t),e.consume(t),i;return n(t)};function i(t){if(Rs(t)&&a.length<5)return a+=String.fromCodePoint(t),e.consume(t),i;if(58===t){const n=a.toLowerCase();if("http"===n||"https"===n)return e.consume(t),s}return n(t)}function s(t){return 47===t?(e.consume(t),o?l:(o=!0,s)):n(t)}function l(t){return null===t||function(e){return null!==e&&(e<32||127===e)}(t)||Ps(t)||vs(t)||Bs(t)?n(t):e.attempt(Oc,e.attempt(Rc,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:Uc},Bc={name:"emailAutolink",tokenize:function(e,t,n){const r=this;let a,o;return function(t){if(!Gc(t)||!Hc.call(r,r.previous)||Yc(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),i(t)};function i(t){return Gc(t)?(e.consume(t),i):64===t?(e.consume(t),s):n(t)}function s(t){return 46===t?e.check(Fc,c,l)(t):45===t||95===t||Ls(t)?(o=!0,e.consume(t),s):c(t)}function l(t){return e.consume(t),a=!0,s}function c(i){return o&&a&&Rs(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(i)):n(i)}},previous:Hc},vc={};let xc=48;for(;xc<123;)vc[xc]=Bc,xc++,58===xc?xc=65:91===xc&&(xc=97);function wc(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||Ps(e)}function Uc(e){return!Rs(e)}function Hc(e){return!(47===e||Gc(e))}function Gc(e){return 43===e||45===e||46===e||95===e||Ls(e)}function Yc(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}function qc(e,t,n){const r=[];let a=-1;for(;++a<e.length;){const o=e[a].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}function zc(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let o=0;return function(r){if(Ms(r))return e.enter(n),i(r);return t(r)};function i(r){return Ms(r)&&o++<a?(e.consume(r),i):(e.exit(n),t(r))}}vc[43]=Bc,vc[45]=Bc,vc[46]=Bc,vc[95]=Bc,vc[72]=[Bc,Mc],vc[104]=[Bc,Mc],vc[87]=[Bc,Pc],vc[119]=[Bc,Pc];const Wc={partial:!0,tokenize:function(e,t,n){return function(t){return Ms(t)?zc(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||Fs(e)?t(e):n(e)}}};const jc={tokenize:function(e,t,n){const r=this;return zc(e,function(e){const a=r.events[r.events.length-1];return a&&"gfmFootnoteDefinitionIndent"===a[1].type&&4===a[2].sliceSerialize(a[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function Qc(e,t,n){const r=this;let a=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i;for(;a--;){const e=r.events[a][1];if("labelImage"===e.type){i=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(a){if(!i||!i._balanced)return n(a);const s=Zs(r.sliceSerialize({start:i.end,end:r.now()}));if(94!==s.codePointAt(0)||!o.includes(s.slice(1)))return n(a);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),t(a)}}function Vc(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},i={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",a,t],["exit",a,t],["enter",o,t],["enter",i,t],["exit",i,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function Kc(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,i=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),s};function s(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(s){if(i>999||93===s&&!o||null===s||91===s||Ps(s))return n(s);if(93===s){e.exit("chunkString");const o=e.exit("gfmFootnoteCallString");return a.includes(Zs(r.sliceSerialize(o)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(s)}return Ps(s)||(o=!0),i++,e.consume(s),92===s?c:l}function c(t){return 91===t||92===t||93===t?(e.consume(t),i++,l):l(t)}}function Xc(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,i,s=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(s>999||93===t&&!i||null===t||91===t||Ps(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return o=Zs(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return Ps(t)||(i=!0),s++,e.consume(t),92===t?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}function h(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a.includes(o)||a.push(o),zc(e,p,"gfmFootnoteDefinitionWhitespace")):n(t)}function p(e){return t(e)}}function $c(e,t,n){return e.check(Wc,t,e.attempt(jc,t,n))}function Jc(e){e.exit("gfmFootnoteDefinition")}function Zc(e){let t=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:function(e,n,r){const a=this.previous,o=this.events;let i=0;return function(t){if(126===a&&"characterEscape"!==o[o.length-1][1].type)return r(t);return e.enter("strikethroughSequenceTemporary"),s(t)};function s(o){const l=Ll(a);if(126===o)return i>1?r(o):(e.consume(o),i++,s);if(i<2&&!t)return r(o);const c=e.exit("strikethroughSequenceTemporary"),u=Ll(o);return c._open=!u||2===u&&Boolean(l),c._close=!l||2===l&&Boolean(u),n(o)}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";const a={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},o={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i=[["enter",a,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",o,t]],s=t.parser.constructs.insideSpan.null;s&&Sc(i,i.length,0,qc(s,e.slice(r+1,n),t)),Sc(i,i.length,0,[["exit",o,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",a,t]]),Sc(e,r-1,n-r+3,i),n=r+i.length-2;break}}n=-1;for(;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}class eu{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let a=0;if(0===n&&0===r.length)return;for(;a<e.map.length;){if(e.map[a][0]===t)return e.map[a][1]+=n,void e.map[a][2].push(...r);a+=1}e.map.push([t,n,r])}(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length;const n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(const t of r)e.push(t);r=n.pop()}this.map.length=0}}function tu(e,t){let n=!1;const r=[];for(;t<e.length;){const a=e[t];if(n){if("enter"===a[0])"tableContent"===a[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===a[1].type){if("tableDelimiterMarker"===e[t-1][1].type){const e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===a[1].type)break}else"enter"===a[0]&&"tableDelimiterRow"===a[1].type&&(n=!0);t+=1}return r}function nu(e,t,n){const r=this;let a,o=0,i=0;return function(e){let t=r.events.length-1;for(;t>-1;){const e=r.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const a=t>-1?r.events[t][1].type:null,o="tableHead"===a||"tableRow"===a?D:s;if(o===D&&r.parser.lazy[r.now().line])return n(e);return o(e)};function s(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){if(124===e)return l(e);return a=!0,i+=1,l(e)}(t)}function l(t){return null===t?n(t):Fs(t)?i>1?(i=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),h):n(t):Ms(t)?zc(e,l,"whitespace")(t):(i+=1,a&&(a=!1,o+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),a=!0,l):(e.enter("data"),c(t)))}function c(t){return null===t||124===t||Ps(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return 92===t||124===t?(e.consume(t),c):c(t)}function h(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter("tableDelimiterRow"),a=!1,Ms(t)?zc(e,p,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):p(t))}function p(t){return 45===t||58===t?E(t):124===t?(a=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),d):A(t)}function d(t){return Ms(t)?zc(e,E,"whitespace")(t):E(t)}function E(t){return 58===t?(i+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),f):45===t?(i+=1,f(t)):null===t||Fs(t)?g(t):A(t)}function f(t){return 45===t?(e.enter("tableDelimiterFiller"),m(t)):A(t)}function m(t){return 45===t?(e.consume(t),m):58===t?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),T):(e.exit("tableDelimiterFiller"),T(t))}function T(t){return Ms(t)?zc(e,g,"whitespace")(t):g(t)}function g(n){return 124===n?p(n):(null===n||Fs(n))&&a&&o===i?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):A(n)}function A(e){return n(e)}function D(t){return e.enter("tableRow"),_(t)}function _(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),_):null===n||Fs(n)?(e.exit("tableRow"),t(n)):Ms(n)?zc(e,_,"whitespace")(n):(e.enter("data"),C(n))}function C(t){return null===t||124===t||Ps(t)?(e.exit("data"),_(t)):(e.consume(t),92===t?N:C)}function N(t){return 92===t||124===t?(e.consume(t),C):C(t)}}function ru(e,t){let n,r,a,o=-1,i=!0,s=0,l=[0,0,0,0],c=[0,0,0,0],u=!1,h=0;const p=new eu;for(;++o<e.length;){const d=e[o],E=d[1];"enter"===d[0]?"tableHead"===E.type?(u=!1,0!==h&&(ou(p,t,h,n,r),r=void 0,h=0),n={type:"table",start:Object.assign({},E.start),end:Object.assign({},E.end)},p.add(o,0,[["enter",n,t]])):"tableRow"===E.type||"tableDelimiterRow"===E.type?(i=!0,a=void 0,l=[0,0,0,0],c=[0,o+1,0,0],u&&(u=!1,r={type:"tableBody",start:Object.assign({},E.start),end:Object.assign({},E.end)},p.add(o,0,[["enter",r,t]])),s="tableDelimiterRow"===E.type?2:r?3:1):!s||"data"!==E.type&&"tableDelimiterMarker"!==E.type&&"tableDelimiterFiller"!==E.type?"tableCellDivider"===E.type&&(i?i=!1:(0!==l[1]&&(c[0]=c[1],a=au(p,t,l,s,void 0,a)),l=c,c=[l[1],o,0,0])):(i=!1,0===c[2]&&(0!==l[1]&&(c[0]=c[1],a=au(p,t,l,s,void 0,a),l=[0,0,0,0]),c[2]=o)):"tableHead"===E.type?(u=!0,h=o):"tableRow"===E.type||"tableDelimiterRow"===E.type?(h=o,0!==l[1]?(c[0]=c[1],a=au(p,t,l,s,o,a)):0!==c[1]&&(a=au(p,t,c,s,o,a)),s=0):!s||"data"!==E.type&&"tableDelimiterMarker"!==E.type&&"tableDelimiterFiller"!==E.type||(c[3]=o)}for(0!==h&&ou(p,t,h,n,r),p.consume(t.events),o=-1;++o<t.events.length;){const e=t.events[o];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=tu(t.events,o))}return e}function au(e,t,n,r,a,o){const i=1===r?"tableHeader":2===r?"tableDelimiter":"tableData";0!==n[0]&&(o.end=Object.assign({},iu(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const s=iu(t.events,n[1]);if(o={type:i,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[["enter",o,t]]),0!==n[2]){const a=iu(t.events,n[2]),o=iu(t.events,n[3]),i={type:"tableContent",start:Object.assign({},a),end:Object.assign({},o)};if(e.add(n[2],0,[["enter",i,t]]),2!==r){const r=t.events[n[2]],a=t.events[n[3]];if(r[1].end=Object.assign({},a[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){const t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",i,t]])}return void 0!==a&&(o.end=Object.assign({},iu(t.events,a)),e.add(a,0,[["exit",o,t]]),o=void 0),o}function ou(e,t,n,r,a){const o=[],i=iu(t.events,n);a&&(a.end=Object.assign({},i),o.push(["exit",a,t])),r.end=Object.assign({},i),o.push(["exit",r,t]),e.add(n+1,0,o)}function iu(e,t){const n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}const su={name:"tasklistCheck",tokenize:function(e,t,n){const r=this;return function(t){if(null!==r.previous||!r._gfmTasklistFirstContentOfListItem)return n(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),a};function a(t){return Ps(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),o):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),o):n(t)}function o(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),i):n(t)}function i(r){return Fs(r)?t(r):Ms(r)?e.check({tokenize:lu},t,n)(r):n(r)}}};function lu(e,t,n){return zc(e,function(e){return null===e?n(e):t(e)},"whitespace")}function cu(e){return function(e){const t={};let n=-1;for(;++n<e.length;)bc(t,e[n]);return t}([{text:vc},{document:{91:{name:"gfmFootnoteDefinition",tokenize:Xc,continuation:{tokenize:$c},exit:Jc}},text:{91:{name:"gfmFootnoteCall",tokenize:Kc},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Qc,resolveTo:Vc}}},Zc(e),{flow:{null:{name:"table",tokenize:nu,resolveAll:ru}}},{text:{91:su}}])}const uu={};function hu(e){const t=e||uu,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),a=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),o=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(cu(t)),a.push([{transforms:[Ks],enter:{literalAutolink:qs,literalAutolinkEmail:zs,literalAutolinkHttp:zs,literalAutolinkWww:zs},exit:{literalAutolink:Vs,literalAutolinkEmail:Qs,literalAutolinkHttp:Ws,literalAutolinkWww:js}},{enter:{gfmFootnoteCallString:el,gfmFootnoteCall:tl,gfmFootnoteDefinitionLabelString:nl,gfmFootnoteDefinition:rl},exit:{gfmFootnoteCallString:al,gfmFootnoteCall:ol,gfmFootnoteDefinitionLabelString:il,gfmFootnoteDefinition:sl}},{canContainEols:["delete"],enter:{strikethrough:dl},exit:{strikethrough:El}},{enter:{table:dc,tableData:Tc,tableHeader:Tc,tableRow:fc},exit:{codeText:gc,table:Ec,tableData:mc,tableHeader:mc,tableRow:mc}},{exit:{taskListCheckValueChecked:_c,taskListCheckValueUnchecked:_c,paragraph:Cc}}]),o.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Gs,notInConstruct:Ys},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Gs,notInConstruct:Ys},{character:":",before:"[ps]",after:"\\/",inConstruct:Gs,notInConstruct:Ys}]},cl(e),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:pl}],handlers:{delete:fl}},Dc(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Nc}}]}}(t))}function pu(e){const t=this;t.compiler=function(n){return ic(n,{...t.data("settings"),...e,extensions:t.data("toMarkdownExtensions")||[]})}}function du(e){if(e)throw e}var Eu,fu,mu="undefined"!=typeof globalThis?globalThis:void 0!==e?e:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Tu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}const gu=Tu(function(){if(fu)return Eu;fu=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,a=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},o=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,a=e.call(n,"constructor"),o=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!a&&!o)return!1;for(r in n);return void 0===r||e.call(n,r)},i=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return Eu=function e(){var t,n,r,l,c,u,h=arguments[0],p=1,d=arguments.length,E=!1;for("boolean"==typeof h&&(E=h,h=arguments[1]||{},p=2),(null==h||"object"!=typeof h&&"function"!=typeof h)&&(h={});p<d;++p)if(null!=(t=arguments[p]))for(n in t)r=s(h,n),h!==(l=s(t,n))&&(E&&l&&(o(l)||(c=a(l)))?(c?(c=!1,u=r&&a(r)?r:[]):u=r&&o(r)?r:{},i(h,{name:n,newValue:e(E,u,l)})):void 0!==l&&i(h,{name:n,newValue:l}));return h}}());function Au(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function Du(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r);!function a(o,...i){const s=e[++n];let l=-1;if(o)r(o);else{for(;++l<t.length;)null!==i[l]&&void 0!==i[l]||(i[l]=t[l]);t=i,s?function(e,t){let n;return r;function r(...t){const r=e.length>t.length;let s;r&&t.push(a);try{s=e.apply(this,t)}catch(o){if(r&&n)throw o;return a(o)}r||(s&&s.then&&"function"==typeof s.then?s.then(i,a):s instanceof Error?a(s):i(s))}function a(e,...r){n||(n=!0,t(e,...r))}function i(e){a(null,e)}}(s,a)(...i):r(null,...i)}}(null,...t)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}const _u=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},Cu={}.hasOwnProperty;class Nu extends _u{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Du()}copy(){const e=new Nu;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(gu(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(ku("data",this.frozen),this.namespace[e]=t,this):Cu.call(this.namespace,e)&&this.namespace[e]||void 0:e?(ku("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=t.call(e,...n);"function"==typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=Ru(e),n=this.parser||this.Parser;return Iu("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),Iu("process",this.parser||this.Parser),bu("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,a){const o=Ru(e),i=n.parse(o);function s(e,n){e||!n?a(e):r?r(n):t(void 0,n)}n.run(i,o,function(e,t,r){if(e||!t||!r)return s(e);const a=t,o=n.stringify(a,r);var i;"string"==typeof(i=o)||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(i)?r.value=o:r.result=o,s(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),Iu("processSync",this.parser||this.Parser),bu("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,du(e),t=r}),Ou("processSync","process",n),t}run(e,t,n){yu(e),this.freeze();const r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?a(void 0,n):new Promise(a);function a(a,o){const i=Ru(t);r.run(e,i,function(t,r,i){const s=r||e;t?o(t):a?a(s):n(void 0,s,i)})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){du(e),n=t,r=!0}),Ou("runSync","run",r),n}stringify(e,t){this.freeze();const n=Ru(t),r=this.compiler||this.Compiler;return bu("stringify",r),yu(e),r(e,n)}use(e,...t){const n=this.attachers,r=this.namespace;if(ku("use",this.frozen),null==e);else if("function"==typeof e)s(e,t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?i(e):o(e)}return this;function a(e){if("function"==typeof e)s(e,[]);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;s(t,n)}else o(e)}}function o(e){if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");i(e.plugins),e.settings&&(r.settings=gu(!0,r.settings,e.settings))}function i(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;){a(e[t])}}}function s(e,t){let r=-1,a=-1;for(;++r<n.length;)if(n[r][0]===e){a=r;break}if(-1===a)n.push([e,...t]);else if(t.length>0){let[r,...o]=t;const i=n[a][1];Au(i)&&Au(r)&&(r=gu(!0,i,r)),n[a]=[e,r,...o]}}}}const Su=(new Nu).freeze();function Iu(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function bu(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function ku(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function yu(e){if(!Au(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function Ou(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Ru(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new ea(e)}const Lu=e=>{const{baseUrl:t}=e,n={a:["href"],area:["href"],link:["href"],img:["src","srcset","srcSet"],source:["src","srcset","srcSet"],video:["src","poster"],audio:["src"],iframe:["src"],script:["src"]},r=e=>{if(e.startsWith("/")||e.startsWith("//"))try{return new URL(e,t).href}catch(n){return e}return e};return e=>{Do(e,"element",e=>{const t=n[e.tagName];if(t)for(const n of t){const t=e.properties?.[n];if("string"==typeof t)if("srcset"===n||"srcSet"===n){const a=t.split(",").map(e=>{const t=e.trim();if(!t)return"";const n=t.split(/\s+/);if(0===n.length)return"";const a=n[0],o=r(a);return n[0]=o,n.join(" ")}).filter(Boolean).join(", ");e.properties[n]=a}else e.properties[n]=r(t)}})}},Fu=new Set(["address","article","aside","blockquote","br","details","dialog","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","header","hgroup","hr","li","main","nav","ol","p","pre","section","table","ul"]);const Pu=new o,Mu=()=>e=>{Do(e,"element",(e,t,n)=>{if(n&&"number"==typeof t&&e.properties&&e.properties.id){const r=String(e.properties.id);if(r&&["h1","h2","h3","h4","h5","h6"].includes(e.tagName)){const t=Pu.slug(r);return void e.children.push({type:"text",value:` {#${t}}`})}if("span"===e.tagName&&r&&1===Object.keys(e.properties||{}).length)return;const a={type:"element",tagName:"span",properties:{id:r},children:[]};if(function(e){let t=!1;return Do(e,"element",e=>{if(Fu.has(e.tagName))return t=!0,To}),t}(e)){let t=null;if(Do(e,(n,r,a)=>{if(a&&"number"==typeof r&&("element"===n.type&&!Fu.has(n.tagName)||"text"===n.type&&""!==n.value.trim()))return t={node:e,parent:a,index:r},To}),t){const n=t;n.parent.children.splice(n.index+1,0,a),delete e.properties.id}return}return n.children.splice(t+1,0,a),delete e.properties.id,t+1}})},Bu=()=>e=>{Do(e,"element",(e,t,n)=>{if(n&&"number"==typeof t){const r=n.children[t+1];if(r&&"element"===r.type&&"span"===r.tagName&&r.properties?.id&&1===Object.keys(r.properties).length){if(!n||"root"===n.type||["body","div","section","article","aside","footer","header","nav","td","th","li"].includes(n.tagName)){const a={type:"element",tagName:"p",properties:{},children:[e,r]};return n.children.splice(t,2,a),t+1}}}})},vu=()=>e=>{Do(e,(e,t,n)=>{if(n&&"number"==typeof t){if("comment"===e.type&&""===e.value.trim())return n.children.splice(t,1),t;if("element"===e.type&&e.children){const t=[];let n="";const r=()=>{if(n){const e=n.replace(/\s+/g," ");t.push({type:"text",value:e}),n=""}};for(const a of e.children)"text"===a.type?n+=a.value:"comment"===a.type&&""===a.value.trim()||(r(),t.push(a));r(),e.children=t}}})},xu=()=>e=>{const t=[],n=new Map;Do(e,"element",(e,r,a)=>{if(a&&void 0!==r&&"sup"===e.tagName&&Array.isArray(e.properties?.className)&&e.properties.className.includes("reference")){const o=e.children.find(e=>"element"===e.type&&"a"===e.tagName),i=o?.properties?.href;if("string"==typeof i&&i.startsWith("#cite_note-")){n.has(i)||(n.set(i,t.length+1),t.push({id:i,content:[]}));const e={type:"text",value:`[^${n.get(i)}]`};a.children[r]=e}}}),Do(e,"element",e=>{if("li"===e.tagName&&"string"==typeof e.properties?.id&&e.properties.id.startsWith("cite_note-")){const n=`#${e.properties.id}`,r=t.find(e=>e.id===n);if(r){const t=e.children.filter(e=>{if("element"!==e.type)return!1;if("span"!==e.tagName)return!0;const t=e.properties?.className;return!(Array.isArray(t)&&t.includes("mw-cite-backlink"))});r.content=t}}}),Do(e,"element",(e,t,n)=>{if(n&&void 0!==t&&"ol"===e.tagName&&Array.isArray(e.properties?.className)&&e.properties.className.includes("references"))return n.children.splice(t,1),["skip",t]});for(const[r,a]of n){const n=t.find(e=>e.id===r);n&&n.content.length>0&&e.children.push({type:"element",tagName:"p",properties:{},children:[{type:"text",value:`[^${a}]: `},...n.content]})}},wu=(e,t,n)=>{const r=["br","hr","h1","h2","h3","h4","h5","h6","strong","em","b","i","u","s","strike","del","ins","code","ul","ol","li","a","img","blockquote","pre","table","thead","tbody","tfoot","tr","th","td","style"],a=["style","class","id","colspan","rowspan","width","height","align","href","src","title","alt"];Do(t,"element",(e,t,n)=>{if(n&&"number"==typeof t){if("div"===e.tagName){const r=e.properties?.style;if(/display:\s*(inline-block|flex|inline-flex)|float:\s*(left|right)/.test(r??"")){for(const t of e.children)"element"===t.type&&"div"===t.tagName&&(t.tagName="span");const r=[],a={type:"text",value:" "};return e.children.forEach((t,n)=>{r.push(t),n<e.children.length-1&&r.push(a)}),n.children.splice(t,1,...r),t}const a={type:"element",tagName:"br",properties:{},children:[]},o=[...e.children],i=n.children[t-1],s=n.children[t+1],l=i&&"element"===i.type&&"br"===i.tagName,c=s&&"element"===s.type&&"br"===s.tagName;return void 0===l||l||o.unshift(a),void 0===c||c||o.push(a),n.children.splice(t,1,...o),t}if(!r.includes(e.tagName))return n.children.splice(t,1,...e.children),t;e.properties&&Object.keys(e.properties).forEach(t=>{a.includes(t)||delete e.properties[t]})}});return{type:"tableCell",children:[{type:"html",value:function(e,t){const n=t||Pe,r=n.quote||'"',a='"'===r?"'":'"';if('"'!==r&&"'"!==r)throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:ve,all:xe,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||i,characterReferences:n.characterReferences||Me,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:"svg"===n.space?H:U,quote:r,alternative:a}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}(t.children,{allowDangerousHtml:!0})}]}};exports.commonjsGlobal=mu,exports.getAugmentedNamespace=function(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){var n=!1;try{n=this instanceof e}catch{}return n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n},exports.getDefaultExportFromCjs=Tu,exports.getMessage=(e,t,r)=>{let a=n["ja-JP"===e?"ja-JP":"en-US"][t]||n["en-US"][t];if(r)for(const[n,o]of Object.entries(r))a=a.replace(`{${n}}`,o);return a},exports.htmlToMarkdown=async(e,n={})=>{const{locale:r="en-US",htmlContent:a}=n;try{let n,i;if(a?(n=a,i=e||"direct-html-input"):(new URL(e),n=await(async(e,n)=>{let r;try{r=await t.chromium.launch();const a=await r.newPage({locale:n});return await a.goto(e,{waitUntil:"networkidle"}),await a.content()}catch(a){throw a}finally{r&&await r.close()}})(e,r),i=e),!n)return{html:"",markdown:""};return{html:n,markdown:await(async(e,t)=>{const n=new o,r=await Su().use(pa,{fragment:!0}).use(xo).use(vu).use(xu).use(Mu).use(Os).use(Bu).use(Lu,{baseUrl:t}).use(Ss,{handlers:{span(e,t){const n=t.properties?.id;if(n&&1===Object.keys(t.properties||{}).length){const r=e.all(t);return 0===r.length?{type:"html",value:`<span id="${String(n)}"></span>`}:[{type:"html",value:`<span id="${String(n)}">`},...r,{type:"html",value:"</span>"}]}return e.all(t)},a(e,t){if(t.children.some(e=>"element"===e.type&&["dl","ul","ol","table","div"].includes(e.tagName))&&t.properties?.href){const n=String(t.properties.ariaLabel||"");if(n)return[{type:"link",url:String(t.properties.href),children:[{type:"text",value:n}]},{type:"text",value:"\n"},...e.all(t)]}const r=e=>"text"===e.type?e.value:"element"===e.type&&e.children?e.children.map(e=>r(e)).join(""):"";let a=r(t).replace(/\s+/g," ").trim();if(!a){const e=t.properties||{};a=String(e.ariaLabel||e.title||e.href||"")}if(!a)return e.all(t);const o=e=>!!e.children&&e.children.some(e=>{if("element"===e.type){if("img"===e.tagName)return!0;if(e.children)return o(e)}return!1});let i;if(o(t))i={type:"link",url:String(t.properties?.href||""),title:t.properties?.title?String(t.properties.title):null,children:e.all(t)};else{let e=String(t.properties?.href||"");e.startsWith("#")&&(e=`#${n.slug(e.substring(1))}`),i={type:"link",url:e,title:t.properties?.title?String(t.properties.title):null,children:[{type:"text",value:a}]}}return i},td:(e,t,n)=>wu(0,t),th:(e,t,n)=>wu(0,t)}}).use(hu).use(pu,{bullet:"-",listItemIndent:"one",handlers:{html:e=>(e.value||"").replace(/\n/g,"").replace(/\|/g,"\\|")}}).process(e);return String(r).replace(/\\\[\^(.+?)\\?\](?!\s*:)/g,"[^$1]").replace(/\]\(\\#/g,"](#").replace(/(\s*)- - /g,"$1- ").replace(/(\s*)\* \* /g,"$1* ")})(n,i)}}catch(i){return{html:"",markdown:""}}};
1
+ const e=new(require("happy-dom").Window);Object.assign(global,{document:e.document,window:e,self:e});const t=require("playwright"),n={"ja-JP":{error_url_required:"エラー: 変換対象のURLを引数で指定してください。",error_url_or_html_required:"エラー: URLまたはHTMLコンテンツのいずれかを指定してください。",usage:"使用法: node dist/main.js <URL> [--output <ファイルパス>] [--locale <ロケール>] [--html-content <HTMLテキスト>]",example:"例: node dist/main.js https://ja.wikipedia.org/wiki/Node.js -o output.md --locale ja-JP\n または: node dist/main.js --html-content '<html><body><h1>タイトル</h1></body></html>' -o output.md",cli_start:"🚀 コマンドラインから処理を開始します...",cli_url:" - URL: {url}",cli_html_content:" - HTML Content: {length} 文字",cli_locale:" - Locale: {locale}",cli_output:" - Output: {path}",success_save:"✅ Markdownファイルが正常に保存されました。",success_path:" -> {path}",error_app:"❌ アプリケーションの実行中にエラーが発生しました。",playwright_launch:"🚀 Playwrightでブラウザを起動中...",playwright_goto:"📄 {url} にアクセス中... (ロケール: {locale})",playwright_get_content:"HTMLコンテンツを取得中...",playwright_close:"✅ ブラウザを閉じました。",playwright_error:"PlaywrightでのHTML取得中にエラーが発生しました:",convert_start:"🔄 HTMLからMarkdownへの変換を開始...",convert_success:"✅ Markdown変換が完了しました。",url_parse_error:"URLのパースに失敗しました:"},"en-US":{error_url_required:"Error: Please specify the URL to convert as an argument.",error_url_or_html_required:"Error: Please specify either a URL or HTML content.",usage:"Usage: node dist/main.js <URL> [--output <file path>] [--locale <locale>] [--html-content <HTML text>]",example:"Example: node dist/main.js https://en.wikipedia.org/wiki/Node.js -o output.md --locale en-US\n or: node dist/main.js --html-content '<html><body><h1>Title</h1></body></html>' -o output.md",cli_start:"🚀 Starting process from command line...",cli_url:" - URL: {url}",cli_html_content:" - HTML Content: {length} characters",cli_locale:" - Locale: {locale}",cli_output:" - Output: {path}",success_save:"✅ Markdown file saved successfully.",success_path:" -> {path}",error_app:"❌ An error occurred during application execution.",playwright_launch:"🚀 Launching browser with Playwright...",playwright_goto:"📄 Accessing {url}... (Locale: {locale})",playwright_get_content:"Fetching HTML content...",playwright_close:"✅ Browser closed.",playwright_error:"An error occurred while fetching HTML with Playwright:",convert_start:"🔄 Starting HTML to Markdown conversion...",convert_success:"✅ Markdown conversion completed.",url_parse_error:"Failed to parse URL:"}},r=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,a=Object.hasOwnProperty;class o{constructor(){this.occurrences,this.reset()}slug(e,t){const n=this;let o=function(e,t){if("string"!=typeof e)return"";t||(e=e.toLowerCase());return e.replace(r,"").replace(/ /g,"-")}(e,!0===t);const i=o;for(;a.call(n.occurrences,o);)n.occurrences[i]++,o=i+"-"+n.occurrences[i];return n.occurrences[o]=0,o}reset(){this.occurrences=Object.create(null)}}const i=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];let s=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};function l(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new s(n,r,t)}function c(e){return e.toLowerCase()}s.prototype.normal={},s.prototype.property={},s.prototype.space=void 0;let u=class{constructor(e,t){this.attribute=t,this.property=e}};u.prototype.attribute="",u.prototype.booleanish=!1,u.prototype.boolean=!1,u.prototype.commaOrSpaceSeparated=!1,u.prototype.commaSeparated=!1,u.prototype.defined=!1,u.prototype.mustUseProperty=!1,u.prototype.number=!1,u.prototype.overloadedBoolean=!1,u.prototype.property="",u.prototype.spaceSeparated=!1,u.prototype.space=void 0;let p=0;const h=A(),d=A(),E=A(),m=A(),f=A(),T=A(),g=A();function A(){return 2**++p}const D=Object.freeze(Object.defineProperty({__proto__:null,boolean:h,booleanish:d,commaOrSpaceSeparated:g,commaSeparated:T,number:m,overloadedBoolean:E,spaceSeparated:f},Symbol.toStringTag,{value:"Module"})),_=Object.keys(D);let C=class extends u{constructor(e,t,n,r){let a=-1;if(super(e,t),N(this,"space",r),"number"==typeof n)for(;++a<_.length;){const e=_[a];N(this,_[a],(n&D[e])===D[e])}}};function N(e,t,n){n&&(e[t]=n)}function I(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const o=new C(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[c(r)]=r,n[c(o.attribute)]=r}return new s(t,n,e.space)}C.prototype.defined=!0;const S=I({properties:{ariaActiveDescendant:null,ariaAtomic:d,ariaAutoComplete:null,ariaBusy:d,ariaChecked:d,ariaColCount:m,ariaColIndex:m,ariaColSpan:m,ariaControls:f,ariaCurrent:null,ariaDescribedBy:f,ariaDetails:null,ariaDisabled:d,ariaDropEffect:f,ariaErrorMessage:null,ariaExpanded:d,ariaFlowTo:f,ariaGrabbed:d,ariaHasPopup:null,ariaHidden:d,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:f,ariaLevel:m,ariaLive:null,ariaModal:d,ariaMultiLine:d,ariaMultiSelectable:d,ariaOrientation:null,ariaOwns:f,ariaPlaceholder:null,ariaPosInSet:m,ariaPressed:d,ariaReadOnly:d,ariaRelevant:null,ariaRequired:d,ariaRoleDescription:f,ariaRowCount:m,ariaRowIndex:m,ariaRowSpan:m,ariaSelected:d,ariaSetSize:m,ariaSort:null,ariaValueMax:m,ariaValueMin:m,ariaValueNow:m,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function b(e,t){return t in e?e[t]:t}function k(e,t){return b(e,t.toLowerCase())}const y=I({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:T,acceptCharset:f,accessKey:f,action:null,allow:null,allowFullScreen:h,allowPaymentRequest:h,allowUserMedia:h,alt:null,as:null,async:h,autoCapitalize:null,autoComplete:f,autoFocus:h,autoPlay:h,blocking:f,capture:null,charSet:null,checked:h,cite:null,className:f,cols:m,colSpan:null,content:null,contentEditable:d,controls:h,controlsList:f,coords:m|T,crossOrigin:null,data:null,dateTime:null,decoding:null,default:h,defer:h,dir:null,dirName:null,disabled:h,download:E,draggable:d,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:h,formTarget:null,headers:f,height:m,hidden:E,high:m,href:null,hrefLang:null,htmlFor:f,httpEquiv:f,id:null,imageSizes:null,imageSrcSet:null,inert:h,inputMode:null,integrity:null,is:null,isMap:h,itemId:null,itemProp:f,itemRef:f,itemScope:h,itemType:f,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:h,low:m,manifest:null,max:null,maxLength:m,media:null,method:null,min:null,minLength:m,multiple:h,muted:h,name:null,nonce:null,noModule:h,noValidate:h,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:h,optimum:m,pattern:null,ping:f,placeholder:null,playsInline:h,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:h,referrerPolicy:null,rel:f,required:h,reversed:h,rows:m,rowSpan:m,sandbox:f,scope:null,scoped:h,seamless:h,selected:h,shadowRootClonable:h,shadowRootDelegatesFocus:h,shadowRootMode:null,shape:null,size:m,sizes:null,slot:null,span:m,spellCheck:d,src:null,srcDoc:null,srcLang:null,srcSet:null,start:m,step:null,style:null,tabIndex:m,target:null,title:null,translate:null,type:null,typeMustMatch:h,useMap:null,value:d,width:m,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:f,axis:null,background:null,bgColor:null,border:m,borderColor:null,bottomMargin:m,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:h,declare:h,event:null,face:null,frame:null,frameBorder:null,hSpace:m,leftMargin:m,link:null,longDesc:null,lowSrc:null,marginHeight:m,marginWidth:m,noResize:h,noHref:h,noShade:h,noWrap:h,object:null,profile:null,prompt:null,rev:null,rightMargin:m,rules:null,scheme:null,scrolling:d,standby:null,summary:null,text:null,topMargin:m,valueType:null,version:null,vAlign:null,vLink:null,vSpace:m,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:h,disableRemotePlayback:h,prefix:null,property:null,results:m,security:null,unselectable:null},space:"html",transform:k}),O=I({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:g,accentHeight:m,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:m,amplitude:m,arabicForm:null,ascent:m,attributeName:null,attributeType:null,azimuth:m,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:m,by:null,calcMode:null,capHeight:m,className:f,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:m,diffuseConstant:m,direction:null,display:null,dur:null,divisor:m,dominantBaseline:null,download:h,dx:null,dy:null,edgeMode:null,editable:null,elevation:m,enableBackground:null,end:null,event:null,exponent:m,externalResourcesRequired:null,fill:null,fillOpacity:m,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:T,g2:T,glyphName:T,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:m,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:m,horizOriginX:m,horizOriginY:m,id:null,ideographic:m,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:m,k:m,k1:m,k2:m,k3:m,k4:m,kernelMatrix:g,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:m,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:m,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:m,overlineThickness:m,paintOrder:null,panose1:null,path:null,pathLength:m,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:f,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:m,pointsAtY:m,pointsAtZ:m,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:g,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:g,rev:g,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:g,requiredFeatures:g,requiredFonts:g,requiredFormats:g,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:m,specularExponent:m,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:m,strikethroughThickness:m,string:null,stroke:null,strokeDashArray:g,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:m,strokeOpacity:m,strokeWidth:null,style:null,surfaceScale:m,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:g,tabIndex:m,tableValues:null,target:null,targetX:m,targetY:m,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:g,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:m,underlineThickness:m,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:m,values:null,vAlphabetic:m,vMathematical:m,vectorEffect:null,vHanging:m,vIdeographic:m,version:null,vertAdvY:m,vertOriginX:m,vertOriginY:m,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:m,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:b}),R=I({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),L=I({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:k}),F=I({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),P=/[A-Z]/g,M=/-[a-z]/g,B=/^data[-\w.:]+$/i;function v(e,t){const n=c(t);let r=t,a=u;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&B.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(M,w);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!M.test(e)){let n=e.replace(P,x);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}a=C}return new a(r,t)}function x(e){return"-"+e.toLowerCase()}function w(e){return e.charAt(1).toUpperCase()}const U=l([S,y,R,L,F],"html"),H=l([S,O,R,L,F],"svg"),G={}.hasOwnProperty;function Y(e,t){const n=t||{};function r(t,...n){let a=r.invalid;const o=r.handlers;if(t&&G.call(t,e)){const n=String(t[e]);a=G.call(o,n)?o[n]:r.unknown}if(a)return a.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const q=/["&'<>`]/g,z=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,W=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,j=/[|\\{}()[\]^$+*?.]/g,Q=new WeakMap;function V(e,t){return e=e.replace(t.subset?function(e){let t=Q.get(e);t||(t=function(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(j,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}(e),Q.set(e,t));return t}(t.subset):q,n),t.subset||t.escapeOnly?e:e.replace(z,function(e,n,r){return t.format(1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536,r.charCodeAt(n+2),t)}).replace(W,n);function n(e,n,r){return t.format(e.charCodeAt(0),r.charCodeAt(n+1),t)}}const K=/[\dA-Fa-f]/;const X=/\d/;const $=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],J={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},Z=["cent","copy","divide","gt","lt","not","para","times"],ee={}.hasOwnProperty,te={};let ne;for(ne in J)ee.call(J,ne)&&(te[J[ne]]=ne);const re=/[^\dA-Za-z]/;function ae(e,t,n){let r,a=function(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!K.test(String.fromCharCode(t))?r:r+";"}(e,t,n.omitOptionalSemicolons);if((n.useNamedReferences||n.useShortestReferences)&&(r=function(e,t,n,r){const a=String.fromCharCode(e);if(ee.call(te,a)){const e=te[a],o="&"+e;return n&&$.includes(e)&&!Z.includes(e)&&(!r||t&&61!==t&&re.test(String.fromCharCode(t)))?o:o+";"}return""}(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!r)&&n.useShortestReferences){const r=function(e,t,n){const r="&#"+String(e);return n&&t&&!X.test(String.fromCharCode(t))?r:r+";"}(e,t,n.omitOptionalSemicolons);r.length<a.length&&(a=r)}return r&&(!n.useShortestReferences||r.length<a.length)?r:a}function oe(e,t){return V(e,Object.assign({format:ae},t))}const ie=/^>|^->|<!--|-->|--!>|<!-$/g,se=[">"],le=["<",">"];function ce(e,t){const n=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let r=0,a=n.indexOf(t);for(;-1!==a;)r++,a=n.indexOf(t,a+t.length);return r}function ue(e){const t=[],n=String(e||"");let r=n.indexOf(","),a=0,o=!1;for(;!o;){-1===r&&(r=n.length,o=!0);const e=n.slice(a,r).trim();!e&&o||t.push(e),a=r+1,r=n.indexOf(",",a)}return t}function pe(e,t){const n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}function he(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function de(e){return e.join(" ").trim()}const Ee=/[ \t\n\f\r]/g;function me(e){return"object"==typeof e?"text"===e.type&&fe(e.value):fe(e)}function fe(e){return""===e.replace(Ee,"")}const Te=De(1),ge=De(-1),Ae=[];function De(e){return function(t,n,r){const a=t?t.children:Ae;let o=(n||0)+e,i=a[o];if(!r)for(;i&&me(i);)o+=e,i=a[o];return i}}const _e={}.hasOwnProperty;function Ce(e){return function(t,n,r){return _e.call(e,t.tagName)&&e[t.tagName](t,n,r)}}const Ne=Ce({body:function(e,t,n){const r=Te(n,t);return!r||"comment"!==r.type},caption:Ie,colgroup:Ie,dd:function(e,t,n){const r=Te(n,t);return!r||"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName)},dt:function(e,t,n){const r=Te(n,t);return Boolean(r&&"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName))},head:Ie,html:function(e,t,n){const r=Te(n,t);return!r||"comment"!==r.type},li:function(e,t,n){const r=Te(n,t);return!r||"element"===r.type&&"li"===r.tagName},optgroup:function(e,t,n){const r=Te(n,t);return!r||"element"===r.type&&"optgroup"===r.tagName},option:function(e,t,n){const r=Te(n,t);return!r||"element"===r.type&&("option"===r.tagName||"optgroup"===r.tagName)},p:function(e,t,n){const r=Te(n,t);return r?"element"===r.type&&("address"===r.tagName||"article"===r.tagName||"aside"===r.tagName||"blockquote"===r.tagName||"details"===r.tagName||"div"===r.tagName||"dl"===r.tagName||"fieldset"===r.tagName||"figcaption"===r.tagName||"figure"===r.tagName||"footer"===r.tagName||"form"===r.tagName||"h1"===r.tagName||"h2"===r.tagName||"h3"===r.tagName||"h4"===r.tagName||"h5"===r.tagName||"h6"===r.tagName||"header"===r.tagName||"hgroup"===r.tagName||"hr"===r.tagName||"main"===r.tagName||"menu"===r.tagName||"nav"===r.tagName||"ol"===r.tagName||"p"===r.tagName||"pre"===r.tagName||"section"===r.tagName||"table"===r.tagName||"ul"===r.tagName):!n||!("element"===n.type&&("a"===n.tagName||"audio"===n.tagName||"del"===n.tagName||"ins"===n.tagName||"map"===n.tagName||"noscript"===n.tagName||"video"===n.tagName))},rp:Se,rt:Se,tbody:function(e,t,n){const r=Te(n,t);return!r||"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName)},td:be,tfoot:function(e,t,n){return!Te(n,t)},th:be,thead:function(e,t,n){const r=Te(n,t);return Boolean(r&&"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName))},tr:function(e,t,n){const r=Te(n,t);return!r||"element"===r.type&&"tr"===r.tagName}});function Ie(e,t,n){const r=Te(n,t,!0);return!r||"comment"!==r.type&&!("text"===r.type&&me(r.value.charAt(0)))}function Se(e,t,n){const r=Te(n,t);return!r||"element"===r.type&&("rp"===r.tagName||"rt"===r.tagName)}function be(e,t,n){const r=Te(n,t);return!r||"element"===r.type&&("td"===r.tagName||"th"===r.tagName)}const ke=Ce({body:function(e){const t=Te(e,-1,!0);return!(t&&("comment"===t.type||"text"===t.type&&me(t.value.charAt(0))||"element"===t.type&&("meta"===t.tagName||"link"===t.tagName||"script"===t.tagName||"style"===t.tagName||"template"===t.tagName)))},colgroup:function(e,t,n){const r=ge(n,t),a=Te(e,-1,!0);if(n&&r&&"element"===r.type&&"colgroup"===r.tagName&&Ne(r,n.children.indexOf(r),n))return!1;return Boolean(a&&"element"===a.type&&"col"===a.tagName)},head:function(e){const t=new Set;for(const r of e.children)if("element"===r.type&&("base"===r.tagName||"title"===r.tagName)){if(t.has(r.tagName))return!1;t.add(r.tagName)}const n=e.children[0];return!n||"element"===n.type},html:function(e){const t=Te(e,-1);return!t||"comment"!==t.type},tbody:function(e,t,n){const r=ge(n,t),a=Te(e,-1);if(n&&r&&"element"===r.type&&("thead"===r.tagName||"tbody"===r.tagName)&&Ne(r,n.children.indexOf(r),n))return!1;return Boolean(a&&"element"===a.type&&"tr"===a.tagName)}});const ye={name:[["\t\n\f\r &/=>".split(""),"\t\n\f\r \"&'/=>`".split("")],["\0\t\n\f\r \"&'/<=>".split(""),"\0\t\n\f\r \"&'/<=>`".split("")]],unquoted:[["\t\n\f\r &>".split(""),"\0\t\n\f\r \"&'<=>`".split("")],["\0\t\n\f\r \"&'<=>`".split(""),"\0\t\n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function Oe(e,t,n){const r=v(e.schema,t),a=e.settings.allowParseErrors&&"html"===e.schema.space?0:1,o=e.settings.allowDangerousCharacters?0:1;let i,s=e.quote;if(!r.overloadedBoolean||n!==r.attribute&&""!==n?!r.boolean&&!r.overloadedBoolean||"string"==typeof n&&n!==r.attribute&&""!==n||(n=Boolean(n)):n=!0,null==n||!1===n||"number"==typeof n&&Number.isNaN(n))return"";const l=oe(r.attribute,Object.assign({},e.settings.characterReferences,{subset:ye.name[a][o]}));return!0===n?l:(n=Array.isArray(n)?(r.commaSeparated?pe:de)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n?l:(e.settings.preferUnquoted&&(i=oe(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:ye.unquoted[a][o]}))),i!==n&&(e.settings.quoteSmart&&ce(n,s)>ce(n,e.alternative)&&(s=e.alternative),i=s+oe(n,Object.assign({},e.settings.characterReferences,{subset:("'"===s?ye.single:ye.double)[a][o],attribute:!0}))+s),l+(i?"="+i:i)))}const Re=["<","&"];function Le(e,t,n,r){return!n||"element"!==n.type||"script"!==n.tagName&&"style"!==n.tagName?oe(e.value,Object.assign({},r.settings.characterReferences,{subset:Re})):e.value}const Fe=Y("type",{invalid:function(e){throw new Error("Expected node, not `"+e+"`")},unknown:function(e){throw new Error("Cannot compile unknown node `"+e.type+"`")},handlers:{comment:function(e,t,n,r){return r.settings.bogusComments?"<?"+oe(e.value,Object.assign({},r.settings.characterReferences,{subset:se}))+">":"\x3c!--"+e.value.replace(ie,function(e){return oe(e,Object.assign({},r.settings.characterReferences,{subset:le}))})+"--\x3e"},doctype:function(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"},element:function(e,t,n,r){const a=r.schema,o="svg"!==a.space&&r.settings.omitOptionalTags;let i="svg"===a.space?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const s=[];let l;"html"===a.space&&"svg"===e.tagName&&(r.schema=H);const c=function(e,t){const n=[];let r,a=-1;if(t)for(r in t)if(null!==t[r]&&void 0!==t[r]){const a=Oe(e,r,t[r]);a&&n.push(a)}for(;++a<n.length;){const t=e.settings.tightAttributes?n[a].charAt(n[a].length-1):void 0;a!==n.length-1&&'"'!==t&&"'"!==t&&(n[a]+=" ")}return n.join("")}(r,e.properties),u=r.all("html"===a.space&&"template"===e.tagName?e.content:e);return r.schema=a,u&&(i=!1),!c&&o&&ke(e,t,n)||(s.push("<",e.tagName,c?" "+c:""),i&&("svg"===a.space||r.settings.closeSelfClosing)&&(l=c.charAt(c.length-1),(!r.settings.tightSelfClosing||"/"===l||l&&'"'!==l&&"'"!==l)&&s.push(" "),s.push("/")),s.push(">")),s.push(u),i||o&&Ne(e,t,n)||s.push("</"+e.tagName+">"),s.join("")},raw:function(e,t,n,r){return r.settings.allowDangerousHtml?e.value:Le(e,0,n,r)},root:function(e,t,n,r){return r.all(e)},text:Le}});const Pe={},Me={},Be=[];function ve(e,t,n){return Fe(e,t,n,this)}function xe(e){const t=[],n=e&&e.children||Be;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}const we=/[#.]/g;function Ue(e,t,n){const r=n?function(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}(n):void 0;return function(n,a,...o){let i;if(null==n){i={type:"root",children:[]};const e=a;o.unshift(e)}else{i=function(e,t){const n=e||"",r={};let a,o,i=0;for(;i<n.length;){we.lastIndex=i;const e=we.exec(n),t=n.slice(i,e?e.index:n.length);t&&(a?"#"===a?r.id=t:Array.isArray(r.className)?r.className.push(t):r.className=[t]:o=t,i+=t.length),e&&(a=e[0],i++)}return{type:"element",tagName:o||t||"div",properties:r,children:[]}}(n,t);const s=i.tagName.toLowerCase(),l=r?r.get(s):void 0;if(i.tagName=l||s,function(e){if(null===e||"object"!=typeof e||Array.isArray(e))return!0;if("string"!=typeof e.type)return!1;const t=e,n=Object.keys(e);for(const r of n){const e=t[r];if(e&&"object"==typeof e){if(!Array.isArray(e))return!0;const t=e;for(const e of t)if("number"!=typeof e&&"string"!=typeof e)return!0}}if("children"in e&&Array.isArray(e.children))return!0;return!1}(a))o.unshift(a);else for(const[t,n]of Object.entries(a))He(e,i.properties,t,n)}for(const e of o)Ge(i.children,e);return"element"===i.type&&"template"===i.tagName&&(i.content={type:"root",children:i.children},i.children=[]),i}}function He(e,t,n,r){const a=v(e,n);let o;if(null!=r){if("number"==typeof r){if(Number.isNaN(r))return;o=r}else o="boolean"==typeof r?r:"string"==typeof r?a.spaceSeparated?he(r):a.commaSeparated?ue(r):a.commaOrSpaceSeparated?he(ue(r).join(" ")):Ye(a,a.property,r):Array.isArray(r)?[...r]:"style"===a.property?function(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}(r):String(r);if(Array.isArray(o)){const e=[];for(const t of o)e.push(Ye(a,a.property,t));o=e}"className"===a.property&&Array.isArray(t.className)&&(o=t.className.concat(o)),t[a.property]=o}}function Ge(e,t){if(null==t);else if("number"==typeof t||"string"==typeof t)e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)Ge(e,n);else{if("object"!=typeof t||!("type"in t))throw new Error("Expected node, nodes, or string, got `"+t+"`");"root"===t.type?Ge(e,t.children):e.push(t)}}function Ye(e,t,n){if("string"==typeof n){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(""===n||c(n)===c(t)))return!0}return n}const qe=Ue(U,"div"),ze=Ue(H,"g",["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"]);function We(e,t){const n=e.indexOf("\r",t),r=e.indexOf("\n",t);return-1===r?n:-1===n||n+1===r?r:n<r?n:r}const je={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/"},Qe={}.hasOwnProperty,Ve=Object.prototype;function Ke(e,t){const n=t||{};return Xe({file:n.file||void 0,location:!1,schema:"svg"===n.space?H:U,verbose:n.verbose||!1},e)}function Xe(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},Je(e,r,n),n}case"#document":case"#document-fragment":{const r=t,a="mode"in r&&("quirks"===r.mode||"limited-quirks"===r.mode);if(n={type:"root",children:$e(e,t.childNodes),data:{quirksMode:a}},e.file&&e.location){const t=String(e.file),r=function(e){const t=String(e),n=[];return{toOffset:function(e){if(e&&"number"==typeof e.line&&"number"==typeof e.column&&!Number.isNaN(e.line)&&!Number.isNaN(e.column)){for(;n.length<e.line;){const e=n[n.length-1],r=We(t,e),a=-1===r?t.length+1:r+1;if(e===a)break;n.push(a)}const r=(e.line>1?n[e.line-2]:0)+e.column-1;if(r<n[e.line-1])return r}},toPoint:function(e){if("number"==typeof e&&e>-1&&e<=t.length){let r=0;for(;;){let a=n[r];if(void 0===a){const e=We(t,n[r-1]);a=-1===e?t.length+1:e+1,n[r]=a}if(a>e)return{line:r+1,column:e-(r>0?n[r-1]:0)+1,offset:e};r++}}}}}(t),a=r.toPoint(0),o=r.toPoint(t.length);n.position={start:a,end:o}}return n}case"#documentType":return n={type:"doctype"},Je(e,t,n),n;case"#text":{const r=t;return n={type:"text",value:r.value},Je(e,r,n),n}default:return n=function(e,t){const n=e.schema;e.schema=t.namespaceURI===je.svg?H:U;let r=-1;const a={};for(;++r<t.attrs.length;){const e=t.attrs[r],n=(e.prefix?e.prefix+":":"")+e.name;Qe.call(Ve,n)||(a[n]=e.value)}const o="svg"===e.schema.space?ze:qe,i=o(t.tagName,a,$e(e,t.childNodes));if(Je(e,t,i),"template"===i.tagName){const n=t,r=n.sourceCodeLocation,a=r&&r.startTag&&Ze(r.startTag),o=r&&r.endTag&&Ze(r.endTag),s=Xe(e,n.content);a&&o&&e.file&&(s.position={start:a.end,end:o.start}),i.content=s}return e.schema=n,i}(e,t),n}}function $e(e,t){let n=-1;const r=[];for(;++n<t.length;){const a=Xe(e,t[n]);r.push(a)}return r}function Je(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=function(e,t,n){const r=Ze(n);if("element"===t.type){const a=t.children[t.children.length-1];if(r&&!n.endTag&&a&&a.position&&a.position.end&&(r.end=Object.assign({},a.position.end)),e.verbose){const r={};let a;if(n.attrs)for(a in n.attrs)Qe.call(n.attrs,a)&&(r[v(e.schema,a).property]=Ze(n.attrs[a]));n.startTag;const o=Ze(n.startTag),i=n.endTag?Ze(n.endTag):void 0,s={opening:o};i&&(s.closing=i),s.properties=r,t.data={position:s}}}return r}(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function Ze(e){const t=et({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=et({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function et(e){return e.line&&e.column?e:void 0}const tt=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),nt="�";var rt,at;(at=rt||(rt={}))[at.EOF=-1]="EOF",at[at.NULL=0]="NULL",at[at.TABULATION=9]="TABULATION",at[at.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",at[at.LINE_FEED=10]="LINE_FEED",at[at.FORM_FEED=12]="FORM_FEED",at[at.SPACE=32]="SPACE",at[at.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",at[at.QUOTATION_MARK=34]="QUOTATION_MARK",at[at.AMPERSAND=38]="AMPERSAND",at[at.APOSTROPHE=39]="APOSTROPHE",at[at.HYPHEN_MINUS=45]="HYPHEN_MINUS",at[at.SOLIDUS=47]="SOLIDUS",at[at.DIGIT_0=48]="DIGIT_0",at[at.DIGIT_9=57]="DIGIT_9",at[at.SEMICOLON=59]="SEMICOLON",at[at.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",at[at.EQUALS_SIGN=61]="EQUALS_SIGN",at[at.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",at[at.QUESTION_MARK=63]="QUESTION_MARK",at[at.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",at[at.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",at[at.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",at[at.GRAVE_ACCENT=96]="GRAVE_ACCENT",at[at.LATIN_SMALL_A=97]="LATIN_SMALL_A",at[at.LATIN_SMALL_Z=122]="LATIN_SMALL_Z";const ot="--",it="[CDATA[",st="doctype",lt="script",ct="public",ut="system";function pt(e){return e>=55296&&e<=57343}function ht(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159}function dt(e){return e>=64976&&e<=65007||tt.has(e)}var Et,mt;(mt=Et||(Et={})).controlCharacterInInputStream="control-character-in-input-stream",mt.noncharacterInInputStream="noncharacter-in-input-stream",mt.surrogateInInputStream="surrogate-in-input-stream",mt.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",mt.endTagWithAttributes="end-tag-with-attributes",mt.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",mt.unexpectedSolidusInTag="unexpected-solidus-in-tag",mt.unexpectedNullCharacter="unexpected-null-character",mt.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",mt.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",mt.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",mt.missingEndTagName="missing-end-tag-name",mt.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",mt.unknownNamedCharacterReference="unknown-named-character-reference",mt.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",mt.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",mt.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",mt.eofBeforeTagName="eof-before-tag-name",mt.eofInTag="eof-in-tag",mt.missingAttributeValue="missing-attribute-value",mt.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",mt.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",mt.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",mt.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",mt.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",mt.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",mt.missingDoctypePublicIdentifier="missing-doctype-public-identifier",mt.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",mt.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",mt.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",mt.cdataInHtmlContent="cdata-in-html-content",mt.incorrectlyOpenedComment="incorrectly-opened-comment",mt.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",mt.eofInDoctype="eof-in-doctype",mt.nestedComment="nested-comment",mt.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",mt.eofInComment="eof-in-comment",mt.incorrectlyClosedComment="incorrectly-closed-comment",mt.eofInCdata="eof-in-cdata",mt.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",mt.nullCharacterReference="null-character-reference",mt.surrogateCharacterReference="surrogate-character-reference",mt.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",mt.controlCharacterReference="control-character-reference",mt.noncharacterCharacterReference="noncharacter-character-reference",mt.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",mt.missingDoctypeName="missing-doctype-name",mt.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",mt.duplicateAttribute="duplicate-attribute",mt.nonConformingDoctype="non-conforming-doctype",mt.missingDoctype="missing-doctype",mt.misplacedDoctype="misplaced-doctype",mt.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",mt.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",mt.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",mt.openElementsLeftAfterEof="open-elements-left-after-eof",mt.abandonedHeadElementChild="abandoned-head-element-child",mt.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",mt.nestedNoscriptInHead="nested-noscript-in-head",mt.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text";class ft{constructor(e){this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+Number(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e,t){const{line:n,col:r,offset:a}=this,o=r+t,i=a+t;return{code:e,startLine:n,endLine:n,startCol:o,endCol:o,startOffset:i,endOffset:i}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){const t=this.html.charCodeAt(this.pos+1);if(function(e){return e>=56320&&e<=57343}(t))return this.pos++,this._addGap(),1024*(e-55296)+9216+t}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,rt.EOF;return this._err(Et.surrogateInInputStream),e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(e,t){this.html.length>0?this.html+=e:this.html=e,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.endOfChunkHit=!1}startsWith(e,t){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(t)return this.html.startsWith(e,this.pos);for(let n=0;n<e.length;n++){if((32|this.html.charCodeAt(this.pos+n))!==e.charCodeAt(n))return!1}return!0}peek(e){const t=this.pos+e;if(t>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,rt.EOF;const n=this.html.charCodeAt(t);return n===rt.CARRIAGE_RETURN?rt.LINE_FEED:n}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,rt.EOF;let e=this.html.charCodeAt(this.pos);if(e===rt.CARRIAGE_RETURN)return this.isEol=!0,this.skipNextNewLine=!0,rt.LINE_FEED;if(e===rt.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine))return this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance();this.skipNextNewLine=!1,pt(e)&&(e=this._processSurrogate(e));return null===this.handler.onParseError||e>31&&e<127||e===rt.LINE_FEED||e===rt.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e}_checkForProblematicCharacters(e){ht(e)?this._err(Et.controlCharacterInInputStream):dt(e)&&this._err(Et.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var Tt,gt;function At(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}(gt=Tt||(Tt={}))[gt.CHARACTER=0]="CHARACTER",gt[gt.NULL_CHARACTER=1]="NULL_CHARACTER",gt[gt.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",gt[gt.START_TAG=3]="START_TAG",gt[gt.END_TAG=4]="END_TAG",gt[gt.COMMENT=5]="COMMENT",gt[gt.DOCTYPE=6]="DOCTYPE",gt[gt.EOF=7]="EOF",gt[gt.HIBERNATION=8]="HIBERNATION";const Dt=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),_t=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);var Ct,Nt;(Nt=Ct||(Ct={}))[Nt.NUM=35]="NUM",Nt[Nt.SEMI=59]="SEMI",Nt[Nt.EQUALS=61]="EQUALS",Nt[Nt.ZERO=48]="ZERO",Nt[Nt.NINE=57]="NINE",Nt[Nt.LOWER_A=97]="LOWER_A",Nt[Nt.LOWER_F=102]="LOWER_F",Nt[Nt.LOWER_X=120]="LOWER_X",Nt[Nt.LOWER_Z=122]="LOWER_Z",Nt[Nt.UPPER_A=65]="UPPER_A",Nt[Nt.UPPER_F=70]="UPPER_F",Nt[Nt.UPPER_Z=90]="UPPER_Z";var It,St,bt,kt,yt,Ot,Rt,Lt,Ft,Pt,Mt,Bt,vt,xt,wt,Ut;function Ht(e){return e>=Ct.ZERO&&e<=Ct.NINE}function Gt(e){return e>=Ct.UPPER_A&&e<=Ct.UPPER_F||e>=Ct.LOWER_A&&e<=Ct.LOWER_F}function Yt(e){return e===Ct.EQUALS||function(e){return e>=Ct.UPPER_A&&e<=Ct.UPPER_Z||e>=Ct.LOWER_A&&e<=Ct.LOWER_Z||Ht(e)}(e)}(St=It||(It={}))[St.VALUE_LENGTH=49152]="VALUE_LENGTH",St[St.BRANCH_LENGTH=16256]="BRANCH_LENGTH",St[St.JUMP_TABLE=127]="JUMP_TABLE",(kt=bt||(bt={}))[kt.EntityStart=0]="EntityStart",kt[kt.NumericStart=1]="NumericStart",kt[kt.NumericDecimal=2]="NumericDecimal",kt[kt.NumericHex=3]="NumericHex",kt[kt.NamedEntity=4]="NamedEntity",(Ot=yt||(yt={}))[Ot.Legacy=0]="Legacy",Ot[Ot.Strict=1]="Strict",Ot[Ot.Attribute=2]="Attribute";class qt{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=bt.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=yt.Strict}startEntity(e){this.decodeMode=e,this.state=bt.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case bt.EntityStart:return e.charCodeAt(t)===Ct.NUM?(this.state=bt.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=bt.NamedEntity,this.stateNamedEntity(e,t));case bt.NumericStart:return this.stateNumericStart(e,t);case bt.NumericDecimal:return this.stateNumericDecimal(e,t);case bt.NumericHex:return this.stateNumericHex(e,t);case bt.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===Ct.LOWER_X?(this.state=bt.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=bt.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,r){if(t!==n){const a=n-t;this.result=this.result*Math.pow(r,a)+Number.parseInt(e.substr(t,a),r),this.consumed+=a}}stateNumericHex(e,t){const n=t;for(;t<e.length;){const r=e.charCodeAt(t);if(!Ht(r)&&!Gt(r))return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(r,3);t+=1}return this.addToNumericResult(e,n,t,16),-1}stateNumericDecimal(e,t){const n=t;for(;t<e.length;){const r=e.charCodeAt(t);if(!Ht(r))return this.addToNumericResult(e,n,t,10),this.emitNumericEntity(r,2);t+=1}return this.addToNumericResult(e,n,t,10),-1}emitNumericEntity(e,t){var n;if(this.consumed<=t)return null===(n=this.errors)||void 0===n||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===Ct.SEMI)this.consumed+=1;else if(this.decodeMode===yt.Strict)return 0;return this.emitCodePoint(function(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=_t.get(e))&&void 0!==t?t:e}(this.result),this.consumed),this.errors&&(e!==Ct.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){const{decodeTree:n}=this;let r=n[this.treeIndex],a=(r&It.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){const o=e.charCodeAt(t);if(this.treeIndex=zt(n,r,this.treeIndex+Math.max(1,a),o),this.treeIndex<0)return 0===this.result||this.decodeMode===yt.Attribute&&(0===a||Yt(o))?0:this.emitNotTerminatedNamedEntity();if(r=n[this.treeIndex],a=(r&It.VALUE_LENGTH)>>14,0!==a){if(o===Ct.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==yt.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:t,decodeTree:n}=this,r=(n[t]&It.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){const{decodeTree:r}=this;return this.emitCodePoint(1===t?r[e]&~It.VALUE_LENGTH:r[e+1],n),3===t&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case bt.NamedEntity:return 0===this.result||this.decodeMode===yt.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case bt.NumericDecimal:return this.emitNumericEntity(0,2);case bt.NumericHex:return this.emitNumericEntity(0,3);case bt.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case bt.EntityStart:return 0}}}function zt(e,t,n,r){const a=(t&It.BRANCH_LENGTH)>>7,o=t&It.JUMP_TABLE;if(0===a)return 0!==o&&r===o?n:-1;if(o){const t=r-o;return t<0||t>=a?-1:e[n+t]-1}let i=n,s=i+a-1;for(;i<=s;){const t=i+s>>>1,n=e[t];if(n<r)i=t+1;else{if(!(n>r))return e[t+a];s=t-1}}return-1}(Lt=Rt||(Rt={})).HTML="http://www.w3.org/1999/xhtml",Lt.MATHML="http://www.w3.org/1998/Math/MathML",Lt.SVG="http://www.w3.org/2000/svg",Lt.XLINK="http://www.w3.org/1999/xlink",Lt.XML="http://www.w3.org/XML/1998/namespace",Lt.XMLNS="http://www.w3.org/2000/xmlns/",(Pt=Ft||(Ft={})).TYPE="type",Pt.ACTION="action",Pt.ENCODING="encoding",Pt.PROMPT="prompt",Pt.NAME="name",Pt.COLOR="color",Pt.FACE="face",Pt.SIZE="size",(Bt=Mt||(Mt={})).NO_QUIRKS="no-quirks",Bt.QUIRKS="quirks",Bt.LIMITED_QUIRKS="limited-quirks",(xt=vt||(vt={})).A="a",xt.ADDRESS="address",xt.ANNOTATION_XML="annotation-xml",xt.APPLET="applet",xt.AREA="area",xt.ARTICLE="article",xt.ASIDE="aside",xt.B="b",xt.BASE="base",xt.BASEFONT="basefont",xt.BGSOUND="bgsound",xt.BIG="big",xt.BLOCKQUOTE="blockquote",xt.BODY="body",xt.BR="br",xt.BUTTON="button",xt.CAPTION="caption",xt.CENTER="center",xt.CODE="code",xt.COL="col",xt.COLGROUP="colgroup",xt.DD="dd",xt.DESC="desc",xt.DETAILS="details",xt.DIALOG="dialog",xt.DIR="dir",xt.DIV="div",xt.DL="dl",xt.DT="dt",xt.EM="em",xt.EMBED="embed",xt.FIELDSET="fieldset",xt.FIGCAPTION="figcaption",xt.FIGURE="figure",xt.FONT="font",xt.FOOTER="footer",xt.FOREIGN_OBJECT="foreignObject",xt.FORM="form",xt.FRAME="frame",xt.FRAMESET="frameset",xt.H1="h1",xt.H2="h2",xt.H3="h3",xt.H4="h4",xt.H5="h5",xt.H6="h6",xt.HEAD="head",xt.HEADER="header",xt.HGROUP="hgroup",xt.HR="hr",xt.HTML="html",xt.I="i",xt.IMG="img",xt.IMAGE="image",xt.INPUT="input",xt.IFRAME="iframe",xt.KEYGEN="keygen",xt.LABEL="label",xt.LI="li",xt.LINK="link",xt.LISTING="listing",xt.MAIN="main",xt.MALIGNMARK="malignmark",xt.MARQUEE="marquee",xt.MATH="math",xt.MENU="menu",xt.META="meta",xt.MGLYPH="mglyph",xt.MI="mi",xt.MO="mo",xt.MN="mn",xt.MS="ms",xt.MTEXT="mtext",xt.NAV="nav",xt.NOBR="nobr",xt.NOFRAMES="noframes",xt.NOEMBED="noembed",xt.NOSCRIPT="noscript",xt.OBJECT="object",xt.OL="ol",xt.OPTGROUP="optgroup",xt.OPTION="option",xt.P="p",xt.PARAM="param",xt.PLAINTEXT="plaintext",xt.PRE="pre",xt.RB="rb",xt.RP="rp",xt.RT="rt",xt.RTC="rtc",xt.RUBY="ruby",xt.S="s",xt.SCRIPT="script",xt.SEARCH="search",xt.SECTION="section",xt.SELECT="select",xt.SOURCE="source",xt.SMALL="small",xt.SPAN="span",xt.STRIKE="strike",xt.STRONG="strong",xt.STYLE="style",xt.SUB="sub",xt.SUMMARY="summary",xt.SUP="sup",xt.TABLE="table",xt.TBODY="tbody",xt.TEMPLATE="template",xt.TEXTAREA="textarea",xt.TFOOT="tfoot",xt.TD="td",xt.TH="th",xt.THEAD="thead",xt.TITLE="title",xt.TR="tr",xt.TRACK="track",xt.TT="tt",xt.U="u",xt.UL="ul",xt.SVG="svg",xt.VAR="var",xt.WBR="wbr",xt.XMP="xmp",(Ut=wt||(wt={}))[Ut.UNKNOWN=0]="UNKNOWN",Ut[Ut.A=1]="A",Ut[Ut.ADDRESS=2]="ADDRESS",Ut[Ut.ANNOTATION_XML=3]="ANNOTATION_XML",Ut[Ut.APPLET=4]="APPLET",Ut[Ut.AREA=5]="AREA",Ut[Ut.ARTICLE=6]="ARTICLE",Ut[Ut.ASIDE=7]="ASIDE",Ut[Ut.B=8]="B",Ut[Ut.BASE=9]="BASE",Ut[Ut.BASEFONT=10]="BASEFONT",Ut[Ut.BGSOUND=11]="BGSOUND",Ut[Ut.BIG=12]="BIG",Ut[Ut.BLOCKQUOTE=13]="BLOCKQUOTE",Ut[Ut.BODY=14]="BODY",Ut[Ut.BR=15]="BR",Ut[Ut.BUTTON=16]="BUTTON",Ut[Ut.CAPTION=17]="CAPTION",Ut[Ut.CENTER=18]="CENTER",Ut[Ut.CODE=19]="CODE",Ut[Ut.COL=20]="COL",Ut[Ut.COLGROUP=21]="COLGROUP",Ut[Ut.DD=22]="DD",Ut[Ut.DESC=23]="DESC",Ut[Ut.DETAILS=24]="DETAILS",Ut[Ut.DIALOG=25]="DIALOG",Ut[Ut.DIR=26]="DIR",Ut[Ut.DIV=27]="DIV",Ut[Ut.DL=28]="DL",Ut[Ut.DT=29]="DT",Ut[Ut.EM=30]="EM",Ut[Ut.EMBED=31]="EMBED",Ut[Ut.FIELDSET=32]="FIELDSET",Ut[Ut.FIGCAPTION=33]="FIGCAPTION",Ut[Ut.FIGURE=34]="FIGURE",Ut[Ut.FONT=35]="FONT",Ut[Ut.FOOTER=36]="FOOTER",Ut[Ut.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",Ut[Ut.FORM=38]="FORM",Ut[Ut.FRAME=39]="FRAME",Ut[Ut.FRAMESET=40]="FRAMESET",Ut[Ut.H1=41]="H1",Ut[Ut.H2=42]="H2",Ut[Ut.H3=43]="H3",Ut[Ut.H4=44]="H4",Ut[Ut.H5=45]="H5",Ut[Ut.H6=46]="H6",Ut[Ut.HEAD=47]="HEAD",Ut[Ut.HEADER=48]="HEADER",Ut[Ut.HGROUP=49]="HGROUP",Ut[Ut.HR=50]="HR",Ut[Ut.HTML=51]="HTML",Ut[Ut.I=52]="I",Ut[Ut.IMG=53]="IMG",Ut[Ut.IMAGE=54]="IMAGE",Ut[Ut.INPUT=55]="INPUT",Ut[Ut.IFRAME=56]="IFRAME",Ut[Ut.KEYGEN=57]="KEYGEN",Ut[Ut.LABEL=58]="LABEL",Ut[Ut.LI=59]="LI",Ut[Ut.LINK=60]="LINK",Ut[Ut.LISTING=61]="LISTING",Ut[Ut.MAIN=62]="MAIN",Ut[Ut.MALIGNMARK=63]="MALIGNMARK",Ut[Ut.MARQUEE=64]="MARQUEE",Ut[Ut.MATH=65]="MATH",Ut[Ut.MENU=66]="MENU",Ut[Ut.META=67]="META",Ut[Ut.MGLYPH=68]="MGLYPH",Ut[Ut.MI=69]="MI",Ut[Ut.MO=70]="MO",Ut[Ut.MN=71]="MN",Ut[Ut.MS=72]="MS",Ut[Ut.MTEXT=73]="MTEXT",Ut[Ut.NAV=74]="NAV",Ut[Ut.NOBR=75]="NOBR",Ut[Ut.NOFRAMES=76]="NOFRAMES",Ut[Ut.NOEMBED=77]="NOEMBED",Ut[Ut.NOSCRIPT=78]="NOSCRIPT",Ut[Ut.OBJECT=79]="OBJECT",Ut[Ut.OL=80]="OL",Ut[Ut.OPTGROUP=81]="OPTGROUP",Ut[Ut.OPTION=82]="OPTION",Ut[Ut.P=83]="P",Ut[Ut.PARAM=84]="PARAM",Ut[Ut.PLAINTEXT=85]="PLAINTEXT",Ut[Ut.PRE=86]="PRE",Ut[Ut.RB=87]="RB",Ut[Ut.RP=88]="RP",Ut[Ut.RT=89]="RT",Ut[Ut.RTC=90]="RTC",Ut[Ut.RUBY=91]="RUBY",Ut[Ut.S=92]="S",Ut[Ut.SCRIPT=93]="SCRIPT",Ut[Ut.SEARCH=94]="SEARCH",Ut[Ut.SECTION=95]="SECTION",Ut[Ut.SELECT=96]="SELECT",Ut[Ut.SOURCE=97]="SOURCE",Ut[Ut.SMALL=98]="SMALL",Ut[Ut.SPAN=99]="SPAN",Ut[Ut.STRIKE=100]="STRIKE",Ut[Ut.STRONG=101]="STRONG",Ut[Ut.STYLE=102]="STYLE",Ut[Ut.SUB=103]="SUB",Ut[Ut.SUMMARY=104]="SUMMARY",Ut[Ut.SUP=105]="SUP",Ut[Ut.TABLE=106]="TABLE",Ut[Ut.TBODY=107]="TBODY",Ut[Ut.TEMPLATE=108]="TEMPLATE",Ut[Ut.TEXTAREA=109]="TEXTAREA",Ut[Ut.TFOOT=110]="TFOOT",Ut[Ut.TD=111]="TD",Ut[Ut.TH=112]="TH",Ut[Ut.THEAD=113]="THEAD",Ut[Ut.TITLE=114]="TITLE",Ut[Ut.TR=115]="TR",Ut[Ut.TRACK=116]="TRACK",Ut[Ut.TT=117]="TT",Ut[Ut.U=118]="U",Ut[Ut.UL=119]="UL",Ut[Ut.SVG=120]="SVG",Ut[Ut.VAR=121]="VAR",Ut[Ut.WBR=122]="WBR",Ut[Ut.XMP=123]="XMP";const Wt=new Map([[vt.A,wt.A],[vt.ADDRESS,wt.ADDRESS],[vt.ANNOTATION_XML,wt.ANNOTATION_XML],[vt.APPLET,wt.APPLET],[vt.AREA,wt.AREA],[vt.ARTICLE,wt.ARTICLE],[vt.ASIDE,wt.ASIDE],[vt.B,wt.B],[vt.BASE,wt.BASE],[vt.BASEFONT,wt.BASEFONT],[vt.BGSOUND,wt.BGSOUND],[vt.BIG,wt.BIG],[vt.BLOCKQUOTE,wt.BLOCKQUOTE],[vt.BODY,wt.BODY],[vt.BR,wt.BR],[vt.BUTTON,wt.BUTTON],[vt.CAPTION,wt.CAPTION],[vt.CENTER,wt.CENTER],[vt.CODE,wt.CODE],[vt.COL,wt.COL],[vt.COLGROUP,wt.COLGROUP],[vt.DD,wt.DD],[vt.DESC,wt.DESC],[vt.DETAILS,wt.DETAILS],[vt.DIALOG,wt.DIALOG],[vt.DIR,wt.DIR],[vt.DIV,wt.DIV],[vt.DL,wt.DL],[vt.DT,wt.DT],[vt.EM,wt.EM],[vt.EMBED,wt.EMBED],[vt.FIELDSET,wt.FIELDSET],[vt.FIGCAPTION,wt.FIGCAPTION],[vt.FIGURE,wt.FIGURE],[vt.FONT,wt.FONT],[vt.FOOTER,wt.FOOTER],[vt.FOREIGN_OBJECT,wt.FOREIGN_OBJECT],[vt.FORM,wt.FORM],[vt.FRAME,wt.FRAME],[vt.FRAMESET,wt.FRAMESET],[vt.H1,wt.H1],[vt.H2,wt.H2],[vt.H3,wt.H3],[vt.H4,wt.H4],[vt.H5,wt.H5],[vt.H6,wt.H6],[vt.HEAD,wt.HEAD],[vt.HEADER,wt.HEADER],[vt.HGROUP,wt.HGROUP],[vt.HR,wt.HR],[vt.HTML,wt.HTML],[vt.I,wt.I],[vt.IMG,wt.IMG],[vt.IMAGE,wt.IMAGE],[vt.INPUT,wt.INPUT],[vt.IFRAME,wt.IFRAME],[vt.KEYGEN,wt.KEYGEN],[vt.LABEL,wt.LABEL],[vt.LI,wt.LI],[vt.LINK,wt.LINK],[vt.LISTING,wt.LISTING],[vt.MAIN,wt.MAIN],[vt.MALIGNMARK,wt.MALIGNMARK],[vt.MARQUEE,wt.MARQUEE],[vt.MATH,wt.MATH],[vt.MENU,wt.MENU],[vt.META,wt.META],[vt.MGLYPH,wt.MGLYPH],[vt.MI,wt.MI],[vt.MO,wt.MO],[vt.MN,wt.MN],[vt.MS,wt.MS],[vt.MTEXT,wt.MTEXT],[vt.NAV,wt.NAV],[vt.NOBR,wt.NOBR],[vt.NOFRAMES,wt.NOFRAMES],[vt.NOEMBED,wt.NOEMBED],[vt.NOSCRIPT,wt.NOSCRIPT],[vt.OBJECT,wt.OBJECT],[vt.OL,wt.OL],[vt.OPTGROUP,wt.OPTGROUP],[vt.OPTION,wt.OPTION],[vt.P,wt.P],[vt.PARAM,wt.PARAM],[vt.PLAINTEXT,wt.PLAINTEXT],[vt.PRE,wt.PRE],[vt.RB,wt.RB],[vt.RP,wt.RP],[vt.RT,wt.RT],[vt.RTC,wt.RTC],[vt.RUBY,wt.RUBY],[vt.S,wt.S],[vt.SCRIPT,wt.SCRIPT],[vt.SEARCH,wt.SEARCH],[vt.SECTION,wt.SECTION],[vt.SELECT,wt.SELECT],[vt.SOURCE,wt.SOURCE],[vt.SMALL,wt.SMALL],[vt.SPAN,wt.SPAN],[vt.STRIKE,wt.STRIKE],[vt.STRONG,wt.STRONG],[vt.STYLE,wt.STYLE],[vt.SUB,wt.SUB],[vt.SUMMARY,wt.SUMMARY],[vt.SUP,wt.SUP],[vt.TABLE,wt.TABLE],[vt.TBODY,wt.TBODY],[vt.TEMPLATE,wt.TEMPLATE],[vt.TEXTAREA,wt.TEXTAREA],[vt.TFOOT,wt.TFOOT],[vt.TD,wt.TD],[vt.TH,wt.TH],[vt.THEAD,wt.THEAD],[vt.TITLE,wt.TITLE],[vt.TR,wt.TR],[vt.TRACK,wt.TRACK],[vt.TT,wt.TT],[vt.U,wt.U],[vt.UL,wt.UL],[vt.SVG,wt.SVG],[vt.VAR,wt.VAR],[vt.WBR,wt.WBR],[vt.XMP,wt.XMP]]);function jt(e){var t;return null!==(t=Wt.get(e))&&void 0!==t?t:wt.UNKNOWN}const Qt=wt,Vt={[Rt.HTML]:new Set([Qt.ADDRESS,Qt.APPLET,Qt.AREA,Qt.ARTICLE,Qt.ASIDE,Qt.BASE,Qt.BASEFONT,Qt.BGSOUND,Qt.BLOCKQUOTE,Qt.BODY,Qt.BR,Qt.BUTTON,Qt.CAPTION,Qt.CENTER,Qt.COL,Qt.COLGROUP,Qt.DD,Qt.DETAILS,Qt.DIR,Qt.DIV,Qt.DL,Qt.DT,Qt.EMBED,Qt.FIELDSET,Qt.FIGCAPTION,Qt.FIGURE,Qt.FOOTER,Qt.FORM,Qt.FRAME,Qt.FRAMESET,Qt.H1,Qt.H2,Qt.H3,Qt.H4,Qt.H5,Qt.H6,Qt.HEAD,Qt.HEADER,Qt.HGROUP,Qt.HR,Qt.HTML,Qt.IFRAME,Qt.IMG,Qt.INPUT,Qt.LI,Qt.LINK,Qt.LISTING,Qt.MAIN,Qt.MARQUEE,Qt.MENU,Qt.META,Qt.NAV,Qt.NOEMBED,Qt.NOFRAMES,Qt.NOSCRIPT,Qt.OBJECT,Qt.OL,Qt.P,Qt.PARAM,Qt.PLAINTEXT,Qt.PRE,Qt.SCRIPT,Qt.SECTION,Qt.SELECT,Qt.SOURCE,Qt.STYLE,Qt.SUMMARY,Qt.TABLE,Qt.TBODY,Qt.TD,Qt.TEMPLATE,Qt.TEXTAREA,Qt.TFOOT,Qt.TH,Qt.THEAD,Qt.TITLE,Qt.TR,Qt.TRACK,Qt.UL,Qt.WBR,Qt.XMP]),[Rt.MATHML]:new Set([Qt.MI,Qt.MO,Qt.MN,Qt.MS,Qt.MTEXT,Qt.ANNOTATION_XML]),[Rt.SVG]:new Set([Qt.TITLE,Qt.FOREIGN_OBJECT,Qt.DESC]),[Rt.XLINK]:new Set,[Rt.XML]:new Set,[Rt.XMLNS]:new Set},Kt=new Set([Qt.H1,Qt.H2,Qt.H3,Qt.H4,Qt.H5,Qt.H6]);var Xt,$t;vt.STYLE,vt.SCRIPT,vt.XMP,vt.IFRAME,vt.NOEMBED,vt.NOFRAMES,vt.PLAINTEXT,($t=Xt||(Xt={}))[$t.DATA=0]="DATA",$t[$t.RCDATA=1]="RCDATA",$t[$t.RAWTEXT=2]="RAWTEXT",$t[$t.SCRIPT_DATA=3]="SCRIPT_DATA",$t[$t.PLAINTEXT=4]="PLAINTEXT",$t[$t.TAG_OPEN=5]="TAG_OPEN",$t[$t.END_TAG_OPEN=6]="END_TAG_OPEN",$t[$t.TAG_NAME=7]="TAG_NAME",$t[$t.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",$t[$t.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",$t[$t.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",$t[$t.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",$t[$t.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",$t[$t.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",$t[$t.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",$t[$t.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",$t[$t.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",$t[$t.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",$t[$t.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",$t[$t.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",$t[$t.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",$t[$t.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",$t[$t.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",$t[$t.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",$t[$t.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",$t[$t.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",$t[$t.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",$t[$t.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",$t[$t.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",$t[$t.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",$t[$t.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",$t[$t.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",$t[$t.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",$t[$t.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",$t[$t.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",$t[$t.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",$t[$t.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",$t[$t.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",$t[$t.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",$t[$t.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",$t[$t.BOGUS_COMMENT=40]="BOGUS_COMMENT",$t[$t.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",$t[$t.COMMENT_START=42]="COMMENT_START",$t[$t.COMMENT_START_DASH=43]="COMMENT_START_DASH",$t[$t.COMMENT=44]="COMMENT",$t[$t.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",$t[$t.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",$t[$t.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",$t[$t.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",$t[$t.COMMENT_END_DASH=49]="COMMENT_END_DASH",$t[$t.COMMENT_END=50]="COMMENT_END",$t[$t.COMMENT_END_BANG=51]="COMMENT_END_BANG",$t[$t.DOCTYPE=52]="DOCTYPE",$t[$t.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",$t[$t.DOCTYPE_NAME=54]="DOCTYPE_NAME",$t[$t.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",$t[$t.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",$t[$t.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",$t[$t.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",$t[$t.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",$t[$t.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",$t[$t.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",$t[$t.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",$t[$t.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",$t[$t.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",$t[$t.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",$t[$t.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",$t[$t.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",$t[$t.CDATA_SECTION=68]="CDATA_SECTION",$t[$t.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",$t[$t.CDATA_SECTION_END=70]="CDATA_SECTION_END",$t[$t.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",$t[$t.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND";const Jt={DATA:Xt.DATA,RCDATA:Xt.RCDATA,RAWTEXT:Xt.RAWTEXT,SCRIPT_DATA:Xt.SCRIPT_DATA,PLAINTEXT:Xt.PLAINTEXT,CDATA_SECTION:Xt.CDATA_SECTION};function Zt(e){return e>=rt.LATIN_CAPITAL_A&&e<=rt.LATIN_CAPITAL_Z}function en(e){return function(e){return e>=rt.LATIN_SMALL_A&&e<=rt.LATIN_SMALL_Z}(e)||Zt(e)}function tn(e){return en(e)||function(e){return e>=rt.DIGIT_0&&e<=rt.DIGIT_9}(e)}function nn(e){return e+32}function rn(e){return e===rt.SPACE||e===rt.LINE_FEED||e===rt.TABULATION||e===rt.FORM_FEED}function an(e){return rn(e)||e===rt.SOLIDUS||e===rt.GREATER_THAN_SIGN}class on{constructor(e,t){this.options=e,this.handler=t,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=Xt.DATA,this.returnState=Xt.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new ft(t),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new qt(Dt,(e,t)=>{this.preprocessor.pos=this.entityStartPos+t-1,this._flushCodePointConsumedAsCharacterReference(e)},t.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(Et.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:e=>{this._err(Et.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+e)},validateNumericCharacterReference:e=>{const t=function(e){return e===rt.NULL?Et.nullCharacterReference:e>1114111?Et.characterReferenceOutsideUnicodeRange:pt(e)?Et.surrogateCharacterReference:dt(e)?Et.noncharacterCharacterReference:ht(e)||e===rt.CARRIAGE_RETURN?Et.controlCharacterReference:null}(e);t&&this._err(t,1)}}:void 0)}_err(e,t=0){var n,r;null===(r=(n=this.handler).onParseError)||void 0===r||r.call(n,this.preprocessor.getError(e,t))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,this.inLoop||(this._runParsingLoop(),this.paused||null==e||e())}write(e,t,n){this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),this.paused||null==n||n()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return!!this.preprocessor.endOfChunkHit&&(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0)}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let t=0;t<e;t++)this.preprocessor.advance()}_consumeSequenceIfMatch(e,t){return!!this.preprocessor.startsWith(e,t)&&(this._advanceBy(e.length-1),!0)}_createStartTagToken(){this.currentToken={type:Tt.START_TAG,tagName:"",tagID:wt.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Tt.END_TAG,tagName:"",tagID:wt.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(e){this.currentToken={type:Tt.COMMENT,data:"",location:this.getCurrentLocation(e)}}_createDoctypeToken(e){this.currentToken={type:Tt.DOCTYPE,name:e,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t,location:this.currentLocation}}_createAttr(e){this.currentAttr={name:e,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var e,t;const n=this.currentToken;if(null===At(n,this.currentAttr.name)){if(n.attrs.push(this.currentAttr),n.location&&this.currentLocation){(null!==(e=(t=n.location).attrs)&&void 0!==e?e:t.attrs=Object.create(null))[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(Et.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(e){this._emitCurrentCharacterToken(e.location),this.currentToken=null,e.location&&(e.location.endLine=this.preprocessor.line,e.location.endCol=this.preprocessor.col+1,e.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const e=this.currentToken;this.prepareToken(e),e.tagID=jt(e.tagName),e.type===Tt.START_TAG?(this.lastStartTagName=e.tagName,this.handler.onStartTag(e)):(e.attrs.length>0&&this._err(Et.endTagWithAttributes),e.selfClosing&&this._err(Et.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case Tt.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case Tt.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case Tt.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCharacterToken)}this.currentCharacterToken=null}}_emitEOFToken(){const e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:Tt.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken){if(this.currentCharacterToken.type===e)return void(this.currentCharacterToken.chars+=t);this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk()}this._createCharacterToken(e,t)}_emitCodePoint(e){const t=rn(e)?Tt.WHITESPACE_CHARACTER:e===rt.NULL?Tt.NULL_CHARACTER:Tt.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(Tt.CHARACTER,e)}_startCharacterReference(){this.returnState=this.state,this.state=Xt.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?yt.Attribute:yt.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===Xt.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===Xt.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===Xt.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case Xt.DATA:this._stateData(e);break;case Xt.RCDATA:this._stateRcdata(e);break;case Xt.RAWTEXT:this._stateRawtext(e);break;case Xt.SCRIPT_DATA:this._stateScriptData(e);break;case Xt.PLAINTEXT:this._statePlaintext(e);break;case Xt.TAG_OPEN:this._stateTagOpen(e);break;case Xt.END_TAG_OPEN:this._stateEndTagOpen(e);break;case Xt.TAG_NAME:this._stateTagName(e);break;case Xt.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case Xt.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case Xt.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case Xt.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case Xt.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case Xt.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case Xt.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case Xt.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case Xt.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case Xt.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case Xt.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case Xt.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case Xt.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case Xt.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case Xt.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);break;case Xt.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;case Xt.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;case Xt.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(e);break;case Xt.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case Xt.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;case Xt.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e);break;case Xt.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(e);break;case Xt.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case Xt.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case Xt.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case Xt.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case Xt.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case Xt.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case Xt.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case Xt.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case Xt.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case Xt.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case Xt.BOGUS_COMMENT:this._stateBogusComment(e);break;case Xt.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case Xt.COMMENT_START:this._stateCommentStart(e);break;case Xt.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case Xt.COMMENT:this._stateComment(e);break;case Xt.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case Xt.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case Xt.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;case Xt.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(e);break;case Xt.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case Xt.COMMENT_END:this._stateCommentEnd(e);break;case Xt.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case Xt.DOCTYPE:this._stateDoctype(e);break;case Xt.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case Xt.DOCTYPE_NAME:this._stateDoctypeName(e);break;case Xt.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case Xt.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case Xt.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);break;case Xt.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(e);break;case Xt.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(e);break;case Xt.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;case Xt.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break;case Xt.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case Xt.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(e);break;case Xt.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(e);break;case Xt.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(e);break;case Xt.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;case Xt.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case Xt.CDATA_SECTION:this._stateCdataSection(e);break;case Xt.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case Xt.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case Xt.CHARACTER_REFERENCE:this._stateCharacterReference();break;case Xt.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;default:throw new Error("Unknown state")}}_stateData(e){switch(e){case rt.LESS_THAN_SIGN:this.state=Xt.TAG_OPEN;break;case rt.AMPERSAND:this._startCharacterReference();break;case rt.NULL:this._err(Et.unexpectedNullCharacter),this._emitCodePoint(e);break;case rt.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case rt.AMPERSAND:this._startCharacterReference();break;case rt.LESS_THAN_SIGN:this.state=Xt.RCDATA_LESS_THAN_SIGN;break;case rt.NULL:this._err(Et.unexpectedNullCharacter),this._emitChars(nt);break;case rt.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case rt.LESS_THAN_SIGN:this.state=Xt.RAWTEXT_LESS_THAN_SIGN;break;case rt.NULL:this._err(Et.unexpectedNullCharacter),this._emitChars(nt);break;case rt.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case rt.LESS_THAN_SIGN:this.state=Xt.SCRIPT_DATA_LESS_THAN_SIGN;break;case rt.NULL:this._err(Et.unexpectedNullCharacter),this._emitChars(nt);break;case rt.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case rt.NULL:this._err(Et.unexpectedNullCharacter),this._emitChars(nt);break;case rt.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateTagOpen(e){if(en(e))this._createStartTagToken(),this.state=Xt.TAG_NAME,this._stateTagName(e);else switch(e){case rt.EXCLAMATION_MARK:this.state=Xt.MARKUP_DECLARATION_OPEN;break;case rt.SOLIDUS:this.state=Xt.END_TAG_OPEN;break;case rt.QUESTION_MARK:this._err(Et.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=Xt.BOGUS_COMMENT,this._stateBogusComment(e);break;case rt.EOF:this._err(Et.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break;default:this._err(Et.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=Xt.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(en(e))this._createEndTagToken(),this.state=Xt.TAG_NAME,this._stateTagName(e);else switch(e){case rt.GREATER_THAN_SIGN:this._err(Et.missingEndTagName),this.state=Xt.DATA;break;case rt.EOF:this._err(Et.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break;default:this._err(Et.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=Xt.BOGUS_COMMENT,this._stateBogusComment(e)}}_stateTagName(e){const t=this.currentToken;switch(e){case rt.SPACE:case rt.LINE_FEED:case rt.TABULATION:case rt.FORM_FEED:this.state=Xt.BEFORE_ATTRIBUTE_NAME;break;case rt.SOLIDUS:this.state=Xt.SELF_CLOSING_START_TAG;break;case rt.GREATER_THAN_SIGN:this.state=Xt.DATA,this.emitCurrentTagToken();break;case rt.NULL:this._err(Et.unexpectedNullCharacter),t.tagName+=nt;break;case rt.EOF:this._err(Et.eofInTag),this._emitEOFToken();break;default:t.tagName+=String.fromCodePoint(Zt(e)?nn(e):e)}}_stateRcdataLessThanSign(e){e===rt.SOLIDUS?this.state=Xt.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=Xt.RCDATA,this._stateRcdata(e))}_stateRcdataEndTagOpen(e){en(e)?(this.state=Xt.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(e)):(this._emitChars("</"),this.state=Xt.RCDATA,this._stateRcdata(e))}handleSpecialEndTag(e){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();this.currentToken.tagName=this.lastStartTagName;switch(this.preprocessor.peek(this.lastStartTagName.length)){case rt.SPACE:case rt.LINE_FEED:case rt.TABULATION:case rt.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=Xt.BEFORE_ATTRIBUTE_NAME,!1;case rt.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=Xt.SELF_CLOSING_START_TAG,!1;case rt.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=Xt.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=Xt.RCDATA,this._stateRcdata(e))}_stateRawtextLessThanSign(e){e===rt.SOLIDUS?this.state=Xt.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=Xt.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagOpen(e){en(e)?(this.state=Xt.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(e)):(this._emitChars("</"),this.state=Xt.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=Xt.RAWTEXT,this._stateRawtext(e))}_stateScriptDataLessThanSign(e){switch(e){case rt.SOLIDUS:this.state=Xt.SCRIPT_DATA_END_TAG_OPEN;break;case rt.EXCLAMATION_MARK:this.state=Xt.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break;default:this._emitChars("<"),this.state=Xt.SCRIPT_DATA,this._stateScriptData(e)}}_stateScriptDataEndTagOpen(e){en(e)?(this.state=Xt.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(e)):(this._emitChars("</"),this.state=Xt.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=Xt.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStart(e){e===rt.HYPHEN_MINUS?(this.state=Xt.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=Xt.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStartDash(e){e===rt.HYPHEN_MINUS?(this.state=Xt.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=Xt.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscaped(e){switch(e){case rt.HYPHEN_MINUS:this.state=Xt.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break;case rt.LESS_THAN_SIGN:this.state=Xt.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case rt.NULL:this._err(Et.unexpectedNullCharacter),this._emitChars(nt);break;case rt.EOF:this._err(Et.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataEscapedDash(e){switch(e){case rt.HYPHEN_MINUS:this.state=Xt.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break;case rt.LESS_THAN_SIGN:this.state=Xt.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case rt.NULL:this._err(Et.unexpectedNullCharacter),this.state=Xt.SCRIPT_DATA_ESCAPED,this._emitChars(nt);break;case rt.EOF:this._err(Et.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Xt.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedDashDash(e){switch(e){case rt.HYPHEN_MINUS:this._emitChars("-");break;case rt.LESS_THAN_SIGN:this.state=Xt.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case rt.GREATER_THAN_SIGN:this.state=Xt.SCRIPT_DATA,this._emitChars(">");break;case rt.NULL:this._err(Et.unexpectedNullCharacter),this.state=Xt.SCRIPT_DATA_ESCAPED,this._emitChars(nt);break;case rt.EOF:this._err(Et.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Xt.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===rt.SOLIDUS?this.state=Xt.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:en(e)?(this._emitChars("<"),this.state=Xt.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=Xt.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){en(e)?(this.state=Xt.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("</"),this.state=Xt.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=Xt.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscapeStart(e){if(this.preprocessor.startsWith(lt,!1)&&an(this.preprocessor.peek(lt.length))){this._emitCodePoint(e);for(let e=0;e<lt.length;e++)this._emitCodePoint(this._consume());this.state=Xt.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=Xt.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscaped(e){switch(e){case rt.HYPHEN_MINUS:this.state=Xt.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break;case rt.LESS_THAN_SIGN:this.state=Xt.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case rt.NULL:this._err(Et.unexpectedNullCharacter),this._emitChars(nt);break;case rt.EOF:this._err(Et.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDash(e){switch(e){case rt.HYPHEN_MINUS:this.state=Xt.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break;case rt.LESS_THAN_SIGN:this.state=Xt.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case rt.NULL:this._err(Et.unexpectedNullCharacter),this.state=Xt.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(nt);break;case rt.EOF:this._err(Et.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Xt.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDashDash(e){switch(e){case rt.HYPHEN_MINUS:this._emitChars("-");break;case rt.LESS_THAN_SIGN:this.state=Xt.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case rt.GREATER_THAN_SIGN:this.state=Xt.SCRIPT_DATA,this._emitChars(">");break;case rt.NULL:this._err(Et.unexpectedNullCharacter),this.state=Xt.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(nt);break;case rt.EOF:this._err(Et.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Xt.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===rt.SOLIDUS?(this.state=Xt.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=Xt.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(lt,!1)&&an(this.preprocessor.peek(lt.length))){this._emitCodePoint(e);for(let e=0;e<lt.length;e++)this._emitCodePoint(this._consume());this.state=Xt.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=Xt.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateBeforeAttributeName(e){switch(e){case rt.SPACE:case rt.LINE_FEED:case rt.TABULATION:case rt.FORM_FEED:break;case rt.SOLIDUS:case rt.GREATER_THAN_SIGN:case rt.EOF:this.state=Xt.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case rt.EQUALS_SIGN:this._err(Et.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=Xt.ATTRIBUTE_NAME;break;default:this._createAttr(""),this.state=Xt.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateAttributeName(e){switch(e){case rt.SPACE:case rt.LINE_FEED:case rt.TABULATION:case rt.FORM_FEED:case rt.SOLIDUS:case rt.GREATER_THAN_SIGN:case rt.EOF:this._leaveAttrName(),this.state=Xt.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case rt.EQUALS_SIGN:this._leaveAttrName(),this.state=Xt.BEFORE_ATTRIBUTE_VALUE;break;case rt.QUOTATION_MARK:case rt.APOSTROPHE:case rt.LESS_THAN_SIGN:this._err(Et.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(e);break;case rt.NULL:this._err(Et.unexpectedNullCharacter),this.currentAttr.name+=nt;break;default:this.currentAttr.name+=String.fromCodePoint(Zt(e)?nn(e):e)}}_stateAfterAttributeName(e){switch(e){case rt.SPACE:case rt.LINE_FEED:case rt.TABULATION:case rt.FORM_FEED:break;case rt.SOLIDUS:this.state=Xt.SELF_CLOSING_START_TAG;break;case rt.EQUALS_SIGN:this.state=Xt.BEFORE_ATTRIBUTE_VALUE;break;case rt.GREATER_THAN_SIGN:this.state=Xt.DATA,this.emitCurrentTagToken();break;case rt.EOF:this._err(Et.eofInTag),this._emitEOFToken();break;default:this._createAttr(""),this.state=Xt.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateBeforeAttributeValue(e){switch(e){case rt.SPACE:case rt.LINE_FEED:case rt.TABULATION:case rt.FORM_FEED:break;case rt.QUOTATION_MARK:this.state=Xt.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break;case rt.APOSTROPHE:this.state=Xt.ATTRIBUTE_VALUE_SINGLE_QUOTED;break;case rt.GREATER_THAN_SIGN:this._err(Et.missingAttributeValue),this.state=Xt.DATA,this.emitCurrentTagToken();break;default:this.state=Xt.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(e)}}_stateAttributeValueDoubleQuoted(e){switch(e){case rt.QUOTATION_MARK:this.state=Xt.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case rt.AMPERSAND:this._startCharacterReference();break;case rt.NULL:this._err(Et.unexpectedNullCharacter),this.currentAttr.value+=nt;break;case rt.EOF:this._err(Et.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueSingleQuoted(e){switch(e){case rt.APOSTROPHE:this.state=Xt.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case rt.AMPERSAND:this._startCharacterReference();break;case rt.NULL:this._err(Et.unexpectedNullCharacter),this.currentAttr.value+=nt;break;case rt.EOF:this._err(Et.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueUnquoted(e){switch(e){case rt.SPACE:case rt.LINE_FEED:case rt.TABULATION:case rt.FORM_FEED:this._leaveAttrValue(),this.state=Xt.BEFORE_ATTRIBUTE_NAME;break;case rt.AMPERSAND:this._startCharacterReference();break;case rt.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=Xt.DATA,this.emitCurrentTagToken();break;case rt.NULL:this._err(Et.unexpectedNullCharacter),this.currentAttr.value+=nt;break;case rt.QUOTATION_MARK:case rt.APOSTROPHE:case rt.LESS_THAN_SIGN:case rt.EQUALS_SIGN:case rt.GRAVE_ACCENT:this._err(Et.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(e);break;case rt.EOF:this._err(Et.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAfterAttributeValueQuoted(e){switch(e){case rt.SPACE:case rt.LINE_FEED:case rt.TABULATION:case rt.FORM_FEED:this._leaveAttrValue(),this.state=Xt.BEFORE_ATTRIBUTE_NAME;break;case rt.SOLIDUS:this._leaveAttrValue(),this.state=Xt.SELF_CLOSING_START_TAG;break;case rt.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=Xt.DATA,this.emitCurrentTagToken();break;case rt.EOF:this._err(Et.eofInTag),this._emitEOFToken();break;default:this._err(Et.missingWhitespaceBetweenAttributes),this.state=Xt.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateSelfClosingStartTag(e){switch(e){case rt.GREATER_THAN_SIGN:this.currentToken.selfClosing=!0,this.state=Xt.DATA,this.emitCurrentTagToken();break;case rt.EOF:this._err(Et.eofInTag),this._emitEOFToken();break;default:this._err(Et.unexpectedSolidusInTag),this.state=Xt.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateBogusComment(e){const t=this.currentToken;switch(e){case rt.GREATER_THAN_SIGN:this.state=Xt.DATA,this.emitCurrentComment(t);break;case rt.EOF:this.emitCurrentComment(t),this._emitEOFToken();break;case rt.NULL:this._err(Et.unexpectedNullCharacter),t.data+=nt;break;default:t.data+=String.fromCodePoint(e)}}_stateMarkupDeclarationOpen(e){this._consumeSequenceIfMatch(ot,!0)?(this._createCommentToken(ot.length+1),this.state=Xt.COMMENT_START):this._consumeSequenceIfMatch(st,!1)?(this.currentLocation=this.getCurrentLocation(st.length+1),this.state=Xt.DOCTYPE):this._consumeSequenceIfMatch(it,!0)?this.inForeignNode?this.state=Xt.CDATA_SECTION:(this._err(Et.cdataInHtmlContent),this._createCommentToken(it.length+1),this.currentToken.data="[CDATA[",this.state=Xt.BOGUS_COMMENT):this._ensureHibernation()||(this._err(Et.incorrectlyOpenedComment),this._createCommentToken(2),this.state=Xt.BOGUS_COMMENT,this._stateBogusComment(e))}_stateCommentStart(e){switch(e){case rt.HYPHEN_MINUS:this.state=Xt.COMMENT_START_DASH;break;case rt.GREATER_THAN_SIGN:{this._err(Et.abruptClosingOfEmptyComment),this.state=Xt.DATA;const e=this.currentToken;this.emitCurrentComment(e);break}default:this.state=Xt.COMMENT,this._stateComment(e)}}_stateCommentStartDash(e){const t=this.currentToken;switch(e){case rt.HYPHEN_MINUS:this.state=Xt.COMMENT_END;break;case rt.GREATER_THAN_SIGN:this._err(Et.abruptClosingOfEmptyComment),this.state=Xt.DATA,this.emitCurrentComment(t);break;case rt.EOF:this._err(Et.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=Xt.COMMENT,this._stateComment(e)}}_stateComment(e){const t=this.currentToken;switch(e){case rt.HYPHEN_MINUS:this.state=Xt.COMMENT_END_DASH;break;case rt.LESS_THAN_SIGN:t.data+="<",this.state=Xt.COMMENT_LESS_THAN_SIGN;break;case rt.NULL:this._err(Et.unexpectedNullCharacter),t.data+=nt;break;case rt.EOF:this._err(Et.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=String.fromCodePoint(e)}}_stateCommentLessThanSign(e){const t=this.currentToken;switch(e){case rt.EXCLAMATION_MARK:t.data+="!",this.state=Xt.COMMENT_LESS_THAN_SIGN_BANG;break;case rt.LESS_THAN_SIGN:t.data+="<";break;default:this.state=Xt.COMMENT,this._stateComment(e)}}_stateCommentLessThanSignBang(e){e===rt.HYPHEN_MINUS?this.state=Xt.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=Xt.COMMENT,this._stateComment(e))}_stateCommentLessThanSignBangDash(e){e===rt.HYPHEN_MINUS?this.state=Xt.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=Xt.COMMENT_END_DASH,this._stateCommentEndDash(e))}_stateCommentLessThanSignBangDashDash(e){e!==rt.GREATER_THAN_SIGN&&e!==rt.EOF&&this._err(Et.nestedComment),this.state=Xt.COMMENT_END,this._stateCommentEnd(e)}_stateCommentEndDash(e){const t=this.currentToken;switch(e){case rt.HYPHEN_MINUS:this.state=Xt.COMMENT_END;break;case rt.EOF:this._err(Et.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=Xt.COMMENT,this._stateComment(e)}}_stateCommentEnd(e){const t=this.currentToken;switch(e){case rt.GREATER_THAN_SIGN:this.state=Xt.DATA,this.emitCurrentComment(t);break;case rt.EXCLAMATION_MARK:this.state=Xt.COMMENT_END_BANG;break;case rt.HYPHEN_MINUS:t.data+="-";break;case rt.EOF:this._err(Et.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--",this.state=Xt.COMMENT,this._stateComment(e)}}_stateCommentEndBang(e){const t=this.currentToken;switch(e){case rt.HYPHEN_MINUS:t.data+="--!",this.state=Xt.COMMENT_END_DASH;break;case rt.GREATER_THAN_SIGN:this._err(Et.incorrectlyClosedComment),this.state=Xt.DATA,this.emitCurrentComment(t);break;case rt.EOF:this._err(Et.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--!",this.state=Xt.COMMENT,this._stateComment(e)}}_stateDoctype(e){switch(e){case rt.SPACE:case rt.LINE_FEED:case rt.TABULATION:case rt.FORM_FEED:this.state=Xt.BEFORE_DOCTYPE_NAME;break;case rt.GREATER_THAN_SIGN:this.state=Xt.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e);break;case rt.EOF:{this._err(Et.eofInDoctype),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._err(Et.missingWhitespaceBeforeDoctypeName),this.state=Xt.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e)}}_stateBeforeDoctypeName(e){if(Zt(e))this._createDoctypeToken(String.fromCharCode(nn(e))),this.state=Xt.DOCTYPE_NAME;else switch(e){case rt.SPACE:case rt.LINE_FEED:case rt.TABULATION:case rt.FORM_FEED:break;case rt.NULL:this._err(Et.unexpectedNullCharacter),this._createDoctypeToken(nt),this.state=Xt.DOCTYPE_NAME;break;case rt.GREATER_THAN_SIGN:{this._err(Et.missingDoctypeName),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this.state=Xt.DATA;break}case rt.EOF:{this._err(Et.eofInDoctype),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(e)),this.state=Xt.DOCTYPE_NAME}}_stateDoctypeName(e){const t=this.currentToken;switch(e){case rt.SPACE:case rt.LINE_FEED:case rt.TABULATION:case rt.FORM_FEED:this.state=Xt.AFTER_DOCTYPE_NAME;break;case rt.GREATER_THAN_SIGN:this.state=Xt.DATA,this.emitCurrentDoctype(t);break;case rt.NULL:this._err(Et.unexpectedNullCharacter),t.name+=nt;break;case rt.EOF:this._err(Et.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.name+=String.fromCodePoint(Zt(e)?nn(e):e)}}_stateAfterDoctypeName(e){const t=this.currentToken;switch(e){case rt.SPACE:case rt.LINE_FEED:case rt.TABULATION:case rt.FORM_FEED:break;case rt.GREATER_THAN_SIGN:this.state=Xt.DATA,this.emitCurrentDoctype(t);break;case rt.EOF:this._err(Et.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._consumeSequenceIfMatch(ct,!1)?this.state=Xt.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(ut,!1)?this.state=Xt.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(Et.invalidCharacterSequenceAfterDoctypeName),t.forceQuirks=!0,this.state=Xt.BOGUS_DOCTYPE,this._stateBogusDoctype(e))}}_stateAfterDoctypePublicKeyword(e){const t=this.currentToken;switch(e){case rt.SPACE:case rt.LINE_FEED:case rt.TABULATION:case rt.FORM_FEED:this.state=Xt.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break;case rt.QUOTATION_MARK:this._err(Et.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=Xt.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case rt.APOSTROPHE:this._err(Et.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=Xt.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case rt.GREATER_THAN_SIGN:this._err(Et.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=Xt.DATA,this.emitCurrentDoctype(t);break;case rt.EOF:this._err(Et.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(Et.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=Xt.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypePublicIdentifier(e){const t=this.currentToken;switch(e){case rt.SPACE:case rt.LINE_FEED:case rt.TABULATION:case rt.FORM_FEED:break;case rt.QUOTATION_MARK:t.publicId="",this.state=Xt.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case rt.APOSTROPHE:t.publicId="",this.state=Xt.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case rt.GREATER_THAN_SIGN:this._err(Et.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=Xt.DATA,this.emitCurrentDoctype(t);break;case rt.EOF:this._err(Et.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(Et.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=Xt.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypePublicIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case rt.QUOTATION_MARK:this.state=Xt.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case rt.NULL:this._err(Et.unexpectedNullCharacter),t.publicId+=nt;break;case rt.GREATER_THAN_SIGN:this._err(Et.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=Xt.DATA;break;case rt.EOF:this._err(Et.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateDoctypePublicIdentifierSingleQuoted(e){const t=this.currentToken;switch(e){case rt.APOSTROPHE:this.state=Xt.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case rt.NULL:this._err(Et.unexpectedNullCharacter),t.publicId+=nt;break;case rt.GREATER_THAN_SIGN:this._err(Et.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=Xt.DATA;break;case rt.EOF:this._err(Et.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateAfterDoctypePublicIdentifier(e){const t=this.currentToken;switch(e){case rt.SPACE:case rt.LINE_FEED:case rt.TABULATION:case rt.FORM_FEED:this.state=Xt.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break;case rt.GREATER_THAN_SIGN:this.state=Xt.DATA,this.emitCurrentDoctype(t);break;case rt.QUOTATION_MARK:this._err(Et.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=Xt.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case rt.APOSTROPHE:this._err(Et.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=Xt.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case rt.EOF:this._err(Et.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(Et.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Xt.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBetweenDoctypePublicAndSystemIdentifiers(e){const t=this.currentToken;switch(e){case rt.SPACE:case rt.LINE_FEED:case rt.TABULATION:case rt.FORM_FEED:break;case rt.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=Xt.DATA;break;case rt.QUOTATION_MARK:t.systemId="",this.state=Xt.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case rt.APOSTROPHE:t.systemId="",this.state=Xt.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case rt.EOF:this._err(Et.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(Et.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Xt.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateAfterDoctypeSystemKeyword(e){const t=this.currentToken;switch(e){case rt.SPACE:case rt.LINE_FEED:case rt.TABULATION:case rt.FORM_FEED:this.state=Xt.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break;case rt.QUOTATION_MARK:this._err(Et.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=Xt.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case rt.APOSTROPHE:this._err(Et.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=Xt.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case rt.GREATER_THAN_SIGN:this._err(Et.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Xt.DATA,this.emitCurrentDoctype(t);break;case rt.EOF:this._err(Et.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(Et.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Xt.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypeSystemIdentifier(e){const t=this.currentToken;switch(e){case rt.SPACE:case rt.LINE_FEED:case rt.TABULATION:case rt.FORM_FEED:break;case rt.QUOTATION_MARK:t.systemId="",this.state=Xt.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case rt.APOSTROPHE:t.systemId="",this.state=Xt.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case rt.GREATER_THAN_SIGN:this._err(Et.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Xt.DATA,this.emitCurrentDoctype(t);break;case rt.EOF:this._err(Et.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(Et.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Xt.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypeSystemIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case rt.QUOTATION_MARK:this.state=Xt.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case rt.NULL:this._err(Et.unexpectedNullCharacter),t.systemId+=nt;break;case rt.GREATER_THAN_SIGN:this._err(Et.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=Xt.DATA;break;case rt.EOF:this._err(Et.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateDoctypeSystemIdentifierSingleQuoted(e){const t=this.currentToken;switch(e){case rt.APOSTROPHE:this.state=Xt.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case rt.NULL:this._err(Et.unexpectedNullCharacter),t.systemId+=nt;break;case rt.GREATER_THAN_SIGN:this._err(Et.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=Xt.DATA;break;case rt.EOF:this._err(Et.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateAfterDoctypeSystemIdentifier(e){const t=this.currentToken;switch(e){case rt.SPACE:case rt.LINE_FEED:case rt.TABULATION:case rt.FORM_FEED:break;case rt.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=Xt.DATA;break;case rt.EOF:this._err(Et.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(Et.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=Xt.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBogusDoctype(e){const t=this.currentToken;switch(e){case rt.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=Xt.DATA;break;case rt.NULL:this._err(Et.unexpectedNullCharacter);break;case rt.EOF:this.emitCurrentDoctype(t),this._emitEOFToken()}}_stateCdataSection(e){switch(e){case rt.RIGHT_SQUARE_BRACKET:this.state=Xt.CDATA_SECTION_BRACKET;break;case rt.EOF:this._err(Et.eofInCdata),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateCdataSectionBracket(e){e===rt.RIGHT_SQUARE_BRACKET?this.state=Xt.CDATA_SECTION_END:(this._emitChars("]"),this.state=Xt.CDATA_SECTION,this._stateCdataSection(e))}_stateCdataSectionEnd(e){switch(e){case rt.GREATER_THAN_SIGN:this.state=Xt.DATA;break;case rt.RIGHT_SQUARE_BRACKET:this._emitChars("]");break;default:this._emitChars("]]"),this.state=Xt.CDATA_SECTION,this._stateCdataSection(e)}}_stateCharacterReference(){let e=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(e<0){if(!this.preprocessor.lastChunkWritten)return this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,void(this.preprocessor.endOfChunkHit=!0);e=this.entityDecoder.end()}0===e?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(rt.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&tn(this.preprocessor.peek(1))?Xt.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(e){tn(e)?this._flushCodePointConsumedAsCharacterReference(e):(e===rt.SEMICOLON&&this._err(Et.unknownNamedCharacterReference),this.state=this.returnState,this._callState(e))}}const sn=new Set([wt.DD,wt.DT,wt.LI,wt.OPTGROUP,wt.OPTION,wt.P,wt.RB,wt.RP,wt.RT,wt.RTC]),ln=new Set([...sn,wt.CAPTION,wt.COLGROUP,wt.TBODY,wt.TD,wt.TFOOT,wt.TH,wt.THEAD,wt.TR]),cn=new Set([wt.APPLET,wt.CAPTION,wt.HTML,wt.MARQUEE,wt.OBJECT,wt.TABLE,wt.TD,wt.TEMPLATE,wt.TH]),un=new Set([...cn,wt.OL,wt.UL]),pn=new Set([...cn,wt.BUTTON]),hn=new Set([wt.ANNOTATION_XML,wt.MI,wt.MN,wt.MO,wt.MS,wt.MTEXT]),dn=new Set([wt.DESC,wt.FOREIGN_OBJECT,wt.TITLE]),En=new Set([wt.TR,wt.TEMPLATE,wt.HTML]),mn=new Set([wt.TBODY,wt.TFOOT,wt.THEAD,wt.TEMPLATE,wt.HTML]),fn=new Set([wt.TABLE,wt.TEMPLATE,wt.HTML]),Tn=new Set([wt.TD,wt.TH]);class gn{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(e,t,n){this.treeAdapter=t,this.handler=n,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=wt.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===wt.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Rt.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(e,t){this.stackTop++,this.items[this.stackTop]=e,this.current=e,this.tagIDs[this.stackTop]=t,this.currentTagId=t,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(e,t,!0)}pop(){const e=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,t){const n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&(this.current=t)}insertAfter(e,t,n){const r=this._indexOf(e)+1;this.items.splice(r,0,t),this.tagIDs.splice(r,0,n),this.stackTop++,r===this.stackTop&&this._updateCurrentElement(),this.current&&void 0!==this.currentTagId&&this.handler.onItemPush(this.current,this.currentTagId,r===this.stackTop)}popUntilTagNamePopped(e){let t=this.stackTop+1;do{t=this.tagIDs.lastIndexOf(e,t-1)}while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==Rt.HTML);this.shortenToLength(Math.max(t,0))}shortenToLength(e){for(;this.stackTop>=e;){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,this.stackTop<e)}}popUntilElementPopped(e){const t=this._indexOf(e);this.shortenToLength(Math.max(t,0))}popUntilPopped(e,t){const n=this._indexOfTagNames(e,t);this.shortenToLength(Math.max(n,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(Kt,Rt.HTML)}popUntilTableCellPopped(){this.popUntilPopped(Tn,Rt.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(e,t){for(let n=this.stackTop;n>=0;n--)if(e.has(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===t)return n;return-1}clearBackTo(e,t){const n=this._indexOfTagNames(e,t);this.shortenToLength(n+1)}clearBackToTableContext(){this.clearBackTo(fn,Rt.HTML)}clearBackToTableBodyContext(){this.clearBackTo(mn,Rt.HTML)}clearBackToTableRowContext(){this.clearBackTo(En,Rt.HTML)}remove(e){const t=this._indexOf(e);t>=0&&(t===this.stackTop?this.pop():(this.items.splice(t,1),this.tagIDs.splice(t,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===wt.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){const t=this._indexOf(e)-1;return t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.tagIDs[0]===wt.HTML}hasInDynamicScope(e,t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n];switch(this.treeAdapter.getNamespaceURI(this.items[n])){case Rt.HTML:if(r===e)return!0;if(t.has(r))return!1;break;case Rt.SVG:if(dn.has(r))return!1;break;case Rt.MATHML:if(hn.has(r))return!1}}return!0}hasInScope(e){return this.hasInDynamicScope(e,cn)}hasInListItemScope(e){return this.hasInDynamicScope(e,un)}hasInButtonScope(e){return this.hasInDynamicScope(e,pn)}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){const t=this.tagIDs[e];switch(this.treeAdapter.getNamespaceURI(this.items[e])){case Rt.HTML:if(Kt.has(t))return!0;if(cn.has(t))return!1;break;case Rt.SVG:if(dn.has(t))return!1;break;case Rt.MATHML:if(hn.has(t))return!1}}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===Rt.HTML)switch(this.tagIDs[t]){case e:return!0;case wt.TABLE:case wt.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--)if(this.treeAdapter.getNamespaceURI(this.items[e])===Rt.HTML)switch(this.tagIDs[e]){case wt.TBODY:case wt.THEAD:case wt.TFOOT:return!0;case wt.TABLE:case wt.HTML:return!1}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===Rt.HTML)switch(this.tagIDs[t]){case e:return!0;case wt.OPTION:case wt.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;void 0!==this.currentTagId&&sn.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;void 0!==this.currentTagId&&ln.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;void 0!==this.currentTagId&&this.currentTagId!==e&&ln.has(this.currentTagId);)this.pop()}}var An,Dn;(Dn=An||(An={}))[Dn.Marker=0]="Marker",Dn[Dn.Element=1]="Element";const _n={type:An.Marker};class Cn{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,t){const n=[],r=t.length,a=this.treeAdapter.getTagName(e),o=this.treeAdapter.getNamespaceURI(e);for(let i=0;i<this.entries.length;i++){const e=this.entries[i];if(e.type===An.Marker)break;const{element:t}=e;if(this.treeAdapter.getTagName(t)===a&&this.treeAdapter.getNamespaceURI(t)===o){const e=this.treeAdapter.getAttrList(t);e.length===r&&n.push({idx:i,attrs:e})}}return n}_ensureNoahArkCondition(e){if(this.entries.length<3)return;const t=this.treeAdapter.getAttrList(e),n=this._getNoahArkConditionCandidates(e,t);if(n.length<3)return;const r=new Map(t.map(e=>[e.name,e.value]));let a=0;for(let o=0;o<n.length;o++){const e=n[o];e.attrs.every(e=>r.get(e.name)===e.value)&&(a+=1,a>=3&&this.entries.splice(e.idx,1))}}insertMarker(){this.entries.unshift(_n)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:An.Element,element:e,token:t})}insertElementAfterBookmark(e,t){const n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:An.Element,element:e,token:t})}removeEntry(e){const t=this.entries.indexOf(e);-1!==t&&this.entries.splice(t,1)}clearToLastMarker(){const e=this.entries.indexOf(_n);-1===e?this.entries.length=0:this.entries.splice(0,e+1)}getElementEntryInScopeWithTagName(e){const t=this.entries.find(t=>t.type===An.Marker||this.treeAdapter.getTagName(t.element)===e);return t&&t.type===An.Element?t:null}getElementEntry(e){return this.entries.find(t=>t.type===An.Element&&t.element===e)}}const Nn={createDocument:()=>({nodeName:"#document",mode:Mt.NO_QUIRKS,childNodes:[]}),createDocumentFragment:()=>({nodeName:"#document-fragment",childNodes:[]}),createElement:(e,t,n)=>({nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}),createCommentNode:e=>({nodeName:"#comment",data:e,parentNode:null}),createTextNode:e=>({nodeName:"#text",value:e,parentNode:null}),appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent:e=>e.content,setDocumentType(e,t,n,r){const a=e.childNodes.find(e=>"#documentType"===e.nodeName);if(a)a.name=t,a.publicId=n,a.systemId=r;else{const a={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};Nn.appendChild(e,a)}},setDocumentMode(e,t){e.mode=t},getDocumentMode:e=>e.mode,detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(Nn.isTextNode(n))return void(n.value+=t)}Nn.appendChild(e,Nn.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&Nn.isTextNode(r)?r.value+=t:Nn.insertBefore(e,Nn.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(e=>e.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild:e=>e.childNodes[0],getChildNodes:e=>e.childNodes,getParentNode:e=>e.parentNode,getAttrList:e=>e.attrs,getTagName:e=>e.tagName,getNamespaceURI:e=>e.namespaceURI,getTextNodeContent:e=>e.value,getCommentNodeContent:e=>e.data,getDocumentTypeNodeName:e=>e.name,getDocumentTypeNodePublicId:e=>e.publicId,getDocumentTypeNodeSystemId:e=>e.systemId,isTextNode:e=>"#text"===e.nodeName,isCommentNode:e=>"#comment"===e.nodeName,isDocumentTypeNode:e=>"#documentType"===e.nodeName,isElementNode:e=>Object.prototype.hasOwnProperty.call(e,"tagName"),setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation:e=>e.sourceCodeLocation,updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},In="html",Sn=["+//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//"],bn=[...Sn,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],kn=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),yn=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],On=[...yn,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Rn(e,t){return t.some(t=>e.startsWith(t))}const Ln="text/html",Fn="application/xhtml+xml",Pn=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),Mn=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:Rt.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:Rt.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:Rt.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:Rt.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:Rt.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:Rt.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:Rt.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:Rt.XML}],["xml:space",{prefix:"xml",name:"space",namespace:Rt.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:Rt.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:Rt.XMLNS}]]),Bn=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),vn=new Set([wt.B,wt.BIG,wt.BLOCKQUOTE,wt.BODY,wt.BR,wt.CENTER,wt.CODE,wt.DD,wt.DIV,wt.DL,wt.DT,wt.EM,wt.EMBED,wt.H1,wt.H2,wt.H3,wt.H4,wt.H5,wt.H6,wt.HEAD,wt.HR,wt.I,wt.IMG,wt.LI,wt.LISTING,wt.MENU,wt.META,wt.NOBR,wt.OL,wt.P,wt.PRE,wt.RUBY,wt.S,wt.SMALL,wt.SPAN,wt.STRONG,wt.STRIKE,wt.SUB,wt.SUP,wt.TABLE,wt.TT,wt.U,wt.UL,wt.VAR]);function xn(e){for(let t=0;t<e.attrs.length;t++)if("definitionurl"===e.attrs[t].name){e.attrs[t].name="definitionURL";break}}function wn(e){for(let t=0;t<e.attrs.length;t++){const n=Pn.get(e.attrs[t].name);null!=n&&(e.attrs[t].name=n)}}function Un(e){for(let t=0;t<e.attrs.length;t++){const n=Mn.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function Hn(e,t,n,r){return(!r||r===Rt.HTML)&&function(e,t,n){if(t===Rt.MATHML&&e===wt.ANNOTATION_XML)for(let r=0;r<n.length;r++)if(n[r].name===Ft.ENCODING){const e=n[r].value.toLowerCase();return e===Ln||e===Fn}return t===Rt.SVG&&(e===wt.FOREIGN_OBJECT||e===wt.DESC||e===wt.TITLE)}(e,t,n)||(!r||r===Rt.MATHML)&&function(e,t){return t===Rt.MATHML&&(e===wt.MI||e===wt.MO||e===wt.MN||e===wt.MS||e===wt.MTEXT)}(e,t)}var Gn,Yn;(Yn=Gn||(Gn={}))[Yn.INITIAL=0]="INITIAL",Yn[Yn.BEFORE_HTML=1]="BEFORE_HTML",Yn[Yn.BEFORE_HEAD=2]="BEFORE_HEAD",Yn[Yn.IN_HEAD=3]="IN_HEAD",Yn[Yn.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",Yn[Yn.AFTER_HEAD=5]="AFTER_HEAD",Yn[Yn.IN_BODY=6]="IN_BODY",Yn[Yn.TEXT=7]="TEXT",Yn[Yn.IN_TABLE=8]="IN_TABLE",Yn[Yn.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",Yn[Yn.IN_CAPTION=10]="IN_CAPTION",Yn[Yn.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",Yn[Yn.IN_TABLE_BODY=12]="IN_TABLE_BODY",Yn[Yn.IN_ROW=13]="IN_ROW",Yn[Yn.IN_CELL=14]="IN_CELL",Yn[Yn.IN_SELECT=15]="IN_SELECT",Yn[Yn.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",Yn[Yn.IN_TEMPLATE=17]="IN_TEMPLATE",Yn[Yn.AFTER_BODY=18]="AFTER_BODY",Yn[Yn.IN_FRAMESET=19]="IN_FRAMESET",Yn[Yn.AFTER_FRAMESET=20]="AFTER_FRAMESET",Yn[Yn.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",Yn[Yn.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET";const qn={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},zn=new Set([wt.TABLE,wt.TBODY,wt.TFOOT,wt.THEAD,wt.TR]),Wn={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Nn,onParseError:null};class jn{constructor(e,t,n=null,r=null){this.fragmentContext=n,this.scriptHandler=r,this.currentToken=null,this.stopped=!1,this.insertionMode=Gn.INITIAL,this.originalInsertionMode=Gn.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...Wn,...e},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=null!=t?t:this.treeAdapter.createDocument(),this.tokenizer=new on(this.options,this),this.activeFormattingElements=new Cn(this.treeAdapter),this.fragmentContextID=n?jt(this.treeAdapter.getTagName(n)):wt.UNKNOWN,this._setContextModes(null!=n?n:this.document,this.fragmentContextID),this.openElements=new gn(this.document,this.treeAdapter,this)}static parse(e,t){const n=new this(t);return n.tokenizer.write(e,!0),n.document}static getFragmentParser(e,t){const n={...Wn,...t};null!=e||(e=n.treeAdapter.createElement(vt.TEMPLATE,Rt.HTML,[]));const r=n.treeAdapter.createElement("documentmock",Rt.HTML,[]),a=new this(n,r,e);return a.fragmentContextID===wt.TEMPLATE&&a.tmplInsertionModeStack.unshift(Gn.IN_TEMPLATE),a._initTokenizerForFragmentParsing(),a._insertFakeRootElement(),a._resetInsertionMode(),a._findFormInFragmentContext(),a}getFragment(){const e=this.treeAdapter.getFirstChild(this.document),t=this.treeAdapter.createDocumentFragment();return this._adoptNodes(e,t),t}_err(e,t,n){var r;if(!this.onParseError)return;const a=null!==(r=e.location)&&void 0!==r?r:qn,o={code:t,startLine:a.startLine,startCol:a.startCol,startOffset:a.startOffset,endLine:n?a.startLine:a.endLine,endCol:n?a.startCol:a.endCol,endOffset:n?a.startOffset:a.endOffset};this.onParseError(o)}onItemPush(e,t,n){var r,a;null===(a=(r=this.treeAdapter).onItemPush)||void 0===a||a.call(r,e),n&&this.openElements.stackTop>0&&this._setContextModes(e,t)}onItemPop(e,t){var n,r;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),null===(r=(n=this.treeAdapter).onItemPop)||void 0===r||r.call(n,e,this.openElements.current),t){let e,t;0===this.openElements.stackTop&&this.fragmentContext?(e=this.fragmentContext,t=this.fragmentContextID):({current:e,currentTagId:t}=this.openElements),this._setContextModes(e,t)}}_setContextModes(e,t){const n=e===this.document||e&&this.treeAdapter.getNamespaceURI(e)===Rt.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&void 0!==e&&void 0!==t&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,Rt.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=Gn.TEXT}switchToPlaintextParsing(){this.insertionMode=Gn.TEXT,this.originalInsertionMode=Gn.IN_BODY,this.tokenizer.state=Jt.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;for(;e;){if(this.treeAdapter.getTagName(e)===vt.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(this.fragmentContext&&this.treeAdapter.getNamespaceURI(this.fragmentContext)===Rt.HTML)switch(this.fragmentContextID){case wt.TITLE:case wt.TEXTAREA:this.tokenizer.state=Jt.RCDATA;break;case wt.STYLE:case wt.XMP:case wt.IFRAME:case wt.NOEMBED:case wt.NOFRAMES:case wt.NOSCRIPT:this.tokenizer.state=Jt.RAWTEXT;break;case wt.SCRIPT:this.tokenizer.state=Jt.SCRIPT_DATA;break;case wt.PLAINTEXT:this.tokenizer.state=Jt.PLAINTEXT}}_setDocumentType(e){const t=e.name||"",n=e.publicId||"",r=e.systemId||"";if(this.treeAdapter.setDocumentType(this.document,t,n,r),e.location){const t=this.treeAdapter.getChildNodes(this.document).find(e=>this.treeAdapter.isDocumentTypeNode(e));t&&this.treeAdapter.setNodeSourceCodeLocation(t,e.location)}}_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo){const n=t&&{...t,startTag:t};this.treeAdapter.setNodeSourceCodeLocation(e,n)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{const t=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(null!=t?t:this.document,e)}}_appendElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location)}_insertElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location),this.openElements.push(n,e.tagID)}_insertFakeElement(e,t){const n=this.treeAdapter.createElement(e,Rt.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,t)}_insertTemplate(e){const t=this.treeAdapter.createElement(e.tagName,Rt.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t,e.location),this.openElements.push(t,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(){const e=this.treeAdapter.createElement(vt.HTML,Rt.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,wt.HTML)}_appendCommentNode(e,t){const n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,e.location)}_insertCharacters(e){let t,n;if(this._shouldFosterParentOnInsertion()?(({parent:t,beforeElement:n}=this._findFosterParentingLocation()),n?this.treeAdapter.insertTextBefore(t,e.chars,n):this.treeAdapter.insertText(t,e.chars)):(t=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(t,e.chars)),!e.location)return;const r=this.treeAdapter.getChildNodes(t),a=n?r.lastIndexOf(n):r.length,o=r[a-1];if(this.treeAdapter.getNodeSourceCodeLocation(o)){const{endLine:t,endCol:n,endOffset:r}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(o,{endLine:t,endCol:n,endOffset:r})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(o,e.location)}_adoptNodes(e,t){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){const n=t.location,r=this.treeAdapter.getTagName(e),a=t.type===Tt.END_TAG&&r===t.tagName?{endTag:{...n},endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,a)}}shouldProcessStartTagTokenInForeignContent(e){if(!this.currentNotInHTML)return!1;let t,n;return 0===this.openElements.stackTop&&this.fragmentContext?(t=this.fragmentContext,n=this.fragmentContextID):({current:t,currentTagId:n}=this.openElements),(e.tagID!==wt.SVG||this.treeAdapter.getTagName(t)!==vt.ANNOTATION_XML||this.treeAdapter.getNamespaceURI(t)!==Rt.MATHML)&&(this.tokenizer.inForeignNode||(e.tagID===wt.MGLYPH||e.tagID===wt.MALIGNMARK)&&void 0!==n&&!this._isIntegrationPoint(n,t,Rt.HTML))}_processToken(e){switch(e.type){case Tt.CHARACTER:this.onCharacter(e);break;case Tt.NULL_CHARACTER:this.onNullCharacter(e);break;case Tt.COMMENT:this.onComment(e);break;case Tt.DOCTYPE:this.onDoctype(e);break;case Tt.START_TAG:this._processStartTag(e);break;case Tt.END_TAG:this.onEndTag(e);break;case Tt.EOF:this.onEof(e);break;case Tt.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e)}}_isIntegrationPoint(e,t,n){return Hn(e,this.treeAdapter.getNamespaceURI(t),this.treeAdapter.getAttrList(t),n)}_reconstructActiveFormattingElements(){const e=this.activeFormattingElements.entries.length;if(e){const t=this.activeFormattingElements.entries.findIndex(e=>e.type===An.Marker||this.openElements.contains(e.element));for(let n=-1===t?e-1:t-1;n>=0;n--){const e=this.activeFormattingElements.entries[n];this._insertElement(e.token,this.treeAdapter.getNamespaceURI(e.element)),e.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=Gn.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(wt.P),this.openElements.popUntilTagNamePopped(wt.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(0===e&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case wt.TR:return void(this.insertionMode=Gn.IN_ROW);case wt.TBODY:case wt.THEAD:case wt.TFOOT:return void(this.insertionMode=Gn.IN_TABLE_BODY);case wt.CAPTION:return void(this.insertionMode=Gn.IN_CAPTION);case wt.COLGROUP:return void(this.insertionMode=Gn.IN_COLUMN_GROUP);case wt.TABLE:return void(this.insertionMode=Gn.IN_TABLE);case wt.BODY:return void(this.insertionMode=Gn.IN_BODY);case wt.FRAMESET:return void(this.insertionMode=Gn.IN_FRAMESET);case wt.SELECT:return void this._resetInsertionModeForSelect(e);case wt.TEMPLATE:return void(this.insertionMode=this.tmplInsertionModeStack[0]);case wt.HTML:return void(this.insertionMode=this.headElement?Gn.AFTER_HEAD:Gn.BEFORE_HEAD);case wt.TD:case wt.TH:if(e>0)return void(this.insertionMode=Gn.IN_CELL);break;case wt.HEAD:if(e>0)return void(this.insertionMode=Gn.IN_HEAD)}this.insertionMode=Gn.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){const e=this.openElements.tagIDs[t];if(e===wt.TEMPLATE)break;if(e===wt.TABLE)return void(this.insertionMode=Gn.IN_SELECT_IN_TABLE)}this.insertionMode=Gn.IN_SELECT}_isElementCausesFosterParenting(e){return zn.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&void 0!==this.openElements.currentTagId&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){const t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case wt.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===Rt.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break;case wt.TABLE:{const n=this.treeAdapter.getParentNode(t);return n?{parent:n,beforeElement:t}:{parent:this.openElements.items[e-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_isSpecialElement(e,t){const n=this.treeAdapter.getNamespaceURI(e);return Vt[n].has(t)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!function(e,t){e._insertCharacters(t),e.framesetOk=!1}(this,e);else switch(this.insertionMode){case Gn.INITIAL:nr(this,e);break;case Gn.BEFORE_HTML:rr(this,e);break;case Gn.BEFORE_HEAD:ar(this,e);break;case Gn.IN_HEAD:sr(this,e);break;case Gn.IN_HEAD_NO_SCRIPT:lr(this,e);break;case Gn.AFTER_HEAD:cr(this,e);break;case Gn.IN_BODY:case Gn.IN_CAPTION:case Gn.IN_CELL:case Gn.IN_TEMPLATE:hr(this,e);break;case Gn.TEXT:case Gn.IN_SELECT:case Gn.IN_SELECT_IN_TABLE:this._insertCharacters(e);break;case Gn.IN_TABLE:case Gn.IN_TABLE_BODY:case Gn.IN_ROW:_r(this,e);break;case Gn.IN_TABLE_TEXT:br(this,e);break;case Gn.IN_COLUMN_GROUP:Rr(this,e);break;case Gn.AFTER_BODY:Ur(this,e);break;case Gn.AFTER_AFTER_BODY:Hr(this,e)}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!function(e,t){t.chars=nt,e._insertCharacters(t)}(this,e);else switch(this.insertionMode){case Gn.INITIAL:nr(this,e);break;case Gn.BEFORE_HTML:rr(this,e);break;case Gn.BEFORE_HEAD:ar(this,e);break;case Gn.IN_HEAD:sr(this,e);break;case Gn.IN_HEAD_NO_SCRIPT:lr(this,e);break;case Gn.AFTER_HEAD:cr(this,e);break;case Gn.TEXT:this._insertCharacters(e);break;case Gn.IN_TABLE:case Gn.IN_TABLE_BODY:case Gn.IN_ROW:_r(this,e);break;case Gn.IN_COLUMN_GROUP:Rr(this,e);break;case Gn.AFTER_BODY:Ur(this,e);break;case Gn.AFTER_AFTER_BODY:Hr(this,e)}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML)er(this,e);else switch(this.insertionMode){case Gn.INITIAL:case Gn.BEFORE_HTML:case Gn.BEFORE_HEAD:case Gn.IN_HEAD:case Gn.IN_HEAD_NO_SCRIPT:case Gn.AFTER_HEAD:case Gn.IN_BODY:case Gn.IN_TABLE:case Gn.IN_CAPTION:case Gn.IN_COLUMN_GROUP:case Gn.IN_TABLE_BODY:case Gn.IN_ROW:case Gn.IN_CELL:case Gn.IN_SELECT:case Gn.IN_SELECT_IN_TABLE:case Gn.IN_TEMPLATE:case Gn.IN_FRAMESET:case Gn.AFTER_FRAMESET:er(this,e);break;case Gn.IN_TABLE_TEXT:kr(this,e);break;case Gn.AFTER_BODY:!function(e,t){e._appendCommentNode(t,e.openElements.items[0])}(this,e);break;case Gn.AFTER_AFTER_BODY:case Gn.AFTER_AFTER_FRAMESET:!function(e,t){e._appendCommentNode(t,e.document)}(this,e)}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case Gn.INITIAL:!function(e,t){e._setDocumentType(t);const n=t.forceQuirks?Mt.QUIRKS:function(e){if(e.name!==In)return Mt.QUIRKS;const{systemId:t}=e;if(t&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===t.toLowerCase())return Mt.QUIRKS;let{publicId:n}=e;if(null!==n){if(n=n.toLowerCase(),kn.has(n))return Mt.QUIRKS;let e=null===t?bn:Sn;if(Rn(n,e))return Mt.QUIRKS;if(e=null===t?yn:On,Rn(n,e))return Mt.LIMITED_QUIRKS}return Mt.NO_QUIRKS}(t);(function(e){return e.name===In&&null===e.publicId&&(null===e.systemId||"about:legacy-compat"===e.systemId)})(t)||e._err(t,Et.nonConformingDoctype);e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=Gn.BEFORE_HTML}(this,e);break;case Gn.BEFORE_HEAD:case Gn.IN_HEAD:case Gn.IN_HEAD_NO_SCRIPT:case Gn.AFTER_HEAD:this._err(e,Et.misplacedDoctype);break;case Gn.IN_TABLE_TEXT:kr(this,e)}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,Et.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?function(e,t){if(function(e){const t=e.tagID;return t===wt.FONT&&e.attrs.some(({name:e})=>e===Ft.COLOR||e===Ft.SIZE||e===Ft.FACE)||vn.has(t)}(t))Gr(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===Rt.MATHML?xn(t):r===Rt.SVG&&(!function(e){const t=Bn.get(e.tagName);null!=t&&(e.tagName=t,e.tagID=jt(e.tagName))}(t),wn(t)),Un(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case Gn.INITIAL:nr(this,e);break;case Gn.BEFORE_HTML:!function(e,t){t.tagID===wt.HTML?(e._insertElement(t,Rt.HTML),e.insertionMode=Gn.BEFORE_HEAD):rr(e,t)}(this,e);break;case Gn.BEFORE_HEAD:!function(e,t){switch(t.tagID){case wt.HTML:Tr(e,t);break;case wt.HEAD:e._insertElement(t,Rt.HTML),e.headElement=e.openElements.current,e.insertionMode=Gn.IN_HEAD;break;default:ar(e,t)}}(this,e);break;case Gn.IN_HEAD:or(this,e);break;case Gn.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case wt.HTML:Tr(e,t);break;case wt.BASEFONT:case wt.BGSOUND:case wt.HEAD:case wt.LINK:case wt.META:case wt.NOFRAMES:case wt.STYLE:or(e,t);break;case wt.NOSCRIPT:e._err(t,Et.nestedNoscriptInHead);break;default:lr(e,t)}}(this,e);break;case Gn.AFTER_HEAD:!function(e,t){switch(t.tagID){case wt.HTML:Tr(e,t);break;case wt.BODY:e._insertElement(t,Rt.HTML),e.framesetOk=!1,e.insertionMode=Gn.IN_BODY;break;case wt.FRAMESET:e._insertElement(t,Rt.HTML),e.insertionMode=Gn.IN_FRAMESET;break;case wt.BASE:case wt.BASEFONT:case wt.BGSOUND:case wt.LINK:case wt.META:case wt.NOFRAMES:case wt.SCRIPT:case wt.STYLE:case wt.TEMPLATE:case wt.TITLE:e._err(t,Et.abandonedHeadElementChild),e.openElements.push(e.headElement,wt.HEAD),or(e,t),e.openElements.remove(e.headElement);break;case wt.HEAD:e._err(t,Et.misplacedStartTagForHeadElement);break;default:cr(e,t)}}(this,e);break;case Gn.IN_BODY:Tr(this,e);break;case Gn.IN_TABLE:Cr(this,e);break;case Gn.IN_TABLE_TEXT:kr(this,e);break;case Gn.IN_CAPTION:!function(e,t){const n=t.tagID;yr.has(n)?e.openElements.hasInTableScope(wt.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(wt.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Gn.IN_TABLE,Cr(e,t)):Tr(e,t)}(this,e);break;case Gn.IN_COLUMN_GROUP:Or(this,e);break;case Gn.IN_TABLE_BODY:Lr(this,e);break;case Gn.IN_ROW:Pr(this,e);break;case Gn.IN_CELL:!function(e,t){const n=t.tagID;yr.has(n)?(e.openElements.hasInTableScope(wt.TD)||e.openElements.hasInTableScope(wt.TH))&&(e._closeTableCell(),Pr(e,t)):Tr(e,t)}(this,e);break;case Gn.IN_SELECT:Br(this,e);break;case Gn.IN_SELECT_IN_TABLE:!function(e,t){const n=t.tagID;n===wt.CAPTION||n===wt.TABLE||n===wt.TBODY||n===wt.TFOOT||n===wt.THEAD||n===wt.TR||n===wt.TD||n===wt.TH?(e.openElements.popUntilTagNamePopped(wt.SELECT),e._resetInsertionMode(),e._processStartTag(t)):Br(e,t)}(this,e);break;case Gn.IN_TEMPLATE:!function(e,t){switch(t.tagID){case wt.BASE:case wt.BASEFONT:case wt.BGSOUND:case wt.LINK:case wt.META:case wt.NOFRAMES:case wt.SCRIPT:case wt.STYLE:case wt.TEMPLATE:case wt.TITLE:or(e,t);break;case wt.CAPTION:case wt.COLGROUP:case wt.TBODY:case wt.TFOOT:case wt.THEAD:e.tmplInsertionModeStack[0]=Gn.IN_TABLE,e.insertionMode=Gn.IN_TABLE,Cr(e,t);break;case wt.COL:e.tmplInsertionModeStack[0]=Gn.IN_COLUMN_GROUP,e.insertionMode=Gn.IN_COLUMN_GROUP,Or(e,t);break;case wt.TR:e.tmplInsertionModeStack[0]=Gn.IN_TABLE_BODY,e.insertionMode=Gn.IN_TABLE_BODY,Lr(e,t);break;case wt.TD:case wt.TH:e.tmplInsertionModeStack[0]=Gn.IN_ROW,e.insertionMode=Gn.IN_ROW,Pr(e,t);break;default:e.tmplInsertionModeStack[0]=Gn.IN_BODY,e.insertionMode=Gn.IN_BODY,Tr(e,t)}}(this,e);break;case Gn.AFTER_BODY:!function(e,t){t.tagID===wt.HTML?Tr(e,t):Ur(e,t)}(this,e);break;case Gn.IN_FRAMESET:!function(e,t){switch(t.tagID){case wt.HTML:Tr(e,t);break;case wt.FRAMESET:e._insertElement(t,Rt.HTML);break;case wt.FRAME:e._appendElement(t,Rt.HTML),t.ackSelfClosing=!0;break;case wt.NOFRAMES:or(e,t)}}(this,e);break;case Gn.AFTER_FRAMESET:!function(e,t){switch(t.tagID){case wt.HTML:Tr(e,t);break;case wt.NOFRAMES:or(e,t)}}(this,e);break;case Gn.AFTER_AFTER_BODY:!function(e,t){t.tagID===wt.HTML?Tr(e,t):Hr(e,t)}(this,e);break;case Gn.AFTER_AFTER_FRAMESET:!function(e,t){switch(t.tagID){case wt.HTML:Tr(e,t);break;case wt.NOFRAMES:or(e,t)}}(this,e)}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?function(e,t){if(t.tagID===wt.P||t.tagID===wt.BR)return Gr(e),void e._endTagOutsideForeignContent(t);for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===Rt.HTML){e._endTagOutsideForeignContent(t);break}const a=e.treeAdapter.getTagName(r);if(a.toLowerCase()===t.tagName){t.tagName=a,e.openElements.shortenToLength(n);break}}}(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case Gn.INITIAL:nr(this,e);break;case Gn.BEFORE_HTML:!function(e,t){const n=t.tagID;n!==wt.HTML&&n!==wt.HEAD&&n!==wt.BODY&&n!==wt.BR||rr(e,t)}(this,e);break;case Gn.BEFORE_HEAD:!function(e,t){const n=t.tagID;n===wt.HEAD||n===wt.BODY||n===wt.HTML||n===wt.BR?ar(e,t):e._err(t,Et.endTagWithoutMatchingOpenElement)}(this,e);break;case Gn.IN_HEAD:!function(e,t){switch(t.tagID){case wt.HEAD:e.openElements.pop(),e.insertionMode=Gn.AFTER_HEAD;break;case wt.BODY:case wt.BR:case wt.HTML:sr(e,t);break;case wt.TEMPLATE:ir(e,t);break;default:e._err(t,Et.endTagWithoutMatchingOpenElement)}}(this,e);break;case Gn.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case wt.NOSCRIPT:e.openElements.pop(),e.insertionMode=Gn.IN_HEAD;break;case wt.BR:lr(e,t);break;default:e._err(t,Et.endTagWithoutMatchingOpenElement)}}(this,e);break;case Gn.AFTER_HEAD:!function(e,t){switch(t.tagID){case wt.BODY:case wt.HTML:case wt.BR:cr(e,t);break;case wt.TEMPLATE:ir(e,t);break;default:e._err(t,Et.endTagWithoutMatchingOpenElement)}}(this,e);break;case Gn.IN_BODY:Ar(this,e);break;case Gn.TEXT:!function(e,t){var n;t.tagID===wt.SCRIPT&&(null===(n=e.scriptHandler)||void 0===n||n.call(e,e.openElements.current));e.openElements.pop(),e.insertionMode=e.originalInsertionMode}(this,e);break;case Gn.IN_TABLE:Nr(this,e);break;case Gn.IN_TABLE_TEXT:kr(this,e);break;case Gn.IN_CAPTION:!function(e,t){const n=t.tagID;switch(n){case wt.CAPTION:case wt.TABLE:e.openElements.hasInTableScope(wt.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(wt.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Gn.IN_TABLE,n===wt.TABLE&&Nr(e,t));break;case wt.BODY:case wt.COL:case wt.COLGROUP:case wt.HTML:case wt.TBODY:case wt.TD:case wt.TFOOT:case wt.TH:case wt.THEAD:case wt.TR:break;default:Ar(e,t)}}(this,e);break;case Gn.IN_COLUMN_GROUP:!function(e,t){switch(t.tagID){case wt.COLGROUP:e.openElements.currentTagId===wt.COLGROUP&&(e.openElements.pop(),e.insertionMode=Gn.IN_TABLE);break;case wt.TEMPLATE:ir(e,t);break;case wt.COL:break;default:Rr(e,t)}}(this,e);break;case Gn.IN_TABLE_BODY:Fr(this,e);break;case Gn.IN_ROW:Mr(this,e);break;case Gn.IN_CELL:!function(e,t){const n=t.tagID;switch(n){case wt.TD:case wt.TH:e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Gn.IN_ROW);break;case wt.TABLE:case wt.TBODY:case wt.TFOOT:case wt.THEAD:case wt.TR:e.openElements.hasInTableScope(n)&&(e._closeTableCell(),Mr(e,t));break;case wt.BODY:case wt.CAPTION:case wt.COL:case wt.COLGROUP:case wt.HTML:break;default:Ar(e,t)}}(this,e);break;case Gn.IN_SELECT:vr(this,e);break;case Gn.IN_SELECT_IN_TABLE:!function(e,t){const n=t.tagID;n===wt.CAPTION||n===wt.TABLE||n===wt.TBODY||n===wt.TFOOT||n===wt.THEAD||n===wt.TR||n===wt.TD||n===wt.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(wt.SELECT),e._resetInsertionMode(),e.onEndTag(t)):vr(e,t)}(this,e);break;case Gn.IN_TEMPLATE:!function(e,t){t.tagID===wt.TEMPLATE&&ir(e,t)}(this,e);break;case Gn.AFTER_BODY:wr(this,e);break;case Gn.IN_FRAMESET:!function(e,t){t.tagID!==wt.FRAMESET||e.openElements.isRootHtmlElementCurrent()||(e.openElements.pop(),e.fragmentContext||e.openElements.currentTagId===wt.FRAMESET||(e.insertionMode=Gn.AFTER_FRAMESET))}(this,e);break;case Gn.AFTER_FRAMESET:!function(e,t){t.tagID===wt.HTML&&(e.insertionMode=Gn.AFTER_AFTER_FRAMESET)}(this,e);break;case Gn.AFTER_AFTER_BODY:Hr(this,e)}}onEof(e){switch(this.insertionMode){case Gn.INITIAL:nr(this,e);break;case Gn.BEFORE_HTML:rr(this,e);break;case Gn.BEFORE_HEAD:ar(this,e);break;case Gn.IN_HEAD:sr(this,e);break;case Gn.IN_HEAD_NO_SCRIPT:lr(this,e);break;case Gn.AFTER_HEAD:cr(this,e);break;case Gn.IN_BODY:case Gn.IN_TABLE:case Gn.IN_CAPTION:case Gn.IN_COLUMN_GROUP:case Gn.IN_TABLE_BODY:case Gn.IN_ROW:case Gn.IN_CELL:case Gn.IN_SELECT:case Gn.IN_SELECT_IN_TABLE:Dr(this,e);break;case Gn.TEXT:!function(e,t){e._err(t,Et.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}(this,e);break;case Gn.IN_TABLE_TEXT:kr(this,e);break;case Gn.IN_TEMPLATE:xr(this,e);break;case Gn.AFTER_BODY:case Gn.IN_FRAMESET:case Gn.AFTER_FRAMESET:case Gn.AFTER_AFTER_BODY:case Gn.AFTER_AFTER_FRAMESET:tr(this,e)}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===rt.LINE_FEED)){if(1===e.chars.length)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode)this._insertCharacters(e);else switch(this.insertionMode){case Gn.IN_HEAD:case Gn.IN_HEAD_NO_SCRIPT:case Gn.AFTER_HEAD:case Gn.TEXT:case Gn.IN_COLUMN_GROUP:case Gn.IN_SELECT:case Gn.IN_SELECT_IN_TABLE:case Gn.IN_FRAMESET:case Gn.AFTER_FRAMESET:this._insertCharacters(e);break;case Gn.IN_BODY:case Gn.IN_CAPTION:case Gn.IN_CELL:case Gn.IN_TEMPLATE:case Gn.AFTER_BODY:case Gn.AFTER_AFTER_BODY:case Gn.AFTER_AFTER_FRAMESET:pr(this,e);break;case Gn.IN_TABLE:case Gn.IN_TABLE_BODY:case Gn.IN_ROW:_r(this,e);break;case Gn.IN_TABLE_TEXT:Sr(this,e)}}}function Qn(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):gr(e,t),n}function Vn(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const a=e.openElements.items[r];if(a===t.element)break;e._isSpecialElement(a,e.openElements.tagIDs[r])&&(n=a)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function Kn(e,t,n){let r=t,a=e.openElements.getCommonAncestor(t);for(let o=0,i=a;i!==n;o++,i=a){a=e.openElements.getCommonAncestor(i);const n=e.activeFormattingElements.getElementEntry(i),s=n&&o>=3;!n||s?(s&&e.activeFormattingElements.removeEntry(n),e.openElements.remove(i)):(i=Xn(e,n),r===t&&(e.activeFormattingElements.bookmark=n),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(i,r),r=i)}return r}function Xn(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function $n(e,t,n){const r=jt(e.treeAdapter.getTagName(t));if(e._isElementCausesFosterParenting(r))e._fosterParentElement(n);else{const a=e.treeAdapter.getNamespaceURI(t);r===wt.TEMPLATE&&a===Rt.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function Jn(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:a}=n,o=e.treeAdapter.createElement(a.tagName,r,a.attrs);e._adoptNodes(t,o),e.treeAdapter.appendChild(t,o),e.activeFormattingElements.insertElementAfterBookmark(o,a),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,o,a.tagID)}function Zn(e,t){for(let n=0;n<8;n++){const n=Qn(e,t);if(!n)break;const r=Vn(e,n);if(!r)break;e.activeFormattingElements.bookmark=n;const a=Kn(e,r,n.element),o=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(a),o&&$n(e,o,a),Jn(e,r,n)}}function er(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function tr(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const n=e.openElements.items[0],r=e.treeAdapter.getNodeSourceCodeLocation(n);if(r&&!r.endTag&&(e._setEndLocation(n,t),e.openElements.stackTop>=1)){const n=e.openElements.items[1],r=e.treeAdapter.getNodeSourceCodeLocation(n);r&&!r.endTag&&e._setEndLocation(n,t)}}}}function nr(e,t){e._err(t,Et.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Mt.QUIRKS),e.insertionMode=Gn.BEFORE_HTML,e._processToken(t)}function rr(e,t){e._insertFakeRootElement(),e.insertionMode=Gn.BEFORE_HEAD,e._processToken(t)}function ar(e,t){e._insertFakeElement(vt.HEAD,wt.HEAD),e.headElement=e.openElements.current,e.insertionMode=Gn.IN_HEAD,e._processToken(t)}function or(e,t){switch(t.tagID){case wt.HTML:Tr(e,t);break;case wt.BASE:case wt.BASEFONT:case wt.BGSOUND:case wt.LINK:case wt.META:e._appendElement(t,Rt.HTML),t.ackSelfClosing=!0;break;case wt.TITLE:e._switchToTextParsing(t,Jt.RCDATA);break;case wt.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,Jt.RAWTEXT):(e._insertElement(t,Rt.HTML),e.insertionMode=Gn.IN_HEAD_NO_SCRIPT);break;case wt.NOFRAMES:case wt.STYLE:e._switchToTextParsing(t,Jt.RAWTEXT);break;case wt.SCRIPT:e._switchToTextParsing(t,Jt.SCRIPT_DATA);break;case wt.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=Gn.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(Gn.IN_TEMPLATE);break;case wt.HEAD:e._err(t,Et.misplacedStartTagForHeadElement);break;default:sr(e,t)}}function ir(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==wt.TEMPLATE&&e._err(t,Et.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(wt.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,Et.endTagWithoutMatchingOpenElement)}function sr(e,t){e.openElements.pop(),e.insertionMode=Gn.AFTER_HEAD,e._processToken(t)}function lr(e,t){const n=t.type===Tt.EOF?Et.openElementsLeftAfterEof:Et.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=Gn.IN_HEAD,e._processToken(t)}function cr(e,t){e._insertFakeElement(vt.BODY,wt.BODY),e.insertionMode=Gn.IN_BODY,ur(e,t)}function ur(e,t){switch(t.type){case Tt.CHARACTER:hr(e,t);break;case Tt.WHITESPACE_CHARACTER:pr(e,t);break;case Tt.COMMENT:er(e,t);break;case Tt.START_TAG:Tr(e,t);break;case Tt.END_TAG:Ar(e,t);break;case Tt.EOF:Dr(e,t)}}function pr(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function hr(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function dr(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Rt.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Er(e){const t=At(e,Ft.TYPE);return null!=t&&"hidden"===t.toLowerCase()}function mr(e,t){e._switchToTextParsing(t,Jt.RAWTEXT)}function fr(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Rt.HTML)}function Tr(e,t){switch(t.tagID){case wt.I:case wt.S:case wt.B:case wt.U:case wt.EM:case wt.TT:case wt.BIG:case wt.CODE:case wt.FONT:case wt.SMALL:case wt.STRIKE:case wt.STRONG:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Rt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case wt.A:!function(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(vt.A);n&&(Zn(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,Rt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case wt.H1:case wt.H2:case wt.H3:case wt.H4:case wt.H5:case wt.H6:!function(e,t){e.openElements.hasInButtonScope(wt.P)&&e._closePElement(),void 0!==e.openElements.currentTagId&&Kt.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,Rt.HTML)}(e,t);break;case wt.P:case wt.DL:case wt.OL:case wt.UL:case wt.DIV:case wt.DIR:case wt.NAV:case wt.MAIN:case wt.MENU:case wt.ASIDE:case wt.CENTER:case wt.FIGURE:case wt.FOOTER:case wt.HEADER:case wt.HGROUP:case wt.DIALOG:case wt.DETAILS:case wt.ADDRESS:case wt.ARTICLE:case wt.SEARCH:case wt.SECTION:case wt.SUMMARY:case wt.FIELDSET:case wt.BLOCKQUOTE:case wt.FIGCAPTION:!function(e,t){e.openElements.hasInButtonScope(wt.P)&&e._closePElement(),e._insertElement(t,Rt.HTML)}(e,t);break;case wt.LI:case wt.DD:case wt.DT:!function(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const t=e.openElements.tagIDs[r];if(n===wt.LI&&t===wt.LI||(n===wt.DD||n===wt.DT)&&(t===wt.DD||t===wt.DT)){e.openElements.generateImpliedEndTagsWithExclusion(t),e.openElements.popUntilTagNamePopped(t);break}if(t!==wt.ADDRESS&&t!==wt.DIV&&t!==wt.P&&e._isSpecialElement(e.openElements.items[r],t))break}e.openElements.hasInButtonScope(wt.P)&&e._closePElement(),e._insertElement(t,Rt.HTML)}(e,t);break;case wt.BR:case wt.IMG:case wt.WBR:case wt.AREA:case wt.EMBED:case wt.KEYGEN:dr(e,t);break;case wt.HR:!function(e,t){e.openElements.hasInButtonScope(wt.P)&&e._closePElement(),e._appendElement(t,Rt.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}(e,t);break;case wt.RB:case wt.RTC:!function(e,t){e.openElements.hasInScope(wt.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,Rt.HTML)}(e,t);break;case wt.RT:case wt.RP:!function(e,t){e.openElements.hasInScope(wt.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(wt.RTC),e._insertElement(t,Rt.HTML)}(e,t);break;case wt.PRE:case wt.LISTING:!function(e,t){e.openElements.hasInButtonScope(wt.P)&&e._closePElement(),e._insertElement(t,Rt.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}(e,t);break;case wt.XMP:!function(e,t){e.openElements.hasInButtonScope(wt.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Jt.RAWTEXT)}(e,t);break;case wt.SVG:!function(e,t){e._reconstructActiveFormattingElements(),wn(t),Un(t),t.selfClosing?e._appendElement(t,Rt.SVG):e._insertElement(t,Rt.SVG),t.ackSelfClosing=!0}(e,t);break;case wt.HTML:!function(e,t){0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}(e,t);break;case wt.BASE:case wt.LINK:case wt.META:case wt.STYLE:case wt.TITLE:case wt.SCRIPT:case wt.BGSOUND:case wt.BASEFONT:case wt.TEMPLATE:or(e,t);break;case wt.BODY:!function(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}(e,t);break;case wt.FORM:!function(e,t){const n=e.openElements.tmplCount>0;e.formElement&&!n||(e.openElements.hasInButtonScope(wt.P)&&e._closePElement(),e._insertElement(t,Rt.HTML),n||(e.formElement=e.openElements.current))}(e,t);break;case wt.NOBR:!function(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(wt.NOBR)&&(Zn(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,Rt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case wt.MATH:!function(e,t){e._reconstructActiveFormattingElements(),xn(t),Un(t),t.selfClosing?e._appendElement(t,Rt.MATHML):e._insertElement(t,Rt.MATHML),t.ackSelfClosing=!0}(e,t);break;case wt.TABLE:!function(e,t){e.treeAdapter.getDocumentMode(e.document)!==Mt.QUIRKS&&e.openElements.hasInButtonScope(wt.P)&&e._closePElement(),e._insertElement(t,Rt.HTML),e.framesetOk=!1,e.insertionMode=Gn.IN_TABLE}(e,t);break;case wt.INPUT:!function(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Rt.HTML),Er(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}(e,t);break;case wt.PARAM:case wt.TRACK:case wt.SOURCE:!function(e,t){e._appendElement(t,Rt.HTML),t.ackSelfClosing=!0}(e,t);break;case wt.IMAGE:!function(e,t){t.tagName=vt.IMG,t.tagID=wt.IMG,dr(e,t)}(e,t);break;case wt.BUTTON:!function(e,t){e.openElements.hasInScope(wt.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(wt.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,Rt.HTML),e.framesetOk=!1}(e,t);break;case wt.APPLET:case wt.OBJECT:case wt.MARQUEE:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Rt.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}(e,t);break;case wt.IFRAME:!function(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Jt.RAWTEXT)}(e,t);break;case wt.SELECT:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Rt.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===Gn.IN_TABLE||e.insertionMode===Gn.IN_CAPTION||e.insertionMode===Gn.IN_TABLE_BODY||e.insertionMode===Gn.IN_ROW||e.insertionMode===Gn.IN_CELL?Gn.IN_SELECT_IN_TABLE:Gn.IN_SELECT}(e,t);break;case wt.OPTION:case wt.OPTGROUP:!function(e,t){e.openElements.currentTagId===wt.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,Rt.HTML)}(e,t);break;case wt.NOEMBED:case wt.NOFRAMES:mr(e,t);break;case wt.FRAMESET:!function(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,Rt.HTML),e.insertionMode=Gn.IN_FRAMESET)}(e,t);break;case wt.TEXTAREA:!function(e,t){e._insertElement(t,Rt.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Jt.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=Gn.TEXT}(e,t);break;case wt.NOSCRIPT:e.options.scriptingEnabled?mr(e,t):fr(e,t);break;case wt.PLAINTEXT:!function(e,t){e.openElements.hasInButtonScope(wt.P)&&e._closePElement(),e._insertElement(t,Rt.HTML),e.tokenizer.state=Jt.PLAINTEXT}(e,t);break;case wt.COL:case wt.TH:case wt.TD:case wt.TR:case wt.HEAD:case wt.FRAME:case wt.TBODY:case wt.TFOOT:case wt.THEAD:case wt.CAPTION:case wt.COLGROUP:break;default:fr(e,t)}}function gr(e,t){const n=t.tagName,r=t.tagID;for(let a=e.openElements.stackTop;a>0;a--){const t=e.openElements.items[a],o=e.openElements.tagIDs[a];if(r===o&&(r!==wt.UNKNOWN||e.treeAdapter.getTagName(t)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=a&&e.openElements.shortenToLength(a);break}if(e._isSpecialElement(t,o))break}}function Ar(e,t){switch(t.tagID){case wt.A:case wt.B:case wt.I:case wt.S:case wt.U:case wt.EM:case wt.TT:case wt.BIG:case wt.CODE:case wt.FONT:case wt.NOBR:case wt.SMALL:case wt.STRIKE:case wt.STRONG:Zn(e,t);break;case wt.P:!function(e){e.openElements.hasInButtonScope(wt.P)||e._insertFakeElement(vt.P,wt.P),e._closePElement()}(e);break;case wt.DL:case wt.UL:case wt.OL:case wt.DIR:case wt.DIV:case wt.NAV:case wt.PRE:case wt.MAIN:case wt.MENU:case wt.ASIDE:case wt.BUTTON:case wt.CENTER:case wt.FIGURE:case wt.FOOTER:case wt.HEADER:case wt.HGROUP:case wt.DIALOG:case wt.ADDRESS:case wt.ARTICLE:case wt.DETAILS:case wt.SEARCH:case wt.SECTION:case wt.SUMMARY:case wt.LISTING:case wt.FIELDSET:case wt.BLOCKQUOTE:case wt.FIGCAPTION:!function(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}(e,t);break;case wt.LI:!function(e){e.openElements.hasInListItemScope(wt.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(wt.LI),e.openElements.popUntilTagNamePopped(wt.LI))}(e);break;case wt.DD:case wt.DT:!function(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}(e,t);break;case wt.H1:case wt.H2:case wt.H3:case wt.H4:case wt.H5:case wt.H6:!function(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}(e);break;case wt.BR:!function(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(vt.BR,wt.BR),e.openElements.pop(),e.framesetOk=!1}(e);break;case wt.BODY:!function(e,t){if(e.openElements.hasInScope(wt.BODY)&&(e.insertionMode=Gn.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}(e,t);break;case wt.HTML:!function(e,t){e.openElements.hasInScope(wt.BODY)&&(e.insertionMode=Gn.AFTER_BODY,wr(e,t))}(e,t);break;case wt.FORM:!function(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(wt.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(wt.FORM):n&&e.openElements.remove(n))}(e);break;case wt.APPLET:case wt.OBJECT:case wt.MARQUEE:!function(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}(e,t);break;case wt.TEMPLATE:ir(e,t);break;default:gr(e,t)}}function Dr(e,t){e.tmplInsertionModeStack.length>0?xr(e,t):tr(e,t)}function _r(e,t){if(void 0!==e.openElements.currentTagId&&zn.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=Gn.IN_TABLE_TEXT,t.type){case Tt.CHARACTER:br(e,t);break;case Tt.WHITESPACE_CHARACTER:Sr(e,t)}else Ir(e,t)}function Cr(e,t){switch(t.tagID){case wt.TD:case wt.TH:case wt.TR:!function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(vt.TBODY,wt.TBODY),e.insertionMode=Gn.IN_TABLE_BODY,Lr(e,t)}(e,t);break;case wt.STYLE:case wt.SCRIPT:case wt.TEMPLATE:or(e,t);break;case wt.COL:!function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(vt.COLGROUP,wt.COLGROUP),e.insertionMode=Gn.IN_COLUMN_GROUP,Or(e,t)}(e,t);break;case wt.FORM:!function(e,t){e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,Rt.HTML),e.formElement=e.openElements.current,e.openElements.pop())}(e,t);break;case wt.TABLE:!function(e,t){e.openElements.hasInTableScope(wt.TABLE)&&(e.openElements.popUntilTagNamePopped(wt.TABLE),e._resetInsertionMode(),e._processStartTag(t))}(e,t);break;case wt.TBODY:case wt.TFOOT:case wt.THEAD:!function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Rt.HTML),e.insertionMode=Gn.IN_TABLE_BODY}(e,t);break;case wt.INPUT:!function(e,t){Er(t)?e._appendElement(t,Rt.HTML):Ir(e,t),t.ackSelfClosing=!0}(e,t);break;case wt.CAPTION:!function(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,Rt.HTML),e.insertionMode=Gn.IN_CAPTION}(e,t);break;case wt.COLGROUP:!function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Rt.HTML),e.insertionMode=Gn.IN_COLUMN_GROUP}(e,t);break;default:Ir(e,t)}}function Nr(e,t){switch(t.tagID){case wt.TABLE:e.openElements.hasInTableScope(wt.TABLE)&&(e.openElements.popUntilTagNamePopped(wt.TABLE),e._resetInsertionMode());break;case wt.TEMPLATE:ir(e,t);break;case wt.BODY:case wt.CAPTION:case wt.COL:case wt.COLGROUP:case wt.HTML:case wt.TBODY:case wt.TD:case wt.TFOOT:case wt.TH:case wt.THEAD:case wt.TR:break;default:Ir(e,t)}}function Ir(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,ur(e,t),e.fosterParentingEnabled=n}function Sr(e,t){e.pendingCharacterTokens.push(t)}function br(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function kr(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)Ir(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const yr=new Set([wt.CAPTION,wt.COL,wt.COLGROUP,wt.TBODY,wt.TD,wt.TFOOT,wt.TH,wt.THEAD,wt.TR]);function Or(e,t){switch(t.tagID){case wt.HTML:Tr(e,t);break;case wt.COL:e._appendElement(t,Rt.HTML),t.ackSelfClosing=!0;break;case wt.TEMPLATE:or(e,t);break;default:Rr(e,t)}}function Rr(e,t){e.openElements.currentTagId===wt.COLGROUP&&(e.openElements.pop(),e.insertionMode=Gn.IN_TABLE,e._processToken(t))}function Lr(e,t){switch(t.tagID){case wt.TR:e.openElements.clearBackToTableBodyContext(),e._insertElement(t,Rt.HTML),e.insertionMode=Gn.IN_ROW;break;case wt.TH:case wt.TD:e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(vt.TR,wt.TR),e.insertionMode=Gn.IN_ROW,Pr(e,t);break;case wt.CAPTION:case wt.COL:case wt.COLGROUP:case wt.TBODY:case wt.TFOOT:case wt.THEAD:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Gn.IN_TABLE,Cr(e,t));break;default:Cr(e,t)}}function Fr(e,t){const n=t.tagID;switch(t.tagID){case wt.TBODY:case wt.TFOOT:case wt.THEAD:e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Gn.IN_TABLE);break;case wt.TABLE:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Gn.IN_TABLE,Nr(e,t));break;case wt.BODY:case wt.CAPTION:case wt.COL:case wt.COLGROUP:case wt.HTML:case wt.TD:case wt.TH:case wt.TR:break;default:Nr(e,t)}}function Pr(e,t){switch(t.tagID){case wt.TH:case wt.TD:e.openElements.clearBackToTableRowContext(),e._insertElement(t,Rt.HTML),e.insertionMode=Gn.IN_CELL,e.activeFormattingElements.insertMarker();break;case wt.CAPTION:case wt.COL:case wt.COLGROUP:case wt.TBODY:case wt.TFOOT:case wt.THEAD:case wt.TR:e.openElements.hasInTableScope(wt.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Gn.IN_TABLE_BODY,Lr(e,t));break;default:Cr(e,t)}}function Mr(e,t){switch(t.tagID){case wt.TR:e.openElements.hasInTableScope(wt.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Gn.IN_TABLE_BODY);break;case wt.TABLE:e.openElements.hasInTableScope(wt.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Gn.IN_TABLE_BODY,Fr(e,t));break;case wt.TBODY:case wt.TFOOT:case wt.THEAD:(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(wt.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Gn.IN_TABLE_BODY,Fr(e,t));break;case wt.BODY:case wt.CAPTION:case wt.COL:case wt.COLGROUP:case wt.HTML:case wt.TD:case wt.TH:break;default:Nr(e,t)}}function Br(e,t){switch(t.tagID){case wt.HTML:Tr(e,t);break;case wt.OPTION:e.openElements.currentTagId===wt.OPTION&&e.openElements.pop(),e._insertElement(t,Rt.HTML);break;case wt.OPTGROUP:e.openElements.currentTagId===wt.OPTION&&e.openElements.pop(),e.openElements.currentTagId===wt.OPTGROUP&&e.openElements.pop(),e._insertElement(t,Rt.HTML);break;case wt.HR:e.openElements.currentTagId===wt.OPTION&&e.openElements.pop(),e.openElements.currentTagId===wt.OPTGROUP&&e.openElements.pop(),e._appendElement(t,Rt.HTML),t.ackSelfClosing=!0;break;case wt.INPUT:case wt.KEYGEN:case wt.TEXTAREA:case wt.SELECT:e.openElements.hasInSelectScope(wt.SELECT)&&(e.openElements.popUntilTagNamePopped(wt.SELECT),e._resetInsertionMode(),t.tagID!==wt.SELECT&&e._processStartTag(t));break;case wt.SCRIPT:case wt.TEMPLATE:or(e,t)}}function vr(e,t){switch(t.tagID){case wt.OPTGROUP:e.openElements.stackTop>0&&e.openElements.currentTagId===wt.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===wt.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===wt.OPTGROUP&&e.openElements.pop();break;case wt.OPTION:e.openElements.currentTagId===wt.OPTION&&e.openElements.pop();break;case wt.SELECT:e.openElements.hasInSelectScope(wt.SELECT)&&(e.openElements.popUntilTagNamePopped(wt.SELECT),e._resetInsertionMode());break;case wt.TEMPLATE:ir(e,t)}}function xr(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(wt.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):tr(e,t)}function wr(e,t){var n;if(t.tagID===wt.HTML){if(e.fragmentContext||(e.insertionMode=Gn.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===wt.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(null===(n=e.treeAdapter.getNodeSourceCodeLocation(r))||void 0===n?void 0:n.endTag)&&e._setEndLocation(r,t)}}else Ur(e,t)}function Ur(e,t){e.insertionMode=Gn.IN_BODY,ur(e,t)}function Hr(e,t){e.insertionMode=Gn.IN_BODY,ur(e,t)}function Gr(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Rt.HTML&&void 0!==e.openElements.currentTagId&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function Yr(e,t){return jn.parse(e,t)}function qr(e,t,n){"string"==typeof e&&(n=t,t=e,e=null);const r=jn.getFragmentParser(e,n);return r.tokenizer.write(t,!0),r.getFragment()}function zr(e){return jr(e&&e.line)+":"+jr(e&&e.column)}function Wr(e){return zr(e&&e.start)+"-"+zr(e&&e.end)}function jr(e){return e&&"number"==typeof e?e:1}vt.AREA,vt.BASE,vt.BASEFONT,vt.BGSOUND,vt.BR,vt.COL,vt.EMBED,vt.FRAME,vt.HR,vt.IMG,vt.INPUT,vt.KEYGEN,vt.LINK,vt.META,vt.PARAM,vt.SOURCE,vt.TRACK,vt.WBR;class Qr extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",a={},o=!1;if(t&&(a="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!a.cause&&e&&(o=!0,r=e.message,a.cause=e),!a.ruleId&&!a.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?a.ruleId=n:(a.source=n.slice(0,e),a.ruleId=n.slice(e+1))}if(!a.place&&a.ancestors&&a.ancestors){const e=a.ancestors[a.ancestors.length-1];e&&(a.place=e.position)}const i=a.place&&"start"in a.place?a.place.start:a.place;var s;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=i?i.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=i?i.line:void 0,this.name=((s=a.place)&&"object"==typeof s?"position"in s||"type"in s?Wr(s.position):"start"in s||"end"in s?Wr(s):"line"in s||"column"in s?zr(s):"":"")||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&"string"==typeof a.cause.stack?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Qr.prototype.file="",Qr.prototype.name="",Qr.prototype.reason="",Qr.prototype.message="",Qr.prototype.stack="",Qr.prototype.column=void 0,Qr.prototype.line=void 0,Qr.prototype.ancestors=void 0,Qr.prototype.cause=void 0,Qr.prototype.fatal=void 0,Qr.prototype.place=void 0,Qr.prototype.ruleId=void 0,Qr.prototype.source=void 0;const Vr={basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');Kr(e);let n,r=0,a=-1,o=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else a<0&&(n=!0,a=o+1);return a<0?"":e.slice(r,a)}if(t===e)return"";let i=-1,s=t.length-1;for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else i<0&&(n=!0,i=o+1),s>-1&&(e.codePointAt(o)===t.codePointAt(s--)?s<0&&(a=o):(s=-1,a=i));r===a?a=i:a<0&&(a=e.length);return e.slice(r,a)},dirname:function(e){if(Kr(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){Kr(e);let t,n=e.length,r=-1,a=0,o=-1,i=0;for(;n--;){const s=e.codePointAt(n);if(47!==s)r<0&&(t=!0,r=n+1),46===s?o<0?o=n:1!==i&&(i=1):o>-1&&(i=-1);else if(t){a=n+1;break}}if(o<0||r<0||0===i||1===i&&o===r-1&&o===a+1)return"";return e.slice(o,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)Kr(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){Kr(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,r,a="",o=0,i=-1,s=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.codePointAt(l);else{if(47===n)break;n=47}if(47===n){if(i===l-1||1===s);else if(i!==l-1&&2===s){if(a.length<2||2!==o||46!==a.codePointAt(a.length-1)||46!==a.codePointAt(a.length-2))if(a.length>2){if(r=a.lastIndexOf("/"),r!==a.length-1){r<0?(a="",o=0):(a=a.slice(0,r),o=a.length-1-a.lastIndexOf("/")),i=l,s=0;continue}}else if(a.length>0){a="",o=0,i=l,s=0;continue}t&&(a=a.length>0?a+"/..":"..",o=2)}else a.length>0?a+="/"+e.slice(i+1,l):a=e.slice(i+1,l),o=l-i-1;i=l,s=0}else 46===n&&s>-1?s++:s=-1}return a}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/");return t?"/"+n:n}(t)},sep:"/"};function Kr(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Xr={cwd:function(){return"/"}};function $r(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function Jr(e){if("string"==typeof e)e=new URL(e);else if(!$r(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}const Zr=["history","path","basename","stem","extname","dirname"];class ea{constructor(e){let t;t=e?$r(e)?{path:e}:"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":Xr.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<Zr.length;){const e=Zr[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)Zr.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?Vr.basename(this.path):void 0}set basename(e){na(e,"basename"),ta(e,"basename"),this.path=Vr.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?Vr.dirname(this.path):void 0}set dirname(e){ra(this.basename,"dirname"),this.path=Vr.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?Vr.extname(this.path):void 0}set extname(e){if(ta(e,"extname"),ra(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Vr.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){$r(e)&&(e=Jr(e)),na(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?Vr.basename(this.path,this.extname):void 0}set stem(e){na(e,"stem"),ta(e,"stem"),this.path=Vr.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new Qr(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){if(void 0===this.value)return"";if("string"==typeof this.value)return this.value;return new TextDecoder(e||void 0).decode(this.value)}}function ta(e,t){if(e&&e.includes(Vr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Vr.sep+"`")}function na(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function ra(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const aa={abandonedHeadElementChild:{reason:"Unexpected metadata element after head",description:"Unexpected element after head. Expected the element before `</head>`",url:!1},abruptClosingOfEmptyComment:{reason:"Unexpected abruptly closed empty comment",description:"Unexpected `>` or `->`. Expected `--\x3e` to close comments"},abruptDoctypePublicIdentifier:{reason:"Unexpected abruptly closed public identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the public identifier"},abruptDoctypeSystemIdentifier:{reason:"Unexpected abruptly closed system identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the identifier identifier"},absenceOfDigitsInNumericCharacterReference:{reason:"Unexpected non-digit at start of numeric character reference",description:"Unexpected `%c`. Expected `[0-9]` for decimal references or `[0-9a-fA-F]` for hexadecimal references"},cdataInHtmlContent:{reason:"Unexpected CDATA section in HTML",description:"Unexpected `<![CDATA[` in HTML. Remove it, use a comment, or encode special characters instead"},characterReferenceOutsideUnicodeRange:{reason:"Unexpected too big numeric character reference",description:"Unexpectedly high character reference. Expected character references to be at most hexadecimal 10ffff (or decimal 1114111)"},closingOfElementWithOpenChildElements:{reason:"Unexpected closing tag with open child elements",description:"Unexpectedly closing tag. Expected other tags to be closed first",url:!1},controlCharacterInInputStream:{reason:"Unexpected control character",description:"Unexpected control character `%x`. Expected a non-control code point, 0x00, or ASCII whitespace"},controlCharacterReference:{reason:"Unexpected control character reference",description:"Unexpectedly control character in reference. Expected a non-control code point, 0x00, or ASCII whitespace"},disallowedContentInNoscriptInHead:{reason:"Disallowed content inside `<noscript>` in `<head>`",description:"Unexpected text character `%c`. Only use text in `<noscript>`s in `<body>`",url:!1},duplicateAttribute:{reason:"Unexpected duplicate attribute",description:"Unexpectedly double attribute. Expected attributes to occur only once"},endTagWithAttributes:{reason:"Unexpected attribute on closing tag",description:"Unexpected attribute. Expected `>` instead"},endTagWithTrailingSolidus:{reason:"Unexpected slash at end of closing tag",description:"Unexpected `%c-1`. Expected `>` instead"},endTagWithoutMatchingOpenElement:{reason:"Unexpected unopened end tag",description:"Unexpected end tag. Expected no end tag or another end tag",url:!1},eofBeforeTagName:{reason:"Unexpected end of file",description:"Unexpected end of file. Expected tag name instead"},eofInCdata:{reason:"Unexpected end of file in CDATA",description:"Unexpected end of file. Expected `]]>` to close the CDATA"},eofInComment:{reason:"Unexpected end of file in comment",description:"Unexpected end of file. Expected `--\x3e` to close the comment"},eofInDoctype:{reason:"Unexpected end of file in doctype",description:"Unexpected end of file. Expected a valid doctype (such as `<!doctype html>`)"},eofInElementThatCanContainOnlyText:{reason:"Unexpected end of file in element that can only contain text",description:"Unexpected end of file. Expected text or a closing tag",url:!1},eofInScriptHtmlCommentLikeText:{reason:"Unexpected end of file in comment inside script",description:"Unexpected end of file. Expected `--\x3e` to close the comment"},eofInTag:{reason:"Unexpected end of file in tag",description:"Unexpected end of file. Expected `>` to close the tag"},incorrectlyClosedComment:{reason:"Incorrectly closed comment",description:"Unexpected `%c-1`. Expected `--\x3e` to close the comment"},incorrectlyOpenedComment:{reason:"Incorrectly opened comment",description:"Unexpected `%c`. Expected `\x3c!--` to open the comment"},invalidCharacterSequenceAfterDoctypeName:{reason:"Invalid sequence after doctype name",description:"Unexpected sequence at `%c`. Expected `public` or `system`"},invalidFirstCharacterOfTagName:{reason:"Invalid first character in tag name",description:"Unexpected `%c`. Expected an ASCII letter instead"},misplacedDoctype:{reason:"Misplaced doctype",description:"Unexpected doctype. Expected doctype before head",url:!1},misplacedStartTagForHeadElement:{reason:"Misplaced `<head>` start tag",description:"Unexpected start tag `<head>`. Expected `<head>` directly after doctype",url:!1},missingAttributeValue:{reason:"Missing attribute value",description:"Unexpected `%c-1`. Expected an attribute value or no `%c-1` instead"},missingDoctype:{reason:"Missing doctype before other content",description:"Expected a `<!doctype html>` before anything else",url:!1},missingDoctypeName:{reason:"Missing doctype name",description:"Unexpected doctype end at `%c`. Expected `html` instead"},missingDoctypePublicIdentifier:{reason:"Missing public identifier in doctype",description:"Unexpected `%c`. Expected identifier for `public` instead"},missingDoctypeSystemIdentifier:{reason:"Missing system identifier in doctype",description:'Unexpected `%c`. Expected identifier for `system` instead (suggested: `"about:legacy-compat"`)'},missingEndTagName:{reason:"Missing name in end tag",description:"Unexpected `%c`. Expected an ASCII letter instead"},missingQuoteBeforeDoctypePublicIdentifier:{reason:"Missing quote before public identifier in doctype",description:"Unexpected `%c`. Expected `\"` or `'` instead"},missingQuoteBeforeDoctypeSystemIdentifier:{reason:"Missing quote before system identifier in doctype",description:"Unexpected `%c`. Expected `\"` or `'` instead"},missingSemicolonAfterCharacterReference:{reason:"Missing semicolon after character reference",description:"Unexpected `%c`. Expected `;` instead"},missingWhitespaceAfterDoctypePublicKeyword:{reason:"Missing whitespace after public identifier in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceAfterDoctypeSystemKeyword:{reason:"Missing whitespace after system identifier in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBeforeDoctypeName:{reason:"Missing whitespace before doctype name",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBetweenAttributes:{reason:"Missing whitespace between attributes",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:{reason:"Missing whitespace between public and system identifiers in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},nestedComment:{reason:"Unexpected nested comment",description:"Unexpected `\x3c!--`. Expected `--\x3e`"},nestedNoscriptInHead:{reason:"Unexpected nested `<noscript>` in `<head>`",description:"Unexpected `<noscript>`. Expected a closing tag or a meta element",url:!1},nonConformingDoctype:{reason:"Unexpected non-conforming doctype declaration",description:'Expected `<!doctype html>` or `<!doctype html system "about:legacy-compat">`',url:!1},nonVoidHtmlElementStartTagWithTrailingSolidus:{reason:"Unexpected trailing slash on start tag of non-void element",description:"Unexpected `/`. Expected `>` instead"},noncharacterCharacterReference:{reason:"Unexpected noncharacter code point referenced by character reference",description:"Unexpected code point. Do not use noncharacters in HTML"},noncharacterInInputStream:{reason:"Unexpected noncharacter character",description:"Unexpected code point `%x`. Do not use noncharacters in HTML"},nullCharacterReference:{reason:"Unexpected NULL character referenced by character reference",description:"Unexpected code point. Do not use NULL characters in HTML"},openElementsLeftAfterEof:{reason:"Unexpected end of file",description:"Unexpected end of file. Expected closing tag instead",url:!1},surrogateCharacterReference:{reason:"Unexpected surrogate character referenced by character reference",description:"Unexpected code point. Do not use lone surrogate characters in HTML"},surrogateInInputStream:{reason:"Unexpected surrogate character",description:"Unexpected code point `%x`. Do not use lone surrogate characters in HTML"},unexpectedCharacterAfterDoctypeSystemIdentifier:{reason:"Invalid character after system identifier in doctype",description:"Unexpected character at `%c`. Expected `>`"},unexpectedCharacterInAttributeName:{reason:"Unexpected character in attribute name",description:"Unexpected `%c`. Expected whitespace, `/`, `>`, `=`, or probably an ASCII letter"},unexpectedCharacterInUnquotedAttributeValue:{reason:"Unexpected character in unquoted attribute value",description:"Unexpected `%c`. Quote the attribute value to include it"},unexpectedEqualsSignBeforeAttributeName:{reason:"Unexpected equals sign before attribute name",description:"Unexpected `%c`. Add an attribute name before it"},unexpectedNullCharacter:{reason:"Unexpected NULL character",description:"Unexpected code point `%x`. Do not use NULL characters in HTML"},unexpectedQuestionMarkInsteadOfTagName:{reason:"Unexpected question mark instead of tag name",description:"Unexpected `%c`. Expected an ASCII letter instead"},unexpectedSolidusInTag:{reason:"Unexpected slash in tag",description:"Unexpected `%c-1`. Expected it followed by `>` or in a quoted attribute value"},unknownNamedCharacterReference:{reason:"Unexpected unknown named character reference",description:"Unexpected character reference. Expected known named character references"}},oa=/-[a-z]/g,ia=/%c(?:([-+])(\d+))?/g,sa=/%x/g,la={2:!0,1:!1,0:null},ca={};function ua(e,t){const n=t||ca,r=n.onerror,a=e instanceof ea?e:new ea(e),o=n.fragment?qr:Yr,i=String(a),s=o(i,{sourceCodeLocationInfo:!0,onParseError:n.onerror?function(e){const t=e.code,o=function(e){return e.replace(oa,pa)}(t),s=n[o],l=null==s||s,c="number"==typeof l?l:l?1:0;if(c){const n=aa[o],i=new Qr(u(n.reason),{place:{start:{line:e.startLine,column:e.startCol,offset:e.startOffset},end:{line:e.endLine,column:e.endCol,offset:e.endOffset}},ruleId:t,source:"hast-util-from-html"});a.path&&(i.file=a.path,i.name=a.path+":"+i.name),i.fatal=la[c],i.note=u(n.description),i.url=!1===n.url?void 0:"https://html.spec.whatwg.org/multipage/parsing.html#parse-error-"+t,r(i)}function u(t){return t.replace(ia,function(t,n,r){const a=(r?Number.parseInt(r,10):0)*("-"===n?-1:1);return function(e){return"`"===e?"` ` `":e}(i.charAt(e.startOffset+a))}).replace(sa,function(){return t=i.charCodeAt(e.startOffset),"0x"+t.toString(16).toUpperCase();var t})}}:null,scriptingEnabled:!1});return Ke(s,{file:a,space:n.space,verbose:n.verbose})}function pa(e){return e.charAt(1).toUpperCase()}function ha(e){const{emitParseErrors:t,...n}={...this.data("settings"),...e};this.parser=function(e,r){return ua(e,{...n,onerror:t?function(e){r.path&&(e.name=r.path+":"+e.name,e.file=r.path),r.messages.push(e)}:void 0})}}const da="object"==typeof self?self:globalThis,Ea=e=>((e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=a=>{if(e.has(a))return e.get(a);const[o,i]=t[a];switch(o){case 0:case-1:return n(i,a);case 1:{const e=n([],a);for(const t of i)e.push(r(t));return e}case 2:{const e=n({},a);for(const[t,n]of i)e[r(t)]=r(n);return e}case 3:return n(new Date(i),a);case 4:{const{source:e,flags:t}=i;return n(new RegExp(e,t),a)}case 5:{const e=n(new Map,a);for(const[t,n]of i)e.set(r(t),r(n));return e}case 6:{const e=n(new Set,a);for(const t of i)e.add(r(t));return e}case 7:{const{name:e,message:t}=i;return n(new da[e](t),a)}case 8:return n(BigInt(i),a);case"BigInt":return n(Object(BigInt(i)),a);case"ArrayBuffer":return n(new Uint8Array(i).buffer,i);case"DataView":{const{buffer:e}=new Uint8Array(i);return n(new DataView(e),i)}}return n(new da[o](i),a)};return r})(new Map,e)(0),ma="",{toString:fa}={},{keys:Ta}=Object,ga=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=fa.call(e).slice(8,-1);switch(n){case"Array":return[1,ma];case"Object":return[2,ma];case"Date":return[3,ma];case"RegExp":return[4,ma];case"Map":return[5,ma];case"Set":return[6,ma];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},Aa=([e,t])=>0===e&&("function"===t||"symbol"===t),Da=(e,{json:t,lossy:n}={})=>{const r=[];return((e,t,n,r)=>{const a=(e,t)=>{const a=r.push(e)-1;return n.set(t,a),a},o=r=>{if(n.has(r))return n.get(r);let[i,s]=ga(r);switch(i){case 0:{let t=r;switch(s){case"bigint":i=8,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);t=null;break;case"undefined":return a([-1],r)}return a([i,t],r)}case 1:{if(s){let e=r;return"DataView"===s?e=new Uint8Array(r.buffer):"ArrayBuffer"===s&&(e=new Uint8Array(r)),a([s,[...e]],r)}const e=[],t=a([i,e],r);for(const n of r)e.push(o(n));return t}case 2:{if(s)switch(s){case"BigInt":return a([s,r.toString()],r);case"Boolean":case"Number":case"String":return a([s,r.valueOf()],r)}if(t&&"toJSON"in r)return o(r.toJSON());const n=[],l=a([i,n],r);for(const t of Ta(r))!e&&Aa(ga(r[t]))||n.push([o(t),o(r[t])]);return l}case 3:return a([i,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return a([i,{source:e,flags:t}],r)}case 5:{const t=[],n=a([i,t],r);for(const[a,i]of r)(e||!Aa(ga(a))&&!Aa(ga(i)))&&t.push([o(a),o(i)]);return n}case 6:{const t=[],n=a([i,t],r);for(const a of r)!e&&Aa(ga(a))||t.push(o(a));return n}}const{message:l}=r;return a([i,{name:s,message:l}],r)};return o})(!(t||n),!!t,new Map,r)(e),r},_a="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?Ea(Da(e,t)):structuredClone(e):(e,t)=>Ea(Da(e,t));class Ca{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function Na(e,t){const n={},r={};let a=-1;for(;++a<e.length;)Object.assign(n,e[a].property),Object.assign(r,e[a].normal);return new Ca(n,r,t)}function Ia(e){return e.toLowerCase()}Ca.prototype.property={},Ca.prototype.normal={},Ca.prototype.space=null;class Sa{constructor(e,t){this.property=e,this.attribute=t}}Sa.prototype.space=null,Sa.prototype.boolean=!1,Sa.prototype.booleanish=!1,Sa.prototype.overloadedBoolean=!1,Sa.prototype.number=!1,Sa.prototype.commaSeparated=!1,Sa.prototype.spaceSeparated=!1,Sa.prototype.commaOrSpaceSeparated=!1,Sa.prototype.mustUseProperty=!1,Sa.prototype.defined=!1;let ba=0;const ka=Ma(),ya=Ma(),Oa=Ma(),Ra=Ma(),La=Ma(),Fa=Ma(),Pa=Ma();function Ma(){return 2**++ba}const Ba=Object.freeze(Object.defineProperty({__proto__:null,boolean:ka,booleanish:ya,commaOrSpaceSeparated:Pa,commaSeparated:Fa,number:Ra,overloadedBoolean:Oa,spaceSeparated:La},Symbol.toStringTag,{value:"Module"})),va=Object.keys(Ba);class xa extends Sa{constructor(e,t,n,r){let a=-1;if(super(e,t),wa(this,"space",r),"number"==typeof n)for(;++a<va.length;){const e=va[a];wa(this,va[a],(n&Ba[e])===Ba[e])}}}function wa(e,t,n){n&&(e[t]=n)}xa.prototype.defined=!0;const Ua={}.hasOwnProperty;function Ha(e){const t={},n={};let r;for(r in e.properties)if(Ua.call(e.properties,r)){const a=e.properties[r],o=new xa(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Ia(r)]=r,n[Ia(o.attribute)]=r}return new Ca(t,n,e.space)}const Ga=Ha({space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Ya=Ha({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function qa(e,t){return t in e?e[t]:t}function za(e,t){return qa(e,t.toLowerCase())}const Wa=Ha({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:za,properties:{xmlns:null,xmlnsXLink:null}}),ja=Ha({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:ya,ariaAutoComplete:null,ariaBusy:ya,ariaChecked:ya,ariaColCount:Ra,ariaColIndex:Ra,ariaColSpan:Ra,ariaControls:La,ariaCurrent:null,ariaDescribedBy:La,ariaDetails:null,ariaDisabled:ya,ariaDropEffect:La,ariaErrorMessage:null,ariaExpanded:ya,ariaFlowTo:La,ariaGrabbed:ya,ariaHasPopup:null,ariaHidden:ya,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:La,ariaLevel:Ra,ariaLive:null,ariaModal:ya,ariaMultiLine:ya,ariaMultiSelectable:ya,ariaOrientation:null,ariaOwns:La,ariaPlaceholder:null,ariaPosInSet:Ra,ariaPressed:ya,ariaReadOnly:ya,ariaRelevant:null,ariaRequired:ya,ariaRoleDescription:La,ariaRowCount:Ra,ariaRowIndex:Ra,ariaRowSpan:Ra,ariaSelected:ya,ariaSetSize:Ra,ariaSort:null,ariaValueMax:Ra,ariaValueMin:Ra,ariaValueNow:Ra,ariaValueText:null,role:null}}),Qa=Ha({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:za,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Fa,acceptCharset:La,accessKey:La,action:null,allow:null,allowFullScreen:ka,allowPaymentRequest:ka,allowUserMedia:ka,alt:null,as:null,async:ka,autoCapitalize:null,autoComplete:La,autoFocus:ka,autoPlay:ka,blocking:La,capture:null,charSet:null,checked:ka,cite:null,className:La,cols:Ra,colSpan:null,content:null,contentEditable:ya,controls:ka,controlsList:La,coords:Ra|Fa,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ka,defer:ka,dir:null,dirName:null,disabled:ka,download:Oa,draggable:ya,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ka,formTarget:null,headers:La,height:Ra,hidden:ka,high:Ra,href:null,hrefLang:null,htmlFor:La,httpEquiv:La,id:null,imageSizes:null,imageSrcSet:null,inert:ka,inputMode:null,integrity:null,is:null,isMap:ka,itemId:null,itemProp:La,itemRef:La,itemScope:ka,itemType:La,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ka,low:Ra,manifest:null,max:null,maxLength:Ra,media:null,method:null,min:null,minLength:Ra,multiple:ka,muted:ka,name:null,nonce:null,noModule:ka,noValidate:ka,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ka,optimum:Ra,pattern:null,ping:La,placeholder:null,playsInline:ka,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ka,referrerPolicy:null,rel:La,required:ka,reversed:ka,rows:Ra,rowSpan:Ra,sandbox:La,scope:null,scoped:ka,seamless:ka,selected:ka,shadowRootClonable:ka,shadowRootDelegatesFocus:ka,shadowRootMode:null,shape:null,size:Ra,sizes:null,slot:null,span:Ra,spellCheck:ya,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Ra,step:null,style:null,tabIndex:Ra,target:null,title:null,translate:null,type:null,typeMustMatch:ka,useMap:null,value:ya,width:Ra,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:La,axis:null,background:null,bgColor:null,border:Ra,borderColor:null,bottomMargin:Ra,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ka,declare:ka,event:null,face:null,frame:null,frameBorder:null,hSpace:Ra,leftMargin:Ra,link:null,longDesc:null,lowSrc:null,marginHeight:Ra,marginWidth:Ra,noResize:ka,noHref:ka,noShade:ka,noWrap:ka,object:null,profile:null,prompt:null,rev:null,rightMargin:Ra,rules:null,scheme:null,scrolling:ya,standby:null,summary:null,text:null,topMargin:Ra,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Ra,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ka,disableRemotePlayback:ka,prefix:null,property:null,results:Ra,security:null,unselectable:null}}),Va=Ha({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:qa,properties:{about:Pa,accentHeight:Ra,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Ra,amplitude:Ra,arabicForm:null,ascent:Ra,attributeName:null,attributeType:null,azimuth:Ra,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Ra,by:null,calcMode:null,capHeight:Ra,className:La,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Ra,diffuseConstant:Ra,direction:null,display:null,dur:null,divisor:Ra,dominantBaseline:null,download:ka,dx:null,dy:null,edgeMode:null,editable:null,elevation:Ra,enableBackground:null,end:null,event:null,exponent:Ra,externalResourcesRequired:null,fill:null,fillOpacity:Ra,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Fa,g2:Fa,glyphName:Fa,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Ra,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Ra,horizOriginX:Ra,horizOriginY:Ra,id:null,ideographic:Ra,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Ra,k:Ra,k1:Ra,k2:Ra,k3:Ra,k4:Ra,kernelMatrix:Pa,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Ra,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Ra,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Ra,overlineThickness:Ra,paintOrder:null,panose1:null,path:null,pathLength:Ra,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:La,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Ra,pointsAtY:Ra,pointsAtZ:Ra,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Pa,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Pa,rev:Pa,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Pa,requiredFeatures:Pa,requiredFonts:Pa,requiredFormats:Pa,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Ra,specularExponent:Ra,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Ra,strikethroughThickness:Ra,string:null,stroke:null,strokeDashArray:Pa,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Ra,strokeOpacity:Ra,strokeWidth:null,style:null,surfaceScale:Ra,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Pa,tabIndex:Ra,tableValues:null,target:null,targetX:Ra,targetY:Ra,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Pa,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Ra,underlineThickness:Ra,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Ra,values:null,vAlphabetic:Ra,vMathematical:Ra,vectorEffect:null,vHanging:Ra,vIdeographic:Ra,version:null,vertAdvY:Ra,vertOriginX:Ra,vertOriginY:Ra,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Ra,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Ka=/^data[-\w.:]+$/i,Xa=/-[a-z]/g,$a=/[A-Z]/g;function Ja(e){return"-"+e.toLowerCase()}function Za(e){return e.charAt(1).toUpperCase()}const eo=Na([Ya,Ga,Wa,ja,Qa],"html"),to=Na([Ya,Ga,Wa,ja,Va],"svg"),no={},ro={}.hasOwnProperty,ao=Y("type",{handlers:{root:function(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=io(e.children,n,t),so(e,n),n},element:function(e,t){const n=t;let r=n;"element"===e.type&&"svg"===e.tagName.toLowerCase()&&"html"===n.space&&(r=to);const a=[];let o;if(e.properties)for(o in e.properties)if("children"!==o&&ro.call(e.properties,o)){const t=oo(r,o,e.properties[o]);t&&a.push(t)}const i=r.space,s={nodeName:e.tagName,tagName:e.tagName,attrs:a,namespaceURI:je[i],childNodes:[],parentNode:null};s.childNodes=io(e.children,s,r),so(e,s),"template"===e.tagName&&e.content&&(s.content=function(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=io(e.children,n,t),so(e,n),n}(e.content,r));return s},text:function(e){const t={nodeName:"#text",value:e.value,parentNode:null};return so(e,t),t},comment:function(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return so(e,t),t},doctype:function(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return so(e,t),t}}});function oo(e,t,n){const r=function(e,t){const n=Ia(t);let r=t,a=Sa;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&Ka.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(Xa,Za);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!Xa.test(e)){let n=e.replace($a,Ja);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}a=xa}return new a(r,t)}(e,t);if(!1===n||null==n||"number"==typeof n&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?pe(n):de(n));const a={name:r.attribute,value:!0===n?"":String(n)};if(r.space&&"html"!==r.space&&"svg"!==r.space){const e=a.name.indexOf(":");e<0?a.prefix="":(a.name=a.name.slice(e+1),a.prefix=r.attribute.slice(0,e)),a.namespace=je[r.space]}return a}function io(e,t,n){let r=-1;const a=[];if(e)for(;++r<e.length;){const o=ao(e[r],n);o.parentNode=t,a.push(o)}return a}function so(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const lo=uo("end"),co=uo("start");function uo(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}const po=function(e){if(null==e)return Eo;if("function"==typeof e)return ho(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=po(e[n]);return ho(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}(e):function(e){const t=e;return ho(n);function n(n){const r=n;let a;for(a in e)if(r[a]!==t[a])return!1;return!0}}(e);if("string"==typeof e)return function(e){return ho(t);function t(t){return t&&t.type===e}}(e);throw new Error("Expected function, string, or object as test")};function ho(e){return function(t,n,r){return Boolean(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function Eo(){return!0}const mo=[],fo=!0,To=!1,go="skip";function Ao(e,t,n,r){let a;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):a=t;const o=po(a),i=r?-1:1;!function e(a,s,l){const c=a&&"object"==typeof a?a:{};if("string"==typeof c.type){const e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node ("+a.type+(e?"<"+e+">":"")+")"})}return u;function u(){let c,u,p,h=mo;if((!t||o(a,s,l[l.length-1]||void 0))&&(h=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[fo,e];return null==e?mo:[e]}(n(a,l)),h[0]===To))return h;if("children"in a&&a.children){const t=a;if(t.children&&h[0]!==go)for(u=(r?t.children.length:-1)+i,p=l.concat(t);u>-1&&u<t.children.length;){const n=t.children[u];if(c=e(n,u,p)(),c[0]===To)return c;u="number"==typeof c[1]?c[1]:u+i}}return h}}(e,void 0,[])()}function Do(e,t,n,r){let a,o,i;"function"==typeof t&&"function"!=typeof n?(o=void 0,i=t,a=n):(o=t,i=n,a=r),Ao(e,o,function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return i(e,r,n)},a)}const _o=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,Co=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),No={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Io(e,t){const n=function(e){const t="root"===e.type?e.children[0]:e;return Boolean(t&&("doctype"===t.type||"element"===t.type&&"html"===t.tagName.toLowerCase()))}(e),r=Y("type",{handlers:{root:bo,element:ko,text:yo,comment:Lo,doctype:Oo,raw:Fo},unknown:Po}),a={parser:n?new jn(No):jn.getFragmentParser(void 0,No),handle(e){r(e,a)},stitches:!1,options:t||{}};r(e,a),Mo(a,co());const o=Ke(n?a.parser.document:a.parser.getFragment(),{file:a.options.file});return a.stitches&&Do(o,"comment",function(e,t,n){const r=e;if(r.value.stitch&&n&&void 0!==t){return n.children[t]=r.value.stitch,t}}),"root"===o.type&&1===o.children.length&&o.children[0].type===e.type?o.children[0]:o}function So(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function bo(e,t){So(e.children,t)}function ko(e,t){!function(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Jt.PLAINTEXT)return;Mo(t,co(e));const r=t.parser.openElements.current;let a="namespaceURI"in r?r.namespaceURI:je.html;a===je.html&&"svg"===n&&(a=je.svg);const o=function(e,t){const n=(t||no).space;return ao(e,"svg"===n?to:eo)}({...e,children:[]},{space:a===je.svg?"svg":"html"}),i={type:Tt.START_TAG,tagName:n,tagID:jt(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in o?o.attrs:[],location:vo(e)};t.parser.currentToken=i,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}(e,t),So(e.children,t),function(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&i.includes(n))return;if(t.parser.tokenizer.state===Jt.PLAINTEXT)return;Mo(t,lo(e));const r={type:Tt.END_TAG,tagName:n,tagID:jt(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:vo(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n!==t.parser.tokenizer.lastStartTagName||t.parser.tokenizer.state!==Jt.RCDATA&&t.parser.tokenizer.state!==Jt.RAWTEXT&&t.parser.tokenizer.state!==Jt.SCRIPT_DATA||(t.parser.tokenizer.state=Jt.DATA)}(e,t)}function yo(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:Tt.CHARACTER,chars:e.value,location:vo(e)};Mo(t,co(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function Oo(e,t){const n={type:Tt.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:vo(e)};Mo(t,co(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function Ro(e,t){t.stitches=!0;const n=function(e){return _a("children"in e?{...e,children:[]}:e)}(e);if("children"in e&&"children"in n){const r=Io({type:"root",children:e.children},t.options);n.children=r.children}Lo({type:"comment",value:{stitch:n}},t)}function Lo(e,t){const n=e.value,r={type:Tt.COMMENT,data:n,location:vo(e)};Mo(t,co(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function Fo(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,Bo(t,co(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(_o,"&lt;$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),72===t.parser.tokenizer.state||78===t.parser.tokenizer.state){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const e=t.parser.tokenizer._consume();t.parser.tokenizer._callState(e)}}function Po(e,t){const n=e;if(!t.options.passThrough||!t.options.passThrough.includes(n.type)){let e="";throw Co.has(n.type)&&(e=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+e)}Ro(n,t)}function Mo(e,t){Bo(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=Jt.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function Bo(e,t){if(t&&void 0!==t.offset){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=1-t.column,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function vo(e){const t=co(e)||{line:void 0,column:void 0,offset:void 0},n=lo(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function xo(e){return function(t,n){return Io(t,{...e,file:n})}}const wo=function(e,t,n,r,a){const o=Uo(t);return!!Yo(e)&&o.call(a,e,n,r)},Uo=function(e){if(null==e)return Go;if("string"==typeof e)return function(e){return Ho(t);function t(t){return t.tagName===e}}(e);if("object"==typeof e)return function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Uo(e[n]);return Ho(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}(e);if("function"==typeof e)return Ho(e);throw new Error("Expected function, string, or array as `test`")};function Ho(e){return function(t,n,r){return Boolean(Yo(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function Go(e){return Boolean(e&&"object"==typeof e&&"type"in e&&"element"===e.type&&"tagName"in e&&"string"==typeof e.tagName)}function Yo(e){return null!==e&&"object"==typeof e&&"type"in e&&"tagName"in e}const qo=Uo(function(e){return"audio"===e.tagName||"canvas"===e.tagName||"embed"===e.tagName||"iframe"===e.tagName||"img"===e.tagName||"math"===e.tagName||"object"===e.tagName||"picture"===e.tagName||"svg"===e.tagName||"video"===e.tagName}),zo=["address","article","aside","blockquote","body","br","caption","center","col","colgroup","dd","dialog","dir","div","dl","dt","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","legend","li","li","listing","main","menu","nav","ol","optgroup","option","p","plaintext","pre","section","summary","table","tbody","td","td","tfoot","th","th","thead","tr","ul","wbr","xmp"],Wo=["button","input","select","textarea"],jo=["area","base","basefont","dialog","datalist","head","link","meta","noembed","noframes","param","rp","script","source","style","template","track","title"],Qo={},Vo=po(["comment","doctype"]);function Ko(e,t){if("children"in e){const n={...t};return("root"===e.type||Zo(e))&&(n.before=!0,n.after=!0),n.whitespace=function(e,t){if("tagName"in e&&e.properties)switch(e.tagName){case"listing":case"plaintext":case"script":case"style":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return e.properties.wrap?"pre-wrap":"pre";case"td":case"th":return e.properties.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}return t.whitespace}(e,t),function(e,t){let n=t.before;const r=t.after,a=e.children;let o=a.length,i=-1;for(;++i<o;){const e=Ko(a[i],{...t,after:Xo(a,i,r),before:n});e.remove?(a.splice(i,1),i--,o--):e.ignore||(n=e.stripAtStart),Jo(a[i])&&(n=!1)}return{ignore:!1,stripAtStart:Boolean(n||r),remove:!1}}(e,n)}if("text"===e.type){if("normal"===t.whitespace)return function(e,t){const n=t.collapse(e.value),r={ignore:!1,stripAtStart:!1,remove:!1};let a=0,o=n.length;t.before&&ti(n.charAt(0))&&a++;a!==o&&ti(n.charAt(o-1))&&(t.after?o--:r.stripAtStart=!0);a===o?r.remove=!0:e.value=n.slice(a,o);return r}(e,t);"nowrap"===t.whitespace&&(e.value=t.collapse(e.value))}return{ignore:Vo(e),stripAtStart:!1,remove:!1}}function Xo(e,t,n){for(;++t<e.length;){const n=e[t];let r=$o(n);if(void 0===r&&"children"in n&&!ei(n)&&(r=Xo(n.children,-1)),"boolean"==typeof r)return r}return n}function $o(e){if("element"===e.type){if(Jo(e))return!1;if(Zo(e))return!0}else if("text"===e.type){if(!me(e))return!1}else if(!Vo(e))return!1}function Jo(e){return qo(e)||wo(e,Wo)}function Zo(e){return wo(e,zo)}function ei(e){return Boolean("element"===e.type&&e.properties.hidden)||Vo(e)||wo(e,jo)}function ti(e){return" "===e||"\n"===e}function ni(e){const t=/\r?\n|\r/.exec(e);return t?t[0]:" "}function ri(){return" "}function ai(e){return function(t){return String(t).replace(/[\t\n\v\f\r ]+/g,e)}}function oi(e){return function(t){!function(e,t){Ko(e,{collapse:ai((t||Qo).newlines?ni:ri),whitespace:"normal"})}(t,e)}}const ii=function(e,t,n){const r=po(n);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if("number"==typeof t){if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if((t=e.children.indexOf(t))<0)throw new Error("Expected child node or index");for(;++t<e.children.length;)if(r(e.children[t],t,e))return e.children[t]},si=/\n/g,li=/[\t ]+/g,ci=Uo("br"),ui=Uo(function(e){return"td"===e.tagName||"th"===e.tagName}),pi=Uo("p"),hi=Uo("tr"),di=Uo(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",function(e){return Boolean((e.properties||{}).hidden)},function(e){return"dialog"===e.tagName&&!(e.properties||{}).open}]),Ei=Uo(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function mi(e,t){const n="children"in e?e.children:[],r=Ei(e),a=Ai(e,{whitespace:{}.whitespace||"normal"}),o=[];"text"!==e.type&&"comment"!==e.type||o.push(...Ti(e,{breakBefore:!0,breakAfter:!0}));let i=-1;for(;++i<n.length;)o.push(...fi(n[i],e,{whitespace:a,breakBefore:i?void 0:r,breakAfter:i<n.length-1?ci(n[i+1]):r}));const s=[];let l;for(i=-1;++i<o.length;){const e=o[i];"number"==typeof e?void 0!==l&&e>l&&(l=e):e&&(void 0!==l&&l>-1&&s.push("\n".repeat(l)||" "),l=-1,s.push(e))}return s.join("")}function fi(e,t,n){return"element"===e.type?function(e,t,n){const r=Ai(e,n),a=e.children||[];let o,i,s=-1,l=[];if(di(e))return l;ci(e)||hi(e)&&ii(t,e,hi)?i="\n":pi(e)?(o=2,i=2):Ei(e)&&(o=1,i=1);for(;++s<a.length;)l=l.concat(fi(a[s],e,{whitespace:r,breakBefore:s?void 0:o,breakAfter:s<a.length-1?ci(a[s+1]):i}));ui(e)&&ii(t,e,ui)&&l.push("\t");o&&l.unshift(o);i&&l.push(i);return l}(e,t,n):"text"===e.type?"normal"===n.whitespace?Ti(e,n):function(e){return[String(e.value)]}(e):[]}function Ti(e,t){const n=String(e.value),r=[],a=[];let o=0;for(;o<=n.length;){si.lastIndex=o;const e=si.exec(n),a=e&&"index"in e?e.index:n.length;r.push(gi(n.slice(o,a).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),0!==o||t.breakBefore,a!==n.length||t.breakAfter)),o=a+1}let i,s=-1;for(;++s<r.length;)8203===r[s].charCodeAt(r[s].length-1)||s<r.length-1&&8203===r[s+1].charCodeAt(0)?(a.push(r[s]),i=void 0):r[s]?("number"==typeof i&&a.push(i),a.push(r[s]),i=0):0!==s&&s!==r.length-1||a.push(0);return a}function gi(e,t,n){const r=[];let a,o=0;for(;o<e.length;){li.lastIndex=o;const n=li.exec(e);a=n?n.index:e.length,o||a||!n||t||r.push(""),o!==a&&r.push(e.slice(o,a)),o=n?a+n[0].length:a}return o===a||n||r.push(""),r.join(" ")}function Ai(e,t){if("element"===e.type){const n=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return n.wrap?"pre-wrap":"pre";case"td":case"th":return n.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}function Di(e){const t=String(e);let n=t.length;for(;n>0;){const e=t.codePointAt(n-1);if(void 0===e||10!==e&&13!==e)break;n--}return t.slice(0,n)}const _i="language-";function Ci(e,t){const n=t.children;let r,a,o=-1;if("pre"===t.tagName)for(;++o<n.length;){const e=n[o];if("element"===e.type&&"code"===e.tagName&&e.properties&&e.properties.className&&Array.isArray(e.properties.className)){r=e.properties.className;break}}if(r)for(o=-1;++o<r.length;)if(String(r[o]).slice(0,9)===_i){a=String(r[o]).slice(9);break}const i={type:"code",lang:a||null,meta:null,value:Di(mi(t))};return e.patch(t,i),i}function Ni(e,t){const n={type:"delete",children:e.all(t)};return e.patch(t,n),n}function Ii(e){let t=-1;if(e.length>1)for(;++t<e.length;)if(e[t].spread)return!0;return!1}function Si(e,t){const n=e.all({type:"root",children:t}),r=e.toSpecificContent(n,bi);return 0===r.length?[]:1===r.length?r[0].children:[{type:"list",ordered:!1,start:null,spread:Ii(r),children:r}]}function bi(){return{type:"listItem",spread:!1,checked:null,children:[]}}function ki(e,t){const n={type:"emphasis",children:e.all(t)};return e.patch(t,n),n}function yi(e){let t=0,n=e.length;for(;t<n&&"break"===e[t].type;)t++;for(;n>t&&"break"===e[n-1].type;)n--;return 0===t&&n===e.length?e:e.slice(t,n)}function Oi(e,t){const n={type:"heading",depth:Number(t.tagName.charAt(1))||1,children:yi(e.all(t))};return e.patch(t,n),n}function Ri(e,t){const n=t.properties||{},r={type:"image",url:e.resolve(String(n.src||"")||null),title:n.title?String(n.title):null,alt:n.alt?String(n.alt):""};return e.patch(t,r),r}function Li(e,t){const n={type:"inlineCode",value:mi(t)};return e.patch(t,n),n}function Fi(e,t){const n=[],r=[],a=t||e.properties||{},o=Pi(e),i=Math.min(Number.parseInt(String(a.size),10),0)||(a.multiple?4:1);let s=-1;for(;++s<o.length;){const e=o[s];e&&e.properties&&e.properties.selected&&n.push(e)}const l=n.length>0?n:o,c=Math.min(l.length,i);for(s=-1;++s<c;){const e=l[s],t=e.properties||{},n=mi(e),a=n||String(t.label||""),o=String(t.value||"")||n;r.push([o,a===o?void 0:a])}return r}function Pi(e){const t=[];let n=-1;for(;++n<e.children.length;){const r=e.children[n];"children"in r&&Array.isArray(r.children)&&t.push(...Pi(r)),"element"!==r.type||"option"!==r.tagName||r.properties&&r.properties.disabled||t.push(r)}return t}const Mi={}.hasOwnProperty;const Bi=new Set(["pingback","prefetch","stylesheet"]);const vi=Uo(["a","abbr","area","b","bdi","bdo","br","button","cite","code","data","datalist","del","dfn","em","i","input","ins","kbd","keygen","label","map","mark","meter","noscript","output","progress","q","ruby","s","samp","script","select","small","span","strong","sub","sup","template","textarea","time","u","var","wbr"]),xi=Uo("meta");function wi(e){return Boolean("text"===e.type||vi(e)||qo(e)||function(e){if("element"!==e.type||"link"!==e.tagName)return!1;if(e.properties.itemProp)return!0;const t=e.properties.rel;let n=-1;if(!Array.isArray(t)||0===t.length)return!1;for(;++n<t.length;)if(!Bi.has(String(t[n])))return!1;return!0}(e)||xi(e)&&function(e,t){const n="element"===e.type&&Mi.call(e.properties,t)&&e.properties[t];return null!=n&&!1!==n}(e,"itemProp"))}function Ui(e,t){const{rest:n,checkbox:r}=Gi(t),a=r?Boolean(r.properties.checked):null,o={type:"listItem",spread:Hi(n),checked:a,children:e.toFlow(e.all(n))};return e.patch(t,o),o}function Hi(e){let t=-1,n=!1;for(;++t<e.children.length;){const r=e.children[t];if("element"===r.type){if(wi(r))continue;if("p"===r.tagName||n||Hi(r))return!0;n=!0}}return!1}function Gi(e){const t=e.children[0];if(t&&"element"===t.type&&"input"===t.tagName&&t.properties&&("checkbox"===t.properties.type||"radio"===t.properties.type)){return{checkbox:t,rest:{...e,children:e.children.slice(1)}}}if(t&&"element"===t.type&&"p"===t.tagName){const{checkbox:n,rest:r}=Gi(t);if(n){return{checkbox:n,rest:{...e,children:[r,...e.children.slice(1)]}}}}return{checkbox:void 0,rest:e}}function Yi(e,t){const n="ol"===t.tagName,r=e.toSpecificContent(e.all(t),qi);let a=null;n&&(a=t.properties&&t.properties.start?Number.parseInt(String(t.properties.start),10):1);const o={type:"list",ordered:n,start:a,spread:Ii(r),children:r};return e.patch(t,o),o}function qi(){return{type:"listItem",spread:!1,checked:null,children:[]}}const zi={};function Wi(e,t){return ji(e,"boolean"!=typeof zi.includeImageAlt||zi.includeImageAlt,"boolean"!=typeof zi.includeHtml||zi.includeHtml)}function ji(e,t,n){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Qi(e.children,t,n)}return Array.isArray(e)?Qi(e,t,n):""}function Qi(e,t,n){const r=[];let a=-1;for(;++a<e.length;)r[a]=ji(e[a],t,n);return r.join("")}const Vi=po(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Ki(e){let t=-1;for(;++t<e.length;){const n=e[t];if(!Zi(n)||"children"in n&&Ki(n.children))return!0}return!1}function Xi(e){return Ji(e,function(e){return e.every(function(e){return"text"===e.type&&me(e.value)})?[]:[{type:"paragraph",children:yi(e)}]},function(e){return e})}function $i(e){return Ji(e.children,function(t){const n=es(e);return n.children=t,[n]},function(t){if("children"in t&&"children"in e){const n=es(e),r=es(t);return n.children=t.children,r.children.push(n),r}return{...t}})}function Ji(e,t,n){const r=function(e){const t=[];let n=-1;for(;++n<e.length;){const r=e[n];"delete"!==r.type&&"link"!==r.type||!Ki(r.children)?t.push(r):t.push(...$i(r))}return t}(e),a=[];let o=[],i=-1;for(;++i<r.length;){const e=r[i];Zi(e)?o.push(e):(o.length>0&&(a.push(...t(o)),o=[]),a.push(n(e)))}return o.length>0&&(a.push(...t(o)),o=[]),a}function Zi(e){const t=e.data&&e.data.hName;return t?wi({type:"element",tagName:t,properties:{},children:[]}):Vi(e)}function es(e){return _a({...e,children:[]})}function ts(e,t){const n=t.properties||{},r="video"===t.tagName?String(n.poster||""):"";let a=String(n.src||""),o=-1,i=!1,s=e.all(t);if(Do({type:"root",children:s},function(e){if("link"===e.type)return i=!0,To}),i||Ki(s))return s;for(;!a&&++o<t.children.length;){const e=t.children[o];"element"===e.type&&"source"===e.tagName&&e.properties&&(a=String(e.properties.src||""))}if(r){const n={type:"image",title:null,url:e.resolve(r),alt:Wi(s)};e.patch(t,n),s=[n]}const l=s,c={type:"link",title:n.title?String(n.title):null,url:e.resolve(a),children:l};return e.patch(t,c),c}function ns(e,t){const n=yi(e.all(t));if(n.length>0){const r={type:"paragraph",children:n};return e.patch(t,r),r}}const rs=['"'];function as(e,t){const n={type:"strong",children:e.all(t)};return e.patch(t,n),n}function os(e,t){const n={type:"tableCell",children:e.all(t)};if(e.patch(t,n),t.properties){const e=t.properties.rowSpan,r=t.properties.colSpan;if(e||r){const t=n.data||(n.data={});e&&(t.hastUtilToMdastTemporaryRowSpan=e),r&&(t.hastUtilToMdastTemporaryColSpan=r)}}return n}function is(){return{type:"tableCell",children:[]}}function ss(){return{type:"tableCell",children:[]}}function ls(){return{type:"tableRow",children:[]}}const cs={comment:function(e,t){const n={type:"html",value:"\x3c!--"+t.value+"--\x3e"};return e.patch(t,n),n},doctype:ds,root:function(e,t){let n=e.all(t);(e.options.document||Ki(n))&&(n=Xi(n));const r={type:"root",children:n};return e.patch(t,r),r},text:function(e,t){const n={type:"text",value:t.value};return e.patch(t,n),n}},us={applet:ds,area:ds,basefont:ds,bgsound:ds,caption:ds,col:ds,colgroup:ds,command:ds,content:ds,datalist:ds,dialog:ds,element:ds,embed:ds,frame:ds,frameset:ds,isindex:ds,keygen:ds,link:ds,math:ds,menu:ds,menuitem:ds,meta:ds,nextid:ds,noembed:ds,noframes:ds,optgroup:ds,option:ds,param:ds,script:ds,shadow:ds,source:ds,spacer:ds,style:ds,svg:ds,template:ds,title:ds,track:ds,abbr:ps,acronym:ps,bdi:ps,bdo:ps,big:ps,blink:ps,button:ps,canvas:ps,cite:ps,data:ps,details:ps,dfn:ps,font:ps,ins:ps,label:ps,map:ps,marquee:ps,meter:ps,nobr:ps,noscript:ps,object:ps,output:ps,progress:ps,rb:ps,rbc:ps,rp:ps,rt:ps,rtc:ps,ruby:ps,slot:ps,small:ps,span:ps,sup:ps,sub:ps,tbody:ps,tfoot:ps,thead:ps,time:ps,address:hs,article:hs,aside:hs,body:hs,center:hs,div:hs,fieldset:hs,figcaption:hs,figure:hs,form:hs,footer:hs,header:hs,hgroup:hs,html:hs,legend:hs,main:hs,multicol:hs,nav:hs,picture:hs,section:hs,a:function(e,t){const n=t.properties||{},r=e.all(t),a={type:"link",url:e.resolve(String(n.href||"")||null),title:n.title?String(n.title):null,children:r};return e.patch(t,a),a},audio:ts,b:as,base:function(e,t){e.baseFound||(e.frozenBaseUrl=String(t.properties&&t.properties.href||"")||void 0,e.baseFound=!0)},blockquote:function(e,t){const n={type:"blockquote",children:e.toFlow(e.all(t))};return e.patch(t,n),n},br:function(e,t){const n={type:"break"};return e.patch(t,n),n},code:Li,dir:Yi,dl:function(e,t){const n=[],r=[];let a=-1;for(;++a<t.children.length;){const e=t.children[a];"element"===e.type&&"div"===e.tagName?n.push(...e.children):n.push(e)}let o={definitions:[],titles:[]};for(a=-1;++a<n.length;){const e=n[a];if("element"===e.type&&"dt"===e.tagName){const t=n[a-1];t&&"element"===t.type&&"dd"===t.tagName&&(r.push(o),o={definitions:[],titles:[]}),o.titles.push(e)}else o.definitions.push(e)}r.push(o),a=-1;const i=[];for(;++a<r.length;){const t=[...Si(e,r[a].titles),...Si(e,r[a].definitions)];t.length>0&&i.push({type:"listItem",spread:t.length>1,checked:null,children:t})}if(i.length>0){const n={type:"list",ordered:!1,start:null,spread:Ii(i),children:i};return e.patch(t,n),n}},dt:Ui,dd:Ui,del:Ni,em:ki,h1:Oi,h2:Oi,h3:Oi,h4:Oi,h5:Oi,h6:Oi,hr:function(e,t){const n={type:"thematicBreak"};return e.patch(t,n),n},i:ki,iframe:function(e,t){const n=t.properties||{},r=String(n.src||""),a=String(n.title||"");if(r&&a){const n={type:"link",title:null,url:e.resolve(r),children:[{type:"text",value:a}]};return e.patch(t,n),n}},img:Ri,image:Ri,input:function(e,t){const n=t.properties||{},r=String(n.value||n.placeholder||"");if(n.disabled||"hidden"===n.type||"file"===n.type)return;if("checkbox"===n.type||"radio"===n.type){const r={type:"text",value:n.checked?e.options.checked||"[x]":e.options.unchecked||"[ ]"};return e.patch(t,r),r}if("image"===n.type){const a=n.alt||r;if(a){const r={type:"image",url:e.resolve(String(n.src||"")||null),title:String(n.title||"")||null,alt:String(a)};return e.patch(t,r),r}return}let a=[];if(r)a=[[r,void 0]];else if("button"!==n.type&&"file"!==n.type&&"password"!==n.type&&"reset"!==n.type&&"submit"!==n.type&&n.list){const t=String(n.list),r=e.elementById.get(t);r&&"datalist"===r.tagName&&(a=Fi(r,n))}if(0===a.length)return;if("password"===n.type&&(a[0]=["•".repeat(a[0][0].length),void 0]),"email"===n.type||"url"===n.type){const t=[];let r=-1;for(;++r<a.length;){const o=e.resolve(a[r][0]),i={type:"link",title:null,url:"email"===n.type?"mailto:"+o:o,children:[{type:"text",value:a[r][1]||o}]};t.push(i),r!==a.length-1&&t.push({type:"text",value:", "})}return t}const o=[];let i=-1;for(;++i<a.length;)o.push(a[i][1]?a[i][1]+" ("+a[i][0]+")":a[i][0]);const s={type:"text",value:o.join(", ")};return e.patch(t,s),s},kbd:Li,li:Ui,listing:Ci,mark:ki,ol:Yi,p:ns,plaintext:Ci,pre:Ci,q:function(e,t){const n=e.options.quotes||rs;e.qNesting++;const r=e.all(t);e.qNesting--;const a=n[e.qNesting%n.length],o=r[0],i=r[r.length-1],s=a.charAt(0),l=a.length>1?a.charAt(1):a;return o&&"text"===o.type?o.value=s+o.value:r.unshift({type:"text",value:s}),i&&"text"===i.type?i.value+=l:r.push({type:"text",value:l}),r},s:Ni,samp:Li,select:function(e,t){const n=Fi(t);let r=-1;const a=[];for(;++r<n.length;){const e=n[r];a.push(e[1]?e[1]+" ("+e[0]+")":e[0])}if(a.length>0){const n={type:"text",value:a.join(", ")};return e.patch(t,n),n}},strike:Ni,strong:as,summary:ns,table:function(e,t){if(e.inTable){const n={type:"text",value:mi(t)};return e.patch(t,n),n}e.inTable=!0;const{align:n,headless:r}=function(e){const t={align:[null],headless:!0};let n=0,r=0;return Do(e,function(a){if("element"===a.type){if("table"===a.tagName&&e!==a)return go;if("th"!==a.tagName&&"td"!==a.tagName||!a.properties)"thead"===a.tagName?t.headless=!1:"tr"===a.tagName&&(n++,r=0);else{if(!t.align[r]){const e=String(a.properties.align||"")||null;"center"!==e&&"left"!==e&&"right"!==e&&null!==e||(t.align[r]=e)}t.headless&&n<2&&"th"===a.tagName&&(t.headless=!1),r++}}}),t}(t),a=e.toSpecificContent(e.all(t),ls);r&&a.unshift({type:"tableRow",children:[]});let o=-1;for(;++o<a.length;){const t=a[o],n=e.toSpecificContent(t.children,ss);t.children=n}let i=1;for(o=-1;++o<a.length;){const e=a[o].children;let t=-1;for(;++t<e.length;){const n=e[t];if(n.data){const e=n.data,r=Number.parseInt(String(e.hastUtilToMdastTemporaryColSpan),10)||1,i=Number.parseInt(String(e.hastUtilToMdastTemporaryRowSpan),10)||1;if(r>1||i>1){let e=o-1;for(;++e<o+i;){let n=t-1;for(;++n<t+r&&a[e];){const r=[];e===o&&n===t||r.push({type:"tableCell",children:[]}),a[e].children.splice(n,0,...r)}}}"hastUtilToMdastTemporaryColSpan"in n.data&&delete n.data.hastUtilToMdastTemporaryColSpan,"hastUtilToMdastTemporaryRowSpan"in n.data&&delete n.data.hastUtilToMdastTemporaryRowSpan,0===Object.keys(n.data).length&&delete n.data}}e.length>i&&(i=e.length)}for(o=-1;++o<a.length;){const e=a[o].children;let t=e.length-1;for(;++t<i;)e.push({type:"tableCell",children:[]})}let s=n.length-1;for(;++s<i;)n.push(null);e.inTable=!1;const l={type:"table",align:n,children:a};return e.patch(t,l),l},td:os,textarea:function(e,t){const n={type:"text",value:mi(t)};return e.patch(t,n),n},th:os,tr:function(e,t){const n={type:"tableRow",children:e.toSpecificContent(e.all(t),is)};return e.patch(t,n),n},tt:Li,u:ki,ul:Yi,var:Li,video:ts,wbr:function(e,t){const n={type:"text",value:"​"};return e.patch(t,n),n},xmp:Ci};function ps(e,t){return e.all(t)}function hs(e,t){return e.toFlow(e.all(t))}function ds(){}const Es={}.hasOwnProperty;function ms(e){const t=e.children||[],n=[];let r=-1;for(;++r<t.length;){const a=t[r],o=this.one(a,e);Array.isArray(o)?n.push(...o):o&&n.push(o)}return n}function fs(e,t){if("element"===e.type){if(e.properties&&"ignore"===e.properties.dataMdast)return;if(Es.call(this.handlers,e.tagName))return this.handlers[e.tagName](this,e,t)||void 0}else if(Es.call(this.nodeHandlers,e.type))return this.nodeHandlers[e.type](this,e,t)||void 0;if("value"in e&&"string"==typeof e.value){const t={type:"text",value:e.value};return this.patch(e,t),t}if("children"in e)return this.all(e)}function Ts(e,t){e.position&&(t.position=function(e){const t=co(e),n=lo(e);if(t&&n)return{start:t,end:n}}(e))}function gs(e){const t=this.frozenBaseUrl;return null==e?"":t?String(new URL(e,t)):e}function As(e){return Xi(e)}function Ds(e,t){const n=t(),r=[];let a=[],o=-1;for(;++o<e.length;){const t=e[o];if(i(t))a.length>0&&(t.children.unshift(...a),a=[]),r.push(t);else{const e=t;a.push(e)}}if(a.length>0){let e=r[r.length-1];e||(e=t(),r.push(e)),e.children.push(...a),a=[]}return r;function i(e){return e.type===n.type}}const _s={};function Cs(e,t){const n=_a(e),r=t||_s,a=oi({newlines:!0===r.newlines}),o=function(e){return{all:ms,baseFound:!1,elementById:new Map,frozenBaseUrl:void 0,handlers:{...us,...e.handlers},inTable:!1,nodeHandlers:{...cs,...e.nodeHandlers},one:fs,options:e,patch:Ts,qNesting:0,resolve:gs,toFlow:As,toSpecificContent:Ds}}(r);let i;a(n),Do(n,function(e){if(e&&"element"===e.type&&e.properties){const t=String(e.properties.id||"")||void 0;t&&!o.elementById.has(t)&&o.elementById.set(t,e)}});const s=o.one(n,void 0);if(s)if(Array.isArray(s)){i={type:"root",children:s}}else i=s;else i={type:"root",children:[]};return Do(i,function(e,t,n){if("text"===e.type&&void 0!==t&&n){const r=n.children[t-1];if(r&&r.type===e.type)return r.value+=e.value,n.children.splice(t,1),r.position&&e.position&&(r.position.end=e.position.end),t-1;if(e.value=e.value.replace(/[\t ]*(\r?\n|\r)[\t ]*/,"$1"),!n||"heading"!==n.type&&"paragraph"!==n.type&&"root"!==n.type||(t||(e.value=e.value.replace(/^[\t ]+/,"")),t===n.children.length-1&&(e.value=e.value.replace(/[\t ]+$/,""))),!e.value)return n.children.splice(t,1),t}}),i}const Ns={document:!0};function Is(e,t){return e&&"run"in e?async function(n,r){const a=Cs(n,{...Ns,...t});await e.run(a,r)}:function(t){return Cs(t,{...Ns,...e})}}function Ss(e){return"text"===e.type?e.value:"children"in e?bs(e):""}function bs(e){let t=-1;const n=[];for(;++t<e.children.length;)n[t]=Ss(e.children[t]);return n.join("")}const ks={},ys=new o;function Os(e){const t=(e||ks).prefix||"";return function(e){ys.reset(),Do(e,"element",function(e){(function(e){const t="element"===e.type?e.tagName.toLowerCase():"",n=2===t.length&&104===t.charCodeAt(0)?t.charCodeAt(1):0;return n>48&&n<55?n-48:void 0})(e)&&!e.properties.id&&(e.properties.id=t+ys.slug(function(e){return"children"in e?bs(e):"value"in e?e.value:""}(e)))})}}const Rs=xs(/[A-Za-z]/),Ls=xs(/[\dA-Za-z]/);function Fs(e){return null!==e&&e<-2}function Ps(e){return null!==e&&(e<0||32===e)}function Ms(e){return-2===e||-1===e||32===e}const Bs=xs(new RegExp("\\p{P}|\\p{S}","u")),vs=xs(/\s/);function xs(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function ws(e,t,n){const r=po((n||{}).ignore||[]),a=function(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const e=n[r];t.push([Us(e[0]),Hs(e[1])])}return t}(t);let o=-1;for(;++o<a.length;)Ao(e,"text",i);function i(e,t){let n,i=-1;for(;++i<t.length;){const e=t[i],a=n?n.children:void 0;if(r(e,a?a.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){const n=t[t.length-1],r=a[o][0],i=a[o][1];let s=0;const l=n.children.indexOf(e);let c=!1,u=[];r.lastIndex=0;let p=r.exec(e.value);for(;p;){const n=p.index,a={index:p.index,input:p.input,stack:[...t,e]};let o=i(...p,a);if("string"==typeof o&&(o=o.length>0?{type:"text",value:o}:void 0),!1===o?r.lastIndex=n+1:(s!==n&&u.push({type:"text",value:e.value.slice(s,n)}),Array.isArray(o)?u.push(...o):o&&u.push(o),s=n+p[0].length,c=!0),!r.global)break;p=r.exec(e.value)}c?(s<e.value.length&&u.push({type:"text",value:e.value.slice(s)}),n.children.splice(l,1,...u)):u=[e];return l+u.length}(e,t)}}function Us(e){return"string"==typeof e?new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e),"g"):e}function Hs(e){return"function"==typeof e?e:function(){return e}}const Gs="phrasing",Ys=["autolink","link","image","label"];function qs(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function zs(e){this.config.enter.autolinkProtocol.call(this,e)}function Ws(e){this.config.exit.autolinkProtocol.call(this,e)}function js(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function Qs(e){this.config.exit.autolinkEmail.call(this,e)}function Vs(e){this.exit(e)}function Ks(e){ws(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Xs],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),$s]],{ignore:["link","linkReference"]})}function Xs(e,t,n,r,a){let o="";if(!Js(a))return!1;if(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!function(e){const t=e.split(".");if(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))return!1;return!0}(n))return!1;const i=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const a=ce(e,"(");let o=ce(e,")");for(;-1!==r&&a>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}(n+r);if(!i[0])return!1;const s={type:"link",title:null,url:o+t+i[0],children:[{type:"text",value:t+i[0]}]};return i[1]?[s,{type:"text",value:i[1]}]:s}function $s(e,t,n,r){return!(!Js(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Js(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||vs(n)||Bs(n))&&(!t||47!==n)}function Zs(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}function el(){this.buffer()}function tl(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function nl(){this.buffer()}function rl(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function al(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Zs(this.sliceSerialize(e)).toLowerCase(),n.label=t}function ol(e){this.exit(e)}function il(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Zs(this.sliceSerialize(e)).toLowerCase(),n.label=t}function sl(e){this.exit(e)}function ll(e,t,n,r){const a=n.createTracker(r);let o=a.move("[^");const i=n.enter("footnoteReference"),s=n.enter("reference");return o+=a.move(n.safe(n.associationId(e),{after:"]",before:o})),s(),i(),o+=a.move("]"),o}function cl(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:function(e,n,r,a){const o=r.createTracker(a);let i=o.move("[^");const s=r.enter("footnoteDefinition"),l=r.enter("label");i+=o.move(r.safe(r.associationId(e),{before:i,after:"]"})),l(),i+=o.move("]:"),e.children&&e.children.length>0&&(o.shift(4),i+=o.move((t?"\n":" ")+r.indentLines(r.containerFlow(e,o.current()),t?pl:ul)));return s(),i},footnoteReference:ll},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}}function ul(e,t,n){return 0===t?e:pl(e,t,n)}function pl(e,t,n){return(n?"":" ")+e}ll.peek=function(){return"["};const hl=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function dl(e){this.enter({type:"delete",children:[]},e)}function El(e){this.exit(e)}function ml(e,t,n,r){const a=n.createTracker(r),o=n.enter("strikethrough");let i=a.move("~~");return i+=n.containerPhrasing(e,{...a.current(),before:i,after:"~"}),i+=a.move("~~"),o(),i}function fl(e){return e.length}function Tl(e){return null==e?"":String(e)}function gl(e){const t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}ml.peek=function(){return"~"};const Al={}.hasOwnProperty;function Dl(e,t){let n,r=-1;if(t.extensions)for(;++r<t.extensions.length;)Dl(e,t.extensions[r]);for(n in t)if(Al.call(t,n))switch(n){case"extensions":break;case"unsafe":case"join":_l(e[n],t[n]);break;case"handlers":Cl(e[n],t[n]);break;default:e.options[n]=t[n]}return e}function _l(e,t){t&&e.push(...t)}function Cl(e,t){t&&Object.assign(e,t)}function Nl(e,t,n){return">"+(n?"":" ")+e}function Il(e,t){return Sl(e,t.inConstruct,!0)&&!Sl(e,t.notInConstruct,!1)}function Sl(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function bl(e,t,n,r){let a=-1;for(;++a<n.unsafe.length;)if("\n"===n.unsafe[a].character&&Il(n.stack,n.unsafe[a]))return/[ \t]/.test(r.before)?"":" ";return"\\\n"}function kl(e,t){return Boolean(!1===t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function yl(e,t,n){return(n?"":" ")+e}function Ol(e){const t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function Rl(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Ll(e){return null===e||Ps(e)||vs(e)?1:Bs(e)?2:void 0}function Fl(e,t,n){const r=Ll(e),a=Ll(t);return void 0===r?void 0===a?"_"===n?{inside:!0,outside:!0}:{inside:!1,outside:!1}:1===a?{inside:!0,outside:!0}:{inside:!1,outside:!0}:1===r?void 0===a?{inside:!1,outside:!1}:1===a?{inside:!0,outside:!0}:{inside:!1,outside:!1}:void 0===a?{inside:!1,outside:!1}:1===a?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function Pl(e,t,n,r){const a=function(e){const t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(n),o=n.enter("emphasis"),i=n.createTracker(r),s=i.move(a);let l=i.move(n.containerPhrasing(e,{after:a,before:s,...i.current()}));const c=l.charCodeAt(0),u=Fl(r.before.charCodeAt(r.before.length-1),c,a);u.inside&&(l=Rl(c)+l.slice(1));const p=l.charCodeAt(l.length-1),h=Fl(r.after.charCodeAt(0),p,a);h.inside&&(l=l.slice(0,-1)+Rl(p));const d=i.move(a);return o(),n.attentionEncodeSurroundingInfo={after:h.outside,before:u.outside},s+l+d}function Ml(e,t){let n=!1;return Do(e,function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return n=!0,To}),Boolean((!e.depth||e.depth<3)&&Wi(e)&&(t.options.setext||n))}function Bl(e){return e.value||""}function vl(e,t,n,r){const a=Ol(n),o='"'===a?"Quote":"Apostrophe",i=n.enter("image");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("![");return c+=l.move(n.safe(e.alt,{before:c,after:"]",...l.current()})),c+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),c+=l.move(" "+a),c+=l.move(n.safe(e.title,{before:c,after:a,...l.current()})),c+=l.move(a),s()),c+=l.move(")"),i(),c}function xl(e,t,n,r){const a=e.referenceType,o=n.enter("imageReference");let i=n.enter("label");const s=n.createTracker(r);let l=s.move("![");const c=n.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),i();const u=n.stack;n.stack=[],i=n.enter("reference");const p=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return i(),n.stack=u,o(),"full"!==a&&c&&c===p?"shortcut"===a?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(p+"]"),l}function wl(e,t,n){let r=e.value||"",a="`",o=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(r);)a+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const e=n.unsafe[o],t=n.compilePattern(e);let a;if(e.atBreak)for(;a=t.exec(r);){let e=a.index;10===r.charCodeAt(e)&&13===r.charCodeAt(e-1)&&e--,r=r.slice(0,e)+" "+r.slice(a.index+1)}}return a+r+a}function Ul(e,t){const n=Wi(e);return Boolean(!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}function Hl(e,t,n,r){const a=Ol(n),o='"'===a?"Quote":"Apostrophe",i=n.createTracker(r);let s,l;if(Ul(e,n)){const t=n.stack;n.stack=[],s=n.enter("autolink");let r=i.move("<");return r+=i.move(n.containerPhrasing(e,{before:r,after:">",...i.current()})),r+=i.move(">"),s(),n.stack=t,r}s=n.enter("link"),l=n.enter("label");let c=i.move("[");return c+=i.move(n.containerPhrasing(e,{before:c,after:"](",...i.current()})),c+=i.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=i.move("<"),c+=i.move(n.safe(e.url,{before:c,after:">",...i.current()})),c+=i.move(">")):(l=n.enter("destinationRaw"),c+=i.move(n.safe(e.url,{before:c,after:e.title?" ":")",...i.current()}))),l(),e.title&&(l=n.enter(`title${o}`),c+=i.move(" "+a),c+=i.move(n.safe(e.title,{before:c,after:a,...i.current()})),c+=i.move(a),l()),c+=i.move(")"),s(),c}function Gl(e,t,n,r){const a=e.referenceType,o=n.enter("linkReference");let i=n.enter("label");const s=n.createTracker(r);let l=s.move("[");const c=n.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),i();const u=n.stack;n.stack=[],i=n.enter("reference");const p=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return i(),n.stack=u,o(),"full"!==a&&c&&c===p?"shortcut"===a?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(p+"]"),l}function Yl(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function ql(e){const t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function zl(e,t,n,r){const a=function(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(n),o=n.enter("strong"),i=n.createTracker(r),s=i.move(a+a);let l=i.move(n.containerPhrasing(e,{after:a,before:s,...i.current()}));const c=l.charCodeAt(0),u=Fl(r.before.charCodeAt(r.before.length-1),c,a);u.inside&&(l=Rl(c)+l.slice(1));const p=l.charCodeAt(l.length-1),h=Fl(r.after.charCodeAt(0),p,a);h.inside&&(l=l.slice(0,-1)+Rl(p));const d=i.move(a+a);return o(),n.attentionEncodeSurroundingInfo={after:h.outside,before:u.outside},s+l+d}Pl.peek=function(e,t,n){return n.options.emphasis||"*"},Bl.peek=function(){return"<"},vl.peek=function(){return"!"},xl.peek=function(){return"!"},wl.peek=function(){return"`"},Hl.peek=function(e,t,n){return Ul(e,n)?"<":"["},Gl.peek=function(){return"["},zl.peek=function(e,t,n){return n.options.strong||"*"};const Wl={blockquote:function(e,t,n,r){const a=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);const i=n.indentLines(n.containerFlow(e,o.current()),Nl);return a(),i},break:bl,code:function(e,t,n,r){const a=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(n),o=e.value||"",i="`"===a?"GraveAccent":"Tilde";if(kl(e,n)){const e=n.enter("codeIndented"),t=n.indentLines(o,yl);return e(),t}const s=n.createTracker(r),l=a.repeat(Math.max(function(e,t){const n=String(e);let r=n.indexOf(t),a=r,o=0,i=0;if("string"!=typeof t)throw new TypeError("Expected substring");for(;-1!==r;)r===a?++o>i&&(i=o):o=1,a=r+t.length,r=n.indexOf(t,a);return i}(o,a)+1,3)),c=n.enter("codeFenced");let u=s.move(l);if(e.lang){const t=n.enter(`codeFencedLang${i}`);u+=s.move(n.safe(e.lang,{before:u,after:" ",encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){const t=n.enter(`codeFencedMeta${i}`);u+=s.move(" "),u+=s.move(n.safe(e.meta,{before:u,after:"\n",encode:["`"],...s.current()})),t()}return u+=s.move("\n"),o&&(u+=s.move(o+"\n")),u+=s.move(l),c(),u},definition:function(e,t,n,r){const a=Ol(n),o='"'===a?"Quote":"Apostrophe",i=n.enter("definition");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("[");return c+=l.move(n.safe(n.associationId(e),{before:c,after:"]",...l.current()})),c+=l.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":"\n",...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),c+=l.move(" "+a),c+=l.move(n.safe(e.title,{before:c,after:a,...l.current()})),c+=l.move(a),s()),i(),c},emphasis:Pl,hardBreak:bl,heading:function(e,t,n,r){const a=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(Ml(e,n)){const t=n.enter("headingSetext"),r=n.enter("phrasing"),i=n.containerPhrasing(e,{...o.current(),before:"\n",after:"\n"});return r(),t(),i+"\n"+(1===a?"=":"-").repeat(i.length-(Math.max(i.lastIndexOf("\r"),i.lastIndexOf("\n"))+1))}const i="#".repeat(a),s=n.enter("headingAtx"),l=n.enter("phrasing");o.move(i+" ");let c=n.containerPhrasing(e,{before:"# ",after:"\n",...o.current()});return/^[\t ]/.test(c)&&(c=Rl(c.charCodeAt(0))+c.slice(1)),c=c?i+" "+c:i,n.options.closeAtx&&(c+=" "+i),l(),s(),c},html:Bl,image:vl,imageReference:xl,inlineCode:wl,link:Hl,linkReference:Gl,list:function(e,t,n,r){const a=n.enter("list"),o=n.bulletCurrent;let i=e.ordered?function(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(n):Yl(n);const s=e.ordered?"."===i?")":".":function(e){const t=Yl(e),n=e.options.bulletOther;if(!n)return"*"===t?"-":"*";if("*"!==n&&"+"!==n&&"-"!==n)throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}(n);let l=!(!t||!n.bulletLastUsed)&&i===n.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==i&&"-"!==i||!t||t.children&&t.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(l=!0),ql(n)===i&&t){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if(n&&"listItem"===n.type&&n.children&&n.children[0]&&"thematicBreak"===n.children[0].type){l=!0;break}}}}l&&(i=s),n.bulletCurrent=i;const c=n.containerFlow(e,r);return n.bulletLastUsed=i,n.bulletCurrent=o,a(),c},listItem:function(e,t,n,r){const a=function(e){const t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n);let o=n.bulletCurrent||Yl(n);t&&"list"===t.type&&t.ordered&&(o=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+o);let i=o.length+1;("tab"===a||"mixed"===a&&(t&&"list"===t.type&&t.spread||e.spread))&&(i=4*Math.ceil(i/4));const s=n.createTracker(r);s.move(o+" ".repeat(i-o.length)),s.shift(i);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),function(e,t,n){if(t)return(n?"":" ".repeat(i))+e;return(n?o:o+" ".repeat(i-o.length))+e});return l(),c},paragraph:function(e,t,n,r){const a=n.enter("paragraph"),o=n.enter("phrasing"),i=n.containerPhrasing(e,r);return o(),a(),i},root:function(e,t,n,r){return(e.children.some(function(e){return Vi(e)})?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:zl,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){const r=(ql(n)+(n.options.ruleSpaces?" ":"")).repeat(function(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(n));return n.options.ruleSpaces?r.slice(0,-1):r}},jl=[function(e,t,n,r){if("code"===t.type&&kl(t,r)&&("list"===e.type||e.type===t.type&&kl(e,r)))return!1;if("spread"in n&&"boolean"==typeof n.spread){if("paragraph"===e.type&&(e.type===t.type||"definition"===t.type||"heading"===t.type&&Ml(t,r)))return;return n.spread?1:0}}];const Ql=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],Vl=[{character:"\t",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"\t",before:"[\\r\\n]",inConstruct:"phrasing"},{character:"\t",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"\r",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:"\n",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"!",after:"\\[",inConstruct:"phrasing",notInConstruct:Ql},{character:'"',inConstruct:"titleQuote"},{atBreak:!0,character:"#"},{character:"#",inConstruct:"headingAtx",after:"(?:[\r\n]|$)"},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing",notInConstruct:Ql},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*",after:"(?:[ \t\r\n*])"},{character:"*",inConstruct:"phrasing",notInConstruct:Ql},{atBreak:!0,character:"+",after:"(?:[ \t\r\n])"},{atBreak:!0,character:"-",after:"(?:[ \t\r\n-])"},{atBreak:!0,before:"\\d+",character:".",after:"(?:[ \t\r\n]|$)"},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:Ql},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",notInConstruct:Ql},{character:"[",inConstruct:["label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",inConstruct:"phrasing",notInConstruct:Ql},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{character:"`",inConstruct:"phrasing",notInConstruct:Ql},{atBreak:!0,character:"~"}],Kl=document.createElement("i");const Xl=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function $l(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return function(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||65534==(65535&n)||n>1114111?"�":String.fromCodePoint(n)}(n.slice(t?2:1),t?16:10)}return function(e){const t="&"+e+";";Kl.innerHTML=t;const n=Kl.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}(n)||e}function Jl(e){return e.label||!e.identifier?e.label||"":e.identifier.replace(Xl,$l)}function Zl(e){if(!e._compiled){const t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function ec(e,t,n,r){let a=r.join.length;for(;a--;){const o=r.join[a](e,t,n,r);if(!0===o||1===o)break;if("number"==typeof o)return"\n".repeat(1+o);if(!1===o)return"\n\n\x3c!----\x3e\n\n"}return"\n\n"}const tc=/\r?\n|\r/g;function nc(e,t){const n=[];let r,a=0,o=0;for(;r=tc.exec(e);)i(e.slice(a,r.index)),n.push(r[0]),a=r.index+r[0].length,o++;return i(e.slice(a)),n.join("");function i(e){n.push(t(e,o,!e))}}function rc(e,t){return e-t}function ac(e,t){const n=/\\(?=[!-/:-@[-`{-~])/g,r=[],a=[],o=e+t;let i,s=-1,l=0;for(;i=n.exec(o);)r.push(i.index);for(;++s<r.length;)l!==r[s]&&a.push(e.slice(l,r[s])),a.push("\\"),l=r[s];return a.push(e.slice(l)),a.join("")}function oc(e){const t=e||{},n=t.now||{};let r=t.lineShift||0,a=n.line||1,o=n.column||1;return{move:function(e){const t=e||"",n=t.split(/\r?\n|\r/g),i=n[n.length-1];return a+=n.length-1,o=1===n.length?o+i.length:1+i.length+r,t},current:function(){return{now:{line:a,column:o},lineShift:r}},shift:function(e){r+=e}}}function ic(e,t){const n=t||{},r={associationId:Jl,containerPhrasing:uc,containerFlow:pc,createTracker:oc,compilePattern:Zl,enter:function(e){return r.stack.push(e),function(){r.stack.pop()}},handlers:{...Wl},handle:void 0,indentLines:nc,indexStack:[],join:[...jl],options:{},safe:hc,stack:[],unsafe:[...Vl]};Dl(r,n),r.options.tightDefinitions&&r.join.push(cc),r.handle=Y("type",{invalid:sc,unknown:lc,handlers:r.handlers});let a=r.handle(e,void 0,r,{before:"\n",after:"\n",now:{line:1,column:1},lineShift:0});return a&&10!==a.charCodeAt(a.length-1)&&13!==a.charCodeAt(a.length-1)&&(a+="\n"),a}function sc(e){throw new Error("Cannot handle value `"+e+"`, expected node")}function lc(e){throw new Error("Cannot handle unknown node `"+e.type+"`")}function cc(e,t){if("definition"===e.type&&e.type===t.type)return 0}function uc(e,t){return function(e,t,n){const r=t.indexStack,a=e.children||[],o=[];let i,s=-1,l=n.before;r.push(-1);let c=t.createTracker(n);for(;++s<a.length;){const u=a[s];let p;if(r[r.length-1]=s,s+1<a.length){let n=t.handle.handlers[a[s+1].type];n&&n.peek&&(n=n.peek),p=n?n(a[s+1],e,t,{before:"",after:"",...c.current()}).charAt(0):""}else p=n.after;o.length>0&&("\r"===l||"\n"===l)&&"html"===u.type&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),l=" ",c=t.createTracker(n),c.move(o.join("")));let h=t.handle(u,e,t,{...c.current(),after:p,before:l});i&&i===h.slice(0,1)&&(h=Rl(i.charCodeAt(0))+h.slice(1));const d=t.attentionEncodeSurroundingInfo;t.attentionEncodeSurroundingInfo=void 0,i=void 0,d&&(o.length>0&&d.before&&l===o[o.length-1].slice(-1)&&(o[o.length-1]=o[o.length-1].slice(0,-1)+Rl(l.charCodeAt(0))),d.after&&(i=p)),c.move(h),o.push(h),l=h.slice(-1)}return r.pop(),o.join("")}(e,this,t)}function pc(e,t){return function(e,t,n){const r=t.indexStack,a=e.children||[],o=t.createTracker(n),i=[];let s=-1;for(r.push(-1);++s<a.length;){const n=a[s];r[r.length-1]=s,i.push(o.move(t.handle(n,e,t,{before:"\n",after:"\n",...o.current()}))),"list"!==n.type&&(t.bulletLastUsed=void 0),s<a.length-1&&i.push(o.move(ec(n,a[s+1],e,t)))}return r.pop(),i.join("")}(e,this,t)}function hc(e,t){return function(e,t,n){const r=(n.before||"")+(t||"")+(n.after||""),a=[],o=[],i={};let s=-1;for(;++s<e.unsafe.length;){const t=e.unsafe[s];if(!Il(e.stack,t))continue;const n=e.compilePattern(t);let o;for(;o=n.exec(r);){const e="before"in t||Boolean(t.atBreak),n="after"in t,r=o.index+(e?o[1].length:0);a.includes(r)?(i[r].before&&!e&&(i[r].before=!1),i[r].after&&!n&&(i[r].after=!1)):(a.push(r),i[r]={before:e,after:n})}}a.sort(rc);let l=n.before?n.before.length:0;const c=r.length-(n.after?n.after.length:0);for(s=-1;++s<a.length;){const e=a[s];e<l||e>=c||e+1<c&&a[s+1]===e+1&&i[e].after&&!i[e+1].before&&!i[e+1].after||a[s-1]===e-1&&i[e].before&&!i[e-1].before&&!i[e-1].after||(l!==e&&o.push(ac(r.slice(l,e),"\\")),l=e,!/[!-/:-@[-`{-~]/.test(r.charAt(e))||n.encode&&n.encode.includes(r.charAt(e))?(o.push(Rl(r.charCodeAt(e))),l++):o.push("\\"))}return o.push(ac(r.slice(l,c),n.after)),o.join("")}(this,e,t)}function dc(e){const t=e._align;this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function Ec(e){this.exit(e),this.data.inTable=void 0}function mc(e){this.enter({type:"tableRow",children:[]},e)}function fc(e){this.exit(e)}function Tc(e){this.enter({type:"tableCell",children:[]},e)}function gc(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Ac));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Ac(e,t){return"|"===t?t:e}function Dc(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,a=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=Wl.inlineCode(e,t,n);n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&"));return r},table:function(e,t,n,r){return s(function(e,t,n){const r=e.children;let a=-1;const o=[],i=t.enter("table");for(;++a<r.length;)o[a]=l(r[a],t,n);return i(),o}(e,n,r),e.align)},tableCell:i,tableRow:function(e,t,n,r){const a=s([l(e,n,r)]);return a.slice(0,a.indexOf("\n"))}}};function i(e,t,n,r){const a=n.enter("tableCell"),i=n.enter("phrasing"),s=n.containerPhrasing(e,{...r,before:o,after:o});return i(),a(),s}function s(e,t){return function(e,t){const n=t||{},r=(n.align||[]).concat(),a=n.stringLength||fl,o=[],i=[],s=[],l=[];let c=0,u=-1;for(;++u<e.length;){const t=[],r=[];let o=-1;for(e[u].length>c&&(c=e[u].length);++o<e[u].length;){const i=Tl(e[u][o]);if(!1!==n.alignDelimiters){const e=a(i);r[o]=e,(void 0===l[o]||e>l[o])&&(l[o]=e)}t.push(i)}i[u]=t,s[u]=r}let p=-1;if("object"==typeof r&&"length"in r)for(;++p<c;)o[p]=gl(r[p]);else{const e=gl(r);for(;++p<c;)o[p]=e}p=-1;const h=[],d=[];for(;++p<c;){const e=o[p];let t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let a=!1===n.alignDelimiters?1:Math.max(1,l[p]-t.length-r.length);const i=t+"-".repeat(a)+r;!1!==n.alignDelimiters&&(a=t.length+a+r.length,a>l[p]&&(l[p]=a),d[p]=a),h[p]=i}i.splice(1,0,h),s.splice(1,0,d),u=-1;const E=[];for(;++u<i.length;){const e=i[u],t=s[u];p=-1;const r=[];for(;++p<c;){const a=e[p]||"";let i="",s="";if(!1!==n.alignDelimiters){const e=l[p]-(t[p]||0),n=o[p];114===n?i=" ".repeat(e):99===n?e%2?(i=" ".repeat(e/2+.5),s=" ".repeat(e/2-.5)):(i=" ".repeat(e/2),s=i):s=" ".repeat(e)}!1===n.delimiterStart||p||r.push("|"),!1===n.padding||!1===n.alignDelimiters&&""===a||!1===n.delimiterStart&&!p||r.push(" "),!1!==n.alignDelimiters&&r.push(i),r.push(a),!1!==n.alignDelimiters&&r.push(s),!1!==n.padding&&r.push(" "),!1===n.delimiterEnd&&p===c-1||r.push("|")}E.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return E.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:a})}function l(e,t,n){const r=e.children;let a=-1;const o=[],s=t.enter("tableRow");for(;++a<r.length;)o[a]=i(r[a],0,t,n);return s(),o}}function _c(e){const t=this.stack[this.stack.length-2];t.type,t.checked="taskListCheckValueChecked"===e.type}function Cc(e){const t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){const e=this.stack[this.stack.length-1];e.type;const n=e.children[0];if(n&&"text"===n.type){const r=t.children;let a,o=-1;for(;++o<r.length;){const e=r[o];if("paragraph"===e.type){a=e;break}}a===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function Nc(e,t,n,r){const a=e.children[0],o="boolean"==typeof e.checked&&a&&"paragraph"===a.type,i="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);o&&s.move(i);let l=Wl.listItem(e,t,n,{...r,...s.current()});return o&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+i})),l}function Ic(e,t,n,r){const a=e.length;let o,i=0;if(t=t<0?-t>a?0:a+t:t>a?a:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);i<r.length;)o=r.slice(i,i+1e4),o.unshift(t,0),e.splice(...o),i+=1e4,t+=1e4}const Sc={}.hasOwnProperty;function bc(e,t){let n;for(n in t){const r=(Sc.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let o;if(a)for(o in a){Sc.call(r,o)||(r[o]=[]);const e=a[o];kc(r[o],Array.isArray(e)?e:e?[e]:[])}}}function kc(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);Ic(e,0,0,r)}const yc={tokenize:function(e,t,n){let r=0;return function t(o){if((87===o||119===o)&&r<3)return r++,e.consume(o),t;if(46===o&&3===r)return e.consume(o),a;return n(o)};function a(e){return null===e?n(e):t(e)}},partial:!0},Oc={tokenize:function(e,t,n){let r,a,o;return i;function i(t){return 46===t||95===t?e.check(Lc,l,s)(t):null===t||Ps(t)||vs(t)||45!==t&&Bs(t)?l(t):(o=!0,e.consume(t),i)}function s(t){return 95===t?r=!0:(a=r,r=void 0),e.consume(t),i}function l(e){return a||r||!o?n(e):t(e)}},partial:!0},Rc={tokenize:function(e,t){let n=0,r=0;return a;function a(i){return 40===i?(n++,e.consume(i),a):41===i&&r<n?o(i):33===i||34===i||38===i||39===i||41===i||42===i||44===i||46===i||58===i||59===i||60===i||63===i||93===i||95===i||126===i?e.check(Lc,t,o)(i):null===i||Ps(i)||vs(i)?t(i):(e.consume(i),a)}function o(t){return 41===t&&r++,e.consume(t),a}},partial:!0},Lc={tokenize:function(e,t,n){return r;function r(i){return 33===i||34===i||39===i||41===i||42===i||44===i||46===i||58===i||59===i||63===i||95===i||126===i?(e.consume(i),r):38===i?(e.consume(i),o):93===i?(e.consume(i),a):60===i||null===i||Ps(i)||vs(i)?t(i):n(i)}function a(e){return null===e||40===e||91===e||Ps(e)||vs(e)?t(e):r(e)}function o(e){return Rs(e)?i(e):n(e)}function i(t){return 59===t?(e.consume(t),r):Rs(t)?(e.consume(t),i):n(t)}},partial:!0},Fc={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return Ls(e)?n(e):t(e)}},partial:!0},Pc={name:"wwwAutolink",tokenize:function(e,t,n){const r=this;return function(t){if(87!==t&&119!==t||!wc.call(r,r.previous)||Yc(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(yc,e.attempt(Oc,e.attempt(Rc,a),n),n)(t)};function a(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:wc},Mc={name:"protocolAutolink",tokenize:function(e,t,n){const r=this;let a="",o=!1;return function(t){if((72===t||104===t)&&Uc.call(r,r.previous)&&!Yc(r.events))return e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(t),e.consume(t),i;return n(t)};function i(t){if(Rs(t)&&a.length<5)return a+=String.fromCodePoint(t),e.consume(t),i;if(58===t){const n=a.toLowerCase();if("http"===n||"https"===n)return e.consume(t),s}return n(t)}function s(t){return 47===t?(e.consume(t),o?l:(o=!0,s)):n(t)}function l(t){return null===t||function(e){return null!==e&&(e<32||127===e)}(t)||Ps(t)||vs(t)||Bs(t)?n(t):e.attempt(Oc,e.attempt(Rc,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:Uc},Bc={name:"emailAutolink",tokenize:function(e,t,n){const r=this;let a,o;return function(t){if(!Gc(t)||!Hc.call(r,r.previous)||Yc(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),i(t)};function i(t){return Gc(t)?(e.consume(t),i):64===t?(e.consume(t),s):n(t)}function s(t){return 46===t?e.check(Fc,c,l)(t):45===t||95===t||Ls(t)?(o=!0,e.consume(t),s):c(t)}function l(t){return e.consume(t),a=!0,s}function c(i){return o&&a&&Rs(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(i)):n(i)}},previous:Hc},vc={};let xc=48;for(;xc<123;)vc[xc]=Bc,xc++,58===xc?xc=65:91===xc&&(xc=97);function wc(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||Ps(e)}function Uc(e){return!Rs(e)}function Hc(e){return!(47===e||Gc(e))}function Gc(e){return 43===e||45===e||46===e||95===e||Ls(e)}function Yc(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}function qc(e,t,n){const r=[];let a=-1;for(;++a<e.length;){const o=e[a].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}function zc(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let o=0;return function(r){if(Ms(r))return e.enter(n),i(r);return t(r)};function i(r){return Ms(r)&&o++<a?(e.consume(r),i):(e.exit(n),t(r))}}vc[43]=Bc,vc[45]=Bc,vc[46]=Bc,vc[95]=Bc,vc[72]=[Bc,Mc],vc[104]=[Bc,Mc],vc[87]=[Bc,Pc],vc[119]=[Bc,Pc];const Wc={partial:!0,tokenize:function(e,t,n){return function(t){return Ms(t)?zc(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||Fs(e)?t(e):n(e)}}};const jc={tokenize:function(e,t,n){const r=this;return zc(e,function(e){const a=r.events[r.events.length-1];return a&&"gfmFootnoteDefinitionIndent"===a[1].type&&4===a[2].sliceSerialize(a[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function Qc(e,t,n){const r=this;let a=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i;for(;a--;){const e=r.events[a][1];if("labelImage"===e.type){i=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(a){if(!i||!i._balanced)return n(a);const s=Zs(r.sliceSerialize({start:i.end,end:r.now()}));if(94!==s.codePointAt(0)||!o.includes(s.slice(1)))return n(a);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),t(a)}}function Vc(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},i={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",a,t],["exit",a,t],["enter",o,t],["enter",i,t],["exit",i,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function Kc(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,i=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),s};function s(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(s){if(i>999||93===s&&!o||null===s||91===s||Ps(s))return n(s);if(93===s){e.exit("chunkString");const o=e.exit("gfmFootnoteCallString");return a.includes(Zs(r.sliceSerialize(o)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(s)}return Ps(s)||(o=!0),i++,e.consume(s),92===s?c:l}function c(t){return 91===t||92===t||93===t?(e.consume(t),i++,l):l(t)}}function Xc(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,i,s=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(s>999||93===t&&!i||null===t||91===t||Ps(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return o=Zs(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return Ps(t)||(i=!0),s++,e.consume(t),92===t?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}function p(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a.includes(o)||a.push(o),zc(e,h,"gfmFootnoteDefinitionWhitespace")):n(t)}function h(e){return t(e)}}function $c(e,t,n){return e.check(Wc,t,e.attempt(jc,t,n))}function Jc(e){e.exit("gfmFootnoteDefinition")}function Zc(e){let t=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:function(e,n,r){const a=this.previous,o=this.events;let i=0;return function(t){if(126===a&&"characterEscape"!==o[o.length-1][1].type)return r(t);return e.enter("strikethroughSequenceTemporary"),s(t)};function s(o){const l=Ll(a);if(126===o)return i>1?r(o):(e.consume(o),i++,s);if(i<2&&!t)return r(o);const c=e.exit("strikethroughSequenceTemporary"),u=Ll(o);return c._open=!u||2===u&&Boolean(l),c._close=!l||2===l&&Boolean(u),n(o)}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";const a={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},o={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i=[["enter",a,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",o,t]],s=t.parser.constructs.insideSpan.null;s&&Ic(i,i.length,0,qc(s,e.slice(r+1,n),t)),Ic(i,i.length,0,[["exit",o,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",a,t]]),Ic(e,r-1,n-r+3,i),n=r+i.length-2;break}}n=-1;for(;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}class eu{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let a=0;if(0===n&&0===r.length)return;for(;a<e.map.length;){if(e.map[a][0]===t)return e.map[a][1]+=n,void e.map[a][2].push(...r);a+=1}e.map.push([t,n,r])}(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length;const n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(const t of r)e.push(t);r=n.pop()}this.map.length=0}}function tu(e,t){let n=!1;const r=[];for(;t<e.length;){const a=e[t];if(n){if("enter"===a[0])"tableContent"===a[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===a[1].type){if("tableDelimiterMarker"===e[t-1][1].type){const e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===a[1].type)break}else"enter"===a[0]&&"tableDelimiterRow"===a[1].type&&(n=!0);t+=1}return r}function nu(e,t,n){const r=this;let a,o=0,i=0;return function(e){let t=r.events.length-1;for(;t>-1;){const e=r.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const a=t>-1?r.events[t][1].type:null,o="tableHead"===a||"tableRow"===a?D:s;if(o===D&&r.parser.lazy[r.now().line])return n(e);return o(e)};function s(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){if(124===e)return l(e);return a=!0,i+=1,l(e)}(t)}function l(t){return null===t?n(t):Fs(t)?i>1?(i=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),p):n(t):Ms(t)?zc(e,l,"whitespace")(t):(i+=1,a&&(a=!1,o+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),a=!0,l):(e.enter("data"),c(t)))}function c(t){return null===t||124===t||Ps(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return 92===t||124===t?(e.consume(t),c):c(t)}function p(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter("tableDelimiterRow"),a=!1,Ms(t)?zc(e,h,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):h(t))}function h(t){return 45===t||58===t?E(t):124===t?(a=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),d):A(t)}function d(t){return Ms(t)?zc(e,E,"whitespace")(t):E(t)}function E(t){return 58===t?(i+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(i+=1,m(t)):null===t||Fs(t)?g(t):A(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),f(t)):A(t)}function f(t){return 45===t?(e.consume(t),f):58===t?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),T):(e.exit("tableDelimiterFiller"),T(t))}function T(t){return Ms(t)?zc(e,g,"whitespace")(t):g(t)}function g(n){return 124===n?h(n):(null===n||Fs(n))&&a&&o===i?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):A(n)}function A(e){return n(e)}function D(t){return e.enter("tableRow"),_(t)}function _(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),_):null===n||Fs(n)?(e.exit("tableRow"),t(n)):Ms(n)?zc(e,_,"whitespace")(n):(e.enter("data"),C(n))}function C(t){return null===t||124===t||Ps(t)?(e.exit("data"),_(t)):(e.consume(t),92===t?N:C)}function N(t){return 92===t||124===t?(e.consume(t),C):C(t)}}function ru(e,t){let n,r,a,o=-1,i=!0,s=0,l=[0,0,0,0],c=[0,0,0,0],u=!1,p=0;const h=new eu;for(;++o<e.length;){const d=e[o],E=d[1];"enter"===d[0]?"tableHead"===E.type?(u=!1,0!==p&&(ou(h,t,p,n,r),r=void 0,p=0),n={type:"table",start:Object.assign({},E.start),end:Object.assign({},E.end)},h.add(o,0,[["enter",n,t]])):"tableRow"===E.type||"tableDelimiterRow"===E.type?(i=!0,a=void 0,l=[0,0,0,0],c=[0,o+1,0,0],u&&(u=!1,r={type:"tableBody",start:Object.assign({},E.start),end:Object.assign({},E.end)},h.add(o,0,[["enter",r,t]])),s="tableDelimiterRow"===E.type?2:r?3:1):!s||"data"!==E.type&&"tableDelimiterMarker"!==E.type&&"tableDelimiterFiller"!==E.type?"tableCellDivider"===E.type&&(i?i=!1:(0!==l[1]&&(c[0]=c[1],a=au(h,t,l,s,void 0,a)),l=c,c=[l[1],o,0,0])):(i=!1,0===c[2]&&(0!==l[1]&&(c[0]=c[1],a=au(h,t,l,s,void 0,a),l=[0,0,0,0]),c[2]=o)):"tableHead"===E.type?(u=!0,p=o):"tableRow"===E.type||"tableDelimiterRow"===E.type?(p=o,0!==l[1]?(c[0]=c[1],a=au(h,t,l,s,o,a)):0!==c[1]&&(a=au(h,t,c,s,o,a)),s=0):!s||"data"!==E.type&&"tableDelimiterMarker"!==E.type&&"tableDelimiterFiller"!==E.type||(c[3]=o)}for(0!==p&&ou(h,t,p,n,r),h.consume(t.events),o=-1;++o<t.events.length;){const e=t.events[o];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=tu(t.events,o))}return e}function au(e,t,n,r,a,o){const i=1===r?"tableHeader":2===r?"tableDelimiter":"tableData";0!==n[0]&&(o.end=Object.assign({},iu(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const s=iu(t.events,n[1]);if(o={type:i,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[["enter",o,t]]),0!==n[2]){const a=iu(t.events,n[2]),o=iu(t.events,n[3]),i={type:"tableContent",start:Object.assign({},a),end:Object.assign({},o)};if(e.add(n[2],0,[["enter",i,t]]),2!==r){const r=t.events[n[2]],a=t.events[n[3]];if(r[1].end=Object.assign({},a[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){const t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",i,t]])}return void 0!==a&&(o.end=Object.assign({},iu(t.events,a)),e.add(a,0,[["exit",o,t]]),o=void 0),o}function ou(e,t,n,r,a){const o=[],i=iu(t.events,n);a&&(a.end=Object.assign({},i),o.push(["exit",a,t])),r.end=Object.assign({},i),o.push(["exit",r,t]),e.add(n+1,0,o)}function iu(e,t){const n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}const su={name:"tasklistCheck",tokenize:function(e,t,n){const r=this;return function(t){if(null!==r.previous||!r._gfmTasklistFirstContentOfListItem)return n(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),a};function a(t){return Ps(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),o):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),o):n(t)}function o(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),i):n(t)}function i(r){return Fs(r)?t(r):Ms(r)?e.check({tokenize:lu},t,n)(r):n(r)}}};function lu(e,t,n){return zc(e,function(e){return null===e?n(e):t(e)},"whitespace")}function cu(e){return function(e){const t={};let n=-1;for(;++n<e.length;)bc(t,e[n]);return t}([{text:vc},{document:{91:{name:"gfmFootnoteDefinition",tokenize:Xc,continuation:{tokenize:$c},exit:Jc}},text:{91:{name:"gfmFootnoteCall",tokenize:Kc},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Qc,resolveTo:Vc}}},Zc(e),{flow:{null:{name:"table",tokenize:nu,resolveAll:ru}}},{text:{91:su}}])}const uu={};function pu(e){const t=e||uu,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),a=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),o=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(cu(t)),a.push([{transforms:[Ks],enter:{literalAutolink:qs,literalAutolinkEmail:zs,literalAutolinkHttp:zs,literalAutolinkWww:zs},exit:{literalAutolink:Vs,literalAutolinkEmail:Qs,literalAutolinkHttp:Ws,literalAutolinkWww:js}},{enter:{gfmFootnoteCallString:el,gfmFootnoteCall:tl,gfmFootnoteDefinitionLabelString:nl,gfmFootnoteDefinition:rl},exit:{gfmFootnoteCallString:al,gfmFootnoteCall:ol,gfmFootnoteDefinitionLabelString:il,gfmFootnoteDefinition:sl}},{canContainEols:["delete"],enter:{strikethrough:dl},exit:{strikethrough:El}},{enter:{table:dc,tableData:Tc,tableHeader:Tc,tableRow:mc},exit:{codeText:gc,table:Ec,tableData:fc,tableHeader:fc,tableRow:fc}},{exit:{taskListCheckValueChecked:_c,taskListCheckValueUnchecked:_c,paragraph:Cc}}]),o.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Gs,notInConstruct:Ys},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Gs,notInConstruct:Ys},{character:":",before:"[ps]",after:"\\/",inConstruct:Gs,notInConstruct:Ys}]},cl(e),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:hl}],handlers:{delete:ml}},Dc(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Nc}}]}}(t))}function hu(e){const t=this;t.compiler=function(n){return ic(n,{...t.data("settings"),...e,extensions:t.data("toMarkdownExtensions")||[]})}}function du(e){if(e)throw e}var Eu,mu,fu="undefined"!=typeof globalThis?globalThis:void 0!==e?e:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Tu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}const gu=Tu(function(){if(mu)return Eu;mu=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,a=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},o=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,a=e.call(n,"constructor"),o=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!a&&!o)return!1;for(r in n);return void 0===r||e.call(n,r)},i=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return Eu=function e(){var t,n,r,l,c,u,p=arguments[0],h=1,d=arguments.length,E=!1;for("boolean"==typeof p&&(E=p,p=arguments[1]||{},h=2),(null==p||"object"!=typeof p&&"function"!=typeof p)&&(p={});h<d;++h)if(null!=(t=arguments[h]))for(n in t)r=s(p,n),p!==(l=s(t,n))&&(E&&l&&(o(l)||(c=a(l)))?(c?(c=!1,u=r&&a(r)?r:[]):u=r&&o(r)?r:{},i(p,{name:n,newValue:e(E,u,l)})):void 0!==l&&i(p,{name:n,newValue:l}));return p}}());function Au(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function Du(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r);!function a(o,...i){const s=e[++n];let l=-1;if(o)r(o);else{for(;++l<t.length;)null!==i[l]&&void 0!==i[l]||(i[l]=t[l]);t=i,s?function(e,t){let n;return r;function r(...t){const r=e.length>t.length;let s;r&&t.push(a);try{s=e.apply(this,t)}catch(o){if(r&&n)throw o;return a(o)}r||(s&&s.then&&"function"==typeof s.then?s.then(i,a):s instanceof Error?a(s):i(s))}function a(e,...r){n||(n=!0,t(e,...r))}function i(e){a(null,e)}}(s,a)(...i):r(null,...i)}}(null,...t)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}const _u=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},Cu={}.hasOwnProperty;class Nu extends _u{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Du()}copy(){const e=new Nu;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(gu(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(ku("data",this.frozen),this.namespace[e]=t,this):Cu.call(this.namespace,e)&&this.namespace[e]||void 0:e?(ku("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=t.call(e,...n);"function"==typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=Ru(e),n=this.parser||this.Parser;return Su("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),Su("process",this.parser||this.Parser),bu("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,a){const o=Ru(e),i=n.parse(o);function s(e,n){e||!n?a(e):r?r(n):t(void 0,n)}n.run(i,o,function(e,t,r){if(e||!t||!r)return s(e);const a=t,o=n.stringify(a,r);var i;"string"==typeof(i=o)||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(i)?r.value=o:r.result=o,s(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),Su("processSync",this.parser||this.Parser),bu("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,du(e),t=r}),Ou("processSync","process",n),t}run(e,t,n){yu(e),this.freeze();const r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?a(void 0,n):new Promise(a);function a(a,o){const i=Ru(t);r.run(e,i,function(t,r,i){const s=r||e;t?o(t):a?a(s):n(void 0,s,i)})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){du(e),n=t,r=!0}),Ou("runSync","run",r),n}stringify(e,t){this.freeze();const n=Ru(t),r=this.compiler||this.Compiler;return bu("stringify",r),yu(e),r(e,n)}use(e,...t){const n=this.attachers,r=this.namespace;if(ku("use",this.frozen),null==e);else if("function"==typeof e)s(e,t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?i(e):o(e)}return this;function a(e){if("function"==typeof e)s(e,[]);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;s(t,n)}else o(e)}}function o(e){if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");i(e.plugins),e.settings&&(r.settings=gu(!0,r.settings,e.settings))}function i(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;){a(e[t])}}}function s(e,t){let r=-1,a=-1;for(;++r<n.length;)if(n[r][0]===e){a=r;break}if(-1===a)n.push([e,...t]);else if(t.length>0){let[r,...o]=t;const i=n[a][1];Au(i)&&Au(r)&&(r=gu(!0,i,r)),n[a]=[e,r,...o]}}}}const Iu=(new Nu).freeze();function Su(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function bu(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function ku(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function yu(e){if(!Au(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function Ou(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Ru(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new ea(e)}const Lu=e=>{const{baseUrl:t}=e,n={a:["href"],area:["href"],link:["href"],img:["src","srcset","srcSet"],source:["src","srcset","srcSet"],video:["src","poster"],audio:["src"],iframe:["src"],script:["src"]},r=e=>{if(e.startsWith("/")||e.startsWith("//"))try{return new URL(e,t).href}catch(n){return e}return e};return e=>{Do(e,"element",e=>{const t=n[e.tagName];if(t)for(const n of t){const t=e.properties?.[n];if("string"==typeof t)if("srcset"===n||"srcSet"===n){const a=t.split(",").map(e=>{const t=e.trim();if(!t)return"";const n=t.split(/\s+/);if(0===n.length)return"";const a=n[0],o=r(a);return n[0]=o,n.join(" ")}).filter(Boolean).join(", ");e.properties[n]=a}else e.properties[n]=r(t)}})}},Fu=()=>e=>{Do(e,"text",e=>{e.value=Mu(e.value)}),Do(e,"element",e=>{if(e.properties)for(const[t,n]of Object.entries(e.properties))"string"==typeof n&&(e.properties[t]=Mu(n))})},Pu=e=>Mu(e);function Mu(e){if(!e||"string"!=typeof e)return e;e=(e=e.replace(/&#(\d+);/g,(e,t)=>{try{const n=parseInt(t,10);return n>=0&&n<=1114111?String.fromCodePoint(n):e}catch{return e}})).replace(/&#[xX]([0-9a-fA-F]+);/g,(e,t)=>{try{const n=parseInt(t,16);return n>=0&&n<=1114111?String.fromCodePoint(n):e}catch{return e}});const t={"&amp;":"&","&AMP;":"&","&lt;":"<","&LT;":"<","&gt;":">","&GT;":">","&quot;":'"',"&QUOT;":'"',"&apos;":"'","&APOS;":"'","&nbsp;":" ","&NBSP;":" ","&times;":"×","&divide;":"÷","&minus;":"−","&plusmn;":"±","&sup1;":"¹","&sup2;":"²","&sup3;":"³","&frac14;":"¼","&frac12;":"½","&frac34;":"¾","&infin;":"∞","&sum;":"∑","&prod;":"∏","&radic;":"√","&prop;":"∝","&part;":"∂","&int;":"∫","&ang;":"∠","&perp;":"⊥","&parallel;":"∥","&Alpha;":"Α","&alpha;":"α","&Beta;":"Β","&beta;":"β","&Gamma;":"Γ","&gamma;":"γ","&Delta;":"Δ","&delta;":"δ","&Epsilon;":"Ε","&epsilon;":"ε","&Zeta;":"Ζ","&zeta;":"ζ","&Eta;":"Η","&eta;":"η","&Theta;":"Θ","&theta;":"θ","&Iota;":"Ι","&iota;":"ι","&Kappa;":"Κ","&kappa;":"κ","&Lambda;":"Λ","&lambda;":"λ","&Mu;":"Μ","&mu;":"μ","&Nu;":"Ν","&nu;":"ν","&Xi;":"Ξ","&xi;":"ξ","&Omicron;":"Ο","&omicron;":"ο","&Pi;":"Π","&pi;":"π","&Rho;":"Ρ","&rho;":"ρ","&Sigma;":"Σ","&sigma;":"σ","&Tau;":"Τ","&tau;":"τ","&Upsilon;":"Υ","&upsilon;":"υ","&Phi;":"Φ","&phi;":"φ","&Chi;":"Χ","&chi;":"χ","&Psi;":"Ψ","&psi;":"ψ","&Omega;":"Ω","&omega;":"ω","&euro;":"€","&yen;":"¥","&pound;":"£","&cent;":"¢","&curren;":"¤","&copy;":"©","&COPY;":"©","&reg;":"®","&REG;":"®","&trade;":"™","&TRADE;":"™","&hellip;":"…","&mdash;":"—","&ndash;":"–","&lsquo;":"‘","&rsquo;":"’","&ldquo;":"“","&rdquo;":"”","&bull;":"•","&middot;":"·","&sect;":"§","&para;":"¶","&dagger;":"†","&Dagger;":"‡","&permil;":"‰","&lsaquo;":"‹","&rsaquo;":"›","&laquo;":"«","&raquo;":"»","&Agrave;":"À","&agrave;":"à","&Aacute;":"Á","&aacute;":"á","&Acirc;":"Â","&acirc;":"â","&Atilde;":"Ã","&atilde;":"ã","&Auml;":"Ä","&auml;":"ä","&Aring;":"Å","&aring;":"å","&AElig;":"Æ","&aelig;":"æ","&Ccedil;":"Ç","&ccedil;":"ç","&Egrave;":"È","&egrave;":"è","&Eacute;":"É","&eacute;":"é","&Ecirc;":"Ê","&ecirc;":"ê","&Euml;":"Ë","&euml;":"ë","&Igrave;":"Ì","&igrave;":"ì","&Iacute;":"Í","&iacute;":"í","&Icirc;":"Î","&icirc;":"î","&Iuml;":"Ï","&iuml;":"ï","&ETH;":"Ð","&eth;":"ð","&Ntilde;":"Ñ","&ntilde;":"ñ","&Ograve;":"Ò","&ograve;":"ò","&Oacute;":"Ó","&oacute;":"ó","&Ocirc;":"Ô","&ocirc;":"ô","&Otilde;":"Õ","&otilde;":"õ","&Ouml;":"Ö","&ouml;":"ö","&Oslash;":"Ø","&oslash;":"ø","&Ugrave;":"Ù","&ugrave;":"ù","&Uacute;":"Ú","&uacute;":"ú","&Ucirc;":"Û","&ucirc;":"û","&Uuml;":"Ü","&uuml;":"ü","&Yacute;":"Ý","&yacute;":"ý","&THORN;":"Þ","&thorn;":"þ","&szlig;":"ß","&yuml;":"ÿ","&larr;":"←","&uarr;":"↑","&rarr;":"→","&darr;":"↓","&harr;":"↔","&crarr;":"↵","&lArr;":"⇐","&uArr;":"⇑","&rArr;":"⇒","&dArr;":"⇓","&hArr;":"⇔","&forall;":"∀","&exist;":"∃","&empty;":"∅","&nabla;":"∇","&isin;":"∈","&notin;":"∉","&ni;":"∋","&cap;":"∩","&cup;":"∪","&sub;":"⊂","&sup;":"⊃","&nsub;":"⊄","&sube;":"⊆","&supe;":"⊇","&oplus;":"⊕","&otimes;":"⊗","&equiv;":"≡","&ne;":"≠","&le;":"≤","&ge;":"≥","&sim;":"∼","&cong;":"≅","&asymp;":"≈","&spades;":"♠","&hearts;":"♥","&diams;":"♦","&clubs;":"♣","&loz;":"◊","&image;":"ℑ","&real;":"ℜ","&weierp;":"℘","&alefsym;":"ℵ","&#xff08;":"(","&#xff09;":")","&#x30b7;":"シ","&#x30B7;":"シ","&#x3042;":"あ","&#x3044;":"い","&#x3046;":"う","&#x3048;":"え","&#x304a;":"お","&#x4e2d;":"中","&#x6587;":"文","&#x56fd;":"国","&#xd55c;":"한","&#xad6d;":"국","&#xc5b4;":"어","&ensp;":" ","&emsp;":" ","&thinsp;":" ","&zwnj;":"‌","&zwj;":"‍","&lrm;":"‎","&rlm;":"‏"};for(const[n,r]of Object.entries(t)){const t=new RegExp(n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g");e=e.replace(t,r)}return e}const Bu=new Set(["address","article","aside","blockquote","br","details","dialog","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","header","hgroup","hr","li","main","nav","ol","p","pre","section","table","ul"]);const vu=new o,xu=()=>e=>{Do(e,"element",(e,t,n)=>{if(n&&"number"==typeof t&&e.properties&&e.properties.id){const r=String(e.properties.id);if(r&&["h1","h2","h3","h4","h5","h6"].includes(e.tagName)){const t=vu.slug(r);return void e.children.push({type:"text",value:` {#${t}}`})}if("span"===e.tagName&&r&&1===Object.keys(e.properties||{}).length)return;const a={type:"element",tagName:"span",properties:{id:r},children:[]};if(function(e){let t=!1;return Do(e,"element",e=>{if(Bu.has(e.tagName))return t=!0,To}),t}(e)){let t=null;if(Do(e,(n,r,a)=>{if(a&&"number"==typeof r&&("element"===n.type&&!Bu.has(n.tagName)||"text"===n.type&&""!==n.value.trim()))return t={node:e,parent:a,index:r},To}),t){const n=t;n.parent.children.splice(n.index+1,0,a),delete e.properties.id}return}return n.children.splice(t+1,0,a),delete e.properties.id,t+1}})},wu=()=>e=>{Do(e,"element",(e,t,n)=>{if(n&&"number"==typeof t){const r=n.children[t+1];if(r&&"element"===r.type&&"span"===r.tagName&&r.properties?.id&&1===Object.keys(r.properties).length){if(!n||"root"===n.type||["body","div","section","article","aside","footer","header","nav","td","th","li"].includes(n.tagName)){const a={type:"element",tagName:"p",properties:{},children:[e,r]};return n.children.splice(t,2,a),t+1}}}})},Uu=()=>e=>{Do(e,(e,t,n)=>{if(n&&"number"==typeof t){if("comment"===e.type&&""===e.value.trim())return n.children.splice(t,1),t;if("element"===e.type&&e.children){const t=[];let n="";const r=()=>{if(n){const e=n.replace(/\s+/g," ");t.push({type:"text",value:e}),n=""}};for(const a of e.children)"text"===a.type?n+=a.value:"comment"===a.type&&""===a.value.trim()||(r(),t.push(a));r(),e.children=t}}})},Hu=()=>e=>{const t=[],n=new Map;Do(e,"element",(e,r,a)=>{if(a&&void 0!==r&&"sup"===e.tagName&&Array.isArray(e.properties?.className)&&e.properties.className.includes("reference")){const o=e.children.find(e=>"element"===e.type&&"a"===e.tagName),i=o?.properties?.href;if("string"==typeof i&&i.startsWith("#cite_note-")){n.has(i)||(n.set(i,t.length+1),t.push({id:i,content:[]}));const e={type:"text",value:`[^${n.get(i)}]`};a.children[r]=e}}}),Do(e,"element",e=>{if("li"===e.tagName&&"string"==typeof e.properties?.id&&e.properties.id.startsWith("cite_note-")){const n=`#${e.properties.id}`,r=t.find(e=>e.id===n);if(r){const t=e.children.filter(e=>{if("element"!==e.type)return!1;if("span"!==e.tagName)return!0;const t=e.properties?.className;return!(Array.isArray(t)&&t.includes("mw-cite-backlink"))});r.content=t}}}),Do(e,"element",(e,t,n)=>{if(n&&void 0!==t&&"ol"===e.tagName&&Array.isArray(e.properties?.className)&&e.properties.className.includes("references"))return n.children.splice(t,1),["skip",t]});for(const[r,a]of n){const n=t.find(e=>e.id===r);n&&n.content.length>0&&e.children.push({type:"element",tagName:"p",properties:{},children:[{type:"text",value:`[^${a}]: `},...n.content]})}},Gu=(e,t,n)=>{const r=["br","hr","h1","h2","h3","h4","h5","h6","strong","em","b","i","u","s","strike","del","ins","code","ul","ol","li","a","img","blockquote","pre","table","thead","tbody","tfoot","tr","th","td","style"],a=["style","class","id","colspan","rowspan","width","height","align","href","src","title","alt"];Do(t,"element",(e,t,n)=>{if(n&&"number"==typeof t){if("div"===e.tagName){const r=e.properties?.style;if(/display:\s*(inline-block|flex|inline-flex)|float:\s*(left|right)/.test(r??"")){for(const t of e.children)"element"===t.type&&"div"===t.tagName&&(t.tagName="span");const r=[],a={type:"text",value:" "};return e.children.forEach((t,n)=>{r.push(t),n<e.children.length-1&&r.push(a)}),n.children.splice(t,1,...r),t}const a={type:"element",tagName:"br",properties:{},children:[]},o=[...e.children],i=n.children[t-1],s=n.children[t+1],l=i&&"element"===i.type&&"br"===i.tagName,c=s&&"element"===s.type&&"br"===s.tagName;return void 0===l||l||o.unshift(a),void 0===c||c||o.push(a),n.children.splice(t,1,...o),t}if(!r.includes(e.tagName))return n.children.splice(t,1,...e.children),t;e.properties&&Object.keys(e.properties).forEach(t=>{a.includes(t)||delete e.properties[t]})}});return{type:"tableCell",children:[{type:"html",value:function(e,t){const n=t||Pe,r=n.quote||'"',a='"'===r?"'":'"';if('"'!==r&&"'"!==r)throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:ve,all:xe,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||i,characterReferences:n.characterReferences||Me,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:"svg"===n.space?H:U,quote:r,alternative:a}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}(t.children,{allowDangerousHtml:!0})}]}};exports.commonjsGlobal=fu,exports.getAugmentedNamespace=function(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){var n=!1;try{n=this instanceof e}catch{}return n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n},exports.getDefaultExportFromCjs=Tu,exports.getMessage=(e,t,r)=>{let a=n["ja-JP"===e?"ja-JP":"en-US"][t]||n["en-US"][t];if(r)for(const[n,o]of Object.entries(r))a=a.replace(`{${n}}`,o);return a},exports.htmlToMarkdown=async(e,n={})=>{const{locale:r="en-US",htmlContent:a}=n;try{let n,i;if(a?(n=a,i=e||"direct-html-input"):(new URL(e),n=await(async(e,n)=>{let r;try{r=await t.chromium.launch();const a=await r.newPage({locale:n});return await a.goto(e,{waitUntil:"networkidle"}),await a.content()}catch(a){throw a}finally{r&&await r.close()}})(e,r),i=e),!n)return{html:"",markdown:""};return{html:n,markdown:await(async(e,t)=>{const n=new o,r=Pu(e),a=await Iu().use(ha,{fragment:!0}).use(xo).use(Fu).use(Uu).use(Hu).use(xu).use(Os).use(wu).use(Lu,{baseUrl:t}).use(Is,{handlers:{span(e,t){const n=t.properties?.id;if(n&&1===Object.keys(t.properties||{}).length){const r=e.all(t);return 0===r.length?{type:"html",value:`<span id="${String(n)}"></span>`}:[{type:"html",value:`<span id="${String(n)}">`},...r,{type:"html",value:"</span>"}]}return e.all(t)},a(e,t){if(t.children.some(e=>"element"===e.type&&["dl","ul","ol","table","div"].includes(e.tagName))&&t.properties?.href){const n=String(t.properties.ariaLabel||"");if(n)return[{type:"link",url:String(t.properties.href),children:[{type:"text",value:n}]},{type:"text",value:"\n"},...e.all(t)]}const r=e=>"text"===e.type?e.value:"element"===e.type&&e.children?e.children.map(e=>r(e)).join(""):"";let a=r(t).replace(/\s+/g," ").trim();if(!a){const e=t.properties||{};a=String(e.ariaLabel||e.title||e.href||"")}if(!a)return e.all(t);const o=e=>!!e.children&&e.children.some(e=>{if("element"===e.type){if("img"===e.tagName)return!0;if(e.children)return o(e)}return!1});let i;if(o(t))i={type:"link",url:String(t.properties?.href||""),title:t.properties?.title?String(t.properties.title):null,children:e.all(t)};else{let e=String(t.properties?.href||"");e.startsWith("#")&&(e=`#${n.slug(e.substring(1))}`),i={type:"link",url:e,title:t.properties?.title?String(t.properties.title):null,children:[{type:"text",value:a}]}}return i},td:(e,t,n)=>Gu(0,t),th:(e,t,n)=>Gu(0,t)}}).use(pu).use(hu,{bullet:"-",listItemIndent:"one",handlers:{html:e=>(e.value||"").replace(/\n/g,"").replace(/\|/g,"\\|")}}).process(r),i=String(a).replace(/\\\[\^(.+?)\\?\](?!\s*:)/g,"[^$1]").replace(/\]\(\\#/g,"](#").replace(/(\s*)- - /g,"$1- ").replace(/(\s*)\* \* /g,"$1* ");return Pu(i)})(n,i)}}catch(i){return{html:"",markdown:""}}};