scq-vue 1.0.6 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/scq-vue.es.js +148 -146
- package/dist/scq-vue.umd.js +3 -3
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/styles/chat-message.css +44 -49
package/dist/scq-vue.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computed as Y, openBlock as H, createElementBlock as G, normalizeClass as fu, createElementVNode as mu, createCommentVNode as du, renderSlot as Nu, defineComponent as
|
|
1
|
+
import { computed as Y, openBlock as H, createElementBlock as G, normalizeClass as fu, createElementVNode as mu, createCommentVNode as du, renderSlot as Nu, defineComponent as _t, ref as ae, normalizeStyle as Pe, withModifiers as $e, toDisplayString as me, createTextVNode as qe } from "vue";
|
|
2
2
|
const ke = (u, e) => {
|
|
3
3
|
const t = u.__vccOpts || u;
|
|
4
4
|
for (const [n, r] of e)
|
|
@@ -112,7 +112,7 @@ const ke = (u, e) => {
|
|
|
112
112
|
], 2)
|
|
113
113
|
], 10, En));
|
|
114
114
|
}
|
|
115
|
-
}), Mu = /* @__PURE__ */ ke(yn, [["__scopeId", "data-v-
|
|
115
|
+
}), Mu = /* @__PURE__ */ ke(yn, [["__scopeId", "data-v-48287bb6"]]), An = (u) => `scq-${u.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase()}`;
|
|
116
116
|
Mu.install = (u) => {
|
|
117
117
|
u.component(An(Mu.name), Mu);
|
|
118
118
|
};
|
|
@@ -128,7 +128,7 @@ const Cn = {
|
|
|
128
128
|
}, Tn = {
|
|
129
129
|
key: 1,
|
|
130
130
|
class: "scq-input__group-append"
|
|
131
|
-
}, Nn = /* @__PURE__ */
|
|
131
|
+
}, Nn = /* @__PURE__ */ _t({
|
|
132
132
|
name: "Input",
|
|
133
133
|
__name: "Input",
|
|
134
134
|
props: {
|
|
@@ -431,11 +431,11 @@ Ku.prototype.parse = function(u, e) {
|
|
|
431
431
|
const y = f[k];
|
|
432
432
|
if (y && !y.match(je)) {
|
|
433
433
|
let g = "";
|
|
434
|
-
for (let m = 0,
|
|
434
|
+
for (let m = 0, x = y.length; m < x; m++)
|
|
435
435
|
y.charCodeAt(m) > 127 ? g += "x" : g += y[m];
|
|
436
436
|
if (!g.match(je)) {
|
|
437
|
-
const m = f.slice(0, k),
|
|
438
|
-
D && (m.push(D[1]),
|
|
437
|
+
const m = f.slice(0, k), x = f.slice(k + 1), D = y.match(Un);
|
|
438
|
+
D && (m.push(D[1]), x.unshift(D[2])), x.length && (i = x.join(".") + i), this.hostname = m.join(".");
|
|
439
439
|
break;
|
|
440
440
|
}
|
|
441
441
|
}
|
|
@@ -458,9 +458,9 @@ const Hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
458
458
|
encode: qu,
|
|
459
459
|
format: ye,
|
|
460
460
|
parse: Ae
|
|
461
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
461
|
+
}, Symbol.toStringTag, { value: "Module" })), xt = /[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Et = /[\0-\x1F\x7F-\x9F]/, Gn = /[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/, Ce = /[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/, kt = /[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/, yt = /[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/, Zn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
462
462
|
__proto__: null,
|
|
463
|
-
Any:
|
|
463
|
+
Any: xt,
|
|
464
464
|
Cc: Et,
|
|
465
465
|
Cf: Gn,
|
|
466
466
|
P: Ce,
|
|
@@ -524,14 +524,14 @@ var pu;
|
|
|
524
524
|
(function(u) {
|
|
525
525
|
u[u.VALUE_LENGTH = 49152] = "VALUE_LENGTH", u[u.BRANCH_LENGTH = 16256] = "BRANCH_LENGTH", u[u.JUMP_TABLE = 127] = "JUMP_TABLE";
|
|
526
526
|
})(pu || (pu = {}));
|
|
527
|
-
function
|
|
527
|
+
function _e(u) {
|
|
528
528
|
return u >= P.ZERO && u <= P.NINE;
|
|
529
529
|
}
|
|
530
530
|
function Yn(u) {
|
|
531
531
|
return u >= P.UPPER_A && u <= P.UPPER_F || u >= P.LOWER_A && u <= P.LOWER_F;
|
|
532
532
|
}
|
|
533
533
|
function Qn(u) {
|
|
534
|
-
return u >= P.UPPER_A && u <= P.UPPER_Z || u >= P.LOWER_A && u <= P.LOWER_Z ||
|
|
534
|
+
return u >= P.UPPER_A && u <= P.UPPER_Z || u >= P.LOWER_A && u <= P.LOWER_Z || _e(u);
|
|
535
535
|
}
|
|
536
536
|
function u0(u) {
|
|
537
537
|
return u === P.EQUALS || Qn(u);
|
|
@@ -608,7 +608,7 @@ class e0 {
|
|
|
608
608
|
const n = t;
|
|
609
609
|
for (; t < e.length; ) {
|
|
610
610
|
const r = e.charCodeAt(t);
|
|
611
|
-
if (
|
|
611
|
+
if (_e(r) || Yn(r))
|
|
612
612
|
t += 1;
|
|
613
613
|
else
|
|
614
614
|
return this.addToNumericResult(e, n, t, 16), this.emitNumericEntity(r, 3);
|
|
@@ -628,7 +628,7 @@ class e0 {
|
|
|
628
628
|
const n = t;
|
|
629
629
|
for (; t < e.length; ) {
|
|
630
630
|
const r = e.charCodeAt(t);
|
|
631
|
-
if (
|
|
631
|
+
if (_e(r))
|
|
632
632
|
t += 1;
|
|
633
633
|
else
|
|
634
634
|
return this.addToNumericResult(e, n, t, 10), this.emitNumericEntity(r, 2);
|
|
@@ -839,7 +839,7 @@ const d0 = /[&<>"]/, h0 = /[&<>"]/g, b0 = {
|
|
|
839
839
|
function p0(u) {
|
|
840
840
|
return b0[u];
|
|
841
841
|
}
|
|
842
|
-
function
|
|
842
|
+
function _u(u) {
|
|
843
843
|
return d0.test(u) ? u.replace(h0, p0) : u;
|
|
844
844
|
}
|
|
845
845
|
const g0 = /[.?*+^$[\]\\(){}|-]/g;
|
|
@@ -918,11 +918,11 @@ function Lu(u) {
|
|
|
918
918
|
function ee(u) {
|
|
919
919
|
return u = u.trim().replace(/\s+/g, " "), "ẞ".toLowerCase() === "Ṿ" && (u = u.replace(/ẞ/g, "ß")), u.toLowerCase().toUpperCase();
|
|
920
920
|
}
|
|
921
|
-
const
|
|
921
|
+
const _0 = { mdurl: Hn, ucmicro: Zn }, x0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
922
922
|
__proto__: null,
|
|
923
923
|
arrayReplaceAt: Dt,
|
|
924
924
|
assign: ue,
|
|
925
|
-
escapeHtml:
|
|
925
|
+
escapeHtml: _u,
|
|
926
926
|
escapeRE: m0,
|
|
927
927
|
fromCodePoint: Xu,
|
|
928
928
|
has: c0,
|
|
@@ -932,7 +932,7 @@ const x0 = { mdurl: Hn, ucmicro: Zn }, _0 = /* @__PURE__ */ Object.freeze(/* @__
|
|
|
932
932
|
isString: De,
|
|
933
933
|
isValidEntityCode: we,
|
|
934
934
|
isWhiteSpace: Iu,
|
|
935
|
-
lib:
|
|
935
|
+
lib: _0,
|
|
936
936
|
normalizeReference: ee,
|
|
937
937
|
unescapeAll: Fu,
|
|
938
938
|
unescapeMd: f0
|
|
@@ -1036,11 +1036,11 @@ const A0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1036
1036
|
}, Symbol.toStringTag, { value: "Module" })), ou = {};
|
|
1037
1037
|
ou.code_inline = function(u, e, t, n, r) {
|
|
1038
1038
|
const i = u[e];
|
|
1039
|
-
return "<code" + r.renderAttrs(i) + ">" +
|
|
1039
|
+
return "<code" + r.renderAttrs(i) + ">" + _u(i.content) + "</code>";
|
|
1040
1040
|
};
|
|
1041
1041
|
ou.code_block = function(u, e, t, n, r) {
|
|
1042
1042
|
const i = u[e];
|
|
1043
|
-
return "<pre" + r.renderAttrs(i) + "><code>" +
|
|
1043
|
+
return "<pre" + r.renderAttrs(i) + "><code>" + _u(u[e].content) + `</code></pre>
|
|
1044
1044
|
`;
|
|
1045
1045
|
};
|
|
1046
1046
|
ou.fence = function(u, e, t, n, r) {
|
|
@@ -1051,7 +1051,7 @@ ou.fence = function(u, e, t, n, r) {
|
|
|
1051
1051
|
c = l[0], a = l.slice(2).join("");
|
|
1052
1052
|
}
|
|
1053
1053
|
let s;
|
|
1054
|
-
if (t.highlight ? s = t.highlight(i.content, c, a) ||
|
|
1054
|
+
if (t.highlight ? s = t.highlight(i.content, c, a) || _u(i.content) : s = _u(i.content), s.indexOf("<pre") === 0)
|
|
1055
1055
|
return s + `
|
|
1056
1056
|
`;
|
|
1057
1057
|
if (o) {
|
|
@@ -1082,7 +1082,7 @@ ou.softbreak = function(u, e, t) {
|
|
|
1082
1082
|
`;
|
|
1083
1083
|
};
|
|
1084
1084
|
ou.text = function(u, e) {
|
|
1085
|
-
return
|
|
1085
|
+
return _u(u[e].content);
|
|
1086
1086
|
};
|
|
1087
1087
|
ou.html_block = function(u, e) {
|
|
1088
1088
|
return u[e].content;
|
|
@@ -1098,7 +1098,7 @@ Tu.prototype.renderAttrs = function(e) {
|
|
|
1098
1098
|
if (!e.attrs)
|
|
1099
1099
|
return "";
|
|
1100
1100
|
for (r = "", t = 0, n = e.attrs.length; t < n; t++)
|
|
1101
|
-
r += " " +
|
|
1101
|
+
r += " " + _u(e.attrs[t][0]) + '="' + _u(e.attrs[t][1]) + '"';
|
|
1102
1102
|
return r;
|
|
1103
1103
|
};
|
|
1104
1104
|
Tu.prototype.renderToken = function(e, t, n) {
|
|
@@ -1338,8 +1338,8 @@ function N0(u) {
|
|
|
1338
1338
|
g.attrs = [["href", k]], g.level = d++, g.markup = "linkify", g.info = "auto", l.push(g);
|
|
1339
1339
|
const m = new u.Token("text", "", 0);
|
|
1340
1340
|
m.content = w, m.level = d, l.push(m);
|
|
1341
|
-
const
|
|
1342
|
-
|
|
1341
|
+
const x = new u.Token("link_close", "a", -1);
|
|
1342
|
+
x.level = --d, x.markup = "linkify", x.info = "auto", l.push(x), b = s[h].lastIndex;
|
|
1343
1343
|
}
|
|
1344
1344
|
if (b < a.length) {
|
|
1345
1345
|
const h = new u.Token("text", "", 0);
|
|
@@ -1426,17 +1426,17 @@ function $0(u, e) {
|
|
|
1426
1426
|
}
|
|
1427
1427
|
if (b)
|
|
1428
1428
|
for (t = n.length - 1; t >= 0; t--) {
|
|
1429
|
-
let
|
|
1429
|
+
let x = n[t];
|
|
1430
1430
|
if (n[t].level < o)
|
|
1431
1431
|
break;
|
|
1432
|
-
if (
|
|
1433
|
-
|
|
1432
|
+
if (x.single === h && n[t].level === o) {
|
|
1433
|
+
x = n[t];
|
|
1434
1434
|
let D, S;
|
|
1435
|
-
h ? (D = e.md.options.quotes[2], S = e.md.options.quotes[3]) : (D = e.md.options.quotes[0], S = e.md.options.quotes[1]), i.content = ju(i.content, l.index, S), u[
|
|
1436
|
-
u[
|
|
1437
|
-
|
|
1435
|
+
h ? (D = e.md.options.quotes[2], S = e.md.options.quotes[3]) : (D = e.md.options.quotes[0], S = e.md.options.quotes[1]), i.content = ju(i.content, l.index, S), u[x.token].content = ju(
|
|
1436
|
+
u[x.token].content,
|
|
1437
|
+
x.pos,
|
|
1438
1438
|
D
|
|
1439
|
-
), a += S.length - 1,
|
|
1439
|
+
), a += S.length - 1, x.token === r && (a += D.length - 1), c = i.content, s = c.length, n.length = t;
|
|
1440
1440
|
continue u;
|
|
1441
1441
|
}
|
|
1442
1442
|
}
|
|
@@ -1596,17 +1596,17 @@ function G0(u, e, t, n) {
|
|
|
1596
1596
|
if (c !== 124 && c !== 45 && c !== 58 && !I(c) || o === 45 && I(c))
|
|
1597
1597
|
return !1;
|
|
1598
1598
|
for (; i < u.eMarks[r]; ) {
|
|
1599
|
-
const
|
|
1600
|
-
if (
|
|
1599
|
+
const x = u.src.charCodeAt(i);
|
|
1600
|
+
if (x !== 124 && x !== 45 && x !== 58 && !I(x))
|
|
1601
1601
|
return !1;
|
|
1602
1602
|
i++;
|
|
1603
1603
|
}
|
|
1604
1604
|
let a = fe(u, e + 1), s = a.split("|");
|
|
1605
1605
|
const l = [];
|
|
1606
|
-
for (let
|
|
1607
|
-
const D = s[
|
|
1606
|
+
for (let x = 0; x < s.length; x++) {
|
|
1607
|
+
const D = s[x].trim();
|
|
1608
1608
|
if (!D) {
|
|
1609
|
-
if (
|
|
1609
|
+
if (x === 0 || x === s.length - 1)
|
|
1610
1610
|
continue;
|
|
1611
1611
|
return !1;
|
|
1612
1612
|
}
|
|
@@ -1630,22 +1630,22 @@ function G0(u, e, t, n) {
|
|
|
1630
1630
|
w.map = [e, e + 1];
|
|
1631
1631
|
const y = u.push("tr_open", "tr", 1);
|
|
1632
1632
|
y.map = [e, e + 1];
|
|
1633
|
-
for (let
|
|
1633
|
+
for (let x = 0; x < s.length; x++) {
|
|
1634
1634
|
const D = u.push("th_open", "th", 1);
|
|
1635
|
-
l[
|
|
1635
|
+
l[x] && (D.attrs = [["style", "text-align:" + l[x]]]);
|
|
1636
1636
|
const S = u.push("inline", "", 0);
|
|
1637
|
-
S.content = s[
|
|
1637
|
+
S.content = s[x].trim(), S.children = [], u.push("th_close", "th", -1);
|
|
1638
1638
|
}
|
|
1639
1639
|
u.push("tr_close", "tr", -1), u.push("thead_close", "thead", -1);
|
|
1640
1640
|
let g, m = 0;
|
|
1641
1641
|
for (r = e + 2; r < t && !(u.sCount[r] < u.blkIndent); r++) {
|
|
1642
|
-
let
|
|
1642
|
+
let x = !1;
|
|
1643
1643
|
for (let S = 0, B = h.length; S < B; S++)
|
|
1644
1644
|
if (h[S](u, r, t, !0)) {
|
|
1645
|
-
|
|
1645
|
+
x = !0;
|
|
1646
1646
|
break;
|
|
1647
1647
|
}
|
|
1648
|
-
if (
|
|
1648
|
+
if (x || (a = fe(u, r).trim(), !a) || u.sCount[r] - u.blkIndent >= 4 || (s = Je(a), s.length && s[0] === "" && s.shift(), s.length && s[s.length - 1] === "" && s.pop(), m += d - s.length, m > H0))
|
|
1649
1649
|
break;
|
|
1650
1650
|
if (r === e + 2) {
|
|
1651
1651
|
const S = u.push("tbody_open", "tbody", 1);
|
|
@@ -1741,13 +1741,13 @@ function W0(u, e, t, n) {
|
|
|
1741
1741
|
}
|
|
1742
1742
|
if (h)
|
|
1743
1743
|
break;
|
|
1744
|
-
let
|
|
1744
|
+
let x = !1;
|
|
1745
1745
|
for (let D = 0, S = d.length; D < S; D++)
|
|
1746
1746
|
if (d[D](u, f, t, !0)) {
|
|
1747
|
-
|
|
1747
|
+
x = !0;
|
|
1748
1748
|
break;
|
|
1749
1749
|
}
|
|
1750
|
-
if (
|
|
1750
|
+
if (x) {
|
|
1751
1751
|
u.lineMax = f, u.blkIndent !== 0 && (c.push(u.bMarks[f]), a.push(u.bsCount[f]), l.push(u.tShift[f]), s.push(u.sCount[f]), u.sCount[f] -= u.blkIndent);
|
|
1752
1752
|
break;
|
|
1753
1753
|
}
|
|
@@ -1853,8 +1853,8 @@ function X0(u, e, t, n) {
|
|
|
1853
1853
|
const g = u.md.block.ruler.getRules("list"), m = u.parentType;
|
|
1854
1854
|
for (u.parentType = "list"; a < t; ) {
|
|
1855
1855
|
i = h, r = u.eMarks[a];
|
|
1856
|
-
const
|
|
1857
|
-
let D =
|
|
1856
|
+
const x = u.sCount[a] + h - (u.bMarks[a] + u.tShift[a]);
|
|
1857
|
+
let D = x;
|
|
1858
1858
|
for (; i < r; ) {
|
|
1859
1859
|
const J = u.src.charCodeAt(i);
|
|
1860
1860
|
if (J === 9)
|
|
@@ -1867,13 +1867,13 @@ function X0(u, e, t, n) {
|
|
|
1867
1867
|
}
|
|
1868
1868
|
const S = i;
|
|
1869
1869
|
let B;
|
|
1870
|
-
S >= r ? B = 1 : B = D -
|
|
1871
|
-
const R =
|
|
1870
|
+
S >= r ? B = 1 : B = D - x, B > 4 && (B = 1);
|
|
1871
|
+
const R = x + B;
|
|
1872
1872
|
c = u.push("list_item_open", "li", 1), c.markup = String.fromCharCode(f);
|
|
1873
1873
|
const Z = [a, 0];
|
|
1874
1874
|
c.map = Z, d && (c.info = u.src.slice(o, h - 1));
|
|
1875
|
-
const X = u.tight, su = u.tShift[a],
|
|
1876
|
-
if (u.listIndent = u.blkIndent, u.blkIndent = R, u.tight = !0, u.tShift[a] = S - u.bMarks[a], u.sCount[a] = D, S >= r && u.isEmpty(a + 1) ? u.line = Math.min(u.line + 2, t) : u.md.block.tokenize(u, a, t, !0), (!u.tight || y) && (s = !1), y = u.line - a > 1 && u.isEmpty(u.line - 1), u.blkIndent = u.listIndent, u.listIndent = Eu, u.tShift[a] = su, u.sCount[a] =
|
|
1875
|
+
const X = u.tight, su = u.tShift[a], xu = u.sCount[a], Eu = u.listIndent;
|
|
1876
|
+
if (u.listIndent = u.blkIndent, u.blkIndent = R, u.tight = !0, u.tShift[a] = S - u.bMarks[a], u.sCount[a] = D, S >= r && u.isEmpty(a + 1) ? u.line = Math.min(u.line + 2, t) : u.md.block.tokenize(u, a, t, !0), (!u.tight || y) && (s = !1), y = u.line - a > 1 && u.isEmpty(u.line - 1), u.blkIndent = u.listIndent, u.listIndent = Eu, u.tShift[a] = su, u.sCount[a] = xu, u.tight = X, c = u.push("list_item_close", "li", -1), c.markup = String.fromCharCode(f), a = u.line, Z[1] = a, a >= t || u.sCount[a] < u.blkIndent || u.sCount[a] - u.blkIndent >= 4)
|
|
1877
1877
|
break;
|
|
1878
1878
|
let uu = !1;
|
|
1879
1879
|
for (let J = 0, p = g.length; J < p; J++)
|
|
@@ -1902,8 +1902,8 @@ function J0(u, e, t, n) {
|
|
|
1902
1902
|
const m = u.lineMax;
|
|
1903
1903
|
if (g >= m || u.isEmpty(g))
|
|
1904
1904
|
return null;
|
|
1905
|
-
let
|
|
1906
|
-
if (u.sCount[g] - u.blkIndent > 3 && (
|
|
1905
|
+
let x = !1;
|
|
1906
|
+
if (u.sCount[g] - u.blkIndent > 3 && (x = !0), u.sCount[g] < 0 && (x = !0), !x) {
|
|
1907
1907
|
const B = u.md.block.ruler.getRules("reference"), R = u.parentType;
|
|
1908
1908
|
u.parentType = "reference";
|
|
1909
1909
|
let Z = !1;
|
|
@@ -2272,7 +2272,7 @@ function gr(u, e) {
|
|
|
2272
2272
|
return t === u.pos ? !1 : (e || (u.pending += u.src.slice(u.pos, t)), u.pos = t, !0);
|
|
2273
2273
|
}
|
|
2274
2274
|
const mr = /(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;
|
|
2275
|
-
function
|
|
2275
|
+
function _r(u, e) {
|
|
2276
2276
|
if (!u.md.options.linkify || u.linkLevel > 0) return !1;
|
|
2277
2277
|
const t = u.pos, n = u.posMax;
|
|
2278
2278
|
if (t + 3 > n || u.src.charCodeAt(t) !== 58 || u.src.charCodeAt(t + 1) !== 47 || u.src.charCodeAt(t + 2) !== 47) return !1;
|
|
@@ -2299,7 +2299,7 @@ function xr(u, e) {
|
|
|
2299
2299
|
}
|
|
2300
2300
|
return u.pos += c.length - i.length, !0;
|
|
2301
2301
|
}
|
|
2302
|
-
function
|
|
2302
|
+
function xr(u, e) {
|
|
2303
2303
|
let t = u.pos;
|
|
2304
2304
|
if (u.src.charCodeAt(t) !== 10)
|
|
2305
2305
|
return !1;
|
|
@@ -2698,8 +2698,8 @@ function Pr(u) {
|
|
|
2698
2698
|
}
|
|
2699
2699
|
const de = [
|
|
2700
2700
|
["text", gr],
|
|
2701
|
-
["linkify",
|
|
2702
|
-
["newline",
|
|
2701
|
+
["linkify", _r],
|
|
2702
|
+
["newline", xr],
|
|
2703
2703
|
["escape", Er],
|
|
2704
2704
|
["backticks", kr],
|
|
2705
2705
|
["strikethrough", Nt.tokenize],
|
|
@@ -2775,7 +2775,7 @@ Hu.prototype.parse = function(u, e, t, n) {
|
|
|
2775
2775
|
Hu.prototype.State = Uu;
|
|
2776
2776
|
function $r(u) {
|
|
2777
2777
|
const e = {};
|
|
2778
|
-
u = u || {}, e.src_Any =
|
|
2778
|
+
u = u || {}, e.src_Any = xt.source, e.src_Cc = Et.source, e.src_Z = yt.source, e.src_P = Ce.source, e.src_ZPCc = [e.src_Z, e.src_P, e.src_Cc].join("|"), e.src_ZCc = [e.src_Z, e.src_Cc].join("|");
|
|
2779
2779
|
const t = "[><|]";
|
|
2780
2780
|
return e.src_pseudo_letter = "(?:(?!" + t + "|" + e.src_ZPCc + ")" + e.src_Any + ")", e.src_ip4 = "(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)", e.src_auth = "(?:(?:(?!" + e.src_ZCc + "|[@/\\[\\]()]).)+@)?", e.src_port = "(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?", e.src_host_terminator = "(?=$|" + t + "|" + e.src_ZPCc + ")(?!" + (u["---"] ? "-(?!--)|" : "-|") + "_|:\\d|\\.-|\\.(?!$|" + e.src_ZPCc + "))", e.src_path = "(?:[/?#](?:(?!" + e.src_ZCc + "|" + t + `|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!` + e.src_ZCc + "|\\]).)*\\]|\\((?:(?!" + e.src_ZCc + "|[)]).)*\\)|\\{(?:(?!" + e.src_ZCc + '|[}]).)*\\}|\\"(?:(?!' + e.src_ZCc + `|["]).)+\\"|\\'(?:(?!` + e.src_ZCc + "|[']).)+\\'|\\'(?=" + e.src_pseudo_letter + "|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!" + e.src_ZCc + "|[.]|$)|" + (u["---"] ? "\\-(?!--(?:[^-]|$))(?:-*)|" : "\\-+|") + // allow `,,,` in paths
|
|
2781
2781
|
",(?!" + e.src_ZCc + "|$)|;(?!" + e.src_ZCc + "|$)|\\!+(?!" + e.src_ZCc + "|[!]|$)|\\?(?!" + e.src_ZCc + "|[?]|$))+|\\/)?", e.src_email_name = '[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*', e.src_xn = "xn--[a-z0-9\\-]{1,59}", e.src_domain_root = // Allow letters & digits (http://test1)
|
|
@@ -2785,7 +2785,7 @@ function $r(u) {
|
|
|
2785
2785
|
// but can start with > (markdown blockquote)
|
|
2786
2786
|
"(^|(?![.:/\\-_@])(?:[$+<=>^`||]|" + e.src_ZPCc + "))((?![$+<=>^`||])" + e.tpl_host_port_no_ip_fuzzy_strict + e.src_path + ")", e;
|
|
2787
2787
|
}
|
|
2788
|
-
function
|
|
2788
|
+
function xe(u) {
|
|
2789
2789
|
return Array.prototype.slice.call(arguments, 1).forEach(function(t) {
|
|
2790
2790
|
t && Object.keys(t).forEach(function(n) {
|
|
2791
2791
|
u[n] = t[n];
|
|
@@ -2915,13 +2915,13 @@ function Ee(u, e) {
|
|
|
2915
2915
|
function K(u, e) {
|
|
2916
2916
|
if (!(this instanceof K))
|
|
2917
2917
|
return new K(u, e);
|
|
2918
|
-
e || Zr(u) && (e = u, u = {}), this.__opts__ =
|
|
2918
|
+
e || Zr(u) && (e = u, u = {}), this.__opts__ = xe({}, Rt, e), this.__index__ = -1, this.__last_index__ = -1, this.__schema__ = "", this.__text_cache__ = "", this.__schemas__ = xe({}, jr, u), this.__compiled__ = {}, this.__tlds__ = Vr, this.__tlds_replaced__ = !1, this.re = {}, Ju(this);
|
|
2919
2919
|
}
|
|
2920
2920
|
K.prototype.add = function(e, t) {
|
|
2921
2921
|
return this.__schemas__[e] = t, Ju(this), this;
|
|
2922
2922
|
};
|
|
2923
2923
|
K.prototype.set = function(e) {
|
|
2924
|
-
return this.__opts__ =
|
|
2924
|
+
return this.__opts__ = xe(this.__opts__, e), this;
|
|
2925
2925
|
};
|
|
2926
2926
|
K.prototype.test = function(e) {
|
|
2927
2927
|
if (this.__text_cache__ = e, this.__index__ = -1, !e.length)
|
|
@@ -3293,7 +3293,7 @@ function mi(u) {
|
|
|
3293
3293
|
function Q(u, e) {
|
|
3294
3294
|
if (!(this instanceof Q))
|
|
3295
3295
|
return new Q(u, e);
|
|
3296
|
-
e || De(u) || (e = u || {}, u = "default"), this.inline = new Hu(), this.block = new te(), this.core = new Se(), this.renderer = new Tu(), this.linkify = new K(), this.validateLink = pi, this.normalizeLink = gi, this.normalizeLinkText = mi, this.utils =
|
|
3296
|
+
e || De(u) || (e = u || {}, u = "default"), this.inline = new Hu(), this.block = new te(), this.core = new Se(), this.renderer = new Tu(), this.linkify = new K(), this.validateLink = pi, this.normalizeLink = gi, this.normalizeLinkText = mi, this.utils = x0, this.helpers = ue({}, A0), this.options = {}, this.configure(u), e && this.set(e);
|
|
3297
3297
|
}
|
|
3298
3298
|
Q.prototype.set = function(u) {
|
|
3299
3299
|
return ue(this.options, u), this;
|
|
@@ -3355,7 +3355,7 @@ Q.prototype.parseInline = function(u, e) {
|
|
|
3355
3355
|
Q.prototype.renderInline = function(u, e) {
|
|
3356
3356
|
return e = e || {}, this.renderer.render(this.parseInline(u, e), this.options, e);
|
|
3357
3357
|
};
|
|
3358
|
-
function
|
|
3358
|
+
function _i(u) {
|
|
3359
3359
|
return u && u.__esModule && Object.prototype.hasOwnProperty.call(u, "default") ? u.default : u;
|
|
3360
3360
|
}
|
|
3361
3361
|
function Gt(u) {
|
|
@@ -3392,7 +3392,7 @@ function gu(u, ...e) {
|
|
|
3392
3392
|
}), /** @type {T} */
|
|
3393
3393
|
t;
|
|
3394
3394
|
}
|
|
3395
|
-
const
|
|
3395
|
+
const xi = "</span>", ot = (u) => !!u.scope, Ei = (u, { prefix: e }) => {
|
|
3396
3396
|
if (u.startsWith("language:"))
|
|
3397
3397
|
return u.replace("language:", "language-");
|
|
3398
3398
|
if (u.includes(".")) {
|
|
@@ -3438,7 +3438,7 @@ class ki {
|
|
|
3438
3438
|
*
|
|
3439
3439
|
* @param {Node} node */
|
|
3440
3440
|
closeNode(e) {
|
|
3441
|
-
ot(e) && (this.buffer +=
|
|
3441
|
+
ot(e) && (this.buffer += xi);
|
|
3442
3442
|
}
|
|
3443
3443
|
/**
|
|
3444
3444
|
* returns the accumulated buffer
|
|
@@ -4045,116 +4045,116 @@ https://github.com/highlightjs/highlight.js/issues/2277`), N = p, v = A), E ===
|
|
|
4045
4045
|
}
|
|
4046
4046
|
function d(p, A, E, v) {
|
|
4047
4047
|
const N = /* @__PURE__ */ Object.create(null);
|
|
4048
|
-
function L(
|
|
4049
|
-
return
|
|
4048
|
+
function L(_, C) {
|
|
4049
|
+
return _.keywords[C];
|
|
4050
4050
|
}
|
|
4051
4051
|
function q() {
|
|
4052
4052
|
if (!F.keywords) {
|
|
4053
4053
|
$.addText(O);
|
|
4054
4054
|
return;
|
|
4055
4055
|
}
|
|
4056
|
-
let
|
|
4056
|
+
let _ = 0;
|
|
4057
4057
|
F.keywordPatternRe.lastIndex = 0;
|
|
4058
4058
|
let C = F.keywordPatternRe.exec(O), T = "";
|
|
4059
4059
|
for (; C; ) {
|
|
4060
|
-
T += O.substring(
|
|
4060
|
+
T += O.substring(_, C.index);
|
|
4061
4061
|
const M = ru.case_insensitive ? C[0].toLowerCase() : C[0], U = L(F, M);
|
|
4062
4062
|
if (U) {
|
|
4063
|
-
const [lu,
|
|
4064
|
-
if ($.addText(T), T = "", N[M] = (N[M] || 0) + 1, N[M] <= lc && (Zu +=
|
|
4063
|
+
const [lu, _n] = U;
|
|
4064
|
+
if ($.addText(T), T = "", N[M] = (N[M] || 0) + 1, N[M] <= lc && (Zu += _n), lu.startsWith("_"))
|
|
4065
4065
|
T += C[0];
|
|
4066
4066
|
else {
|
|
4067
|
-
const
|
|
4068
|
-
nu(C[0],
|
|
4067
|
+
const xn = ru.classNameAliases[lu] || lu;
|
|
4068
|
+
nu(C[0], xn);
|
|
4069
4069
|
}
|
|
4070
4070
|
} else
|
|
4071
4071
|
T += C[0];
|
|
4072
|
-
|
|
4072
|
+
_ = F.keywordPatternRe.lastIndex, C = F.keywordPatternRe.exec(O);
|
|
4073
4073
|
}
|
|
4074
|
-
T += O.substring(
|
|
4074
|
+
T += O.substring(_), $.addText(T);
|
|
4075
4075
|
}
|
|
4076
4076
|
function tu() {
|
|
4077
4077
|
if (O === "") return;
|
|
4078
|
-
let
|
|
4078
|
+
let _ = null;
|
|
4079
4079
|
if (typeof F.subLanguage == "string") {
|
|
4080
4080
|
if (!e[F.subLanguage]) {
|
|
4081
4081
|
$.addText(O);
|
|
4082
4082
|
return;
|
|
4083
4083
|
}
|
|
4084
|
-
|
|
4085
|
-
|
|
4084
|
+
_ = d(F.subLanguage, O, !0, ze[F.subLanguage]), ze[F.subLanguage] = /** @type {CompiledMode} */
|
|
4085
|
+
_._top;
|
|
4086
4086
|
} else
|
|
4087
|
-
|
|
4088
|
-
F.relevance > 0 && (Zu +=
|
|
4087
|
+
_ = h(O, F.subLanguage.length ? F.subLanguage : null);
|
|
4088
|
+
F.relevance > 0 && (Zu += _.relevance), $.__addSublanguage(_._emitter, _.language);
|
|
4089
4089
|
}
|
|
4090
4090
|
function V() {
|
|
4091
4091
|
F.subLanguage != null ? tu() : q(), O = "";
|
|
4092
4092
|
}
|
|
4093
|
-
function nu(
|
|
4094
|
-
|
|
4093
|
+
function nu(_, C) {
|
|
4094
|
+
_ !== "" && ($.startScope(C), $.addText(_), $.endScope());
|
|
4095
4095
|
}
|
|
4096
|
-
function Oe(
|
|
4096
|
+
function Oe(_, C) {
|
|
4097
4097
|
let T = 1;
|
|
4098
4098
|
const M = C.length - 1;
|
|
4099
4099
|
for (; T <= M; ) {
|
|
4100
|
-
if (!
|
|
4100
|
+
if (!_._emit[T]) {
|
|
4101
4101
|
T++;
|
|
4102
4102
|
continue;
|
|
4103
4103
|
}
|
|
4104
|
-
const U = ru.classNameAliases[
|
|
4104
|
+
const U = ru.classNameAliases[_[T]] || _[T], lu = C[T];
|
|
4105
4105
|
U ? nu(lu, U) : (O = lu, q(), O = ""), T++;
|
|
4106
4106
|
}
|
|
4107
4107
|
}
|
|
4108
|
-
function Ie(
|
|
4109
|
-
return
|
|
4108
|
+
function Ie(_, C) {
|
|
4109
|
+
return _.scope && typeof _.scope == "string" && $.openNode(ru.classNameAliases[_.scope] || _.scope), _.beginScope && (_.beginScope._wrap ? (nu(O, ru.classNameAliases[_.beginScope._wrap] || _.beginScope._wrap), O = "") : _.beginScope._multi && (Oe(_.beginScope, C), O = "")), F = Object.create(_, { parent: { value: F } }), F;
|
|
4110
4110
|
}
|
|
4111
|
-
function Be(
|
|
4112
|
-
let M = wi(
|
|
4111
|
+
function Be(_, C, T) {
|
|
4112
|
+
let M = wi(_.endRe, T);
|
|
4113
4113
|
if (M) {
|
|
4114
|
-
if (
|
|
4115
|
-
const U = new ct(
|
|
4116
|
-
|
|
4114
|
+
if (_["on:end"]) {
|
|
4115
|
+
const U = new ct(_);
|
|
4116
|
+
_["on:end"](C, U), U.isMatchIgnored && (M = !1);
|
|
4117
4117
|
}
|
|
4118
4118
|
if (M) {
|
|
4119
|
-
for (;
|
|
4120
|
-
|
|
4121
|
-
return
|
|
4119
|
+
for (; _.endsParent && _.parent; )
|
|
4120
|
+
_ = _.parent;
|
|
4121
|
+
return _;
|
|
4122
4122
|
}
|
|
4123
4123
|
}
|
|
4124
|
-
if (
|
|
4125
|
-
return Be(
|
|
4124
|
+
if (_.endsWithParent)
|
|
4125
|
+
return Be(_.parent, C, T);
|
|
4126
4126
|
}
|
|
4127
|
-
function hn(
|
|
4128
|
-
return F.matcher.regexIndex === 0 ? (O +=
|
|
4127
|
+
function hn(_) {
|
|
4128
|
+
return F.matcher.regexIndex === 0 ? (O += _[0], 1) : (oe = !0, 0);
|
|
4129
4129
|
}
|
|
4130
|
-
function bn(
|
|
4131
|
-
const C =
|
|
4130
|
+
function bn(_) {
|
|
4131
|
+
const C = _[0], T = _.rule, M = new ct(T), U = [T.__beforeBegin, T["on:begin"]];
|
|
4132
4132
|
for (const lu of U)
|
|
4133
|
-
if (lu && (lu(
|
|
4133
|
+
if (lu && (lu(_, M), M.isMatchIgnored))
|
|
4134
4134
|
return hn(C);
|
|
4135
|
-
return T.skip ? O += C : (T.excludeBegin && (O += C), V(), !T.returnBegin && !T.excludeBegin && (O = C)), Ie(T,
|
|
4135
|
+
return T.skip ? O += C : (T.excludeBegin && (O += C), V(), !T.returnBegin && !T.excludeBegin && (O = C)), Ie(T, _), T.returnBegin ? 0 : C.length;
|
|
4136
4136
|
}
|
|
4137
|
-
function pn(
|
|
4138
|
-
const C =
|
|
4137
|
+
function pn(_) {
|
|
4138
|
+
const C = _[0], T = A.substring(_.index), M = Be(F, _, T);
|
|
4139
4139
|
if (!M)
|
|
4140
4140
|
return dt;
|
|
4141
4141
|
const U = F;
|
|
4142
|
-
F.endScope && F.endScope._wrap ? (V(), nu(C, F.endScope._wrap)) : F.endScope && F.endScope._multi ? (V(), Oe(F.endScope,
|
|
4142
|
+
F.endScope && F.endScope._wrap ? (V(), nu(C, F.endScope._wrap)) : F.endScope && F.endScope._multi ? (V(), Oe(F.endScope, _)) : U.skip ? O += C : (U.returnEnd || U.excludeEnd || (O += C), V(), U.excludeEnd && (O = C));
|
|
4143
4143
|
do
|
|
4144
4144
|
F.scope && $.closeNode(), !F.skip && !F.subLanguage && (Zu += F.relevance), F = F.parent;
|
|
4145
4145
|
while (F !== M.parent);
|
|
4146
|
-
return M.starts && Ie(M.starts,
|
|
4146
|
+
return M.starts && Ie(M.starts, _), U.returnEnd ? 0 : C.length;
|
|
4147
4147
|
}
|
|
4148
4148
|
function gn() {
|
|
4149
|
-
const
|
|
4149
|
+
const _ = [];
|
|
4150
4150
|
for (let C = F; C !== ru; C = C.parent)
|
|
4151
|
-
C.scope &&
|
|
4152
|
-
|
|
4151
|
+
C.scope && _.unshift(C.scope);
|
|
4152
|
+
_.forEach((C) => $.openNode(C));
|
|
4153
4153
|
}
|
|
4154
4154
|
let Gu = {};
|
|
4155
|
-
function Le(
|
|
4155
|
+
function Le(_, C) {
|
|
4156
4156
|
const T = C && C[0];
|
|
4157
|
-
if (O +=
|
|
4157
|
+
if (O += _, T == null)
|
|
4158
4158
|
return V(), 0;
|
|
4159
4159
|
if (Gu.type === "begin" && C.type === "end" && Gu.index === C.index && T === "") {
|
|
4160
4160
|
if (O += A.slice(C.index, C.index + 1), !r) {
|
|
@@ -4194,10 +4194,10 @@ https://github.com/highlightjs/highlight.js/issues/2277`), N = p, v = A), E ===
|
|
|
4194
4194
|
else {
|
|
4195
4195
|
for (F.matcher.considerAll(); ; ) {
|
|
4196
4196
|
ce++, oe ? oe = !1 : F.matcher.considerAll(), F.matcher.lastIndex = ku;
|
|
4197
|
-
const
|
|
4198
|
-
if (!
|
|
4199
|
-
const C = A.substring(ku,
|
|
4200
|
-
ku =
|
|
4197
|
+
const _ = F.matcher.exec(A);
|
|
4198
|
+
if (!_) break;
|
|
4199
|
+
const C = A.substring(ku, _.index), T = Le(C, _);
|
|
4200
|
+
ku = _.index + T;
|
|
4201
4201
|
}
|
|
4202
4202
|
Le(A.substring(ku));
|
|
4203
4203
|
}
|
|
@@ -4209,18 +4209,18 @@ https://github.com/highlightjs/highlight.js/issues/2277`), N = p, v = A), E ===
|
|
|
4209
4209
|
_emitter: $,
|
|
4210
4210
|
_top: F
|
|
4211
4211
|
};
|
|
4212
|
-
} catch (
|
|
4213
|
-
if (
|
|
4212
|
+
} catch (_) {
|
|
4213
|
+
if (_.message && _.message.includes("Illegal"))
|
|
4214
4214
|
return {
|
|
4215
4215
|
language: p,
|
|
4216
4216
|
value: ge(A),
|
|
4217
4217
|
illegal: !0,
|
|
4218
4218
|
relevance: 0,
|
|
4219
4219
|
_illegalBy: {
|
|
4220
|
-
message:
|
|
4220
|
+
message: _.message,
|
|
4221
4221
|
index: ku,
|
|
4222
4222
|
context: A.slice(ku - 100, ku + 100),
|
|
4223
|
-
mode:
|
|
4223
|
+
mode: _.mode,
|
|
4224
4224
|
resultSoFar: ie
|
|
4225
4225
|
},
|
|
4226
4226
|
_emitter: $
|
|
@@ -4231,11 +4231,11 @@ https://github.com/highlightjs/highlight.js/issues/2277`), N = p, v = A), E ===
|
|
|
4231
4231
|
value: ge(A),
|
|
4232
4232
|
illegal: !1,
|
|
4233
4233
|
relevance: 0,
|
|
4234
|
-
errorRaised:
|
|
4234
|
+
errorRaised: _,
|
|
4235
4235
|
_emitter: $,
|
|
4236
4236
|
_top: F
|
|
4237
4237
|
};
|
|
4238
|
-
throw
|
|
4238
|
+
throw _;
|
|
4239
4239
|
}
|
|
4240
4240
|
}
|
|
4241
4241
|
function b(p) {
|
|
@@ -4302,15 +4302,15 @@ https://github.com/highlightjs/highlight.js/issues/2277`), N = p, v = A), E ===
|
|
|
4302
4302
|
c = ft(c, p);
|
|
4303
4303
|
}
|
|
4304
4304
|
const y = () => {
|
|
4305
|
-
|
|
4305
|
+
x(), Du("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
|
|
4306
4306
|
};
|
|
4307
4307
|
function g() {
|
|
4308
|
-
|
|
4308
|
+
x(), Du("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now.");
|
|
4309
4309
|
}
|
|
4310
4310
|
let m = !1;
|
|
4311
|
-
function
|
|
4311
|
+
function x() {
|
|
4312
4312
|
function p() {
|
|
4313
|
-
|
|
4313
|
+
x();
|
|
4314
4314
|
}
|
|
4315
4315
|
if (document.readyState === "loading") {
|
|
4316
4316
|
m || window.addEventListener("DOMContentLoaded", p, !1), m = !0;
|
|
@@ -4362,7 +4362,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), N = p, v = A), E ===
|
|
|
4362
4362
|
);
|
|
4363
4363
|
});
|
|
4364
4364
|
}
|
|
4365
|
-
function
|
|
4365
|
+
function xu(p) {
|
|
4366
4366
|
su(p), n.push(p);
|
|
4367
4367
|
}
|
|
4368
4368
|
function Eu(p) {
|
|
@@ -4381,7 +4381,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), N = p, v = A), E ===
|
|
|
4381
4381
|
Object.assign(u, {
|
|
4382
4382
|
highlight: l,
|
|
4383
4383
|
highlightAuto: h,
|
|
4384
|
-
highlightAll:
|
|
4384
|
+
highlightAll: x,
|
|
4385
4385
|
highlightElement: k,
|
|
4386
4386
|
// TODO: Remove with v12 API
|
|
4387
4387
|
highlightBlock: J,
|
|
@@ -4395,7 +4395,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), N = p, v = A), E ===
|
|
|
4395
4395
|
registerAliases: Z,
|
|
4396
4396
|
autoDetection: X,
|
|
4397
4397
|
inherit: ft,
|
|
4398
|
-
addPlugin:
|
|
4398
|
+
addPlugin: xu,
|
|
4399
4399
|
removePlugin: Eu
|
|
4400
4400
|
}), u.debugMode = function() {
|
|
4401
4401
|
r = !1;
|
|
@@ -4416,7 +4416,7 @@ vu.newInstance = () => en({});
|
|
|
4416
4416
|
var fc = vu;
|
|
4417
4417
|
vu.HighlightJS = vu;
|
|
4418
4418
|
vu.default = vu;
|
|
4419
|
-
const j = /* @__PURE__ */
|
|
4419
|
+
const j = /* @__PURE__ */ _i(fc);
|
|
4420
4420
|
function dc(u) {
|
|
4421
4421
|
const e = {
|
|
4422
4422
|
className: "attr",
|
|
@@ -4780,13 +4780,13 @@ function bt(u) {
|
|
|
4780
4780
|
"self"
|
|
4781
4781
|
].concat(m)
|
|
4782
4782
|
});
|
|
4783
|
-
const
|
|
4783
|
+
const x = [].concat(g, b.contains), D = x.concat([
|
|
4784
4784
|
// eat recursive parens in sub expressions
|
|
4785
4785
|
{
|
|
4786
4786
|
begin: /(\s*)\(/,
|
|
4787
4787
|
end: /\)/,
|
|
4788
4788
|
keywords: c,
|
|
4789
|
-
contains: ["self"].concat(
|
|
4789
|
+
contains: ["self"].concat(x)
|
|
4790
4790
|
}
|
|
4791
4791
|
]), S = {
|
|
4792
4792
|
className: "params",
|
|
@@ -4890,13 +4890,13 @@ function bt(u) {
|
|
|
4890
4890
|
match: /\b[A-Z][A-Z_0-9]+\b/,
|
|
4891
4891
|
className: "variable.constant"
|
|
4892
4892
|
};
|
|
4893
|
-
function
|
|
4893
|
+
function xu(E) {
|
|
4894
4894
|
return e.concat("(?!", E.join("|"), ")");
|
|
4895
4895
|
}
|
|
4896
4896
|
const Eu = {
|
|
4897
4897
|
match: e.concat(
|
|
4898
4898
|
/\b/,
|
|
4899
|
-
|
|
4899
|
+
xu([
|
|
4900
4900
|
...rn,
|
|
4901
4901
|
"super",
|
|
4902
4902
|
"import"
|
|
@@ -5435,13 +5435,13 @@ function mc(u) {
|
|
|
5435
5435
|
"self"
|
|
5436
5436
|
].concat(m)
|
|
5437
5437
|
});
|
|
5438
|
-
const
|
|
5438
|
+
const x = [].concat(g, b.contains), D = x.concat([
|
|
5439
5439
|
// eat recursive parens in sub expressions
|
|
5440
5440
|
{
|
|
5441
5441
|
begin: /(\s*)\(/,
|
|
5442
5442
|
end: /\)/,
|
|
5443
5443
|
keywords: c,
|
|
5444
|
-
contains: ["self"].concat(
|
|
5444
|
+
contains: ["self"].concat(x)
|
|
5445
5445
|
}
|
|
5446
5446
|
]), S = {
|
|
5447
5447
|
className: "params",
|
|
@@ -5545,13 +5545,13 @@ function mc(u) {
|
|
|
5545
5545
|
match: /\b[A-Z][A-Z_0-9]+\b/,
|
|
5546
5546
|
className: "variable.constant"
|
|
5547
5547
|
};
|
|
5548
|
-
function
|
|
5548
|
+
function xu(E) {
|
|
5549
5549
|
return e.concat("(?!", E.join("|"), ")");
|
|
5550
5550
|
}
|
|
5551
5551
|
const Eu = {
|
|
5552
5552
|
match: e.concat(
|
|
5553
5553
|
/\b/,
|
|
5554
|
-
|
|
5554
|
+
xu([
|
|
5555
5555
|
...ln,
|
|
5556
5556
|
"super",
|
|
5557
5557
|
"import"
|
|
@@ -6073,7 +6073,7 @@ function gt(u) {
|
|
|
6073
6073
|
]
|
|
6074
6074
|
};
|
|
6075
6075
|
}
|
|
6076
|
-
const
|
|
6076
|
+
const _c = (u) => ({
|
|
6077
6077
|
IMPORTANT: {
|
|
6078
6078
|
scope: "meta",
|
|
6079
6079
|
begin: "!important"
|
|
@@ -6106,7 +6106,7 @@ const xc = (u) => ({
|
|
|
6106
6106
|
className: "attr",
|
|
6107
6107
|
begin: /--[A-Za-z_][A-Za-z0-9_-]*/
|
|
6108
6108
|
}
|
|
6109
|
-
}),
|
|
6109
|
+
}), xc = [
|
|
6110
6110
|
"a",
|
|
6111
6111
|
"abbr",
|
|
6112
6112
|
"address",
|
|
@@ -6227,7 +6227,7 @@ const xc = (u) => ({
|
|
|
6227
6227
|
"foreignObject",
|
|
6228
6228
|
"clipPath"
|
|
6229
6229
|
], kc = [
|
|
6230
|
-
...
|
|
6230
|
+
...xc,
|
|
6231
6231
|
...Ec
|
|
6232
6232
|
], yc = [
|
|
6233
6233
|
"any-hover",
|
|
@@ -6871,7 +6871,7 @@ const xc = (u) => ({
|
|
|
6871
6871
|
"zoom"
|
|
6872
6872
|
].sort().reverse();
|
|
6873
6873
|
function wc(u) {
|
|
6874
|
-
const e = u.regex, t =
|
|
6874
|
+
const e = u.regex, t = _c(u), n = { begin: /-(webkit|moz|ms|o)-(?=[a-z])/ }, r = "and or not only", i = /@-?\w[\w]*(-\w+)*/, o = "[a-zA-Z-][a-zA-Z0-9_-]*", c = [
|
|
6875
6875
|
u.APOS_STRING_MODE,
|
|
6876
6876
|
u.QUOTE_STRING_MODE
|
|
6877
6877
|
];
|
|
@@ -7155,7 +7155,7 @@ function mt(u) {
|
|
|
7155
7155
|
"typeset",
|
|
7156
7156
|
"ulimit",
|
|
7157
7157
|
"unalias"
|
|
7158
|
-
],
|
|
7158
|
+
], x = [
|
|
7159
7159
|
"autoload",
|
|
7160
7160
|
"bg",
|
|
7161
7161
|
"bindkey",
|
|
@@ -7345,7 +7345,7 @@ function mt(u) {
|
|
|
7345
7345
|
// Shell modifiers
|
|
7346
7346
|
"set",
|
|
7347
7347
|
"shopt",
|
|
7348
|
-
...
|
|
7348
|
+
...x,
|
|
7349
7349
|
...D
|
|
7350
7350
|
]
|
|
7351
7351
|
},
|
|
@@ -7376,7 +7376,7 @@ const Sc = {
|
|
|
7376
7376
|
}, Tc = ["innerHTML"], Nc = {
|
|
7377
7377
|
key: 2,
|
|
7378
7378
|
class: "scq-chat-message__text"
|
|
7379
|
-
}, Mc = /* @__PURE__ */
|
|
7379
|
+
}, Mc = /* @__PURE__ */ _t({
|
|
7380
7380
|
name: "ChatMessage",
|
|
7381
7381
|
__name: "ChatMessage",
|
|
7382
7382
|
props: {
|
|
@@ -7400,7 +7400,9 @@ const Sc = {
|
|
|
7400
7400
|
}
|
|
7401
7401
|
return `<pre class="scq-chat-message__code-block"><code class="hljs">${j.highlightAuto(h).value}</code></pre>`;
|
|
7402
7402
|
}
|
|
7403
|
-
})
|
|
7403
|
+
});
|
|
7404
|
+
e.renderer.rules.table_open = () => '<div class="scq-chat-message__table-wrap"><table>', e.renderer.rules.table_close = () => "</table></div>";
|
|
7405
|
+
const t = u, n = (h) => {
|
|
7404
7406
|
const f = h.trim();
|
|
7405
7407
|
if (!f || !(f.startsWith("{") && f.endsWith("}") || f.startsWith("[") && f.endsWith("]")))
|
|
7406
7408
|
return !1;
|
|
@@ -7459,7 +7461,7 @@ const Sc = {
|
|
|
7459
7461
|
], 2)
|
|
7460
7462
|
], 2));
|
|
7461
7463
|
}
|
|
7462
|
-
}), Ou = /* @__PURE__ */ ke(Mc, [["__scopeId", "data-v-
|
|
7464
|
+
}), Ou = /* @__PURE__ */ ke(Mc, [["__scopeId", "data-v-58bf8ba2"]]), Rc = (u) => `scq-${u.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase()}`;
|
|
7463
7465
|
Ou.install = (u) => {
|
|
7464
7466
|
u.component(Rc(Ou.name), Ou);
|
|
7465
7467
|
};
|