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