@aiao/code-editor 0.0.6 → 0.0.8

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.
Files changed (125) hide show
  1. package/dist/apl-B2DGVGxc.js +76 -0
  2. package/dist/asciiarmor-2LVJmxlE.js +34 -0
  3. package/dist/asn1-jKiBa2Ya.js +95 -0
  4. package/dist/asterisk-DS281yxp.js +271 -0
  5. package/dist/brainfuck-C_p9pTT8.js +34 -0
  6. package/dist/clike-BMALKCNj.js +620 -0
  7. package/dist/clojure-CCKyeQKf.js +800 -0
  8. package/dist/cmake-CuaCgAKt.js +28 -0
  9. package/dist/cobol-BlTKFDRj.js +72 -0
  10. package/dist/coffeescript-BVCvwO8I.js +179 -0
  11. package/dist/commonlisp-D_kxz07b.js +75 -0
  12. package/dist/crystal-D309uH6_.js +217 -0
  13. package/dist/css-BkF-NPzE.js +1553 -0
  14. package/dist/cypher-BMq4Fwjl.js +68 -0
  15. package/dist/d-BZcgY6La.js +127 -0
  16. package/dist/diff-Cg9d_RX2.js +18 -0
  17. package/dist/dockerfile-DFX8bq9N.js +194 -0
  18. package/dist/dtd-CtLokQ-U.js +84 -0
  19. package/dist/dylan-QYeExnWK.js +234 -0
  20. package/dist/ebnf-DUPDuY4r.js +78 -0
  21. package/dist/ecl-CiXN-g_D.js +121 -0
  22. package/dist/eiffel-yQhjl4T1.js +110 -0
  23. package/dist/elm-CNT9vbN0.js +108 -0
  24. package/dist/erlang-CFOYdy9e.js +487 -0
  25. package/dist/factor-Clf6BoVk.js +65 -0
  26. package/dist/fcl-CPC2WYrI.js +103 -0
  27. package/dist/forth-BmxRyE9S.js +60 -0
  28. package/dist/fortran-9bvPyrOW.js +442 -0
  29. package/dist/gas-cpmYfFX2.js +183 -0
  30. package/dist/gherkin-CJuwpceU.js +34 -0
  31. package/dist/groovy-DZeT_VM-.js +146 -0
  32. package/dist/haskell-CxiO_7JL.js +375 -0
  33. package/dist/haxe-70NVW1pR.js +359 -0
  34. package/dist/http-D9LttvKF.js +44 -0
  35. package/dist/idl-B6TRFYjl.js +947 -0
  36. package/dist/index-BMiCCEB1.js +309 -0
  37. package/dist/index-BNuasEBW.js +94 -0
  38. package/dist/index-Bg1KDWyt.js +290 -0
  39. package/dist/index-BuVm7ZG6.js +1305 -0
  40. package/dist/index-BvS1cnHq.js +613 -0
  41. package/dist/index-C44L0DmY.js +138 -0
  42. package/dist/index-C71CZfUx.js +247 -0
  43. package/dist/index-CQ6JWNwi.js +566 -0
  44. package/dist/index-CpRVx97-.js +342 -0
  45. package/dist/index-CqvQj6d-.js +270 -0
  46. package/dist/index-CrbQBmWq.js +157 -0
  47. package/dist/index-CzovO10m.js +302 -0
  48. package/dist/index-D0BZOY-S.js +101 -0
  49. package/dist/index-D0svJS59.js +555 -0
  50. package/dist/index-D93XVMi1.js +136 -0
  51. package/dist/index-DEB5VK0f.js +252 -0
  52. package/dist/index-DIaXGPFp.js +12936 -0
  53. package/dist/index-Dp8osI_J.js +960 -0
  54. package/dist/index-Ds4AioqO.js +1918 -0
  55. package/dist/index-Dy-OpkyQ.js +76 -0
  56. package/dist/index-Dyi9rNIT.js +391 -0
  57. package/dist/index-ZJkjD9tT.js +74 -0
  58. package/dist/index-qH2lMs0G.js +945 -0
  59. package/dist/index-srIksFxX.js +59 -0
  60. package/dist/index.d.ts +1 -0
  61. package/dist/index.d.ts.map +1 -1
  62. package/dist/index.js +19 -1
  63. package/dist/javascript-DOuB9oqA.js +691 -0
  64. package/dist/julia-DpvXAuO6.js +241 -0
  65. package/dist/languages.d.ts +18 -0
  66. package/dist/languages.d.ts.map +1 -0
  67. package/dist/livescript-CanGTf8u.js +272 -0
  68. package/dist/lua-XplVlWi_.js +217 -0
  69. package/dist/mathematica-jaRHnSxC.js +35 -0
  70. package/dist/mbox-BctzC1hL.js +76 -0
  71. package/dist/mirc-CFBPAOaF.js +72 -0
  72. package/dist/mllike-BSnXJBGA.js +272 -0
  73. package/dist/modelica-vUgVs--1.js +93 -0
  74. package/dist/mscgen-Cpl0NYLN.js +104 -0
  75. package/dist/mumps-CQoS1kWX.js +25 -0
  76. package/dist/nginx-zDPm3Z74.js +89 -0
  77. package/dist/nsis-BCLyjY7m.js +62 -0
  78. package/dist/ntriples-CsNjv2QF.js +79 -0
  79. package/dist/octave-C8PmmSRH.js +143 -0
  80. package/dist/oz-Ce8aN8oE.js +151 -0
  81. package/dist/pascal-De0D6mP7.js +77 -0
  82. package/dist/perl-B4bSCe1C.js +915 -0
  83. package/dist/pig-D24Z8EXi.js +54 -0
  84. package/dist/powershell-DkYVfTzP.js +249 -0
  85. package/dist/properties-Dn9wna3M.js +26 -0
  86. package/dist/protobuf-BPIjwpzm.js +49 -0
  87. package/dist/pug-TGXr6c5j.js +248 -0
  88. package/dist/puppet-nyd4dhjf.js +45 -0
  89. package/dist/python-BkR3uSy8.js +313 -0
  90. package/dist/q-DyHZGnqm.js +86 -0
  91. package/dist/r-LKEuhEGI.js +104 -0
  92. package/dist/rpm-IznJm2Xc.js +57 -0
  93. package/dist/ruby-CcYfvIk6.js +228 -0
  94. package/dist/sas-7E8yHoCW.js +105 -0
  95. package/dist/scheme-DjibxsNh.js +124 -0
  96. package/dist/shell-C0C2sNA_.js +182 -0
  97. package/dist/sieve-Bwz7vjP5.js +72 -0
  98. package/dist/simple-mode-mNVtnu0l.js +89 -0
  99. package/dist/smalltalk-Bhddl2pB.js +48 -0
  100. package/dist/solr-BNlsLglM.js +41 -0
  101. package/dist/sparql-FarWu_Gb.js +197 -0
  102. package/dist/spreadsheet-C-cy4P5N.js +49 -0
  103. package/dist/sql-CfG5lQ3l.js +282 -0
  104. package/dist/stex-Du4h4KAU.js +129 -0
  105. package/dist/stylus-CAdqWld3.js +250 -0
  106. package/dist/swift-DSxqR9R6.js +230 -0
  107. package/dist/tcl-xfoLljhY.js +81 -0
  108. package/dist/textile-D1AWE-pc.js +295 -0
  109. package/dist/tiddlywiki-5wqsXtSk.js +155 -0
  110. package/dist/tiki-__Kn3CeS.js +181 -0
  111. package/dist/toml-DWAmxCjl.js +58 -0
  112. package/dist/troff-D2UO-fKf.js +35 -0
  113. package/dist/ttcn-Bsa4sfRm.js +123 -0
  114. package/dist/ttcn-cfg-Bac_acMi.js +88 -0
  115. package/dist/turtle-xwJUxoPV.js +80 -0
  116. package/dist/vb-c2kQGd6-.js +74 -0
  117. package/dist/vbscript-1f_Dhg5H.js +324 -0
  118. package/dist/velocity-DJd0pTTC.js +96 -0
  119. package/dist/verilog-CiS1jyi5.js +262 -0
  120. package/dist/vhdl-T9HkrbI2.js +106 -0
  121. package/dist/webidl-CjfDENEo.js +155 -0
  122. package/dist/xquery-Ct6lEb4B.js +422 -0
  123. package/dist/yacas-C0absKBh.js +73 -0
  124. package/dist/z80-Pki2zAjW.js +61 -0
  125. package/package.json +14 -8
@@ -0,0 +1,945 @@
1
+ import { L as be, E as $, C as he } from "./index-BuVm7ZG6.js";
2
+ import { p as Te, s as Pe, t as b, E as xe, a as Ve, L as ye, b as K, e as we, i as ve, f as Xe, g as $e } from "./index-DIaXGPFp.js";
3
+ import { cssLanguage as J, css as _e } from "./index-Dp8osI_J.js";
4
+ import { typescriptLanguage as qe, jsxLanguage as Ce, tsxLanguage as ke, javascriptLanguage as M, javascript as Qe } from "./index-D0svJS59.js";
5
+ const Ae = 55, Ye = 1, Me = 56, Re = 2, Ee = 57, Ze = 3, z = 4, Be = 5, R = 6, ee = 7, te = 8, ae = 9, le = 10, ze = 11, De = 12, We = 13, _ = 58, Ne = 14, Ge = 15, D = 59, re = 21, Ie = 23, ne = 24, je = 25, A = 27, se = 28, Ue = 29, Le = 32, Fe = 35, He = 37, Ke = 38, Je = 0, et = 1, tt = {
6
+ area: !0,
7
+ base: !0,
8
+ br: !0,
9
+ col: !0,
10
+ command: !0,
11
+ embed: !0,
12
+ frame: !0,
13
+ hr: !0,
14
+ img: !0,
15
+ input: !0,
16
+ keygen: !0,
17
+ link: !0,
18
+ meta: !0,
19
+ param: !0,
20
+ source: !0,
21
+ track: !0,
22
+ wbr: !0,
23
+ menuitem: !0
24
+ }, at = {
25
+ dd: !0,
26
+ li: !0,
27
+ optgroup: !0,
28
+ option: !0,
29
+ p: !0,
30
+ rp: !0,
31
+ rt: !0,
32
+ tbody: !0,
33
+ td: !0,
34
+ tfoot: !0,
35
+ th: !0,
36
+ tr: !0
37
+ }, W = {
38
+ dd: { dd: !0, dt: !0 },
39
+ dt: { dd: !0, dt: !0 },
40
+ li: { li: !0 },
41
+ option: { option: !0, optgroup: !0 },
42
+ optgroup: { optgroup: !0 },
43
+ p: {
44
+ address: !0,
45
+ article: !0,
46
+ aside: !0,
47
+ blockquote: !0,
48
+ dir: !0,
49
+ div: !0,
50
+ dl: !0,
51
+ fieldset: !0,
52
+ footer: !0,
53
+ form: !0,
54
+ h1: !0,
55
+ h2: !0,
56
+ h3: !0,
57
+ h4: !0,
58
+ h5: !0,
59
+ h6: !0,
60
+ header: !0,
61
+ hgroup: !0,
62
+ hr: !0,
63
+ menu: !0,
64
+ nav: !0,
65
+ ol: !0,
66
+ p: !0,
67
+ pre: !0,
68
+ section: !0,
69
+ table: !0,
70
+ ul: !0
71
+ },
72
+ rp: { rp: !0, rt: !0 },
73
+ rt: { rp: !0, rt: !0 },
74
+ tbody: { tbody: !0, tfoot: !0 },
75
+ td: { td: !0, th: !0 },
76
+ tfoot: { tbody: !0 },
77
+ th: { td: !0, th: !0 },
78
+ thead: { tbody: !0, tfoot: !0 },
79
+ tr: { tr: !0 }
80
+ };
81
+ function lt(e) {
82
+ return e == 45 || e == 46 || e == 58 || e >= 65 && e <= 90 || e == 95 || e >= 97 && e <= 122 || e >= 161;
83
+ }
84
+ let N = null, G = null, I = 0;
85
+ function Y(e, a) {
86
+ let r = e.pos + a;
87
+ if (I == r && G == e) return N;
88
+ let l = e.peek(a), t = "";
89
+ for (; lt(l); )
90
+ t += String.fromCharCode(l), l = e.peek(++a);
91
+ return G = e, I = r, N = t ? t.toLowerCase() : l == rt || l == nt ? void 0 : null;
92
+ }
93
+ const oe = 60, X = 62, E = 47, rt = 63, nt = 33, st = 45;
94
+ function j(e, a) {
95
+ this.name = e, this.parent = a;
96
+ }
97
+ const ot = [R, le, ee, te, ae], it = new he({
98
+ start: null,
99
+ shift(e, a, r, l) {
100
+ return ot.indexOf(a) > -1 ? new j(Y(l, 1) || "", e) : e;
101
+ },
102
+ reduce(e, a) {
103
+ return a == re && e ? e.parent : e;
104
+ },
105
+ reuse(e, a, r, l) {
106
+ let t = a.type.id;
107
+ return t == R || t == He ? new j(Y(l, 1) || "", e) : e;
108
+ },
109
+ strict: !1
110
+ }), ut = new $((e, a) => {
111
+ if (e.next != oe) {
112
+ e.next < 0 && a.context && e.acceptToken(_);
113
+ return;
114
+ }
115
+ e.advance();
116
+ let r = e.next == E;
117
+ r && e.advance();
118
+ let l = Y(e, 0);
119
+ if (l === void 0) return;
120
+ if (!l) return e.acceptToken(r ? Ge : Ne);
121
+ let t = a.context ? a.context.name : null;
122
+ if (r) {
123
+ if (l == t) return e.acceptToken(ze);
124
+ if (t && at[t]) return e.acceptToken(_, -2);
125
+ if (a.dialectEnabled(Je)) return e.acceptToken(De);
126
+ for (let s = a.context; s; s = s.parent) if (s.name == l) return;
127
+ e.acceptToken(We);
128
+ } else {
129
+ if (l == "script") return e.acceptToken(ee);
130
+ if (l == "style") return e.acceptToken(te);
131
+ if (l == "textarea") return e.acceptToken(ae);
132
+ if (tt.hasOwnProperty(l)) return e.acceptToken(le);
133
+ t && W[t] && W[t][l] ? e.acceptToken(_, -1) : e.acceptToken(R);
134
+ }
135
+ }, { contextual: !0 }), Ot = new $((e) => {
136
+ for (let a = 0, r = 0; ; r++) {
137
+ if (e.next < 0) {
138
+ r && e.acceptToken(D);
139
+ break;
140
+ }
141
+ if (e.next == st)
142
+ a++;
143
+ else if (e.next == X && a >= 2) {
144
+ r >= 3 && e.acceptToken(D, -2);
145
+ break;
146
+ } else
147
+ a = 0;
148
+ e.advance();
149
+ }
150
+ });
151
+ function dt(e) {
152
+ for (; e; e = e.parent)
153
+ if (e.name == "svg" || e.name == "math") return !0;
154
+ return !1;
155
+ }
156
+ const ct = new $((e, a) => {
157
+ if (e.next == E && e.peek(1) == X) {
158
+ let r = a.dialectEnabled(et) || dt(a.context);
159
+ e.acceptToken(r ? Be : z, 2);
160
+ } else e.next == X && e.acceptToken(z, 1);
161
+ });
162
+ function Z(e, a, r) {
163
+ let l = 2 + e.length;
164
+ return new $((t) => {
165
+ for (let s = 0, o = 0, i = 0; ; i++) {
166
+ if (t.next < 0) {
167
+ i && t.acceptToken(a);
168
+ break;
169
+ }
170
+ if (s == 0 && t.next == oe || s == 1 && t.next == E || s >= 2 && s < l && t.next == e.charCodeAt(s - 2))
171
+ s++, o++;
172
+ else if (s == l && t.next == X) {
173
+ i > o ? t.acceptToken(a, -o) : t.acceptToken(r, -(o - 2));
174
+ break;
175
+ } else if ((t.next == 10 || t.next == 13) && i) {
176
+ t.acceptToken(a, 1);
177
+ break;
178
+ } else
179
+ s = o = 0;
180
+ t.advance();
181
+ }
182
+ });
183
+ }
184
+ const pt = Z("script", Ae, Ye), mt = Z("style", Me, Re), ft = Z("textarea", Ee, Ze), gt = Pe({
185
+ "Text RawText IncompleteTag IncompleteCloseTag": b.content,
186
+ "StartTag StartCloseTag SelfClosingEndTag EndTag": b.angleBracket,
187
+ TagName: b.tagName,
188
+ "MismatchedCloseTag/TagName": [b.tagName, b.invalid],
189
+ AttributeName: b.attributeName,
190
+ "AttributeValue UnquotedAttributeValue": b.attributeValue,
191
+ Is: b.definitionOperator,
192
+ "EntityReference CharacterReference": b.character,
193
+ Comment: b.blockComment,
194
+ ProcessingInst: b.processingInstruction,
195
+ DoctypeDecl: b.documentMeta
196
+ }), St = be.deserialize({
197
+ version: 14,
198
+ states: ",xOVO!rOOO!ZQ#tO'#CrO!`Q#tO'#C{O!eQ#tO'#DOO!jQ#tO'#DRO!oQ#tO'#DTO!tOaO'#CqO#PObO'#CqO#[OdO'#CqO$kO!rO'#CqOOO`'#Cq'#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PmP![mP~O!YiOQpP![pP~O!ZlORsP![sP~OUSOVPOWQOXROYTOZqO[]O][O^^O_^Oa^Ob^Oc^Od^Oy^O!eZO~O![rO~P#gO!]sO!fuO~OgvO~OgwO~OS|OT}OiyO~OS!POT}OiyO~OS!ROT}OiyO~OS!TOT}OiyO~OS}OT}OiyO~O!XfOPmX![mX~OP!WO![!XO~O!YiOQpX![pX~OQ!ZO![!XO~O!ZlORsX![sX~OR!]O![!XO~O![!XO~P#gOg!_O~O!]sO!f!aO~OS!bO~OS!cO~Oj!dOShXThXihX~OS!fOT!gOiyO~OS!hOT!gOiyO~OS!iOT!gOiyO~OS!jOT!gOiyO~OS!gOT!gOiyO~Og!kO~Og!lO~Og!mO~OS!nO~Ol!qO!a!oO!c!pO~OS!rO~OS!sO~OS!tO~Ob!uOc!uOd!uO!a!wO!b!uO~Ob!xOc!xOd!xO!c!wO!d!xO~Ob!uOc!uOd!uO!a!{O!b!uO~Ob!xOc!xOd!xO!c!{O!d!xO~OT~cbd!ey|!e~",
200
+ goto: "%q!aPPPPPPPPPPPPPPPPPPPPP!b!hP!nPP!zP!}#Q#T#Z#^#a#g#j#m#s#y!bP!b!bP$P$V$m$s$y%P%V%]%cPPPPPPPP%iX^OX`pXUOX`pezabcde{!O!Q!S!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ!ObQ!QcQ!SdQ!UeZ!e{!O!Q!S!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",
201
+ nodeNames: "⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",
202
+ maxTerm: 68,
203
+ context: it,
204
+ nodeProps: [
205
+ ["closedBy", -10, 1, 2, 3, 7, 8, 9, 10, 11, 12, 13, "EndTag", 6, "EndTag SelfClosingEndTag", -4, 22, 31, 34, 37, "CloseTag"],
206
+ ["openedBy", 4, "StartTag StartCloseTag", 5, "StartTag", -4, 30, 33, 36, 38, "OpenTag"],
207
+ ["group", -10, 14, 15, 18, 19, 20, 21, 40, 41, 42, 43, "Entity", 17, "Entity TextContent", -3, 29, 32, 35, "TextContent Entity"],
208
+ ["isolate", -11, 22, 30, 31, 33, 34, 36, 37, 38, 39, 42, 43, "ltr", -3, 27, 28, 40, ""]
209
+ ],
210
+ propSources: [gt],
211
+ skippedNodes: [0],
212
+ repeatNodeCount: 9,
213
+ tokenData: "!<p!aR!YOX$qXY,QYZ,QZ[$q[]&X]^,Q^p$qpq,Qqr-_rs3_sv-_vw3}wxHYx}-_}!OH{!O!P-_!P!Q$q!Q![-_![!]Mz!]!^-_!^!_!$S!_!`!;x!`!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4U-_4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!Z$|caPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr$qrs&}sv$qvw+Pwx(tx!^$q!^!_*V!_!a&X!a#S$q#S#T&X#T;'S$q;'S;=`+z<%lO$q!R&bXaP!b`!dpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&Xq'UVaP!dpOv&}wx'kx!^&}!^!_(V!_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!R!4XX!b`!dpOr*Vrs(Vsv*Vwx)ex#X*V#X#Y!+q#Y;'S*V;'S;=`*s<%lO*V!R!4{Y!b`!dpOr!4trs!5ksv!4tvw!6Vwx!8]x!a!4t!a!b!:]!b;'S!4t;'S;=`!;r<%lO!4tq!5pV!dpOv!5kvx!6Vx!a!5k!a!b!7W!b;'S!5k;'S;=`!8V<%lO!5kP!6YTO!a!6V!a!b!6i!b;'S!6V;'S;=`!7Q<%lO!6VP!6lTO!`!6V!`!a!6{!a;'S!6V;'S;=`!7Q<%lO!6VP!7QOyPP!7TP;=`<%l!6Vq!7]V!dpOv!5kvx!6Vx!`!5k!`!a!7r!a;'S!5k;'S;=`!8V<%lO!5kq!7yS!dpyPOv(Vx;'S(V;'S;=`(h<%lO(Vq!8YP;=`<%l!5ka!8bX!b`Or!8]rs!6Vsv!8]vw!6Vw!a!8]!a!b!8}!b;'S!8];'S;=`!:V<%lO!8]a!9SX!b`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!b`yPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!b`!dpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!b`!dpyPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!<TXjSaP!b`!dpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X",
214
+ tokenizers: [pt, mt, ft, ct, ut, Ot, 0, 1, 2, 3, 4, 5],
215
+ topRules: { Document: [0, 16] },
216
+ dialects: { noMatch: 0, selfClosing: 515 },
217
+ tokenPrec: 517
218
+ });
219
+ function ie(e, a) {
220
+ let r = /* @__PURE__ */ Object.create(null);
221
+ for (let l of e.getChildren(ne)) {
222
+ let t = l.getChild(je), s = l.getChild(A) || l.getChild(se);
223
+ t && (r[a.read(t.from, t.to)] = s ? s.type.id == A ? a.read(s.from + 1, s.to - 1) : a.read(s.from, s.to) : "");
224
+ }
225
+ return r;
226
+ }
227
+ function U(e, a) {
228
+ let r = e.getChild(Ie);
229
+ return r ? a.read(r.from, r.to) : " ";
230
+ }
231
+ function q(e, a, r) {
232
+ let l;
233
+ for (let t of r)
234
+ if (!t.attrs || t.attrs(l || (l = ie(e.node.parent.firstChild, a))))
235
+ return { parser: t.parser, bracketed: !0 };
236
+ return null;
237
+ }
238
+ function ue(e = [], a = []) {
239
+ let r = [], l = [], t = [], s = [];
240
+ for (let i of e)
241
+ (i.tag == "script" ? r : i.tag == "style" ? l : i.tag == "textarea" ? t : s).push(i);
242
+ let o = a.length ? /* @__PURE__ */ Object.create(null) : null;
243
+ for (let i of a) (o[i.name] || (o[i.name] = [])).push(i);
244
+ return Te((i, u) => {
245
+ let f = i.type.id;
246
+ if (f == Ue) return q(i, u, r);
247
+ if (f == Le) return q(i, u, l);
248
+ if (f == Fe) return q(i, u, t);
249
+ if (f == re && s.length) {
250
+ let p = i.node, d = p.firstChild, m = d && U(d, u), O;
251
+ if (m) {
252
+ for (let c of s)
253
+ if (c.tag == m && (!c.attrs || c.attrs(O || (O = ie(d, u))))) {
254
+ let S = p.lastChild, h = S.type.id == Ke ? S.from : p.to;
255
+ if (h > d.to)
256
+ return { parser: c.parser, overlay: [{ from: d.to, to: h }] };
257
+ }
258
+ }
259
+ }
260
+ if (o && f == ne) {
261
+ let p = i.node, d;
262
+ if (d = p.firstChild) {
263
+ let m = o[u.read(d.from, d.to)];
264
+ if (m) for (let O of m) {
265
+ if (O.tagName && O.tagName != U(p.parent, u)) continue;
266
+ let c = p.lastChild;
267
+ if (c.type.id == A) {
268
+ let S = c.from + 1, h = c.lastChild, T = c.to - (h && h.isError ? 0 : 1);
269
+ if (T > S) return { parser: O.parser, overlay: [{ from: S, to: T }], bracketed: !0 };
270
+ } else if (c.type.id == se)
271
+ return { parser: O.parser, overlay: [{ from: c.from, to: c.to }] };
272
+ }
273
+ }
274
+ }
275
+ return null;
276
+ });
277
+ }
278
+ const V = ["_blank", "_self", "_top", "_parent"], C = ["ascii", "utf-8", "utf-16", "latin1", "latin1"], k = ["get", "post", "put", "delete"], Q = ["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"], g = ["true", "false"], n = {}, bt = {
279
+ a: {
280
+ attrs: {
281
+ href: null,
282
+ ping: null,
283
+ type: null,
284
+ media: null,
285
+ target: V,
286
+ hreflang: null
287
+ }
288
+ },
289
+ abbr: n,
290
+ address: n,
291
+ area: {
292
+ attrs: {
293
+ alt: null,
294
+ coords: null,
295
+ href: null,
296
+ target: null,
297
+ ping: null,
298
+ media: null,
299
+ hreflang: null,
300
+ type: null,
301
+ shape: ["default", "rect", "circle", "poly"]
302
+ }
303
+ },
304
+ article: n,
305
+ aside: n,
306
+ audio: {
307
+ attrs: {
308
+ src: null,
309
+ mediagroup: null,
310
+ crossorigin: ["anonymous", "use-credentials"],
311
+ preload: ["none", "metadata", "auto"],
312
+ autoplay: ["autoplay"],
313
+ loop: ["loop"],
314
+ controls: ["controls"]
315
+ }
316
+ },
317
+ b: n,
318
+ base: { attrs: { href: null, target: V } },
319
+ bdi: n,
320
+ bdo: n,
321
+ blockquote: { attrs: { cite: null } },
322
+ body: n,
323
+ br: n,
324
+ button: {
325
+ attrs: {
326
+ form: null,
327
+ formaction: null,
328
+ name: null,
329
+ value: null,
330
+ autofocus: ["autofocus"],
331
+ disabled: ["autofocus"],
332
+ formenctype: Q,
333
+ formmethod: k,
334
+ formnovalidate: ["novalidate"],
335
+ formtarget: V,
336
+ type: ["submit", "reset", "button"]
337
+ }
338
+ },
339
+ canvas: { attrs: { width: null, height: null } },
340
+ caption: n,
341
+ center: n,
342
+ cite: n,
343
+ code: n,
344
+ col: { attrs: { span: null } },
345
+ colgroup: { attrs: { span: null } },
346
+ command: {
347
+ attrs: {
348
+ type: ["command", "checkbox", "radio"],
349
+ label: null,
350
+ icon: null,
351
+ radiogroup: null,
352
+ command: null,
353
+ title: null,
354
+ disabled: ["disabled"],
355
+ checked: ["checked"]
356
+ }
357
+ },
358
+ data: { attrs: { value: null } },
359
+ datagrid: { attrs: { disabled: ["disabled"], multiple: ["multiple"] } },
360
+ datalist: { attrs: { data: null } },
361
+ dd: n,
362
+ del: { attrs: { cite: null, datetime: null } },
363
+ details: { attrs: { open: ["open"] } },
364
+ dfn: n,
365
+ div: n,
366
+ dl: n,
367
+ dt: n,
368
+ em: n,
369
+ embed: { attrs: { src: null, type: null, width: null, height: null } },
370
+ eventsource: { attrs: { src: null } },
371
+ fieldset: { attrs: { disabled: ["disabled"], form: null, name: null } },
372
+ figcaption: n,
373
+ figure: n,
374
+ footer: n,
375
+ form: {
376
+ attrs: {
377
+ action: null,
378
+ name: null,
379
+ "accept-charset": C,
380
+ autocomplete: ["on", "off"],
381
+ enctype: Q,
382
+ method: k,
383
+ novalidate: ["novalidate"],
384
+ target: V
385
+ }
386
+ },
387
+ h1: n,
388
+ h2: n,
389
+ h3: n,
390
+ h4: n,
391
+ h5: n,
392
+ h6: n,
393
+ head: {
394
+ children: ["title", "base", "link", "style", "meta", "script", "noscript", "command"]
395
+ },
396
+ header: n,
397
+ hgroup: n,
398
+ hr: n,
399
+ html: {
400
+ attrs: { manifest: null }
401
+ },
402
+ i: n,
403
+ iframe: {
404
+ attrs: {
405
+ src: null,
406
+ srcdoc: null,
407
+ name: null,
408
+ width: null,
409
+ height: null,
410
+ sandbox: ["allow-top-navigation", "allow-same-origin", "allow-forms", "allow-scripts"],
411
+ seamless: ["seamless"]
412
+ }
413
+ },
414
+ img: {
415
+ attrs: {
416
+ alt: null,
417
+ src: null,
418
+ ismap: null,
419
+ usemap: null,
420
+ width: null,
421
+ height: null,
422
+ crossorigin: ["anonymous", "use-credentials"]
423
+ }
424
+ },
425
+ input: {
426
+ attrs: {
427
+ alt: null,
428
+ dirname: null,
429
+ form: null,
430
+ formaction: null,
431
+ height: null,
432
+ list: null,
433
+ max: null,
434
+ maxlength: null,
435
+ min: null,
436
+ name: null,
437
+ pattern: null,
438
+ placeholder: null,
439
+ size: null,
440
+ src: null,
441
+ step: null,
442
+ value: null,
443
+ width: null,
444
+ accept: ["audio/*", "video/*", "image/*"],
445
+ autocomplete: ["on", "off"],
446
+ autofocus: ["autofocus"],
447
+ checked: ["checked"],
448
+ disabled: ["disabled"],
449
+ formenctype: Q,
450
+ formmethod: k,
451
+ formnovalidate: ["novalidate"],
452
+ formtarget: V,
453
+ multiple: ["multiple"],
454
+ readonly: ["readonly"],
455
+ required: ["required"],
456
+ type: [
457
+ "hidden",
458
+ "text",
459
+ "search",
460
+ "tel",
461
+ "url",
462
+ "email",
463
+ "password",
464
+ "datetime",
465
+ "date",
466
+ "month",
467
+ "week",
468
+ "time",
469
+ "datetime-local",
470
+ "number",
471
+ "range",
472
+ "color",
473
+ "checkbox",
474
+ "radio",
475
+ "file",
476
+ "submit",
477
+ "image",
478
+ "reset",
479
+ "button"
480
+ ]
481
+ }
482
+ },
483
+ ins: { attrs: { cite: null, datetime: null } },
484
+ kbd: n,
485
+ keygen: {
486
+ attrs: {
487
+ challenge: null,
488
+ form: null,
489
+ name: null,
490
+ autofocus: ["autofocus"],
491
+ disabled: ["disabled"],
492
+ keytype: ["RSA"]
493
+ }
494
+ },
495
+ label: { attrs: { for: null, form: null } },
496
+ legend: n,
497
+ li: { attrs: { value: null } },
498
+ link: {
499
+ attrs: {
500
+ href: null,
501
+ type: null,
502
+ hreflang: null,
503
+ media: null,
504
+ sizes: ["all", "16x16", "16x16 32x32", "16x16 32x32 64x64"]
505
+ }
506
+ },
507
+ map: { attrs: { name: null } },
508
+ mark: n,
509
+ menu: { attrs: { label: null, type: ["list", "context", "toolbar"] } },
510
+ meta: {
511
+ attrs: {
512
+ content: null,
513
+ charset: C,
514
+ name: ["viewport", "application-name", "author", "description", "generator", "keywords"],
515
+ "http-equiv": ["content-language", "content-type", "default-style", "refresh"]
516
+ }
517
+ },
518
+ meter: { attrs: { value: null, min: null, low: null, high: null, max: null, optimum: null } },
519
+ nav: n,
520
+ noscript: n,
521
+ object: {
522
+ attrs: {
523
+ data: null,
524
+ type: null,
525
+ name: null,
526
+ usemap: null,
527
+ form: null,
528
+ width: null,
529
+ height: null,
530
+ typemustmatch: ["typemustmatch"]
531
+ }
532
+ },
533
+ ol: {
534
+ attrs: { reversed: ["reversed"], start: null, type: ["1", "a", "A", "i", "I"] },
535
+ children: ["li", "script", "template", "ul", "ol"]
536
+ },
537
+ optgroup: { attrs: { disabled: ["disabled"], label: null } },
538
+ option: { attrs: { disabled: ["disabled"], label: null, selected: ["selected"], value: null } },
539
+ output: { attrs: { for: null, form: null, name: null } },
540
+ p: n,
541
+ param: { attrs: { name: null, value: null } },
542
+ pre: n,
543
+ progress: { attrs: { value: null, max: null } },
544
+ q: { attrs: { cite: null } },
545
+ rp: n,
546
+ rt: n,
547
+ ruby: n,
548
+ samp: n,
549
+ script: {
550
+ attrs: {
551
+ type: ["text/javascript"],
552
+ src: null,
553
+ async: ["async"],
554
+ defer: ["defer"],
555
+ charset: C
556
+ }
557
+ },
558
+ section: n,
559
+ select: {
560
+ attrs: {
561
+ form: null,
562
+ name: null,
563
+ size: null,
564
+ autofocus: ["autofocus"],
565
+ disabled: ["disabled"],
566
+ multiple: ["multiple"]
567
+ }
568
+ },
569
+ slot: { attrs: { name: null } },
570
+ small: n,
571
+ source: { attrs: { src: null, type: null, media: null } },
572
+ span: n,
573
+ strong: n,
574
+ style: {
575
+ attrs: {
576
+ type: ["text/css"],
577
+ media: null,
578
+ scoped: null
579
+ }
580
+ },
581
+ sub: n,
582
+ summary: n,
583
+ sup: n,
584
+ table: n,
585
+ tbody: n,
586
+ td: { attrs: { colspan: null, rowspan: null, headers: null } },
587
+ template: n,
588
+ textarea: {
589
+ attrs: {
590
+ dirname: null,
591
+ form: null,
592
+ maxlength: null,
593
+ name: null,
594
+ placeholder: null,
595
+ rows: null,
596
+ cols: null,
597
+ autofocus: ["autofocus"],
598
+ disabled: ["disabled"],
599
+ readonly: ["readonly"],
600
+ required: ["required"],
601
+ wrap: ["soft", "hard"]
602
+ }
603
+ },
604
+ tfoot: n,
605
+ th: { attrs: { colspan: null, rowspan: null, headers: null, scope: ["row", "col", "rowgroup", "colgroup"] } },
606
+ thead: n,
607
+ time: { attrs: { datetime: null } },
608
+ title: n,
609
+ tr: n,
610
+ track: {
611
+ attrs: {
612
+ src: null,
613
+ label: null,
614
+ default: null,
615
+ kind: ["subtitles", "captions", "descriptions", "chapters", "metadata"],
616
+ srclang: null
617
+ }
618
+ },
619
+ ul: { children: ["li", "script", "template", "ul", "ol"] },
620
+ var: n,
621
+ video: {
622
+ attrs: {
623
+ src: null,
624
+ poster: null,
625
+ width: null,
626
+ height: null,
627
+ crossorigin: ["anonymous", "use-credentials"],
628
+ preload: ["auto", "metadata", "none"],
629
+ autoplay: ["autoplay"],
630
+ mediagroup: ["movie"],
631
+ muted: ["muted"],
632
+ controls: ["controls"]
633
+ }
634
+ },
635
+ wbr: n
636
+ }, Oe = {
637
+ accesskey: null,
638
+ class: null,
639
+ contenteditable: g,
640
+ contextmenu: null,
641
+ dir: ["ltr", "rtl", "auto"],
642
+ draggable: ["true", "false", "auto"],
643
+ dropzone: ["copy", "move", "link", "string:", "file:"],
644
+ hidden: ["hidden"],
645
+ id: null,
646
+ inert: ["inert"],
647
+ itemid: null,
648
+ itemprop: null,
649
+ itemref: null,
650
+ itemscope: ["itemscope"],
651
+ itemtype: null,
652
+ lang: ["ar", "bn", "de", "en-GB", "en-US", "es", "fr", "hi", "id", "ja", "pa", "pt", "ru", "tr", "zh"],
653
+ spellcheck: g,
654
+ autocorrect: g,
655
+ autocapitalize: g,
656
+ style: null,
657
+ tabindex: null,
658
+ title: null,
659
+ translate: ["yes", "no"],
660
+ rel: ["stylesheet", "alternate", "author", "bookmark", "help", "license", "next", "nofollow", "noreferrer", "prefetch", "prev", "search", "tag"],
661
+ role: /* @__PURE__ */ "alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),
662
+ "aria-activedescendant": null,
663
+ "aria-atomic": g,
664
+ "aria-autocomplete": ["inline", "list", "both", "none"],
665
+ "aria-busy": g,
666
+ "aria-checked": ["true", "false", "mixed", "undefined"],
667
+ "aria-controls": null,
668
+ "aria-describedby": null,
669
+ "aria-disabled": g,
670
+ "aria-dropeffect": null,
671
+ "aria-expanded": ["true", "false", "undefined"],
672
+ "aria-flowto": null,
673
+ "aria-grabbed": ["true", "false", "undefined"],
674
+ "aria-haspopup": g,
675
+ "aria-hidden": g,
676
+ "aria-invalid": ["true", "false", "grammar", "spelling"],
677
+ "aria-label": null,
678
+ "aria-labelledby": null,
679
+ "aria-level": null,
680
+ "aria-live": ["off", "polite", "assertive"],
681
+ "aria-multiline": g,
682
+ "aria-multiselectable": g,
683
+ "aria-owns": null,
684
+ "aria-posinset": null,
685
+ "aria-pressed": ["true", "false", "mixed", "undefined"],
686
+ "aria-readonly": g,
687
+ "aria-relevant": null,
688
+ "aria-required": g,
689
+ "aria-selected": ["true", "false", "undefined"],
690
+ "aria-setsize": null,
691
+ "aria-sort": ["ascending", "descending", "none", "other"],
692
+ "aria-valuemax": null,
693
+ "aria-valuemin": null,
694
+ "aria-valuenow": null,
695
+ "aria-valuetext": null
696
+ }, de = /* @__PURE__ */ "beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map((e) => "on" + e);
697
+ for (let e of de)
698
+ Oe[e] = null;
699
+ class y {
700
+ constructor(a, r) {
701
+ this.tags = { ...bt, ...a }, this.globalAttrs = { ...Oe, ...r }, this.allTags = Object.keys(this.tags), this.globalAttrNames = Object.keys(this.globalAttrs);
702
+ }
703
+ }
704
+ y.default = /* @__PURE__ */ new y();
705
+ function P(e, a, r = e.length) {
706
+ if (!a)
707
+ return "";
708
+ let l = a.firstChild, t = l && l.getChild("TagName");
709
+ return t ? e.sliceString(t.from, Math.min(t.to, r)) : "";
710
+ }
711
+ function x(e, a = !1) {
712
+ for (; e; e = e.parent)
713
+ if (e.name == "Element")
714
+ if (a)
715
+ a = !1;
716
+ else
717
+ return e;
718
+ return null;
719
+ }
720
+ function ce(e, a, r) {
721
+ let l = r.tags[P(e, x(a))];
722
+ return l?.children || r.allTags;
723
+ }
724
+ function B(e, a) {
725
+ let r = [];
726
+ for (let l = x(a); l && !l.type.isTop; l = x(l.parent)) {
727
+ let t = P(e, l);
728
+ if (t && l.lastChild.name == "CloseTag")
729
+ break;
730
+ t && r.indexOf(t) < 0 && (a.name == "EndTag" || a.from >= l.firstChild.to) && r.push(t);
731
+ }
732
+ return r;
733
+ }
734
+ const pe = /^[:\-\.\w\u00b7-\uffff]*$/;
735
+ function L(e, a, r, l, t) {
736
+ let s = /\s*>/.test(e.sliceDoc(t, t + 5)) ? "" : ">", o = x(r, r.name == "StartTag" || r.name == "TagName");
737
+ return {
738
+ from: l,
739
+ to: t,
740
+ options: ce(e.doc, o, a).map((i) => ({ label: i, type: "type" })).concat(B(e.doc, r).map((i, u) => ({
741
+ label: "/" + i,
742
+ apply: "/" + i + s,
743
+ type: "type",
744
+ boost: 99 - u
745
+ }))),
746
+ validFor: /^\/?[:\-\.\w\u00b7-\uffff]*$/
747
+ };
748
+ }
749
+ function F(e, a, r, l) {
750
+ let t = /\s*>/.test(e.sliceDoc(l, l + 5)) ? "" : ">";
751
+ return {
752
+ from: r,
753
+ to: l,
754
+ options: B(e.doc, a).map((s, o) => ({ label: s, apply: s + t, type: "type", boost: 99 - o })),
755
+ validFor: pe
756
+ };
757
+ }
758
+ function ht(e, a, r, l) {
759
+ let t = [], s = 0;
760
+ for (let o of ce(e.doc, r, a))
761
+ t.push({ label: "<" + o, type: "type" });
762
+ for (let o of B(e.doc, r))
763
+ t.push({ label: "</" + o + ">", type: "type", boost: 99 - s++ });
764
+ return { from: l, to: l, options: t, validFor: /^<\/?[:\-\.\w\u00b7-\uffff]*$/ };
765
+ }
766
+ function Tt(e, a, r, l, t) {
767
+ let s = x(r), o = s ? a.tags[P(e.doc, s)] : null, i = o && o.attrs ? Object.keys(o.attrs) : [], u = o && o.globalAttrs === !1 ? i : i.length ? i.concat(a.globalAttrNames) : a.globalAttrNames;
768
+ return {
769
+ from: l,
770
+ to: t,
771
+ options: u.map((f) => ({ label: f, type: "property" })),
772
+ validFor: pe
773
+ };
774
+ }
775
+ function Pt(e, a, r, l, t) {
776
+ var s;
777
+ let o = (s = r.parent) === null || s === void 0 ? void 0 : s.getChild("AttributeName"), i = [], u;
778
+ if (o) {
779
+ let f = e.sliceDoc(o.from, o.to), p = a.globalAttrs[f];
780
+ if (!p) {
781
+ let d = x(r), m = d ? a.tags[P(e.doc, d)] : null;
782
+ p = m?.attrs && m.attrs[f];
783
+ }
784
+ if (p) {
785
+ let d = e.sliceDoc(l, t).toLowerCase(), m = '"', O = '"';
786
+ /^['"]/.test(d) ? (u = d[0] == '"' ? /^[^"]*$/ : /^[^']*$/, m = "", O = e.sliceDoc(t, t + 1) == d[0] ? "" : d[0], d = d.slice(1), l++) : u = /^[^\s<>='"]*$/;
787
+ for (let c of p)
788
+ i.push({ label: c, apply: m + c + O, type: "constant" });
789
+ }
790
+ }
791
+ return { from: l, to: t, options: i, validFor: u };
792
+ }
793
+ function me(e, a) {
794
+ let { state: r, pos: l } = a, t = K(r).resolveInner(l, -1), s = t.resolve(l);
795
+ for (let o = l, i; s == t && (i = t.childBefore(o)); ) {
796
+ let u = i.lastChild;
797
+ if (!u || !u.type.isError || u.from < u.to)
798
+ break;
799
+ s = t = i, o = u.from;
800
+ }
801
+ return t.name == "TagName" ? t.parent && /CloseTag$/.test(t.parent.name) ? F(r, t, t.from, l) : L(r, e, t, t.from, l) : t.name == "StartTag" || t.name == "IncompleteTag" ? L(r, e, t, l, l) : t.name == "StartCloseTag" || t.name == "IncompleteCloseTag" ? F(r, t, l, l) : t.name == "OpenTag" || t.name == "SelfClosingTag" || t.name == "AttributeName" ? Tt(r, e, t, t.name == "AttributeName" ? t.from : l, l) : t.name == "Is" || t.name == "AttributeValue" || t.name == "UnquotedAttributeValue" ? Pt(r, e, t, t.name == "Is" ? l : t.from, l) : a.explicit && (s.name == "Element" || s.name == "Text" || s.name == "Document") ? ht(r, e, t, l) : null;
802
+ }
803
+ function _t(e) {
804
+ return me(y.default, e);
805
+ }
806
+ function xt(e) {
807
+ let { extraTags: a, extraGlobalAttributes: r } = e, l = r || a ? new y(a, r) : y.default;
808
+ return (t) => me(l, t);
809
+ }
810
+ const Vt = /* @__PURE__ */ M.parser.configure({ top: "SingleExpression" }), fe = [
811
+ {
812
+ tag: "script",
813
+ attrs: (e) => e.type == "text/typescript" || e.lang == "ts",
814
+ parser: qe.parser
815
+ },
816
+ {
817
+ tag: "script",
818
+ attrs: (e) => e.type == "text/babel" || e.type == "text/jsx",
819
+ parser: Ce.parser
820
+ },
821
+ {
822
+ tag: "script",
823
+ attrs: (e) => e.type == "text/typescript-jsx",
824
+ parser: ke.parser
825
+ },
826
+ {
827
+ tag: "script",
828
+ attrs(e) {
829
+ return /^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(e.type);
830
+ },
831
+ parser: Vt
832
+ },
833
+ {
834
+ tag: "script",
835
+ attrs(e) {
836
+ return !e.type || /^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type);
837
+ },
838
+ parser: M.parser
839
+ },
840
+ {
841
+ tag: "style",
842
+ attrs(e) {
843
+ return (!e.lang || e.lang == "css") && (!e.type || /^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type));
844
+ },
845
+ parser: J.parser
846
+ }
847
+ ], ge = /* @__PURE__ */ [
848
+ {
849
+ name: "style",
850
+ parser: /* @__PURE__ */ J.parser.configure({ top: "Styles" })
851
+ }
852
+ ].concat(/* @__PURE__ */ de.map((e) => ({ name: e, parser: M.parser }))), Se = /* @__PURE__ */ Ve.define({
853
+ name: "html",
854
+ parser: /* @__PURE__ */ St.configure({
855
+ props: [
856
+ /* @__PURE__ */ ve.add({
857
+ Element(e) {
858
+ let a = /^(\s*)(<\/)?/.exec(e.textAfter);
859
+ return e.node.to <= e.pos + a[0].length ? e.continue() : e.lineIndent(e.node.from) + (a[2] ? 0 : e.unit);
860
+ },
861
+ "OpenTag CloseTag SelfClosingTag"(e) {
862
+ return e.column(e.node.from) + e.unit;
863
+ },
864
+ Document(e) {
865
+ if (e.pos + /\s*/.exec(e.textAfter)[0].length < e.node.to)
866
+ return e.continue();
867
+ let a = null, r;
868
+ for (let l = e.node; ; ) {
869
+ let t = l.lastChild;
870
+ if (!t || t.name != "Element" || t.to != l.to)
871
+ break;
872
+ a = l = t;
873
+ }
874
+ return a && !((r = a.lastChild) && (r.name == "CloseTag" || r.name == "SelfClosingTag")) ? e.lineIndent(a.from) + e.unit : null;
875
+ }
876
+ }),
877
+ /* @__PURE__ */ Xe.add({
878
+ Element(e) {
879
+ let a = e.firstChild, r = e.lastChild;
880
+ return !a || a.name != "OpenTag" ? null : { from: a.to, to: r.name == "CloseTag" ? r.from : e.to };
881
+ }
882
+ }),
883
+ /* @__PURE__ */ $e.add({
884
+ "OpenTag CloseTag": (e) => e.getChild("TagName")
885
+ })
886
+ ]
887
+ }),
888
+ languageData: {
889
+ commentTokens: { block: { open: "<!--", close: "-->" } },
890
+ indentOnInput: /^\s*<\/\w+\W$/,
891
+ wordChars: "-_"
892
+ }
893
+ }), v = /* @__PURE__ */ Se.configure({
894
+ wrap: /* @__PURE__ */ ue(fe, ge)
895
+ });
896
+ function qt(e = {}) {
897
+ let a = "", r;
898
+ e.matchClosingTags === !1 && (a = "noMatch"), e.selfClosingTags === !0 && (a = (a ? a + " " : "") + "selfClosing"), (e.nestedLanguages && e.nestedLanguages.length || e.nestedAttributes && e.nestedAttributes.length) && (r = ue((e.nestedLanguages || []).concat(fe), (e.nestedAttributes || []).concat(ge)));
899
+ let l = r ? Se.configure({ wrap: r, dialect: a }) : a ? v.configure({ dialect: a }) : v;
900
+ return new ye(l, [
901
+ v.data.of({ autocomplete: xt(e) }),
902
+ e.autoCloseTags !== !1 ? yt : [],
903
+ Qe().support,
904
+ _e().support
905
+ ]);
906
+ }
907
+ const H = /* @__PURE__ */ new Set(/* @__PURE__ */ "area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")), yt = /* @__PURE__ */ xe.inputHandler.of((e, a, r, l, t) => {
908
+ if (e.composing || e.state.readOnly || a != r || l != ">" && l != "/" || !v.isActiveAt(e.state, a, -1))
909
+ return !1;
910
+ let s = t(), { state: o } = s, i = o.changeByRange((u) => {
911
+ var f, p, d;
912
+ let m = o.doc.sliceString(u.from - 1, u.to) == l, { head: O } = u, c = K(o).resolveInner(O, -1), S;
913
+ if (m && l == ">" && c.name == "EndTag") {
914
+ let h = c.parent;
915
+ if (((p = (f = h.parent) === null || f === void 0 ? void 0 : f.lastChild) === null || p === void 0 ? void 0 : p.name) != "CloseTag" && (S = P(o.doc, h.parent, O)) && !H.has(S)) {
916
+ let T = O + (o.doc.sliceString(O, O + 1) === ">" ? 1 : 0), w = `</${S}>`;
917
+ return { range: u, changes: { from: O, to: T, insert: w } };
918
+ }
919
+ } else if (m && l == "/" && c.name == "IncompleteCloseTag") {
920
+ let h = c.parent;
921
+ if (c.from == O - 2 && ((d = h.lastChild) === null || d === void 0 ? void 0 : d.name) != "CloseTag" && (S = P(o.doc, h, O)) && !H.has(S)) {
922
+ let T = O + (o.doc.sliceString(O, O + 1) === ">" ? 1 : 0), w = `${S}>`;
923
+ return {
924
+ range: we.cursor(O + w.length, -1),
925
+ changes: { from: O, to: T, insert: w }
926
+ };
927
+ }
928
+ }
929
+ return { range: u };
930
+ });
931
+ return i.changes.empty ? !1 : (e.dispatch([
932
+ s,
933
+ o.update(i, {
934
+ userEvent: "input.complete",
935
+ scrollIntoView: !0
936
+ })
937
+ ]), !0);
938
+ });
939
+ export {
940
+ yt as autoCloseTags,
941
+ qt as html,
942
+ _t as htmlCompletionSource,
943
+ xt as htmlCompletionSourceWith,
944
+ v as htmlLanguage
945
+ };