@kong-ui-public/document-viewer 2.3.39 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/document-viewer.es.js +11 -1652
- package/dist/document-viewer.umd.js +16 -23
- package/dist/index-Dm0akurK.js +1632 -0
- package/dist/{prism-docker.min-RkX3juQh.js → prism-docker.min-Cc3clOcH.js} +7 -7
- package/dist/prism-jq.min-DSs6jyUo.js +36 -0
- package/dist/{prism-markdown.min-C0Qn0m-5.js → prism-markdown.min-D9nktPdA.js} +16 -16
- package/dist/prism-python.min-CwGdPpz_.js +29 -0
- package/dist/prism-rust.min-Ccuw6kc-.js +36 -0
- package/dist/prism-scss.min-DsoMAB2f.js +29 -0
- package/dist/prism-typescript.min-fwm2QbJz.js +33 -0
- package/dist/prism-yaml.min-C3Yo-ypE.js +28 -0
- package/package.json +4 -4
- package/dist/prism-jq.min-KI3qrR2-.js +0 -8
- package/dist/prism-python.min-BIfpAh5K.js +0 -1
- package/dist/prism-rust.min-xSp7-1qY.js +0 -8
- package/dist/prism-scss.min-B0csyGJo.js +0 -1
- package/dist/prism-typescript.min-oSVeWCAd.js +0 -5
- package/dist/prism-yaml.min-ADtdOEMG.js +0 -28
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
(function(r) {
|
|
2
|
-
var u = "(?:[ ]+(?![ ])(?:<SP_BS>)?|<SP_BS>)".replace(/<SP_BS>/g, function() {
|
|
2
|
+
var u = "(?:[ ]+(?![ ])(?:<SP_BS>)?|<SP_BS>)".replace(/<SP_BS>/g, (function() {
|
|
3
3
|
return `\\\\[\r
|
|
4
4
|
](?:\\s|\\\\[\r
|
|
5
5
|
]|#.*(?!.))*(?![\\s#]|\\\\[\r
|
|
6
6
|
])`;
|
|
7
|
-
}), n = `"(?:[^"\\\\\r
|
|
7
|
+
})), n = `"(?:[^"\\\\\r
|
|
8
8
|
]|\\\\(?:\r
|
|
9
9
|
|[^]))*"|'(?:[^'\\\\\r
|
|
10
10
|
]|\\\\(?:\r
|
|
11
|
-
|[^]))*'`, a = `--[\\w-]+=(?:<STR>|(?!["'])(?:[^\\s\\\\]|\\\\.)+)`.replace(/<STR>/g, function() {
|
|
11
|
+
|[^]))*'`, a = `--[\\w-]+=(?:<STR>|(?!["'])(?:[^\\s\\\\]|\\\\.)+)`.replace(/<STR>/g, (function() {
|
|
12
12
|
return n;
|
|
13
|
-
}), o = { pattern: RegExp(n), greedy: !0 }, i = { pattern: /(^[ \t]*)#.*/m, lookbehind: !0, greedy: !0 };
|
|
13
|
+
})), o = { pattern: RegExp(n), greedy: !0 }, i = { pattern: /(^[ \t]*)#.*/m, lookbehind: !0, greedy: !0 };
|
|
14
14
|
function e(t, S) {
|
|
15
|
-
return t = t.replace(/<OPT>/g, function() {
|
|
15
|
+
return t = t.replace(/<OPT>/g, (function() {
|
|
16
16
|
return a;
|
|
17
|
-
}).replace(/<SP>/g, function() {
|
|
17
|
+
})).replace(/<SP>/g, (function() {
|
|
18
18
|
return u;
|
|
19
|
-
}), RegExp(t, S);
|
|
19
|
+
})), RegExp(t, S);
|
|
20
20
|
}
|
|
21
21
|
r.languages.docker = { instruction: { pattern: /(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im, lookbehind: !0, greedy: !0, inside: { options: { pattern: e("(^(?:ONBUILD<SP>)?\\w+<SP>)<OPT>(?:<SP><OPT>)*", "i"), lookbehind: !0, greedy: !0, inside: { property: { pattern: /(^|\s)--[\w-]+/, lookbehind: !0 }, string: [o, { pattern: /(=)(?!["'])(?:[^\s\\]|\\.)+/, lookbehind: !0 }], operator: /\\$/m, punctuation: /=/ } }, keyword: [{ pattern: e("(^(?:ONBUILD<SP>)?HEALTHCHECK<SP>(?:<OPT><SP>)*)(?:CMD|NONE)\\b", "i"), lookbehind: !0, greedy: !0 }, { pattern: e("(^(?:ONBUILD<SP>)?FROM<SP>(?:<OPT><SP>)*(?!--)[^ \\\\]+<SP>)AS", "i"), lookbehind: !0, greedy: !0 }, { pattern: e("(^ONBUILD<SP>)\\w+", "i"), lookbehind: !0, greedy: !0 }, { pattern: /^\w+/, greedy: !0 }], comment: i, string: o, variable: /\$(?:\w+|\{[^{}"'\\]*\})/, operator: /\\$/m } }, comment: i }, r.languages.dockerfile = r.languages.docker;
|
|
22
22
|
})(Prism);
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { g as u } from "./index-Dm0akurK.js";
|
|
2
|
+
function l(n, i) {
|
|
3
|
+
for (var r = 0; r < i.length; r++) {
|
|
4
|
+
const e = i[r];
|
|
5
|
+
if (typeof e != "string" && !Array.isArray(e)) {
|
|
6
|
+
for (const t in e)
|
|
7
|
+
if (t !== "default" && !(t in n)) {
|
|
8
|
+
const o = Object.getOwnPropertyDescriptor(e, t);
|
|
9
|
+
o && Object.defineProperty(n, t, o.get ? o : {
|
|
10
|
+
enumerable: !0,
|
|
11
|
+
get: () => e[t]
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
return Object.freeze(Object.defineProperty(n, Symbol.toStringTag, { value: "Module" }));
|
|
17
|
+
}
|
|
18
|
+
var a = {}, s;
|
|
19
|
+
function d() {
|
|
20
|
+
return s || (s = 1, (function(n) {
|
|
21
|
+
var i = "\\\\\\((?:[^()]|\\([^()]*\\))*\\)", r = RegExp(`(^|[^\\\\])"(?:[^"\r
|
|
22
|
+
\\\\]|\\\\[^\r
|
|
23
|
+
(]|__)*"`.replace(/__/g, (function() {
|
|
24
|
+
return i;
|
|
25
|
+
}))), e = { interpolation: { pattern: RegExp("((?:^|[^\\\\])(?:\\\\{2})*)" + i), lookbehind: !0, inside: { content: { pattern: /^(\\\()[\s\S]+(?=\)$)/, lookbehind: !0, inside: null }, punctuation: /^\\\(|\)$/ } } }, t = n.languages.jq = { comment: /#.*/, property: { pattern: RegExp(r.source + "(?=\\s*:(?!:))"), lookbehind: !0, greedy: !0, inside: e }, string: { pattern: r, lookbehind: !0, greedy: !0, inside: e }, function: { pattern: /(\bdef\s+)[a-z_]\w+/i, lookbehind: !0 }, variable: /\B\$\w+/, "property-literal": { pattern: /\b[a-z_]\w*(?=\s*:(?!:))/i, alias: "property" }, keyword: /\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/, boolean: /\b(?:false|true)\b/, number: /(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/, operator: [{ pattern: /\|=?/, alias: "pipe" }, /\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/], "c-style-function": { pattern: /\b[a-z_]\w*(?=\s*\()/i, alias: "function" }, punctuation: /::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/, dot: { pattern: /\./, alias: "important" } };
|
|
26
|
+
e.interpolation.inside.content.inside = t;
|
|
27
|
+
})(Prism)), a;
|
|
28
|
+
}
|
|
29
|
+
var p = d();
|
|
30
|
+
const c = /* @__PURE__ */ u(p), f = /* @__PURE__ */ l({
|
|
31
|
+
__proto__: null,
|
|
32
|
+
default: c
|
|
33
|
+
}, [p]);
|
|
34
|
+
export {
|
|
35
|
+
f as p
|
|
36
|
+
};
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
(function(e) {
|
|
2
2
|
function p(n) {
|
|
3
|
-
return n = n.replace(/<inner>/g, function() {
|
|
3
|
+
return n = n.replace(/<inner>/g, (function() {
|
|
4
4
|
return `(?:\\\\.|[^\\\\
|
|
5
5
|
\r]|(?:
|
|
6
6
|
|\r
|
|
7
7
|
?)(?![\r
|
|
8
8
|
]))`;
|
|
9
|
-
}), RegExp("((?:^|[^\\\\])(?:\\\\{2})*)(?:" + n + ")");
|
|
9
|
+
})), RegExp("((?:^|[^\\\\])(?:\\\\{2})*)(?:" + n + ")");
|
|
10
10
|
}
|
|
11
11
|
var g = "(?:\\\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\\\|\r\n`])+", s = `\\|?__(?:\\|__)+\\|?(?:(?:
|
|
12
12
|
|\r
|
|
13
|
-
?)|(?![^]))`.replace(/__/g, function() {
|
|
13
|
+
?)|(?![^]))`.replace(/__/g, (function() {
|
|
14
14
|
return g;
|
|
15
|
-
}), c = `\\|?[ ]*:?-{3,}:?[ ]*(?:\\|[ ]*:?-{3,}:?[ ]*)+\\|?(?:
|
|
15
|
+
})), c = `\\|?[ ]*:?-{3,}:?[ ]*(?:\\|[ ]*:?-{3,}:?[ ]*)+\\|?(?:
|
|
16
16
|
|\r
|
|
17
17
|
?)`;
|
|
18
|
-
e.languages.markdown = e.languages.extend("markup", {}), e.languages.insertBefore("markdown", "prolog", { "front-matter-block": { pattern: /(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/, lookbehind: !0, greedy: !0, inside: { punctuation: /^---|---$/, "front-matter": { pattern: /\S+(?:\s+\S+)*/, alias: ["yaml", "language-yaml"], inside: e.languages.yaml } } }, blockquote: { pattern: /^>(?:[\t ]*>)*/m, alias: "punctuation" }, table: { pattern: RegExp("^" + s + c + "(?:" + s + ")*", "m"), inside: { "table-data-rows": { pattern: RegExp("^(" + s + c + ")(?:" + s + ")*$"), lookbehind: !0, inside: { "table-data": { pattern: RegExp(g), inside: e.languages.markdown }, punctuation: /\|/ } }, "table-line": { pattern: RegExp("^(" + s + ")" + c + "$"), lookbehind: !0, inside: { punctuation: /\||:?-{3,}:?/ } }, "table-header-row": { pattern: RegExp("^" + s + "$"), inside: { "table-header": { pattern: RegExp(g), alias: "important", inside: e.languages.markdown }, punctuation: /\|/ } } } }, code: [{ pattern: /((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/, lookbehind: !0, alias: "keyword" }, { pattern: /^```[\s\S]*?^```$/m, greedy: !0, inside: { "code-block": { pattern: /^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m, lookbehind: !0 }, "code-language": { pattern: /^(```).+/, lookbehind: !0 }, punctuation: /```/ } }], title: [{ pattern: /\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m, alias: "important", inside: { punctuation: /==+$|--+$/ } }, { pattern: /(^\s*)#.+/m, lookbehind: !0, alias: "important", inside: { punctuation: /^#+|#+$/ } }], hr: { pattern: /(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m, lookbehind: !0, alias: "punctuation" }, list: { pattern: /(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m, lookbehind: !0, alias: "punctuation" }, "url-reference": { pattern: /!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/, inside: { variable: { pattern: /^(!?\[)[^\]]+/, lookbehind: !0 }, string: /(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/, punctuation: /^[\[\]!:]|[<>]/ }, alias: "url" }, bold: { pattern: p("\\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\\b|\\*\\*(?:(?!\\*)<inner>|\\*(?:(?!\\*)<inner>)+\\*)+\\*\\*"), lookbehind: !0, greedy: !0, inside: { content: { pattern: /(^..)[\s\S]+(?=..$)/, lookbehind: !0, inside: {} }, punctuation: /\*\*|__/ } }, italic: { pattern: p("\\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\\b|\\*(?:(?!\\*)<inner>|\\*\\*(?:(?!\\*)<inner>)+\\*\\*)+\\*"), lookbehind: !0, greedy: !0, inside: { content: { pattern: /(^.)[\s\S]+(?=.$)/, lookbehind: !0, inside: {} }, punctuation: /[*_]/ } }, strike: { pattern: p("(~~?)(?:(?!~)<inner>)+\\2"), lookbehind: !0, greedy: !0, inside: { content: { pattern: /(^~~?)[\s\S]+(?=\1$)/, lookbehind: !0, inside: {} }, punctuation: /~~?/ } }, "code-snippet": { pattern: /(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/, lookbehind: !0, greedy: !0, alias: ["code", "keyword"] }, url: { pattern: p('!?\\[(?:(?!\\])<inner>)+\\](?:\\([^\\s)]+(?:[ ]+"(?:\\\\.|[^"\\\\])*")?\\)|[ ]?\\[(?:(?!\\])<inner>)+\\])'), lookbehind: !0, greedy: !0, inside: { operator: /^!/, content: { pattern: /(^\[)[^\]]+(?=\])/, lookbehind: !0, inside: {} }, variable: { pattern: /(^\][ \t]?\[)[^\]]+(?=\]$)/, lookbehind: !0 }, url: { pattern: /(^\]\()[^\s)]+/, lookbehind: !0 }, string: { pattern: /(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/, lookbehind: !0 } } } }), ["url", "bold", "italic", "strike"].forEach(function(n) {
|
|
19
|
-
["url", "bold", "italic", "strike", "code-snippet"].forEach(function(t) {
|
|
18
|
+
e.languages.markdown = e.languages.extend("markup", {}), e.languages.insertBefore("markdown", "prolog", { "front-matter-block": { pattern: /(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/, lookbehind: !0, greedy: !0, inside: { punctuation: /^---|---$/, "front-matter": { pattern: /\S+(?:\s+\S+)*/, alias: ["yaml", "language-yaml"], inside: e.languages.yaml } } }, blockquote: { pattern: /^>(?:[\t ]*>)*/m, alias: "punctuation" }, table: { pattern: RegExp("^" + s + c + "(?:" + s + ")*", "m"), inside: { "table-data-rows": { pattern: RegExp("^(" + s + c + ")(?:" + s + ")*$"), lookbehind: !0, inside: { "table-data": { pattern: RegExp(g), inside: e.languages.markdown }, punctuation: /\|/ } }, "table-line": { pattern: RegExp("^(" + s + ")" + c + "$"), lookbehind: !0, inside: { punctuation: /\||:?-{3,}:?/ } }, "table-header-row": { pattern: RegExp("^" + s + "$"), inside: { "table-header": { pattern: RegExp(g), alias: "important", inside: e.languages.markdown }, punctuation: /\|/ } } } }, code: [{ pattern: /((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/, lookbehind: !0, alias: "keyword" }, { pattern: /^```[\s\S]*?^```$/m, greedy: !0, inside: { "code-block": { pattern: /^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m, lookbehind: !0 }, "code-language": { pattern: /^(```).+/, lookbehind: !0 }, punctuation: /```/ } }], title: [{ pattern: /\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m, alias: "important", inside: { punctuation: /==+$|--+$/ } }, { pattern: /(^\s*)#.+/m, lookbehind: !0, alias: "important", inside: { punctuation: /^#+|#+$/ } }], hr: { pattern: /(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m, lookbehind: !0, alias: "punctuation" }, list: { pattern: /(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m, lookbehind: !0, alias: "punctuation" }, "url-reference": { pattern: /!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/, inside: { variable: { pattern: /^(!?\[)[^\]]+/, lookbehind: !0 }, string: /(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/, punctuation: /^[\[\]!:]|[<>]/ }, alias: "url" }, bold: { pattern: p("\\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\\b|\\*\\*(?:(?!\\*)<inner>|\\*(?:(?!\\*)<inner>)+\\*)+\\*\\*"), lookbehind: !0, greedy: !0, inside: { content: { pattern: /(^..)[\s\S]+(?=..$)/, lookbehind: !0, inside: {} }, punctuation: /\*\*|__/ } }, italic: { pattern: p("\\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\\b|\\*(?:(?!\\*)<inner>|\\*\\*(?:(?!\\*)<inner>)+\\*\\*)+\\*"), lookbehind: !0, greedy: !0, inside: { content: { pattern: /(^.)[\s\S]+(?=.$)/, lookbehind: !0, inside: {} }, punctuation: /[*_]/ } }, strike: { pattern: p("(~~?)(?:(?!~)<inner>)+\\2"), lookbehind: !0, greedy: !0, inside: { content: { pattern: /(^~~?)[\s\S]+(?=\1$)/, lookbehind: !0, inside: {} }, punctuation: /~~?/ } }, "code-snippet": { pattern: /(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/, lookbehind: !0, greedy: !0, alias: ["code", "keyword"] }, url: { pattern: p('!?\\[(?:(?!\\])<inner>)+\\](?:\\([^\\s)]+(?:[ ]+"(?:\\\\.|[^"\\\\])*")?\\)|[ ]?\\[(?:(?!\\])<inner>)+\\])'), lookbehind: !0, greedy: !0, inside: { operator: /^!/, content: { pattern: /(^\[)[^\]]+(?=\])/, lookbehind: !0, inside: {} }, variable: { pattern: /(^\][ \t]?\[)[^\]]+(?=\]$)/, lookbehind: !0 }, url: { pattern: /(^\]\()[^\s)]+/, lookbehind: !0 }, string: { pattern: /(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/, lookbehind: !0 } } } }), ["url", "bold", "italic", "strike"].forEach((function(n) {
|
|
19
|
+
["url", "bold", "italic", "strike", "code-snippet"].forEach((function(t) {
|
|
20
20
|
n !== t && (e.languages.markdown[n].inside.content.inside[t] = e.languages.markdown[t]);
|
|
21
|
-
});
|
|
22
|
-
}), e.hooks.add("after-tokenize", function(n) {
|
|
23
|
-
n.language !== "markdown" && n.language !== "md" || function t(i) {
|
|
21
|
+
}));
|
|
22
|
+
})), e.hooks.add("after-tokenize", (function(n) {
|
|
23
|
+
n.language !== "markdown" && n.language !== "md" || (function t(i) {
|
|
24
24
|
if (i && typeof i != "string") for (var d = 0, b = i.length; d < b; d++) {
|
|
25
25
|
var l = i[d];
|
|
26
26
|
if (l.type === "code") {
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
}
|
|
32
32
|
} else t(l.content);
|
|
33
33
|
}
|
|
34
|
-
}(n.tokens);
|
|
35
|
-
}), e.hooks.add("wrap", function(n) {
|
|
34
|
+
})(n.tokens);
|
|
35
|
+
})), e.hooks.add("wrap", (function(n) {
|
|
36
36
|
if (n.type === "code-block") {
|
|
37
37
|
for (var t = "", i = 0, d = n.classes.length; i < d; i++) {
|
|
38
38
|
var b = n.classes[i], l = /language-(.+)/.exec(b);
|
|
@@ -42,19 +42,19 @@
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
var u = e.languages[t];
|
|
45
|
-
if (u) n.content = e.highlight(n.content.replace(h, "").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi, function(o, r) {
|
|
45
|
+
if (u) n.content = e.highlight(n.content.replace(h, "").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi, (function(o, r) {
|
|
46
46
|
var k;
|
|
47
47
|
return (r = r.toLowerCase())[0] === "#" ? (k = r[1] === "x" ? parseInt(r.slice(2), 16) : Number(r.slice(1)), f(k)) : m[r] || o;
|
|
48
|
-
}), u, t);
|
|
48
|
+
})), u, t);
|
|
49
49
|
else if (t && t !== "none" && e.plugins.autoloader) {
|
|
50
50
|
var a = "md-" + (/* @__PURE__ */ new Date()).valueOf() + "-" + Math.floor(1e16 * Math.random());
|
|
51
|
-
n.attributes.id = a, e.plugins.autoloader.loadLanguages(t, function() {
|
|
51
|
+
n.attributes.id = a, e.plugins.autoloader.loadLanguages(t, (function() {
|
|
52
52
|
var o = document.getElementById(a);
|
|
53
53
|
o && (o.innerHTML = e.highlight(o.textContent, e.languages[t], t));
|
|
54
|
-
});
|
|
54
|
+
}));
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
|
-
});
|
|
57
|
+
}));
|
|
58
58
|
var h = RegExp(e.languages.markup.tag.pattern.source, "gi"), m = { amp: "&", lt: "<", gt: ">", quot: '"' }, f = String.fromCodePoint || String.fromCharCode;
|
|
59
59
|
e.languages.md = e.languages.markdown;
|
|
60
60
|
})(Prism);
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { g as p } from "./index-Dm0akurK.js";
|
|
2
|
+
function u(r, a) {
|
|
3
|
+
for (var n = 0; n < a.length; n++) {
|
|
4
|
+
const e = a[n];
|
|
5
|
+
if (typeof e != "string" && !Array.isArray(e)) {
|
|
6
|
+
for (const t in e)
|
|
7
|
+
if (t !== "default" && !(t in r)) {
|
|
8
|
+
const i = Object.getOwnPropertyDescriptor(e, t);
|
|
9
|
+
i && Object.defineProperty(r, t, i.get ? i : {
|
|
10
|
+
enumerable: !0,
|
|
11
|
+
get: () => e[t]
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
return Object.freeze(Object.defineProperty(r, Symbol.toStringTag, { value: "Module" }));
|
|
17
|
+
}
|
|
18
|
+
var o = {}, s;
|
|
19
|
+
function d() {
|
|
20
|
+
return s || (s = 1, Prism.languages.python = { comment: { pattern: /(^|[^\\])#.*/, lookbehind: !0, greedy: !0 }, "string-interpolation": { pattern: /(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i, greedy: !0, inside: { interpolation: { pattern: /((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/, lookbehind: !0, inside: { "format-spec": { pattern: /(:)[^:(){}]+(?=\}$)/, lookbehind: !0 }, "conversion-option": { pattern: //, alias: "punctuation" }, rest: null } }, string: /[\s\S]+/ } }, "triple-quoted-string": { pattern: /(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i, greedy: !0, alias: "string" }, string: { pattern: /(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i, greedy: !0 }, function: { pattern: /((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g, lookbehind: !0 }, "class-name": { pattern: /(\bclass\s+)\w+/i, lookbehind: !0 }, decorator: { pattern: /(^[\t ]*)@\w+(?:\.\w+)*/m, lookbehind: !0, alias: ["annotation", "punctuation"], inside: { punctuation: /\./ } }, keyword: /\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/, builtin: /\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/, boolean: /\b(?:False|None|True)\b/, number: /\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i, operator: /[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/, punctuation: /[{}[\];(),.:]/ }, Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest = Prism.languages.python, Prism.languages.py = Prism.languages.python), o;
|
|
21
|
+
}
|
|
22
|
+
var l = d();
|
|
23
|
+
const c = /* @__PURE__ */ p(l), b = /* @__PURE__ */ u({
|
|
24
|
+
__proto__: null,
|
|
25
|
+
default: c
|
|
26
|
+
}, [l]);
|
|
27
|
+
export {
|
|
28
|
+
b as p
|
|
29
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { g as l } from "./index-Dm0akurK.js";
|
|
2
|
+
function p(e, t) {
|
|
3
|
+
for (var r = 0; r < t.length; r++) {
|
|
4
|
+
const n = t[r];
|
|
5
|
+
if (typeof n != "string" && !Array.isArray(n)) {
|
|
6
|
+
for (const a in n)
|
|
7
|
+
if (a !== "default" && !(a in e)) {
|
|
8
|
+
const s = Object.getOwnPropertyDescriptor(n, a);
|
|
9
|
+
s && Object.defineProperty(e, a, s.get ? s : {
|
|
10
|
+
enumerable: !0,
|
|
11
|
+
get: () => n[a]
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
return Object.freeze(Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }));
|
|
17
|
+
}
|
|
18
|
+
var i = {}, u;
|
|
19
|
+
function c() {
|
|
20
|
+
return u || (u = 1, (function(e) {
|
|
21
|
+
for (var t = "/\\*(?:[^*/]|\\*(?!/)|/(?!\\*)|<self>)*\\*/", r = 0; r < 2; r++) t = t.replace(/<self>/g, (function() {
|
|
22
|
+
return t;
|
|
23
|
+
}));
|
|
24
|
+
t = t.replace(/<self>/g, (function() {
|
|
25
|
+
return "[^\\s\\S]";
|
|
26
|
+
})), e.languages.rust = { comment: [{ pattern: RegExp("(^|[^\\\\])" + t), lookbehind: !0, greedy: !0 }, { pattern: /(^|[^\\:])\/\/.*/, lookbehind: !0, greedy: !0 }], string: { pattern: /b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/, greedy: !0 }, char: { pattern: /b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/, greedy: !0 }, attribute: { pattern: /#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/, greedy: !0, alias: "attr-name", inside: { string: null } }, "closure-params": { pattern: /([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/, lookbehind: !0, greedy: !0, inside: { "closure-punctuation": { pattern: /^\||\|$/, alias: "punctuation" }, rest: null } }, "lifetime-annotation": { pattern: /'\w+/, alias: "symbol" }, "fragment-specifier": { pattern: /(\$\w+:)[a-z]+/, lookbehind: !0, alias: "punctuation" }, variable: /\$\w+/, "function-definition": { pattern: /(\bfn\s+)\w+/, lookbehind: !0, alias: "function" }, "type-definition": { pattern: /(\b(?:enum|struct|trait|type|union)\s+)\w+/, lookbehind: !0, alias: "class-name" }, "module-declaration": [{ pattern: /(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/, lookbehind: !0, alias: "namespace" }, { pattern: /(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/, lookbehind: !0, alias: "namespace", inside: { punctuation: /::/ } }], keyword: [/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/, /\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/], function: /\b[a-z_]\w*(?=\s*(?:::\s*<|\())/, macro: { pattern: /\b\w+!/, alias: "property" }, constant: /\b[A-Z_][A-Z_\d]+\b/, "class-name": /\b[A-Z]\w*\b/, namespace: { pattern: /(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/, inside: { punctuation: /::/ } }, number: /\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/, boolean: /\b(?:false|true)\b/, punctuation: /->|\.\.=|\.{1,3}|::|[{}[\];(),:]/, operator: /[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/ }, e.languages.rust["closure-params"].inside.rest = e.languages.rust, e.languages.rust.attribute.inside.string = e.languages.rust.string;
|
|
27
|
+
})(Prism)), i;
|
|
28
|
+
}
|
|
29
|
+
var o = c();
|
|
30
|
+
const d = /* @__PURE__ */ l(o), f = /* @__PURE__ */ p({
|
|
31
|
+
__proto__: null,
|
|
32
|
+
default: d
|
|
33
|
+
}, [o]);
|
|
34
|
+
export {
|
|
35
|
+
f as p
|
|
36
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { g as u } from "./index-Dm0akurK.js";
|
|
2
|
+
function p(s, n) {
|
|
3
|
+
for (var t = 0; t < n.length; t++) {
|
|
4
|
+
const e = n[t];
|
|
5
|
+
if (typeof e != "string" && !Array.isArray(e)) {
|
|
6
|
+
for (const r in e)
|
|
7
|
+
if (r !== "default" && !(r in s)) {
|
|
8
|
+
const a = Object.getOwnPropertyDescriptor(e, r);
|
|
9
|
+
a && Object.defineProperty(s, r, a.get ? a : {
|
|
10
|
+
enumerable: !0,
|
|
11
|
+
get: () => e[r]
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
return Object.freeze(Object.defineProperty(s, Symbol.toStringTag, { value: "Module" }));
|
|
17
|
+
}
|
|
18
|
+
var i = {}, o;
|
|
19
|
+
function c() {
|
|
20
|
+
return o || (o = 1, Prism.languages.scss = Prism.languages.extend("css", { comment: { pattern: /(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/, lookbehind: !0 }, atrule: { pattern: /@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/, inside: { rule: /@[\w-]+/ } }, url: /(?:[-a-z]+-)?url(?=\()/i, selector: { pattern: /(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/, inside: { parent: { pattern: /&/, alias: "important" }, placeholder: /%[-\w]+/, variable: /\$[-\w]+|#\{\$[-\w]+\}/ } }, property: { pattern: /(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/, inside: { variable: /\$[-\w]+|#\{\$[-\w]+\}/ } } }), Prism.languages.insertBefore("scss", "atrule", { keyword: [/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i, { pattern: /( )(?:from|through)(?= )/, lookbehind: !0 }] }), Prism.languages.insertBefore("scss", "important", { variable: /\$[-\w]+|#\{\$[-\w]+\}/ }), Prism.languages.insertBefore("scss", "function", { "module-modifier": { pattern: /\b(?:as|hide|show|with)\b/i, alias: "keyword" }, placeholder: { pattern: /%[-\w]+/, alias: "selector" }, statement: { pattern: /\B!(?:default|optional)\b/i, alias: "keyword" }, boolean: /\b(?:false|true)\b/, null: { pattern: /\bnull\b/, alias: "keyword" }, operator: { pattern: /(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/, lookbehind: !0 } }), Prism.languages.scss.atrule.inside.rest = Prism.languages.scss), i;
|
|
21
|
+
}
|
|
22
|
+
var l = c();
|
|
23
|
+
const m = /* @__PURE__ */ u(l), f = /* @__PURE__ */ p({
|
|
24
|
+
__proto__: null,
|
|
25
|
+
default: m
|
|
26
|
+
}, [l]);
|
|
27
|
+
export {
|
|
28
|
+
f as p
|
|
29
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { g as c } from "./index-Dm0akurK.js";
|
|
2
|
+
function u(e, t) {
|
|
3
|
+
for (var n = 0; n < t.length; n++) {
|
|
4
|
+
const r = t[n];
|
|
5
|
+
if (typeof r != "string" && !Array.isArray(r)) {
|
|
6
|
+
for (const s in r)
|
|
7
|
+
if (s !== "default" && !(s in e)) {
|
|
8
|
+
const a = Object.getOwnPropertyDescriptor(r, s);
|
|
9
|
+
a && Object.defineProperty(e, s, a.get ? a : {
|
|
10
|
+
enumerable: !0,
|
|
11
|
+
get: () => r[s]
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
return Object.freeze(Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }));
|
|
17
|
+
}
|
|
18
|
+
var i = {}, p;
|
|
19
|
+
function l() {
|
|
20
|
+
return p || (p = 1, (function(e) {
|
|
21
|
+
e.languages.typescript = e.languages.extend("javascript", { "class-name": { pattern: /(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/, lookbehind: !0, greedy: !0, inside: null }, builtin: /\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/ }), e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/, /\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/, /\btype\b(?=\s*(?:[\{*]|$))/), delete e.languages.typescript.parameter, delete e.languages.typescript["literal-property"];
|
|
22
|
+
var t = e.languages.extend("typescript", {});
|
|
23
|
+
delete t["class-name"], e.languages.typescript["class-name"].inside = t, e.languages.insertBefore("typescript", "function", { decorator: { pattern: /@[$\w\xA0-\uFFFF]+/, inside: { at: { pattern: /^@/, alias: "operator" }, function: /^[\s\S]+/ } }, "generic-function": { pattern: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/, greedy: !0, inside: { function: /^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/, generic: { pattern: /<[\s\S]+/, alias: "class-name", inside: t } } } }), e.languages.ts = e.languages.typescript;
|
|
24
|
+
})(Prism)), i;
|
|
25
|
+
}
|
|
26
|
+
var o = l();
|
|
27
|
+
const g = /* @__PURE__ */ c(o), F = /* @__PURE__ */ u({
|
|
28
|
+
__proto__: null,
|
|
29
|
+
default: g
|
|
30
|
+
}, [o]);
|
|
31
|
+
export {
|
|
32
|
+
F as p
|
|
33
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
(function(r) {
|
|
2
|
+
var t = /[*&][^\s[\]{},]+/, n = /!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/, a = "(?:" + n.source + "(?:[ ]+" + t.source + ")?|" + t.source + "(?:[ ]+" + n.source + ")?)", o = "(?:[^\\s\\x00-\\x08\\x0e-\\x1f!\"#%&'*,\\-:>?@[\\]`{|}\\x7f-\\x84\\x86-\\x9f\\ud800-\\udfff\\ufffe\\uffff]|[?:-]<PLAIN>)(?:[ ]*(?:(?![#:])<PLAIN>|:<PLAIN>))*".replace(/<PLAIN>/g, (function() {
|
|
3
|
+
return "[^\\s\\x00-\\x08\\x0e-\\x1f,[\\]{}\\x7f-\\x84\\x86-\\x9f\\ud800-\\udfff\\ufffe\\uffff]";
|
|
4
|
+
})), d = `"(?:[^"\\\\\r
|
|
5
|
+
]|\\\\.)*"|'(?:[^'\\\\\r
|
|
6
|
+
]|\\\\.)*'`;
|
|
7
|
+
function e(f, u) {
|
|
8
|
+
u = (u || "").replace(/m/g, "") + "m";
|
|
9
|
+
var i = `([:\\-,[{]\\s*(?:\\s<<prop>>[ ]+)?)(?:<<value>>)(?=[ ]*(?:$|,|\\]|\\}|(?:[\r
|
|
10
|
+
]\\s*)?#))`.replace(/<<prop>>/g, (function() {
|
|
11
|
+
return a;
|
|
12
|
+
})).replace(/<<value>>/g, (function() {
|
|
13
|
+
return f;
|
|
14
|
+
}));
|
|
15
|
+
return RegExp(i, u);
|
|
16
|
+
}
|
|
17
|
+
r.languages.yaml = { scalar: { pattern: RegExp(`([\\-:]\\s*(?:\\s<<prop>>[ ]+)?[|>])[ ]*(?:((?:\r?
|
|
18
|
+
|\r)[ ]+)\\S[^\r
|
|
19
|
+
]*(?:\\2[^\r
|
|
20
|
+
]+)*)`.replace(/<<prop>>/g, (function() {
|
|
21
|
+
return a;
|
|
22
|
+
}))), lookbehind: !0, alias: "string" }, comment: /#.*/, key: { pattern: RegExp(`((?:^|[:\\-,[{\r
|
|
23
|
+
?])[ ]*(?:<<prop>>[ ]+)?)<<key>>(?=\\s*:\\s)`.replace(/<<prop>>/g, (function() {
|
|
24
|
+
return a;
|
|
25
|
+
})).replace(/<<key>>/g, (function() {
|
|
26
|
+
return "(?:" + o + "|" + d + ")";
|
|
27
|
+
}))), lookbehind: !0, greedy: !0, alias: "atrule" }, directive: { pattern: /(^[ \t]*)%.+/m, lookbehind: !0, alias: "important" }, datetime: { pattern: e("\\d{4}-\\d\\d?-\\d\\d?(?:[tT]|[ ]+)\\d\\d?:\\d{2}:\\d{2}(?:\\.\\d*)?(?:[ ]*(?:Z|[-+]\\d\\d?(?::\\d{2})?))?|\\d{4}-\\d{2}-\\d{2}|\\d\\d?:\\d{2}(?::\\d{2}(?:\\.\\d*)?)?"), lookbehind: !0, alias: "number" }, boolean: { pattern: e("false|true", "i"), lookbehind: !0, alias: "important" }, null: { pattern: e("null|~", "i"), lookbehind: !0, alias: "important" }, string: { pattern: e(d), lookbehind: !0, greedy: !0 }, number: { pattern: e("[+-]?(?:0x[\\da-f]+|0o[0-7]+|(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:e[+-]?\\d+)?|\\.inf|\\.nan)", "i"), lookbehind: !0 }, tag: n, important: t, punctuation: /---|[:[\]{}\-,|>?]|\.\.\./ }, r.languages.yml = r.languages.yaml;
|
|
28
|
+
})(Prism);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kong-ui-public/document-viewer",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/document-viewer.umd.js",
|
|
6
6
|
"module": "./dist/document-viewer.es.js",
|
|
@@ -23,15 +23,15 @@
|
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"@kong/kongponents": "^9.59.0",
|
|
25
25
|
"vue": ">= 3.3.13 < 4",
|
|
26
|
-
"@kong-ui-public/i18n": "^2.
|
|
26
|
+
"@kong-ui-public/i18n": "^2.5.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@kong/design-tokens": "2.0.1",
|
|
30
|
-
"@kong/kongponents": "9.60.
|
|
30
|
+
"@kong/kongponents": "9.60.7",
|
|
31
31
|
"@types/prismjs": "^1.26.6",
|
|
32
32
|
"@vitejs/plugin-vue-jsx": "^4.2.0",
|
|
33
33
|
"vue": "^3.5.35",
|
|
34
|
-
"@kong-ui-public/i18n": "^2.
|
|
34
|
+
"@kong-ui-public/i18n": "^2.5.0"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"prismjs": "^1.30.0"
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
(function(r) {
|
|
2
|
-
var t = "\\\\\\((?:[^()]|\\([^()]*\\))*\\)", n = RegExp(`(^|[^\\\\])"(?:[^"\r
|
|
3
|
-
\\\\]|\\\\[^\r
|
|
4
|
-
(]|__)*"`.replace(/__/g, function() {
|
|
5
|
-
return t;
|
|
6
|
-
})), e = { interpolation: { pattern: RegExp("((?:^|[^\\\\])(?:\\\\{2})*)" + t), lookbehind: !0, inside: { content: { pattern: /^(\\\()[\s\S]+(?=\)$)/, lookbehind: !0, inside: null }, punctuation: /^\\\(|\)$/ } } }, i = r.languages.jq = { comment: /#.*/, property: { pattern: RegExp(n.source + "(?=\\s*:(?!:))"), lookbehind: !0, greedy: !0, inside: e }, string: { pattern: n, lookbehind: !0, greedy: !0, inside: e }, function: { pattern: /(\bdef\s+)[a-z_]\w+/i, lookbehind: !0 }, variable: /\B\$\w+/, "property-literal": { pattern: /\b[a-z_]\w*(?=\s*:(?!:))/i, alias: "property" }, keyword: /\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/, boolean: /\b(?:false|true)\b/, number: /(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/, operator: [{ pattern: /\|=?/, alias: "pipe" }, /\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/], "c-style-function": { pattern: /\b[a-z_]\w*(?=\s*\()/i, alias: "function" }, punctuation: /::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/, dot: { pattern: /\./, alias: "important" } };
|
|
7
|
-
e.interpolation.inside.content.inside = i;
|
|
8
|
-
})(Prism);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
Prism.languages.python = { comment: { pattern: /(^|[^\\])#.*/, lookbehind: !0, greedy: !0 }, "string-interpolation": { pattern: /(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i, greedy: !0, inside: { interpolation: { pattern: /((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/, lookbehind: !0, inside: { "format-spec": { pattern: /(:)[^:(){}]+(?=\}$)/, lookbehind: !0 }, "conversion-option": { pattern: //, alias: "punctuation" }, rest: null } }, string: /[\s\S]+/ } }, "triple-quoted-string": { pattern: /(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i, greedy: !0, alias: "string" }, string: { pattern: /(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i, greedy: !0 }, function: { pattern: /((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g, lookbehind: !0 }, "class-name": { pattern: /(\bclass\s+)\w+/i, lookbehind: !0 }, decorator: { pattern: /(^[\t ]*)@\w+(?:\.\w+)*/m, lookbehind: !0, alias: ["annotation", "punctuation"], inside: { punctuation: /\./ } }, keyword: /\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/, builtin: /\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/, boolean: /\b(?:False|None|True)\b/, number: /\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i, operator: /[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/, punctuation: /[{}[\];(),.:]/ }, Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest = Prism.languages.python, Prism.languages.py = Prism.languages.python;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
(function(t) {
|
|
2
|
-
for (var e = "/\\*(?:[^*/]|\\*(?!/)|/(?!\\*)|<self>)*\\*/", a = 0; a < 2; a++) e = e.replace(/<self>/g, function() {
|
|
3
|
-
return e;
|
|
4
|
-
});
|
|
5
|
-
e = e.replace(/<self>/g, function() {
|
|
6
|
-
return "[^\\s\\S]";
|
|
7
|
-
}), t.languages.rust = { comment: [{ pattern: RegExp("(^|[^\\\\])" + e), lookbehind: !0, greedy: !0 }, { pattern: /(^|[^\\:])\/\/.*/, lookbehind: !0, greedy: !0 }], string: { pattern: /b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/, greedy: !0 }, char: { pattern: /b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/, greedy: !0 }, attribute: { pattern: /#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/, greedy: !0, alias: "attr-name", inside: { string: null } }, "closure-params": { pattern: /([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/, lookbehind: !0, greedy: !0, inside: { "closure-punctuation": { pattern: /^\||\|$/, alias: "punctuation" }, rest: null } }, "lifetime-annotation": { pattern: /'\w+/, alias: "symbol" }, "fragment-specifier": { pattern: /(\$\w+:)[a-z]+/, lookbehind: !0, alias: "punctuation" }, variable: /\$\w+/, "function-definition": { pattern: /(\bfn\s+)\w+/, lookbehind: !0, alias: "function" }, "type-definition": { pattern: /(\b(?:enum|struct|trait|type|union)\s+)\w+/, lookbehind: !0, alias: "class-name" }, "module-declaration": [{ pattern: /(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/, lookbehind: !0, alias: "namespace" }, { pattern: /(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/, lookbehind: !0, alias: "namespace", inside: { punctuation: /::/ } }], keyword: [/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/, /\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/], function: /\b[a-z_]\w*(?=\s*(?:::\s*<|\())/, macro: { pattern: /\b\w+!/, alias: "property" }, constant: /\b[A-Z_][A-Z_\d]+\b/, "class-name": /\b[A-Z]\w*\b/, namespace: { pattern: /(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/, inside: { punctuation: /::/ } }, number: /\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/, boolean: /\b(?:false|true)\b/, punctuation: /->|\.\.=|\.{1,3}|::|[{}[\];(),:]/, operator: /[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/ }, t.languages.rust["closure-params"].inside.rest = t.languages.rust, t.languages.rust.attribute.inside.string = t.languages.rust.string;
|
|
8
|
-
})(Prism);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
Prism.languages.scss = Prism.languages.extend("css", { comment: { pattern: /(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/, lookbehind: !0 }, atrule: { pattern: /@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/, inside: { rule: /@[\w-]+/ } }, url: /(?:[-a-z]+-)?url(?=\()/i, selector: { pattern: /(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/, inside: { parent: { pattern: /&/, alias: "important" }, placeholder: /%[-\w]+/, variable: /\$[-\w]+|#\{\$[-\w]+\}/ } }, property: { pattern: /(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/, inside: { variable: /\$[-\w]+|#\{\$[-\w]+\}/ } } }), Prism.languages.insertBefore("scss", "atrule", { keyword: [/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i, { pattern: /( )(?:from|through)(?= )/, lookbehind: !0 }] }), Prism.languages.insertBefore("scss", "important", { variable: /\$[-\w]+|#\{\$[-\w]+\}/ }), Prism.languages.insertBefore("scss", "function", { "module-modifier": { pattern: /\b(?:as|hide|show|with)\b/i, alias: "keyword" }, placeholder: { pattern: /%[-\w]+/, alias: "selector" }, statement: { pattern: /\B!(?:default|optional)\b/i, alias: "keyword" }, boolean: /\b(?:false|true)\b/, null: { pattern: /\bnull\b/, alias: "keyword" }, operator: { pattern: /(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/, lookbehind: !0 } }), Prism.languages.scss.atrule.inside.rest = Prism.languages.scss;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
(function(e) {
|
|
2
|
-
e.languages.typescript = e.languages.extend("javascript", { "class-name": { pattern: /(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/, lookbehind: !0, greedy: !0, inside: null }, builtin: /\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/ }), e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/, /\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/, /\btype\b(?=\s*(?:[\{*]|$))/), delete e.languages.typescript.parameter, delete e.languages.typescript["literal-property"];
|
|
3
|
-
var s = e.languages.extend("typescript", {});
|
|
4
|
-
delete s["class-name"], e.languages.typescript["class-name"].inside = s, e.languages.insertBefore("typescript", "function", { decorator: { pattern: /@[$\w\xA0-\uFFFF]+/, inside: { at: { pattern: /^@/, alias: "operator" }, function: /^[\s\S]+/ } }, "generic-function": { pattern: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/, greedy: !0, inside: { function: /^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/, generic: { pattern: /<[\s\S]+/, alias: "class-name", inside: s } } } }), e.languages.ts = e.languages.typescript;
|
|
5
|
-
})(Prism);
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
(function(r) {
|
|
2
|
-
var t = /[*&][^\s[\]{},]+/, n = /!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/, a = "(?:" + n.source + "(?:[ ]+" + t.source + ")?|" + t.source + "(?:[ ]+" + n.source + ")?)", o = "(?:[^\\s\\x00-\\x08\\x0e-\\x1f!\"#%&'*,\\-:>?@[\\]`{|}\\x7f-\\x84\\x86-\\x9f\\ud800-\\udfff\\ufffe\\uffff]|[?:-]<PLAIN>)(?:[ ]*(?:(?![#:])<PLAIN>|:<PLAIN>))*".replace(/<PLAIN>/g, function() {
|
|
3
|
-
return "[^\\s\\x00-\\x08\\x0e-\\x1f,[\\]{}\\x7f-\\x84\\x86-\\x9f\\ud800-\\udfff\\ufffe\\uffff]";
|
|
4
|
-
}), d = `"(?:[^"\\\\\r
|
|
5
|
-
]|\\\\.)*"|'(?:[^'\\\\\r
|
|
6
|
-
]|\\\\.)*'`;
|
|
7
|
-
function e(f, u) {
|
|
8
|
-
u = (u || "").replace(/m/g, "") + "m";
|
|
9
|
-
var i = `([:\\-,[{]\\s*(?:\\s<<prop>>[ ]+)?)(?:<<value>>)(?=[ ]*(?:$|,|\\]|\\}|(?:[\r
|
|
10
|
-
]\\s*)?#))`.replace(/<<prop>>/g, function() {
|
|
11
|
-
return a;
|
|
12
|
-
}).replace(/<<value>>/g, function() {
|
|
13
|
-
return f;
|
|
14
|
-
});
|
|
15
|
-
return RegExp(i, u);
|
|
16
|
-
}
|
|
17
|
-
r.languages.yaml = { scalar: { pattern: RegExp(`([\\-:]\\s*(?:\\s<<prop>>[ ]+)?[|>])[ ]*(?:((?:\r?
|
|
18
|
-
|\r)[ ]+)\\S[^\r
|
|
19
|
-
]*(?:\\2[^\r
|
|
20
|
-
]+)*)`.replace(/<<prop>>/g, function() {
|
|
21
|
-
return a;
|
|
22
|
-
})), lookbehind: !0, alias: "string" }, comment: /#.*/, key: { pattern: RegExp(`((?:^|[:\\-,[{\r
|
|
23
|
-
?])[ ]*(?:<<prop>>[ ]+)?)<<key>>(?=\\s*:\\s)`.replace(/<<prop>>/g, function() {
|
|
24
|
-
return a;
|
|
25
|
-
}).replace(/<<key>>/g, function() {
|
|
26
|
-
return "(?:" + o + "|" + d + ")";
|
|
27
|
-
})), lookbehind: !0, greedy: !0, alias: "atrule" }, directive: { pattern: /(^[ \t]*)%.+/m, lookbehind: !0, alias: "important" }, datetime: { pattern: e("\\d{4}-\\d\\d?-\\d\\d?(?:[tT]|[ ]+)\\d\\d?:\\d{2}:\\d{2}(?:\\.\\d*)?(?:[ ]*(?:Z|[-+]\\d\\d?(?::\\d{2})?))?|\\d{4}-\\d{2}-\\d{2}|\\d\\d?:\\d{2}(?::\\d{2}(?:\\.\\d*)?)?"), lookbehind: !0, alias: "number" }, boolean: { pattern: e("false|true", "i"), lookbehind: !0, alias: "important" }, null: { pattern: e("null|~", "i"), lookbehind: !0, alias: "important" }, string: { pattern: e(d), lookbehind: !0, greedy: !0 }, number: { pattern: e("[+-]?(?:0x[\\da-f]+|0o[0-7]+|(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:e[+-]?\\d+)?|\\.inf|\\.nan)", "i"), lookbehind: !0 }, tag: n, important: t, punctuation: /---|[:[\]{}\-,|>?]|\.\.\./ }, r.languages.yml = r.languages.yaml;
|
|
28
|
-
})(Prism);
|