@richmd/react 2.0.0-rc.2 → 2.0.0-rc.3
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/index.es.jsx +122 -122
- package/dist/index.umd.jsx +9 -9
- package/package.json +2 -2
package/dist/index.es.jsx
CHANGED
|
@@ -332,13 +332,13 @@ const xe = {
|
|
|
332
332
|
StartSlide: Rp,
|
|
333
333
|
EndSlide: Op,
|
|
334
334
|
Mode: cp
|
|
335
|
-
}, ll = /^(#{1,})\s(.+)$/, cl = /^(\s*)?(?:\-|\*)\s(.+)$/, dl = /^(\s*)?([0-9]+)\.\s(.+)$/, Ap = /^[\*\-_\s]+$/, Ip = /^[`~]{3}(.*)|[`~]{3}(.*)\b[\l]+\b\:\b[\u\l]+\b$/, _l = /^(>{1,})\s?(.+)$/, ul = /(?:\s*)?\|(.+)\|(?:\s*)$/, xp = /^[\$]{2}(.*)$/, Dp = /^[\$]{2}\s(.+)\s[\$]{2}$/, wp = /^[\=]{3}(.*)|[\=]{3}(.*)\b[\l]+\b$/, Mp = /^\:\>(\b[\w_\.\/]+\b|[\u3040-\u309F\u30A0-\u30FF\u3400-\u9FFF])+$/, Lp = /^\:\>$/, kp = /^\:\:\b[a-z]+\b|\:\:\b[a-z]+\b\.\b[a-z]+\b|\:\:\.\b[a-z]+\b$/, Pp = /^\:\:$/, Fp = /^\:use\sslide\:$/, Up = /^\:\-{3}\:(title|content)|\:\-{3}\:(title|content)\.\b[a-z]+\b$/, Bp = /^\:\<\-{2}\:(title|content)|\:\<\-{2}\:(title|content)\.\b[a-z]+\b$/, Gp = /^\:\-{2}\>\:(title|content)|\:\-{2}\>\:(title|content)\.\b[a-z]+\b$/, Yp = /^\:\-{3}\:$/,
|
|
336
|
-
let
|
|
335
|
+
}, ll = /^(#{1,})\s(.+)$/, cl = /^(\s*)?(?:\-|\*)\s(.+)$/, dl = /^(\s*)?([0-9]+)\.\s(.+)$/, Ap = /^[\*\-_\s]+$/, Ip = /^[`~]{3}(.*)|[`~]{3}(.*)\b[\l]+\b\:\b[\u\l]+\b$/, _l = /^(>{1,})\s?(.+)$/, ul = /(?:\s*)?\|(.+)\|(?:\s*)$/, xp = /^[\$]{2}(.*)$/, Dp = /^[\$]{2}\s(.+)\s[\$]{2}$/, wp = /^[\=]{3}(.*)|[\=]{3}(.*)\b[\l]+\b$/, Mp = /^\:\>(\b[\w_\.\/]+\b|[\u3040-\u309F\u30A0-\u30FF\u3400-\u9FFF])+$/, Lp = /^\:\>$/, kp = /^\:\:\b[a-z]+\b|\:\:\b[a-z]+\b\.\b[a-z]+\b|\:\:\.\b[a-z]+\b$/, Pp = /^\:\:$/, Fp = /^\:use\sslide\:$/, Up = /^\:\-{3}\:(title|content)|\:\-{3}\:(title|content)\.\b[a-z]+\b$/, Bp = /^\:\<\-{2}\:(title|content)|\:\<\-{2}\:(title|content)\.\b[a-z]+\b$/, Gp = /^\:\-{2}\>\:(title|content)|\:\-{2}\>\:(title|content)\.\b[a-z]+\b$/, Yp = /^\:\-{3}\:$/, Oe = 0, Ma = 1, ml = 2, pl = 3, lr = 4, gl = 0, El = 1;
|
|
336
|
+
let cr;
|
|
337
337
|
const zp = (t) => {
|
|
338
338
|
const e = [];
|
|
339
339
|
t && !/\n$/.test(t) && (t += `
|
|
340
340
|
`);
|
|
341
|
-
let r = "", a = "", n =
|
|
341
|
+
let r = "", a = "", n = Oe, i = gl, s = [], o, c = "", _ = "", u = "default";
|
|
342
342
|
const p = (E) => {
|
|
343
343
|
s.length > 0 && (e.push(new xe.Table(s)), s = []), nr.isEmpty(E) || e.push(new xe.Paragraph(E));
|
|
344
344
|
};
|
|
@@ -348,37 +348,37 @@ const zp = (t) => {
|
|
|
348
348
|
if (S === `
|
|
349
349
|
`) {
|
|
350
350
|
if (e.length === 0 && i === gl)
|
|
351
|
-
Fp.test(a) ? (e.push(new xe.Mode("slide")), i = El, n =
|
|
352
|
-
else if (n ===
|
|
351
|
+
Fp.test(a) ? (e.push(new xe.Mode("slide")), i = El, n = lr) : e.push(new xe.Mode("default"));
|
|
352
|
+
else if (n === lr && Up.test(a)) {
|
|
353
353
|
p(r);
|
|
354
354
|
const h = a.replace(/\:\-{3}:/, "").trim().split(".");
|
|
355
|
-
e.push(new xe.StartSlide("center", h[0], h[1] ?? "default")), n =
|
|
356
|
-
} else if (n ===
|
|
355
|
+
e.push(new xe.StartSlide("center", h[0], h[1] ?? "default")), n = Oe, r = "";
|
|
356
|
+
} else if (n === lr && Bp.test(a)) {
|
|
357
357
|
p(r);
|
|
358
358
|
const h = a.replace(/\:\<\-{2}:/, "").trim().split(".");
|
|
359
|
-
e.push(new xe.StartSlide("left", h[0], h[1] ?? "default")), n =
|
|
360
|
-
} else if (n ===
|
|
359
|
+
e.push(new xe.StartSlide("left", h[0], h[1] ?? "default")), n = Oe, r = "";
|
|
360
|
+
} else if (n === lr && Gp.test(a)) {
|
|
361
361
|
p(r);
|
|
362
362
|
const h = a.replace(/\:\-{2}\>:/, "").trim().split(".");
|
|
363
|
-
e.push(new xe.StartSlide("right", h[0], h[1] ?? "default")), n =
|
|
364
|
-
} else if (n ===
|
|
365
|
-
p(r), e.push(new xe.EndSlide()), n =
|
|
366
|
-
else if (n ===
|
|
363
|
+
e.push(new xe.StartSlide("right", h[0], h[1] ?? "default")), n = Oe, r = "";
|
|
364
|
+
} else if (n === Oe && Yp.test(a))
|
|
365
|
+
p(r), e.push(new xe.EndSlide()), n = lr, i = El, r = "";
|
|
366
|
+
else if (n === Oe && Mp.test(a)) {
|
|
367
367
|
p(r);
|
|
368
368
|
const h = a.replace(/\:\>/, "").trim();
|
|
369
369
|
e.push(new xe.StartDetails(h)), r = "";
|
|
370
|
-
} else if (n ===
|
|
370
|
+
} else if (n === Oe && Lp.test(a))
|
|
371
371
|
p(r), e.push(new xe.EndDetails()), r = "";
|
|
372
|
-
else if (n ===
|
|
372
|
+
else if (n === Oe && kp.test(a)) {
|
|
373
373
|
p(r);
|
|
374
374
|
const h = a.replace(/\:\:/, "").trim();
|
|
375
|
-
h ?
|
|
376
|
-
} else if (n ===
|
|
377
|
-
p(r), e.push(new xe.EndTag(
|
|
375
|
+
h ? cr = h.split(".") : cr = ["span", ""], e.push(new xe.StartTag(cr[0] ?? "span", cr[1])), r = "";
|
|
376
|
+
} else if (n === Oe && Pp.test(a))
|
|
377
|
+
p(r), e.push(new xe.EndTag(cr ? cr[0] : "div")), r = "";
|
|
378
378
|
else if (Ip.test(a))
|
|
379
379
|
if (n === Ma)
|
|
380
|
-
e.push(new xe.Code(r.trim(), c, _)), c = "", _ = "", n =
|
|
381
|
-
else if (n ===
|
|
380
|
+
e.push(new xe.Code(r.trim(), c, _)), c = "", _ = "", n = Oe, r = "";
|
|
381
|
+
else if (n === Oe) {
|
|
382
382
|
p(r);
|
|
383
383
|
const h = a.replace(/\`\`\`/, "").trim().split(":");
|
|
384
384
|
c = h[0], _ = h[1], n = Ma, r = "";
|
|
@@ -386,27 +386,27 @@ const zp = (t) => {
|
|
|
386
386
|
r += a !== "" ? `${a}
|
|
387
387
|
` : `
|
|
388
388
|
`;
|
|
389
|
-
else if (n ===
|
|
389
|
+
else if (n === Oe && Dp.test(a)) {
|
|
390
390
|
p(r), r = "";
|
|
391
391
|
const h = a.replace(/\$\$/g, "").trim();
|
|
392
392
|
e.push(new xe.Katex(h));
|
|
393
393
|
} else if (xp.test(a))
|
|
394
|
-
n === ml ? (e.push(new xe.Katex(r.trim())), n =
|
|
394
|
+
n === ml ? (e.push(new xe.Katex(r.trim())), n = Oe, r = "") : n === Oe ? (p(r), n = ml, r = "") : r += a !== "" ? `${a}
|
|
395
395
|
` : `
|
|
396
396
|
`;
|
|
397
397
|
else if (wp.test(a))
|
|
398
|
-
n === pl ? (e.push(new xe.ColorBlock(r.trim(), u)), u = "default", n =
|
|
398
|
+
n === pl ? (e.push(new xe.ColorBlock(r.trim(), u)), u = "default", n = Oe, r = "") : n === Oe ? (p(r), u = a.replace(/\=\=\=/, "").trim(), u === "" && (u = "default"), n = pl, r = "") : r += a !== "" ? `${a}
|
|
399
399
|
` : `
|
|
400
400
|
`;
|
|
401
|
-
else if (n ===
|
|
401
|
+
else if (n === Oe && a.match(_l) !== null) {
|
|
402
402
|
if (o = a.match(_l), o === null) continue;
|
|
403
403
|
p(r), e.push(new xe.Blockquote(o[2], o[1].length)), r = "";
|
|
404
|
-
} else if (n ===
|
|
404
|
+
} else if (n === Oe && Ap.test(a) && a.split(/[\*\-_]/).length > 3)
|
|
405
405
|
p(r), r = "", e.push(new xe.Horizontal());
|
|
406
|
-
else if (n ===
|
|
406
|
+
else if (n === Oe && a.match(ll) !== null) {
|
|
407
407
|
if (o = a.match(ll), o === null) continue;
|
|
408
408
|
p(r), r = "", e.push(new xe.Heading(o[2], o[1].length));
|
|
409
|
-
} else if (n ===
|
|
409
|
+
} else if (n === Oe && a.match(cl) !== null) {
|
|
410
410
|
if (o = a.match(cl), o === null) continue;
|
|
411
411
|
p(r);
|
|
412
412
|
const h = e[e.length - 1], T = o[2].match(/^\[(x|\u0020)?\]\s(.+)$/);
|
|
@@ -420,7 +420,7 @@ const zp = (t) => {
|
|
|
420
420
|
}
|
|
421
421
|
const N = T ? new xe.CheckList(T[2].trim(), T[1] === "x", C) : new xe.List(o[2].trim(), C);
|
|
422
422
|
e.push(N), r = "";
|
|
423
|
-
} else if (n ===
|
|
423
|
+
} else if (n === Oe && a.match(dl) !== null) {
|
|
424
424
|
if (o = a.match(dl), o === null) continue;
|
|
425
425
|
p(r);
|
|
426
426
|
const h = e[e.length - 1];
|
|
@@ -435,11 +435,11 @@ const zp = (t) => {
|
|
|
435
435
|
}
|
|
436
436
|
const N = new xe.OrderedList(o[3].trim(), C || 0, T);
|
|
437
437
|
e.push(N), r = "";
|
|
438
|
-
} else if (n ===
|
|
438
|
+
} else if (n === Oe && a.match(ul) !== null) {
|
|
439
439
|
if (o = a.match(ul), o === null) continue;
|
|
440
440
|
s.push(a), r = "";
|
|
441
441
|
} else if (a === "")
|
|
442
|
-
n ===
|
|
442
|
+
n === Oe && (p(r), e.push(new xe.Br()), r = ""), n === Ma && (r += a !== "" ? `${a}
|
|
443
443
|
` : `
|
|
444
444
|
`);
|
|
445
445
|
else {
|
|
@@ -449,7 +449,7 @@ const zp = (t) => {
|
|
|
449
449
|
e[e.length - 1].values[T.length - 1].value += `
|
|
450
450
|
${a}`, r = "";
|
|
451
451
|
} else
|
|
452
|
-
n
|
|
452
|
+
n !== lr && (r += a !== "" ? `${a}
|
|
453
453
|
` : `
|
|
454
454
|
`);
|
|
455
455
|
}
|
|
@@ -457,7 +457,7 @@ ${a}`, r = "";
|
|
|
457
457
|
} else
|
|
458
458
|
a += S;
|
|
459
459
|
}
|
|
460
|
-
return n ===
|
|
460
|
+
return n === Oe && p(r.slice(0, -1)), e;
|
|
461
461
|
};
|
|
462
462
|
class Hp {
|
|
463
463
|
constructor(e) {
|
|
@@ -770,11 +770,11 @@ class Ht {
|
|
|
770
770
|
return this.size >= 2;
|
|
771
771
|
}
|
|
772
772
|
}
|
|
773
|
-
var Fs = 0, Zr = 1,
|
|
773
|
+
var Fs = 0, Zr = 1, _r = 2, Pt = 3, Tr = 4, ut = 5, ur = 6, Je = 7, Ct = [new Ht(Fs, 0, !1), new Ht(Zr, 0, !0), new Ht(_r, 1, !1), new Ht(Pt, 1, !0), new Ht(Tr, 2, !1), new Ht(ut, 2, !0), new Ht(ur, 3, !1), new Ht(Je, 3, !0)], n0 = [Tr, ut, Tr, ut, ur, Je, ur, Je], i0 = [ut, ut, ut, ut, Je, Je, Je, Je], o0 = [_r, Pt, Tr, ut, ur, Je, ur, Je], s0 = [Pt, Pt, ut, ut, Je, Je, Je, Je], l0 = [Zr, Zr, Pt, Pt, ut, ut, Je, Je], c0 = [Fs, Zr, _r, Pt, _r, Pt, _r, Pt], Z = {
|
|
774
774
|
DISPLAY: Ct[Fs],
|
|
775
|
-
TEXT: Ct[
|
|
775
|
+
TEXT: Ct[_r],
|
|
776
776
|
SCRIPT: Ct[Tr],
|
|
777
|
-
SCRIPTSCRIPT: Ct[
|
|
777
|
+
SCRIPTSCRIPT: Ct[ur]
|
|
778
778
|
}, xs = [{
|
|
779
779
|
// Latin characters beyond the Latin-1 characters we have metrics for.
|
|
780
780
|
// Needed for Czech, Hungarian and Turkish text, for example.
|
|
@@ -851,7 +851,7 @@ function Lu(t) {
|
|
|
851
851
|
return !0;
|
|
852
852
|
return !1;
|
|
853
853
|
}
|
|
854
|
-
var
|
|
854
|
+
var dr = 80, _0 = function(t, e) {
|
|
855
855
|
return "M95," + (622 + t + e) + `
|
|
856
856
|
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
857
857
|
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
@@ -923,22 +923,22 @@ c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
|
|
|
923
923
|
var a = "";
|
|
924
924
|
switch (t) {
|
|
925
925
|
case "sqrtMain":
|
|
926
|
-
a = _0(e,
|
|
926
|
+
a = _0(e, dr);
|
|
927
927
|
break;
|
|
928
928
|
case "sqrtSize1":
|
|
929
|
-
a = u0(e,
|
|
929
|
+
a = u0(e, dr);
|
|
930
930
|
break;
|
|
931
931
|
case "sqrtSize2":
|
|
932
|
-
a = m0(e,
|
|
932
|
+
a = m0(e, dr);
|
|
933
933
|
break;
|
|
934
934
|
case "sqrtSize3":
|
|
935
|
-
a = p0(e,
|
|
935
|
+
a = p0(e, dr);
|
|
936
936
|
break;
|
|
937
937
|
case "sqrtSize4":
|
|
938
|
-
a = g0(e,
|
|
938
|
+
a = g0(e, dr);
|
|
939
939
|
break;
|
|
940
940
|
case "sqrtTall":
|
|
941
|
-
a = S0(e,
|
|
941
|
+
a = S0(e, dr, r);
|
|
942
942
|
}
|
|
943
943
|
return a;
|
|
944
944
|
}, b0 = function(t, e) {
|
|
@@ -4049,7 +4049,7 @@ function l(t, e, r, a, n, i) {
|
|
|
4049
4049
|
replace: a
|
|
4050
4050
|
}, i && a && (ye[t][a] = ye[t][n]);
|
|
4051
4051
|
}
|
|
4052
|
-
var d = "math", D = "text", m = "main", b = "ams", Ae = "accent-token", q = "bin", et = "close",
|
|
4052
|
+
var d = "math", D = "text", m = "main", b = "ams", Ae = "accent-token", q = "bin", et = "close", mr = "inner", X = "mathord", Ge = "op-token", lt = "open", na = "punct", f = "rel", Gt = "spacing", y = "textord";
|
|
4053
4053
|
l(d, m, f, "≡", "\\equiv", !0);
|
|
4054
4054
|
l(d, m, f, "≺", "\\prec", !0);
|
|
4055
4055
|
l(d, m, f, "≻", "\\succ", !0);
|
|
@@ -4576,12 +4576,12 @@ l(d, m, Ge, "∯", "\\oiint");
|
|
|
4576
4576
|
l(d, m, Ge, "∰", "\\oiiint");
|
|
4577
4577
|
l(d, m, Ge, "⨆", "\\bigsqcup");
|
|
4578
4578
|
l(d, m, Ge, "∫", "\\smallint");
|
|
4579
|
-
l(D, m,
|
|
4580
|
-
l(d, m,
|
|
4581
|
-
l(D, m,
|
|
4582
|
-
l(d, m,
|
|
4583
|
-
l(d, m,
|
|
4584
|
-
l(d, m,
|
|
4579
|
+
l(D, m, mr, "…", "\\textellipsis");
|
|
4580
|
+
l(d, m, mr, "…", "\\mathellipsis");
|
|
4581
|
+
l(D, m, mr, "…", "\\ldots", !0);
|
|
4582
|
+
l(d, m, mr, "…", "\\ldots", !0);
|
|
4583
|
+
l(d, m, mr, "⋯", "\\@cdots", !0);
|
|
4584
|
+
l(d, m, mr, "⋱", "\\ddots", !0);
|
|
4585
4585
|
l(d, m, y, "⋮", "\\varvdots");
|
|
4586
4586
|
l(D, m, y, "⋮", "\\varvdots");
|
|
4587
4587
|
l(d, m, Ae, "ˊ", "\\acute");
|
|
@@ -6634,12 +6634,12 @@ var br = function(t, e, r) {
|
|
|
6634
6634
|
r && (J *= a.sizeMultiplier);
|
|
6635
6635
|
var H = F / 2 - J, Q = [];
|
|
6636
6636
|
if (u.length > 0) {
|
|
6637
|
-
var ge = F - h - R, oe = Math.round(F * 1e3), re = f0(u, Math.round(ge * 1e3)), le = new ir(u, re),
|
|
6638
|
-
width:
|
|
6637
|
+
var ge = F - h - R, oe = Math.round(F * 1e3), re = f0(u, Math.round(ge * 1e3)), le = new ir(u, re), Ne = (p / 1e3).toFixed(3) + "em", fe = (oe / 1e3).toFixed(3) + "em", Ie = new Wt([le], {
|
|
6638
|
+
width: Ne,
|
|
6639
6639
|
height: fe,
|
|
6640
6640
|
viewBox: "0 0 " + p + " " + oe
|
|
6641
6641
|
}), Ye = O.makeSvgSpan([], [Ie], a);
|
|
6642
|
-
Ye.height = oe / 1e3, Ye.style.width =
|
|
6642
|
+
Ye.height = oe / 1e3, Ye.style.width = Ne, Ye.style.height = fe, Q.push({
|
|
6643
6643
|
type: "elem",
|
|
6644
6644
|
elem: Ye
|
|
6645
6645
|
});
|
|
@@ -7370,11 +7370,11 @@ var Rt = function(t, e) {
|
|
|
7370
7370
|
var J = t.rowGaps[r], H = 0;
|
|
7371
7371
|
J && (H = we(J, e), H > 0 && (H += N, w < H && (w = H), H = 0)), t.addJot && (w += h), B.height = M, B.depth = w, R += M, B.pos = R, R += w + H, o[r] = B, A(i[r + 1]);
|
|
7372
7372
|
}
|
|
7373
|
-
var Q = R / 2 + e.fontMetrics().axisHeight, ge = t.cols || [], oe = [], re, le,
|
|
7373
|
+
var Q = R / 2 + e.fontMetrics().axisHeight, ge = t.cols || [], oe = [], re, le, Ne = [];
|
|
7374
7374
|
if (t.tags && t.tags.some((It) => It))
|
|
7375
7375
|
for (r = 0; r < n; ++r) {
|
|
7376
7376
|
var fe = o[r], Ie = fe.pos - Q, Ye = t.tags[r], qe = void 0;
|
|
7377
|
-
Ye === !0 ? qe = O.makeSpan(["eqn-num"], [], e) : Ye === !1 ? qe = O.makeSpan([], [], e) : qe = O.makeSpan([], He(Ye, e, !0), e), qe.depth = fe.depth, qe.height = fe.height,
|
|
7377
|
+
Ye === !0 ? qe = O.makeSpan(["eqn-num"], [], e) : Ye === !1 ? qe = O.makeSpan([], [], e) : qe = O.makeSpan([], He(Ye, e, !0), e), qe.depth = fe.depth, qe.height = fe.height, Ne.push({
|
|
7378
7378
|
type: "elem",
|
|
7379
7379
|
elem: qe,
|
|
7380
7380
|
shift: Ie
|
|
@@ -7402,10 +7402,10 @@ var Rt = function(t, e) {
|
|
|
7402
7402
|
(a > 0 || t.hskipBeforeAndAfter) && (pe = K.deflt(Te.pregap, p), pe !== 0 && (re = O.makeSpan(["arraycolsep"], []), re.style.width = U(pe), oe.push(re)));
|
|
7403
7403
|
var ce = [];
|
|
7404
7404
|
for (r = 0; r < n; ++r) {
|
|
7405
|
-
var
|
|
7405
|
+
var Re = o[r], ke = Re[a];
|
|
7406
7406
|
if (ke) {
|
|
7407
|
-
var tt =
|
|
7408
|
-
ke.depth =
|
|
7407
|
+
var tt = Re.pos - Q;
|
|
7408
|
+
ke.depth = Re.depth, ke.height = Re.height, ce.push({
|
|
7409
7409
|
type: "elem",
|
|
7410
7410
|
elem: ke,
|
|
7411
7411
|
shift: tt
|
|
@@ -7440,11 +7440,11 @@ var Rt = function(t, e) {
|
|
|
7440
7440
|
children: ct
|
|
7441
7441
|
}, e);
|
|
7442
7442
|
}
|
|
7443
|
-
if (
|
|
7443
|
+
if (Ne.length === 0)
|
|
7444
7444
|
return O.makeSpan(["mord"], [o], e);
|
|
7445
7445
|
var At = O.makeVList({
|
|
7446
7446
|
positionType: "individualShift",
|
|
7447
|
-
children:
|
|
7447
|
+
children: Ne
|
|
7448
7448
|
}, e);
|
|
7449
7449
|
return At = O.makeSpan(["tag"], [At], e), O.makeFragment([o, At]);
|
|
7450
7450
|
}, Ng = {
|
|
@@ -8860,7 +8860,7 @@ var Em = (t, e, r, a, n, i, s) => {
|
|
|
8860
8860
|
N.style.marginRight = U(i), C.unshift(N);
|
|
8861
8861
|
}
|
|
8862
8862
|
return O.makeSpan(["mop", "op-limits"], C, a);
|
|
8863
|
-
}, Sm = ["\\smallint"],
|
|
8863
|
+
}, Sm = ["\\smallint"], pr = (t, e) => {
|
|
8864
8864
|
var r, a, n = !1, i;
|
|
8865
8865
|
t.type === "supsub" ? (r = t.sup, a = t.sub, i = ie(t.base, "op"), n = !0) : i = ie(t, "op");
|
|
8866
8866
|
var s = e.style, o = !1;
|
|
@@ -8939,7 +8939,7 @@ z({
|
|
|
8939
8939
|
name: n
|
|
8940
8940
|
};
|
|
8941
8941
|
},
|
|
8942
|
-
htmlBuilder:
|
|
8942
|
+
htmlBuilder: pr,
|
|
8943
8943
|
mathmlBuilder: yr
|
|
8944
8944
|
});
|
|
8945
8945
|
z({
|
|
@@ -8962,7 +8962,7 @@ z({
|
|
|
8962
8962
|
body: Ue(a)
|
|
8963
8963
|
};
|
|
8964
8964
|
},
|
|
8965
|
-
htmlBuilder:
|
|
8965
|
+
htmlBuilder: pr,
|
|
8966
8966
|
mathmlBuilder: yr
|
|
8967
8967
|
});
|
|
8968
8968
|
var Ag = {
|
|
@@ -8993,7 +8993,7 @@ z({
|
|
|
8993
8993
|
name: r
|
|
8994
8994
|
};
|
|
8995
8995
|
},
|
|
8996
|
-
htmlBuilder:
|
|
8996
|
+
htmlBuilder: pr,
|
|
8997
8997
|
mathmlBuilder: yr
|
|
8998
8998
|
});
|
|
8999
8999
|
z({
|
|
@@ -9016,7 +9016,7 @@ z({
|
|
|
9016
9016
|
name: r
|
|
9017
9017
|
};
|
|
9018
9018
|
},
|
|
9019
|
-
htmlBuilder:
|
|
9019
|
+
htmlBuilder: pr,
|
|
9020
9020
|
mathmlBuilder: yr
|
|
9021
9021
|
});
|
|
9022
9022
|
z({
|
|
@@ -9039,7 +9039,7 @@ z({
|
|
|
9039
9039
|
name: a
|
|
9040
9040
|
};
|
|
9041
9041
|
},
|
|
9042
|
-
htmlBuilder:
|
|
9042
|
+
htmlBuilder: pr,
|
|
9043
9043
|
mathmlBuilder: yr
|
|
9044
9044
|
});
|
|
9045
9045
|
var hm = (t, e) => {
|
|
@@ -9555,7 +9555,7 @@ var Dg = function(t, e) {
|
|
|
9555
9555
|
if (r)
|
|
9556
9556
|
if (r.type === "op") {
|
|
9557
9557
|
var a = r.limits && (e.style.size === Z.DISPLAY.size || r.alwaysHandleSupSub);
|
|
9558
|
-
return a ?
|
|
9558
|
+
return a ? pr : null;
|
|
9559
9559
|
} else if (r.type === "operatorname") {
|
|
9560
9560
|
var n = r.alwaysHandleSupSub && (e.style.size === Z.DISPLAY.size || r.limits);
|
|
9561
9561
|
return n ? hm : null;
|
|
@@ -12651,7 +12651,7 @@ function Zg() {
|
|
|
12651
12651
|
end: "'",
|
|
12652
12652
|
illegal: "\\n",
|
|
12653
12653
|
contains: [re]
|
|
12654
|
-
},
|
|
12654
|
+
}, Ne = {
|
|
12655
12655
|
scope: "string",
|
|
12656
12656
|
begin: '"',
|
|
12657
12657
|
end: '"',
|
|
@@ -12758,7 +12758,7 @@ function Zg() {
|
|
|
12758
12758
|
scope: "title",
|
|
12759
12759
|
begin: F,
|
|
12760
12760
|
relevance: 0
|
|
12761
|
-
},
|
|
12761
|
+
}, Re = {
|
|
12762
12762
|
// excludes method names from keyword processing
|
|
12763
12763
|
begin: "\\.\\s*" + F,
|
|
12764
12764
|
relevance: 0
|
|
@@ -12792,11 +12792,11 @@ function Zg() {
|
|
|
12792
12792
|
HASH_COMMENT_MODE: Te,
|
|
12793
12793
|
IDENT_RE: B,
|
|
12794
12794
|
MATCH_NOTHING_RE: w,
|
|
12795
|
-
METHOD_GUARD:
|
|
12795
|
+
METHOD_GUARD: Re,
|
|
12796
12796
|
NUMBER_MODE: Ve,
|
|
12797
12797
|
NUMBER_RE: J,
|
|
12798
12798
|
PHRASAL_WORDS_MODE: fe,
|
|
12799
|
-
QUOTE_STRING_MODE:
|
|
12799
|
+
QUOTE_STRING_MODE: Ne,
|
|
12800
12800
|
REGEXP_MODE: Qe,
|
|
12801
12801
|
RE_STARTERS_RE: ge,
|
|
12802
12802
|
SHEBANG: oe,
|
|
@@ -12869,9 +12869,9 @@ function Zg() {
|
|
|
12869
12869
|
}
|
|
12870
12870
|
}
|
|
12871
12871
|
function _a(v, I) {
|
|
12872
|
-
return I ? Number(I) :
|
|
12872
|
+
return I ? Number(I) : gr(v) ? 0 : 1;
|
|
12873
12873
|
}
|
|
12874
|
-
function
|
|
12874
|
+
function gr(v) {
|
|
12875
12875
|
return It.includes(v.toLowerCase());
|
|
12876
12876
|
}
|
|
12877
12877
|
const Rr = {}, Dt = (v) => {
|
|
@@ -12906,11 +12906,11 @@ function Zg() {
|
|
|
12906
12906
|
Ar(v, v.end, { key: "endScope" }), v.end = M(v.end, { joinWith: "" });
|
|
12907
12907
|
}
|
|
12908
12908
|
}
|
|
12909
|
-
function
|
|
12909
|
+
function Er(v) {
|
|
12910
12910
|
v.scope && typeof v.scope == "object" && v.scope !== null && (v.beginScope = v.scope, delete v.scope);
|
|
12911
12911
|
}
|
|
12912
12912
|
function ma(v) {
|
|
12913
|
-
|
|
12913
|
+
Er(v), typeof v.beginScope == "string" && (v.beginScope = { _wrap: v.beginScope }), typeof v.endScope == "string" && (v.endScope = { _wrap: v.endScope }), ua(v), Ir(v);
|
|
12914
12914
|
}
|
|
12915
12915
|
function xr(v) {
|
|
12916
12916
|
function I($, V) {
|
|
@@ -12938,7 +12938,7 @@ function Zg() {
|
|
|
12938
12938
|
const te = this.matcherRe.exec(V);
|
|
12939
12939
|
if (!te)
|
|
12940
12940
|
return null;
|
|
12941
|
-
const $e = te.findIndex((
|
|
12941
|
+
const $e = te.findIndex((hr, Sa) => Sa > 0 && hr !== void 0), Be = this.matchIndexes[$e];
|
|
12942
12942
|
return te.splice(0, $e), Object.assign(te, Be);
|
|
12943
12943
|
}
|
|
12944
12944
|
}
|
|
@@ -13034,7 +13034,7 @@ function Zg() {
|
|
|
13034
13034
|
super(I), this.name = "HTMLInjectionError", this.html = Y;
|
|
13035
13035
|
}
|
|
13036
13036
|
}
|
|
13037
|
-
const
|
|
13037
|
+
const Sr = r, wr = a, Mr = Symbol("nomatch"), Ee = 7, er = function(v) {
|
|
13038
13038
|
const I = /* @__PURE__ */ Object.create(null), Y = /* @__PURE__ */ Object.create(null), ne = [];
|
|
13039
13039
|
let Pe = !0;
|
|
13040
13040
|
const Fe = "Could not find the language '{}', did you forget to load/include a language module?", $ = { disableAutodetect: !0, name: "Plain text", contains: [] };
|
|
@@ -13072,10 +13072,10 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ze = P, ve = j), de =
|
|
|
13072
13072
|
language: ze
|
|
13073
13073
|
};
|
|
13074
13074
|
kr("before:highlight", bt);
|
|
13075
|
-
const zt = bt.result ? bt.result :
|
|
13075
|
+
const zt = bt.result ? bt.result : hr(bt.language, bt.code, de);
|
|
13076
13076
|
return zt.code = bt.code, kr("after:highlight", zt), zt;
|
|
13077
13077
|
}
|
|
13078
|
-
function
|
|
13078
|
+
function hr(P, j, de, ve) {
|
|
13079
13079
|
const ze = /* @__PURE__ */ Object.create(null);
|
|
13080
13080
|
function bt(G, W) {
|
|
13081
13081
|
return G.keywords[W];
|
|
@@ -13113,7 +13113,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ze = P, ve = j), de =
|
|
|
13113
13113
|
Ke.addText(Ce);
|
|
13114
13114
|
return;
|
|
13115
13115
|
}
|
|
13116
|
-
G =
|
|
13116
|
+
G = hr(ae.subLanguage, Ce, !0, ol[ae.subLanguage]), ol[ae.subLanguage] = /** @type {CompiledMode} */
|
|
13117
13117
|
G._top;
|
|
13118
13118
|
} else
|
|
13119
13119
|
G = ha(Ce, ae.subLanguage.length ? ae.subLanguage : null);
|
|
@@ -13245,7 +13245,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ze = P, ve = j), de =
|
|
|
13245
13245
|
if (G.message && G.message.includes("Illegal"))
|
|
13246
13246
|
return {
|
|
13247
13247
|
language: P,
|
|
13248
|
-
value:
|
|
13248
|
+
value: Sr(j),
|
|
13249
13249
|
illegal: !0,
|
|
13250
13250
|
relevance: 0,
|
|
13251
13251
|
_illegalBy: {
|
|
@@ -13260,7 +13260,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ze = P, ve = j), de =
|
|
|
13260
13260
|
if (Pe)
|
|
13261
13261
|
return {
|
|
13262
13262
|
language: P,
|
|
13263
|
-
value:
|
|
13263
|
+
value: Sr(j),
|
|
13264
13264
|
illegal: !1,
|
|
13265
13265
|
relevance: 0,
|
|
13266
13266
|
errorRaised: G,
|
|
@@ -13272,7 +13272,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ze = P, ve = j), de =
|
|
|
13272
13272
|
}
|
|
13273
13273
|
function Sa(P) {
|
|
13274
13274
|
const j = {
|
|
13275
|
-
value:
|
|
13275
|
+
value: Sr(P),
|
|
13276
13276
|
illegal: !1,
|
|
13277
13277
|
relevance: 0,
|
|
13278
13278
|
_top: $,
|
|
@@ -13283,7 +13283,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ze = P, ve = j), de =
|
|
|
13283
13283
|
function ha(P, j) {
|
|
13284
13284
|
j = j || V.languages || Object.keys(I);
|
|
13285
13285
|
const de = Sa(P), ve = j.filter(Yt).filter(tl).map(
|
|
13286
|
-
(it) =>
|
|
13286
|
+
(it) => hr(it, P, !1)
|
|
13287
13287
|
);
|
|
13288
13288
|
ve.unshift(de);
|
|
13289
13289
|
const ze = ve.sort((it, ft) => {
|
|
@@ -25718,7 +25718,7 @@ function lS() {
|
|
|
25718
25718
|
}, x = function({ includeEqual: Ve }) {
|
|
25719
25719
|
let We;
|
|
25720
25720
|
Ve ? We = "!%&*+-/<=>@^|~?" : We = "!%&*+-/<>@^|~?";
|
|
25721
|
-
const Le = Array.from(We), Qe = a("[", ...Le.map(t), "]"), pe = i(Qe, /\./), ce = a(pe, r(pe)),
|
|
25721
|
+
const Le = Array.from(We), Qe = a("[", ...Le.map(t), "]"), pe = i(Qe, /\./), ce = a(pe, r(pe)), Re = i(
|
|
25722
25722
|
a(ce, pe, "*"),
|
|
25723
25723
|
// Matches at least 2 chars operators
|
|
25724
25724
|
a(Qe, "+")
|
|
@@ -25728,7 +25728,7 @@ function lS() {
|
|
|
25728
25728
|
scope: "operator",
|
|
25729
25729
|
match: i(
|
|
25730
25730
|
// symbolic operators:
|
|
25731
|
-
|
|
25731
|
+
Re,
|
|
25732
25732
|
// other symbolic keywords:
|
|
25733
25733
|
// Type casting and conversion operators:
|
|
25734
25734
|
/:\?>/,
|
|
@@ -25862,7 +25862,7 @@ function lS() {
|
|
|
25862
25862
|
},
|
|
25863
25863
|
o.BACKSLASH_ESCAPE
|
|
25864
25864
|
]
|
|
25865
|
-
},
|
|
25865
|
+
}, Ne = {
|
|
25866
25866
|
scope: "string",
|
|
25867
25867
|
begin: /"""/,
|
|
25868
25868
|
end: /"""/,
|
|
@@ -25969,7 +25969,7 @@ function lS() {
|
|
|
25969
25969
|
qe,
|
|
25970
25970
|
Ye,
|
|
25971
25971
|
Ie,
|
|
25972
|
-
|
|
25972
|
+
Ne,
|
|
25973
25973
|
le,
|
|
25974
25974
|
re,
|
|
25975
25975
|
Te
|
|
@@ -25988,7 +25988,7 @@ function lS() {
|
|
|
25988
25988
|
contains: [
|
|
25989
25989
|
N,
|
|
25990
25990
|
// can contain any constant value
|
|
25991
|
-
|
|
25991
|
+
Ne,
|
|
25992
25992
|
le,
|
|
25993
25993
|
re,
|
|
25994
25994
|
Te,
|
|
@@ -31964,8 +31964,8 @@ function wS() {
|
|
|
31964
31964
|
);
|
|
31965
31965
|
function c(_) {
|
|
31966
31966
|
const u = _.regex, p = (pe, { after: ce }) => {
|
|
31967
|
-
const
|
|
31968
|
-
return pe.input.indexOf(
|
|
31967
|
+
const Re = "</" + pe[0].slice(1);
|
|
31968
|
+
return pe.input.indexOf(Re, ce) !== -1;
|
|
31969
31969
|
}, E = t, S = {
|
|
31970
31970
|
begin: "<>",
|
|
31971
31971
|
end: "</>"
|
|
@@ -31977,7 +31977,7 @@ function wS() {
|
|
|
31977
31977
|
* @param {CallbackResponse} response
|
|
31978
31978
|
*/
|
|
31979
31979
|
isTrulyOpeningTag: (pe, ce) => {
|
|
31980
|
-
const
|
|
31980
|
+
const Re = pe[0].length + pe.index, ke = pe.input[Re];
|
|
31981
31981
|
if (
|
|
31982
31982
|
// HTML should not include another raw `<` inside a tag
|
|
31983
31983
|
// nested type?
|
|
@@ -31989,9 +31989,9 @@ function wS() {
|
|
|
31989
31989
|
ce.ignoreMatch();
|
|
31990
31990
|
return;
|
|
31991
31991
|
}
|
|
31992
|
-
ke === ">" && (p(pe, { after:
|
|
31992
|
+
ke === ">" && (p(pe, { after: Re }) || ce.ignoreMatch());
|
|
31993
31993
|
let tt;
|
|
31994
|
-
const Xe = pe.input.substring(
|
|
31994
|
+
const Xe = pe.input.substring(Re);
|
|
31995
31995
|
if (tt = Xe.match(/^\s*=/)) {
|
|
31996
31996
|
ce.ignoreMatch();
|
|
31997
31997
|
return;
|
|
@@ -32195,7 +32195,7 @@ function wS() {
|
|
|
32195
32195
|
}
|
|
32196
32196
|
}
|
|
32197
32197
|
]
|
|
32198
|
-
},
|
|
32198
|
+
}, Ne = {
|
|
32199
32199
|
relevance: 0,
|
|
32200
32200
|
match: u.either(
|
|
32201
32201
|
// Hard coded exceptions
|
|
@@ -32322,7 +32322,7 @@ function wS() {
|
|
|
32322
32322
|
aliases: ["js", "jsx", "mjs", "cjs"],
|
|
32323
32323
|
keywords: C,
|
|
32324
32324
|
// this will be extended by TypeScript
|
|
32325
|
-
exports: { PARAMS_CONTAINS: oe, CLASS_REFERENCE:
|
|
32325
|
+
exports: { PARAMS_CONTAINS: oe, CLASS_REFERENCE: Ne },
|
|
32326
32326
|
illegal: /#(?![$_A-z])/,
|
|
32327
32327
|
contains: [
|
|
32328
32328
|
_.SHEBANG({
|
|
@@ -32341,7 +32341,7 @@ function wS() {
|
|
|
32341
32341
|
// Skip numbers when they are part of a variable name
|
|
32342
32342
|
{ match: /\$\d+/ },
|
|
32343
32343
|
x,
|
|
32344
|
-
|
|
32344
|
+
Ne,
|
|
32345
32345
|
{
|
|
32346
32346
|
scope: "attr",
|
|
32347
32347
|
match: E + u.lookahead(":"),
|
|
@@ -46695,8 +46695,8 @@ function Th() {
|
|
|
46695
46695
|
keyword: R,
|
|
46696
46696
|
literal: ((re) => {
|
|
46697
46697
|
const le = [];
|
|
46698
|
-
return re.forEach((
|
|
46699
|
-
le.push(
|
|
46698
|
+
return re.forEach((Ne) => {
|
|
46699
|
+
le.push(Ne), Ne.toLowerCase() === Ne ? le.push(Ne.toUpperCase()) : le.push(Ne.toLowerCase());
|
|
46700
46700
|
}), le;
|
|
46701
46701
|
})(N),
|
|
46702
46702
|
built_in: A
|
|
@@ -57093,7 +57093,7 @@ function sb() {
|
|
|
57093
57093
|
// Consume .keyword to prevent highlighting properties and methods as keywords.
|
|
57094
57094
|
match: r(/\./, n(..._)),
|
|
57095
57095
|
relevance: 0
|
|
57096
|
-
}, re = _.filter((Ee) => typeof Ee == "string").concat(["_|0"]), le = _.filter((Ee) => typeof Ee != "string").concat(c).map(i),
|
|
57096
|
+
}, re = _.filter((Ee) => typeof Ee == "string").concat(["_|0"]), le = _.filter((Ee) => typeof Ee != "string").concat(c).map(i), Ne = { variants: [
|
|
57097
57097
|
{
|
|
57098
57098
|
className: "keyword",
|
|
57099
57099
|
match: n(...le, ...o)
|
|
@@ -57110,7 +57110,7 @@ function sb() {
|
|
|
57110
57110
|
}, Ie = [
|
|
57111
57111
|
ge,
|
|
57112
57112
|
oe,
|
|
57113
|
-
|
|
57113
|
+
Ne
|
|
57114
57114
|
], Ye = {
|
|
57115
57115
|
// Consume .built_in to prevent highlighting properties and methods.
|
|
57116
57116
|
match: r(/\./, n(...S)),
|
|
@@ -57153,7 +57153,7 @@ function sb() {
|
|
|
57153
57153
|
// binary-literal
|
|
57154
57154
|
{ match: /\b0b([01]_*)+\b/ }
|
|
57155
57155
|
]
|
|
57156
|
-
},
|
|
57156
|
+
}, Re = (Ee = "") => ({
|
|
57157
57157
|
className: "subst",
|
|
57158
57158
|
variants: [
|
|
57159
57159
|
{ match: r(/\\/, Ee, /[0\\tnr"']/) },
|
|
@@ -57171,7 +57171,7 @@ function sb() {
|
|
|
57171
57171
|
begin: r(Ee, /"""/),
|
|
57172
57172
|
end: r(/"""/, Ee),
|
|
57173
57173
|
contains: [
|
|
57174
|
-
|
|
57174
|
+
Re(Ee),
|
|
57175
57175
|
ke(Ee),
|
|
57176
57176
|
tt(Ee)
|
|
57177
57177
|
]
|
|
@@ -57179,7 +57179,7 @@ function sb() {
|
|
|
57179
57179
|
begin: r(Ee, /"/),
|
|
57180
57180
|
end: r(/"/, Ee),
|
|
57181
57181
|
contains: [
|
|
57182
|
-
|
|
57182
|
+
Re(Ee),
|
|
57183
57183
|
tt(Ee)
|
|
57184
57184
|
]
|
|
57185
57185
|
}), ct = {
|
|
@@ -57234,7 +57234,7 @@ function sb() {
|
|
|
57234
57234
|
}, _a = {
|
|
57235
57235
|
className: "variable",
|
|
57236
57236
|
match: `\\$${R}+`
|
|
57237
|
-
},
|
|
57237
|
+
}, gr = [
|
|
57238
57238
|
xt,
|
|
57239
57239
|
Nr,
|
|
57240
57240
|
_a
|
|
@@ -57326,11 +57326,11 @@ function sb() {
|
|
|
57326
57326
|
...Le,
|
|
57327
57327
|
ce,
|
|
57328
57328
|
ct,
|
|
57329
|
-
...
|
|
57329
|
+
...gr,
|
|
57330
57330
|
...Et,
|
|
57331
57331
|
dt
|
|
57332
57332
|
]
|
|
57333
|
-
},
|
|
57333
|
+
}, Er = {
|
|
57334
57334
|
begin: /</,
|
|
57335
57335
|
end: />/,
|
|
57336
57336
|
keywords: "repeat each",
|
|
@@ -57383,7 +57383,7 @@ function sb() {
|
|
|
57383
57383
|
3: "title.function"
|
|
57384
57384
|
},
|
|
57385
57385
|
contains: [
|
|
57386
|
-
|
|
57386
|
+
Er,
|
|
57387
57387
|
xr,
|
|
57388
57388
|
J
|
|
57389
57389
|
],
|
|
@@ -57398,7 +57398,7 @@ function sb() {
|
|
|
57398
57398
|
],
|
|
57399
57399
|
className: { 1: "keyword" },
|
|
57400
57400
|
contains: [
|
|
57401
|
-
|
|
57401
|
+
Er,
|
|
57402
57402
|
xr,
|
|
57403
57403
|
J
|
|
57404
57404
|
],
|
|
@@ -57429,7 +57429,7 @@ function sb() {
|
|
|
57429
57429
|
...u
|
|
57430
57430
|
],
|
|
57431
57431
|
end: /}/
|
|
57432
|
-
},
|
|
57432
|
+
}, Sr = {
|
|
57433
57433
|
match: [
|
|
57434
57434
|
/class\b/,
|
|
57435
57435
|
/\s+/,
|
|
@@ -57465,7 +57465,7 @@ function sb() {
|
|
|
57465
57465
|
},
|
|
57466
57466
|
keywords: fe,
|
|
57467
57467
|
contains: [
|
|
57468
|
-
|
|
57468
|
+
Er,
|
|
57469
57469
|
...Ie,
|
|
57470
57470
|
{
|
|
57471
57471
|
begin: /:/,
|
|
@@ -57491,7 +57491,7 @@ function sb() {
|
|
|
57491
57491
|
...Le,
|
|
57492
57492
|
ce,
|
|
57493
57493
|
ct,
|
|
57494
|
-
...
|
|
57494
|
+
...gr
|
|
57495
57495
|
];
|
|
57496
57496
|
er.contains = [
|
|
57497
57497
|
..._t,
|
|
@@ -57512,7 +57512,7 @@ function sb() {
|
|
|
57512
57512
|
...Q,
|
|
57513
57513
|
Dr,
|
|
57514
57514
|
pa,
|
|
57515
|
-
|
|
57515
|
+
Sr,
|
|
57516
57516
|
wr,
|
|
57517
57517
|
Mr,
|
|
57518
57518
|
ga,
|
|
@@ -57529,7 +57529,7 @@ function sb() {
|
|
|
57529
57529
|
...Le,
|
|
57530
57530
|
ce,
|
|
57531
57531
|
ct,
|
|
57532
|
-
...
|
|
57532
|
+
...gr,
|
|
57533
57533
|
...Et,
|
|
57534
57534
|
dt,
|
|
57535
57535
|
Ir
|
|
@@ -58612,9 +58612,9 @@ function gb() {
|
|
|
58612
58612
|
n
|
|
58613
58613
|
);
|
|
58614
58614
|
function c(u) {
|
|
58615
|
-
const p = u.regex, E = (ce, { after:
|
|
58615
|
+
const p = u.regex, E = (ce, { after: Re }) => {
|
|
58616
58616
|
const ke = "</" + ce[0].slice(1);
|
|
58617
|
-
return ce.input.indexOf(ke,
|
|
58617
|
+
return ce.input.indexOf(ke, Re) !== -1;
|
|
58618
58618
|
}, S = t, h = {
|
|
58619
58619
|
begin: "<>",
|
|
58620
58620
|
end: "</>"
|
|
@@ -58625,7 +58625,7 @@ function gb() {
|
|
|
58625
58625
|
* @param {RegExpMatchArray} match
|
|
58626
58626
|
* @param {CallbackResponse} response
|
|
58627
58627
|
*/
|
|
58628
|
-
isTrulyOpeningTag: (ce,
|
|
58628
|
+
isTrulyOpeningTag: (ce, Re) => {
|
|
58629
58629
|
const ke = ce[0].length + ce.index, tt = ce.input[ke];
|
|
58630
58630
|
if (
|
|
58631
58631
|
// HTML should not include another raw `<` inside a tag
|
|
@@ -58635,18 +58635,18 @@ function gb() {
|
|
|
58635
58635
|
// `<T, A extends keyof T, V>`
|
|
58636
58636
|
tt === ","
|
|
58637
58637
|
) {
|
|
58638
|
-
|
|
58638
|
+
Re.ignoreMatch();
|
|
58639
58639
|
return;
|
|
58640
58640
|
}
|
|
58641
|
-
tt === ">" && (E(ce, { after: ke }) ||
|
|
58641
|
+
tt === ">" && (E(ce, { after: ke }) || Re.ignoreMatch());
|
|
58642
58642
|
let Xe;
|
|
58643
58643
|
const gt = ce.input.substring(ke);
|
|
58644
58644
|
if (Xe = gt.match(/^\s*=/)) {
|
|
58645
|
-
|
|
58645
|
+
Re.ignoreMatch();
|
|
58646
58646
|
return;
|
|
58647
58647
|
}
|
|
58648
58648
|
if ((Xe = gt.match(/^\s+extends\s+/)) && Xe.index === 0) {
|
|
58649
|
-
|
|
58649
|
+
Re.ignoreMatch();
|
|
58650
58650
|
return;
|
|
58651
58651
|
}
|
|
58652
58652
|
}
|
|
@@ -58811,7 +58811,7 @@ function gb() {
|
|
|
58811
58811
|
excludeEnd: !0,
|
|
58812
58812
|
keywords: N,
|
|
58813
58813
|
contains: re
|
|
58814
|
-
},
|
|
58814
|
+
}, Ne = {
|
|
58815
58815
|
variants: [
|
|
58816
58816
|
// class Car extends vehicle
|
|
58817
58817
|
{
|
|
@@ -59111,7 +59111,7 @@ function gb() {
|
|
|
59111
59111
|
},
|
|
59112
59112
|
Ve,
|
|
59113
59113
|
qe,
|
|
59114
|
-
|
|
59114
|
+
Ne,
|
|
59115
59115
|
Le,
|
|
59116
59116
|
{
|
|
59117
59117
|
match: /\$[(.]/
|