@box/box-ai-content-answers 2.0.0 → 2.1.2
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/chunks/answer.js +1 -1
- package/dist/chunks/markdown.js +337 -379
- package/dist/esm/lib/components/sidebar/context.js +1 -1
- package/package.json +11 -11
package/dist/chunks/markdown.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isBoxDomain as e } from "../esm/lib/utils/inlineCitationsUtils.js";
|
|
2
2
|
import { t } from "./markdown.module.js";
|
|
3
3
|
import { Remarkable as n } from "remarkable";
|
|
4
|
-
import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty, a = Object.getOwnPropertyDescriptor, o = Object.getOwnPropertyNames, s = Object.getPrototypeOf, c = Object.prototype.hasOwnProperty, l = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), u = (e, t, n, r) => {
|
|
4
|
+
import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty, a = Object.getOwnPropertyDescriptor, o = Object.getOwnPropertyNames, s = Object.getPrototypeOf, c = Object.prototype.hasOwnProperty, l = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), u = (e, t, n, r) => {
|
|
5
5
|
if (t && typeof t == "object" || typeof t == "function") for (var s = o(t), l = 0, u = s.length, d; l < u; l++) d = s[l], !c.call(e, d) && d !== n && i(e, d, {
|
|
6
6
|
get: ((e) => t[e]).bind(null, d),
|
|
7
7
|
enumerable: !(r = a(t, d)) || r.enumerable
|
|
@@ -219,49 +219,24 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
219
219
|
});
|
|
220
220
|
let i = y("I", "a", "is", "so", "us", "to", "at", "if", "in", "it", "on", /[A-Za-z]+['](d|ve|re|ll|t|s|n)/, /[A-Za-z]+[-][a-z]+/, /[A-Za-z][a-z]{2,}/);
|
|
221
221
|
return r.contains.push({ begin: _(/[ ]+/, "(", i, /[.]?[:]?([.][ ]|[ ])/, "){3}") }), r;
|
|
222
|
-
}, L = I("//", "$"), R = I("/\\*", "\\*/"), z = I("#", "$"), B = {
|
|
223
|
-
scope: "number",
|
|
224
|
-
begin: D,
|
|
225
|
-
relevance: 0
|
|
226
|
-
}, V = {
|
|
227
|
-
scope: "number",
|
|
228
|
-
begin: O,
|
|
229
|
-
relevance: 0
|
|
230
|
-
}, ee = {
|
|
231
|
-
scope: "number",
|
|
232
|
-
begin: k,
|
|
233
|
-
relevance: 0
|
|
234
|
-
}, H = {
|
|
235
|
-
scope: "regexp",
|
|
236
|
-
begin: /\/(?=[^/\n]*\/)/,
|
|
237
|
-
end: /\/[gimuy]*/,
|
|
238
|
-
contains: [M, {
|
|
239
|
-
begin: /\[/,
|
|
240
|
-
end: /\]/,
|
|
241
|
-
relevance: 0,
|
|
242
|
-
contains: [M]
|
|
243
|
-
}]
|
|
244
|
-
}, U = {
|
|
245
|
-
scope: "title",
|
|
246
|
-
begin: T,
|
|
247
|
-
relevance: 0
|
|
248
|
-
}, W = {
|
|
249
|
-
scope: "title",
|
|
250
|
-
begin: E,
|
|
251
|
-
relevance: 0
|
|
252
|
-
}, G = {
|
|
253
|
-
begin: "\\.\\s*" + E,
|
|
254
|
-
relevance: 0
|
|
255
|
-
}, K = /* @__PURE__ */ Object.freeze({
|
|
222
|
+
}, L = I("//", "$"), R = I("/\\*", "\\*/"), z = I("#", "$"), B = /*#__PURE__*/ Object.freeze({
|
|
256
223
|
__proto__: null,
|
|
257
224
|
APOS_STRING_MODE: N,
|
|
258
225
|
BACKSLASH_ESCAPE: M,
|
|
259
|
-
BINARY_NUMBER_MODE:
|
|
226
|
+
BINARY_NUMBER_MODE: {
|
|
227
|
+
scope: "number",
|
|
228
|
+
begin: k,
|
|
229
|
+
relevance: 0
|
|
230
|
+
},
|
|
260
231
|
BINARY_NUMBER_RE: k,
|
|
261
232
|
COMMENT: I,
|
|
262
233
|
C_BLOCK_COMMENT_MODE: R,
|
|
263
234
|
C_LINE_COMMENT_MODE: L,
|
|
264
|
-
C_NUMBER_MODE:
|
|
235
|
+
C_NUMBER_MODE: {
|
|
236
|
+
scope: "number",
|
|
237
|
+
begin: O,
|
|
238
|
+
relevance: 0
|
|
239
|
+
},
|
|
265
240
|
C_NUMBER_RE: O,
|
|
266
241
|
END_SAME_AS_BEGIN: function(e) {
|
|
267
242
|
return Object.assign(e, {
|
|
@@ -276,28 +251,53 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
276
251
|
HASH_COMMENT_MODE: z,
|
|
277
252
|
IDENT_RE: T,
|
|
278
253
|
MATCH_NOTHING_RE: w,
|
|
279
|
-
METHOD_GUARD:
|
|
280
|
-
|
|
254
|
+
METHOD_GUARD: {
|
|
255
|
+
begin: "\\.\\s*[a-zA-Z_]\\w*",
|
|
256
|
+
relevance: 0
|
|
257
|
+
},
|
|
258
|
+
NUMBER_MODE: {
|
|
259
|
+
scope: "number",
|
|
260
|
+
begin: D,
|
|
261
|
+
relevance: 0
|
|
262
|
+
},
|
|
281
263
|
NUMBER_RE: D,
|
|
282
264
|
PHRASAL_WORDS_MODE: F,
|
|
283
265
|
QUOTE_STRING_MODE: P,
|
|
284
|
-
REGEXP_MODE:
|
|
266
|
+
REGEXP_MODE: {
|
|
267
|
+
scope: "regexp",
|
|
268
|
+
begin: /\/(?=[^/\n]*\/)/,
|
|
269
|
+
end: /\/[gimuy]*/,
|
|
270
|
+
contains: [M, {
|
|
271
|
+
begin: /\[/,
|
|
272
|
+
end: /\]/,
|
|
273
|
+
relevance: 0,
|
|
274
|
+
contains: [M]
|
|
275
|
+
}]
|
|
276
|
+
},
|
|
285
277
|
RE_STARTERS_RE: A,
|
|
286
278
|
SHEBANG: j,
|
|
287
|
-
TITLE_MODE:
|
|
279
|
+
TITLE_MODE: {
|
|
280
|
+
scope: "title",
|
|
281
|
+
begin: T,
|
|
282
|
+
relevance: 0
|
|
283
|
+
},
|
|
288
284
|
UNDERSCORE_IDENT_RE: E,
|
|
289
|
-
UNDERSCORE_TITLE_MODE:
|
|
285
|
+
UNDERSCORE_TITLE_MODE: {
|
|
286
|
+
scope: "title",
|
|
287
|
+
begin: E,
|
|
288
|
+
relevance: 0
|
|
289
|
+
}
|
|
290
290
|
});
|
|
291
|
-
function
|
|
291
|
+
function V(e, t) {
|
|
292
292
|
e.input[e.index - 1] === "." && t.ignoreMatch();
|
|
293
293
|
}
|
|
294
|
-
function
|
|
294
|
+
function ee(e, t) {
|
|
295
295
|
e.className !== void 0 && (e.scope = e.className, delete e.className);
|
|
296
296
|
}
|
|
297
|
-
function
|
|
298
|
-
t && e.beginKeywords && (e.begin = "\\b(" + e.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", e.__beforeBegin =
|
|
297
|
+
function H(e, t) {
|
|
298
|
+
t && e.beginKeywords && (e.begin = "\\b(" + e.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", e.__beforeBegin = V, e.keywords = e.keywords || e.beginKeywords, delete e.beginKeywords, e.relevance === void 0 && (e.relevance = 0));
|
|
299
299
|
}
|
|
300
|
-
function
|
|
300
|
+
function U(e, t) {
|
|
301
301
|
Array.isArray(e.illegal) && (e.illegal = y(...e.illegal));
|
|
302
302
|
}
|
|
303
303
|
function te(e, t) {
|
|
@@ -306,10 +306,10 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
306
306
|
e.begin = e.match, delete e.match;
|
|
307
307
|
}
|
|
308
308
|
}
|
|
309
|
-
function
|
|
309
|
+
function W(e, t) {
|
|
310
310
|
e.relevance === void 0 && (e.relevance = 1);
|
|
311
311
|
}
|
|
312
|
-
var
|
|
312
|
+
var G = (e, t) => {
|
|
313
313
|
if (!e.beforeMatch) return;
|
|
314
314
|
if (e.starts) throw Error("beforeMatch cannot be used with starts");
|
|
315
315
|
let n = Object.assign({}, e);
|
|
@@ -319,7 +319,7 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
319
319
|
relevance: 0,
|
|
320
320
|
contains: [Object.assign(n, { endsParent: !0 })]
|
|
321
321
|
}, e.relevance = 0, delete n.beforeMatch;
|
|
322
|
-
},
|
|
322
|
+
}, K = [
|
|
323
323
|
"of",
|
|
324
324
|
"and",
|
|
325
325
|
"for",
|
|
@@ -331,58 +331,58 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
331
331
|
"parent",
|
|
332
332
|
"list",
|
|
333
333
|
"value"
|
|
334
|
-
],
|
|
335
|
-
function
|
|
334
|
+
], q = "keyword";
|
|
335
|
+
function J(e, t, n = q) {
|
|
336
336
|
let r = Object.create(null);
|
|
337
337
|
return typeof e == "string" ? i(n, e.split(" ")) : Array.isArray(e) ? i(n, e) : Object.keys(e).forEach(function(n) {
|
|
338
|
-
Object.assign(r,
|
|
338
|
+
Object.assign(r, J(e[n], t, n));
|
|
339
339
|
}), r;
|
|
340
340
|
function i(e, n) {
|
|
341
341
|
t && (n = n.map((e) => e.toLowerCase())), n.forEach(function(t) {
|
|
342
342
|
let n = t.split("|");
|
|
343
|
-
r[n[0]] = [e,
|
|
343
|
+
r[n[0]] = [e, Y(n[0], n[1])];
|
|
344
344
|
});
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
|
-
function
|
|
348
|
-
return t ? Number(t) : +!
|
|
347
|
+
function Y(e, t) {
|
|
348
|
+
return t ? Number(t) : +!ne(e);
|
|
349
349
|
}
|
|
350
|
-
function
|
|
351
|
-
return
|
|
350
|
+
function ne(e) {
|
|
351
|
+
return K.includes(e.toLowerCase());
|
|
352
352
|
}
|
|
353
|
-
var
|
|
353
|
+
var re = {}, X = (e) => {
|
|
354
354
|
console.error(e);
|
|
355
|
-
},
|
|
355
|
+
}, ie = (e, ...t) => {
|
|
356
356
|
console.log(`WARN: ${e}`, ...t);
|
|
357
|
-
},
|
|
358
|
-
|
|
359
|
-
},
|
|
360
|
-
function
|
|
357
|
+
}, Z = (e, t) => {
|
|
358
|
+
re[`${e}/${t}`] || (console.log(`Deprecated as of ${e}. ${t}`), re[`${e}/${t}`] = !0);
|
|
359
|
+
}, Q = /* @__PURE__ */ Error();
|
|
360
|
+
function ae(e, t, { key: n }) {
|
|
361
361
|
let r = 0, i = e[n], a = {}, o = {};
|
|
362
362
|
for (let e = 1; e <= t.length; e++) o[e + r] = i[e], a[e + r] = !0, r += b(t[e - 1]);
|
|
363
363
|
e[n] = o, e[n]._emit = a, e[n]._multi = !0;
|
|
364
364
|
}
|
|
365
|
-
function
|
|
365
|
+
function oe(e) {
|
|
366
366
|
if (Array.isArray(e.begin)) {
|
|
367
|
-
if (e.skip || e.excludeBegin || e.returnBegin) throw
|
|
368
|
-
if (typeof e.beginScope != "object" || e.beginScope === null) throw
|
|
369
|
-
|
|
367
|
+
if (e.skip || e.excludeBegin || e.returnBegin) throw X("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), Q;
|
|
368
|
+
if (typeof e.beginScope != "object" || e.beginScope === null) throw X("beginScope must be object"), Q;
|
|
369
|
+
ae(e, e.begin, { key: "beginScope" }), e.begin = C(e.begin, { joinWith: "" });
|
|
370
370
|
}
|
|
371
371
|
}
|
|
372
|
-
function
|
|
372
|
+
function se(e) {
|
|
373
373
|
if (Array.isArray(e.end)) {
|
|
374
|
-
if (e.skip || e.excludeEnd || e.returnEnd) throw
|
|
375
|
-
if (typeof e.endScope != "object" || e.endScope === null) throw
|
|
376
|
-
|
|
374
|
+
if (e.skip || e.excludeEnd || e.returnEnd) throw X("skip, excludeEnd, returnEnd not compatible with endScope: {}"), Q;
|
|
375
|
+
if (typeof e.endScope != "object" || e.endScope === null) throw X("endScope must be object"), Q;
|
|
376
|
+
ae(e, e.end, { key: "endScope" }), e.end = C(e.end, { joinWith: "" });
|
|
377
377
|
}
|
|
378
378
|
}
|
|
379
|
-
function
|
|
379
|
+
function ce(e) {
|
|
380
380
|
e.scope && typeof e.scope == "object" && e.scope !== null && (e.beginScope = e.scope, delete e.scope);
|
|
381
381
|
}
|
|
382
|
-
function
|
|
383
|
-
|
|
382
|
+
function le(e) {
|
|
383
|
+
ce(e), typeof e.beginScope == "string" && (e.beginScope = { _wrap: e.beginScope }), typeof e.endScope == "string" && (e.endScope = { _wrap: e.endScope }), oe(e), se(e);
|
|
384
384
|
}
|
|
385
|
-
function
|
|
385
|
+
function ue(e) {
|
|
386
386
|
function t(t, n) {
|
|
387
387
|
return new RegExp(p(t), "m" + (e.case_insensitive ? "i" : "") + (e.unicodeRegex ? "u" : "") + (n ? "g" : ""));
|
|
388
388
|
}
|
|
@@ -394,7 +394,9 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
394
394
|
t.position = this.position++, this.matchIndexes[this.matchAt] = t, this.regexes.push([t, e]), this.matchAt += b(e) + 1;
|
|
395
395
|
}
|
|
396
396
|
compile() {
|
|
397
|
-
this.regexes.length === 0 && (this.exec = () => null)
|
|
397
|
+
this.regexes.length === 0 && (this.exec = () => null);
|
|
398
|
+
let e = this.regexes.map((e) => e[1]);
|
|
399
|
+
this.matcherRe = t(C(e, { joinWith: "|" }), !0), this.lastIndex = 0;
|
|
398
400
|
}
|
|
399
401
|
exec(e) {
|
|
400
402
|
this.matcherRe.lastIndex = this.lastIndex;
|
|
@@ -444,18 +446,18 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
444
446
|
let a = n;
|
|
445
447
|
if (n.isCompiled) return a;
|
|
446
448
|
[
|
|
447
|
-
|
|
449
|
+
ee,
|
|
448
450
|
te,
|
|
449
|
-
|
|
450
|
-
|
|
451
|
+
le,
|
|
452
|
+
G
|
|
451
453
|
].forEach((e) => e(n, r)), e.compilerExtensions.forEach((e) => e(n, r)), n.__beforeBegin = null, [
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
454
|
+
H,
|
|
455
|
+
U,
|
|
456
|
+
W
|
|
455
457
|
].forEach((e) => e(n, r)), n.isCompiled = !0;
|
|
456
458
|
let s = null;
|
|
457
|
-
return typeof n.keywords == "object" && n.keywords.$pattern && (n.keywords = Object.assign({}, n.keywords), s = n.keywords.$pattern, delete n.keywords.$pattern), s ||= /\w+/, n.keywords &&=
|
|
458
|
-
return
|
|
459
|
+
return typeof n.keywords == "object" && n.keywords.$pattern && (n.keywords = Object.assign({}, n.keywords), s = n.keywords.$pattern, delete n.keywords.$pattern), s ||= /\w+/, n.keywords &&= J(n.keywords, e.case_insensitive), a.keywordPatternRe = t(s, !0), r && (n.begin ||= /\B|\b/, a.beginRe = t(a.begin), !n.end && !n.endsWithParent && (n.end = /\B|\b/), n.end && (a.endRe = t(a.end)), a.terminatorEnd = p(a.end) || "", n.endsWithParent && r.terminatorEnd && (a.terminatorEnd += (n.end ? "|" : "") + r.terminatorEnd)), n.illegal && (a.illegalRe = t(n.illegal)), n.contains ||= [], n.contains = [].concat(...n.contains.map(function(e) {
|
|
460
|
+
return fe(e === "self" ? n : e);
|
|
459
461
|
})), n.contains.forEach(function(e) {
|
|
460
462
|
o(e, a);
|
|
461
463
|
}), n.starts && o(n.starts, r), a.matcher = i(a), a;
|
|
@@ -463,19 +465,19 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
463
465
|
if (e.compilerExtensions ||= [], e.contains && e.contains.includes("self")) throw Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");
|
|
464
466
|
return e.classNameAliases = a(e.classNameAliases || {}), o(e);
|
|
465
467
|
}
|
|
466
|
-
function
|
|
467
|
-
return e ? e.endsWithParent ||
|
|
468
|
+
function de(e) {
|
|
469
|
+
return e ? e.endsWithParent || de(e.starts) : !1;
|
|
468
470
|
}
|
|
469
|
-
function
|
|
471
|
+
function fe(e) {
|
|
470
472
|
return e.variants && !e.cachedVariants && (e.cachedVariants = e.variants.map(function(t) {
|
|
471
473
|
return a(e, { variants: null }, t);
|
|
472
|
-
})), e.cachedVariants ? e.cachedVariants :
|
|
474
|
+
})), e.cachedVariants ? e.cachedVariants : de(e) ? a(e, { starts: e.starts ? a(e.starts) : null }) : Object.isFrozen(e) ? a(e) : e;
|
|
473
475
|
}
|
|
474
|
-
var
|
|
476
|
+
var pe = "11.11.1", me = class extends Error {
|
|
475
477
|
constructor(e, t) {
|
|
476
478
|
super(e), this.name = "HTMLInjectionError", this.html = t;
|
|
477
479
|
}
|
|
478
|
-
},
|
|
480
|
+
}, he = i, ge = a, _e = Symbol("nomatch"), ve = 7, ye = function(e) {
|
|
479
481
|
let t = Object.create(null), i = Object.create(null), a = [], o = !0, s = "Could not find the language '{}', did you forget to load/include a language module?", c = {
|
|
480
482
|
disableAutodetect: !0,
|
|
481
483
|
name: "Plain text",
|
|
@@ -499,13 +501,13 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
499
501
|
let n = l.languageDetectRe.exec(t);
|
|
500
502
|
if (n) {
|
|
501
503
|
let t = N(n[1]);
|
|
502
|
-
return t || (
|
|
504
|
+
return t || (ie(s.replace("{}", n[1])), ie("Falling back to no-highlight mode for this block.", e)), t ? n[1] : "no-highlight";
|
|
503
505
|
}
|
|
504
506
|
return t.split(/\s+/).find((e) => u(e) || N(e));
|
|
505
507
|
}
|
|
506
508
|
function p(e, t, n) {
|
|
507
509
|
let r = "", i = "";
|
|
508
|
-
typeof t == "object" ? (r = e, n = t.ignoreIllegals, i = t.language) : (
|
|
510
|
+
typeof t == "object" ? (r = e, n = t.ignoreIllegals, i = t.language) : (Z("10.7.0", "highlight(lang, code, ...args) has been deprecated."), Z("10.7.0", "Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"), i = e, r = t), n === void 0 && (n = !0);
|
|
509
511
|
let a = {
|
|
510
512
|
code: r,
|
|
511
513
|
language: i
|
|
@@ -532,7 +534,7 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
532
534
|
let r = D.case_insensitive ? t[0].toLowerCase() : t[0], i = u(A, r);
|
|
533
535
|
if (i) {
|
|
534
536
|
let [e, a] = i;
|
|
535
|
-
if (M.addText(n), n = "", c[r] = (c[r] || 0) + 1, c[r] <=
|
|
537
|
+
if (M.addText(n), n = "", c[r] = (c[r] || 0) + 1, c[r] <= ve && (F += a), e.startsWith("_")) n += t[0];
|
|
536
538
|
else {
|
|
537
539
|
let n = D.classNameAliases[e] || e;
|
|
538
540
|
m(t[0], n);
|
|
@@ -598,7 +600,7 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
598
600
|
}
|
|
599
601
|
function C(e) {
|
|
600
602
|
let t = e[0], r = n.substring(e.index), i = _(A, e, r);
|
|
601
|
-
if (!i) return
|
|
603
|
+
if (!i) return _e;
|
|
602
604
|
let a = A;
|
|
603
605
|
A.endScope && A.endScope._wrap ? (p(), m(t, A.endScope._wrap)) : A.endScope && A.endScope._multi ? (p(), h(A.endScope, e)) : a.skip ? P += t : (a.returnEnd || a.excludeEnd || (P += t), p(), a.excludeEnd && (P = t));
|
|
604
606
|
do
|
|
@@ -628,15 +630,15 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
628
630
|
throw e.mode = A, e;
|
|
629
631
|
} else if (r.type === "end") {
|
|
630
632
|
let e = C(r);
|
|
631
|
-
if (e !==
|
|
633
|
+
if (e !== _e) return e;
|
|
632
634
|
}
|
|
633
635
|
if (r.type === "illegal" && a === "") return P += "\n", 1;
|
|
634
636
|
if (L > 1e5 && L > r.index * 3) throw /* @__PURE__ */ Error("potential infinite loop, way more iterations than matches");
|
|
635
637
|
return P += a, a.length;
|
|
636
638
|
}
|
|
637
639
|
let D = N(e);
|
|
638
|
-
if (!D) throw
|
|
639
|
-
let O =
|
|
640
|
+
if (!D) throw X(s.replace("{}", e)), Error("Unknown language: \"" + e + "\"");
|
|
641
|
+
let O = ue(D), k = "", A = a || O, j = {}, M = new l.__emitter(l);
|
|
640
642
|
w();
|
|
641
643
|
let P = "", F = 0, I = 0, L = 0, R = !1;
|
|
642
644
|
try {
|
|
@@ -662,7 +664,7 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
662
664
|
} catch (t) {
|
|
663
665
|
if (t.message && t.message.includes("Illegal")) return {
|
|
664
666
|
language: e,
|
|
665
|
-
value:
|
|
667
|
+
value: he(n),
|
|
666
668
|
illegal: !0,
|
|
667
669
|
relevance: 0,
|
|
668
670
|
_illegalBy: {
|
|
@@ -676,7 +678,7 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
676
678
|
};
|
|
677
679
|
if (o) return {
|
|
678
680
|
language: e,
|
|
679
|
-
value:
|
|
681
|
+
value: he(n),
|
|
680
682
|
illegal: !1,
|
|
681
683
|
relevance: 0,
|
|
682
684
|
errorRaised: t,
|
|
@@ -688,7 +690,7 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
688
690
|
}
|
|
689
691
|
function b(e) {
|
|
690
692
|
let t = {
|
|
691
|
-
value:
|
|
693
|
+
value: he(e),
|
|
692
694
|
illegal: !1,
|
|
693
695
|
relevance: 0,
|
|
694
696
|
_top: c,
|
|
@@ -724,7 +726,7 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
724
726
|
console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.", e);
|
|
725
727
|
return;
|
|
726
728
|
}
|
|
727
|
-
if (e.children.length > 0 && (l.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)), l.throwUnescapedHTML)) throw new
|
|
729
|
+
if (e.children.length > 0 && (l.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)), l.throwUnescapedHTML)) throw new me("One of your code blocks includes unescaped HTML.", e.innerHTML);
|
|
728
730
|
t = e;
|
|
729
731
|
let r = t.textContent, i = n ? p(r, {
|
|
730
732
|
language: n,
|
|
@@ -744,13 +746,13 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
744
746
|
});
|
|
745
747
|
}
|
|
746
748
|
function T(e) {
|
|
747
|
-
l =
|
|
749
|
+
l = ge(l, e);
|
|
748
750
|
}
|
|
749
751
|
let E = () => {
|
|
750
|
-
k(),
|
|
752
|
+
k(), Z("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
|
|
751
753
|
};
|
|
752
754
|
function D() {
|
|
753
|
-
k(),
|
|
755
|
+
k(), Z("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now.");
|
|
754
756
|
}
|
|
755
757
|
let O = !1;
|
|
756
758
|
function k() {
|
|
@@ -768,7 +770,7 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
768
770
|
try {
|
|
769
771
|
i = r(e);
|
|
770
772
|
} catch (e) {
|
|
771
|
-
if (
|
|
773
|
+
if (X("Language definition for '{}' could not be registered.".replace("{}", n)), o) X(e);
|
|
772
774
|
else throw e;
|
|
773
775
|
i = c;
|
|
774
776
|
}
|
|
@@ -813,15 +815,15 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
813
815
|
e[n] && e[n](t);
|
|
814
816
|
});
|
|
815
817
|
}
|
|
816
|
-
function
|
|
817
|
-
return
|
|
818
|
+
function V(e) {
|
|
819
|
+
return Z("10.7.0", "highlightBlock will be removed entirely in v12.0"), Z("10.7.0", "Please use highlightElement now."), w(e);
|
|
818
820
|
}
|
|
819
821
|
Object.assign(e, {
|
|
820
822
|
highlight: p,
|
|
821
823
|
highlightAuto: S,
|
|
822
824
|
highlightAll: k,
|
|
823
825
|
highlightElement: w,
|
|
824
|
-
highlightBlock:
|
|
826
|
+
highlightBlock: V,
|
|
825
827
|
configure: T,
|
|
826
828
|
initHighlighting: E,
|
|
827
829
|
initHighlightingOnLoad: D,
|
|
@@ -831,24 +833,24 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
831
833
|
getLanguage: N,
|
|
832
834
|
registerAliases: P,
|
|
833
835
|
autoDetection: F,
|
|
834
|
-
inherit:
|
|
836
|
+
inherit: ge,
|
|
835
837
|
addPlugin: L,
|
|
836
838
|
removePlugin: R
|
|
837
839
|
}), e.debugMode = function() {
|
|
838
840
|
o = !1;
|
|
839
841
|
}, e.safeMode = function() {
|
|
840
842
|
o = !0;
|
|
841
|
-
}, e.versionString =
|
|
843
|
+
}, e.versionString = pe, e.regex = {
|
|
842
844
|
concat: _,
|
|
843
845
|
lookahead: m,
|
|
844
846
|
either: y,
|
|
845
847
|
optional: g,
|
|
846
848
|
anyNumberOfTimes: h
|
|
847
849
|
};
|
|
848
|
-
for (let e in
|
|
849
|
-
return Object.assign(e,
|
|
850
|
-
}, $ =
|
|
851
|
-
$.newInstance = () =>
|
|
850
|
+
for (let e in B) typeof B[e] == "object" && n(B[e]);
|
|
851
|
+
return Object.assign(e, B), e;
|
|
852
|
+
}, $ = ye({});
|
|
853
|
+
$.newInstance = () => ye({}), t.exports = $, $.HighlightJS = $, $.default = $;
|
|
852
854
|
})), p = /* @__PURE__ */ l(((e, t) => {
|
|
853
855
|
function n(e) {
|
|
854
856
|
let t = e.regex, n = t.concat(/[\p{L}_]/u, t.optional(/[\p{L}0-9_.-]*:/u), /[\p{L}0-9_.-]*/u), r = /[\p{L}0-9._:-]+/u, i = {
|
|
@@ -1184,10 +1186,10 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
1184
1186
|
t.exports = n;
|
|
1185
1187
|
})), h = /* @__PURE__ */ l(((e, t) => {
|
|
1186
1188
|
function n(e) {
|
|
1187
|
-
let t = e.regex, n = e.COMMENT("//", "$", { contains: [{ begin: /\\\n/ }] }), r = "
|
|
1189
|
+
let t = e.regex, n = e.COMMENT("//", "$", { contains: [{ begin: /\\\n/ }] }), r = "[a-zA-Z_]\\w*::", i = "(decltype\\(auto\\)|" + t.optional(r) + "[a-zA-Z_]\\w*" + t.optional("<[^<>]+>") + ")", a = {
|
|
1188
1190
|
className: "type",
|
|
1189
1191
|
variants: [{ begin: "\\b[a-z\\d_]*_t\\b" }, { match: /\batomic_[a-z]{3,6}\b/ }]
|
|
1190
|
-
},
|
|
1192
|
+
}, o = {
|
|
1191
1193
|
className: "string",
|
|
1192
1194
|
variants: [
|
|
1193
1195
|
{
|
|
@@ -1206,7 +1208,7 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
1206
1208
|
end: /\)([^()\\ ]{0,16})"/
|
|
1207
1209
|
})
|
|
1208
1210
|
]
|
|
1209
|
-
},
|
|
1211
|
+
}, s = {
|
|
1210
1212
|
className: "number",
|
|
1211
1213
|
variants: [
|
|
1212
1214
|
{ match: /\b(0b[01']+)/ },
|
|
@@ -1215,7 +1217,7 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
1215
1217
|
{ match: /(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/ }
|
|
1216
1218
|
],
|
|
1217
1219
|
relevance: 0
|
|
1218
|
-
},
|
|
1220
|
+
}, c = {
|
|
1219
1221
|
className: "meta",
|
|
1220
1222
|
begin: /#\s*[a-z]+\b/,
|
|
1221
1223
|
end: /$/,
|
|
@@ -1225,7 +1227,7 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
1225
1227
|
begin: /\\\n/,
|
|
1226
1228
|
relevance: 0
|
|
1227
1229
|
},
|
|
1228
|
-
e.inherit(
|
|
1230
|
+
e.inherit(o, { className: "string" }),
|
|
1229
1231
|
{
|
|
1230
1232
|
className: "string",
|
|
1231
1233
|
begin: /<.*?>/
|
|
@@ -1233,23 +1235,23 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
1233
1235
|
n,
|
|
1234
1236
|
e.C_BLOCK_COMMENT_MODE
|
|
1235
1237
|
]
|
|
1236
|
-
},
|
|
1238
|
+
}, l = {
|
|
1237
1239
|
className: "title",
|
|
1238
|
-
begin: t.optional(
|
|
1240
|
+
begin: t.optional(r) + e.IDENT_RE,
|
|
1239
1241
|
relevance: 0
|
|
1240
|
-
},
|
|
1242
|
+
}, u = t.optional(r) + e.IDENT_RE + "\\s*\\(", d = {
|
|
1241
1243
|
keyword: /* @__PURE__ */ "asm.auto.break.case.continue.default.do.else.enum.extern.for.fortran.goto.if.inline.register.restrict.return.sizeof.typeof.typeof_unqual.struct.switch.typedef.union.volatile.while._Alignas._Alignof._Atomic._Generic._Noreturn._Static_assert._Thread_local.alignas.alignof.noreturn.static_assert.thread_local._Pragma".split("."),
|
|
1242
1244
|
type: /* @__PURE__ */ "float.double.signed.unsigned.int.short.long.char.void._Bool._BitInt._Complex._Imaginary._Decimal32._Decimal64._Decimal96._Decimal128._Decimal64x._Decimal128x._Float16._Float32._Float64._Float128._Float32x._Float64x._Float128x.const.static.constexpr.complex.bool.imaginary".split("."),
|
|
1243
1245
|
literal: "true false NULL",
|
|
1244
1246
|
built_in: "std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"
|
|
1245
|
-
},
|
|
1246
|
-
|
|
1247
|
-
|
|
1247
|
+
}, f = [
|
|
1248
|
+
c,
|
|
1249
|
+
a,
|
|
1248
1250
|
n,
|
|
1249
1251
|
e.C_BLOCK_COMMENT_MODE,
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
],
|
|
1252
|
+
s,
|
|
1253
|
+
o
|
|
1254
|
+
], p = {
|
|
1253
1255
|
variants: [
|
|
1254
1256
|
{
|
|
1255
1257
|
begin: /=/,
|
|
@@ -1264,32 +1266,32 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
1264
1266
|
end: /;/
|
|
1265
1267
|
}
|
|
1266
1268
|
],
|
|
1267
|
-
keywords:
|
|
1268
|
-
contains:
|
|
1269
|
+
keywords: d,
|
|
1270
|
+
contains: f.concat([{
|
|
1269
1271
|
begin: /\(/,
|
|
1270
1272
|
end: /\)/,
|
|
1271
|
-
keywords:
|
|
1272
|
-
contains:
|
|
1273
|
+
keywords: d,
|
|
1274
|
+
contains: f.concat(["self"]),
|
|
1273
1275
|
relevance: 0
|
|
1274
1276
|
}]),
|
|
1275
1277
|
relevance: 0
|
|
1276
|
-
},
|
|
1277
|
-
begin: "(" +
|
|
1278
|
+
}, m = {
|
|
1279
|
+
begin: "(" + i + "[\\*&\\s]+)+" + u,
|
|
1278
1280
|
returnBegin: !0,
|
|
1279
1281
|
end: /[{;=]/,
|
|
1280
1282
|
excludeEnd: !0,
|
|
1281
|
-
keywords:
|
|
1283
|
+
keywords: d,
|
|
1282
1284
|
illegal: /[^\w\s\*&:<>.]/,
|
|
1283
1285
|
contains: [
|
|
1284
1286
|
{
|
|
1285
|
-
begin:
|
|
1286
|
-
keywords:
|
|
1287
|
+
begin: "decltype\\(auto\\)",
|
|
1288
|
+
keywords: d,
|
|
1287
1289
|
relevance: 0
|
|
1288
1290
|
},
|
|
1289
1291
|
{
|
|
1290
|
-
begin:
|
|
1292
|
+
begin: u,
|
|
1291
1293
|
returnBegin: !0,
|
|
1292
|
-
contains: [e.inherit(
|
|
1294
|
+
contains: [e.inherit(l, { className: "title.function" })],
|
|
1293
1295
|
relevance: 0
|
|
1294
1296
|
},
|
|
1295
1297
|
{
|
|
@@ -1300,47 +1302,47 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
1300
1302
|
className: "params",
|
|
1301
1303
|
begin: /\(/,
|
|
1302
1304
|
end: /\)/,
|
|
1303
|
-
keywords:
|
|
1305
|
+
keywords: d,
|
|
1304
1306
|
relevance: 0,
|
|
1305
1307
|
contains: [
|
|
1306
1308
|
n,
|
|
1307
1309
|
e.C_BLOCK_COMMENT_MODE,
|
|
1308
|
-
s,
|
|
1309
|
-
c,
|
|
1310
1310
|
o,
|
|
1311
|
+
s,
|
|
1312
|
+
a,
|
|
1311
1313
|
{
|
|
1312
1314
|
begin: /\(/,
|
|
1313
1315
|
end: /\)/,
|
|
1314
|
-
keywords:
|
|
1316
|
+
keywords: d,
|
|
1315
1317
|
relevance: 0,
|
|
1316
1318
|
contains: [
|
|
1317
1319
|
"self",
|
|
1318
1320
|
n,
|
|
1319
1321
|
e.C_BLOCK_COMMENT_MODE,
|
|
1322
|
+
o,
|
|
1320
1323
|
s,
|
|
1321
|
-
|
|
1322
|
-
o
|
|
1324
|
+
a
|
|
1323
1325
|
]
|
|
1324
1326
|
}
|
|
1325
1327
|
]
|
|
1326
1328
|
},
|
|
1327
|
-
|
|
1329
|
+
a,
|
|
1328
1330
|
n,
|
|
1329
1331
|
e.C_BLOCK_COMMENT_MODE,
|
|
1330
|
-
|
|
1332
|
+
c
|
|
1331
1333
|
]
|
|
1332
1334
|
};
|
|
1333
1335
|
return {
|
|
1334
1336
|
name: "C",
|
|
1335
1337
|
aliases: ["h"],
|
|
1336
|
-
keywords:
|
|
1338
|
+
keywords: d,
|
|
1337
1339
|
disableAutodetect: !0,
|
|
1338
1340
|
illegal: "</",
|
|
1339
|
-
contains: [].concat(
|
|
1340
|
-
|
|
1341
|
+
contains: [].concat(p, m, f, [
|
|
1342
|
+
c,
|
|
1341
1343
|
{
|
|
1342
1344
|
begin: e.IDENT_RE + "::",
|
|
1343
|
-
keywords:
|
|
1345
|
+
keywords: d
|
|
1344
1346
|
},
|
|
1345
1347
|
{
|
|
1346
1348
|
className: "class",
|
|
@@ -1350,19 +1352,19 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
1350
1352
|
}
|
|
1351
1353
|
]),
|
|
1352
1354
|
exports: {
|
|
1353
|
-
preprocessor:
|
|
1354
|
-
strings:
|
|
1355
|
-
keywords:
|
|
1355
|
+
preprocessor: c,
|
|
1356
|
+
strings: o,
|
|
1357
|
+
keywords: d
|
|
1356
1358
|
}
|
|
1357
1359
|
};
|
|
1358
1360
|
}
|
|
1359
1361
|
t.exports = n;
|
|
1360
1362
|
})), g = /* @__PURE__ */ l(((e, t) => {
|
|
1361
1363
|
function n(e) {
|
|
1362
|
-
let t = e.regex, n = e.COMMENT("//", "$", { contains: [{ begin: /\\\n/ }] }), r = "
|
|
1364
|
+
let t = e.regex, n = e.COMMENT("//", "$", { contains: [{ begin: /\\\n/ }] }), r = "[a-zA-Z_]\\w*::", i = "(?!struct)(decltype\\(auto\\)|" + t.optional(r) + "[a-zA-Z_]\\w*" + t.optional("<[^<>]+>") + ")", a = {
|
|
1363
1365
|
className: "type",
|
|
1364
1366
|
begin: "\\b[a-z\\d_]*_t\\b"
|
|
1365
|
-
},
|
|
1367
|
+
}, o = {
|
|
1366
1368
|
className: "string",
|
|
1367
1369
|
variants: [
|
|
1368
1370
|
{
|
|
@@ -1381,11 +1383,11 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
1381
1383
|
end: /\)([^()\\ ]{0,16})"/
|
|
1382
1384
|
})
|
|
1383
1385
|
]
|
|
1384
|
-
},
|
|
1386
|
+
}, s = {
|
|
1385
1387
|
className: "number",
|
|
1386
1388
|
variants: [{ begin: "[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)" }, { begin: "[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)" }],
|
|
1387
1389
|
relevance: 0
|
|
1388
|
-
},
|
|
1390
|
+
}, c = {
|
|
1389
1391
|
className: "meta",
|
|
1390
1392
|
begin: /#\s*[a-z]+\b/,
|
|
1391
1393
|
end: /$/,
|
|
@@ -1395,7 +1397,7 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
1395
1397
|
begin: /\\\n/,
|
|
1396
1398
|
relevance: 0
|
|
1397
1399
|
},
|
|
1398
|
-
e.inherit(
|
|
1400
|
+
e.inherit(o, { className: "string" }),
|
|
1399
1401
|
{
|
|
1400
1402
|
className: "string",
|
|
1401
1403
|
begin: /<.*?>/
|
|
@@ -1403,11 +1405,11 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
1403
1405
|
n,
|
|
1404
1406
|
e.C_BLOCK_COMMENT_MODE
|
|
1405
1407
|
]
|
|
1406
|
-
},
|
|
1408
|
+
}, l = {
|
|
1407
1409
|
className: "title",
|
|
1408
|
-
begin: t.optional(
|
|
1410
|
+
begin: t.optional(r) + e.IDENT_RE,
|
|
1409
1411
|
relevance: 0
|
|
1410
|
-
},
|
|
1412
|
+
}, u = t.optional(r) + e.IDENT_RE + "\\s*\\(", d = /* @__PURE__ */ "alignas.alignof.and.and_eq.asm.atomic_cancel.atomic_commit.atomic_noexcept.auto.bitand.bitor.break.case.catch.class.co_await.co_return.co_yield.compl.concept.const_cast|10.consteval.constexpr.constinit.continue.decltype.default.delete.do.dynamic_cast|10.else.enum.explicit.export.extern.false.final.for.friend.goto.if.import.inline.module.mutable.namespace.new.noexcept.not.not_eq.nullptr.operator.or.or_eq.override.private.protected.public.reflexpr.register.reinterpret_cast|10.requires.return.sizeof.static_assert.static_cast|10.struct.switch.synchronized.template.this.thread_local.throw.transaction_safe.transaction_safe_dynamic.true.try.typedef.typeid.typename.union.using.virtual.volatile.while.xor.xor_eq".split("."), f = [
|
|
1411
1413
|
"bool",
|
|
1412
1414
|
"char",
|
|
1413
1415
|
"char16_t",
|
|
@@ -1424,9 +1426,9 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
1424
1426
|
"signed",
|
|
1425
1427
|
"const",
|
|
1426
1428
|
"static"
|
|
1427
|
-
],
|
|
1428
|
-
type:
|
|
1429
|
-
keyword:
|
|
1429
|
+
], p = /* @__PURE__ */ "any.auto_ptr.barrier.binary_semaphore.bitset.complex.condition_variable.condition_variable_any.counting_semaphore.deque.false_type.flat_map.flat_set.future.imaginary.initializer_list.istringstream.jthread.latch.lock_guard.multimap.multiset.mutex.optional.ostringstream.packaged_task.pair.promise.priority_queue.queue.recursive_mutex.recursive_timed_mutex.scoped_lock.set.shared_future.shared_lock.shared_mutex.shared_timed_mutex.shared_ptr.stack.string_view.stringstream.timed_mutex.thread.true_type.tuple.unique_lock.unique_ptr.unordered_map.unordered_multimap.unordered_multiset.unordered_set.variant.vector.weak_ptr.wstring.wstring_view".split("."), m = /* @__PURE__ */ "abort.abs.acos.apply.as_const.asin.atan.atan2.calloc.ceil.cerr.cin.clog.cos.cosh.cout.declval.endl.exchange.exit.exp.fabs.floor.fmod.forward.fprintf.fputs.free.frexp.fscanf.future.invoke.isalnum.isalpha.iscntrl.isdigit.isgraph.islower.isprint.ispunct.isspace.isupper.isxdigit.labs.launder.ldexp.log.log10.make_pair.make_shared.make_shared_for_overwrite.make_tuple.make_unique.malloc.memchr.memcmp.memcpy.memset.modf.move.pow.printf.putchar.puts.realloc.scanf.sin.sinh.snprintf.sprintf.sqrt.sscanf.std.stderr.stdin.stdout.strcat.strchr.strcmp.strcpy.strcspn.strlen.strncat.strncmp.strncpy.strpbrk.strrchr.strspn.strstr.swap.tan.tanh.terminate.to_underlying.tolower.toupper.vfprintf.visit.vprintf.vsprintf".split("."), h = {
|
|
1430
|
+
type: f,
|
|
1431
|
+
keyword: d,
|
|
1430
1432
|
literal: [
|
|
1431
1433
|
"NULL",
|
|
1432
1434
|
"false",
|
|
@@ -1435,21 +1437,21 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
1435
1437
|
"true"
|
|
1436
1438
|
],
|
|
1437
1439
|
built_in: ["_Pragma"],
|
|
1438
|
-
_type_hints:
|
|
1439
|
-
},
|
|
1440
|
+
_type_hints: p
|
|
1441
|
+
}, g = {
|
|
1440
1442
|
className: "function.dispatch",
|
|
1441
1443
|
relevance: 0,
|
|
1442
|
-
keywords: { _hint:
|
|
1444
|
+
keywords: { _hint: m },
|
|
1443
1445
|
begin: t.concat(/\b/, /(?!decltype)/, /(?!if)/, /(?!for)/, /(?!switch)/, /(?!while)/, e.IDENT_RE, t.lookahead(/(<[^<>]+>|)\s*\(/))
|
|
1444
|
-
},
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1446
|
+
}, _ = [
|
|
1447
|
+
g,
|
|
1448
|
+
c,
|
|
1449
|
+
a,
|
|
1448
1450
|
n,
|
|
1449
1451
|
e.C_BLOCK_COMMENT_MODE,
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
],
|
|
1452
|
+
s,
|
|
1453
|
+
o
|
|
1454
|
+
], v = {
|
|
1453
1455
|
variants: [
|
|
1454
1456
|
{
|
|
1455
1457
|
begin: /=/,
|
|
@@ -1464,33 +1466,33 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
1464
1466
|
end: /;/
|
|
1465
1467
|
}
|
|
1466
1468
|
],
|
|
1467
|
-
keywords:
|
|
1468
|
-
contains:
|
|
1469
|
+
keywords: h,
|
|
1470
|
+
contains: _.concat([{
|
|
1469
1471
|
begin: /\(/,
|
|
1470
1472
|
end: /\)/,
|
|
1471
|
-
keywords:
|
|
1472
|
-
contains:
|
|
1473
|
+
keywords: h,
|
|
1474
|
+
contains: _.concat(["self"]),
|
|
1473
1475
|
relevance: 0
|
|
1474
1476
|
}]),
|
|
1475
1477
|
relevance: 0
|
|
1476
|
-
},
|
|
1478
|
+
}, y = {
|
|
1477
1479
|
className: "function",
|
|
1478
|
-
begin: "(" +
|
|
1480
|
+
begin: "(" + i + "[\\*&\\s]+)+" + u,
|
|
1479
1481
|
returnBegin: !0,
|
|
1480
1482
|
end: /[{;=]/,
|
|
1481
1483
|
excludeEnd: !0,
|
|
1482
|
-
keywords:
|
|
1484
|
+
keywords: h,
|
|
1483
1485
|
illegal: /[^\w\s\*&:<>.]/,
|
|
1484
1486
|
contains: [
|
|
1485
1487
|
{
|
|
1486
|
-
begin:
|
|
1487
|
-
keywords:
|
|
1488
|
+
begin: "decltype\\(auto\\)",
|
|
1489
|
+
keywords: h,
|
|
1488
1490
|
relevance: 0
|
|
1489
1491
|
},
|
|
1490
1492
|
{
|
|
1491
|
-
begin:
|
|
1493
|
+
begin: u,
|
|
1492
1494
|
returnBegin: !0,
|
|
1493
|
-
contains: [
|
|
1495
|
+
contains: [l],
|
|
1494
1496
|
relevance: 0
|
|
1495
1497
|
},
|
|
1496
1498
|
{
|
|
@@ -1500,7 +1502,7 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
1500
1502
|
{
|
|
1501
1503
|
begin: /:/,
|
|
1502
1504
|
endsWithParent: !0,
|
|
1503
|
-
contains: [
|
|
1505
|
+
contains: [o, s]
|
|
1504
1506
|
},
|
|
1505
1507
|
{
|
|
1506
1508
|
relevance: 0,
|
|
@@ -1510,34 +1512,34 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
1510
1512
|
className: "params",
|
|
1511
1513
|
begin: /\(/,
|
|
1512
1514
|
end: /\)/,
|
|
1513
|
-
keywords:
|
|
1515
|
+
keywords: h,
|
|
1514
1516
|
relevance: 0,
|
|
1515
1517
|
contains: [
|
|
1516
1518
|
n,
|
|
1517
1519
|
e.C_BLOCK_COMMENT_MODE,
|
|
1518
|
-
s,
|
|
1519
|
-
c,
|
|
1520
1520
|
o,
|
|
1521
|
+
s,
|
|
1522
|
+
a,
|
|
1521
1523
|
{
|
|
1522
1524
|
begin: /\(/,
|
|
1523
1525
|
end: /\)/,
|
|
1524
|
-
keywords:
|
|
1526
|
+
keywords: h,
|
|
1525
1527
|
relevance: 0,
|
|
1526
1528
|
contains: [
|
|
1527
1529
|
"self",
|
|
1528
1530
|
n,
|
|
1529
1531
|
e.C_BLOCK_COMMENT_MODE,
|
|
1532
|
+
o,
|
|
1530
1533
|
s,
|
|
1531
|
-
|
|
1532
|
-
o
|
|
1534
|
+
a
|
|
1533
1535
|
]
|
|
1534
1536
|
}
|
|
1535
1537
|
]
|
|
1536
1538
|
},
|
|
1537
|
-
|
|
1539
|
+
a,
|
|
1538
1540
|
n,
|
|
1539
1541
|
e.C_BLOCK_COMMENT_MODE,
|
|
1540
|
-
|
|
1542
|
+
c
|
|
1541
1543
|
]
|
|
1542
1544
|
};
|
|
1543
1545
|
return {
|
|
@@ -1551,20 +1553,20 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
1551
1553
|
"hxx",
|
|
1552
1554
|
"cxx"
|
|
1553
1555
|
],
|
|
1554
|
-
keywords:
|
|
1556
|
+
keywords: h,
|
|
1555
1557
|
illegal: "</",
|
|
1556
1558
|
classNameAliases: { "function.dispatch": "built_in" },
|
|
1557
|
-
contains: [].concat(y,
|
|
1558
|
-
|
|
1559
|
+
contains: [].concat(v, y, g, _, [
|
|
1560
|
+
c,
|
|
1559
1561
|
{
|
|
1560
1562
|
begin: "\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",
|
|
1561
1563
|
end: ">",
|
|
1562
|
-
keywords:
|
|
1563
|
-
contains: ["self",
|
|
1564
|
+
keywords: h,
|
|
1565
|
+
contains: ["self", a]
|
|
1564
1566
|
},
|
|
1565
1567
|
{
|
|
1566
1568
|
begin: e.IDENT_RE + "::",
|
|
1567
|
-
keywords:
|
|
1569
|
+
keywords: h
|
|
1568
1570
|
},
|
|
1569
1571
|
{
|
|
1570
1572
|
match: [
|
|
@@ -2206,51 +2208,7 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
2206
2208
|
"__ENCODING__"
|
|
2207
2209
|
],
|
|
2208
2210
|
"variable.language": ["self", "super"],
|
|
2209
|
-
keyword:
|
|
2210
|
-
"alias",
|
|
2211
|
-
"and",
|
|
2212
|
-
"begin",
|
|
2213
|
-
"BEGIN",
|
|
2214
|
-
"break",
|
|
2215
|
-
"case",
|
|
2216
|
-
"class",
|
|
2217
|
-
"defined",
|
|
2218
|
-
"do",
|
|
2219
|
-
"else",
|
|
2220
|
-
"elsif",
|
|
2221
|
-
"end",
|
|
2222
|
-
"END",
|
|
2223
|
-
"ensure",
|
|
2224
|
-
"for",
|
|
2225
|
-
"if",
|
|
2226
|
-
"in",
|
|
2227
|
-
"module",
|
|
2228
|
-
"next",
|
|
2229
|
-
"not",
|
|
2230
|
-
"or",
|
|
2231
|
-
"redo",
|
|
2232
|
-
"require",
|
|
2233
|
-
"rescue",
|
|
2234
|
-
"retry",
|
|
2235
|
-
"return",
|
|
2236
|
-
"then",
|
|
2237
|
-
"undef",
|
|
2238
|
-
"unless",
|
|
2239
|
-
"until",
|
|
2240
|
-
"when",
|
|
2241
|
-
"while",
|
|
2242
|
-
"yield",
|
|
2243
|
-
...[
|
|
2244
|
-
"include",
|
|
2245
|
-
"extend",
|
|
2246
|
-
"prepend",
|
|
2247
|
-
"public",
|
|
2248
|
-
"private",
|
|
2249
|
-
"protected",
|
|
2250
|
-
"raise",
|
|
2251
|
-
"throw"
|
|
2252
|
-
]
|
|
2253
|
-
],
|
|
2211
|
+
keyword: /* @__PURE__ */ "alias.and.begin.BEGIN.break.case.class.defined.do.else.elsif.end.END.ensure.for.if.in.module.next.not.or.redo.require.rescue.retry.return.then.undef.unless.until.when.while.yield.include.extend.prepend.public.private.protected.raise.throw".split("."),
|
|
2254
2212
|
built_in: [
|
|
2255
2213
|
"proc",
|
|
2256
2214
|
"lambda",
|
|
@@ -2814,7 +2772,7 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
2814
2772
|
return n === -1 ? "" : e.replace(t, (r) => o(e, t, n - 1));
|
|
2815
2773
|
}
|
|
2816
2774
|
function s(e) {
|
|
2817
|
-
let t = e.regex, n = "[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*", r = n + o("(?:<
|
|
2775
|
+
let t = e.regex, n = "[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*", r = n + o("(?:<[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*~~~(?:\\s*,\\s*[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*~~~)*>)?", /~~~/g, 2), i = {
|
|
2818
2776
|
keyword: /* @__PURE__ */ "synchronized.abstract.private.var.static.if.const .for.while.strictfp.finally.protected.import.native.final.void.enum.else.break.transient.catch.instanceof.volatile.case.assert.package.default.public.try.switch.continue.throws.protected.public.private.module.requires.exports.do.sealed.yield.permits.goto.when".split("."),
|
|
2819
2777
|
literal: [
|
|
2820
2778
|
"false",
|
|
@@ -2834,7 +2792,7 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
2834
2792
|
built_in: ["super", "this"]
|
|
2835
2793
|
}, s = {
|
|
2836
2794
|
className: "meta",
|
|
2837
|
-
begin: "@"
|
|
2795
|
+
begin: "@[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",
|
|
2838
2796
|
contains: [{
|
|
2839
2797
|
begin: /\(/,
|
|
2840
2798
|
end: /\)/,
|
|
@@ -3115,7 +3073,7 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
3115
3073
|
},
|
|
3116
3074
|
{
|
|
3117
3075
|
className: "variable",
|
|
3118
|
-
begin:
|
|
3076
|
+
begin: "[A-Za-z$_][0-9A-Za-z$_]*(?=\\s*(-)|$)",
|
|
3119
3077
|
endsParent: !0,
|
|
3120
3078
|
relevance: 0
|
|
3121
3079
|
},
|
|
@@ -3380,7 +3338,7 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
3380
3338
|
},
|
|
3381
3339
|
L,
|
|
3382
3340
|
{
|
|
3383
|
-
match: "\\$"
|
|
3341
|
+
match: "\\$[A-Za-z$_][0-9A-Za-z$_]*",
|
|
3384
3342
|
relevance: 0
|
|
3385
3343
|
},
|
|
3386
3344
|
{
|
|
@@ -3680,52 +3638,52 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
3680
3638
|
"spelling-error"
|
|
3681
3639
|
].sort().reverse(), l = (/* @__PURE__ */ "accent-color.align-content.align-items.align-self.alignment-baseline.all.anchor-name.animation.animation-composition.animation-delay.animation-direction.animation-duration.animation-fill-mode.animation-iteration-count.animation-name.animation-play-state.animation-range.animation-range-end.animation-range-start.animation-timeline.animation-timing-function.appearance.aspect-ratio.backdrop-filter.backface-visibility.background.background-attachment.background-blend-mode.background-clip.background-color.background-image.background-origin.background-position.background-position-x.background-position-y.background-repeat.background-size.baseline-shift.block-size.border.border-block.border-block-color.border-block-end.border-block-end-color.border-block-end-style.border-block-end-width.border-block-start.border-block-start-color.border-block-start-style.border-block-start-width.border-block-style.border-block-width.border-bottom.border-bottom-color.border-bottom-left-radius.border-bottom-right-radius.border-bottom-style.border-bottom-width.border-collapse.border-color.border-end-end-radius.border-end-start-radius.border-image.border-image-outset.border-image-repeat.border-image-slice.border-image-source.border-image-width.border-inline.border-inline-color.border-inline-end.border-inline-end-color.border-inline-end-style.border-inline-end-width.border-inline-start.border-inline-start-color.border-inline-start-style.border-inline-start-width.border-inline-style.border-inline-width.border-left.border-left-color.border-left-style.border-left-width.border-radius.border-right.border-right-color.border-right-style.border-right-width.border-spacing.border-start-end-radius.border-start-start-radius.border-style.border-top.border-top-color.border-top-left-radius.border-top-right-radius.border-top-style.border-top-width.border-width.bottom.box-align.box-decoration-break.box-direction.box-flex.box-flex-group.box-lines.box-ordinal-group.box-orient.box-pack.box-shadow.box-sizing.break-after.break-before.break-inside.caption-side.caret-color.clear.clip.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.color-scheme.column-count.column-fill.column-gap.column-rule.column-rule-color.column-rule-style.column-rule-width.column-span.column-width.columns.contain.contain-intrinsic-block-size.contain-intrinsic-height.contain-intrinsic-inline-size.contain-intrinsic-size.contain-intrinsic-width.container.container-name.container-type.content.content-visibility.counter-increment.counter-reset.counter-set.cue.cue-after.cue-before.cursor.cx.cy.direction.display.dominant-baseline.empty-cells.enable-background.field-sizing.fill.fill-opacity.fill-rule.filter.flex.flex-basis.flex-direction.flex-flow.flex-grow.flex-shrink.flex-wrap.float.flood-color.flood-opacity.flow.font.font-display.font-family.font-feature-settings.font-kerning.font-language-override.font-optical-sizing.font-palette.font-size.font-size-adjust.font-smooth.font-smoothing.font-stretch.font-style.font-synthesis.font-synthesis-position.font-synthesis-small-caps.font-synthesis-style.font-synthesis-weight.font-variant.font-variant-alternates.font-variant-caps.font-variant-east-asian.font-variant-emoji.font-variant-ligatures.font-variant-numeric.font-variant-position.font-variation-settings.font-weight.forced-color-adjust.gap.glyph-orientation-horizontal.glyph-orientation-vertical.grid.grid-area.grid-auto-columns.grid-auto-flow.grid-auto-rows.grid-column.grid-column-end.grid-column-start.grid-gap.grid-row.grid-row-end.grid-row-start.grid-template.grid-template-areas.grid-template-columns.grid-template-rows.hanging-punctuation.height.hyphenate-character.hyphenate-limit-chars.hyphens.icon.image-orientation.image-rendering.image-resolution.ime-mode.initial-letter.initial-letter-align.inline-size.inset.inset-area.inset-block.inset-block-end.inset-block-start.inset-inline.inset-inline-end.inset-inline-start.isolation.justify-content.justify-items.justify-self.kerning.left.letter-spacing.lighting-color.line-break.line-height.line-height-step.list-style.list-style-image.list-style-position.list-style-type.margin.margin-block.margin-block-end.margin-block-start.margin-bottom.margin-inline.margin-inline-end.margin-inline-start.margin-left.margin-right.margin-top.margin-trim.marker.marker-end.marker-mid.marker-start.marks.mask.mask-border.mask-border-mode.mask-border-outset.mask-border-repeat.mask-border-slice.mask-border-source.mask-border-width.mask-clip.mask-composite.mask-image.mask-mode.mask-origin.mask-position.mask-repeat.mask-size.mask-type.masonry-auto-flow.math-depth.math-shift.math-style.max-block-size.max-height.max-inline-size.max-width.min-block-size.min-height.min-inline-size.min-width.mix-blend-mode.nav-down.nav-index.nav-left.nav-right.nav-up.none.normal.object-fit.object-position.offset.offset-anchor.offset-distance.offset-path.offset-position.offset-rotate.opacity.order.orphans.outline.outline-color.outline-offset.outline-style.outline-width.overflow.overflow-anchor.overflow-block.overflow-clip-margin.overflow-inline.overflow-wrap.overflow-x.overflow-y.overlay.overscroll-behavior.overscroll-behavior-block.overscroll-behavior-inline.overscroll-behavior-x.overscroll-behavior-y.padding.padding-block.padding-block-end.padding-block-start.padding-bottom.padding-inline.padding-inline-end.padding-inline-start.padding-left.padding-right.padding-top.page.page-break-after.page-break-before.page-break-inside.paint-order.pause.pause-after.pause-before.perspective.perspective-origin.place-content.place-items.place-self.pointer-events.position.position-anchor.position-visibility.print-color-adjust.quotes.r.resize.rest.rest-after.rest-before.right.rotate.row-gap.ruby-align.ruby-position.scale.scroll-behavior.scroll-margin.scroll-margin-block.scroll-margin-block-end.scroll-margin-block-start.scroll-margin-bottom.scroll-margin-inline.scroll-margin-inline-end.scroll-margin-inline-start.scroll-margin-left.scroll-margin-right.scroll-margin-top.scroll-padding.scroll-padding-block.scroll-padding-block-end.scroll-padding-block-start.scroll-padding-bottom.scroll-padding-inline.scroll-padding-inline-end.scroll-padding-inline-start.scroll-padding-left.scroll-padding-right.scroll-padding-top.scroll-snap-align.scroll-snap-stop.scroll-snap-type.scroll-timeline.scroll-timeline-axis.scroll-timeline-name.scrollbar-color.scrollbar-gutter.scrollbar-width.shape-image-threshold.shape-margin.shape-outside.shape-rendering.speak.speak-as.src.stop-color.stop-opacity.stroke.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke-width.tab-size.table-layout.text-align.text-align-all.text-align-last.text-anchor.text-combine-upright.text-decoration.text-decoration-color.text-decoration-line.text-decoration-skip.text-decoration-skip-ink.text-decoration-style.text-decoration-thickness.text-emphasis.text-emphasis-color.text-emphasis-position.text-emphasis-style.text-indent.text-justify.text-orientation.text-overflow.text-rendering.text-shadow.text-size-adjust.text-transform.text-underline-offset.text-underline-position.text-wrap.text-wrap-mode.text-wrap-style.timeline-scope.top.touch-action.transform.transform-box.transform-origin.transform-style.transition.transition-behavior.transition-delay.transition-duration.transition-property.transition-timing-function.translate.unicode-bidi.user-modify.user-select.vector-effect.vertical-align.view-timeline.view-timeline-axis.view-timeline-inset.view-timeline-name.view-transition-name.visibility.voice-balance.voice-duration.voice-family.voice-pitch.voice-range.voice-rate.voice-stress.voice-volume.white-space.white-space-collapse.widows.width.will-change.word-break.word-spacing.word-wrap.writing-mode.x.y.z-index.zoom".split(".")).sort().reverse(), u = s.concat(c).sort().reverse();
|
|
3682
3640
|
function d(e) {
|
|
3683
|
-
let t = n(e), r = u, i = "[\\w-]
|
|
3641
|
+
let t = n(e), r = u, i = "([\\w-]+|@\\{[\\w-]+\\})", d = [], f = [], p = function(e) {
|
|
3684
3642
|
return {
|
|
3685
3643
|
className: "string",
|
|
3686
3644
|
begin: "~?" + e + ".*?" + e
|
|
3687
3645
|
};
|
|
3688
|
-
},
|
|
3646
|
+
}, m = function(e, t, n) {
|
|
3689
3647
|
return {
|
|
3690
3648
|
className: e,
|
|
3691
3649
|
begin: t,
|
|
3692
3650
|
relevance: n
|
|
3693
3651
|
};
|
|
3694
|
-
},
|
|
3652
|
+
}, h = {
|
|
3695
3653
|
$pattern: /[a-z-]+/,
|
|
3696
3654
|
keyword: "and or not only",
|
|
3697
3655
|
attribute: o.join(" ")
|
|
3698
|
-
},
|
|
3656
|
+
}, g = {
|
|
3699
3657
|
begin: "\\(",
|
|
3700
3658
|
end: "\\)",
|
|
3701
|
-
contains:
|
|
3702
|
-
keywords:
|
|
3659
|
+
contains: f,
|
|
3660
|
+
keywords: h,
|
|
3703
3661
|
relevance: 0
|
|
3704
3662
|
};
|
|
3705
|
-
|
|
3663
|
+
f.push(e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE, p("'"), p("\""), t.CSS_NUMBER_MODE, {
|
|
3706
3664
|
begin: "(url|data-uri)\\(",
|
|
3707
3665
|
starts: {
|
|
3708
3666
|
className: "string",
|
|
3709
3667
|
end: "[\\)\\n]",
|
|
3710
3668
|
excludeEnd: !0
|
|
3711
3669
|
}
|
|
3712
|
-
}, t.HEXCOLOR,
|
|
3670
|
+
}, t.HEXCOLOR, g, m("variable", "@@?[\\w-]+", 10), m("variable", "@\\{[\\w-]+\\}"), m("built_in", "~?`[^`]*?`"), {
|
|
3713
3671
|
className: "attribute",
|
|
3714
|
-
begin:
|
|
3672
|
+
begin: "[\\w-]+\\s*:",
|
|
3715
3673
|
end: ":",
|
|
3716
3674
|
returnBegin: !0,
|
|
3717
3675
|
excludeEnd: !0
|
|
3718
3676
|
}, t.IMPORTANT, { beginKeywords: "and not" }, t.FUNCTION_DISPATCH);
|
|
3719
|
-
let
|
|
3677
|
+
let _ = f.concat({
|
|
3720
3678
|
begin: /\{/,
|
|
3721
3679
|
end: /\}/,
|
|
3722
|
-
contains:
|
|
3723
|
-
}),
|
|
3680
|
+
contains: d
|
|
3681
|
+
}), v = {
|
|
3724
3682
|
beginKeywords: "when",
|
|
3725
3683
|
endsWithParent: !0,
|
|
3726
|
-
contains: [{ beginKeywords: "and not" }].concat(
|
|
3727
|
-
},
|
|
3728
|
-
begin:
|
|
3684
|
+
contains: [{ beginKeywords: "and not" }].concat(f)
|
|
3685
|
+
}, y = {
|
|
3686
|
+
begin: "([\\w-]+|@\\{[\\w-]+\\})\\s*:",
|
|
3729
3687
|
returnBegin: !0,
|
|
3730
3688
|
end: /[;}]/,
|
|
3731
3689
|
relevance: 0,
|
|
@@ -3740,37 +3698,37 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
3740
3698
|
endsWithParent: !0,
|
|
3741
3699
|
illegal: "[<=$]",
|
|
3742
3700
|
relevance: 0,
|
|
3743
|
-
contains:
|
|
3701
|
+
contains: f
|
|
3744
3702
|
}
|
|
3745
3703
|
}
|
|
3746
3704
|
]
|
|
3747
|
-
},
|
|
3705
|
+
}, b = {
|
|
3748
3706
|
className: "keyword",
|
|
3749
3707
|
begin: "@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",
|
|
3750
3708
|
starts: {
|
|
3751
3709
|
end: "[;{}]",
|
|
3752
|
-
keywords:
|
|
3710
|
+
keywords: h,
|
|
3753
3711
|
returnEnd: !0,
|
|
3754
|
-
contains:
|
|
3712
|
+
contains: f,
|
|
3755
3713
|
relevance: 0
|
|
3756
3714
|
}
|
|
3757
|
-
},
|
|
3715
|
+
}, x = {
|
|
3758
3716
|
className: "variable",
|
|
3759
3717
|
variants: [{
|
|
3760
|
-
begin: "@
|
|
3718
|
+
begin: "@[\\w-]+\\s*:",
|
|
3761
3719
|
relevance: 15
|
|
3762
|
-
}, { begin: "@"
|
|
3720
|
+
}, { begin: "@[\\w-]+" }],
|
|
3763
3721
|
starts: {
|
|
3764
3722
|
end: "[;}]",
|
|
3765
3723
|
returnEnd: !0,
|
|
3766
|
-
contains:
|
|
3724
|
+
contains: _
|
|
3767
3725
|
}
|
|
3768
|
-
},
|
|
3726
|
+
}, S = {
|
|
3769
3727
|
variants: [{
|
|
3770
3728
|
begin: "[\\.#:&\\[>]",
|
|
3771
3729
|
end: "[;{}]"
|
|
3772
3730
|
}, {
|
|
3773
|
-
begin:
|
|
3731
|
+
begin: i,
|
|
3774
3732
|
end: /\{/
|
|
3775
3733
|
}],
|
|
3776
3734
|
returnBegin: !0,
|
|
@@ -3780,18 +3738,18 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
3780
3738
|
contains: [
|
|
3781
3739
|
e.C_LINE_COMMENT_MODE,
|
|
3782
3740
|
e.C_BLOCK_COMMENT_MODE,
|
|
3783
|
-
|
|
3784
|
-
|
|
3785
|
-
|
|
3741
|
+
v,
|
|
3742
|
+
m("keyword", "all\\b"),
|
|
3743
|
+
m("variable", "@\\{[\\w-]+\\}"),
|
|
3786
3744
|
{
|
|
3787
3745
|
begin: "\\b(" + a.join("|") + ")\\b",
|
|
3788
3746
|
className: "selector-tag"
|
|
3789
3747
|
},
|
|
3790
3748
|
t.CSS_NUMBER_MODE,
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3749
|
+
m("selector-tag", i, 0),
|
|
3750
|
+
m("selector-id", "#([\\w-]+|@\\{[\\w-]+\\})"),
|
|
3751
|
+
m("selector-class", "\\.([\\w-]+|@\\{[\\w-]+\\})", 0),
|
|
3752
|
+
m("selector-tag", "&", 0),
|
|
3795
3753
|
t.ATTRIBUTE_SELECTOR_MODE,
|
|
3796
3754
|
{
|
|
3797
3755
|
className: "selector-pseudo",
|
|
@@ -3805,21 +3763,21 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
3805
3763
|
begin: /\(/,
|
|
3806
3764
|
end: /\)/,
|
|
3807
3765
|
relevance: 0,
|
|
3808
|
-
contains:
|
|
3766
|
+
contains: _
|
|
3809
3767
|
},
|
|
3810
3768
|
{ begin: "!important" },
|
|
3811
3769
|
t.FUNCTION_DISPATCH
|
|
3812
3770
|
]
|
|
3813
|
-
},
|
|
3771
|
+
}, C = {
|
|
3814
3772
|
begin: `[\\w-]+:(:)?(${r.join("|")})`,
|
|
3815
3773
|
returnBegin: !0,
|
|
3816
|
-
contains: [
|
|
3774
|
+
contains: [S]
|
|
3817
3775
|
};
|
|
3818
|
-
return
|
|
3776
|
+
return d.push(e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE, b, x, C, y, S, v, t.FUNCTION_DISPATCH), {
|
|
3819
3777
|
name: "Less",
|
|
3820
3778
|
case_insensitive: !0,
|
|
3821
3779
|
illegal: "[=>'/<($\"]",
|
|
3822
|
-
contains:
|
|
3780
|
+
contains: d
|
|
3823
3781
|
};
|
|
3824
3782
|
}
|
|
3825
3783
|
t.exports = d;
|
|
@@ -3829,7 +3787,7 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
3829
3787
|
begin: t,
|
|
3830
3788
|
end: n,
|
|
3831
3789
|
contains: ["self"]
|
|
3832
|
-
}, i = [e.COMMENT("--(
|
|
3790
|
+
}, i = [e.COMMENT("--(?!\\[=*\\[)", "$"), e.COMMENT("--\\[=*\\[", n, {
|
|
3833
3791
|
contains: [r],
|
|
3834
3792
|
relevance: 10
|
|
3835
3793
|
})];
|
|
@@ -4975,14 +4933,14 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
4975
4933
|
className: "title.function.invoke",
|
|
4976
4934
|
relevance: 0,
|
|
4977
4935
|
begin: t.concat(/\b/, /(?!let|for|while|if|else|match\b)/, i, t.lookahead(/\s*\(/))
|
|
4978
|
-
}, o =
|
|
4936
|
+
}, o = /* @__PURE__ */ "abstract.as.async.await.become.box.break.const.continue.crate.do.dyn.else.enum.extern.false.final.fn.for.if.impl.in.let.loop.macro.match.mod.move.mut.override.priv.pub.ref.return.self.Self.static.struct.super.trait.true.try.type.typeof.union.unsafe.unsized.use.virtual.where.while.yield".split("."), s = [
|
|
4979
4937
|
"true",
|
|
4980
4938
|
"false",
|
|
4981
4939
|
"Some",
|
|
4982
4940
|
"None",
|
|
4983
4941
|
"Ok",
|
|
4984
4942
|
"Err"
|
|
4985
|
-
],
|
|
4943
|
+
], c = /* @__PURE__ */ "drop .Copy.Send.Sized.Sync.Drop.Fn.FnMut.FnOnce.ToOwned.Clone.Debug.PartialEq.PartialOrd.Eq.Ord.AsRef.AsMut.Into.From.Default.Iterator.Extend.IntoIterator.DoubleEndedIterator.ExactSizeIterator.SliceConcatExt.ToString.assert!.assert_eq!.bitflags!.bytes!.cfg!.col!.concat!.concat_idents!.debug_assert!.debug_assert_eq!.env!.eprintln!.panic!.file!.format!.format_args!.include_bytes!.include_str!.line!.local_data_key!.module_path!.option_env!.print!.println!.select!.stringify!.try!.unimplemented!.unreachable!.vec!.write!.writeln!.macro_rules!.assert_ne!.debug_assert_ne!".split("."), l = [
|
|
4986
4944
|
"i8",
|
|
4987
4945
|
"i16",
|
|
4988
4946
|
"i32",
|
|
@@ -5011,10 +4969,10 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
5011
4969
|
aliases: ["rs"],
|
|
5012
4970
|
keywords: {
|
|
5013
4971
|
$pattern: e.IDENT_RE + "!?",
|
|
5014
|
-
type:
|
|
5015
|
-
keyword:
|
|
5016
|
-
literal:
|
|
5017
|
-
built_in:
|
|
4972
|
+
type: l,
|
|
4973
|
+
keyword: o,
|
|
4974
|
+
literal: s,
|
|
4975
|
+
built_in: c
|
|
5018
4976
|
},
|
|
5019
4977
|
illegal: "</",
|
|
5020
4978
|
contains: [
|
|
@@ -5042,10 +5000,10 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
5042
5000
|
{
|
|
5043
5001
|
className: "number",
|
|
5044
5002
|
variants: [
|
|
5045
|
-
{ begin: "\\b0b([01_]+)"
|
|
5046
|
-
{ begin: "\\b0o([0-7_]+)"
|
|
5047
|
-
{ begin: "\\b0x([A-Fa-f0-9_]+)"
|
|
5048
|
-
{ begin: "\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"
|
|
5003
|
+
{ begin: "\\b0b([01_]+)([ui](8|16|32|64|128|size)|f(32|64))?" },
|
|
5004
|
+
{ begin: "\\b0o([0-7_]+)([ui](8|16|32|64|128|size)|f(32|64))?" },
|
|
5005
|
+
{ begin: "\\b0x([A-Fa-f0-9_]+)([ui](8|16|32|64|128|size)|f(32|64))?" },
|
|
5006
|
+
{ begin: "\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)([ui](8|16|32|64|128|size)|f(32|64))?" }
|
|
5049
5007
|
],
|
|
5050
5008
|
relevance: 0
|
|
5051
5009
|
},
|
|
@@ -5124,8 +5082,8 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
5124
5082
|
begin: e.IDENT_RE + "::",
|
|
5125
5083
|
keywords: {
|
|
5126
5084
|
keyword: "Self",
|
|
5127
|
-
built_in:
|
|
5128
|
-
type:
|
|
5085
|
+
built_in: c,
|
|
5086
|
+
type: l
|
|
5129
5087
|
}
|
|
5130
5088
|
},
|
|
5131
5089
|
{
|
|
@@ -5717,8 +5675,8 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
5717
5675
|
H("#"),
|
|
5718
5676
|
ee
|
|
5719
5677
|
]
|
|
5720
|
-
},
|
|
5721
|
-
|
|
5678
|
+
}, te = { match: i(/`/, x, /`/) }, W = [
|
|
5679
|
+
te,
|
|
5722
5680
|
{
|
|
5723
5681
|
className: "variable",
|
|
5724
5682
|
match: /\$\d+/
|
|
@@ -5727,7 +5685,7 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
5727
5685
|
className: "variable",
|
|
5728
5686
|
match: `\\$${b}+`
|
|
5729
5687
|
}
|
|
5730
|
-
],
|
|
5688
|
+
], G = [
|
|
5731
5689
|
{
|
|
5732
5690
|
match: /(@|#(un)?)available/,
|
|
5733
5691
|
scope: "keyword",
|
|
@@ -5750,7 +5708,7 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
5750
5708
|
scope: "meta",
|
|
5751
5709
|
match: i(/@/, x)
|
|
5752
5710
|
}
|
|
5753
|
-
],
|
|
5711
|
+
], K = {
|
|
5754
5712
|
match: r(/\b[A-Z]/),
|
|
5755
5713
|
relevance: 0,
|
|
5756
5714
|
contains: [
|
|
@@ -5776,20 +5734,20 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
5776
5734
|
relevance: 0
|
|
5777
5735
|
}
|
|
5778
5736
|
]
|
|
5779
|
-
},
|
|
5737
|
+
}, q = {
|
|
5780
5738
|
begin: /</,
|
|
5781
5739
|
end: />/,
|
|
5782
5740
|
keywords: D,
|
|
5783
5741
|
contains: [
|
|
5784
5742
|
...a,
|
|
5785
5743
|
...O,
|
|
5786
|
-
...
|
|
5744
|
+
...G,
|
|
5787
5745
|
A,
|
|
5788
|
-
|
|
5746
|
+
K
|
|
5789
5747
|
]
|
|
5790
5748
|
};
|
|
5791
|
-
|
|
5792
|
-
let
|
|
5749
|
+
K.contains.push(q);
|
|
5750
|
+
let J = {
|
|
5793
5751
|
begin: /\(/,
|
|
5794
5752
|
end: /\)/,
|
|
5795
5753
|
relevance: 0,
|
|
@@ -5808,16 +5766,16 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
5808
5766
|
...j,
|
|
5809
5767
|
P,
|
|
5810
5768
|
B,
|
|
5769
|
+
...W,
|
|
5811
5770
|
...G,
|
|
5812
|
-
|
|
5813
|
-
q
|
|
5771
|
+
K
|
|
5814
5772
|
]
|
|
5815
|
-
},
|
|
5773
|
+
}, Y = {
|
|
5816
5774
|
begin: /</,
|
|
5817
5775
|
end: />/,
|
|
5818
5776
|
keywords: "repeat each",
|
|
5819
|
-
contains: [...a,
|
|
5820
|
-
},
|
|
5777
|
+
contains: [...a, K]
|
|
5778
|
+
}, ne = {
|
|
5821
5779
|
begin: /\(/,
|
|
5822
5780
|
end: /\)/,
|
|
5823
5781
|
keywords: D,
|
|
@@ -5839,34 +5797,34 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
5839
5797
|
...j,
|
|
5840
5798
|
P,
|
|
5841
5799
|
B,
|
|
5842
|
-
...
|
|
5843
|
-
|
|
5844
|
-
|
|
5800
|
+
...G,
|
|
5801
|
+
K,
|
|
5802
|
+
J
|
|
5845
5803
|
],
|
|
5846
5804
|
endsParent: !0,
|
|
5847
5805
|
illegal: /["']/
|
|
5848
|
-
},
|
|
5806
|
+
}, re = {
|
|
5849
5807
|
match: [
|
|
5850
5808
|
/(func|macro)/,
|
|
5851
5809
|
/\s+/,
|
|
5852
|
-
o(
|
|
5810
|
+
o(te.match, x, v)
|
|
5853
5811
|
],
|
|
5854
5812
|
className: {
|
|
5855
5813
|
1: "keyword",
|
|
5856
5814
|
3: "title.function"
|
|
5857
5815
|
},
|
|
5858
5816
|
contains: [
|
|
5859
|
-
|
|
5860
|
-
|
|
5817
|
+
Y,
|
|
5818
|
+
ne,
|
|
5861
5819
|
t
|
|
5862
5820
|
],
|
|
5863
5821
|
illegal: [/\[/, /%/]
|
|
5864
|
-
},
|
|
5822
|
+
}, X = {
|
|
5865
5823
|
match: [/\b(?:subscript|init[?!]?)/, /\s*(?=[<(])/],
|
|
5866
5824
|
className: { 1: "keyword" },
|
|
5867
5825
|
contains: [
|
|
5868
|
-
|
|
5869
|
-
|
|
5826
|
+
Y,
|
|
5827
|
+
ne,
|
|
5870
5828
|
t
|
|
5871
5829
|
],
|
|
5872
5830
|
illegal: /\[|%/
|
|
@@ -5880,7 +5838,7 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
5880
5838
|
1: "keyword",
|
|
5881
5839
|
3: "title"
|
|
5882
5840
|
}
|
|
5883
|
-
},
|
|
5841
|
+
}, Z = {
|
|
5884
5842
|
begin: [
|
|
5885
5843
|
/precedencegroup/,
|
|
5886
5844
|
/\s+/,
|
|
@@ -5890,10 +5848,10 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
5890
5848
|
1: "keyword",
|
|
5891
5849
|
3: "title"
|
|
5892
5850
|
},
|
|
5893
|
-
contains: [
|
|
5851
|
+
contains: [K],
|
|
5894
5852
|
keywords: [...p, ...f],
|
|
5895
5853
|
end: /}/
|
|
5896
|
-
},
|
|
5854
|
+
}, Q = {
|
|
5897
5855
|
match: [
|
|
5898
5856
|
/class\b/,
|
|
5899
5857
|
/\s+/,
|
|
@@ -5906,7 +5864,7 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
5906
5864
|
3: "keyword",
|
|
5907
5865
|
5: "title.function"
|
|
5908
5866
|
}
|
|
5909
|
-
},
|
|
5867
|
+
}, ae = {
|
|
5910
5868
|
match: [
|
|
5911
5869
|
/class\b/,
|
|
5912
5870
|
/\s+/,
|
|
@@ -5916,7 +5874,7 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
5916
5874
|
1: "keyword",
|
|
5917
5875
|
3: "keyword"
|
|
5918
5876
|
}
|
|
5919
|
-
},
|
|
5877
|
+
}, oe = {
|
|
5920
5878
|
begin: [
|
|
5921
5879
|
/(struct|protocol|class|extension|enum|actor)/,
|
|
5922
5880
|
/\s+/,
|
|
@@ -5929,7 +5887,7 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
5929
5887
|
},
|
|
5930
5888
|
keywords: D,
|
|
5931
5889
|
contains: [
|
|
5932
|
-
|
|
5890
|
+
Y,
|
|
5933
5891
|
...O,
|
|
5934
5892
|
{
|
|
5935
5893
|
begin: /:/,
|
|
@@ -5952,7 +5910,7 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
5952
5910
|
...j,
|
|
5953
5911
|
P,
|
|
5954
5912
|
B,
|
|
5955
|
-
...
|
|
5913
|
+
...W
|
|
5956
5914
|
];
|
|
5957
5915
|
t.contains = [...n, {
|
|
5958
5916
|
begin: /\(/,
|
|
@@ -5965,13 +5923,13 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
5965
5923
|
keywords: D,
|
|
5966
5924
|
contains: [
|
|
5967
5925
|
...a,
|
|
5968
|
-
ne,
|
|
5969
5926
|
re,
|
|
5927
|
+
X,
|
|
5928
|
+
Q,
|
|
5929
|
+
ae,
|
|
5970
5930
|
oe,
|
|
5971
|
-
se,
|
|
5972
|
-
ce,
|
|
5973
5931
|
ie,
|
|
5974
|
-
|
|
5932
|
+
Z,
|
|
5975
5933
|
{
|
|
5976
5934
|
beginKeywords: "import",
|
|
5977
5935
|
end: /$/,
|
|
@@ -5984,24 +5942,24 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
5984
5942
|
...j,
|
|
5985
5943
|
P,
|
|
5986
5944
|
B,
|
|
5945
|
+
...W,
|
|
5987
5946
|
...G,
|
|
5988
|
-
|
|
5989
|
-
|
|
5990
|
-
Y
|
|
5947
|
+
K,
|
|
5948
|
+
J
|
|
5991
5949
|
]
|
|
5992
5950
|
};
|
|
5993
5951
|
}
|
|
5994
5952
|
t.exports = T;
|
|
5995
|
-
})),
|
|
5953
|
+
})), te = /* @__PURE__ */ l(((e, t) => {
|
|
5996
5954
|
function n(e) {
|
|
5997
|
-
let t = "true false yes no null", n =
|
|
5955
|
+
let t = "true false yes no null", n = {
|
|
5998
5956
|
className: "attr",
|
|
5999
5957
|
variants: [
|
|
6000
5958
|
{ begin: /[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/ },
|
|
6001
5959
|
{ begin: /"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/ },
|
|
6002
5960
|
{ begin: /'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/ }
|
|
6003
5961
|
]
|
|
6004
|
-
},
|
|
5962
|
+
}, r = {
|
|
6005
5963
|
className: "template-variable",
|
|
6006
5964
|
variants: [{
|
|
6007
5965
|
begin: /\{\{/,
|
|
@@ -6010,7 +5968,7 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
6010
5968
|
begin: /%\{/,
|
|
6011
5969
|
end: /\}/
|
|
6012
5970
|
}]
|
|
6013
|
-
},
|
|
5971
|
+
}, i = {
|
|
6014
5972
|
className: "string",
|
|
6015
5973
|
relevance: 0,
|
|
6016
5974
|
begin: /'/,
|
|
@@ -6020,15 +5978,15 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
6020
5978
|
scope: "char.escape",
|
|
6021
5979
|
relevance: 0
|
|
6022
5980
|
}]
|
|
6023
|
-
},
|
|
5981
|
+
}, a = {
|
|
6024
5982
|
className: "string",
|
|
6025
5983
|
relevance: 0,
|
|
6026
5984
|
variants: [{
|
|
6027
5985
|
begin: /"/,
|
|
6028
5986
|
end: /"/
|
|
6029
5987
|
}, { begin: /\S+/ }],
|
|
6030
|
-
contains: [e.BACKSLASH_ESCAPE,
|
|
6031
|
-
},
|
|
5988
|
+
contains: [e.BACKSLASH_ESCAPE, r]
|
|
5989
|
+
}, o = e.inherit(a, { variants: [
|
|
6032
5990
|
{
|
|
6033
5991
|
begin: /'/,
|
|
6034
5992
|
end: /'/,
|
|
@@ -6042,29 +6000,29 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
6042
6000
|
end: /"/
|
|
6043
6001
|
},
|
|
6044
6002
|
{ begin: /[^\s,{}[\]]+/ }
|
|
6045
|
-
] }),
|
|
6003
|
+
] }), s = {
|
|
6046
6004
|
className: "number",
|
|
6047
6005
|
begin: "\\b[0-9]{4}(-[0-9][0-9]){0,2}([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?(\\.[0-9]*)?([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?\\b"
|
|
6048
|
-
},
|
|
6006
|
+
}, c = {
|
|
6049
6007
|
end: ",",
|
|
6050
6008
|
endsWithParent: !0,
|
|
6051
6009
|
excludeEnd: !0,
|
|
6052
6010
|
keywords: t,
|
|
6053
6011
|
relevance: 0
|
|
6054
|
-
},
|
|
6012
|
+
}, l = {
|
|
6055
6013
|
begin: /\{/,
|
|
6056
6014
|
end: /\}/,
|
|
6057
|
-
contains: [
|
|
6015
|
+
contains: [c],
|
|
6058
6016
|
illegal: "\\n",
|
|
6059
6017
|
relevance: 0
|
|
6060
|
-
},
|
|
6018
|
+
}, u = {
|
|
6061
6019
|
begin: "\\[",
|
|
6062
6020
|
end: "\\]",
|
|
6063
|
-
contains: [
|
|
6021
|
+
contains: [c],
|
|
6064
6022
|
illegal: "\\n",
|
|
6065
6023
|
relevance: 0
|
|
6066
|
-
},
|
|
6067
|
-
|
|
6024
|
+
}, d = [
|
|
6025
|
+
n,
|
|
6068
6026
|
{
|
|
6069
6027
|
className: "meta",
|
|
6070
6028
|
begin: "^---\\s*$",
|
|
@@ -6084,19 +6042,19 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
6084
6042
|
},
|
|
6085
6043
|
{
|
|
6086
6044
|
className: "type",
|
|
6087
|
-
begin: "!\\w+!"
|
|
6045
|
+
begin: "!\\w+![\\w#;/?:@&=+$,.~*'()[\\]]+"
|
|
6088
6046
|
},
|
|
6089
6047
|
{
|
|
6090
6048
|
className: "type",
|
|
6091
|
-
begin: "!<"
|
|
6049
|
+
begin: "!<[\\w#;/?:@&=+$,.~*'()[\\]]+>"
|
|
6092
6050
|
},
|
|
6093
6051
|
{
|
|
6094
6052
|
className: "type",
|
|
6095
|
-
begin: "!"
|
|
6053
|
+
begin: "![\\w#;/?:@&=+$,.~*'()[\\]]+"
|
|
6096
6054
|
},
|
|
6097
6055
|
{
|
|
6098
6056
|
className: "type",
|
|
6099
|
-
begin: "!!"
|
|
6057
|
+
begin: "!![\\w#;/?:@&=+$,.~*'()[\\]]+"
|
|
6100
6058
|
},
|
|
6101
6059
|
{
|
|
6102
6060
|
className: "meta",
|
|
@@ -6116,26 +6074,26 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
6116
6074
|
beginKeywords: t,
|
|
6117
6075
|
keywords: { literal: t }
|
|
6118
6076
|
},
|
|
6119
|
-
|
|
6077
|
+
s,
|
|
6120
6078
|
{
|
|
6121
6079
|
className: "number",
|
|
6122
6080
|
begin: e.C_NUMBER_RE + "\\b",
|
|
6123
6081
|
relevance: 0
|
|
6124
6082
|
},
|
|
6083
|
+
l,
|
|
6125
6084
|
u,
|
|
6126
|
-
|
|
6127
|
-
a
|
|
6128
|
-
|
|
6129
|
-
|
|
6130
|
-
return p.pop(), p.push(s), l.contains = p, {
|
|
6085
|
+
i,
|
|
6086
|
+
a
|
|
6087
|
+
], f = [...d];
|
|
6088
|
+
return f.pop(), f.push(o), c.contains = f, {
|
|
6131
6089
|
name: "YAML",
|
|
6132
6090
|
case_insensitive: !0,
|
|
6133
6091
|
aliases: ["yml"],
|
|
6134
|
-
contains:
|
|
6092
|
+
contains: d
|
|
6135
6093
|
};
|
|
6136
6094
|
}
|
|
6137
6095
|
t.exports = n;
|
|
6138
|
-
})),
|
|
6096
|
+
})), W = /* @__PURE__ */ l(((e, t) => {
|
|
6139
6097
|
var n = "[A-Za-z$_][0-9A-Za-z$_]*", r = /* @__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("."), i = [
|
|
6140
6098
|
"true",
|
|
6141
6099
|
"false",
|
|
@@ -6288,7 +6246,7 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
6288
6246
|
},
|
|
6289
6247
|
{
|
|
6290
6248
|
className: "variable",
|
|
6291
|
-
begin:
|
|
6249
|
+
begin: "[A-Za-z$_][0-9A-Za-z$_]*(?=\\s*(-)|$)",
|
|
6292
6250
|
endsParent: !0,
|
|
6293
6251
|
relevance: 0
|
|
6294
6252
|
},
|
|
@@ -6553,7 +6511,7 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
6553
6511
|
},
|
|
6554
6512
|
L,
|
|
6555
6513
|
{
|
|
6556
|
-
match: "\\$"
|
|
6514
|
+
match: "\\$[A-Za-z$_][0-9A-Za-z$_]*",
|
|
6557
6515
|
relevance: 0
|
|
6558
6516
|
},
|
|
6559
6517
|
{
|
|
@@ -6625,7 +6583,7 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
6625
6583
|
"variable.language": c
|
|
6626
6584
|
}, h = {
|
|
6627
6585
|
className: "meta",
|
|
6628
|
-
begin: "@"
|
|
6586
|
+
begin: "@[A-Za-z$_][0-9A-Za-z$_]*"
|
|
6629
6587
|
}, g = (e, t, n) => {
|
|
6630
6588
|
let r = e.contains.findIndex((e) => e.label === t);
|
|
6631
6589
|
if (r === -1) throw Error("can not find mode to replace");
|
|
@@ -6655,7 +6613,7 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
6655
6613
|
}), a;
|
|
6656
6614
|
}
|
|
6657
6615
|
t.exports = d;
|
|
6658
|
-
})),
|
|
6616
|
+
})), G = /* @__PURE__ */ l(((e, t) => {
|
|
6659
6617
|
function n(e) {
|
|
6660
6618
|
let t = e.regex, n = {
|
|
6661
6619
|
className: "string",
|
|
@@ -6723,7 +6681,7 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
6723
6681
|
};
|
|
6724
6682
|
}
|
|
6725
6683
|
t.exports = n;
|
|
6726
|
-
})),
|
|
6684
|
+
})), K = /* @__PURE__ */ l(((e, t) => {
|
|
6727
6685
|
function n(e) {
|
|
6728
6686
|
e.regex;
|
|
6729
6687
|
let t = e.COMMENT(/\(;/, /;\)/);
|
|
@@ -6785,10 +6743,10 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
6785
6743
|
};
|
|
6786
6744
|
}
|
|
6787
6745
|
t.exports = n;
|
|
6788
|
-
})),
|
|
6746
|
+
})), q = (/* @__PURE__ */ d((/* @__PURE__ */ l(((e, t) => {
|
|
6789
6747
|
var n = f();
|
|
6790
|
-
n.registerLanguage("xml", p()), n.registerLanguage("bash", m()), n.registerLanguage("c", h()), n.registerLanguage("cpp", g()), n.registerLanguage("csharp", _()), n.registerLanguage("css", v()), n.registerLanguage("markdown", y()), n.registerLanguage("diff", b()), n.registerLanguage("ruby", x()), n.registerLanguage("go", S()), n.registerLanguage("graphql", C()), n.registerLanguage("ini", w()), n.registerLanguage("java", T()), n.registerLanguage("javascript", E()), n.registerLanguage("json", D()), n.registerLanguage("kotlin", O()), n.registerLanguage("less", k()), n.registerLanguage("lua", A()), n.registerLanguage("makefile", j()), n.registerLanguage("perl", M()), n.registerLanguage("objectivec", N()), n.registerLanguage("php", P()), n.registerLanguage("php-template", F()), n.registerLanguage("plaintext", I()), n.registerLanguage("python", L()), n.registerLanguage("python-repl", R()), n.registerLanguage("r", z()), n.registerLanguage("rust", B()), n.registerLanguage("scss", V()), n.registerLanguage("shell", ee()), n.registerLanguage("sql", H()), n.registerLanguage("swift", U()), n.registerLanguage("yaml",
|
|
6791
|
-
})))())).default,
|
|
6748
|
+
n.registerLanguage("xml", p()), n.registerLanguage("bash", m()), n.registerLanguage("c", h()), n.registerLanguage("cpp", g()), n.registerLanguage("csharp", _()), n.registerLanguage("css", v()), n.registerLanguage("markdown", y()), n.registerLanguage("diff", b()), n.registerLanguage("ruby", x()), n.registerLanguage("go", S()), n.registerLanguage("graphql", C()), n.registerLanguage("ini", w()), n.registerLanguage("java", T()), n.registerLanguage("javascript", E()), n.registerLanguage("json", D()), n.registerLanguage("kotlin", O()), n.registerLanguage("less", k()), n.registerLanguage("lua", A()), n.registerLanguage("makefile", j()), n.registerLanguage("perl", M()), n.registerLanguage("objectivec", N()), n.registerLanguage("php", P()), n.registerLanguage("php-template", F()), n.registerLanguage("plaintext", I()), n.registerLanguage("python", L()), n.registerLanguage("python-repl", R()), n.registerLanguage("r", z()), n.registerLanguage("rust", B()), n.registerLanguage("scss", V()), n.registerLanguage("shell", ee()), n.registerLanguage("sql", H()), n.registerLanguage("swift", U()), n.registerLanguage("yaml", te()), n.registerLanguage("typescript", W()), n.registerLanguage("vbnet", G()), n.registerLanguage("wasm", K()), n.HighlightJS = n, n.default = n, t.exports = n;
|
|
6749
|
+
})))())).default, J = new n({
|
|
6792
6750
|
breaks: !1,
|
|
6793
6751
|
html: !1,
|
|
6794
6752
|
linkTarget: "_blank",
|
|
@@ -6797,22 +6755,22 @@ import '../styles/markdown.css';var r = Object.create, i = Object.defineProperty
|
|
|
6797
6755
|
highlight(e, n) {
|
|
6798
6756
|
let r = (e) => e.trim().split(/\r?\n/).map((e, n) => `<div class="${t.hljsLine}"><span class="${t.hljsLineNumber}">${n + 1}</span><span class="${t.hljsLineContent}">${e}</span></div>`).join("\n");
|
|
6799
6757
|
try {
|
|
6800
|
-
let i = n &&
|
|
6758
|
+
let i = n && q.getLanguage(n) ? q.highlight(n, e).value : q.highlightAuto(e).value, a = n && q.getLanguage(n) ? n : "auto";
|
|
6801
6759
|
return `<pre class="${t.hljs}" tabindex="0"><span class="${t.hljsLanguage}">${a}</span><code>${r(i)}</code></pre>`;
|
|
6802
6760
|
} catch {}
|
|
6803
6761
|
return "";
|
|
6804
6762
|
}
|
|
6805
6763
|
});
|
|
6806
|
-
|
|
6764
|
+
J.renderer.rules.table_open = () => `<div class="${t.tableWrapper}" tabindex="0"><table>`, J.renderer.rules.table_close = () => "</table></div>", J.renderer.rules.link_open = (t, n) => {
|
|
6807
6765
|
let { href: r } = t[n], i = "", a = !1;
|
|
6808
6766
|
try {
|
|
6809
6767
|
a = e(r), i = a ? `<a href="${r}" target="_blank">` : "";
|
|
6810
6768
|
} catch {
|
|
6811
6769
|
i = "", a = !1;
|
|
6812
6770
|
} finally {
|
|
6813
|
-
a ?
|
|
6771
|
+
a ? J.renderer.rules.link_close = () => "</a>" : J.renderer.rules.link_close = () => ` (${r})`;
|
|
6814
6772
|
}
|
|
6815
6773
|
return i;
|
|
6816
6774
|
};
|
|
6817
|
-
var
|
|
6818
|
-
export {
|
|
6775
|
+
var Y = (e) => J.render(e);
|
|
6776
|
+
export { Y as t };
|