@n8n/chat 0.68.5 → 0.68.7
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/chat.bundle.es.js +325 -278
- package/dist/chat.bundle.umd.js +15 -15
- package/dist/chat.es.js +322 -274
- package/dist/chat.umd.js +13 -12
- package/dist/style.css +2 -2
- package/package.json +3 -3
package/dist/chat.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Package version @n8n/chat@0.68.
|
|
1
|
+
/*! Package version @n8n/chat@0.68.7 */
|
|
2
2
|
import * as Vue from "vue";
|
|
3
3
|
import { Comment, Fragment, Teleport, Text, Transition, cloneVNode, computed, createApp, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createStaticVNode, createTextVNode, createVNode, defineComponent, getCurrentInstance, guardReactiveProps, h, inject, isRef, mergeDefaults, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onBeforeMount, onBeforeUnmount, onDeactivated, onMounted, onUnmounted, onUpdated, openBlock, popScopeId, provide, pushScopeId, reactive, readonly, ref, renderList, renderSlot, resolveComponent, resolveDirective, resolveDynamicComponent, shallowRef, toDisplayString, toRaw, toRef, toRefs, triggerRef, unref, useAttrs, useCssModule, useSlots, vModelText, vShow, warn, watch, watchEffect, withCtx, withDirectives, withKeys, withModifiers } from "vue";
|
|
4
4
|
var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropDesc = Object.getOwnPropertyDescriptor, __getOwnPropNames = Object.getOwnPropertyNames, __getProtoOf = Object.getPrototypeOf, __hasOwnProp$1 = Object.prototype.hasOwnProperty, __esmMin = (e, t) => () => (e && (t = e(e = 0)), t), __commonJSMin = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), __export = (e) => {
|
|
@@ -647,7 +647,7 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
|
|
|
647
647
|
let n = e && e.exec(t);
|
|
648
648
|
return n && n.index === 0;
|
|
649
649
|
}
|
|
650
|
-
var F7 = /\[(?:[^\\\]]|\\.)*\]
|
|
650
|
+
var F7 = new RegExp(M7(/\[(?:[^\\\]]|\\.)*\]/, /\(\?<(?![=!])[^>]+>/, /\(\?'[^']+'/, /\(\??/, /\\([1-9][0-9]*)/, /\\./));
|
|
651
651
|
function I7(e, { joinWith: t }) {
|
|
652
652
|
let n = 0;
|
|
653
653
|
return e.map((e) => {
|
|
@@ -659,7 +659,7 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
|
|
|
659
659
|
i += r;
|
|
660
660
|
break;
|
|
661
661
|
}
|
|
662
|
-
i += r.substring(0, e.index), r = r.substring(e.index + e[0].length), e[0][0] === "\\" && e[1] ? i += "\\" + String(Number(e[1]) + t) : (i += e[0], e[0] === "(" && n++);
|
|
662
|
+
i += r.substring(0, e.index), r = r.substring(e.index + e[0].length), e[0][0] === "\\" && e[1] ? i += "\\" + String(Number(e[1]) + t) : (i += e[0], (e[0] === "(" || /^\(\?[<']/.test(e[0])) && n++);
|
|
663
663
|
}
|
|
664
664
|
return i;
|
|
665
665
|
}).map((e) => `(${e})`).join(t);
|
|
@@ -719,18 +719,14 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
|
|
|
719
719
|
begin: H7,
|
|
720
720
|
relevance: 0
|
|
721
721
|
}, n9 = {
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
end: /\]/,
|
|
731
|
-
relevance: 0,
|
|
732
|
-
contains: [G7]
|
|
733
|
-
}]
|
|
722
|
+
scope: "regexp",
|
|
723
|
+
begin: /\/(?=[^/\n]*\/)/,
|
|
724
|
+
end: /\/[gimuy]*/,
|
|
725
|
+
contains: [G7, {
|
|
726
|
+
begin: /\[/,
|
|
727
|
+
end: /\]/,
|
|
728
|
+
relevance: 0,
|
|
729
|
+
contains: [G7]
|
|
734
730
|
}]
|
|
735
731
|
}, r9 = {
|
|
736
732
|
scope: "title",
|
|
@@ -745,29 +741,15 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
|
|
|
745
741
|
relevance: 0
|
|
746
742
|
}, o9 = /* @__PURE__ */ Object.freeze({
|
|
747
743
|
__proto__: null,
|
|
748
|
-
MATCH_NOTHING_RE: L7,
|
|
749
|
-
IDENT_RE: R7,
|
|
750
|
-
UNDERSCORE_IDENT_RE: z7,
|
|
751
|
-
NUMBER_RE: B7,
|
|
752
|
-
C_NUMBER_RE: V7,
|
|
753
|
-
BINARY_NUMBER_RE: H7,
|
|
754
|
-
RE_STARTERS_RE: U7,
|
|
755
|
-
SHEBANG: W7,
|
|
756
|
-
BACKSLASH_ESCAPE: G7,
|
|
757
744
|
APOS_STRING_MODE: K7,
|
|
758
|
-
|
|
759
|
-
|
|
745
|
+
BACKSLASH_ESCAPE: G7,
|
|
746
|
+
BINARY_NUMBER_MODE: t9,
|
|
747
|
+
BINARY_NUMBER_RE: H7,
|
|
760
748
|
COMMENT: Y7,
|
|
761
|
-
C_LINE_COMMENT_MODE: X7,
|
|
762
749
|
C_BLOCK_COMMENT_MODE: Z7,
|
|
763
|
-
|
|
764
|
-
NUMBER_MODE: $7,
|
|
750
|
+
C_LINE_COMMENT_MODE: X7,
|
|
765
751
|
C_NUMBER_MODE: e9,
|
|
766
|
-
|
|
767
|
-
REGEXP_MODE: n9,
|
|
768
|
-
TITLE_MODE: r9,
|
|
769
|
-
UNDERSCORE_TITLE_MODE: i9,
|
|
770
|
-
METHOD_GUARD: a9,
|
|
752
|
+
C_NUMBER_RE: V7,
|
|
771
753
|
END_SAME_AS_BEGIN: function(e) {
|
|
772
754
|
return Object.assign(e, {
|
|
773
755
|
"on:begin": (e, t) => {
|
|
@@ -777,7 +759,21 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
|
|
|
777
759
|
t.data._beginMatch !== e[1] && t.ignoreMatch();
|
|
778
760
|
}
|
|
779
761
|
});
|
|
780
|
-
}
|
|
762
|
+
},
|
|
763
|
+
HASH_COMMENT_MODE: Q7,
|
|
764
|
+
IDENT_RE: R7,
|
|
765
|
+
MATCH_NOTHING_RE: L7,
|
|
766
|
+
METHOD_GUARD: a9,
|
|
767
|
+
NUMBER_MODE: $7,
|
|
768
|
+
NUMBER_RE: B7,
|
|
769
|
+
PHRASAL_WORDS_MODE: J7,
|
|
770
|
+
QUOTE_STRING_MODE: q7,
|
|
771
|
+
REGEXP_MODE: n9,
|
|
772
|
+
RE_STARTERS_RE: U7,
|
|
773
|
+
SHEBANG: W7,
|
|
774
|
+
TITLE_MODE: r9,
|
|
775
|
+
UNDERSCORE_IDENT_RE: z7,
|
|
776
|
+
UNDERSCORE_TITLE_MODE: i9
|
|
781
777
|
});
|
|
782
778
|
function s9(e, t) {
|
|
783
779
|
e.input[e.index - 1] === "." && t.ignoreMatch();
|
|
@@ -962,7 +958,7 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
|
|
|
962
958
|
return o(e, { variants: null }, t);
|
|
963
959
|
})), e.cachedVariants ? e.cachedVariants : A9(e) ? o(e, { starts: e.starts ? o(e.starts) : null }) : Object.isFrozen(e) ? o(e) : e;
|
|
964
960
|
}
|
|
965
|
-
var M9 = "11.
|
|
961
|
+
var M9 = "11.12.0", N9 = class extends Error {
|
|
966
962
|
constructor(e, t) {
|
|
967
963
|
super(e), this.name = "HTMLInjectionError", this.html = t;
|
|
968
964
|
}
|
|
@@ -989,10 +985,10 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
|
|
|
989
985
|
t += e.parentNode ? e.parentNode.className : "";
|
|
990
986
|
let n = f.languageDetectRe.exec(t);
|
|
991
987
|
if (n) {
|
|
992
|
-
let t =
|
|
988
|
+
let t = K7(n[1]);
|
|
993
989
|
return t || (x9(l.replace("{}", n[1])), x9("Falling back to no-highlight mode for this block.", e)), t ? n[1] : "no-highlight";
|
|
994
990
|
}
|
|
995
|
-
return t.split(/\s+/).find((e) => p(e) ||
|
|
991
|
+
return t.split(/\s+/).find((e) => p(e) || K7(e));
|
|
996
992
|
}
|
|
997
993
|
function x(e, t, n) {
|
|
998
994
|
let r = "", i = "";
|
|
@@ -1001,9 +997,9 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
|
|
|
1001
997
|
code: r,
|
|
1002
998
|
language: i
|
|
1003
999
|
};
|
|
1004
|
-
|
|
1000
|
+
Q7("before:highlight", o);
|
|
1005
1001
|
let s = o.result ? o.result : j7(o.language, o.code, n);
|
|
1006
|
-
return s.code = o.code,
|
|
1002
|
+
return s.code = o.code, Q7("after:highlight", s), s;
|
|
1007
1003
|
}
|
|
1008
1004
|
function j7(e, n, i, o) {
|
|
1009
1005
|
let d = Object.create(null);
|
|
@@ -1012,14 +1008,14 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
|
|
|
1012
1008
|
}
|
|
1013
1009
|
function _() {
|
|
1014
1010
|
if (!U7.keywords) {
|
|
1015
|
-
G7.addText(
|
|
1011
|
+
G7.addText(q7);
|
|
1016
1012
|
return;
|
|
1017
1013
|
}
|
|
1018
1014
|
let e = 0;
|
|
1019
1015
|
U7.keywordPatternRe.lastIndex = 0;
|
|
1020
|
-
let t = U7.keywordPatternRe.exec(
|
|
1016
|
+
let t = U7.keywordPatternRe.exec(q7), n = "";
|
|
1021
1017
|
for (; t;) {
|
|
1022
|
-
n +=
|
|
1018
|
+
n += q7.substring(e, t.index);
|
|
1023
1019
|
let r = B7.case_insensitive ? t[0].toLowerCase() : t[0], i = p(U7, r);
|
|
1024
1020
|
if (i) {
|
|
1025
1021
|
let [e, o] = i;
|
|
@@ -1029,24 +1025,24 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
|
|
|
1029
1025
|
w(t[0], n);
|
|
1030
1026
|
}
|
|
1031
1027
|
} else n += t[0];
|
|
1032
|
-
e = U7.keywordPatternRe.lastIndex, t = U7.keywordPatternRe.exec(
|
|
1028
|
+
e = U7.keywordPatternRe.lastIndex, t = U7.keywordPatternRe.exec(q7);
|
|
1033
1029
|
}
|
|
1034
|
-
n +=
|
|
1030
|
+
n += q7.substring(e), G7.addText(n);
|
|
1035
1031
|
}
|
|
1036
1032
|
function y() {
|
|
1037
|
-
if (
|
|
1033
|
+
if (q7 === "") return;
|
|
1038
1034
|
let e = null;
|
|
1039
1035
|
if (typeof U7.subLanguage == "string") {
|
|
1040
1036
|
if (!t[U7.subLanguage]) {
|
|
1041
|
-
G7.addText(
|
|
1037
|
+
G7.addText(q7);
|
|
1042
1038
|
return;
|
|
1043
1039
|
}
|
|
1044
|
-
e = j7(U7.subLanguage,
|
|
1045
|
-
} else e = F7(
|
|
1040
|
+
e = j7(U7.subLanguage, q7, !0, W7[U7.subLanguage]), W7[U7.subLanguage] = e._top;
|
|
1041
|
+
} else e = F7(q7, U7.subLanguage.length ? U7.subLanguage : null);
|
|
1046
1042
|
U7.relevance > 0 && (J7 += e.relevance), G7.__addSublanguage(e._emitter, e.language);
|
|
1047
1043
|
}
|
|
1048
1044
|
function x() {
|
|
1049
|
-
U7.subLanguage == null ? _() : y(),
|
|
1045
|
+
U7.subLanguage == null ? _() : y(), q7 = "";
|
|
1050
1046
|
}
|
|
1051
1047
|
function w(e, t) {
|
|
1052
1048
|
e !== "" && (G7.startScope(t), G7.addText(e), G7.endScope());
|
|
@@ -1059,11 +1055,11 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
|
|
|
1059
1055
|
continue;
|
|
1060
1056
|
}
|
|
1061
1057
|
let r = B7.classNameAliases[e[n]] || e[n], i = t[n];
|
|
1062
|
-
r ? w(i, r) : (
|
|
1058
|
+
r ? w(i, r) : (q7 = i, _(), q7 = ""), n++;
|
|
1063
1059
|
}
|
|
1064
1060
|
}
|
|
1065
1061
|
function $(e, t) {
|
|
1066
|
-
return e.scope && typeof e.scope == "string" && G7.openNode(B7.classNameAliases[e.scope] || e.scope), e.beginScope && (e.beginScope._wrap ? (w(
|
|
1062
|
+
return e.scope && typeof e.scope == "string" && G7.openNode(B7.classNameAliases[e.scope] || e.scope), e.beginScope && (e.beginScope._wrap ? (w(q7, B7.classNameAliases[e.beginScope._wrap] || e.beginScope._wrap), q7 = "") : e.beginScope._multi && (k(e.beginScope, t), q7 = "")), U7 = Object.create(e, { parent: { value: U7 } }), U7;
|
|
1067
1063
|
}
|
|
1068
1064
|
function A7(e, t, n) {
|
|
1069
1065
|
let i = P7(e.endRe, n);
|
|
@@ -1080,18 +1076,18 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
|
|
|
1080
1076
|
if (e.endsWithParent) return A7(e.parent, t, n);
|
|
1081
1077
|
}
|
|
1082
1078
|
function M7(e) {
|
|
1083
|
-
return U7.matcher.regexIndex === 0 ? (
|
|
1079
|
+
return U7.matcher.regexIndex === 0 ? (q7 += e[0], 1) : (Z7 = !0, 0);
|
|
1084
1080
|
}
|
|
1085
1081
|
function N7(e) {
|
|
1086
1082
|
let t = e[0], n = e.rule, i = new r(n), o = [n.__beforeBegin, n["on:begin"]];
|
|
1087
1083
|
for (let n of o) if (n && (n(e, i), i.isMatchIgnored)) return M7(t);
|
|
1088
|
-
return n.skip ?
|
|
1084
|
+
return n.skip ? q7 += t : (n.excludeBegin && (q7 += t), x(), !n.returnBegin && !n.excludeBegin && (q7 = t)), $(n, e), n.returnBegin ? 0 : t.length;
|
|
1089
1085
|
}
|
|
1090
1086
|
function I7(e) {
|
|
1091
1087
|
let t = e[0], r = n.substring(e.index), i = A7(U7, e, r);
|
|
1092
1088
|
if (!i) return I9;
|
|
1093
1089
|
let o = U7;
|
|
1094
|
-
U7.endScope && U7.endScope._wrap ? (x(), w(t, U7.endScope._wrap)) : U7.endScope && U7.endScope._multi ? (x(), k(U7.endScope, e)) : o.skip ?
|
|
1090
|
+
U7.endScope && U7.endScope._wrap ? (x(), w(t, U7.endScope._wrap)) : U7.endScope && U7.endScope._multi ? (x(), k(U7.endScope, e)) : o.skip ? q7 += t : (o.returnEnd || o.excludeEnd || (q7 += t), x(), o.excludeEnd && (q7 = t));
|
|
1095
1091
|
do
|
|
1096
1092
|
U7.scope && G7.closeNode(), !U7.skip && !U7.subLanguage && (J7 += U7.relevance), U7 = U7.parent;
|
|
1097
1093
|
while (U7 !== i.parent);
|
|
@@ -1105,9 +1101,9 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
|
|
|
1105
1101
|
let R7 = {};
|
|
1106
1102
|
function z7(t, r) {
|
|
1107
1103
|
let o = r && r[0];
|
|
1108
|
-
if (
|
|
1104
|
+
if (q7 += t, o == null) return x(), 0;
|
|
1109
1105
|
if (R7.type === "begin" && r.type === "end" && R7.index === r.index && o === "") {
|
|
1110
|
-
if (
|
|
1106
|
+
if (q7 += n.slice(r.index, r.index + 1), !s) {
|
|
1111
1107
|
let t = /* @__PURE__ */ Error(`0 width match regex (${e})`);
|
|
1112
1108
|
throw t.languageName = e, t.badRule = R7.rule, t;
|
|
1113
1109
|
}
|
|
@@ -1121,15 +1117,15 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
|
|
|
1121
1117
|
let e = I7(r);
|
|
1122
1118
|
if (e !== I9) return e;
|
|
1123
1119
|
}
|
|
1124
|
-
if (r.type === "illegal" && o === "") return 1;
|
|
1120
|
+
if (r.type === "illegal" && o === "") return r.index === n.length || (q7 += "\n"), 1;
|
|
1125
1121
|
if (X7 > 1e5 && X7 > r.index * 3) throw /* @__PURE__ */ Error("potential infinite loop, way more iterations than matches");
|
|
1126
|
-
return
|
|
1122
|
+
return q7 += o, o.length;
|
|
1127
1123
|
}
|
|
1128
|
-
let B7 =
|
|
1124
|
+
let B7 = K7(e);
|
|
1129
1125
|
if (!B7) throw b9(l.replace("{}", e)), Error("Unknown language: \"" + e + "\"");
|
|
1130
1126
|
let V7 = k9(B7), H7 = "", U7 = o || V7, W7 = {}, G7 = new f.__emitter(f);
|
|
1131
1127
|
L7();
|
|
1132
|
-
let
|
|
1128
|
+
let q7 = "", J7 = 0, Y7 = 0, X7 = 0, Z7 = !1;
|
|
1133
1129
|
try {
|
|
1134
1130
|
if (B7.__emitTokens) B7.__emitTokens(n, G7);
|
|
1135
1131
|
else {
|
|
@@ -1189,13 +1185,13 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
|
|
|
1189
1185
|
}
|
|
1190
1186
|
function F7(e, n) {
|
|
1191
1187
|
n = n || f.languages || Object.keys(t);
|
|
1192
|
-
let r = N7(e), i = n.filter(
|
|
1188
|
+
let r = N7(e), i = n.filter(K7).filter(J7).map((t) => j7(t, e, !1));
|
|
1193
1189
|
i.unshift(r);
|
|
1194
1190
|
let [o, s] = i.sort((e, t) => {
|
|
1195
1191
|
if (e.relevance !== t.relevance) return t.relevance - e.relevance;
|
|
1196
1192
|
if (e.language && t.language) {
|
|
1197
|
-
if (
|
|
1198
|
-
if (
|
|
1193
|
+
if (K7(e.language).supersetOf === t.language) return 1;
|
|
1194
|
+
if (K7(t.language).supersetOf === e.language) return -1;
|
|
1199
1195
|
}
|
|
1200
1196
|
return 0;
|
|
1201
1197
|
}), l = o;
|
|
@@ -1208,23 +1204,27 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
|
|
|
1208
1204
|
function L7(e) {
|
|
1209
1205
|
let t = null, n = _(e);
|
|
1210
1206
|
if (p(n)) return;
|
|
1211
|
-
if (
|
|
1207
|
+
if (Q7("before:highlightElement", {
|
|
1212
1208
|
el: e,
|
|
1213
1209
|
language: n
|
|
1214
|
-
}), e.
|
|
1210
|
+
}), e.dataset.highlighted) {
|
|
1211
|
+
console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.", e);
|
|
1212
|
+
return;
|
|
1213
|
+
}
|
|
1214
|
+
if (e.children.length > 0 && (f.ignoreUnescapedHTML || (console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."), console.warn("https://github.com/highlightjs/highlight.js/wiki/security"), console.warn("The element with unescaped HTML:"), console.warn(e)), f.throwUnescapedHTML)) throw new N9("One of your code blocks includes unescaped HTML.", e.innerHTML);
|
|
1215
1215
|
t = e;
|
|
1216
1216
|
let r = t.textContent, i = n ? x(r, {
|
|
1217
1217
|
language: n,
|
|
1218
1218
|
ignoreIllegals: !0
|
|
1219
1219
|
}) : F7(r);
|
|
1220
|
-
e.innerHTML = i.value, I7(e, n, i.language), e.result = {
|
|
1220
|
+
e.innerHTML = i.value, e.dataset.highlighted = "yes", I7(e, n, i.language), e.result = {
|
|
1221
1221
|
language: i.language,
|
|
1222
1222
|
re: i.relevance,
|
|
1223
1223
|
relevance: i.relevance
|
|
1224
1224
|
}, i.secondBest && (e.secondBest = {
|
|
1225
1225
|
language: i.secondBest.language,
|
|
1226
1226
|
relevance: i.secondBest.relevance
|
|
1227
|
-
}),
|
|
1227
|
+
}), Q7("after:highlightElement", {
|
|
1228
1228
|
el: e,
|
|
1229
1229
|
result: i,
|
|
1230
1230
|
text: r
|
|
@@ -1241,17 +1241,16 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
|
|
|
1241
1241
|
}
|
|
1242
1242
|
let V7 = !1;
|
|
1243
1243
|
function H7() {
|
|
1244
|
+
function e() {
|
|
1245
|
+
H7();
|
|
1246
|
+
}
|
|
1244
1247
|
if (document.readyState === "loading") {
|
|
1245
|
-
V7 = !0;
|
|
1248
|
+
V7 || window.addEventListener("DOMContentLoaded", e, !1), V7 = !0;
|
|
1246
1249
|
return;
|
|
1247
1250
|
}
|
|
1248
1251
|
document.querySelectorAll(f.cssSelector).forEach(L7);
|
|
1249
1252
|
}
|
|
1250
|
-
function U7() {
|
|
1251
|
-
V7 && H7();
|
|
1252
|
-
}
|
|
1253
|
-
typeof window < "u" && window.addEventListener && window.addEventListener("DOMContentLoaded", U7, !1);
|
|
1254
|
-
function W7(n, r) {
|
|
1253
|
+
function U7(n, r) {
|
|
1255
1254
|
let i = null;
|
|
1256
1255
|
try {
|
|
1257
1256
|
i = r(e);
|
|
@@ -1260,48 +1259,48 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
|
|
|
1260
1259
|
else throw e;
|
|
1261
1260
|
i = d;
|
|
1262
1261
|
}
|
|
1263
|
-
i.name ||= n, t[n] = i, i.rawDefinition = r.bind(null, e), i.aliases &&
|
|
1262
|
+
i.name ||= n, t[n] = i, i.rawDefinition = r.bind(null, e), i.aliases && q7(i.aliases, { languageName: n });
|
|
1264
1263
|
}
|
|
1265
|
-
function
|
|
1264
|
+
function W7(e) {
|
|
1266
1265
|
delete t[e];
|
|
1267
1266
|
for (let t of Object.keys(i)) i[t] === e && delete i[t];
|
|
1268
1267
|
}
|
|
1269
|
-
function
|
|
1268
|
+
function G7() {
|
|
1270
1269
|
return Object.keys(t);
|
|
1271
1270
|
}
|
|
1272
|
-
function
|
|
1271
|
+
function K7(e) {
|
|
1273
1272
|
return e = (e || "").toLowerCase(), t[e] || t[i[e]];
|
|
1274
1273
|
}
|
|
1275
|
-
function
|
|
1274
|
+
function q7(e, { languageName: t }) {
|
|
1276
1275
|
typeof e == "string" && (e = [e]), e.forEach((e) => {
|
|
1277
1276
|
i[e.toLowerCase()] = t;
|
|
1278
1277
|
});
|
|
1279
1278
|
}
|
|
1280
|
-
function
|
|
1281
|
-
let t =
|
|
1279
|
+
function J7(e) {
|
|
1280
|
+
let t = K7(e);
|
|
1282
1281
|
return t && !t.disableAutodetect;
|
|
1283
1282
|
}
|
|
1284
|
-
function
|
|
1283
|
+
function Y7(e) {
|
|
1285
1284
|
e["before:highlightBlock"] && !e["before:highlightElement"] && (e["before:highlightElement"] = (t) => {
|
|
1286
1285
|
e["before:highlightBlock"](Object.assign({ block: t.el }, t));
|
|
1287
1286
|
}), e["after:highlightBlock"] && !e["after:highlightElement"] && (e["after:highlightElement"] = (t) => {
|
|
1288
1287
|
e["after:highlightBlock"](Object.assign({ block: t.el }, t));
|
|
1289
1288
|
});
|
|
1290
1289
|
}
|
|
1291
|
-
function
|
|
1292
|
-
|
|
1290
|
+
function X7(e) {
|
|
1291
|
+
Y7(e), o.push(e);
|
|
1293
1292
|
}
|
|
1294
|
-
function
|
|
1293
|
+
function Z7(e) {
|
|
1295
1294
|
let t = o.indexOf(e);
|
|
1296
1295
|
t !== -1 && o.splice(t, 1);
|
|
1297
1296
|
}
|
|
1298
|
-
function
|
|
1297
|
+
function Q7(e, t) {
|
|
1299
1298
|
let n = e;
|
|
1300
1299
|
o.forEach(function(e) {
|
|
1301
1300
|
e[n] && e[n](t);
|
|
1302
1301
|
});
|
|
1303
1302
|
}
|
|
1304
|
-
function
|
|
1303
|
+
function $7(e) {
|
|
1305
1304
|
return S9("10.7.0", "highlightBlock will be removed entirely in v12.0"), S9("10.7.0", "Please use highlightElement now."), L7(e);
|
|
1306
1305
|
}
|
|
1307
1306
|
for (let t in Object.assign(e, {
|
|
@@ -1309,19 +1308,19 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
|
|
|
1309
1308
|
highlightAuto: F7,
|
|
1310
1309
|
highlightAll: H7,
|
|
1311
1310
|
highlightElement: L7,
|
|
1312
|
-
highlightBlock:
|
|
1311
|
+
highlightBlock: $7,
|
|
1313
1312
|
configure: R7,
|
|
1314
1313
|
initHighlighting: z7,
|
|
1315
1314
|
initHighlightingOnLoad: B7,
|
|
1316
|
-
registerLanguage:
|
|
1317
|
-
unregisterLanguage:
|
|
1318
|
-
listLanguages:
|
|
1319
|
-
getLanguage:
|
|
1320
|
-
registerAliases:
|
|
1321
|
-
autoDetection:
|
|
1315
|
+
registerLanguage: U7,
|
|
1316
|
+
unregisterLanguage: W7,
|
|
1317
|
+
listLanguages: G7,
|
|
1318
|
+
getLanguage: K7,
|
|
1319
|
+
registerAliases: q7,
|
|
1320
|
+
autoDetection: J7,
|
|
1322
1321
|
inherit: F9,
|
|
1323
|
-
addPlugin:
|
|
1324
|
-
removePlugin:
|
|
1322
|
+
addPlugin: X7,
|
|
1323
|
+
removePlugin: Z7
|
|
1325
1324
|
}), e.debugMode = function() {
|
|
1326
1325
|
s = !1;
|
|
1327
1326
|
}, e.safeMode = function() {
|
|
@@ -1336,7 +1335,7 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
|
|
|
1336
1335
|
return Object.assign(e, o9), e;
|
|
1337
1336
|
}, z9 = R9({});
|
|
1338
1337
|
z9.newInstance = () => R9({}), t.exports = z9, z9.HighlightJS = z9, z9.default = z9;
|
|
1339
|
-
})))())).default, IDENT_RE$1 = "[A-Za-z$_][0-9A-Za-z$_]*", KEYWORDS$1 = /* @__PURE__ */ "as.in.of.if.for.while.finally.var.new.function.do.return.void.else.break.catch.instanceof.with.throw.case.default.try.switch.continue.typeof.delete.let.yield.const.class.debugger.async.await.static.import.from.export.extends".split("."), LITERALS$1 = [
|
|
1338
|
+
})))())).default, IDENT_RE$1 = "[A-Za-z$_][0-9A-Za-z$_]*", KEYWORDS$1 = /* @__PURE__ */ "as.in.of.if.for.while.finally.var.new.function.do.return.void.else.break.catch.instanceof.with.throw.case.default.try.switch.continue.typeof.delete.let.yield.const.class.debugger.async.await.static.import.from.export.extends.using".split("."), LITERALS$1 = [
|
|
1340
1339
|
"true",
|
|
1341
1340
|
"false",
|
|
1342
1341
|
"null",
|
|
@@ -1380,6 +1379,7 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
|
|
|
1380
1379
|
"localStorage",
|
|
1381
1380
|
"sessionStorage",
|
|
1382
1381
|
"module",
|
|
1382
|
+
"self",
|
|
1383
1383
|
"global"
|
|
1384
1384
|
], BUILT_INS$1 = [].concat(BUILT_IN_GLOBALS$1, TYPES$1, ERROR_TYPES$1);
|
|
1385
1385
|
function javascript(e) {
|
|
@@ -1434,7 +1434,7 @@ function javascript(e) {
|
|
|
1434
1434
|
keywords: l,
|
|
1435
1435
|
contains: []
|
|
1436
1436
|
}, x = {
|
|
1437
|
-
begin: "html`",
|
|
1437
|
+
begin: ".?html`",
|
|
1438
1438
|
end: "",
|
|
1439
1439
|
starts: {
|
|
1440
1440
|
end: "`",
|
|
@@ -1443,7 +1443,7 @@ function javascript(e) {
|
|
|
1443
1443
|
subLanguage: "xml"
|
|
1444
1444
|
}
|
|
1445
1445
|
}, w = {
|
|
1446
|
-
begin: "css`",
|
|
1446
|
+
begin: ".?css`",
|
|
1447
1447
|
end: "",
|
|
1448
1448
|
starts: {
|
|
1449
1449
|
end: "`",
|
|
@@ -1452,7 +1452,7 @@ function javascript(e) {
|
|
|
1452
1452
|
subLanguage: "css"
|
|
1453
1453
|
}
|
|
1454
1454
|
}, k = {
|
|
1455
|
-
begin: "gql`",
|
|
1455
|
+
begin: ".?gql`",
|
|
1456
1456
|
end: "",
|
|
1457
1457
|
starts: {
|
|
1458
1458
|
end: "`",
|
|
@@ -1519,13 +1519,13 @@ function javascript(e) {
|
|
|
1519
1519
|
contains: ["self"].concat(j7)
|
|
1520
1520
|
});
|
|
1521
1521
|
let M7 = [].concat(A7, y.contains), N7 = M7.concat([{
|
|
1522
|
-
begin:
|
|
1522
|
+
begin: /(\s*)\(/,
|
|
1523
1523
|
end: /\)/,
|
|
1524
1524
|
keywords: l,
|
|
1525
1525
|
contains: ["self"].concat(M7)
|
|
1526
1526
|
}]), P7 = {
|
|
1527
1527
|
className: "params",
|
|
1528
|
-
begin:
|
|
1528
|
+
begin: /(\s*)\(/,
|
|
1529
1529
|
end: /\)/,
|
|
1530
1530
|
excludeBegin: !0,
|
|
1531
1531
|
excludeEnd: !0,
|
|
@@ -1593,8 +1593,9 @@ function javascript(e) {
|
|
|
1593
1593
|
match: t.concat(/\b/, B7([
|
|
1594
1594
|
...BUILT_IN_GLOBALS$1,
|
|
1595
1595
|
"super",
|
|
1596
|
-
"import"
|
|
1597
|
-
|
|
1596
|
+
"import",
|
|
1597
|
+
"await"
|
|
1598
|
+
].map((e) => `${e}\\s*\\(`)), r, t.lookahead(/\s*\(/)),
|
|
1598
1599
|
className: "title.function",
|
|
1599
1600
|
relevance: 0
|
|
1600
1601
|
}, H7 = {
|
|
@@ -1646,7 +1647,7 @@ function javascript(e) {
|
|
|
1646
1647
|
PARAMS_CONTAINS: N7,
|
|
1647
1648
|
CLASS_REFERENCE: I7
|
|
1648
1649
|
},
|
|
1649
|
-
illegal: /#(?![$_A-z])/,
|
|
1650
|
+
illegal: /#(?![$_A-Za-z])/,
|
|
1650
1651
|
contains: [
|
|
1651
1652
|
e.SHEBANG({
|
|
1652
1653
|
label: "shebang",
|
|
@@ -1665,8 +1666,8 @@ function javascript(e) {
|
|
|
1665
1666
|
_,
|
|
1666
1667
|
I7,
|
|
1667
1668
|
{
|
|
1668
|
-
|
|
1669
|
-
|
|
1669
|
+
scope: "attr",
|
|
1670
|
+
match: r + t.lookahead(":"),
|
|
1670
1671
|
relevance: 0
|
|
1671
1672
|
},
|
|
1672
1673
|
G7,
|
|
@@ -1695,7 +1696,7 @@ function javascript(e) {
|
|
|
1695
1696
|
skip: !0
|
|
1696
1697
|
},
|
|
1697
1698
|
{
|
|
1698
|
-
begin:
|
|
1699
|
+
begin: /(\s*)\(/,
|
|
1699
1700
|
end: /\)/,
|
|
1700
1701
|
excludeBegin: !0,
|
|
1701
1702
|
excludeEnd: !0,
|
|
@@ -1882,7 +1883,7 @@ function xml(e) {
|
|
|
1882
1883
|
starts: {
|
|
1883
1884
|
end: /<\/style>/,
|
|
1884
1885
|
returnEnd: !0,
|
|
1885
|
-
subLanguage:
|
|
1886
|
+
subLanguage: "css"
|
|
1886
1887
|
}
|
|
1887
1888
|
},
|
|
1888
1889
|
{
|
|
@@ -1894,11 +1895,7 @@ function xml(e) {
|
|
|
1894
1895
|
starts: {
|
|
1895
1896
|
end: /<\/script>/,
|
|
1896
1897
|
returnEnd: !0,
|
|
1897
|
-
subLanguage:
|
|
1898
|
-
"javascript",
|
|
1899
|
-
"handlebars",
|
|
1900
|
-
"xml"
|
|
1901
|
-
]
|
|
1898
|
+
subLanguage: "javascript"
|
|
1902
1899
|
}
|
|
1903
1900
|
},
|
|
1904
1901
|
{
|
|
@@ -22154,170 +22151,196 @@ var entities_exports = /* @__PURE__ */ __export({
|
|
|
22154
22151
|
var i, o, s, l = new this.State(e, t, n, r);
|
|
22155
22152
|
for (this.tokenize(l), o = this.ruler2.getRules(""), s = o.length, i = 0; i < s; i++) o[i](l);
|
|
22156
22153
|
}, o.prototype.State = require_state_inline(), t.exports = o;
|
|
22157
|
-
})),
|
|
22158
|
-
|
|
22159
|
-
|
|
22160
|
-
|
|
22154
|
+
})), require_index_cjs$1 = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
22155
|
+
e.Any = /[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, e.Cc = /[\0-\x1F\x7F-\x9F]/, e.Cf = /[\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]/, e.P = /[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/, e.S = /[\$\+<->\^`\|~\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]/, e.Z = /[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/;
|
|
22156
|
+
})), require_index_cjs = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
22157
|
+
var n = require_index_cjs$1();
|
|
22158
|
+
function r(e) {
|
|
22159
|
+
let t = {};
|
|
22160
|
+
e ||= {}, t.src_Any = n.Any.source, t.src_Cc = n.Cc.source, t.src_Z = n.Z.source, t.src_P = n.P.source, t.src_ZPCc = [
|
|
22161
22161
|
t.src_Z,
|
|
22162
22162
|
t.src_P,
|
|
22163
22163
|
t.src_Cc
|
|
22164
22164
|
].join("|"), t.src_ZCc = [t.src_Z, t.src_Cc].join("|");
|
|
22165
|
-
|
|
22166
|
-
return t.src_pseudo_letter =
|
|
22167
|
-
}
|
|
22168
|
-
|
|
22169
|
-
function n(e) {
|
|
22165
|
+
let r = "[><|]";
|
|
22166
|
+
return t.src_pseudo_letter = `(?:(?!${r}|${t.src_ZPCc})${t.src_Any})`, t.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]?)", t.src_auth = `(?:(?:(?!${t.src_ZCc}|[@/\\[\\]()]).){1,50}@)?`, t.src_port = "(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?", t.src_host_terminator = `(?=$|${r}|${t.src_ZPCc})(?!${e["---"] ? "-(?!--)|" : "-|"}_|:\\d|\\.-|\\.(?!$|${t.src_ZPCc}))`, t.src_path = `(?:[/?#](?:(?!${t.src_ZCc}|${r}|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!${t.src_ZCc}|\\]).)*\\]|\\((?:(?!${t.src_ZCc}|[)]).)*\\)|\\{(?:(?!${t.src_ZCc}|[}]).)*\\}|\\"(?:(?!${t.src_ZCc}|["]).)+\\"|\\'(?:(?!${t.src_ZCc}|[']).)+\\'|\\'(?=${t.src_pseudo_letter}|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!${t.src_ZCc}|[.]|$)|` + (e["---"] ? "\\-(?!--(?:[^-]|$))(?:-*)|" : "\\-+|") + `,(?!${t.src_ZCc}|$)|;(?!${t.src_ZCc}|$)|\\!+(?!${t.src_ZCc}|[!]|$)|\\?(?!${t.src_ZCc}|[?]|$))+|\\/)?`, t.src_email_name = "[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\\"\\.a-zA-Z0-9_]{0,63}", t.src_xn = "xn--[a-z0-9\\-]{1,59}", t.src_domain_root = "(?:" + t.src_xn + `|${t.src_pseudo_letter}{1,63})`, t.src_domain = "(?:" + t.src_xn + `|(?:${t.src_pseudo_letter})|(?:${t.src_pseudo_letter}(?:-|${t.src_pseudo_letter}){0,61}${t.src_pseudo_letter}))`, t.src_host = `(?:(?:(?:(?:${t.src_domain})\\.)*${t.src_domain}))`, t.tpl_host_fuzzy = "(?:" + t.src_ip4 + `|(?:(?:(?:${t.src_domain})\\.)+(?:%TLDS%)))`, t.tpl_host_no_ip_fuzzy = `(?:(?:(?:${t.src_domain})\\.)+(?:%TLDS%))`, t.src_host_strict = t.src_host + t.src_host_terminator, t.tpl_host_fuzzy_strict = t.tpl_host_fuzzy + t.src_host_terminator, t.src_host_port_strict = t.src_host + t.src_port + t.src_host_terminator, t.tpl_host_port_fuzzy_strict = t.tpl_host_fuzzy + t.src_port + t.src_host_terminator, t.tpl_host_port_no_ip_fuzzy_strict = t.tpl_host_no_ip_fuzzy + t.src_port + t.src_host_terminator, t.tpl_host_fuzzy_test = `localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:${t.src_ZPCc}|>|$))`, t.tpl_email_fuzzy = `(^|${r}|"|\\(|${t.src_ZCc})(${t.src_email_name}@${t.tpl_host_fuzzy_strict})`, t.tpl_link_fuzzy = `(^|(?![.:/\\-_@])(?:[$+<=>^\`|\uff5c]|${t.src_ZPCc}))((?![$+<=>^\`|\uff5c])${t.tpl_host_port_fuzzy_strict}${t.src_path})`, t.tpl_link_no_ip_fuzzy = `(^|(?![.:/\\-_@])(?:[$+<=>^\`|\uff5c]|${t.src_ZPCc}))((?![$+<=>^\`|\uff5c])${t.tpl_host_port_no_ip_fuzzy_strict}${t.src_path})`, t;
|
|
22167
|
+
}
|
|
22168
|
+
function i(e) {
|
|
22170
22169
|
return Array.prototype.slice.call(arguments, 1).forEach(function(t) {
|
|
22171
22170
|
t && Object.keys(t).forEach(function(n) {
|
|
22172
22171
|
e[n] = t[n];
|
|
22173
22172
|
});
|
|
22174
22173
|
}), e;
|
|
22175
22174
|
}
|
|
22176
|
-
function r(e) {
|
|
22177
|
-
return Object.prototype.toString.call(e);
|
|
22178
|
-
}
|
|
22179
|
-
function i(e) {
|
|
22180
|
-
return r(e) === "[object String]";
|
|
22181
|
-
}
|
|
22182
22175
|
function o(e) {
|
|
22183
|
-
return
|
|
22176
|
+
return Object.prototype.toString.call(e);
|
|
22184
22177
|
}
|
|
22185
22178
|
function s(e) {
|
|
22186
|
-
return
|
|
22179
|
+
return o(e) === "[object String]";
|
|
22187
22180
|
}
|
|
22188
22181
|
function l(e) {
|
|
22189
|
-
return
|
|
22182
|
+
return o(e) === "[object Object]";
|
|
22190
22183
|
}
|
|
22191
22184
|
function d(e) {
|
|
22185
|
+
return o(e) === "[object RegExp]";
|
|
22186
|
+
}
|
|
22187
|
+
function f(e) {
|
|
22188
|
+
return o(e) === "[object Function]";
|
|
22189
|
+
}
|
|
22190
|
+
function p(e) {
|
|
22192
22191
|
return e.replace(/[.?*+^$[\]\\(){}|-]/g, "\\$&");
|
|
22193
22192
|
}
|
|
22194
|
-
var
|
|
22193
|
+
var _ = {
|
|
22195
22194
|
fuzzyLink: !0,
|
|
22196
22195
|
fuzzyEmail: !0,
|
|
22197
22196
|
fuzzyIP: !1
|
|
22198
22197
|
};
|
|
22199
|
-
function
|
|
22198
|
+
function y(e) {
|
|
22200
22199
|
return Object.keys(e || {}).reduce(function(e, t) {
|
|
22201
|
-
return e ||
|
|
22200
|
+
return e || _.hasOwnProperty(t);
|
|
22202
22201
|
}, !1);
|
|
22203
22202
|
}
|
|
22204
|
-
var
|
|
22203
|
+
var x = {
|
|
22205
22204
|
"http:": { validate: function(e, t, n) {
|
|
22206
|
-
|
|
22207
|
-
return n.re.http || (n.re.http = RegExp(
|
|
22205
|
+
let r = e.slice(t);
|
|
22206
|
+
return n.re.http || (n.re.http = RegExp(`^\\/\\/${n.re.src_auth}${n.re.src_host_port_strict}${n.re.src_path}`, "i")), n.re.http.test(r) ? r.match(n.re.http)[0].length : 0;
|
|
22208
22207
|
} },
|
|
22209
22208
|
"https:": "http:",
|
|
22210
22209
|
"ftp:": "http:",
|
|
22211
22210
|
"//": { validate: function(e, t, n) {
|
|
22212
|
-
|
|
22213
|
-
return n.re.no_http || (n.re.no_http = RegExp("^" + n.re.src_auth +
|
|
22211
|
+
let r = e.slice(t);
|
|
22212
|
+
return n.re.no_http || (n.re.no_http = RegExp("^" + n.re.src_auth + `(?:localhost|(?:(?:${n.re.src_domain})\\.)+${n.re.src_domain_root})` + n.re.src_port + n.re.src_host_terminator + n.re.src_path, "i")), n.re.no_http.test(r) ? t >= 3 && e[t - 3] === ":" || t >= 3 && e[t - 3] === "/" ? 0 : r.match(n.re.no_http)[0].length : 0;
|
|
22214
22213
|
} },
|
|
22215
22214
|
"mailto:": { validate: function(e, t, n) {
|
|
22216
|
-
|
|
22217
|
-
return n.re.mailto || (n.re.mailto = RegExp(
|
|
22215
|
+
let r = e.slice(t);
|
|
22216
|
+
return n.re.mailto || (n.re.mailto = RegExp(`^${n.re.src_email_name}@${n.re.src_host_strict}`, "i")), n.re.mailto.test(r) ? r.match(n.re.mailto)[0].length : 0;
|
|
22218
22217
|
} }
|
|
22219
|
-
},
|
|
22220
|
-
function
|
|
22221
|
-
e.__index__ = -1, e.__text_cache__ = "";
|
|
22222
|
-
}
|
|
22223
|
-
function k(e) {
|
|
22218
|
+
}, w = "a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]", k = "biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");
|
|
22219
|
+
function $(e) {
|
|
22224
22220
|
return function(t, n) {
|
|
22225
|
-
|
|
22221
|
+
let r = t.slice(n);
|
|
22226
22222
|
return e.test(r) ? r.match(e)[0].length : 0;
|
|
22227
22223
|
};
|
|
22228
22224
|
}
|
|
22229
|
-
function
|
|
22225
|
+
function A7() {
|
|
22230
22226
|
return function(e, t) {
|
|
22231
22227
|
t.normalize(e);
|
|
22232
22228
|
};
|
|
22233
22229
|
}
|
|
22234
|
-
function
|
|
22235
|
-
|
|
22236
|
-
e.onCompile(), e.__tlds_replaced__ || n.push(
|
|
22237
|
-
function
|
|
22230
|
+
function j7(e) {
|
|
22231
|
+
let t = e.re = r(e.__opts__), n = e.__tlds__.slice();
|
|
22232
|
+
e.onCompile(), e.__tlds_replaced__ || n.push(w), n.push(t.src_xn), t.src_tlds = n.join("|");
|
|
22233
|
+
function i(e) {
|
|
22238
22234
|
return e.replace("%TLDS%", t.src_tlds);
|
|
22239
22235
|
}
|
|
22240
|
-
t.email_fuzzy = RegExp(
|
|
22241
|
-
|
|
22236
|
+
t.email_fuzzy = RegExp(i(t.tpl_email_fuzzy), "i"), t.email_fuzzy_global = RegExp(i(t.tpl_email_fuzzy), "ig"), t.link_fuzzy = RegExp(i(t.tpl_link_fuzzy), "i"), t.link_fuzzy_global = RegExp(i(t.tpl_link_fuzzy), "ig"), t.link_no_ip_fuzzy = RegExp(i(t.tpl_link_no_ip_fuzzy), "i"), t.link_no_ip_fuzzy_global = RegExp(i(t.tpl_link_no_ip_fuzzy), "ig"), t.host_fuzzy_test = RegExp(i(t.tpl_host_fuzzy_test), "i");
|
|
22237
|
+
let o = [];
|
|
22242
22238
|
e.__compiled__ = {};
|
|
22243
|
-
function
|
|
22244
|
-
throw Error(
|
|
22239
|
+
function _(e, t) {
|
|
22240
|
+
throw Error(`(LinkifyIt) Invalid schema "${e}": ${t}`);
|
|
22245
22241
|
}
|
|
22246
22242
|
Object.keys(e.__schemas__).forEach(function(t) {
|
|
22247
|
-
|
|
22248
|
-
if (n
|
|
22249
|
-
|
|
22250
|
-
|
|
22251
|
-
|
|
22252
|
-
|
|
22253
|
-
|
|
22254
|
-
|
|
22255
|
-
|
|
22256
|
-
}
|
|
22257
|
-
if (i(n)) {
|
|
22258
|
-
f.push(t);
|
|
22259
|
-
return;
|
|
22260
|
-
}
|
|
22261
|
-
p(t, n);
|
|
22243
|
+
let n = e.__schemas__[t];
|
|
22244
|
+
if (n === null) return;
|
|
22245
|
+
let r = {
|
|
22246
|
+
validate: null,
|
|
22247
|
+
link: null
|
|
22248
|
+
};
|
|
22249
|
+
if (e.__compiled__[t] = r, l(n)) {
|
|
22250
|
+
d(n.validate) ? r.validate = $(n.validate) : f(n.validate) ? r.validate = n.validate : _(t, n), f(n.normalize) ? r.normalize = n.normalize : n.normalize ? _(t, n) : r.normalize = A7();
|
|
22251
|
+
return;
|
|
22262
22252
|
}
|
|
22263
|
-
|
|
22253
|
+
if (s(n)) {
|
|
22254
|
+
o.push(t);
|
|
22255
|
+
return;
|
|
22256
|
+
}
|
|
22257
|
+
_(t, n);
|
|
22258
|
+
}), o.forEach(function(t) {
|
|
22264
22259
|
e.__compiled__[e.__schemas__[t]] && (e.__compiled__[t].validate = e.__compiled__[e.__schemas__[t]].validate, e.__compiled__[t].normalize = e.__compiled__[e.__schemas__[t]].normalize);
|
|
22265
22260
|
}), e.__compiled__[""] = {
|
|
22266
22261
|
validate: null,
|
|
22267
|
-
normalize:
|
|
22262
|
+
normalize: A7()
|
|
22268
22263
|
};
|
|
22269
|
-
|
|
22264
|
+
let y = Object.keys(e.__compiled__).filter(function(t) {
|
|
22270
22265
|
return t.length > 0 && e.__compiled__[t];
|
|
22271
|
-
}).map(
|
|
22272
|
-
e.re.schema_test = RegExp(
|
|
22266
|
+
}).map(p).join("|");
|
|
22267
|
+
e.re.schema_test = RegExp(`(^|(?!_)(?:[><\uff5c]|${t.src_ZPCc}))(${y})`, "i"), e.re.schema_search = RegExp(`(^|(?!_)(?:[><\uff5c]|${t.src_ZPCc}))(${y})`, "ig"), e.re.schema_at_start = RegExp(`^${e.re.schema_search.source}`, "i"), e.re.pretest = RegExp(`(${e.re.schema_test.source})|(${e.re.host_fuzzy_test.source})|@`, "i");
|
|
22273
22268
|
}
|
|
22274
|
-
function
|
|
22275
|
-
|
|
22276
|
-
this.schema =
|
|
22277
|
-
}
|
|
22278
|
-
function M7(e, t) {
|
|
22279
|
-
var n = new j7(e, t);
|
|
22280
|
-
return e.__compiled__[n.schema].normalize(n, e), n;
|
|
22269
|
+
function M7(e, t, n, r) {
|
|
22270
|
+
let i = e.slice(n, r);
|
|
22271
|
+
this.schema = t.toLowerCase(), this.index = n, this.lastIndex = r, this.raw = i, this.text = i, this.url = i;
|
|
22281
22272
|
}
|
|
22282
22273
|
function N7(e, t) {
|
|
22283
22274
|
if (!(this instanceof N7)) return new N7(e, t);
|
|
22284
|
-
t ||
|
|
22275
|
+
t || y(e) && (t = e, e = {}), this.__opts__ = i({}, _, t), this.__schemas__ = i({}, x, e), this.__compiled__ = {}, this.__tlds__ = k, this.__tlds_replaced__ = !1, this.re = {}, j7(this);
|
|
22285
22276
|
}
|
|
22286
22277
|
N7.prototype.add = function(e, t) {
|
|
22287
|
-
return this.__schemas__[e] = t,
|
|
22278
|
+
return this.__schemas__[e] = t, j7(this), this;
|
|
22288
22279
|
}, N7.prototype.set = function(e) {
|
|
22289
|
-
return this.__opts__ =
|
|
22280
|
+
return this.__opts__ = i(this.__opts__, e), this;
|
|
22290
22281
|
}, N7.prototype.test = function(e) {
|
|
22291
|
-
if (
|
|
22292
|
-
|
|
22282
|
+
if (!e.length) return !1;
|
|
22283
|
+
let t, n;
|
|
22293
22284
|
if (this.re.schema_test.test(e)) {
|
|
22294
|
-
for (
|
|
22295
|
-
this.__schema__ = t[2], this.__index__ = t.index + t[1].length, this.__last_index__ = t.index + t[0].length + i;
|
|
22296
|
-
break;
|
|
22297
|
-
}
|
|
22285
|
+
for (n = this.re.schema_search, n.lastIndex = 0; (t = n.exec(e)) !== null;) if (this.testSchemaAt(e, t[2], n.lastIndex)) return !0;
|
|
22298
22286
|
}
|
|
22299
|
-
return this.__opts__.fuzzyLink && this.__compiled__["http:"] &&
|
|
22287
|
+
return !!(this.__opts__.fuzzyLink && this.__compiled__["http:"] && e.search(this.re.host_fuzzy_test) >= 0 && e.match(this.__opts__.fuzzyIP ? this.re.link_fuzzy : this.re.link_no_ip_fuzzy) !== null || this.__opts__.fuzzyEmail && this.__compiled__["mailto:"] && e.indexOf("@") >= 0 && e.match(this.re.email_fuzzy) !== null);
|
|
22300
22288
|
}, N7.prototype.pretest = function(e) {
|
|
22301
22289
|
return this.re.pretest.test(e);
|
|
22302
22290
|
}, N7.prototype.testSchemaAt = function(e, t, n) {
|
|
22303
22291
|
return this.__compiled__[t.toLowerCase()] ? this.__compiled__[t.toLowerCase()].validate(e, n, this) : 0;
|
|
22304
22292
|
}, N7.prototype.match = function(e) {
|
|
22305
|
-
|
|
22306
|
-
|
|
22307
|
-
|
|
22308
|
-
|
|
22293
|
+
let t = [], n = [], r = [], i = [], o, s, l;
|
|
22294
|
+
function d(e, t) {
|
|
22295
|
+
return e ? t ? e.index === t.index ? e.lastIndex >= t.lastIndex ? e : t : e.index < t.index ? e : t : e : t;
|
|
22296
|
+
}
|
|
22297
|
+
if (!e.length) return null;
|
|
22298
|
+
if (this.re.schema_test.test(e)) for (l = this.re.schema_search, l.lastIndex = 0; (o = l.exec(e)) !== null;) s = this.testSchemaAt(e, o[2], l.lastIndex), s && n.push({
|
|
22299
|
+
schema: o[2],
|
|
22300
|
+
index: o.index + o[1].length,
|
|
22301
|
+
lastIndex: o.index + o[0].length + s
|
|
22302
|
+
});
|
|
22303
|
+
if (this.__opts__.fuzzyLink && this.__compiled__["http:"]) for (l = this.__opts__.fuzzyIP ? this.re.link_fuzzy_global : this.re.link_no_ip_fuzzy_global, l.lastIndex = 0; (o = l.exec(e)) !== null;) r.push({
|
|
22304
|
+
schema: "",
|
|
22305
|
+
index: o.index + o[1].length,
|
|
22306
|
+
lastIndex: o.index + o[0].length
|
|
22307
|
+
});
|
|
22308
|
+
if (this.__opts__.fuzzyEmail && this.__compiled__["mailto:"]) for (l = this.re.email_fuzzy_global, l.lastIndex = 0; (o = l.exec(e)) !== null;) i.push({
|
|
22309
|
+
schema: "mailto:",
|
|
22310
|
+
index: o.index + o[1].length,
|
|
22311
|
+
lastIndex: o.index + o[0].length
|
|
22312
|
+
});
|
|
22313
|
+
let f = [
|
|
22314
|
+
0,
|
|
22315
|
+
0,
|
|
22316
|
+
0
|
|
22317
|
+
], p = 0;
|
|
22318
|
+
for (;;) {
|
|
22319
|
+
let o = [
|
|
22320
|
+
n[f[0]],
|
|
22321
|
+
i[f[1]],
|
|
22322
|
+
r[f[2]]
|
|
22323
|
+
], s = d(d(o[0], o[1]), o[2]);
|
|
22324
|
+
if (!s) break;
|
|
22325
|
+
if (s === o[0] ? f[0]++ : s === o[1] ? f[1]++ : f[2]++, s.index < p) continue;
|
|
22326
|
+
let l = new M7(e, s.schema, s.index, s.lastIndex);
|
|
22327
|
+
this.__compiled__[l.schema].normalize(l, this), t.push(l), p = s.lastIndex;
|
|
22328
|
+
}
|
|
22329
|
+
return t.length ? t : null;
|
|
22309
22330
|
}, N7.prototype.matchAtStart = function(e) {
|
|
22310
|
-
if (
|
|
22311
|
-
|
|
22331
|
+
if (!e.length) return null;
|
|
22332
|
+
let t = this.re.schema_at_start.exec(e);
|
|
22312
22333
|
if (!t) return null;
|
|
22313
|
-
|
|
22314
|
-
|
|
22334
|
+
let n = this.testSchemaAt(e, t[2], t[0].length);
|
|
22335
|
+
if (!n) return null;
|
|
22336
|
+
let r = new M7(e, t[2], t.index + t[1].length, t.index + t[0].length + n);
|
|
22337
|
+
return this.__compiled__[r.schema].normalize(r, this), r;
|
|
22315
22338
|
}, N7.prototype.tlds = function(e, t) {
|
|
22316
22339
|
return e = Array.isArray(e) ? e : [e], t ? (this.__tlds__ = this.__tlds__.concat(e).sort().filter(function(e, t, n) {
|
|
22317
22340
|
return e !== n[t - 1];
|
|
22318
|
-
}).reverse(),
|
|
22341
|
+
}).reverse(), j7(this), this) : (this.__tlds__ = e.slice(), this.__tlds_replaced__ = !0, j7(this), this);
|
|
22319
22342
|
}, N7.prototype.normalize = function(e) {
|
|
22320
|
-
e.schema || (e.url =
|
|
22343
|
+
e.schema || (e.url = `http://${e.url}`), e.schema === "mailto:" && !/^mailto:/i.test(e.url) && (e.url = `mailto:${e.url}`);
|
|
22321
22344
|
}, N7.prototype.onCompile = function() {}, t.exports = N7;
|
|
22322
22345
|
})), require_punycode = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
22323
22346
|
(function(n) {
|
|
@@ -22511,7 +22534,7 @@ var entities_exports = /* @__PURE__ */ __export({
|
|
|
22511
22534
|
}
|
|
22512
22535
|
};
|
|
22513
22536
|
})), require_lib = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
22514
|
-
var n = require_utils(), r = require_helpers(), i = require_renderer(), o = require_parser_core(), s = require_parser_block(), l = require_parser_inline(), d =
|
|
22537
|
+
var n = require_utils(), r = require_helpers(), i = require_renderer(), o = require_parser_core(), s = require_parser_block(), l = require_parser_inline(), d = require_index_cjs(), f = require_mdurl(), p = require_punycode(), _ = {
|
|
22515
22538
|
default: require_default(),
|
|
22516
22539
|
zero: require_zero(),
|
|
22517
22540
|
commonmark: require_commonmark()
|
|
@@ -27234,14 +27257,17 @@ function bash(e) {
|
|
|
27234
27257
|
begin: /\$\(/,
|
|
27235
27258
|
end: /\)/,
|
|
27236
27259
|
contains: [e.BACKSLASH_ESCAPE]
|
|
27237
|
-
}, o = {
|
|
27260
|
+
}, o = e.inherit(e.COMMENT(), {
|
|
27261
|
+
match: [/(^|\s)/, /#.*$/],
|
|
27262
|
+
scope: { 2: "comment" }
|
|
27263
|
+
}), s = {
|
|
27238
27264
|
begin: /<<-?\s*(?=\w+)/,
|
|
27239
27265
|
starts: { contains: [e.END_SAME_AS_BEGIN({
|
|
27240
27266
|
begin: /(\w+)/,
|
|
27241
27267
|
end: /(\w+)/,
|
|
27242
27268
|
className: "string"
|
|
27243
27269
|
})] }
|
|
27244
|
-
},
|
|
27270
|
+
}, l = {
|
|
27245
27271
|
className: "string",
|
|
27246
27272
|
begin: /"/,
|
|
27247
27273
|
end: /"/,
|
|
@@ -27251,15 +27277,12 @@ function bash(e) {
|
|
|
27251
27277
|
i
|
|
27252
27278
|
]
|
|
27253
27279
|
};
|
|
27254
|
-
i.contains.push(
|
|
27255
|
-
let
|
|
27256
|
-
className: "",
|
|
27257
|
-
begin: /\\"/
|
|
27258
|
-
}, d = {
|
|
27280
|
+
i.contains.push(l);
|
|
27281
|
+
let d = { match: /\\"/ }, f = {
|
|
27259
27282
|
className: "string",
|
|
27260
27283
|
begin: /'/,
|
|
27261
27284
|
end: /'/
|
|
27262
|
-
},
|
|
27285
|
+
}, p = { match: /\\'/ }, _ = {
|
|
27263
27286
|
begin: /\$?\(\(/,
|
|
27264
27287
|
end: /\)\)/,
|
|
27265
27288
|
contains: [
|
|
@@ -27270,7 +27293,7 @@ function bash(e) {
|
|
|
27270
27293
|
e.NUMBER_MODE,
|
|
27271
27294
|
n
|
|
27272
27295
|
]
|
|
27273
|
-
},
|
|
27296
|
+
}, y = e.SHEBANG({
|
|
27274
27297
|
binary: `(${[
|
|
27275
27298
|
"fish",
|
|
27276
27299
|
"bash",
|
|
@@ -27283,18 +27306,19 @@ function bash(e) {
|
|
|
27283
27306
|
"scsh"
|
|
27284
27307
|
].join("|")})`,
|
|
27285
27308
|
relevance: 10
|
|
27286
|
-
}),
|
|
27309
|
+
}), x = {
|
|
27287
27310
|
className: "function",
|
|
27288
27311
|
begin: /\w[\w\d_]*\s*\(\s*\)\s*\{/,
|
|
27289
27312
|
returnBegin: !0,
|
|
27290
27313
|
contains: [e.inherit(e.TITLE_MODE, { begin: /\w[\w\d_]*/ })],
|
|
27291
27314
|
relevance: 0
|
|
27292
|
-
},
|
|
27315
|
+
}, w = [
|
|
27293
27316
|
"if",
|
|
27294
27317
|
"then",
|
|
27295
27318
|
"else",
|
|
27296
27319
|
"elif",
|
|
27297
27320
|
"fi",
|
|
27321
|
+
"time",
|
|
27298
27322
|
"for",
|
|
27299
27323
|
"while",
|
|
27300
27324
|
"until",
|
|
@@ -27303,9 +27327,10 @@ function bash(e) {
|
|
|
27303
27327
|
"done",
|
|
27304
27328
|
"case",
|
|
27305
27329
|
"esac",
|
|
27330
|
+
"coproc",
|
|
27306
27331
|
"function",
|
|
27307
27332
|
"select"
|
|
27308
|
-
],
|
|
27333
|
+
], k = ["true", "false"], $ = { match: /(\/[a-z._-]+)+/ }, A7 = [
|
|
27309
27334
|
"break",
|
|
27310
27335
|
"cd",
|
|
27311
27336
|
"continue",
|
|
@@ -27324,7 +27349,7 @@ function bash(e) {
|
|
|
27324
27349
|
"trap",
|
|
27325
27350
|
"umask",
|
|
27326
27351
|
"unset"
|
|
27327
|
-
],
|
|
27352
|
+
], j7 = [
|
|
27328
27353
|
"alias",
|
|
27329
27354
|
"bind",
|
|
27330
27355
|
"builtin",
|
|
@@ -27342,47 +27367,49 @@ function bash(e) {
|
|
|
27342
27367
|
"read",
|
|
27343
27368
|
"readarray",
|
|
27344
27369
|
"source",
|
|
27370
|
+
"sudo",
|
|
27345
27371
|
"type",
|
|
27346
27372
|
"typeset",
|
|
27347
27373
|
"ulimit",
|
|
27348
27374
|
"unalias"
|
|
27349
|
-
],
|
|
27375
|
+
], M7 = /* @__PURE__ */ "autoload.bg.bindkey.bye.cap.chdir.clone.comparguments.compcall.compctl.compdescribe.compfiles.compgroups.compquote.comptags.comptry.compvalues.dirs.disable.disown.echotc.echoti.emulate.fc.fg.float.functions.getcap.getln.history.integer.jobs.kill.limit.log.noglob.popd.print.pushd.pushln.rehash.sched.setcap.setopt.stat.suspend.ttyctl.unfunction.unhash.unlimit.unsetopt.vared.wait.whence.where.which.zcompile.zformat.zftp.zle.zmodload.zparseopts.zprof.zpty.zregexparse.zsocket.zstyle.ztcp".split("."), N7 = /* @__PURE__ */ "chcon.chgrp.chown.chmod.cp.dd.df.dir.dircolors.ln.ls.mkdir.mkfifo.mknod.mktemp.mv.realpath.rm.rmdir.shred.sync.touch.truncate.vdir.b2sum.base32.base64.cat.cksum.comm.csplit.cut.expand.fmt.fold.head.join.md5sum.nl.numfmt.od.paste.ptx.pr.sha1sum.sha224sum.sha256sum.sha384sum.sha512sum.shuf.sort.split.sum.tac.tail.tr.tsort.unexpand.uniq.wc.arch.basename.chroot.date.dirname.du.echo.env.expr.factor.groups.hostid.id.link.logname.nice.nohup.nproc.pathchk.pinky.printenv.printf.pwd.readlink.runcon.seq.sleep.stat.stdbuf.stty.tee.test.timeout.tty.uname.unlink.uptime.users.who.whoami.yes".split(".");
|
|
27350
27376
|
return {
|
|
27351
27377
|
name: "Bash",
|
|
27352
|
-
aliases: ["sh"],
|
|
27378
|
+
aliases: ["sh", "zsh"],
|
|
27353
27379
|
keywords: {
|
|
27354
27380
|
$pattern: /\b[a-z][a-z0-9._-]+\b/,
|
|
27355
|
-
keyword:
|
|
27356
|
-
literal:
|
|
27381
|
+
keyword: w,
|
|
27382
|
+
literal: k,
|
|
27357
27383
|
built_in: [
|
|
27358
|
-
...
|
|
27359
|
-
|
|
27384
|
+
...A7,
|
|
27385
|
+
...j7,
|
|
27360
27386
|
"set",
|
|
27361
27387
|
"shopt",
|
|
27362
|
-
...
|
|
27363
|
-
...
|
|
27388
|
+
...M7,
|
|
27389
|
+
...N7
|
|
27364
27390
|
]
|
|
27365
27391
|
},
|
|
27366
27392
|
contains: [
|
|
27367
|
-
|
|
27393
|
+
y,
|
|
27368
27394
|
e.SHEBANG(),
|
|
27395
|
+
x,
|
|
27369
27396
|
_,
|
|
27370
|
-
f,
|
|
27371
|
-
e.HASH_COMMENT_MODE,
|
|
27372
27397
|
o,
|
|
27373
|
-
w,
|
|
27374
27398
|
s,
|
|
27399
|
+
$,
|
|
27375
27400
|
l,
|
|
27376
27401
|
d,
|
|
27402
|
+
f,
|
|
27403
|
+
p,
|
|
27377
27404
|
n
|
|
27378
27405
|
]
|
|
27379
27406
|
};
|
|
27380
27407
|
}
|
|
27381
27408
|
function python(e) {
|
|
27382
|
-
let t = e.regex, n = /[\p{XID_Start}_]\p{XID_Continue}*/u, r = /* @__PURE__ */ "and.as.assert.async.await.break.case.class.continue.def.del.elif.else.except.finally.for.from.global.if.import.in.is.lambda.match.nonlocal|10.not.or.pass.raise.return.try.while.with.yield".split("."), i = {
|
|
27409
|
+
let t = e.regex, n = /[\p{XID_Start}_]\p{XID_Continue}*/u, r = /* @__PURE__ */ "and.as.assert.async.await.break.case.class.continue.def.del.elif.else.except.finally.for.from.global.if.import.in.is.lambda.lazy.match.nonlocal|10.not.or.pass.raise.return.try.while.with.yield".split("."), i = {
|
|
27383
27410
|
$pattern: /[A-Za-z]\w+|__\w+__/,
|
|
27384
27411
|
keyword: r,
|
|
27385
|
-
built_in: /* @__PURE__ */ "__import__.abs.all.any.ascii.bin.bool.breakpoint.bytearray.bytes.callable.chr.classmethod.compile.complex.delattr.dict.dir.divmod.enumerate.eval.exec.filter.float.format.frozenset.getattr.globals.hasattr.hash.help.hex.id.input.int.isinstance.issubclass.iter.len.list.locals.map.max.memoryview.min.next.object.oct.open.ord.pow.print.property.range.repr.reversed.round.set.setattr.slice.sorted.staticmethod.str.sum.super.tuple.type.vars.zip".split("."),
|
|
27412
|
+
built_in: /* @__PURE__ */ "__import__.abs.aiter.all.anext.any.ascii.bin.bool.breakpoint.bytearray.bytes.callable.chr.classmethod.compile.complex.delattr.dict.dir.divmod.enumerate.eval.exec.filter.float.format.frozendict.frozenset.getattr.globals.hasattr.hash.help.hex.id.input.int.isinstance.issubclass.iter.len.list.locals.map.max.memoryview.min.next.object.oct.open.ord.pow.print.property.range.repr.reversed.round.sentinel.set.setattr.slice.sorted.staticmethod.str.sum.super.tuple.type.vars.zip".split("."),
|
|
27386
27413
|
literal: [
|
|
27387
27414
|
"__debug__",
|
|
27388
27415
|
"Ellipsis",
|
|
@@ -27435,7 +27462,7 @@ function python(e) {
|
|
|
27435
27462
|
relevance: 10
|
|
27436
27463
|
},
|
|
27437
27464
|
{
|
|
27438
|
-
begin: /([
|
|
27465
|
+
begin: /([fFtT][rR]|[rR][fFtT]|[fFtT])'''/,
|
|
27439
27466
|
end: /'''/,
|
|
27440
27467
|
contains: [
|
|
27441
27468
|
e.BACKSLASH_ESCAPE,
|
|
@@ -27445,7 +27472,7 @@ function python(e) {
|
|
|
27445
27472
|
]
|
|
27446
27473
|
},
|
|
27447
27474
|
{
|
|
27448
|
-
begin: /([
|
|
27475
|
+
begin: /([fFtT][rR]|[rR][fFtT]|[fFtT])"""/,
|
|
27449
27476
|
end: /"""/,
|
|
27450
27477
|
contains: [
|
|
27451
27478
|
e.BACKSLASH_ESCAPE,
|
|
@@ -27473,7 +27500,7 @@ function python(e) {
|
|
|
27473
27500
|
end: /"/
|
|
27474
27501
|
},
|
|
27475
27502
|
{
|
|
27476
|
-
begin: /([
|
|
27503
|
+
begin: /([fFtT][rR]|[rR][fFtT]|[fFtT])'/,
|
|
27477
27504
|
end: /'/,
|
|
27478
27505
|
contains: [
|
|
27479
27506
|
e.BACKSLASH_ESCAPE,
|
|
@@ -27482,7 +27509,7 @@ function python(e) {
|
|
|
27482
27509
|
]
|
|
27483
27510
|
},
|
|
27484
27511
|
{
|
|
27485
|
-
begin: /([
|
|
27512
|
+
begin: /([fFtT][rR]|[rR][fFtT]|[fFtT])"/,
|
|
27486
27513
|
end: /"/,
|
|
27487
27514
|
contains: [
|
|
27488
27515
|
e.BACKSLASH_ESCAPE,
|
|
@@ -27553,11 +27580,18 @@ function python(e) {
|
|
|
27553
27580
|
contains: [
|
|
27554
27581
|
o,
|
|
27555
27582
|
y,
|
|
27556
|
-
{
|
|
27583
|
+
{
|
|
27584
|
+
scope: "variable.language",
|
|
27585
|
+
match: /\bself\b/
|
|
27586
|
+
},
|
|
27557
27587
|
{
|
|
27558
27588
|
beginKeywords: "if",
|
|
27559
27589
|
relevance: 0
|
|
27560
27590
|
},
|
|
27591
|
+
{
|
|
27592
|
+
match: /\bor\b/,
|
|
27593
|
+
scope: "keyword"
|
|
27594
|
+
},
|
|
27561
27595
|
d,
|
|
27562
27596
|
x,
|
|
27563
27597
|
e.HASH_COMMENT_MODE,
|
|
@@ -27606,7 +27640,7 @@ function python(e) {
|
|
|
27606
27640
|
]
|
|
27607
27641
|
};
|
|
27608
27642
|
}
|
|
27609
|
-
var IDENT_RE = "[A-Za-z$_][0-9A-Za-z$_]*", KEYWORDS = /* @__PURE__ */ "as.in.of.if.for.while.finally.var.new.function.do.return.void.else.break.catch.instanceof.with.throw.case.default.try.switch.continue.typeof.delete.let.yield.const.class.debugger.async.await.static.import.from.export.extends".split("."), LITERALS = [
|
|
27643
|
+
var IDENT_RE = "[A-Za-z$_][0-9A-Za-z$_]*", KEYWORDS = /* @__PURE__ */ "as.in.of.if.for.while.finally.var.new.function.do.return.void.else.break.catch.instanceof.with.throw.case.default.try.switch.continue.typeof.delete.let.yield.const.class.debugger.async.await.static.import.from.export.extends.using".split("."), LITERALS = [
|
|
27610
27644
|
"true",
|
|
27611
27645
|
"false",
|
|
27612
27646
|
"null",
|
|
@@ -27650,6 +27684,7 @@ var IDENT_RE = "[A-Za-z$_][0-9A-Za-z$_]*", KEYWORDS = /* @__PURE__ */ "as.in.of.
|
|
|
27650
27684
|
"localStorage",
|
|
27651
27685
|
"sessionStorage",
|
|
27652
27686
|
"module",
|
|
27687
|
+
"self",
|
|
27653
27688
|
"global"
|
|
27654
27689
|
], BUILT_INS = [].concat(BUILT_IN_GLOBALS, TYPES, ERROR_TYPES);
|
|
27655
27690
|
function javascript$1(e) {
|
|
@@ -27704,7 +27739,7 @@ function javascript$1(e) {
|
|
|
27704
27739
|
keywords: l,
|
|
27705
27740
|
contains: []
|
|
27706
27741
|
}, x = {
|
|
27707
|
-
begin: "html`",
|
|
27742
|
+
begin: ".?html`",
|
|
27708
27743
|
end: "",
|
|
27709
27744
|
starts: {
|
|
27710
27745
|
end: "`",
|
|
@@ -27713,7 +27748,7 @@ function javascript$1(e) {
|
|
|
27713
27748
|
subLanguage: "xml"
|
|
27714
27749
|
}
|
|
27715
27750
|
}, w = {
|
|
27716
|
-
begin: "css`",
|
|
27751
|
+
begin: ".?css`",
|
|
27717
27752
|
end: "",
|
|
27718
27753
|
starts: {
|
|
27719
27754
|
end: "`",
|
|
@@ -27722,7 +27757,7 @@ function javascript$1(e) {
|
|
|
27722
27757
|
subLanguage: "css"
|
|
27723
27758
|
}
|
|
27724
27759
|
}, k = {
|
|
27725
|
-
begin: "gql`",
|
|
27760
|
+
begin: ".?gql`",
|
|
27726
27761
|
end: "",
|
|
27727
27762
|
starts: {
|
|
27728
27763
|
end: "`",
|
|
@@ -27789,13 +27824,13 @@ function javascript$1(e) {
|
|
|
27789
27824
|
contains: ["self"].concat(j7)
|
|
27790
27825
|
});
|
|
27791
27826
|
let M7 = [].concat(A7, y.contains), N7 = M7.concat([{
|
|
27792
|
-
begin:
|
|
27827
|
+
begin: /(\s*)\(/,
|
|
27793
27828
|
end: /\)/,
|
|
27794
27829
|
keywords: l,
|
|
27795
27830
|
contains: ["self"].concat(M7)
|
|
27796
27831
|
}]), P7 = {
|
|
27797
27832
|
className: "params",
|
|
27798
|
-
begin:
|
|
27833
|
+
begin: /(\s*)\(/,
|
|
27799
27834
|
end: /\)/,
|
|
27800
27835
|
excludeBegin: !0,
|
|
27801
27836
|
excludeEnd: !0,
|
|
@@ -27863,8 +27898,9 @@ function javascript$1(e) {
|
|
|
27863
27898
|
match: t.concat(/\b/, B7([
|
|
27864
27899
|
...BUILT_IN_GLOBALS,
|
|
27865
27900
|
"super",
|
|
27866
|
-
"import"
|
|
27867
|
-
|
|
27901
|
+
"import",
|
|
27902
|
+
"await"
|
|
27903
|
+
].map((e) => `${e}\\s*\\(`)), r, t.lookahead(/\s*\(/)),
|
|
27868
27904
|
className: "title.function",
|
|
27869
27905
|
relevance: 0
|
|
27870
27906
|
}, H7 = {
|
|
@@ -27916,7 +27952,7 @@ function javascript$1(e) {
|
|
|
27916
27952
|
PARAMS_CONTAINS: N7,
|
|
27917
27953
|
CLASS_REFERENCE: I7
|
|
27918
27954
|
},
|
|
27919
|
-
illegal: /#(?![$_A-z])/,
|
|
27955
|
+
illegal: /#(?![$_A-Za-z])/,
|
|
27920
27956
|
contains: [
|
|
27921
27957
|
e.SHEBANG({
|
|
27922
27958
|
label: "shebang",
|
|
@@ -27935,8 +27971,8 @@ function javascript$1(e) {
|
|
|
27935
27971
|
_,
|
|
27936
27972
|
I7,
|
|
27937
27973
|
{
|
|
27938
|
-
|
|
27939
|
-
|
|
27974
|
+
scope: "attr",
|
|
27975
|
+
match: r + t.lookahead(":"),
|
|
27940
27976
|
relevance: 0
|
|
27941
27977
|
},
|
|
27942
27978
|
G7,
|
|
@@ -27965,7 +28001,7 @@ function javascript$1(e) {
|
|
|
27965
28001
|
skip: !0
|
|
27966
28002
|
},
|
|
27967
28003
|
{
|
|
27968
|
-
begin:
|
|
28004
|
+
begin: /(\s*)\(/,
|
|
27969
28005
|
end: /\)/,
|
|
27970
28006
|
excludeBegin: !0,
|
|
27971
28007
|
excludeEnd: !0,
|
|
@@ -28040,7 +28076,7 @@ function javascript$1(e) {
|
|
|
28040
28076
|
};
|
|
28041
28077
|
}
|
|
28042
28078
|
function typescript(e) {
|
|
28043
|
-
let t = javascript$1(e),
|
|
28079
|
+
let t = e.regex, n = javascript$1(e), r = IDENT_RE, i = [
|
|
28044
28080
|
"any",
|
|
28045
28081
|
"void",
|
|
28046
28082
|
"number",
|
|
@@ -28051,29 +28087,33 @@ function typescript(e) {
|
|
|
28051
28087
|
"symbol",
|
|
28052
28088
|
"bigint",
|
|
28053
28089
|
"unknown"
|
|
28054
|
-
],
|
|
28055
|
-
|
|
28056
|
-
|
|
28057
|
-
|
|
28058
|
-
|
|
28059
|
-
|
|
28090
|
+
], o = {
|
|
28091
|
+
begin: [
|
|
28092
|
+
/namespace/,
|
|
28093
|
+
/\s+/,
|
|
28094
|
+
e.IDENT_RE
|
|
28095
|
+
],
|
|
28096
|
+
beginScope: {
|
|
28097
|
+
1: "keyword",
|
|
28098
|
+
3: "title.class"
|
|
28099
|
+
}
|
|
28100
|
+
}, s = {
|
|
28060
28101
|
beginKeywords: "interface",
|
|
28061
28102
|
end: /\{/,
|
|
28062
28103
|
excludeEnd: !0,
|
|
28063
28104
|
keywords: {
|
|
28064
28105
|
keyword: "interface extends",
|
|
28065
|
-
built_in:
|
|
28106
|
+
built_in: i
|
|
28066
28107
|
},
|
|
28067
|
-
contains: [
|
|
28068
|
-
},
|
|
28108
|
+
contains: [n.exports.CLASS_REFERENCE]
|
|
28109
|
+
}, l = {
|
|
28069
28110
|
className: "meta",
|
|
28070
28111
|
relevance: 10,
|
|
28071
28112
|
begin: /^\s*['"]use strict['"]/
|
|
28072
|
-
},
|
|
28113
|
+
}, d = {
|
|
28073
28114
|
$pattern: IDENT_RE,
|
|
28074
28115
|
keyword: KEYWORDS.concat([
|
|
28075
28116
|
"type",
|
|
28076
|
-
"namespace",
|
|
28077
28117
|
"interface",
|
|
28078
28118
|
"public",
|
|
28079
28119
|
"private",
|
|
@@ -28083,26 +28123,34 @@ function typescript(e) {
|
|
|
28083
28123
|
"abstract",
|
|
28084
28124
|
"readonly",
|
|
28085
28125
|
"enum",
|
|
28086
|
-
"override"
|
|
28126
|
+
"override",
|
|
28127
|
+
"satisfies"
|
|
28087
28128
|
]),
|
|
28088
28129
|
literal: LITERALS,
|
|
28089
|
-
built_in: BUILT_INS.concat(
|
|
28130
|
+
built_in: BUILT_INS.concat(i),
|
|
28090
28131
|
"variable.language": BUILT_IN_VARIABLES
|
|
28091
|
-
},
|
|
28132
|
+
}, f = {
|
|
28092
28133
|
className: "meta",
|
|
28093
|
-
begin: "@" +
|
|
28094
|
-
},
|
|
28134
|
+
begin: "@" + r
|
|
28135
|
+
}, p = (e, t, n) => {
|
|
28095
28136
|
let r = e.contains.findIndex((e) => e.label === t);
|
|
28096
28137
|
if (r === -1) throw Error("can not find mode to replace");
|
|
28097
28138
|
e.contains.splice(r, 1, n);
|
|
28098
28139
|
};
|
|
28099
|
-
Object.assign(
|
|
28100
|
-
|
|
28101
|
-
|
|
28102
|
-
|
|
28103
|
-
|
|
28104
|
-
|
|
28105
|
-
|
|
28140
|
+
Object.assign(n.keywords, d), n.exports.PARAMS_CONTAINS.push(f);
|
|
28141
|
+
let _ = n.contains.find((e) => e.scope === "attr"), y = Object.assign({}, _, { match: t.concat(r, t.lookahead(/\s*\?:/)) });
|
|
28142
|
+
n.exports.PARAMS_CONTAINS.push([
|
|
28143
|
+
n.exports.CLASS_REFERENCE,
|
|
28144
|
+
_,
|
|
28145
|
+
y
|
|
28146
|
+
]), n.contains = n.contains.concat([
|
|
28147
|
+
f,
|
|
28148
|
+
o,
|
|
28149
|
+
s,
|
|
28150
|
+
y
|
|
28151
|
+
]), p(n, "shebang", e.SHEBANG()), p(n, "use_strict", l);
|
|
28152
|
+
let x = n.contains.find((e) => e.label === "func.def");
|
|
28153
|
+
return x.relevance = 0, Object.assign(n, {
|
|
28106
28154
|
name: "TypeScript",
|
|
28107
28155
|
aliases: [
|
|
28108
28156
|
"ts",
|
|
@@ -28110,7 +28158,7 @@ function typescript(e) {
|
|
|
28110
28158
|
"mts",
|
|
28111
28159
|
"cts"
|
|
28112
28160
|
]
|
|
28113
|
-
}),
|
|
28161
|
+
}), n;
|
|
28114
28162
|
}
|
|
28115
28163
|
var import_markdown_it = /* @__PURE__ */ __toESM(require_markdown_it()), VueMarkdown_default = defineComponent({
|
|
28116
28164
|
name: "VueMarkdown",
|