@bagelink/vue 1.20.76 → 1.20.78

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 (67) hide show
  1. package/dist/StructuredEditor-HFOfODf9.cjs +2 -0
  2. package/dist/StructuredEditor-w0UY60b7.js +2431 -0
  3. package/dist/StructuredEditor.css +1 -0
  4. package/dist/babel-BVvTH0ev.js +10053 -0
  5. package/dist/babel-BzIDwrmk.cjs +16 -0
  6. package/dist/components/form/inputs/CodeEditor/Index.vue.d.ts +45 -28
  7. package/dist/components/form/inputs/CodeEditor/Index.vue.d.ts.map +1 -1
  8. package/dist/components/form/inputs/CodeEditor/SearchPanel.vue.d.ts +10 -0
  9. package/dist/components/form/inputs/CodeEditor/SearchPanel.vue.d.ts.map +1 -0
  10. package/dist/components/form/inputs/CodeEditor/StructuredEditor.vue.d.ts +27 -0
  11. package/dist/components/form/inputs/CodeEditor/StructuredEditor.vue.d.ts.map +1 -0
  12. package/dist/components/form/inputs/CodeEditor/formatCode.d.ts +4 -0
  13. package/dist/components/form/inputs/CodeEditor/formatCode.d.ts.map +1 -0
  14. package/dist/components/form/inputs/DatePicker.vue.d.ts.map +1 -1
  15. package/dist/components/form/inputs/RichText/index.vue.d.ts.map +1 -1
  16. package/dist/core.css +3 -1
  17. package/dist/dist-B-MCiFKR.cjs +10 -0
  18. package/dist/dist-B0uc2InW.js +6 -0
  19. package/dist/dist-BIAEQGHn.cjs +1 -0
  20. package/dist/dist-BLxHnfU6.js +1071 -0
  21. package/dist/dist-BRA2DQF2.cjs +1 -0
  22. package/dist/dist-BnLdfA7w.js +69 -0
  23. package/dist/dist-CL50Ff42.cjs +1 -0
  24. package/dist/dist-CwUttjIh.js +1100 -0
  25. package/dist/dist-CzY35u4H.cjs +1 -0
  26. package/dist/dist-D8OWrPLr.js +1336 -0
  27. package/dist/dist-DSCI9g6w.cjs +13 -0
  28. package/dist/dist-DsBgijLf.cjs +1 -0
  29. package/dist/dist-GbVY_Jpv.cjs +1 -0
  30. package/dist/dist-IV7z-zur.js +11909 -0
  31. package/dist/dist-Mr0UMyoK.js +1063 -0
  32. package/dist/dist-jq7acmcZ.js +6 -0
  33. package/dist/estree-CKgw47OZ.js +8211 -0
  34. package/dist/estree-HqeJuE3g.cjs +44 -0
  35. package/dist/html-B-hsQYII.js +7289 -0
  36. package/dist/html-BrqW5pT-.cjs +25 -0
  37. package/dist/index.cjs +1 -764
  38. package/dist/index.mjs +308 -65621
  39. package/dist/postcss-Bk65KKdh.js +6703 -0
  40. package/dist/postcss-BxY0xtVZ.cjs +61 -0
  41. package/dist/src-BACj3hjY.cjs +764 -0
  42. package/dist/src-SwfYbKT-.js +65571 -0
  43. package/dist/src.css +1 -0
  44. package/dist/standalone-CAcRm_h6.cjs +29 -0
  45. package/dist/standalone-D-HcbQmf.js +3549 -0
  46. package/dist/style.css +3 -1
  47. package/dist/utils/calendarDate.d.ts +6 -0
  48. package/dist/utils/calendarDate.d.ts.map +1 -0
  49. package/dist/utils/date.d.ts.map +1 -1
  50. package/package.json +13 -2
  51. package/src/components/form/inputs/CodeEditor/Index.vue +70 -310
  52. package/src/components/form/inputs/CodeEditor/SearchPanel.vue +124 -0
  53. package/src/components/form/inputs/CodeEditor/StructuredEditor.vue +266 -0
  54. package/src/components/form/inputs/CodeEditor/formatCode.ts +34 -0
  55. package/src/components/form/inputs/DatePicker.vue +4 -1
  56. package/src/components/form/inputs/RichText/index.vue +2 -1
  57. package/src/utils/calendarDate.ts +16 -0
  58. package/src/utils/date.ts +2 -1
  59. package/vite.config.ts +5 -3
  60. package/dist/components/form/inputs/CodeEditor/useHighlight.d.ts +0 -33
  61. package/dist/components/form/inputs/CodeEditor/useHighlight.d.ts.map +0 -1
  62. package/dist/index.css +0 -1
  63. package/src/components/form/inputs/CodeEditor/useHighlight.ts +0 -123
  64. /package/dist/{page-flip.browser-BXnk8BM6.js → page-flip.browser-0kqlwcC8.js} +0 -0
  65. /package/dist/{page-flip.browser-ByKQXhqK.cjs → page-flip.browser-Dfy5mAgM.cjs} +0 -0
  66. /package/dist/{pdf-CV7M2d0x.cjs → pdf-BBd7GH-5.cjs} +0 -0
  67. /package/dist/{pdf-DuN3_wNN.js → pdf-scP2ZqGZ.js} +0 -0
@@ -0,0 +1,1336 @@
1
+ import { D as ge, W as Se, _ as be, _t as he, ct as S, i as Te, m as Pe, o as xe, r as Ve, st as ve, w as H } from "./dist-IV7z-zur.js";
2
+ import { n as y, r as we, t as ye } from "./dist-Mr0UMyoK.js";
3
+ import { r as K, t as Xe } from "./dist-CwUttjIh.js";
4
+ import { c as $e, i as _e, n as qe, r as A, s as ke } from "./dist-BLxHnfU6.js";
5
+ var Ce = 55, Qe = 1, Ae = 56, Ye = 2, Me = 57, Re = 3, B = 4, Ee = 5, Y = 6, J = 7, ee = 8, te = 9, ae = 10, Ze = 11, Be = 12, ze = 13, X = 58, De = 14, We = 15, z = 59, le = 21, Ne = 23, re = 24, Ge = 25, C = 27, ne = 28, Ie = 29, je = 32, Ue = 35, Le = 37, Fe = 38, He = 0, Ke = 1, Je = {
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
+ }, et = {
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
+ }, D = {
38
+ dd: {
39
+ dd: !0,
40
+ dt: !0
41
+ },
42
+ dt: {
43
+ dd: !0,
44
+ dt: !0
45
+ },
46
+ li: { li: !0 },
47
+ option: {
48
+ option: !0,
49
+ optgroup: !0
50
+ },
51
+ optgroup: { optgroup: !0 },
52
+ p: {
53
+ address: !0,
54
+ article: !0,
55
+ aside: !0,
56
+ blockquote: !0,
57
+ dir: !0,
58
+ div: !0,
59
+ dl: !0,
60
+ fieldset: !0,
61
+ footer: !0,
62
+ form: !0,
63
+ h1: !0,
64
+ h2: !0,
65
+ h3: !0,
66
+ h4: !0,
67
+ h5: !0,
68
+ h6: !0,
69
+ header: !0,
70
+ hgroup: !0,
71
+ hr: !0,
72
+ menu: !0,
73
+ nav: !0,
74
+ ol: !0,
75
+ p: !0,
76
+ pre: !0,
77
+ section: !0,
78
+ table: !0,
79
+ ul: !0
80
+ },
81
+ rp: {
82
+ rp: !0,
83
+ rt: !0
84
+ },
85
+ rt: {
86
+ rp: !0,
87
+ rt: !0
88
+ },
89
+ tbody: {
90
+ tbody: !0,
91
+ tfoot: !0
92
+ },
93
+ td: {
94
+ td: !0,
95
+ th: !0
96
+ },
97
+ tfoot: { tbody: !0 },
98
+ th: {
99
+ td: !0,
100
+ th: !0
101
+ },
102
+ thead: {
103
+ tbody: !0,
104
+ tfoot: !0
105
+ },
106
+ tr: { tr: !0 }
107
+ };
108
+ function tt(e) {
109
+ return e == 45 || e == 46 || e == 58 || e >= 65 && e <= 90 || e == 95 || e >= 97 && e <= 122 || e >= 161;
110
+ }
111
+ var W = null, N = null, G = 0;
112
+ function Q(e, a) {
113
+ let r = e.pos + a;
114
+ if (G == r && N == e) return W;
115
+ let l = e.peek(a), t = "";
116
+ for (; tt(l); )
117
+ t += String.fromCharCode(l), l = e.peek(++a);
118
+ return N = e, G = r, W = t ? t.toLowerCase() : l == at || l == lt ? void 0 : null;
119
+ }
120
+ var se = 60, v = 62, M = 47, at = 63, lt = 33, rt = 45;
121
+ function I(e, a) {
122
+ this.name = e, this.parent = a;
123
+ }
124
+ var nt = [
125
+ Y,
126
+ ae,
127
+ J,
128
+ ee,
129
+ te
130
+ ], st = new ye({
131
+ start: null,
132
+ shift(e, a, r, l) {
133
+ return nt.indexOf(a) > -1 ? new I(Q(l, 1) || "", e) : e;
134
+ },
135
+ reduce(e, a) {
136
+ return a == le && e ? e.parent : e;
137
+ },
138
+ reuse(e, a, r, l) {
139
+ let t = a.type.id;
140
+ return t == Y || t == Le ? new I(Q(l, 1) || "", e) : e;
141
+ },
142
+ strict: !1
143
+ }), ot = new y((e, a) => {
144
+ if (e.next != se) {
145
+ e.next < 0 && a.context && e.acceptToken(X);
146
+ return;
147
+ }
148
+ e.advance();
149
+ let r = e.next == M;
150
+ r && e.advance();
151
+ let l = Q(e, 0);
152
+ if (l === void 0) return;
153
+ if (!l) return e.acceptToken(r ? We : De);
154
+ let t = a.context ? a.context.name : null;
155
+ if (r) {
156
+ if (l == t) return e.acceptToken(Ze);
157
+ if (t && et[t]) return e.acceptToken(X, -2);
158
+ if (a.dialectEnabled(He)) return e.acceptToken(Be);
159
+ for (let s = a.context; s; s = s.parent) if (s.name == l) return;
160
+ e.acceptToken(ze);
161
+ } else {
162
+ if (l == "script") return e.acceptToken(J);
163
+ if (l == "style") return e.acceptToken(ee);
164
+ if (l == "textarea") return e.acceptToken(te);
165
+ if (Je.hasOwnProperty(l)) return e.acceptToken(ae);
166
+ t && D[t] && D[t][l] ? e.acceptToken(X, -1) : e.acceptToken(Y);
167
+ }
168
+ }, { contextual: !0 }), it = new y((e) => {
169
+ for (let a = 0, r = 0; ; r++) {
170
+ if (e.next < 0) {
171
+ r && e.acceptToken(z);
172
+ break;
173
+ }
174
+ if (e.next == rt) a++;
175
+ else if (e.next == v && a >= 2) {
176
+ r >= 3 && e.acceptToken(z, -2);
177
+ break;
178
+ } else a = 0;
179
+ e.advance();
180
+ }
181
+ });
182
+ function ut(e) {
183
+ for (; e; e = e.parent) if (e.name == "svg" || e.name == "math") return !0;
184
+ return !1;
185
+ }
186
+ var Ot = new y((e, a) => {
187
+ if (e.next == M && e.peek(1) == v) {
188
+ let r = a.dialectEnabled(Ke) || ut(a.context);
189
+ e.acceptToken(r ? Ee : B, 2);
190
+ } else e.next == v && e.acceptToken(B, 1);
191
+ });
192
+ function R(e, a, r) {
193
+ let l = 2 + e.length;
194
+ return new y((t) => {
195
+ for (let s = 0, o = 0, i = 0; ; i++) {
196
+ if (t.next < 0) {
197
+ i && t.acceptToken(a);
198
+ break;
199
+ }
200
+ if (s == 0 && t.next == se || s == 1 && t.next == M || s >= 2 && s < l && t.next == e.charCodeAt(s - 2))
201
+ s++, o++;
202
+ else if (s == l && t.next == v) {
203
+ i > o ? t.acceptToken(a, -o) : t.acceptToken(r, -(o - 2));
204
+ break;
205
+ } else if ((t.next == 10 || t.next == 13) && i) {
206
+ t.acceptToken(a, 1);
207
+ break;
208
+ } else s = o = 0;
209
+ t.advance();
210
+ }
211
+ });
212
+ }
213
+ var dt = R("script", Ce, Qe), pt = R("style", Ae, Ye), ct = R("textarea", Me, Re), mt = ve({
214
+ "Text RawText IncompleteTag IncompleteCloseTag": S.content,
215
+ "StartTag StartCloseTag SelfClosingEndTag EndTag": S.angleBracket,
216
+ TagName: S.tagName,
217
+ "MismatchedCloseTag/TagName": [S.tagName, S.invalid],
218
+ AttributeName: S.attributeName,
219
+ "AttributeValue UnquotedAttributeValue": S.attributeValue,
220
+ Is: S.definitionOperator,
221
+ "EntityReference CharacterReference": S.character,
222
+ Comment: S.blockComment,
223
+ ProcessingInst: S.processingInstruction,
224
+ DoctypeDecl: S.documentMeta
225
+ }), ft = we.deserialize({
226
+ version: 14,
227
+ 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'#CqO$rO$fO'#DUO$zQ#tO'#DWO%PQ#tO'#DXOOO`'#Dl'#DlOOO`'#DZ'#DZQVO!rOOO%UQ&rO,59^O%aQ&rO,59gO%lQ&rO,59jO%wQ&rO,59mO&SQ&rO,59oOOOa'#D_'#D_O&_OaO'#CyO&jOaO,59]OOOb'#D`'#D`O&rObO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OPmX![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~",
229
+ 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",
230
+ 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",
231
+ maxTerm: 68,
232
+ context: st,
233
+ nodeProps: [
234
+ [
235
+ "closedBy",
236
+ -10,
237
+ 1,
238
+ 2,
239
+ 3,
240
+ 7,
241
+ 8,
242
+ 9,
243
+ 10,
244
+ 11,
245
+ 12,
246
+ 13,
247
+ "EndTag",
248
+ 6,
249
+ "EndTag SelfClosingEndTag",
250
+ -4,
251
+ 22,
252
+ 31,
253
+ 34,
254
+ 37,
255
+ "CloseTag"
256
+ ],
257
+ [
258
+ "openedBy",
259
+ 4,
260
+ "StartTag StartCloseTag",
261
+ 5,
262
+ "StartTag",
263
+ -4,
264
+ 30,
265
+ 33,
266
+ 36,
267
+ 38,
268
+ "OpenTag"
269
+ ],
270
+ [
271
+ "group",
272
+ -10,
273
+ 14,
274
+ 15,
275
+ 18,
276
+ 19,
277
+ 20,
278
+ 21,
279
+ 40,
280
+ 41,
281
+ 42,
282
+ 43,
283
+ "Entity",
284
+ 17,
285
+ "Entity TextContent",
286
+ -3,
287
+ 29,
288
+ 32,
289
+ 35,
290
+ "TextContent Entity"
291
+ ],
292
+ [
293
+ "isolate",
294
+ -11,
295
+ 22,
296
+ 30,
297
+ 31,
298
+ 33,
299
+ 34,
300
+ 36,
301
+ 37,
302
+ 38,
303
+ 39,
304
+ 42,
305
+ 43,
306
+ "ltr",
307
+ -3,
308
+ 27,
309
+ 28,
310
+ 40,
311
+ ""
312
+ ]
313
+ ],
314
+ propSources: [mt],
315
+ skippedNodes: [0],
316
+ repeatNodeCount: 9,
317
+ 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!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+ dt,
320
+ pt,
321
+ ct,
322
+ Ot,
323
+ ot,
324
+ it,
325
+ 0,
326
+ 1,
327
+ 2,
328
+ 3,
329
+ 4,
330
+ 5
331
+ ],
332
+ topRules: { Document: [0, 16] },
333
+ dialects: {
334
+ noMatch: 0,
335
+ selfClosing: 515
336
+ },
337
+ tokenPrec: 517
338
+ });
339
+ function oe(e, a) {
340
+ let r = /* @__PURE__ */ Object.create(null);
341
+ for (let l of e.getChildren(re)) {
342
+ let t = l.getChild(Ge), s = l.getChild(C) || l.getChild(ne);
343
+ t && (r[a.read(t.from, t.to)] = s ? s.type.id == C ? a.read(s.from + 1, s.to - 1) : a.read(s.from, s.to) : "");
344
+ }
345
+ return r;
346
+ }
347
+ function j(e, a) {
348
+ let r = e.getChild(Ne);
349
+ return r ? a.read(r.from, r.to) : " ";
350
+ }
351
+ function $(e, a, r) {
352
+ let l;
353
+ for (let t of r) if (!t.attrs || t.attrs(l || (l = oe(e.node.parent.firstChild, a)))) return {
354
+ parser: t.parser,
355
+ bracketed: !0
356
+ };
357
+ return null;
358
+ }
359
+ function ie(e = [], a = []) {
360
+ let r = [], l = [], t = [], s = [];
361
+ for (let i of e) (i.tag == "script" ? r : i.tag == "style" ? l : i.tag == "textarea" ? t : s).push(i);
362
+ let o = a.length ? /* @__PURE__ */ Object.create(null) : null;
363
+ for (let i of a) (o[i.name] || (o[i.name] = [])).push(i);
364
+ return he((i, O) => {
365
+ let g = i.type.id;
366
+ if (g == Ie) return $(i, O, r);
367
+ if (g == je) return $(i, O, l);
368
+ if (g == Ue) return $(i, O, t);
369
+ if (g == le && s.length) {
370
+ let m = i.node, u = m.firstChild, p = u && j(u, O), c;
371
+ if (p) {
372
+ for (let d of s) if (d.tag == p && (!d.attrs || d.attrs(c || (c = oe(u, O))))) {
373
+ let h = m.lastChild, b = h.type.id == Fe ? h.from : m.to;
374
+ if (b > u.to) return {
375
+ parser: d.parser,
376
+ overlay: [{
377
+ from: u.to,
378
+ to: b
379
+ }]
380
+ };
381
+ }
382
+ }
383
+ }
384
+ if (o && g == re) {
385
+ let m = i.node, u;
386
+ if (u = m.firstChild) {
387
+ let p = o[O.read(u.from, u.to)];
388
+ if (p) for (let c of p) {
389
+ if (c.tagName && c.tagName != j(m.parent, O)) continue;
390
+ let d = m.lastChild;
391
+ if (d.type.id == C) {
392
+ let h = d.from + 1, b = d.lastChild, Z = d.to - (b && b.isError ? 0 : 1);
393
+ if (Z > h) return {
394
+ parser: c.parser,
395
+ overlay: [{
396
+ from: h,
397
+ to: Z
398
+ }],
399
+ bracketed: !0
400
+ };
401
+ } else if (d.type.id == ne) return {
402
+ parser: c.parser,
403
+ overlay: [{
404
+ from: d.from,
405
+ to: d.to
406
+ }]
407
+ };
408
+ }
409
+ }
410
+ }
411
+ return null;
412
+ });
413
+ }
414
+ var x = [
415
+ "_blank",
416
+ "_self",
417
+ "_top",
418
+ "_parent"
419
+ ], _ = [
420
+ "ascii",
421
+ "utf-8",
422
+ "utf-16",
423
+ "latin1",
424
+ "latin1"
425
+ ], q = [
426
+ "get",
427
+ "post",
428
+ "put",
429
+ "delete"
430
+ ], k = [
431
+ "application/x-www-form-urlencoded",
432
+ "multipart/form-data",
433
+ "text/plain"
434
+ ], f = ["true", "false"], n = {}, gt = {
435
+ a: { attrs: {
436
+ href: null,
437
+ ping: null,
438
+ type: null,
439
+ media: null,
440
+ target: x,
441
+ hreflang: null
442
+ } },
443
+ abbr: n,
444
+ address: n,
445
+ area: { attrs: {
446
+ alt: null,
447
+ coords: null,
448
+ href: null,
449
+ target: null,
450
+ ping: null,
451
+ media: null,
452
+ hreflang: null,
453
+ type: null,
454
+ shape: [
455
+ "default",
456
+ "rect",
457
+ "circle",
458
+ "poly"
459
+ ]
460
+ } },
461
+ article: n,
462
+ aside: n,
463
+ audio: { attrs: {
464
+ src: null,
465
+ mediagroup: null,
466
+ crossorigin: ["anonymous", "use-credentials"],
467
+ preload: [
468
+ "none",
469
+ "metadata",
470
+ "auto"
471
+ ],
472
+ autoplay: ["autoplay"],
473
+ loop: ["loop"],
474
+ controls: ["controls"]
475
+ } },
476
+ b: n,
477
+ base: { attrs: {
478
+ href: null,
479
+ target: x
480
+ } },
481
+ bdi: n,
482
+ bdo: n,
483
+ blockquote: { attrs: { cite: null } },
484
+ body: n,
485
+ br: n,
486
+ button: { attrs: {
487
+ form: null,
488
+ formaction: null,
489
+ name: null,
490
+ value: null,
491
+ autofocus: ["autofocus"],
492
+ disabled: ["autofocus"],
493
+ formenctype: k,
494
+ formmethod: q,
495
+ formnovalidate: ["novalidate"],
496
+ formtarget: x,
497
+ type: [
498
+ "submit",
499
+ "reset",
500
+ "button"
501
+ ]
502
+ } },
503
+ canvas: { attrs: {
504
+ width: null,
505
+ height: null
506
+ } },
507
+ caption: n,
508
+ center: n,
509
+ cite: n,
510
+ code: n,
511
+ col: { attrs: { span: null } },
512
+ colgroup: { attrs: { span: null } },
513
+ command: { attrs: {
514
+ type: [
515
+ "command",
516
+ "checkbox",
517
+ "radio"
518
+ ],
519
+ label: null,
520
+ icon: null,
521
+ radiogroup: null,
522
+ command: null,
523
+ title: null,
524
+ disabled: ["disabled"],
525
+ checked: ["checked"]
526
+ } },
527
+ data: { attrs: { value: null } },
528
+ datagrid: { attrs: {
529
+ disabled: ["disabled"],
530
+ multiple: ["multiple"]
531
+ } },
532
+ datalist: { attrs: { data: null } },
533
+ dd: n,
534
+ del: { attrs: {
535
+ cite: null,
536
+ datetime: null
537
+ } },
538
+ details: { attrs: { open: ["open"] } },
539
+ dfn: n,
540
+ div: n,
541
+ dl: n,
542
+ dt: n,
543
+ em: n,
544
+ embed: { attrs: {
545
+ src: null,
546
+ type: null,
547
+ width: null,
548
+ height: null
549
+ } },
550
+ eventsource: { attrs: { src: null } },
551
+ fieldset: { attrs: {
552
+ disabled: ["disabled"],
553
+ form: null,
554
+ name: null
555
+ } },
556
+ figcaption: n,
557
+ figure: n,
558
+ footer: n,
559
+ form: { attrs: {
560
+ action: null,
561
+ name: null,
562
+ "accept-charset": _,
563
+ autocomplete: ["on", "off"],
564
+ enctype: k,
565
+ method: q,
566
+ novalidate: ["novalidate"],
567
+ target: x
568
+ } },
569
+ h1: n,
570
+ h2: n,
571
+ h3: n,
572
+ h4: n,
573
+ h5: n,
574
+ h6: n,
575
+ head: { children: [
576
+ "title",
577
+ "base",
578
+ "link",
579
+ "style",
580
+ "meta",
581
+ "script",
582
+ "noscript",
583
+ "command"
584
+ ] },
585
+ header: n,
586
+ hgroup: n,
587
+ hr: n,
588
+ html: { attrs: { manifest: null } },
589
+ i: n,
590
+ iframe: { attrs: {
591
+ src: null,
592
+ srcdoc: null,
593
+ name: null,
594
+ width: null,
595
+ height: null,
596
+ sandbox: [
597
+ "allow-top-navigation",
598
+ "allow-same-origin",
599
+ "allow-forms",
600
+ "allow-scripts"
601
+ ],
602
+ seamless: ["seamless"]
603
+ } },
604
+ img: { attrs: {
605
+ alt: null,
606
+ src: null,
607
+ ismap: null,
608
+ usemap: null,
609
+ width: null,
610
+ height: null,
611
+ crossorigin: ["anonymous", "use-credentials"]
612
+ } },
613
+ input: { attrs: {
614
+ alt: null,
615
+ dirname: null,
616
+ form: null,
617
+ formaction: null,
618
+ height: null,
619
+ list: null,
620
+ max: null,
621
+ maxlength: null,
622
+ min: null,
623
+ name: null,
624
+ pattern: null,
625
+ placeholder: null,
626
+ size: null,
627
+ src: null,
628
+ step: null,
629
+ value: null,
630
+ width: null,
631
+ accept: [
632
+ "audio/*",
633
+ "video/*",
634
+ "image/*"
635
+ ],
636
+ autocomplete: ["on", "off"],
637
+ autofocus: ["autofocus"],
638
+ checked: ["checked"],
639
+ disabled: ["disabled"],
640
+ formenctype: k,
641
+ formmethod: q,
642
+ formnovalidate: ["novalidate"],
643
+ formtarget: x,
644
+ multiple: ["multiple"],
645
+ readonly: ["readonly"],
646
+ required: ["required"],
647
+ type: [
648
+ "hidden",
649
+ "text",
650
+ "search",
651
+ "tel",
652
+ "url",
653
+ "email",
654
+ "password",
655
+ "datetime",
656
+ "date",
657
+ "month",
658
+ "week",
659
+ "time",
660
+ "datetime-local",
661
+ "number",
662
+ "range",
663
+ "color",
664
+ "checkbox",
665
+ "radio",
666
+ "file",
667
+ "submit",
668
+ "image",
669
+ "reset",
670
+ "button"
671
+ ]
672
+ } },
673
+ ins: { attrs: {
674
+ cite: null,
675
+ datetime: null
676
+ } },
677
+ kbd: n,
678
+ keygen: { attrs: {
679
+ challenge: null,
680
+ form: null,
681
+ name: null,
682
+ autofocus: ["autofocus"],
683
+ disabled: ["disabled"],
684
+ keytype: ["RSA"]
685
+ } },
686
+ label: { attrs: {
687
+ for: null,
688
+ form: null
689
+ } },
690
+ legend: n,
691
+ li: { attrs: { value: null } },
692
+ link: { attrs: {
693
+ href: null,
694
+ type: null,
695
+ hreflang: null,
696
+ media: null,
697
+ sizes: [
698
+ "all",
699
+ "16x16",
700
+ "16x16 32x32",
701
+ "16x16 32x32 64x64"
702
+ ]
703
+ } },
704
+ map: { attrs: { name: null } },
705
+ mark: n,
706
+ menu: { attrs: {
707
+ label: null,
708
+ type: [
709
+ "list",
710
+ "context",
711
+ "toolbar"
712
+ ]
713
+ } },
714
+ meta: { attrs: {
715
+ content: null,
716
+ charset: _,
717
+ name: [
718
+ "viewport",
719
+ "application-name",
720
+ "author",
721
+ "description",
722
+ "generator",
723
+ "keywords"
724
+ ],
725
+ "http-equiv": [
726
+ "content-language",
727
+ "content-type",
728
+ "default-style",
729
+ "refresh"
730
+ ]
731
+ } },
732
+ meter: { attrs: {
733
+ value: null,
734
+ min: null,
735
+ low: null,
736
+ high: null,
737
+ max: null,
738
+ optimum: null
739
+ } },
740
+ nav: n,
741
+ noscript: n,
742
+ object: { attrs: {
743
+ data: null,
744
+ type: null,
745
+ name: null,
746
+ usemap: null,
747
+ form: null,
748
+ width: null,
749
+ height: null,
750
+ typemustmatch: ["typemustmatch"]
751
+ } },
752
+ ol: {
753
+ attrs: {
754
+ reversed: ["reversed"],
755
+ start: null,
756
+ type: [
757
+ "1",
758
+ "a",
759
+ "A",
760
+ "i",
761
+ "I"
762
+ ]
763
+ },
764
+ children: [
765
+ "li",
766
+ "script",
767
+ "template",
768
+ "ul",
769
+ "ol"
770
+ ]
771
+ },
772
+ optgroup: { attrs: {
773
+ disabled: ["disabled"],
774
+ label: null
775
+ } },
776
+ option: { attrs: {
777
+ disabled: ["disabled"],
778
+ label: null,
779
+ selected: ["selected"],
780
+ value: null
781
+ } },
782
+ output: { attrs: {
783
+ for: null,
784
+ form: null,
785
+ name: null
786
+ } },
787
+ p: n,
788
+ param: { attrs: {
789
+ name: null,
790
+ value: null
791
+ } },
792
+ pre: n,
793
+ progress: { attrs: {
794
+ value: null,
795
+ max: null
796
+ } },
797
+ q: { attrs: { cite: null } },
798
+ rp: n,
799
+ rt: n,
800
+ ruby: n,
801
+ samp: n,
802
+ script: { attrs: {
803
+ type: ["text/javascript"],
804
+ src: null,
805
+ async: ["async"],
806
+ defer: ["defer"],
807
+ charset: _
808
+ } },
809
+ section: n,
810
+ select: { attrs: {
811
+ form: null,
812
+ name: null,
813
+ size: null,
814
+ autofocus: ["autofocus"],
815
+ disabled: ["disabled"],
816
+ multiple: ["multiple"]
817
+ } },
818
+ slot: { attrs: { name: null } },
819
+ small: n,
820
+ source: { attrs: {
821
+ src: null,
822
+ type: null,
823
+ media: null
824
+ } },
825
+ span: n,
826
+ strong: n,
827
+ style: { attrs: {
828
+ type: ["text/css"],
829
+ media: null,
830
+ scoped: null
831
+ } },
832
+ sub: n,
833
+ summary: n,
834
+ sup: n,
835
+ table: n,
836
+ tbody: n,
837
+ td: { attrs: {
838
+ colspan: null,
839
+ rowspan: null,
840
+ headers: null
841
+ } },
842
+ template: n,
843
+ textarea: { attrs: {
844
+ dirname: null,
845
+ form: null,
846
+ maxlength: null,
847
+ name: null,
848
+ placeholder: null,
849
+ rows: null,
850
+ cols: null,
851
+ autofocus: ["autofocus"],
852
+ disabled: ["disabled"],
853
+ readonly: ["readonly"],
854
+ required: ["required"],
855
+ wrap: ["soft", "hard"]
856
+ } },
857
+ tfoot: n,
858
+ th: { attrs: {
859
+ colspan: null,
860
+ rowspan: null,
861
+ headers: null,
862
+ scope: [
863
+ "row",
864
+ "col",
865
+ "rowgroup",
866
+ "colgroup"
867
+ ]
868
+ } },
869
+ thead: n,
870
+ time: { attrs: { datetime: null } },
871
+ title: n,
872
+ tr: n,
873
+ track: { attrs: {
874
+ src: null,
875
+ label: null,
876
+ default: null,
877
+ kind: [
878
+ "subtitles",
879
+ "captions",
880
+ "descriptions",
881
+ "chapters",
882
+ "metadata"
883
+ ],
884
+ srclang: null
885
+ } },
886
+ ul: { children: [
887
+ "li",
888
+ "script",
889
+ "template",
890
+ "ul",
891
+ "ol"
892
+ ] },
893
+ var: n,
894
+ video: { attrs: {
895
+ src: null,
896
+ poster: null,
897
+ width: null,
898
+ height: null,
899
+ crossorigin: ["anonymous", "use-credentials"],
900
+ preload: [
901
+ "auto",
902
+ "metadata",
903
+ "none"
904
+ ],
905
+ autoplay: ["autoplay"],
906
+ mediagroup: ["movie"],
907
+ muted: ["muted"],
908
+ controls: ["controls"]
909
+ } },
910
+ wbr: n
911
+ }, ue = {
912
+ accesskey: null,
913
+ class: null,
914
+ contenteditable: f,
915
+ contextmenu: null,
916
+ dir: [
917
+ "ltr",
918
+ "rtl",
919
+ "auto"
920
+ ],
921
+ draggable: [
922
+ "true",
923
+ "false",
924
+ "auto"
925
+ ],
926
+ dropzone: [
927
+ "copy",
928
+ "move",
929
+ "link",
930
+ "string:",
931
+ "file:"
932
+ ],
933
+ hidden: ["hidden"],
934
+ id: null,
935
+ inert: ["inert"],
936
+ itemid: null,
937
+ itemprop: null,
938
+ itemref: null,
939
+ itemscope: ["itemscope"],
940
+ itemtype: null,
941
+ lang: [
942
+ "ar",
943
+ "bn",
944
+ "de",
945
+ "en-GB",
946
+ "en-US",
947
+ "es",
948
+ "fr",
949
+ "hi",
950
+ "id",
951
+ "ja",
952
+ "pa",
953
+ "pt",
954
+ "ru",
955
+ "tr",
956
+ "zh"
957
+ ],
958
+ spellcheck: f,
959
+ autocorrect: f,
960
+ autocapitalize: f,
961
+ style: null,
962
+ tabindex: null,
963
+ title: null,
964
+ translate: ["yes", "no"],
965
+ rel: [
966
+ "stylesheet",
967
+ "alternate",
968
+ "author",
969
+ "bookmark",
970
+ "help",
971
+ "license",
972
+ "next",
973
+ "nofollow",
974
+ "noreferrer",
975
+ "prefetch",
976
+ "prev",
977
+ "search",
978
+ "tag"
979
+ ],
980
+ 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(" "),
981
+ "aria-activedescendant": null,
982
+ "aria-atomic": f,
983
+ "aria-autocomplete": [
984
+ "inline",
985
+ "list",
986
+ "both",
987
+ "none"
988
+ ],
989
+ "aria-busy": f,
990
+ "aria-checked": [
991
+ "true",
992
+ "false",
993
+ "mixed",
994
+ "undefined"
995
+ ],
996
+ "aria-controls": null,
997
+ "aria-describedby": null,
998
+ "aria-disabled": f,
999
+ "aria-dropeffect": null,
1000
+ "aria-expanded": [
1001
+ "true",
1002
+ "false",
1003
+ "undefined"
1004
+ ],
1005
+ "aria-flowto": null,
1006
+ "aria-grabbed": [
1007
+ "true",
1008
+ "false",
1009
+ "undefined"
1010
+ ],
1011
+ "aria-haspopup": f,
1012
+ "aria-hidden": f,
1013
+ "aria-invalid": [
1014
+ "true",
1015
+ "false",
1016
+ "grammar",
1017
+ "spelling"
1018
+ ],
1019
+ "aria-label": null,
1020
+ "aria-labelledby": null,
1021
+ "aria-level": null,
1022
+ "aria-live": [
1023
+ "off",
1024
+ "polite",
1025
+ "assertive"
1026
+ ],
1027
+ "aria-multiline": f,
1028
+ "aria-multiselectable": f,
1029
+ "aria-owns": null,
1030
+ "aria-posinset": null,
1031
+ "aria-pressed": [
1032
+ "true",
1033
+ "false",
1034
+ "mixed",
1035
+ "undefined"
1036
+ ],
1037
+ "aria-readonly": f,
1038
+ "aria-relevant": null,
1039
+ "aria-required": f,
1040
+ "aria-selected": [
1041
+ "true",
1042
+ "false",
1043
+ "undefined"
1044
+ ],
1045
+ "aria-setsize": null,
1046
+ "aria-sort": [
1047
+ "ascending",
1048
+ "descending",
1049
+ "none",
1050
+ "other"
1051
+ ],
1052
+ "aria-valuemax": null,
1053
+ "aria-valuemin": null,
1054
+ "aria-valuenow": null,
1055
+ "aria-valuetext": null
1056
+ }, Oe = /* @__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);
1057
+ for (let e of Oe) ue[e] = null;
1058
+ var w = class {
1059
+ constructor(e, a) {
1060
+ this.tags = {
1061
+ ...gt,
1062
+ ...e
1063
+ }, this.globalAttrs = {
1064
+ ...ue,
1065
+ ...a
1066
+ }, this.allTags = Object.keys(this.tags), this.globalAttrNames = Object.keys(this.globalAttrs);
1067
+ }
1068
+ };
1069
+ w.default = /* @__PURE__ */ new w();
1070
+ function T(e, a, r = e.length) {
1071
+ if (!a) return "";
1072
+ let l = a.firstChild, t = l && l.getChild("TagName");
1073
+ return t ? e.sliceString(t.from, Math.min(t.to, r)) : "";
1074
+ }
1075
+ function P(e, a = !1) {
1076
+ for (; e; e = e.parent) if (e.name == "Element") if (a) a = !1;
1077
+ else return e;
1078
+ return null;
1079
+ }
1080
+ function de(e, a, r) {
1081
+ let l = r.tags[T(e, P(a))];
1082
+ return l?.children || r.allTags;
1083
+ }
1084
+ function E(e, a) {
1085
+ let r = [];
1086
+ for (let l = P(a); l && !l.type.isTop; l = P(l.parent)) {
1087
+ let t = T(e, l);
1088
+ if (t && l.lastChild.name == "CloseTag") break;
1089
+ t && r.indexOf(t) < 0 && (a.name == "EndTag" || a.from >= l.firstChild.to) && r.push(t);
1090
+ }
1091
+ return r;
1092
+ }
1093
+ var pe = /^[:\-\.\w\u00b7-\uffff]*$/;
1094
+ function U(e, a, r, l, t) {
1095
+ let s = /\s*>/.test(e.sliceDoc(t, t + 5)) ? "" : ">", o = P(r, r.name == "StartTag" || r.name == "TagName");
1096
+ return {
1097
+ from: l,
1098
+ to: t,
1099
+ options: de(e.doc, o, a).map((i) => ({
1100
+ label: i,
1101
+ type: "type"
1102
+ })).concat(E(e.doc, r).map((i, O) => ({
1103
+ label: "/" + i,
1104
+ apply: "/" + i + s,
1105
+ type: "type",
1106
+ boost: 99 - O
1107
+ }))),
1108
+ validFor: /^\/?[:\-\.\w\u00b7-\uffff]*$/
1109
+ };
1110
+ }
1111
+ function L(e, a, r, l) {
1112
+ let t = /\s*>/.test(e.sliceDoc(l, l + 5)) ? "" : ">";
1113
+ return {
1114
+ from: r,
1115
+ to: l,
1116
+ options: E(e.doc, a).map((s, o) => ({
1117
+ label: s,
1118
+ apply: s + t,
1119
+ type: "type",
1120
+ boost: 99 - o
1121
+ })),
1122
+ validFor: pe
1123
+ };
1124
+ }
1125
+ function St(e, a, r, l) {
1126
+ let t = [], s = 0;
1127
+ for (let o of de(e.doc, r, a)) t.push({
1128
+ label: "<" + o,
1129
+ type: "type"
1130
+ });
1131
+ for (let o of E(e.doc, r)) t.push({
1132
+ label: "</" + o + ">",
1133
+ type: "type",
1134
+ boost: 99 - s++
1135
+ });
1136
+ return {
1137
+ from: l,
1138
+ to: l,
1139
+ options: t,
1140
+ validFor: /^<\/?[:\-\.\w\u00b7-\uffff]*$/
1141
+ };
1142
+ }
1143
+ function bt(e, a, r, l, t) {
1144
+ let s = P(r), o = s ? a.tags[T(e.doc, s)] : null, i = o && o.attrs ? Object.keys(o.attrs) : [];
1145
+ return {
1146
+ from: l,
1147
+ to: t,
1148
+ options: (o && o.globalAttrs === !1 ? i : i.length ? i.concat(a.globalAttrNames) : a.globalAttrNames).map((O) => ({
1149
+ label: O,
1150
+ type: "property"
1151
+ })),
1152
+ validFor: pe
1153
+ };
1154
+ }
1155
+ function ht(e, a, r, l, t) {
1156
+ var s;
1157
+ let o = (s = r.parent) === null || s === void 0 ? void 0 : s.getChild("AttributeName"), i = [], O;
1158
+ if (o) {
1159
+ let g = e.sliceDoc(o.from, o.to), m = a.globalAttrs[g];
1160
+ if (!m) {
1161
+ let u = P(r), p = u ? a.tags[T(e.doc, u)] : null;
1162
+ m = p?.attrs && p.attrs[g];
1163
+ }
1164
+ if (m) {
1165
+ let u = e.sliceDoc(l, t).toLowerCase(), p = '"', c = '"';
1166
+ /^['"]/.test(u) ? (O = u[0] == '"' ? /^[^"]*$/ : /^[^']*$/, p = "", c = e.sliceDoc(t, t + 1) == u[0] ? "" : u[0], u = u.slice(1), l++) : O = /^[^\s<>='"]*$/;
1167
+ for (let d of m) i.push({
1168
+ label: d,
1169
+ apply: p + d + c,
1170
+ type: "constant"
1171
+ });
1172
+ }
1173
+ }
1174
+ return {
1175
+ from: l,
1176
+ to: t,
1177
+ options: i,
1178
+ validFor: O
1179
+ };
1180
+ }
1181
+ function Tt(e, a) {
1182
+ let { state: r, pos: l } = a, t = H(r).resolveInner(l, -1), s = t.resolve(l);
1183
+ for (let o = l, i; s == t && (i = t.childBefore(o)); ) {
1184
+ let O = i.lastChild;
1185
+ if (!O || !O.type.isError || O.from < O.to) break;
1186
+ s = t = i, o = O.from;
1187
+ }
1188
+ return t.name == "TagName" ? t.parent && /CloseTag$/.test(t.parent.name) ? L(r, t, t.from, l) : U(r, e, t, t.from, l) : t.name == "StartTag" || t.name == "IncompleteTag" ? U(r, e, t, l, l) : t.name == "StartCloseTag" || t.name == "IncompleteCloseTag" ? L(r, t, l, l) : t.name == "OpenTag" || t.name == "SelfClosingTag" || t.name == "AttributeName" ? bt(r, e, t, t.name == "AttributeName" ? t.from : l, l) : t.name == "Is" || t.name == "AttributeValue" || t.name == "UnquotedAttributeValue" ? ht(r, e, t, t.name == "Is" ? l : t.from, l) : a.explicit && (s.name == "Element" || s.name == "Text" || s.name == "Document") ? St(r, e, t, l) : null;
1189
+ }
1190
+ function Pt(e) {
1191
+ let { extraTags: a, extraGlobalAttributes: r } = e, l = r || a ? new w(a, r) : w.default;
1192
+ return (t) => Tt(l, t);
1193
+ }
1194
+ var xt = /* @__PURE__ */ A.parser.configure({ top: "SingleExpression" }), ce = [
1195
+ {
1196
+ tag: "script",
1197
+ attrs: (e) => e.type == "text/typescript" || e.lang == "ts",
1198
+ parser: $e.parser
1199
+ },
1200
+ {
1201
+ tag: "script",
1202
+ attrs: (e) => e.type == "text/babel" || e.type == "text/jsx",
1203
+ parser: _e.parser
1204
+ },
1205
+ {
1206
+ tag: "script",
1207
+ attrs: (e) => e.type == "text/typescript-jsx",
1208
+ parser: ke.parser
1209
+ },
1210
+ {
1211
+ tag: "script",
1212
+ attrs(e) {
1213
+ return /^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(e.type);
1214
+ },
1215
+ parser: xt
1216
+ },
1217
+ {
1218
+ tag: "script",
1219
+ attrs(e) {
1220
+ return !e.type || /^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type);
1221
+ },
1222
+ parser: A.parser
1223
+ },
1224
+ {
1225
+ tag: "style",
1226
+ attrs(e) {
1227
+ return (!e.lang || e.lang == "css") && (!e.type || /^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type));
1228
+ },
1229
+ parser: K.parser
1230
+ }
1231
+ ], me = /* @__PURE__ */ [{
1232
+ name: "style",
1233
+ parser: /* @__PURE__ */ K.parser.configure({ top: "Styles" })
1234
+ }].concat(/* @__PURE__ */ Oe.map((e) => ({
1235
+ name: e,
1236
+ parser: A.parser
1237
+ }))), fe = /* @__PURE__ */ Ve.define({
1238
+ name: "html",
1239
+ parser: /* @__PURE__ */ ft.configure({ props: [
1240
+ /* @__PURE__ */ be.add({
1241
+ Element(e) {
1242
+ let a = /^(\s*)(<\/)?/.exec(e.textAfter);
1243
+ return e.node.to <= e.pos + a[0].length ? e.continue() : e.lineIndent(e.node.from) + (a[2] ? 0 : e.unit);
1244
+ },
1245
+ "OpenTag CloseTag SelfClosingTag"(e) {
1246
+ return e.column(e.node.from) + e.unit;
1247
+ },
1248
+ Document(e) {
1249
+ if (e.pos + /\s*/.exec(e.textAfter)[0].length < e.node.to) return e.continue();
1250
+ let a = null, r;
1251
+ for (let l = e.node; ; ) {
1252
+ let t = l.lastChild;
1253
+ if (!t || t.name != "Element" || t.to != l.to) break;
1254
+ a = l = t;
1255
+ }
1256
+ return a && !((r = a.lastChild) && (r.name == "CloseTag" || r.name == "SelfClosingTag")) ? e.lineIndent(a.from) + e.unit : null;
1257
+ }
1258
+ }),
1259
+ /* @__PURE__ */ Pe.add({ Element(e) {
1260
+ let a = e.firstChild, r = e.lastChild;
1261
+ return !a || a.name != "OpenTag" ? null : {
1262
+ from: a.to,
1263
+ to: r.name == "CloseTag" ? r.from : e.to
1264
+ };
1265
+ } }),
1266
+ /* @__PURE__ */ xe.add({ "OpenTag CloseTag": (e) => e.getChild("TagName") })
1267
+ ] }),
1268
+ languageData: {
1269
+ commentTokens: { block: {
1270
+ open: "<!--",
1271
+ close: "-->"
1272
+ } },
1273
+ indentOnInput: /^\s*<\/\w+\W$/,
1274
+ wordChars: "-_"
1275
+ }
1276
+ }), V = /* @__PURE__ */ fe.configure({ wrap: /* @__PURE__ */ ie(ce, me) });
1277
+ function _t(e = {}) {
1278
+ let a = "", r;
1279
+ return e.matchClosingTags === !1 && (a = "noMatch"), e.selfClosingTags === !0 && (a = (a ? a + " " : "") + "selfClosing"), (e.nestedLanguages && e.nestedLanguages.length || e.nestedAttributes && e.nestedAttributes.length) && (r = ie((e.nestedLanguages || []).concat(ce), (e.nestedAttributes || []).concat(me))), new Te(r ? fe.configure({
1280
+ wrap: r,
1281
+ dialect: a
1282
+ }) : a ? V.configure({ dialect: a }) : V, [
1283
+ V.data.of({ autocomplete: Pt(e) }),
1284
+ e.autoCloseTags !== !1 ? vt : [],
1285
+ qe().support,
1286
+ Xe().support
1287
+ ]);
1288
+ }
1289
+ var F = /* @__PURE__ */ new Set(/* @__PURE__ */ "area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" "));
1290
+ function Vt(e, a, r) {
1291
+ for (var l; ; ) {
1292
+ if (((l = a.lastChild) === null || l === void 0 ? void 0 : l.name) != "CloseTag") return !1;
1293
+ let t = a.parent;
1294
+ if (!t || T(e, t) != r) return !0;
1295
+ a = t;
1296
+ }
1297
+ }
1298
+ var vt = /* @__PURE__ */ ge.inputHandler.of((e, a, r, l, t) => {
1299
+ if (e.composing || e.state.readOnly || a != r || l != ">" && l != "/" || !V.isActiveAt(e.state, a, -1)) return !1;
1300
+ let s = t(), { state: o } = s, i = o.changeByRange((O) => {
1301
+ var g;
1302
+ let m = o.doc.sliceString(O.from - 1, O.to) == l, { head: u } = O, p = H(o).resolveInner(u, -1), c;
1303
+ if (m && l == ">" && p.name == "EndTag") {
1304
+ let d = p.parent;
1305
+ if ((c = T(o.doc, d.parent, u)) && !F.has(c) && !Vt(o.doc, d.parent, c)) return {
1306
+ range: O,
1307
+ changes: {
1308
+ from: u,
1309
+ to: u + (o.doc.sliceString(u, u + 1) === ">" ? 1 : 0),
1310
+ insert: `</${c}>`
1311
+ }
1312
+ };
1313
+ } else if (m && l == "/" && p.name == "IncompleteCloseTag") {
1314
+ let d = p.parent;
1315
+ if (p.from == u - 2 && ((g = d.lastChild) === null || g === void 0 ? void 0 : g.name) != "CloseTag" && (c = T(o.doc, d, u)) && !F.has(c)) {
1316
+ let h = u + (o.doc.sliceString(u, u + 1) === ">" ? 1 : 0), b = `${c}>`;
1317
+ return {
1318
+ range: Se.cursor(u + b.length, -1),
1319
+ changes: {
1320
+ from: u,
1321
+ to: h,
1322
+ insert: b
1323
+ }
1324
+ };
1325
+ }
1326
+ }
1327
+ return { range: O };
1328
+ });
1329
+ return i.changes.empty ? !1 : (e.dispatch([s, o.update(i, {
1330
+ userEvent: "input.complete",
1331
+ scrollIntoView: !0
1332
+ })]), !0);
1333
+ });
1334
+ export {
1335
+ _t as html
1336
+ };