@kingsimba/nc-ui 0.1.0 → 0.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/yaml.js ADDED
@@ -0,0 +1,4646 @@
1
+ import { jsx as de, Fragment as qt, jsxs as en } from "react/jsx-runtime";
2
+ import Zt, { createElement as Vt, useCallback as be, useMemo as ln, useState as Sn, useRef as Ne, useEffect as nn } from "react";
3
+ import { c as Vn } from "./clsx-OuTLNxxd.js";
4
+ var re = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Xn = {}, $ = re && re.__assign || function() {
5
+ return $ = Object.assign || function(e) {
6
+ for (var n, t = 1, a = arguments.length; t < a; t++) {
7
+ n = arguments[t];
8
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
9
+ }
10
+ return e;
11
+ }, $.apply(this, arguments);
12
+ }, Xt = re && re.__createBinding || (Object.create ? function(e, n, t, a) {
13
+ a === void 0 && (a = t);
14
+ var r = Object.getOwnPropertyDescriptor(n, t);
15
+ (!r || ("get" in r ? !n.__esModule : r.writable || r.configurable)) && (r = { enumerable: !0, get: function() {
16
+ return n[t];
17
+ } }), Object.defineProperty(e, a, r);
18
+ } : function(e, n, t, a) {
19
+ a === void 0 && (a = t), e[a] = n[t];
20
+ }), Qt = re && re.__setModuleDefault || (Object.create ? function(e, n) {
21
+ Object.defineProperty(e, "default", { enumerable: !0, value: n });
22
+ } : function(e, n) {
23
+ e.default = n;
24
+ }), Jt = re && re.__importStar || function(e) {
25
+ if (e && e.__esModule) return e;
26
+ var n = {};
27
+ if (e != null) for (var t in e) t !== "default" && Object.prototype.hasOwnProperty.call(e, t) && Xt(n, e, t);
28
+ return Qt(n, e), n;
29
+ }, er = re && re.__rest || function(e, n) {
30
+ var t = {};
31
+ for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && n.indexOf(a) < 0 && (t[a] = e[a]);
32
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
33
+ for (var r = 0, a = Object.getOwnPropertySymbols(e); r < a.length; r++)
34
+ n.indexOf(a[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[r]) && (t[a[r]] = e[a[r]]);
35
+ return t;
36
+ };
37
+ Object.defineProperty(Xn, "__esModule", { value: !0 });
38
+ var X = Jt(Zt), nr = 89, ze = 90, tr = 77, _n = 57, Fn = 219, Cn = 222, Tn = 192, On = 100, rr = 3e3, ar = typeof window < "u" && "navigator" in window && /Win/i.test(navigator.platform), tn = typeof window < "u" && "navigator" in window && /(Mac|iPhone|iPod|iPad)/i.test(navigator.platform), Ye = "npm__react-simple-code-editor__textarea", ir = (
39
+ /* CSS */
40
+ `
41
+ /**
42
+ * Reset the text fill color so that placeholder is visible
43
+ */
44
+ .`.concat(Ye, `:empty {
45
+ -webkit-text-fill-color: inherit !important;
46
+ }
47
+
48
+ /**
49
+ * Hack to apply on some CSS on IE10 and IE11
50
+ */
51
+ @media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
52
+ /**
53
+ * IE doesn't support '-webkit-text-fill-color'
54
+ * So we use 'color: transparent' to make the text transparent on IE
55
+ * Unlike other browsers, it doesn't affect caret color in IE
56
+ */
57
+ .`).concat(Ye, ` {
58
+ color: transparent !important;
59
+ }
60
+
61
+ .`).concat(Ye, `::selection {
62
+ background-color: #accef7 !important;
63
+ color: transparent !important;
64
+ }
65
+ }
66
+ `)
67
+ ), or = X.forwardRef(function(n, t) {
68
+ var a = n.autoFocus, r = n.disabled, o = n.form, i = n.highlight, l = n.ignoreTabKey, s = l === void 0 ? !1 : l, c = n.insertSpaces, g = c === void 0 ? !0 : c, p = n.maxLength, m = n.minLength, v = n.name, u = n.onBlur, f = n.onClick, d = n.onFocus, b = n.onKeyDown, y = n.onKeyUp, w = n.onValueChange, E = n.padding, k = E === void 0 ? 0 : E, R = n.placeholder, O = n.preClassName, P = n.readOnly, F = n.required, L = n.style, I = n.tabSize, K = I === void 0 ? 2 : I, se = n.textareaClassName, N = n.textareaId, Y = n.value, Q = er(n, ["autoFocus", "disabled", "form", "highlight", "ignoreTabKey", "insertSpaces", "maxLength", "minLength", "name", "onBlur", "onClick", "onFocus", "onKeyDown", "onKeyUp", "onValueChange", "padding", "placeholder", "preClassName", "readOnly", "required", "style", "tabSize", "textareaClassName", "textareaId", "value"]), C = X.useRef({
69
+ stack: [],
70
+ offset: -1
71
+ }), j = X.useRef(null), xe = X.useState(!0), V = xe[0], ae = xe[1], he = {
72
+ paddingTop: typeof k == "object" ? k.top : k,
73
+ paddingRight: typeof k == "object" ? k.right : k,
74
+ paddingBottom: typeof k == "object" ? k.bottom : k,
75
+ paddingLeft: typeof k == "object" ? k.left : k
76
+ }, ue = i(Y), J = function(x, T) {
77
+ return x.substring(0, T).split(`
78
+ `);
79
+ }, me = X.useCallback(function(x, T) {
80
+ var S, _, D;
81
+ T === void 0 && (T = !1);
82
+ var G = C.current, ie = G.stack, Te = G.offset;
83
+ if (ie.length && Te > -1) {
84
+ C.current.stack = ie.slice(0, Te + 1);
85
+ var Oe = C.current.stack.length;
86
+ if (Oe > On) {
87
+ var Ae = Oe - On;
88
+ C.current.stack = ie.slice(Ae, Oe), C.current.offset = Math.max(C.current.offset - Ae, 0);
89
+ }
90
+ }
91
+ var ee = Date.now();
92
+ if (T) {
93
+ var fe = C.current.stack[C.current.offset];
94
+ if (fe && ee - fe.timestamp < rr) {
95
+ var Ie = /[^a-z0-9]([a-z0-9]+)$/i, q = (S = J(fe.value, fe.selectionStart).pop()) === null || S === void 0 ? void 0 : S.match(Ie), Le = (_ = J(x.value, x.selectionStart).pop()) === null || _ === void 0 ? void 0 : _.match(Ie);
96
+ if (q != null && q[1] && (!((D = Le == null ? void 0 : Le[1]) === null || D === void 0) && D.startsWith(q[1]))) {
97
+ C.current.stack[C.current.offset] = $($({}, x), { timestamp: ee });
98
+ return;
99
+ }
100
+ }
101
+ }
102
+ C.current.stack.push($($({}, x), { timestamp: ee })), C.current.offset++;
103
+ }, []), we = X.useCallback(function() {
104
+ var x = j.current;
105
+ if (x) {
106
+ var T = x.value, S = x.selectionStart, _ = x.selectionEnd;
107
+ me({
108
+ value: T,
109
+ selectionStart: S,
110
+ selectionEnd: _
111
+ });
112
+ }
113
+ }, [me]), ce = function(x) {
114
+ var T = j.current;
115
+ T && (T.value = x.value, T.selectionStart = x.selectionStart, T.selectionEnd = x.selectionEnd, w == null || w(x.value));
116
+ }, pe = function(x) {
117
+ var T = j.current, S = C.current.stack[C.current.offset];
118
+ S && T && (C.current.stack[C.current.offset] = $($({}, S), { selectionStart: T.selectionStart, selectionEnd: T.selectionEnd })), me(x), ce(x);
119
+ }, Ce = function() {
120
+ var x = C.current, T = x.stack, S = x.offset, _ = T[S - 1];
121
+ _ && (ce(_), C.current.offset = Math.max(S - 1, 0));
122
+ }, Gt = function() {
123
+ var x = C.current, T = x.stack, S = x.offset, _ = T[S + 1];
124
+ _ && (ce(_), C.current.offset = Math.min(S + 1, T.length - 1));
125
+ }, Ht = function(x) {
126
+ if (!(b && (b(x), x.defaultPrevented))) {
127
+ x.key === "Escape" && x.currentTarget.blur();
128
+ var T = x.currentTarget, S = T.value, _ = T.selectionStart, D = T.selectionEnd, G = (g ? " " : " ").repeat(K);
129
+ if (x.key === "Tab" && !s && V)
130
+ if (x.preventDefault(), x.shiftKey) {
131
+ var ie = J(S, _), Te = ie.length - 1, Oe = J(S, D).length - 1, Ae = S.split(`
132
+ `).map(function(Re, An) {
133
+ return An >= Te && An <= Oe && Re.startsWith(G) ? Re.substring(G.length) : Re;
134
+ }).join(`
135
+ `);
136
+ if (S !== Ae) {
137
+ var ee = ie[Te];
138
+ pe({
139
+ value: Ae,
140
+ // Move the start cursor if first line in selection was modified
141
+ // It was modified only if it started with a tab
142
+ selectionStart: ee != null && ee.startsWith(G) ? _ - G.length : _,
143
+ // Move the end cursor by total number of characters removed
144
+ selectionEnd: D - (S.length - Ae.length)
145
+ });
146
+ }
147
+ } else if (_ !== D) {
148
+ var ie = J(S, _), fe = ie.length - 1, Ie = J(S, D).length - 1, ee = ie[fe];
149
+ pe({
150
+ value: S.split(`
151
+ `).map(function(kn, En) {
152
+ return En >= fe && En <= Ie ? G + kn : kn;
153
+ }).join(`
154
+ `),
155
+ // Move the start cursor by number of characters added in first line of selection
156
+ // Don't move it if it there was no text before cursor
157
+ selectionStart: ee && /\S/.test(ee) ? _ + G.length : _,
158
+ // Move the end cursor by total number of characters added
159
+ selectionEnd: D + G.length * (Ie - fe + 1)
160
+ });
161
+ } else {
162
+ var q = _ + G.length;
163
+ pe({
164
+ // Insert tab character at caret
165
+ value: S.substring(0, _) + G + S.substring(D),
166
+ // Update caret position
167
+ selectionStart: q,
168
+ selectionEnd: q
169
+ });
170
+ }
171
+ else if (x.key === "Backspace") {
172
+ var Le = _ !== D, Wt = S.substring(0, _);
173
+ if (Wt.endsWith(G) && !Le) {
174
+ x.preventDefault();
175
+ var q = _ - G.length;
176
+ pe({
177
+ // Remove tab character at caret
178
+ value: S.substring(0, _ - G.length) + S.substring(D),
179
+ // Update caret position
180
+ selectionStart: q,
181
+ selectionEnd: q
182
+ });
183
+ }
184
+ } else if (x.key === "Enter") {
185
+ if (_ === D) {
186
+ var Je = J(S, _).pop(), Ue = Je == null ? void 0 : Je.match(/^\s+/);
187
+ if (Ue != null && Ue[0]) {
188
+ x.preventDefault();
189
+ var wn = `
190
+ ` + Ue[0], q = _ + wn.length;
191
+ pe({
192
+ // Insert indentation character at caret
193
+ value: S.substring(0, _) + wn + S.substring(D),
194
+ // Update caret position
195
+ selectionStart: q,
196
+ selectionEnd: q
197
+ });
198
+ }
199
+ }
200
+ } else if (x.keyCode === _n || x.keyCode === Fn || x.keyCode === Cn || x.keyCode === Tn) {
201
+ var oe = void 0;
202
+ x.keyCode === _n && x.shiftKey ? oe = ["(", ")"] : x.keyCode === Fn ? x.shiftKey ? oe = ["{", "}"] : oe = ["[", "]"] : x.keyCode === Cn ? x.shiftKey ? oe = ['"', '"'] : oe = ["'", "'"] : x.keyCode === Tn && !x.shiftKey && (oe = ["`", "`"]), _ !== D && oe && (x.preventDefault(), pe({
203
+ value: S.substring(0, _) + oe[0] + S.substring(_, D) + oe[1] + S.substring(D),
204
+ // Update caret position
205
+ selectionStart: _,
206
+ selectionEnd: D + 2
207
+ }));
208
+ } else (tn ? (
209
+ // Trigger undo with ⌘+Z on Mac
210
+ x.metaKey && x.keyCode === ze
211
+ ) : (
212
+ // Trigger undo with Ctrl+Z on other platforms
213
+ x.ctrlKey && x.keyCode === ze
214
+ )) && !x.shiftKey && !x.altKey ? (x.preventDefault(), Ce()) : (tn ? (
215
+ // Trigger redo with ⌘+Shift+Z on Mac
216
+ x.metaKey && x.keyCode === ze && x.shiftKey
217
+ ) : ar ? (
218
+ // Trigger redo with Ctrl+Y on Windows
219
+ x.ctrlKey && x.keyCode === nr
220
+ ) : (
221
+ // Trigger redo with Ctrl+Shift+Z on other platforms
222
+ x.ctrlKey && x.keyCode === ze && x.shiftKey
223
+ )) && !x.altKey ? (x.preventDefault(), Gt()) : x.keyCode === tr && x.ctrlKey && (!tn || x.shiftKey) && (x.preventDefault(), ae(function(Re) {
224
+ return !Re;
225
+ }));
226
+ }
227
+ }, Kt = function(x) {
228
+ var T = x.currentTarget, S = T.value, _ = T.selectionStart, D = T.selectionEnd;
229
+ me({
230
+ value: S,
231
+ selectionStart: _,
232
+ selectionEnd: D
233
+ }, !0), w(S);
234
+ };
235
+ return X.useEffect(function() {
236
+ we();
237
+ }, [we]), X.useImperativeHandle(t, function() {
238
+ return {
239
+ get session() {
240
+ return {
241
+ history: C.current
242
+ };
243
+ },
244
+ set session(x) {
245
+ C.current = x.history;
246
+ }
247
+ };
248
+ }, []), X.createElement(
249
+ "div",
250
+ $({}, Q, { style: $($({}, De.container), L) }),
251
+ X.createElement("pre", $({ className: O, "aria-hidden": "true", style: $($($({}, De.editor), De.highlight), he) }, typeof ue == "string" ? { dangerouslySetInnerHTML: { __html: ue + "<br />" } } : { children: ue })),
252
+ X.createElement("textarea", { ref: function(x) {
253
+ return j.current = x;
254
+ }, style: $($($({}, De.editor), De.textarea), he), className: Ye + (se ? " ".concat(se) : ""), id: N, value: Y, onChange: Kt, onKeyDown: Ht, onClick: f, onKeyUp: y, onFocus: d, onBlur: u, disabled: r, form: o, maxLength: p, minLength: m, name: v, placeholder: R, readOnly: P, required: F, autoFocus: a, autoCapitalize: "off", autoComplete: "off", autoCorrect: "off", spellCheck: !1, "data-gramm": !1 }),
255
+ X.createElement("style", { dangerouslySetInnerHTML: { __html: ir } })
256
+ );
257
+ }), De = {
258
+ container: {
259
+ position: "relative",
260
+ textAlign: "left",
261
+ boxSizing: "border-box",
262
+ padding: 0,
263
+ overflow: "hidden"
264
+ },
265
+ textarea: {
266
+ position: "absolute",
267
+ top: 0,
268
+ left: 0,
269
+ height: "100%",
270
+ width: "100%",
271
+ resize: "none",
272
+ color: "inherit",
273
+ overflow: "hidden",
274
+ MozOsxFontSmoothing: "grayscale",
275
+ WebkitFontSmoothing: "antialiased",
276
+ WebkitTextFillColor: "transparent"
277
+ },
278
+ highlight: {
279
+ position: "relative",
280
+ pointerEvents: "none"
281
+ },
282
+ editor: {
283
+ margin: 0,
284
+ border: 0,
285
+ background: "none",
286
+ boxSizing: "inherit",
287
+ display: "inherit",
288
+ fontFamily: "inherit",
289
+ fontSize: "inherit",
290
+ fontStyle: "inherit",
291
+ fontVariantLigatures: "inherit",
292
+ fontWeight: "inherit",
293
+ letterSpacing: "inherit",
294
+ lineHeight: "inherit",
295
+ tabSize: "inherit",
296
+ textIndent: "inherit",
297
+ textRendering: "inherit",
298
+ textTransform: "inherit",
299
+ whiteSpace: "pre-wrap",
300
+ wordBreak: "keep-all",
301
+ overflowWrap: "break-word"
302
+ }
303
+ }, lr = Xn.default = or, sr = Object.create, Ve = Object.defineProperty, ur = Object.defineProperties, cr = Object.getOwnPropertyDescriptor, pr = Object.getOwnPropertyDescriptors, Qn = Object.getOwnPropertyNames, Ge = Object.getOwnPropertySymbols, fr = Object.getPrototypeOf, gn = Object.prototype.hasOwnProperty, Jn = Object.prototype.propertyIsEnumerable, In = (e, n, t) => n in e ? Ve(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t, ne = (e, n) => {
304
+ for (var t in n || (n = {}))
305
+ gn.call(n, t) && In(e, t, n[t]);
306
+ if (Ge)
307
+ for (var t of Ge(n))
308
+ Jn.call(n, t) && In(e, t, n[t]);
309
+ return e;
310
+ }, Xe = (e, n) => ur(e, pr(n)), et = (e, n) => {
311
+ var t = {};
312
+ for (var a in e)
313
+ gn.call(e, a) && n.indexOf(a) < 0 && (t[a] = e[a]);
314
+ if (e != null && Ge)
315
+ for (var a of Ge(e))
316
+ n.indexOf(a) < 0 && Jn.call(e, a) && (t[a] = e[a]);
317
+ return t;
318
+ }, dr = (e, n) => function() {
319
+ return n || (0, e[Qn(e)[0]])((n = { exports: {} }).exports, n), n.exports;
320
+ }, gr = (e, n) => {
321
+ for (var t in n)
322
+ Ve(e, t, { get: n[t], enumerable: !0 });
323
+ }, yr = (e, n, t, a) => {
324
+ if (n && typeof n == "object" || typeof n == "function")
325
+ for (let r of Qn(n))
326
+ !gn.call(e, r) && r !== t && Ve(e, r, { get: () => n[r], enumerable: !(a = cr(n, r)) || a.enumerable });
327
+ return e;
328
+ }, hr = (e, n, t) => (t = e != null ? sr(fr(e)) : {}, yr(
329
+ // If the importer is in node compatibility mode or this is not an ESM
330
+ // file that has been converted to a CommonJS file using a Babel-
331
+ // compatible transform (i.e. "__esModule" has not been set), then set
332
+ // "default" to the CommonJS "module.exports" for node compatibility.
333
+ !e || !e.__esModule ? Ve(t, "default", { value: e, enumerable: !0 }) : t,
334
+ e
335
+ )), mr = dr({
336
+ "../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(e, n) {
337
+ var t = function() {
338
+ var a = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, r = 0, o = {}, i = {
339
+ /**
340
+ * A namespace for utility methods.
341
+ *
342
+ * All function in this namespace that are not explicitly marked as _public_ are for __internal use only__ and may
343
+ * change or disappear at any time.
344
+ *
345
+ * @namespace
346
+ * @memberof Prism
347
+ */
348
+ util: {
349
+ encode: function u(f) {
350
+ return f instanceof l ? new l(f.type, u(f.content), f.alias) : Array.isArray(f) ? f.map(u) : f.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/\u00a0/g, " ");
351
+ },
352
+ /**
353
+ * Returns the name of the type of the given value.
354
+ *
355
+ * @param {any} o
356
+ * @returns {string}
357
+ * @example
358
+ * type(null) === 'Null'
359
+ * type(undefined) === 'Undefined'
360
+ * type(123) === 'Number'
361
+ * type('foo') === 'String'
362
+ * type(true) === 'Boolean'
363
+ * type([1, 2]) === 'Array'
364
+ * type({}) === 'Object'
365
+ * type(String) === 'Function'
366
+ * type(/abc+/) === 'RegExp'
367
+ */
368
+ type: function(u) {
369
+ return Object.prototype.toString.call(u).slice(8, -1);
370
+ },
371
+ /**
372
+ * Returns a unique number for the given object. Later calls will still return the same number.
373
+ *
374
+ * @param {Object} obj
375
+ * @returns {number}
376
+ */
377
+ objId: function(u) {
378
+ return u.__id || Object.defineProperty(u, "__id", { value: ++r }), u.__id;
379
+ },
380
+ /**
381
+ * Creates a deep clone of the given object.
382
+ *
383
+ * The main intended use of this function is to clone language definitions.
384
+ *
385
+ * @param {T} o
386
+ * @param {Record<number, any>} [visited]
387
+ * @returns {T}
388
+ * @template T
389
+ */
390
+ clone: function u(f, d) {
391
+ d = d || {};
392
+ var b, y;
393
+ switch (i.util.type(f)) {
394
+ case "Object":
395
+ if (y = i.util.objId(f), d[y])
396
+ return d[y];
397
+ b = /** @type {Record<string, any>} */
398
+ {}, d[y] = b;
399
+ for (var w in f)
400
+ f.hasOwnProperty(w) && (b[w] = u(f[w], d));
401
+ return (
402
+ /** @type {any} */
403
+ b
404
+ );
405
+ case "Array":
406
+ return y = i.util.objId(f), d[y] ? d[y] : (b = [], d[y] = b, f.forEach(function(E, k) {
407
+ b[k] = u(E, d);
408
+ }), /** @type {any} */
409
+ b);
410
+ default:
411
+ return f;
412
+ }
413
+ },
414
+ /**
415
+ * Returns the Prism language of the given element set by a `language-xxxx` or `lang-xxxx` class.
416
+ *
417
+ * If no language is set for the element or the element is `null` or `undefined`, `none` will be returned.
418
+ *
419
+ * @param {Element} element
420
+ * @returns {string}
421
+ */
422
+ getLanguage: function(u) {
423
+ for (; u; ) {
424
+ var f = a.exec(u.className);
425
+ if (f)
426
+ return f[1].toLowerCase();
427
+ u = u.parentElement;
428
+ }
429
+ return "none";
430
+ },
431
+ /**
432
+ * Sets the Prism `language-xxxx` class of the given element.
433
+ *
434
+ * @param {Element} element
435
+ * @param {string} language
436
+ * @returns {void}
437
+ */
438
+ setLanguage: function(u, f) {
439
+ u.className = u.className.replace(RegExp(a, "gi"), ""), u.classList.add("language-" + f);
440
+ },
441
+ /**
442
+ * Returns whether a given class is active for `element`.
443
+ *
444
+ * The class can be activated if `element` or one of its ancestors has the given class and it can be deactivated
445
+ * if `element` or one of its ancestors has the negated version of the given class. The _negated version_ of the
446
+ * given class is just the given class with a `no-` prefix.
447
+ *
448
+ * Whether the class is active is determined by the closest ancestor of `element` (where `element` itself is
449
+ * closest ancestor) that has the given class or the negated version of it. If neither `element` nor any of its
450
+ * ancestors have the given class or the negated version of it, then the default activation will be returned.
451
+ *
452
+ * In the paradoxical situation where the closest ancestor contains __both__ the given class and the negated
453
+ * version of it, the class is considered active.
454
+ *
455
+ * @param {Element} element
456
+ * @param {string} className
457
+ * @param {boolean} [defaultActivation=false]
458
+ * @returns {boolean}
459
+ */
460
+ isActive: function(u, f, d) {
461
+ for (var b = "no-" + f; u; ) {
462
+ var y = u.classList;
463
+ if (y.contains(f))
464
+ return !0;
465
+ if (y.contains(b))
466
+ return !1;
467
+ u = u.parentElement;
468
+ }
469
+ return !!d;
470
+ }
471
+ },
472
+ /**
473
+ * This namespace contains all currently loaded languages and the some helper functions to create and modify languages.
474
+ *
475
+ * @namespace
476
+ * @memberof Prism
477
+ * @public
478
+ */
479
+ languages: {
480
+ /**
481
+ * The grammar for plain, unformatted text.
482
+ */
483
+ plain: o,
484
+ plaintext: o,
485
+ text: o,
486
+ txt: o,
487
+ /**
488
+ * Creates a deep copy of the language with the given id and appends the given tokens.
489
+ *
490
+ * If a token in `redef` also appears in the copied language, then the existing token in the copied language
491
+ * will be overwritten at its original position.
492
+ *
493
+ * ## Best practices
494
+ *
495
+ * Since the position of overwriting tokens (token in `redef` that overwrite tokens in the copied language)
496
+ * doesn't matter, they can technically be in any order. However, this can be confusing to others that trying to
497
+ * understand the language definition because, normally, the order of tokens matters in Prism grammars.
498
+ *
499
+ * Therefore, it is encouraged to order overwriting tokens according to the positions of the overwritten tokens.
500
+ * Furthermore, all non-overwriting tokens should be placed after the overwriting ones.
501
+ *
502
+ * @param {string} id The id of the language to extend. This has to be a key in `Prism.languages`.
503
+ * @param {Grammar} redef The new tokens to append.
504
+ * @returns {Grammar} The new language created.
505
+ * @public
506
+ * @example
507
+ * Prism.languages['css-with-colors'] = Prism.languages.extend('css', {
508
+ * // Prism.languages.css already has a 'comment' token, so this token will overwrite CSS' 'comment' token
509
+ * // at its original position
510
+ * 'comment': { ... },
511
+ * // CSS doesn't have a 'color' token, so this token will be appended
512
+ * 'color': /\b(?:red|green|blue)\b/
513
+ * });
514
+ */
515
+ extend: function(u, f) {
516
+ var d = i.util.clone(i.languages[u]);
517
+ for (var b in f)
518
+ d[b] = f[b];
519
+ return d;
520
+ },
521
+ /**
522
+ * Inserts tokens _before_ another token in a language definition or any other grammar.
523
+ *
524
+ * ## Usage
525
+ *
526
+ * This helper method makes it easy to modify existing languages. For example, the CSS language definition
527
+ * not only defines CSS highlighting for CSS documents, but also needs to define highlighting for CSS embedded
528
+ * in HTML through `<style>` elements. To do this, it needs to modify `Prism.languages.markup` and add the
529
+ * appropriate tokens. However, `Prism.languages.markup` is a regular JavaScript object literal, so if you do
530
+ * this:
531
+ *
532
+ * ```js
533
+ * Prism.languages.markup.style = {
534
+ * // token
535
+ * };
536
+ * ```
537
+ *
538
+ * then the `style` token will be added (and processed) at the end. `insertBefore` allows you to insert tokens
539
+ * before existing tokens. For the CSS example above, you would use it like this:
540
+ *
541
+ * ```js
542
+ * Prism.languages.insertBefore('markup', 'cdata', {
543
+ * 'style': {
544
+ * // token
545
+ * }
546
+ * });
547
+ * ```
548
+ *
549
+ * ## Special cases
550
+ *
551
+ * If the grammars of `inside` and `insert` have tokens with the same name, the tokens in `inside`'s grammar
552
+ * will be ignored.
553
+ *
554
+ * This behavior can be used to insert tokens after `before`:
555
+ *
556
+ * ```js
557
+ * Prism.languages.insertBefore('markup', 'comment', {
558
+ * 'comment': Prism.languages.markup.comment,
559
+ * // tokens after 'comment'
560
+ * });
561
+ * ```
562
+ *
563
+ * ## Limitations
564
+ *
565
+ * The main problem `insertBefore` has to solve is iteration order. Since ES2015, the iteration order for object
566
+ * properties is guaranteed to be the insertion order (except for integer keys) but some browsers behave
567
+ * differently when keys are deleted and re-inserted. So `insertBefore` can't be implemented by temporarily
568
+ * deleting properties which is necessary to insert at arbitrary positions.
569
+ *
570
+ * To solve this problem, `insertBefore` doesn't actually insert the given tokens into the target object.
571
+ * Instead, it will create a new object and replace all references to the target object with the new one. This
572
+ * can be done without temporarily deleting properties, so the iteration order is well-defined.
573
+ *
574
+ * However, only references that can be reached from `Prism.languages` or `insert` will be replaced. I.e. if
575
+ * you hold the target object in a variable, then the value of the variable will not change.
576
+ *
577
+ * ```js
578
+ * var oldMarkup = Prism.languages.markup;
579
+ * var newMarkup = Prism.languages.insertBefore('markup', 'comment', { ... });
580
+ *
581
+ * assert(oldMarkup !== Prism.languages.markup);
582
+ * assert(newMarkup === Prism.languages.markup);
583
+ * ```
584
+ *
585
+ * @param {string} inside The property of `root` (e.g. a language id in `Prism.languages`) that contains the
586
+ * object to be modified.
587
+ * @param {string} before The key to insert before.
588
+ * @param {Grammar} insert An object containing the key-value pairs to be inserted.
589
+ * @param {Object<string, any>} [root] The object containing `inside`, i.e. the object that contains the
590
+ * object to be modified.
591
+ *
592
+ * Defaults to `Prism.languages`.
593
+ * @returns {Grammar} The new grammar object.
594
+ * @public
595
+ */
596
+ insertBefore: function(u, f, d, b) {
597
+ b = b || /** @type {any} */
598
+ i.languages;
599
+ var y = b[u], w = {};
600
+ for (var E in y)
601
+ if (y.hasOwnProperty(E)) {
602
+ if (E == f)
603
+ for (var k in d)
604
+ d.hasOwnProperty(k) && (w[k] = d[k]);
605
+ d.hasOwnProperty(E) || (w[E] = y[E]);
606
+ }
607
+ var R = b[u];
608
+ return b[u] = w, i.languages.DFS(i.languages, function(O, P) {
609
+ P === R && O != u && (this[O] = w);
610
+ }), w;
611
+ },
612
+ // Traverse a language definition with Depth First Search
613
+ DFS: function u(f, d, b, y) {
614
+ y = y || {};
615
+ var w = i.util.objId;
616
+ for (var E in f)
617
+ if (f.hasOwnProperty(E)) {
618
+ d.call(f, E, f[E], b || E);
619
+ var k = f[E], R = i.util.type(k);
620
+ R === "Object" && !y[w(k)] ? (y[w(k)] = !0, u(k, d, null, y)) : R === "Array" && !y[w(k)] && (y[w(k)] = !0, u(k, d, E, y));
621
+ }
622
+ }
623
+ },
624
+ plugins: {},
625
+ /**
626
+ * Low-level function, only use if you know what you’re doing. It accepts a string of text as input
627
+ * and the language definitions to use, and returns a string with the HTML produced.
628
+ *
629
+ * The following hooks will be run:
630
+ * 1. `before-tokenize`
631
+ * 2. `after-tokenize`
632
+ * 3. `wrap`: On each {@link Token}.
633
+ *
634
+ * @param {string} text A string with the code to be highlighted.
635
+ * @param {Grammar} grammar An object containing the tokens to use.
636
+ *
637
+ * Usually a language definition like `Prism.languages.markup`.
638
+ * @param {string} language The name of the language definition passed to `grammar`.
639
+ * @returns {string} The highlighted HTML.
640
+ * @memberof Prism
641
+ * @public
642
+ * @example
643
+ * Prism.highlight('var foo = true;', Prism.languages.javascript, 'javascript');
644
+ */
645
+ highlight: function(u, f, d) {
646
+ var b = {
647
+ code: u,
648
+ grammar: f,
649
+ language: d
650
+ };
651
+ if (i.hooks.run("before-tokenize", b), !b.grammar)
652
+ throw new Error('The language "' + b.language + '" has no grammar.');
653
+ return b.tokens = i.tokenize(b.code, b.grammar), i.hooks.run("after-tokenize", b), l.stringify(i.util.encode(b.tokens), b.language);
654
+ },
655
+ /**
656
+ * This is the heart of Prism, and the most low-level function you can use. It accepts a string of text as input
657
+ * and the language definitions to use, and returns an array with the tokenized code.
658
+ *
659
+ * When the language definition includes nested tokens, the function is called recursively on each of these tokens.
660
+ *
661
+ * This method could be useful in other contexts as well, as a very crude parser.
662
+ *
663
+ * @param {string} text A string with the code to be highlighted.
664
+ * @param {Grammar} grammar An object containing the tokens to use.
665
+ *
666
+ * Usually a language definition like `Prism.languages.markup`.
667
+ * @returns {TokenStream} An array of strings and tokens, a token stream.
668
+ * @memberof Prism
669
+ * @public
670
+ * @example
671
+ * let code = `var foo = 0;`;
672
+ * let tokens = Prism.tokenize(code, Prism.languages.javascript);
673
+ * tokens.forEach(token => {
674
+ * if (token instanceof Prism.Token && token.type === 'number') {
675
+ * console.log(`Found numeric literal: ${token.content}`);
676
+ * }
677
+ * });
678
+ */
679
+ tokenize: function(u, f) {
680
+ var d = f.rest;
681
+ if (d) {
682
+ for (var b in d)
683
+ f[b] = d[b];
684
+ delete f.rest;
685
+ }
686
+ var y = new g();
687
+ return p(y, y.head, u), c(u, y, f, y.head, 0), v(y);
688
+ },
689
+ /**
690
+ * @namespace
691
+ * @memberof Prism
692
+ * @public
693
+ */
694
+ hooks: {
695
+ all: {},
696
+ /**
697
+ * Adds the given callback to the list of callbacks for the given hook.
698
+ *
699
+ * The callback will be invoked when the hook it is registered for is run.
700
+ * Hooks are usually directly run by a highlight function but you can also run hooks yourself.
701
+ *
702
+ * One callback function can be registered to multiple hooks and the same hook multiple times.
703
+ *
704
+ * @param {string} name The name of the hook.
705
+ * @param {HookCallback} callback The callback function which is given environment variables.
706
+ * @public
707
+ */
708
+ add: function(u, f) {
709
+ var d = i.hooks.all;
710
+ d[u] = d[u] || [], d[u].push(f);
711
+ },
712
+ /**
713
+ * Runs a hook invoking all registered callbacks with the given environment variables.
714
+ *
715
+ * Callbacks will be invoked synchronously and in the order in which they were registered.
716
+ *
717
+ * @param {string} name The name of the hook.
718
+ * @param {Object<string, any>} env The environment variables of the hook passed to all callbacks registered.
719
+ * @public
720
+ */
721
+ run: function(u, f) {
722
+ var d = i.hooks.all[u];
723
+ if (!(!d || !d.length))
724
+ for (var b = 0, y; y = d[b++]; )
725
+ y(f);
726
+ }
727
+ },
728
+ Token: l
729
+ };
730
+ function l(u, f, d, b) {
731
+ this.type = u, this.content = f, this.alias = d, this.length = (b || "").length | 0;
732
+ }
733
+ l.stringify = function u(f, d) {
734
+ if (typeof f == "string")
735
+ return f;
736
+ if (Array.isArray(f)) {
737
+ var b = "";
738
+ return f.forEach(function(R) {
739
+ b += u(R, d);
740
+ }), b;
741
+ }
742
+ var y = {
743
+ type: f.type,
744
+ content: u(f.content, d),
745
+ tag: "span",
746
+ classes: ["token", f.type],
747
+ attributes: {},
748
+ language: d
749
+ }, w = f.alias;
750
+ w && (Array.isArray(w) ? Array.prototype.push.apply(y.classes, w) : y.classes.push(w)), i.hooks.run("wrap", y);
751
+ var E = "";
752
+ for (var k in y.attributes)
753
+ E += " " + k + '="' + (y.attributes[k] || "").replace(/"/g, "&quot;") + '"';
754
+ return "<" + y.tag + ' class="' + y.classes.join(" ") + '"' + E + ">" + y.content + "</" + y.tag + ">";
755
+ };
756
+ function s(u, f, d, b) {
757
+ u.lastIndex = f;
758
+ var y = u.exec(d);
759
+ if (y && b && y[1]) {
760
+ var w = y[1].length;
761
+ y.index += w, y[0] = y[0].slice(w);
762
+ }
763
+ return y;
764
+ }
765
+ function c(u, f, d, b, y, w) {
766
+ for (var E in d)
767
+ if (!(!d.hasOwnProperty(E) || !d[E])) {
768
+ var k = d[E];
769
+ k = Array.isArray(k) ? k : [k];
770
+ for (var R = 0; R < k.length; ++R) {
771
+ if (w && w.cause == E + "," + R)
772
+ return;
773
+ var O = k[R], P = O.inside, F = !!O.lookbehind, L = !!O.greedy, I = O.alias;
774
+ if (L && !O.pattern.global) {
775
+ var K = O.pattern.toString().match(/[imsuy]*$/)[0];
776
+ O.pattern = RegExp(O.pattern.source, K + "g");
777
+ }
778
+ for (var se = O.pattern || O, N = b.next, Y = y; N !== f.tail && !(w && Y >= w.reach); Y += N.value.length, N = N.next) {
779
+ var Q = N.value;
780
+ if (f.length > u.length)
781
+ return;
782
+ if (!(Q instanceof l)) {
783
+ var C = 1, j;
784
+ if (L) {
785
+ if (j = s(se, Y, u, F), !j || j.index >= u.length)
786
+ break;
787
+ var he = j.index, xe = j.index + j[0].length, V = Y;
788
+ for (V += N.value.length; he >= V; )
789
+ N = N.next, V += N.value.length;
790
+ if (V -= N.value.length, Y = V, N.value instanceof l)
791
+ continue;
792
+ for (var ae = N; ae !== f.tail && (V < xe || typeof ae.value == "string"); ae = ae.next)
793
+ C++, V += ae.value.length;
794
+ C--, Q = u.slice(Y, V), j.index -= Y;
795
+ } else if (j = s(se, 0, Q, F), !j)
796
+ continue;
797
+ var he = j.index, ue = j[0], J = Q.slice(0, he), me = Q.slice(he + ue.length), we = Y + Q.length;
798
+ w && we > w.reach && (w.reach = we);
799
+ var ce = N.prev;
800
+ J && (ce = p(f, ce, J), Y += J.length), m(f, ce, C);
801
+ var pe = new l(E, P ? i.tokenize(ue, P) : ue, I, ue);
802
+ if (N = p(f, ce, pe), me && p(f, N, me), C > 1) {
803
+ var Ce = {
804
+ cause: E + "," + R,
805
+ reach: we
806
+ };
807
+ c(u, f, d, N.prev, Y, Ce), w && Ce.reach > w.reach && (w.reach = Ce.reach);
808
+ }
809
+ }
810
+ }
811
+ }
812
+ }
813
+ }
814
+ function g() {
815
+ var u = { value: null, prev: null, next: null }, f = { value: null, prev: u, next: null };
816
+ u.next = f, this.head = u, this.tail = f, this.length = 0;
817
+ }
818
+ function p(u, f, d) {
819
+ var b = f.next, y = { value: d, prev: f, next: b };
820
+ return f.next = y, b.prev = y, u.length++, y;
821
+ }
822
+ function m(u, f, d) {
823
+ for (var b = f.next, y = 0; y < d && b !== u.tail; y++)
824
+ b = b.next;
825
+ f.next = b, b.prev = f, u.length -= y;
826
+ }
827
+ function v(u) {
828
+ for (var f = [], d = u.head.next; d !== u.tail; )
829
+ f.push(d.value), d = d.next;
830
+ return f;
831
+ }
832
+ return i;
833
+ }();
834
+ n.exports = t, t.default = t;
835
+ }
836
+ }), h = hr(mr());
837
+ h.languages.markup = { comment: { pattern: /<!--(?:(?!<!--)[\s\S])*?-->/, greedy: !0 }, prolog: { pattern: /<\?[\s\S]+?\?>/, greedy: !0 }, doctype: { pattern: /<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i, greedy: !0, inside: { "internal-subset": { pattern: /(^[^\[]*\[)[\s\S]+(?=\]>$)/, lookbehind: !0, greedy: !0, inside: null }, string: { pattern: /"[^"]*"|'[^']*'/, greedy: !0 }, punctuation: /^<!|>$|[[\]]/, "doctype-tag": /^DOCTYPE/i, name: /[^\s<>'"]+/ } }, cdata: { pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i, greedy: !0 }, tag: { pattern: /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/, greedy: !0, inside: { tag: { pattern: /^<\/?[^\s>\/]+/, inside: { punctuation: /^<\/?/, namespace: /^[^\s>\/:]+:/ } }, "special-attr": [], "attr-value": { pattern: /=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/, inside: { punctuation: [{ pattern: /^=/, alias: "attr-equals" }, { pattern: /^(\s*)["']|["']$/, lookbehind: !0 }] } }, punctuation: /\/?>/, "attr-name": { pattern: /[^\s>\/]+/, inside: { namespace: /^[^\s>\/:]+:/ } } } }, entity: [{ pattern: /&[\da-z]{1,8};/i, alias: "named-entity" }, /&#x?[\da-f]{1,8};/i] }, h.languages.markup.tag.inside["attr-value"].inside.entity = h.languages.markup.entity, h.languages.markup.doctype.inside["internal-subset"].inside = h.languages.markup, h.hooks.add("wrap", function(e) {
838
+ e.type === "entity" && (e.attributes.title = e.content.replace(/&amp;/, "&"));
839
+ }), Object.defineProperty(h.languages.markup.tag, "addInlined", { value: function(e, a) {
840
+ var t = {}, t = (t["language-" + a] = { pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i, lookbehind: !0, inside: h.languages[a] }, t.cdata = /^<!\[CDATA\[|\]\]>$/i, { "included-cdata": { pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i, inside: t } }), a = (t["language-" + a] = { pattern: /[\s\S]+/, inside: h.languages[a] }, {});
841
+ a[e] = { pattern: RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g, function() {
842
+ return e;
843
+ }), "i"), lookbehind: !0, greedy: !0, inside: t }, h.languages.insertBefore("markup", "cdata", a);
844
+ } }), Object.defineProperty(h.languages.markup.tag, "addAttribute", { value: function(e, n) {
845
+ h.languages.markup.tag.inside["special-attr"].push({ pattern: RegExp(/(^|["'\s])/.source + "(?:" + e + ")" + /\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source, "i"), lookbehind: !0, inside: { "attr-name": /^[^\s=]+/, "attr-value": { pattern: /=[\s\S]+/, inside: { value: { pattern: /(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/, lookbehind: !0, alias: [n, "language-" + n], inside: h.languages[n] }, punctuation: [{ pattern: /^=/, alias: "attr-equals" }, /"|'/] } } } });
846
+ } }), h.languages.html = h.languages.markup, h.languages.mathml = h.languages.markup, h.languages.svg = h.languages.markup, h.languages.xml = h.languages.extend("markup", {}), h.languages.ssml = h.languages.xml, h.languages.atom = h.languages.xml, h.languages.rss = h.languages.xml, function(e) {
847
+ var n = { pattern: /\\[\\(){}[\]^$+*?|.]/, alias: "escape" }, t = /\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/, a = "(?:[^\\\\-]|" + t.source + ")", a = RegExp(a + "-" + a), r = { pattern: /(<|')[^<>']+(?=[>']$)/, lookbehind: !0, alias: "variable" };
848
+ e.languages.regex = { "char-class": { pattern: /((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/, lookbehind: !0, inside: { "char-class-negation": { pattern: /(^\[)\^/, lookbehind: !0, alias: "operator" }, "char-class-punctuation": { pattern: /^\[|\]$/, alias: "punctuation" }, range: { pattern: a, inside: { escape: t, "range-punctuation": { pattern: /-/, alias: "operator" } } }, "special-escape": n, "char-set": { pattern: /\\[wsd]|\\p\{[^{}]+\}/i, alias: "class-name" }, escape: t } }, "special-escape": n, "char-set": { pattern: /\.|\\[wsd]|\\p\{[^{}]+\}/i, alias: "class-name" }, backreference: [{ pattern: /\\(?![123][0-7]{2})[1-9]/, alias: "keyword" }, { pattern: /\\k<[^<>']+>/, alias: "keyword", inside: { "group-name": r } }], anchor: { pattern: /[$^]|\\[ABbGZz]/, alias: "function" }, escape: t, group: [{ pattern: /\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/, alias: "punctuation", inside: { "group-name": r } }, { pattern: /\)/, alias: "punctuation" }], quantifier: { pattern: /(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/, alias: "number" }, alternation: { pattern: /\|/, alias: "keyword" } };
849
+ }(h), h.languages.clike = { comment: [{ pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/, lookbehind: !0, greedy: !0 }, { pattern: /(^|[^\\:])\/\/.*/, lookbehind: !0, greedy: !0 }], string: { pattern: /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/, greedy: !0 }, "class-name": { pattern: /(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i, lookbehind: !0, inside: { punctuation: /[.\\]/ } }, keyword: /\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/, boolean: /\b(?:false|true)\b/, function: /\b\w+(?=\()/, number: /\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i, operator: /[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/, punctuation: /[{}[\];(),.:]/ }, h.languages.javascript = h.languages.extend("clike", { "class-name": [h.languages.clike["class-name"], { pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/, lookbehind: !0 }], keyword: [{ pattern: /((?:^|\})\s*)catch\b/, lookbehind: !0 }, { pattern: /(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/, lookbehind: !0 }], function: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/, number: { pattern: RegExp(/(^|[^\w$])/.source + "(?:" + /NaN|Infinity/.source + "|" + /0[bB][01]+(?:_[01]+)*n?/.source + "|" + /0[oO][0-7]+(?:_[0-7]+)*n?/.source + "|" + /0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source + "|" + /\d+(?:_\d+)*n/.source + "|" + /(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source + ")" + /(?![\w$])/.source), lookbehind: !0 }, operator: /--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/ }), h.languages.javascript["class-name"][0].pattern = /(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/, h.languages.insertBefore("javascript", "keyword", { regex: { pattern: RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source + /\//.source + "(?:" + /(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source + "|" + /(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source + ")" + /(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source), lookbehind: !0, greedy: !0, inside: { "regex-source": { pattern: /^(\/)[\s\S]+(?=\/[a-z]*$)/, lookbehind: !0, alias: "language-regex", inside: h.languages.regex }, "regex-delimiter": /^\/|\/$/, "regex-flags": /^[a-z]+$/ } }, "function-variable": { pattern: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/, alias: "function" }, parameter: [{ pattern: /(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/, lookbehind: !0, inside: h.languages.javascript }, { pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i, lookbehind: !0, inside: h.languages.javascript }, { pattern: /(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/, lookbehind: !0, inside: h.languages.javascript }, { pattern: /((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/, lookbehind: !0, inside: h.languages.javascript }], constant: /\b[A-Z](?:[A-Z_]|\dx?)*\b/ }), h.languages.insertBefore("javascript", "string", { hashbang: { pattern: /^#!.*/, greedy: !0, alias: "comment" }, "template-string": { pattern: /`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/, greedy: !0, inside: { "template-punctuation": { pattern: /^`|`$/, alias: "string" }, interpolation: { pattern: /((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/, lookbehind: !0, inside: { "interpolation-punctuation": { pattern: /^\$\{|\}$/, alias: "punctuation" }, rest: h.languages.javascript } }, string: /[\s\S]+/ } }, "string-property": { pattern: /((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m, lookbehind: !0, greedy: !0, alias: "property" } }), h.languages.insertBefore("javascript", "operator", { "literal-property": { pattern: /((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m, lookbehind: !0, alias: "property" } }), h.languages.markup && (h.languages.markup.tag.addInlined("script", "javascript"), h.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source, "javascript")), h.languages.js = h.languages.javascript, h.languages.actionscript = h.languages.extend("javascript", { keyword: /\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/, operator: /\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/ }), h.languages.actionscript["class-name"].alias = "function", delete h.languages.actionscript.parameter, delete h.languages.actionscript["literal-property"], h.languages.markup && h.languages.insertBefore("actionscript", "string", { xml: { pattern: /(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/, lookbehind: !0, inside: h.languages.markup } }), function(e) {
850
+ var n = /#(?!\{).+/, t = { pattern: /#\{[^}]+\}/, alias: "variable" };
851
+ e.languages.coffeescript = e.languages.extend("javascript", { comment: n, string: [{ pattern: /'(?:\\[\s\S]|[^\\'])*'/, greedy: !0 }, { pattern: /"(?:\\[\s\S]|[^\\"])*"/, greedy: !0, inside: { interpolation: t } }], keyword: /\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/, "class-member": { pattern: /@(?!\d)\w+/, alias: "variable" } }), e.languages.insertBefore("coffeescript", "comment", { "multiline-comment": { pattern: /###[\s\S]+?###/, alias: "comment" }, "block-regex": { pattern: /\/{3}[\s\S]*?\/{3}/, alias: "regex", inside: { comment: n, interpolation: t } } }), e.languages.insertBefore("coffeescript", "string", { "inline-javascript": { pattern: /`(?:\\[\s\S]|[^\\`])*`/, inside: { delimiter: { pattern: /^`|`$/, alias: "punctuation" }, script: { pattern: /[\s\S]+/, alias: "language-javascript", inside: e.languages.javascript } } }, "multiline-string": [{ pattern: /'''[\s\S]*?'''/, greedy: !0, alias: "string" }, { pattern: /"""[\s\S]*?"""/, greedy: !0, alias: "string", inside: { interpolation: t } }] }), e.languages.insertBefore("coffeescript", "keyword", { property: /(?!\d)\w+(?=\s*:(?!:))/ }), delete e.languages.coffeescript["template-string"], e.languages.coffee = e.languages.coffeescript;
852
+ }(h), function(e) {
853
+ var n = e.languages.javadoclike = { parameter: { pattern: /(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m, lookbehind: !0 }, keyword: { pattern: /(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m, lookbehind: !0 }, punctuation: /[{}]/ };
854
+ Object.defineProperty(n, "addSupport", { value: function(t, a) {
855
+ (t = typeof t == "string" ? [t] : t).forEach(function(r) {
856
+ var o = function(p) {
857
+ p.inside || (p.inside = {}), p.inside.rest = a;
858
+ }, i = "doc-comment";
859
+ if (l = e.languages[r]) {
860
+ var l, s = l[i];
861
+ if ((s = s || (l = e.languages.insertBefore(r, "comment", { "doc-comment": { pattern: /(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/, lookbehind: !0, alias: "comment" } }))[i]) instanceof RegExp && (s = l[i] = { pattern: s }), Array.isArray(s))
862
+ for (var c = 0, g = s.length; c < g; c++)
863
+ s[c] instanceof RegExp && (s[c] = { pattern: s[c] }), o(s[c]);
864
+ else
865
+ o(s);
866
+ }
867
+ });
868
+ } }), n.addSupport(["java", "javascript", "php"], n);
869
+ }(h), function(e) {
870
+ var n = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/, n = (e.languages.css = { comment: /\/\*[\s\S]*?\*\//, atrule: { pattern: RegExp("@[\\w-](?:" + /[^;{\s"']|\s+(?!\s)/.source + "|" + n.source + ")*?" + /(?:;|(?=\s*\{))/.source), inside: { rule: /^@[\w-]+/, "selector-function-argument": { pattern: /(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/, lookbehind: !0, alias: "selector" }, keyword: { pattern: /(^|[^\w-])(?:and|not|only|or)(?![\w-])/, lookbehind: !0 } } }, url: { pattern: RegExp("\\burl\\((?:" + n.source + "|" + /(?:[^\\\r\n()"']|\\[\s\S])*/.source + ")\\)", "i"), greedy: !0, inside: { function: /^url/i, punctuation: /^\(|\)$/, string: { pattern: RegExp("^" + n.source + "$"), alias: "url" } } }, selector: { pattern: RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|` + n.source + ")*(?=\\s*\\{)"), lookbehind: !0 }, string: { pattern: n, greedy: !0 }, property: { pattern: /(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i, lookbehind: !0 }, important: /!important\b/i, function: { pattern: /(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i, lookbehind: !0 }, punctuation: /[(){};:,]/ }, e.languages.css.atrule.inside.rest = e.languages.css, e.languages.markup);
871
+ n && (n.tag.addInlined("style", "css"), n.tag.addAttribute("style", "css"));
872
+ }(h), function(e) {
873
+ var n = /("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/, n = (e.languages.css.selector = { pattern: e.languages.css.selector.pattern, lookbehind: !0, inside: n = { "pseudo-element": /:(?:after|before|first-letter|first-line|selection)|::[-\w]+/, "pseudo-class": /:[-\w]+/, class: /\.[-\w]+/, id: /#[-\w]+/, attribute: { pattern: RegExp(`\\[(?:[^[\\]"']|` + n.source + ")*\\]"), greedy: !0, inside: { punctuation: /^\[|\]$/, "case-sensitivity": { pattern: /(\s)[si]$/i, lookbehind: !0, alias: "keyword" }, namespace: { pattern: /^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/, lookbehind: !0, inside: { punctuation: /\|$/ } }, "attr-name": { pattern: /^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/, lookbehind: !0 }, "attr-value": [n, { pattern: /(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/, lookbehind: !0 }], operator: /[|~*^$]?=/ } }, "n-th": [{ pattern: /(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/, lookbehind: !0, inside: { number: /[\dn]+/, operator: /[+-]/ } }, { pattern: /(\(\s*)(?:even|odd)(?=\s*\))/i, lookbehind: !0 }], combinator: />|\+|~|\|\|/, punctuation: /[(),]/ } }, e.languages.css.atrule.inside["selector-function-argument"].inside = n, e.languages.insertBefore("css", "property", { variable: { pattern: /(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i, lookbehind: !0 } }), { pattern: /(\b\d+)(?:%|[a-z]+(?![\w-]))/, lookbehind: !0 }), t = { pattern: /(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/, lookbehind: !0 };
874
+ e.languages.insertBefore("css", "function", { operator: { pattern: /(\s)[+\-*\/](?=\s)/, lookbehind: !0 }, hexcode: { pattern: /\B#[\da-f]{3,8}\b/i, alias: "color" }, color: [{ pattern: /(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i, lookbehind: !0 }, { pattern: /\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i, inside: { unit: n, number: t, function: /[\w-]+(?=\()/, punctuation: /[(),]/ } }], entity: /\\[\da-f]{1,8}/i, unit: n, number: t });
875
+ }(h), function(e) {
876
+ var n = /[*&][^\s[\]{},]+/, t = /!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/, a = "(?:" + t.source + "(?:[ ]+" + n.source + ")?|" + n.source + "(?:[ ]+" + t.source + ")?)", r = /(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g, function() {
877
+ return /[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source;
878
+ }), o = /"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;
879
+ function i(l, s) {
880
+ s = (s || "").replace(/m/g, "") + "m";
881
+ var c = /([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g, function() {
882
+ return a;
883
+ }).replace(/<<value>>/g, function() {
884
+ return l;
885
+ });
886
+ return RegExp(c, s);
887
+ }
888
+ e.languages.yaml = { scalar: { pattern: RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g, function() {
889
+ return a;
890
+ })), lookbehind: !0, alias: "string" }, comment: /#.*/, key: { pattern: RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g, function() {
891
+ return a;
892
+ }).replace(/<<key>>/g, function() {
893
+ return "(?:" + r + "|" + o + ")";
894
+ })), lookbehind: !0, greedy: !0, alias: "atrule" }, directive: { pattern: /(^[ \t]*)%.+/m, lookbehind: !0, alias: "important" }, datetime: { pattern: i(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source), lookbehind: !0, alias: "number" }, boolean: { pattern: i(/false|true/.source, "i"), lookbehind: !0, alias: "important" }, null: { pattern: i(/null|~/.source, "i"), lookbehind: !0, alias: "important" }, string: { pattern: i(o), lookbehind: !0, greedy: !0 }, number: { pattern: i(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source, "i"), lookbehind: !0 }, tag: t, important: n, punctuation: /---|[:[\]{}\-,|>?]|\.\.\./ }, e.languages.yml = e.languages.yaml;
895
+ }(h), function(e) {
896
+ var n = /(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;
897
+ function t(c) {
898
+ return c = c.replace(/<inner>/g, function() {
899
+ return n;
900
+ }), RegExp(/((?:^|[^\\])(?:\\{2})*)/.source + "(?:" + c + ")");
901
+ }
902
+ var a = /(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source, r = /\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g, function() {
903
+ return a;
904
+ }), o = /\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source, i = (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("^" + r + o + "(?:" + r + ")*", "m"), inside: { "table-data-rows": { pattern: RegExp("^(" + r + o + ")(?:" + r + ")*$"), lookbehind: !0, inside: { "table-data": { pattern: RegExp(a), inside: e.languages.markdown }, punctuation: /\|/ } }, "table-line": { pattern: RegExp("^(" + r + ")" + o + "$"), lookbehind: !0, inside: { punctuation: /\||:?-{3,}:?/ } }, "table-header-row": { pattern: RegExp("^" + r + "$"), inside: { "table-header": { pattern: RegExp(a), 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: t(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source), lookbehind: !0, greedy: !0, inside: { content: { pattern: /(^..)[\s\S]+(?=..$)/, lookbehind: !0, inside: {} }, punctuation: /\*\*|__/ } }, italic: { pattern: t(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source), lookbehind: !0, greedy: !0, inside: { content: { pattern: /(^.)[\s\S]+(?=.$)/, lookbehind: !0, inside: {} }, punctuation: /[*_]/ } }, strike: { pattern: t(/(~~?)(?:(?!~)<inner>)+\2/.source), 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: t(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source), 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(c) {
905
+ ["url", "bold", "italic", "strike", "code-snippet"].forEach(function(g) {
906
+ c !== g && (e.languages.markdown[c].inside.content.inside[g] = e.languages.markdown[g]);
907
+ });
908
+ }), e.hooks.add("after-tokenize", function(c) {
909
+ c.language !== "markdown" && c.language !== "md" || function g(p) {
910
+ if (p && typeof p != "string")
911
+ for (var m = 0, v = p.length; m < v; m++) {
912
+ var u, f = p[m];
913
+ f.type !== "code" ? g(f.content) : (u = f.content[1], f = f.content[3], u && f && u.type === "code-language" && f.type === "code-block" && typeof u.content == "string" && (u = u.content.replace(/\b#/g, "sharp").replace(/\b\+\+/g, "pp"), u = "language-" + (u = (/[a-z][\w-]*/i.exec(u) || [""])[0].toLowerCase()), f.alias ? typeof f.alias == "string" ? f.alias = [f.alias, u] : f.alias.push(u) : f.alias = [u]));
914
+ }
915
+ }(c.tokens);
916
+ }), e.hooks.add("wrap", function(c) {
917
+ if (c.type === "code-block") {
918
+ for (var g = "", p = 0, m = c.classes.length; p < m; p++) {
919
+ var v = c.classes[p], v = /language-(.+)/.exec(v);
920
+ if (v) {
921
+ g = v[1];
922
+ break;
923
+ }
924
+ }
925
+ var u, f = e.languages[g];
926
+ f ? c.content = e.highlight(function(d) {
927
+ return d = d.replace(i, ""), d = d.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi, function(b, y) {
928
+ var w;
929
+ return (y = y.toLowerCase())[0] === "#" ? (w = y[1] === "x" ? parseInt(y.slice(2), 16) : Number(y.slice(1)), s(w)) : l[y] || b;
930
+ });
931
+ }(c.content), f, g) : g && g !== "none" && e.plugins.autoloader && (u = "md-" + (/* @__PURE__ */ new Date()).valueOf() + "-" + Math.floor(1e16 * Math.random()), c.attributes.id = u, e.plugins.autoloader.loadLanguages(g, function() {
932
+ var d = document.getElementById(u);
933
+ d && (d.innerHTML = e.highlight(d.textContent, e.languages[g], g));
934
+ }));
935
+ }
936
+ }), RegExp(e.languages.markup.tag.pattern.source, "gi")), l = { amp: "&", lt: "<", gt: ">", quot: '"' }, s = String.fromCodePoint || String.fromCharCode;
937
+ e.languages.md = e.languages.markdown;
938
+ }(h), h.languages.graphql = { comment: /#.*/, description: { pattern: /(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i, greedy: !0, alias: "string", inside: { "language-markdown": { pattern: /(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/, lookbehind: !0, inside: h.languages.markdown } } }, string: { pattern: /"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/, greedy: !0 }, number: /(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i, boolean: /\b(?:false|true)\b/, variable: /\$[a-z_]\w*/i, directive: { pattern: /@[a-z_]\w*/i, alias: "function" }, "attr-name": { pattern: /\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i, greedy: !0 }, "atom-input": { pattern: /\b[A-Z]\w*Input\b/, alias: "class-name" }, scalar: /\b(?:Boolean|Float|ID|Int|String)\b/, constant: /\b[A-Z][A-Z_\d]*\b/, "class-name": { pattern: /(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/, lookbehind: !0 }, fragment: { pattern: /(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/, lookbehind: !0, alias: "function" }, "definition-mutation": { pattern: /(\bmutation\s+)[a-zA-Z_]\w*/, lookbehind: !0, alias: "function" }, "definition-query": { pattern: /(\bquery\s+)[a-zA-Z_]\w*/, lookbehind: !0, alias: "function" }, keyword: /\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/, operator: /[!=|&]|\.{3}/, "property-query": /\w+(?=\s*\()/, object: /\w+(?=\s*\{)/, punctuation: /[!(){}\[\]:=,]/, property: /\w+/ }, h.hooks.add("after-tokenize", function(e) {
939
+ if (e.language === "graphql")
940
+ for (var n = e.tokens.filter(function(u) {
941
+ return typeof u != "string" && u.type !== "comment" && u.type !== "scalar";
942
+ }), t = 0; t < n.length; ) {
943
+ var a = n[t++];
944
+ if (a.type === "keyword" && a.content === "mutation") {
945
+ var r = [];
946
+ if (p(["definition-mutation", "punctuation"]) && g(1).content === "(") {
947
+ t += 2;
948
+ var o = m(/^\($/, /^\)$/);
949
+ if (o === -1)
950
+ continue;
951
+ for (; t < o; t++) {
952
+ var i = g(0);
953
+ i.type === "variable" && (v(i, "variable-input"), r.push(i.content));
954
+ }
955
+ t = o + 1;
956
+ }
957
+ if (p(["punctuation", "property-query"]) && g(0).content === "{" && (t++, v(g(0), "property-mutation"), 0 < r.length)) {
958
+ var l = m(/^\{$/, /^\}$/);
959
+ if (l !== -1)
960
+ for (var s = t; s < l; s++) {
961
+ var c = n[s];
962
+ c.type === "variable" && 0 <= r.indexOf(c.content) && v(c, "variable-input");
963
+ }
964
+ }
965
+ }
966
+ }
967
+ function g(u) {
968
+ return n[t + u];
969
+ }
970
+ function p(u, f) {
971
+ f = f || 0;
972
+ for (var d = 0; d < u.length; d++) {
973
+ var b = g(d + f);
974
+ if (!b || b.type !== u[d])
975
+ return;
976
+ }
977
+ return 1;
978
+ }
979
+ function m(u, f) {
980
+ for (var d = 1, b = t; b < n.length; b++) {
981
+ var y = n[b], w = y.content;
982
+ if (y.type === "punctuation" && typeof w == "string") {
983
+ if (u.test(w))
984
+ d++;
985
+ else if (f.test(w) && --d === 0)
986
+ return b;
987
+ }
988
+ }
989
+ return -1;
990
+ }
991
+ function v(u, f) {
992
+ var d = u.alias;
993
+ d ? Array.isArray(d) || (u.alias = d = [d]) : u.alias = d = [], d.push(f);
994
+ }
995
+ }), h.languages.sql = { comment: { pattern: /(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/, lookbehind: !0 }, variable: [{ pattern: /@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/, greedy: !0 }, /@[\w.$]+/], string: { pattern: /(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/, greedy: !0, lookbehind: !0 }, identifier: { pattern: /(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/, greedy: !0, lookbehind: !0, inside: { punctuation: /^`|`$/ } }, function: /\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i, keyword: /\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i, boolean: /\b(?:FALSE|NULL|TRUE)\b/i, number: /\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i, operator: /[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i, punctuation: /[;[\]()`,.]/ }, function(e) {
996
+ var n = e.languages.javascript["template-string"], t = n.pattern.source, a = n.inside.interpolation, r = a.inside["interpolation-punctuation"], o = a.pattern.source;
997
+ function i(p, m) {
998
+ if (e.languages[p])
999
+ return { pattern: RegExp("((?:" + m + ")\\s*)" + t), lookbehind: !0, greedy: !0, inside: { "template-punctuation": { pattern: /^`|`$/, alias: "string" }, "embedded-code": { pattern: /[\s\S]+/, alias: p } } };
1000
+ }
1001
+ function l(p, m, v) {
1002
+ return p = { code: p, grammar: m, language: v }, e.hooks.run("before-tokenize", p), p.tokens = e.tokenize(p.code, p.grammar), e.hooks.run("after-tokenize", p), p.tokens;
1003
+ }
1004
+ function s(p, m, v) {
1005
+ var d = e.tokenize(p, { interpolation: { pattern: RegExp(o), lookbehind: !0 } }), u = 0, f = {}, d = l(d.map(function(y) {
1006
+ if (typeof y == "string")
1007
+ return y;
1008
+ for (var w, E, y = y.content; p.indexOf((E = u++, w = "___" + v.toUpperCase() + "_" + E + "___")) !== -1; )
1009
+ ;
1010
+ return f[w] = y, w;
1011
+ }).join(""), m, v), b = Object.keys(f);
1012
+ return u = 0, function y(w) {
1013
+ for (var E = 0; E < w.length; E++) {
1014
+ if (u >= b.length)
1015
+ return;
1016
+ var k, R, O, P, F, L, I, K = w[E];
1017
+ typeof K == "string" || typeof K.content == "string" ? (k = b[u], (I = (L = typeof K == "string" ? K : K.content).indexOf(k)) !== -1 && (++u, R = L.substring(0, I), F = f[k], O = void 0, (P = {})["interpolation-punctuation"] = r, (P = e.tokenize(F, P)).length === 3 && ((O = [1, 1]).push.apply(O, l(P[1], e.languages.javascript, "javascript")), P.splice.apply(P, O)), O = new e.Token("interpolation", P, a.alias, F), P = L.substring(I + k.length), F = [], R && F.push(R), F.push(O), P && (y(L = [P]), F.push.apply(F, L)), typeof K == "string" ? (w.splice.apply(w, [E, 1].concat(F)), E += F.length - 1) : K.content = F)) : (I = K.content, Array.isArray(I) ? y(I) : y([I]));
1018
+ }
1019
+ }(d), new e.Token(v, d, "language-" + v, p);
1020
+ }
1021
+ e.languages.javascript["template-string"] = [i("css", /\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source), i("html", /\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source), i("svg", /\bsvg/.source), i("markdown", /\b(?:markdown|md)/.source), i("graphql", /\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source), i("sql", /\bsql/.source), n].filter(Boolean);
1022
+ var c = { javascript: !0, js: !0, typescript: !0, ts: !0, jsx: !0, tsx: !0 };
1023
+ function g(p) {
1024
+ return typeof p == "string" ? p : Array.isArray(p) ? p.map(g).join("") : g(p.content);
1025
+ }
1026
+ e.hooks.add("after-tokenize", function(p) {
1027
+ p.language in c && function m(v) {
1028
+ for (var u = 0, f = v.length; u < f; u++) {
1029
+ var d, b, y, w = v[u];
1030
+ typeof w != "string" && (d = w.content, Array.isArray(d) ? w.type === "template-string" ? (w = d[1], d.length === 3 && typeof w != "string" && w.type === "embedded-code" && (b = g(w), w = w.alias, w = Array.isArray(w) ? w[0] : w, y = e.languages[w]) && (d[1] = s(b, y, w))) : m(d) : typeof d != "string" && m([d]));
1031
+ }
1032
+ }(p.tokens);
1033
+ });
1034
+ }(h), function(e) {
1035
+ 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"];
1036
+ var n = e.languages.extend("typescript", {});
1037
+ delete n["class-name"], e.languages.typescript["class-name"].inside = n, 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: n } } } }), e.languages.ts = e.languages.typescript;
1038
+ }(h), function(e) {
1039
+ var n = e.languages.javascript, t = /\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source, a = "(@(?:arg|argument|param|property)\\s+(?:" + t + "\\s+)?)";
1040
+ e.languages.jsdoc = e.languages.extend("javadoclike", { parameter: { pattern: RegExp(a + /(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source), lookbehind: !0, inside: { punctuation: /\./ } } }), e.languages.insertBefore("jsdoc", "keyword", { "optional-parameter": { pattern: RegExp(a + /\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source), lookbehind: !0, inside: { parameter: { pattern: /(^\[)[$\w\xA0-\uFFFF\.]+/, lookbehind: !0, inside: { punctuation: /\./ } }, code: { pattern: /(=)[\s\S]*(?=\]$)/, lookbehind: !0, inside: n, alias: "language-javascript" }, punctuation: /[=[\]]/ } }, "class-name": [{ pattern: RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g, function() {
1041
+ return t;
1042
+ })), lookbehind: !0, inside: { punctuation: /\./ } }, { pattern: RegExp("(@[a-z]+\\s+)" + t), lookbehind: !0, inside: { string: n.string, number: n.number, boolean: n.boolean, keyword: e.languages.typescript.keyword, operator: /=>|\.\.\.|[&|?:*]/, punctuation: /[.,;=<>{}()[\]]/ } }], example: { pattern: /(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/, lookbehind: !0, inside: { code: { pattern: /^([\t ]*(?:\*\s*)?)\S.*$/m, lookbehind: !0, inside: n, alias: "language-javascript" } } } }), e.languages.javadoclike.addSupport("javascript", e.languages.jsdoc);
1043
+ }(h), function(e) {
1044
+ e.languages.flow = e.languages.extend("javascript", {}), e.languages.insertBefore("flow", "keyword", { type: [{ pattern: /\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/, alias: "class-name" }] }), e.languages.flow["function-variable"].pattern = /(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i, delete e.languages.flow.parameter, e.languages.insertBefore("flow", "operator", { "flow-punctuation": { pattern: /\{\||\|\}/, alias: "punctuation" } }), Array.isArray(e.languages.flow.keyword) || (e.languages.flow.keyword = [e.languages.flow.keyword]), e.languages.flow.keyword.unshift({ pattern: /(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/, lookbehind: !0 }, { pattern: /(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/, lookbehind: !0 });
1045
+ }(h), h.languages.n4js = h.languages.extend("javascript", { keyword: /\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/ }), h.languages.insertBefore("n4js", "constant", { annotation: { pattern: /@+\w+/, alias: "operator" } }), h.languages.n4jsd = h.languages.n4js, function(e) {
1046
+ function n(i, l) {
1047
+ return RegExp(i.replace(/<ID>/g, function() {
1048
+ return /(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source;
1049
+ }), l);
1050
+ }
1051
+ e.languages.insertBefore("javascript", "function-variable", { "method-variable": { pattern: RegExp("(\\.\\s*)" + e.languages.javascript["function-variable"].pattern.source), lookbehind: !0, alias: ["function-variable", "method", "function", "property-access"] } }), e.languages.insertBefore("javascript", "function", { method: { pattern: RegExp("(\\.\\s*)" + e.languages.javascript.function.source), lookbehind: !0, alias: ["function", "property-access"] } }), e.languages.insertBefore("javascript", "constant", { "known-class-name": [{ pattern: /\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/, alias: "class-name" }, { pattern: /\b(?:[A-Z]\w*)Error\b/, alias: "class-name" }] }), e.languages.insertBefore("javascript", "keyword", { imports: { pattern: n(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source), lookbehind: !0, inside: e.languages.javascript }, exports: { pattern: n(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source), lookbehind: !0, inside: e.languages.javascript } }), e.languages.javascript.keyword.unshift({ pattern: /\b(?:as|default|export|from|import)\b/, alias: "module" }, { pattern: /\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/, alias: "control-flow" }, { pattern: /\bnull\b/, alias: ["null", "nil"] }, { pattern: /\bundefined\b/, alias: "nil" }), e.languages.insertBefore("javascript", "operator", { spread: { pattern: /\.{3}/, alias: "operator" }, arrow: { pattern: /=>/, alias: "operator" } }), e.languages.insertBefore("javascript", "punctuation", { "property-access": { pattern: n(/(\.\s*)#?<ID>/.source), lookbehind: !0 }, "maybe-class-name": { pattern: /(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/, lookbehind: !0 }, dom: { pattern: /\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/, alias: "variable" }, console: { pattern: /\bconsole(?=\s*\.)/, alias: "class-name" } });
1052
+ for (var t = ["function", "function-variable", "method", "method-variable", "property-access"], a = 0; a < t.length; a++) {
1053
+ var o = t[a], r = e.languages.javascript[o], o = (r = e.util.type(r) === "RegExp" ? e.languages.javascript[o] = { pattern: r } : r).inside || {};
1054
+ (r.inside = o)["maybe-class-name"] = /^[A-Z][\s\S]*/;
1055
+ }
1056
+ }(h), function(e) {
1057
+ var n = e.util.clone(e.languages.javascript), t = /(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source, a = /(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source, r = /(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;
1058
+ function o(s, c) {
1059
+ return s = s.replace(/<S>/g, function() {
1060
+ return t;
1061
+ }).replace(/<BRACES>/g, function() {
1062
+ return a;
1063
+ }).replace(/<SPREAD>/g, function() {
1064
+ return r;
1065
+ }), RegExp(s, c);
1066
+ }
1067
+ r = o(r).source, e.languages.jsx = e.languages.extend("markup", n), e.languages.jsx.tag.pattern = o(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source), e.languages.jsx.tag.inside.tag.pattern = /^<\/?[^\s>\/]*/, e.languages.jsx.tag.inside["attr-value"].pattern = /=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/, e.languages.jsx.tag.inside.tag.inside["class-name"] = /^[A-Z]\w*(?:\.[A-Z]\w*)*$/, e.languages.jsx.tag.inside.comment = n.comment, e.languages.insertBefore("inside", "attr-name", { spread: { pattern: o(/<SPREAD>/.source), inside: e.languages.jsx } }, e.languages.jsx.tag), e.languages.insertBefore("inside", "special-attr", { script: { pattern: o(/=<BRACES>/.source), alias: "language-javascript", inside: { "script-punctuation": { pattern: /^=(?=\{)/, alias: "punctuation" }, rest: e.languages.jsx } } }, e.languages.jsx.tag);
1068
+ function i(s) {
1069
+ for (var c = [], g = 0; g < s.length; g++) {
1070
+ var p = s[g], m = !1;
1071
+ typeof p != "string" && (p.type === "tag" && p.content[0] && p.content[0].type === "tag" ? p.content[0].content[0].content === "</" ? 0 < c.length && c[c.length - 1].tagName === l(p.content[0].content[1]) && c.pop() : p.content[p.content.length - 1].content !== "/>" && c.push({ tagName: l(p.content[0].content[1]), openedBraces: 0 }) : 0 < c.length && p.type === "punctuation" && p.content === "{" ? c[c.length - 1].openedBraces++ : 0 < c.length && 0 < c[c.length - 1].openedBraces && p.type === "punctuation" && p.content === "}" ? c[c.length - 1].openedBraces-- : m = !0), (m || typeof p == "string") && 0 < c.length && c[c.length - 1].openedBraces === 0 && (m = l(p), g < s.length - 1 && (typeof s[g + 1] == "string" || s[g + 1].type === "plain-text") && (m += l(s[g + 1]), s.splice(g + 1, 1)), 0 < g && (typeof s[g - 1] == "string" || s[g - 1].type === "plain-text") && (m = l(s[g - 1]) + m, s.splice(g - 1, 1), g--), s[g] = new e.Token("plain-text", m, null, m)), p.content && typeof p.content != "string" && i(p.content);
1072
+ }
1073
+ }
1074
+ var l = function(s) {
1075
+ return s ? typeof s == "string" ? s : typeof s.content == "string" ? s.content : s.content.map(l).join("") : "";
1076
+ };
1077
+ e.hooks.add("after-tokenize", function(s) {
1078
+ s.language !== "jsx" && s.language !== "tsx" || i(s.tokens);
1079
+ });
1080
+ }(h), function(e) {
1081
+ var n = e.util.clone(e.languages.typescript), n = (e.languages.tsx = e.languages.extend("jsx", n), delete e.languages.tsx.parameter, delete e.languages.tsx["literal-property"], e.languages.tsx.tag);
1082
+ n.pattern = RegExp(/(^|[^\w$]|(?=<\/))/.source + "(?:" + n.pattern.source + ")", n.pattern.flags), n.lookbehind = !0;
1083
+ }(h), h.languages.swift = { comment: { pattern: /(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/, lookbehind: !0, greedy: !0 }, "string-literal": [{ pattern: RegExp(/(^|[^"#])/.source + "(?:" + /"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source + "|" + /"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source + ")" + /(?!["#])/.source), lookbehind: !0, greedy: !0, inside: { interpolation: { pattern: /(\\\()(?:[^()]|\([^()]*\))*(?=\))/, lookbehind: !0, inside: null }, "interpolation-punctuation": { pattern: /^\)|\\\($/, alias: "punctuation" }, punctuation: /\\(?=[\r\n])/, string: /[\s\S]+/ } }, { pattern: RegExp(/(^|[^"#])(#+)/.source + "(?:" + /"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source + "|" + /"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source + ")\\2"), lookbehind: !0, greedy: !0, inside: { interpolation: { pattern: /(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/, lookbehind: !0, inside: null }, "interpolation-punctuation": { pattern: /^\)|\\#+\($/, alias: "punctuation" }, string: /[\s\S]+/ } }], directive: { pattern: RegExp(/#/.source + "(?:" + /(?:elseif|if)\b/.source + "(?:[ ]*" + /(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source + ")+|" + /(?:else|endif)\b/.source + ")"), alias: "property", inside: { "directive-name": /^#\w+/, boolean: /\b(?:false|true)\b/, number: /\b\d+(?:\.\d+)*\b/, operator: /!|&&|\|\||[<>]=?/, punctuation: /[(),]/ } }, literal: { pattern: /#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/, alias: "constant" }, "other-directive": { pattern: /#\w+\b/, alias: "property" }, attribute: { pattern: /@\w+/, alias: "atrule" }, "function-definition": { pattern: /(\bfunc\s+)\w+/, lookbehind: !0, alias: "function" }, label: { pattern: /\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/, lookbehind: !0, alias: "important" }, keyword: /\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/, boolean: /\b(?:false|true)\b/, nil: { pattern: /\bnil\b/, alias: "constant" }, "short-argument": /\$\d+\b/, omit: { pattern: /\b_\b/, alias: "keyword" }, number: /\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i, "class-name": /\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/, function: /\b[a-z_]\w*(?=\s*\()/i, constant: /\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/, operator: /[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/, punctuation: /[{}[\]();,.:\\]/ }, h.languages.swift["string-literal"].forEach(function(e) {
1084
+ e.inside.interpolation.inside = h.languages.swift;
1085
+ }), function(e) {
1086
+ e.languages.kotlin = e.languages.extend("clike", { keyword: { pattern: /(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/, lookbehind: !0 }, function: [{ pattern: /(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/, greedy: !0 }, { pattern: /(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/, lookbehind: !0, greedy: !0 }], number: /\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/, operator: /\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/ }), delete e.languages.kotlin["class-name"];
1087
+ var n = { "interpolation-punctuation": { pattern: /^\$\{?|\}$/, alias: "punctuation" }, expression: { pattern: /[\s\S]+/, inside: e.languages.kotlin } };
1088
+ e.languages.insertBefore("kotlin", "string", { "string-literal": [{ pattern: /"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/, alias: "multiline", inside: { interpolation: { pattern: /\$(?:[a-z_]\w*|\{[^{}]*\})/i, inside: n }, string: /[\s\S]+/ } }, { pattern: /"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/, alias: "singleline", inside: { interpolation: { pattern: /((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i, lookbehind: !0, inside: n }, string: /[\s\S]+/ } }], char: { pattern: /'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/, greedy: !0 } }), delete e.languages.kotlin.string, e.languages.insertBefore("kotlin", "keyword", { annotation: { pattern: /\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/, alias: "builtin" } }), e.languages.insertBefore("kotlin", "function", { label: { pattern: /\b\w+@|@\w+\b/, alias: "symbol" } }), e.languages.kt = e.languages.kotlin, e.languages.kts = e.languages.kotlin;
1089
+ }(h), h.languages.c = h.languages.extend("clike", { comment: { pattern: /\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/, greedy: !0 }, string: { pattern: /"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/, greedy: !0 }, "class-name": { pattern: /(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/, lookbehind: !0 }, keyword: /\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/, function: /\b[a-z_]\w*(?=\s*\()/i, number: /(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i, operator: />>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/ }), h.languages.insertBefore("c", "string", { char: { pattern: /'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/, greedy: !0 } }), h.languages.insertBefore("c", "string", { macro: { pattern: /(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im, lookbehind: !0, greedy: !0, alias: "property", inside: { string: [{ pattern: /^(#\s*include\s*)<[^>]+>/, lookbehind: !0 }, h.languages.c.string], char: h.languages.c.char, comment: h.languages.c.comment, "macro-name": [{ pattern: /(^#\s*define\s+)\w+\b(?!\()/i, lookbehind: !0 }, { pattern: /(^#\s*define\s+)\w+\b(?=\()/i, lookbehind: !0, alias: "function" }], directive: { pattern: /^(#\s*)[a-z]+/, lookbehind: !0, alias: "keyword" }, "directive-hash": /^#/, punctuation: /##|\\(?=[\r\n])/, expression: { pattern: /\S[\s\S]*/, inside: h.languages.c } } } }), h.languages.insertBefore("c", "function", { constant: /\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/ }), delete h.languages.c.boolean, h.languages.objectivec = h.languages.extend("c", { string: { pattern: /@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/, greedy: !0 }, keyword: /\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/, operator: /-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/ }), delete h.languages.objectivec["class-name"], h.languages.objc = h.languages.objectivec, h.languages.reason = h.languages.extend("clike", { string: { pattern: /"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/, greedy: !0 }, "class-name": /\b[A-Z]\w*/, keyword: /\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/, operator: /\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/ }), h.languages.insertBefore("reason", "class-name", { char: { pattern: /'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/, greedy: !0 }, constructor: /\b[A-Z]\w*\b(?!\s*\.)/, label: { pattern: /\b[a-z]\w*(?=::)/, alias: "symbol" } }), delete h.languages.reason.function, function(e) {
1090
+ for (var n = /\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source, t = 0; t < 2; t++)
1091
+ n = n.replace(/<self>/g, function() {
1092
+ return n;
1093
+ });
1094
+ n = n.replace(/<self>/g, function() {
1095
+ return /[^\s\S]/.source;
1096
+ }), e.languages.rust = { comment: [{ pattern: RegExp(/(^|[^\\])/.source + n), 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;
1097
+ }(h), h.languages.go = h.languages.extend("clike", { string: { pattern: /(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/, lookbehind: !0, greedy: !0 }, keyword: /\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/, boolean: /\b(?:_|false|iota|nil|true)\b/, number: [/\b0(?:b[01_]+|o[0-7_]+)i?\b/i, /\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i, /(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i], operator: /[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./, builtin: /\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/ }), h.languages.insertBefore("go", "string", { char: { pattern: /'(?:\\.|[^'\\\r\n]){0,10}'/, greedy: !0 } }), delete h.languages.go["class-name"], function(e) {
1098
+ var n = /\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/, t = /\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g, function() {
1099
+ return n.source;
1100
+ });
1101
+ e.languages.cpp = e.languages.extend("c", { "class-name": [{ pattern: RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g, function() {
1102
+ return n.source;
1103
+ })), lookbehind: !0 }, /\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/, /\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i, /\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/], keyword: n, number: { pattern: /(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i, greedy: !0 }, operator: />>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/, boolean: /\b(?:false|true)\b/ }), e.languages.insertBefore("cpp", "string", { module: { pattern: RegExp(/(\b(?:import|module)\s+)/.source + "(?:" + /"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source + "|" + /<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g, function() {
1104
+ return t;
1105
+ }) + ")"), lookbehind: !0, greedy: !0, inside: { string: /^[<"][\s\S]+/, operator: /:/, punctuation: /\./ } }, "raw-string": { pattern: /R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/, alias: "string", greedy: !0 } }), e.languages.insertBefore("cpp", "keyword", { "generic-function": { pattern: /\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i, inside: { function: /^\w+/, generic: { pattern: /<[\s\S]+/, alias: "class-name", inside: e.languages.cpp } } } }), e.languages.insertBefore("cpp", "operator", { "double-colon": { pattern: /::/, alias: "punctuation" } }), e.languages.insertBefore("cpp", "class-name", { "base-clause": { pattern: /(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/, lookbehind: !0, greedy: !0, inside: e.languages.extend("cpp", {}) } }), e.languages.insertBefore("inside", "double-colon", { "class-name": /\b[a-z_]\w*\b(?!\s*::)/i }, e.languages.cpp["base-clause"]);
1106
+ }(h), h.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: /![sra](?=[:}]$)/, 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: /[{}[\];(),.:]/ }, h.languages.python["string-interpolation"].inside.interpolation.inside.rest = h.languages.python, h.languages.py = h.languages.python, h.languages.json = { property: { pattern: /(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/, lookbehind: !0, greedy: !0 }, string: { pattern: /(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/, lookbehind: !0, greedy: !0 }, comment: { pattern: /\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/, greedy: !0 }, number: /-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i, punctuation: /[{}[\],]/, operator: /:/, boolean: /\b(?:false|true)\b/, null: { pattern: /\bnull\b/, alias: "keyword" } }, h.languages.webmanifest = h.languages.json;
1107
+ var sn = {};
1108
+ gr(sn, {
1109
+ dracula: () => vr,
1110
+ duotoneDark: () => wr,
1111
+ duotoneLight: () => kr,
1112
+ github: () => Sr,
1113
+ gruvboxMaterialDark: () => ea,
1114
+ gruvboxMaterialLight: () => ta,
1115
+ jettwaveDark: () => Kr,
1116
+ jettwaveLight: () => qr,
1117
+ nightOwl: () => Fr,
1118
+ nightOwlLight: () => Tr,
1119
+ oceanicNext: () => Ir,
1120
+ okaidia: () => Rr,
1121
+ oneDark: () => Vr,
1122
+ oneLight: () => Qr,
1123
+ palenight: () => Dr,
1124
+ shadesOfPurple: () => Pr,
1125
+ synthwave84: () => jr,
1126
+ ultramin: () => Ur,
1127
+ vsDark: () => nt,
1128
+ vsLight: () => Gr
1129
+ });
1130
+ var br = {
1131
+ plain: {
1132
+ color: "#F8F8F2",
1133
+ backgroundColor: "#282A36"
1134
+ },
1135
+ styles: [
1136
+ {
1137
+ types: ["prolog", "constant", "builtin"],
1138
+ style: {
1139
+ color: "rgb(189, 147, 249)"
1140
+ }
1141
+ },
1142
+ {
1143
+ types: ["inserted", "function"],
1144
+ style: {
1145
+ color: "rgb(80, 250, 123)"
1146
+ }
1147
+ },
1148
+ {
1149
+ types: ["deleted"],
1150
+ style: {
1151
+ color: "rgb(255, 85, 85)"
1152
+ }
1153
+ },
1154
+ {
1155
+ types: ["changed"],
1156
+ style: {
1157
+ color: "rgb(255, 184, 108)"
1158
+ }
1159
+ },
1160
+ {
1161
+ types: ["punctuation", "symbol"],
1162
+ style: {
1163
+ color: "rgb(248, 248, 242)"
1164
+ }
1165
+ },
1166
+ {
1167
+ types: ["string", "char", "tag", "selector"],
1168
+ style: {
1169
+ color: "rgb(255, 121, 198)"
1170
+ }
1171
+ },
1172
+ {
1173
+ types: ["keyword", "variable"],
1174
+ style: {
1175
+ color: "rgb(189, 147, 249)",
1176
+ fontStyle: "italic"
1177
+ }
1178
+ },
1179
+ {
1180
+ types: ["comment"],
1181
+ style: {
1182
+ color: "rgb(98, 114, 164)"
1183
+ }
1184
+ },
1185
+ {
1186
+ types: ["attr-name"],
1187
+ style: {
1188
+ color: "rgb(241, 250, 140)"
1189
+ }
1190
+ }
1191
+ ]
1192
+ }, vr = br, xr = {
1193
+ plain: {
1194
+ backgroundColor: "#2a2734",
1195
+ color: "#9a86fd"
1196
+ },
1197
+ styles: [
1198
+ {
1199
+ types: ["comment", "prolog", "doctype", "cdata", "punctuation"],
1200
+ style: {
1201
+ color: "#6c6783"
1202
+ }
1203
+ },
1204
+ {
1205
+ types: ["namespace"],
1206
+ style: {
1207
+ opacity: 0.7
1208
+ }
1209
+ },
1210
+ {
1211
+ types: ["tag", "operator", "number"],
1212
+ style: {
1213
+ color: "#e09142"
1214
+ }
1215
+ },
1216
+ {
1217
+ types: ["property", "function"],
1218
+ style: {
1219
+ color: "#9a86fd"
1220
+ }
1221
+ },
1222
+ {
1223
+ types: ["tag-id", "selector", "atrule-id"],
1224
+ style: {
1225
+ color: "#eeebff"
1226
+ }
1227
+ },
1228
+ {
1229
+ types: ["attr-name"],
1230
+ style: {
1231
+ color: "#c4b9fe"
1232
+ }
1233
+ },
1234
+ {
1235
+ types: [
1236
+ "boolean",
1237
+ "string",
1238
+ "entity",
1239
+ "url",
1240
+ "attr-value",
1241
+ "keyword",
1242
+ "control",
1243
+ "directive",
1244
+ "unit",
1245
+ "statement",
1246
+ "regex",
1247
+ "atrule",
1248
+ "placeholder",
1249
+ "variable"
1250
+ ],
1251
+ style: {
1252
+ color: "#ffcc99"
1253
+ }
1254
+ },
1255
+ {
1256
+ types: ["deleted"],
1257
+ style: {
1258
+ textDecorationLine: "line-through"
1259
+ }
1260
+ },
1261
+ {
1262
+ types: ["inserted"],
1263
+ style: {
1264
+ textDecorationLine: "underline"
1265
+ }
1266
+ },
1267
+ {
1268
+ types: ["italic"],
1269
+ style: {
1270
+ fontStyle: "italic"
1271
+ }
1272
+ },
1273
+ {
1274
+ types: ["important", "bold"],
1275
+ style: {
1276
+ fontWeight: "bold"
1277
+ }
1278
+ },
1279
+ {
1280
+ types: ["important"],
1281
+ style: {
1282
+ color: "#c4b9fe"
1283
+ }
1284
+ }
1285
+ ]
1286
+ }, wr = xr, Ar = {
1287
+ plain: {
1288
+ backgroundColor: "#faf8f5",
1289
+ color: "#728fcb"
1290
+ },
1291
+ styles: [
1292
+ {
1293
+ types: ["comment", "prolog", "doctype", "cdata", "punctuation"],
1294
+ style: {
1295
+ color: "#b6ad9a"
1296
+ }
1297
+ },
1298
+ {
1299
+ types: ["namespace"],
1300
+ style: {
1301
+ opacity: 0.7
1302
+ }
1303
+ },
1304
+ {
1305
+ types: ["tag", "operator", "number"],
1306
+ style: {
1307
+ color: "#063289"
1308
+ }
1309
+ },
1310
+ {
1311
+ types: ["property", "function"],
1312
+ style: {
1313
+ color: "#b29762"
1314
+ }
1315
+ },
1316
+ {
1317
+ types: ["tag-id", "selector", "atrule-id"],
1318
+ style: {
1319
+ color: "#2d2006"
1320
+ }
1321
+ },
1322
+ {
1323
+ types: ["attr-name"],
1324
+ style: {
1325
+ color: "#896724"
1326
+ }
1327
+ },
1328
+ {
1329
+ types: [
1330
+ "boolean",
1331
+ "string",
1332
+ "entity",
1333
+ "url",
1334
+ "attr-value",
1335
+ "keyword",
1336
+ "control",
1337
+ "directive",
1338
+ "unit",
1339
+ "statement",
1340
+ "regex",
1341
+ "atrule"
1342
+ ],
1343
+ style: {
1344
+ color: "#728fcb"
1345
+ }
1346
+ },
1347
+ {
1348
+ types: ["placeholder", "variable"],
1349
+ style: {
1350
+ color: "#93abdc"
1351
+ }
1352
+ },
1353
+ {
1354
+ types: ["deleted"],
1355
+ style: {
1356
+ textDecorationLine: "line-through"
1357
+ }
1358
+ },
1359
+ {
1360
+ types: ["inserted"],
1361
+ style: {
1362
+ textDecorationLine: "underline"
1363
+ }
1364
+ },
1365
+ {
1366
+ types: ["italic"],
1367
+ style: {
1368
+ fontStyle: "italic"
1369
+ }
1370
+ },
1371
+ {
1372
+ types: ["important", "bold"],
1373
+ style: {
1374
+ fontWeight: "bold"
1375
+ }
1376
+ },
1377
+ {
1378
+ types: ["important"],
1379
+ style: {
1380
+ color: "#896724"
1381
+ }
1382
+ }
1383
+ ]
1384
+ }, kr = Ar, Er = {
1385
+ plain: {
1386
+ color: "#393A34",
1387
+ backgroundColor: "#f6f8fa"
1388
+ },
1389
+ styles: [
1390
+ {
1391
+ types: ["comment", "prolog", "doctype", "cdata"],
1392
+ style: {
1393
+ color: "#999988",
1394
+ fontStyle: "italic"
1395
+ }
1396
+ },
1397
+ {
1398
+ types: ["namespace"],
1399
+ style: {
1400
+ opacity: 0.7
1401
+ }
1402
+ },
1403
+ {
1404
+ types: ["string", "attr-value"],
1405
+ style: {
1406
+ color: "#e3116c"
1407
+ }
1408
+ },
1409
+ {
1410
+ types: ["punctuation", "operator"],
1411
+ style: {
1412
+ color: "#393A34"
1413
+ }
1414
+ },
1415
+ {
1416
+ types: [
1417
+ "entity",
1418
+ "url",
1419
+ "symbol",
1420
+ "number",
1421
+ "boolean",
1422
+ "variable",
1423
+ "constant",
1424
+ "property",
1425
+ "regex",
1426
+ "inserted"
1427
+ ],
1428
+ style: {
1429
+ color: "#36acaa"
1430
+ }
1431
+ },
1432
+ {
1433
+ types: ["atrule", "keyword", "attr-name", "selector"],
1434
+ style: {
1435
+ color: "#00a4db"
1436
+ }
1437
+ },
1438
+ {
1439
+ types: ["function", "deleted", "tag"],
1440
+ style: {
1441
+ color: "#d73a49"
1442
+ }
1443
+ },
1444
+ {
1445
+ types: ["function-variable"],
1446
+ style: {
1447
+ color: "#6f42c1"
1448
+ }
1449
+ },
1450
+ {
1451
+ types: ["tag", "selector", "keyword"],
1452
+ style: {
1453
+ color: "#00009f"
1454
+ }
1455
+ }
1456
+ ]
1457
+ }, Sr = Er, _r = {
1458
+ plain: {
1459
+ color: "#d6deeb",
1460
+ backgroundColor: "#011627"
1461
+ },
1462
+ styles: [
1463
+ {
1464
+ types: ["changed"],
1465
+ style: {
1466
+ color: "rgb(162, 191, 252)",
1467
+ fontStyle: "italic"
1468
+ }
1469
+ },
1470
+ {
1471
+ types: ["deleted"],
1472
+ style: {
1473
+ color: "rgba(239, 83, 80, 0.56)",
1474
+ fontStyle: "italic"
1475
+ }
1476
+ },
1477
+ {
1478
+ types: ["inserted", "attr-name"],
1479
+ style: {
1480
+ color: "rgb(173, 219, 103)",
1481
+ fontStyle: "italic"
1482
+ }
1483
+ },
1484
+ {
1485
+ types: ["comment"],
1486
+ style: {
1487
+ color: "rgb(99, 119, 119)",
1488
+ fontStyle: "italic"
1489
+ }
1490
+ },
1491
+ {
1492
+ types: ["string", "url"],
1493
+ style: {
1494
+ color: "rgb(173, 219, 103)"
1495
+ }
1496
+ },
1497
+ {
1498
+ types: ["variable"],
1499
+ style: {
1500
+ color: "rgb(214, 222, 235)"
1501
+ }
1502
+ },
1503
+ {
1504
+ types: ["number"],
1505
+ style: {
1506
+ color: "rgb(247, 140, 108)"
1507
+ }
1508
+ },
1509
+ {
1510
+ types: ["builtin", "char", "constant", "function"],
1511
+ style: {
1512
+ color: "rgb(130, 170, 255)"
1513
+ }
1514
+ },
1515
+ {
1516
+ // This was manually added after the auto-generation
1517
+ // so that punctuations are not italicised
1518
+ types: ["punctuation"],
1519
+ style: {
1520
+ color: "rgb(199, 146, 234)"
1521
+ }
1522
+ },
1523
+ {
1524
+ types: ["selector", "doctype"],
1525
+ style: {
1526
+ color: "rgb(199, 146, 234)",
1527
+ fontStyle: "italic"
1528
+ }
1529
+ },
1530
+ {
1531
+ types: ["class-name"],
1532
+ style: {
1533
+ color: "rgb(255, 203, 139)"
1534
+ }
1535
+ },
1536
+ {
1537
+ types: ["tag", "operator", "keyword"],
1538
+ style: {
1539
+ color: "rgb(127, 219, 202)"
1540
+ }
1541
+ },
1542
+ {
1543
+ types: ["boolean"],
1544
+ style: {
1545
+ color: "rgb(255, 88, 116)"
1546
+ }
1547
+ },
1548
+ {
1549
+ types: ["property"],
1550
+ style: {
1551
+ color: "rgb(128, 203, 196)"
1552
+ }
1553
+ },
1554
+ {
1555
+ types: ["namespace"],
1556
+ style: {
1557
+ color: "rgb(178, 204, 214)"
1558
+ }
1559
+ }
1560
+ ]
1561
+ }, Fr = _r, Cr = {
1562
+ plain: {
1563
+ color: "#403f53",
1564
+ backgroundColor: "#FBFBFB"
1565
+ },
1566
+ styles: [
1567
+ {
1568
+ types: ["changed"],
1569
+ style: {
1570
+ color: "rgb(162, 191, 252)",
1571
+ fontStyle: "italic"
1572
+ }
1573
+ },
1574
+ {
1575
+ types: ["deleted"],
1576
+ style: {
1577
+ color: "rgba(239, 83, 80, 0.56)",
1578
+ fontStyle: "italic"
1579
+ }
1580
+ },
1581
+ {
1582
+ types: ["inserted", "attr-name"],
1583
+ style: {
1584
+ color: "rgb(72, 118, 214)",
1585
+ fontStyle: "italic"
1586
+ }
1587
+ },
1588
+ {
1589
+ types: ["comment"],
1590
+ style: {
1591
+ color: "rgb(152, 159, 177)",
1592
+ fontStyle: "italic"
1593
+ }
1594
+ },
1595
+ {
1596
+ types: ["string", "builtin", "char", "constant", "url"],
1597
+ style: {
1598
+ color: "rgb(72, 118, 214)"
1599
+ }
1600
+ },
1601
+ {
1602
+ types: ["variable"],
1603
+ style: {
1604
+ color: "rgb(201, 103, 101)"
1605
+ }
1606
+ },
1607
+ {
1608
+ types: ["number"],
1609
+ style: {
1610
+ color: "rgb(170, 9, 130)"
1611
+ }
1612
+ },
1613
+ {
1614
+ // This was manually added after the auto-generation
1615
+ // so that punctuations are not italicised
1616
+ types: ["punctuation"],
1617
+ style: {
1618
+ color: "rgb(153, 76, 195)"
1619
+ }
1620
+ },
1621
+ {
1622
+ types: ["function", "selector", "doctype"],
1623
+ style: {
1624
+ color: "rgb(153, 76, 195)",
1625
+ fontStyle: "italic"
1626
+ }
1627
+ },
1628
+ {
1629
+ types: ["class-name"],
1630
+ style: {
1631
+ color: "rgb(17, 17, 17)"
1632
+ }
1633
+ },
1634
+ {
1635
+ types: ["tag"],
1636
+ style: {
1637
+ color: "rgb(153, 76, 195)"
1638
+ }
1639
+ },
1640
+ {
1641
+ types: ["operator", "property", "keyword", "namespace"],
1642
+ style: {
1643
+ color: "rgb(12, 150, 155)"
1644
+ }
1645
+ },
1646
+ {
1647
+ types: ["boolean"],
1648
+ style: {
1649
+ color: "rgb(188, 84, 84)"
1650
+ }
1651
+ }
1652
+ ]
1653
+ }, Tr = Cr, Z = {
1654
+ char: "#D8DEE9",
1655
+ comment: "#999999",
1656
+ keyword: "#c5a5c5",
1657
+ primitive: "#5a9bcf",
1658
+ string: "#8dc891",
1659
+ variable: "#d7deea",
1660
+ boolean: "#ff8b50",
1661
+ tag: "#fc929e",
1662
+ function: "#79b6f2",
1663
+ className: "#FAC863"
1664
+ }, Or = {
1665
+ plain: {
1666
+ backgroundColor: "#282c34",
1667
+ color: "#ffffff"
1668
+ },
1669
+ styles: [
1670
+ {
1671
+ types: ["attr-name"],
1672
+ style: {
1673
+ color: Z.keyword
1674
+ }
1675
+ },
1676
+ {
1677
+ types: ["attr-value"],
1678
+ style: {
1679
+ color: Z.string
1680
+ }
1681
+ },
1682
+ {
1683
+ types: [
1684
+ "comment",
1685
+ "block-comment",
1686
+ "prolog",
1687
+ "doctype",
1688
+ "cdata",
1689
+ "shebang"
1690
+ ],
1691
+ style: {
1692
+ color: Z.comment
1693
+ }
1694
+ },
1695
+ {
1696
+ types: [
1697
+ "property",
1698
+ "number",
1699
+ "function-name",
1700
+ "constant",
1701
+ "symbol",
1702
+ "deleted"
1703
+ ],
1704
+ style: {
1705
+ color: Z.primitive
1706
+ }
1707
+ },
1708
+ {
1709
+ types: ["boolean"],
1710
+ style: {
1711
+ color: Z.boolean
1712
+ }
1713
+ },
1714
+ {
1715
+ types: ["tag"],
1716
+ style: {
1717
+ color: Z.tag
1718
+ }
1719
+ },
1720
+ {
1721
+ types: ["string"],
1722
+ style: {
1723
+ color: Z.string
1724
+ }
1725
+ },
1726
+ {
1727
+ types: ["punctuation"],
1728
+ style: {
1729
+ color: Z.string
1730
+ }
1731
+ },
1732
+ {
1733
+ types: ["selector", "char", "builtin", "inserted"],
1734
+ style: {
1735
+ color: Z.char
1736
+ }
1737
+ },
1738
+ {
1739
+ types: ["function"],
1740
+ style: {
1741
+ color: Z.function
1742
+ }
1743
+ },
1744
+ {
1745
+ types: ["operator", "entity", "url", "variable"],
1746
+ style: {
1747
+ color: Z.variable
1748
+ }
1749
+ },
1750
+ {
1751
+ types: ["keyword"],
1752
+ style: {
1753
+ color: Z.keyword
1754
+ }
1755
+ },
1756
+ {
1757
+ types: ["atrule", "class-name"],
1758
+ style: {
1759
+ color: Z.className
1760
+ }
1761
+ },
1762
+ {
1763
+ types: ["important"],
1764
+ style: {
1765
+ fontWeight: "400"
1766
+ }
1767
+ },
1768
+ {
1769
+ types: ["bold"],
1770
+ style: {
1771
+ fontWeight: "bold"
1772
+ }
1773
+ },
1774
+ {
1775
+ types: ["italic"],
1776
+ style: {
1777
+ fontStyle: "italic"
1778
+ }
1779
+ },
1780
+ {
1781
+ types: ["namespace"],
1782
+ style: {
1783
+ opacity: 0.7
1784
+ }
1785
+ }
1786
+ ]
1787
+ }, Ir = Or, Lr = {
1788
+ plain: {
1789
+ color: "#f8f8f2",
1790
+ backgroundColor: "#272822"
1791
+ },
1792
+ styles: [
1793
+ {
1794
+ types: ["changed"],
1795
+ style: {
1796
+ color: "rgb(162, 191, 252)",
1797
+ fontStyle: "italic"
1798
+ }
1799
+ },
1800
+ {
1801
+ types: ["deleted"],
1802
+ style: {
1803
+ color: "#f92672",
1804
+ fontStyle: "italic"
1805
+ }
1806
+ },
1807
+ {
1808
+ types: ["inserted"],
1809
+ style: {
1810
+ color: "rgb(173, 219, 103)",
1811
+ fontStyle: "italic"
1812
+ }
1813
+ },
1814
+ {
1815
+ types: ["comment"],
1816
+ style: {
1817
+ color: "#8292a2",
1818
+ fontStyle: "italic"
1819
+ }
1820
+ },
1821
+ {
1822
+ types: ["string", "url"],
1823
+ style: {
1824
+ color: "#a6e22e"
1825
+ }
1826
+ },
1827
+ {
1828
+ types: ["variable"],
1829
+ style: {
1830
+ color: "#f8f8f2"
1831
+ }
1832
+ },
1833
+ {
1834
+ types: ["number"],
1835
+ style: {
1836
+ color: "#ae81ff"
1837
+ }
1838
+ },
1839
+ {
1840
+ types: ["builtin", "char", "constant", "function", "class-name"],
1841
+ style: {
1842
+ color: "#e6db74"
1843
+ }
1844
+ },
1845
+ {
1846
+ types: ["punctuation"],
1847
+ style: {
1848
+ color: "#f8f8f2"
1849
+ }
1850
+ },
1851
+ {
1852
+ types: ["selector", "doctype"],
1853
+ style: {
1854
+ color: "#a6e22e",
1855
+ fontStyle: "italic"
1856
+ }
1857
+ },
1858
+ {
1859
+ types: ["tag", "operator", "keyword"],
1860
+ style: {
1861
+ color: "#66d9ef"
1862
+ }
1863
+ },
1864
+ {
1865
+ types: ["boolean"],
1866
+ style: {
1867
+ color: "#ae81ff"
1868
+ }
1869
+ },
1870
+ {
1871
+ types: ["namespace"],
1872
+ style: {
1873
+ color: "rgb(178, 204, 214)",
1874
+ opacity: 0.7
1875
+ }
1876
+ },
1877
+ {
1878
+ types: ["tag", "property"],
1879
+ style: {
1880
+ color: "#f92672"
1881
+ }
1882
+ },
1883
+ {
1884
+ types: ["attr-name"],
1885
+ style: {
1886
+ color: "#a6e22e !important"
1887
+ }
1888
+ },
1889
+ {
1890
+ types: ["doctype"],
1891
+ style: {
1892
+ color: "#8292a2"
1893
+ }
1894
+ },
1895
+ {
1896
+ types: ["rule"],
1897
+ style: {
1898
+ color: "#e6db74"
1899
+ }
1900
+ }
1901
+ ]
1902
+ }, Rr = Lr, Nr = {
1903
+ plain: {
1904
+ color: "#bfc7d5",
1905
+ backgroundColor: "#292d3e"
1906
+ },
1907
+ styles: [
1908
+ {
1909
+ types: ["comment"],
1910
+ style: {
1911
+ color: "rgb(105, 112, 152)",
1912
+ fontStyle: "italic"
1913
+ }
1914
+ },
1915
+ {
1916
+ types: ["string", "inserted"],
1917
+ style: {
1918
+ color: "rgb(195, 232, 141)"
1919
+ }
1920
+ },
1921
+ {
1922
+ types: ["number"],
1923
+ style: {
1924
+ color: "rgb(247, 140, 108)"
1925
+ }
1926
+ },
1927
+ {
1928
+ types: ["builtin", "char", "constant", "function"],
1929
+ style: {
1930
+ color: "rgb(130, 170, 255)"
1931
+ }
1932
+ },
1933
+ {
1934
+ types: ["punctuation", "selector"],
1935
+ style: {
1936
+ color: "rgb(199, 146, 234)"
1937
+ }
1938
+ },
1939
+ {
1940
+ types: ["variable"],
1941
+ style: {
1942
+ color: "rgb(191, 199, 213)"
1943
+ }
1944
+ },
1945
+ {
1946
+ types: ["class-name", "attr-name"],
1947
+ style: {
1948
+ color: "rgb(255, 203, 107)"
1949
+ }
1950
+ },
1951
+ {
1952
+ types: ["tag", "deleted"],
1953
+ style: {
1954
+ color: "rgb(255, 85, 114)"
1955
+ }
1956
+ },
1957
+ {
1958
+ types: ["operator"],
1959
+ style: {
1960
+ color: "rgb(137, 221, 255)"
1961
+ }
1962
+ },
1963
+ {
1964
+ types: ["boolean"],
1965
+ style: {
1966
+ color: "rgb(255, 88, 116)"
1967
+ }
1968
+ },
1969
+ {
1970
+ types: ["keyword"],
1971
+ style: {
1972
+ fontStyle: "italic"
1973
+ }
1974
+ },
1975
+ {
1976
+ types: ["doctype"],
1977
+ style: {
1978
+ color: "rgb(199, 146, 234)",
1979
+ fontStyle: "italic"
1980
+ }
1981
+ },
1982
+ {
1983
+ types: ["namespace"],
1984
+ style: {
1985
+ color: "rgb(178, 204, 214)"
1986
+ }
1987
+ },
1988
+ {
1989
+ types: ["url"],
1990
+ style: {
1991
+ color: "rgb(221, 221, 221)"
1992
+ }
1993
+ }
1994
+ ]
1995
+ }, Dr = Nr, Br = {
1996
+ plain: {
1997
+ color: "#9EFEFF",
1998
+ backgroundColor: "#2D2A55"
1999
+ },
2000
+ styles: [
2001
+ {
2002
+ types: ["changed"],
2003
+ style: {
2004
+ color: "rgb(255, 238, 128)"
2005
+ }
2006
+ },
2007
+ {
2008
+ types: ["deleted"],
2009
+ style: {
2010
+ color: "rgba(239, 83, 80, 0.56)"
2011
+ }
2012
+ },
2013
+ {
2014
+ types: ["inserted"],
2015
+ style: {
2016
+ color: "rgb(173, 219, 103)"
2017
+ }
2018
+ },
2019
+ {
2020
+ types: ["comment"],
2021
+ style: {
2022
+ color: "rgb(179, 98, 255)",
2023
+ fontStyle: "italic"
2024
+ }
2025
+ },
2026
+ {
2027
+ types: ["punctuation"],
2028
+ style: {
2029
+ color: "rgb(255, 255, 255)"
2030
+ }
2031
+ },
2032
+ {
2033
+ types: ["constant"],
2034
+ style: {
2035
+ color: "rgb(255, 98, 140)"
2036
+ }
2037
+ },
2038
+ {
2039
+ types: ["string", "url"],
2040
+ style: {
2041
+ color: "rgb(165, 255, 144)"
2042
+ }
2043
+ },
2044
+ {
2045
+ types: ["variable"],
2046
+ style: {
2047
+ color: "rgb(255, 238, 128)"
2048
+ }
2049
+ },
2050
+ {
2051
+ types: ["number", "boolean"],
2052
+ style: {
2053
+ color: "rgb(255, 98, 140)"
2054
+ }
2055
+ },
2056
+ {
2057
+ types: ["attr-name"],
2058
+ style: {
2059
+ color: "rgb(255, 180, 84)"
2060
+ }
2061
+ },
2062
+ {
2063
+ types: [
2064
+ "keyword",
2065
+ "operator",
2066
+ "property",
2067
+ "namespace",
2068
+ "tag",
2069
+ "selector",
2070
+ "doctype"
2071
+ ],
2072
+ style: {
2073
+ color: "rgb(255, 157, 0)"
2074
+ }
2075
+ },
2076
+ {
2077
+ types: ["builtin", "char", "constant", "function", "class-name"],
2078
+ style: {
2079
+ color: "rgb(250, 208, 0)"
2080
+ }
2081
+ }
2082
+ ]
2083
+ }, Pr = Br, Mr = {
2084
+ plain: {
2085
+ backgroundColor: "linear-gradient(to bottom, #2a2139 75%, #34294f)",
2086
+ backgroundImage: "#34294f",
2087
+ color: "#f92aad",
2088
+ textShadow: "0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"
2089
+ },
2090
+ styles: [
2091
+ {
2092
+ types: ["comment", "block-comment", "prolog", "doctype", "cdata"],
2093
+ style: {
2094
+ color: "#495495",
2095
+ fontStyle: "italic"
2096
+ }
2097
+ },
2098
+ {
2099
+ types: ["punctuation"],
2100
+ style: {
2101
+ color: "#ccc"
2102
+ }
2103
+ },
2104
+ {
2105
+ types: [
2106
+ "tag",
2107
+ "attr-name",
2108
+ "namespace",
2109
+ "number",
2110
+ "unit",
2111
+ "hexcode",
2112
+ "deleted"
2113
+ ],
2114
+ style: {
2115
+ color: "#e2777a"
2116
+ }
2117
+ },
2118
+ {
2119
+ types: ["property", "selector"],
2120
+ style: {
2121
+ color: "#72f1b8",
2122
+ textShadow: "0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"
2123
+ }
2124
+ },
2125
+ {
2126
+ types: ["function-name"],
2127
+ style: {
2128
+ color: "#6196cc"
2129
+ }
2130
+ },
2131
+ {
2132
+ types: ["boolean", "selector-id", "function"],
2133
+ style: {
2134
+ color: "#fdfdfd",
2135
+ textShadow: "0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"
2136
+ }
2137
+ },
2138
+ {
2139
+ types: ["class-name", "maybe-class-name", "builtin"],
2140
+ style: {
2141
+ color: "#fff5f6",
2142
+ textShadow: "0 0 2px #000, 0 0 10px #fc1f2c75, 0 0 5px #fc1f2c75, 0 0 25px #fc1f2c75"
2143
+ }
2144
+ },
2145
+ {
2146
+ types: ["constant", "symbol"],
2147
+ style: {
2148
+ color: "#f92aad",
2149
+ textShadow: "0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"
2150
+ }
2151
+ },
2152
+ {
2153
+ types: ["important", "atrule", "keyword", "selector-class"],
2154
+ style: {
2155
+ color: "#f4eee4",
2156
+ textShadow: "0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"
2157
+ }
2158
+ },
2159
+ {
2160
+ types: ["string", "char", "attr-value", "regex", "variable"],
2161
+ style: {
2162
+ color: "#f87c32"
2163
+ }
2164
+ },
2165
+ {
2166
+ types: ["parameter"],
2167
+ style: {
2168
+ fontStyle: "italic"
2169
+ }
2170
+ },
2171
+ {
2172
+ types: ["entity", "url"],
2173
+ style: {
2174
+ color: "#67cdcc"
2175
+ }
2176
+ },
2177
+ {
2178
+ types: ["operator"],
2179
+ style: {
2180
+ color: "ffffffee"
2181
+ }
2182
+ },
2183
+ {
2184
+ types: ["important", "bold"],
2185
+ style: {
2186
+ fontWeight: "bold"
2187
+ }
2188
+ },
2189
+ {
2190
+ types: ["italic"],
2191
+ style: {
2192
+ fontStyle: "italic"
2193
+ }
2194
+ },
2195
+ {
2196
+ types: ["entity"],
2197
+ style: {
2198
+ cursor: "help"
2199
+ }
2200
+ },
2201
+ {
2202
+ types: ["inserted"],
2203
+ style: {
2204
+ color: "green"
2205
+ }
2206
+ }
2207
+ ]
2208
+ }, jr = Mr, $r = {
2209
+ plain: {
2210
+ color: "#282a2e",
2211
+ backgroundColor: "#ffffff"
2212
+ },
2213
+ styles: [
2214
+ {
2215
+ types: ["comment"],
2216
+ style: {
2217
+ color: "rgb(197, 200, 198)"
2218
+ }
2219
+ },
2220
+ {
2221
+ types: ["string", "number", "builtin", "variable"],
2222
+ style: {
2223
+ color: "rgb(150, 152, 150)"
2224
+ }
2225
+ },
2226
+ {
2227
+ types: ["class-name", "function", "tag", "attr-name"],
2228
+ style: {
2229
+ color: "rgb(40, 42, 46)"
2230
+ }
2231
+ }
2232
+ ]
2233
+ }, Ur = $r, zr = {
2234
+ plain: {
2235
+ color: "#9CDCFE",
2236
+ backgroundColor: "#1E1E1E"
2237
+ },
2238
+ styles: [
2239
+ {
2240
+ types: ["prolog"],
2241
+ style: {
2242
+ color: "rgb(0, 0, 128)"
2243
+ }
2244
+ },
2245
+ {
2246
+ types: ["comment"],
2247
+ style: {
2248
+ color: "rgb(106, 153, 85)"
2249
+ }
2250
+ },
2251
+ {
2252
+ types: ["builtin", "changed", "keyword", "interpolation-punctuation"],
2253
+ style: {
2254
+ color: "rgb(86, 156, 214)"
2255
+ }
2256
+ },
2257
+ {
2258
+ types: ["number", "inserted"],
2259
+ style: {
2260
+ color: "rgb(181, 206, 168)"
2261
+ }
2262
+ },
2263
+ {
2264
+ types: ["constant"],
2265
+ style: {
2266
+ color: "rgb(100, 102, 149)"
2267
+ }
2268
+ },
2269
+ {
2270
+ types: ["attr-name", "variable"],
2271
+ style: {
2272
+ color: "rgb(156, 220, 254)"
2273
+ }
2274
+ },
2275
+ {
2276
+ types: ["deleted", "string", "attr-value", "template-punctuation"],
2277
+ style: {
2278
+ color: "rgb(206, 145, 120)"
2279
+ }
2280
+ },
2281
+ {
2282
+ types: ["selector"],
2283
+ style: {
2284
+ color: "rgb(215, 186, 125)"
2285
+ }
2286
+ },
2287
+ {
2288
+ // Fix tag color
2289
+ types: ["tag"],
2290
+ style: {
2291
+ color: "rgb(78, 201, 176)"
2292
+ }
2293
+ },
2294
+ {
2295
+ // Fix tag color for HTML
2296
+ types: ["tag"],
2297
+ languages: ["markup"],
2298
+ style: {
2299
+ color: "rgb(86, 156, 214)"
2300
+ }
2301
+ },
2302
+ {
2303
+ types: ["punctuation", "operator"],
2304
+ style: {
2305
+ color: "rgb(212, 212, 212)"
2306
+ }
2307
+ },
2308
+ {
2309
+ // Fix punctuation color for HTML
2310
+ types: ["punctuation"],
2311
+ languages: ["markup"],
2312
+ style: {
2313
+ color: "#808080"
2314
+ }
2315
+ },
2316
+ {
2317
+ types: ["function"],
2318
+ style: {
2319
+ color: "rgb(220, 220, 170)"
2320
+ }
2321
+ },
2322
+ {
2323
+ types: ["class-name"],
2324
+ style: {
2325
+ color: "rgb(78, 201, 176)"
2326
+ }
2327
+ },
2328
+ {
2329
+ types: ["char"],
2330
+ style: {
2331
+ color: "rgb(209, 105, 105)"
2332
+ }
2333
+ }
2334
+ ]
2335
+ }, nt = zr, Yr = {
2336
+ plain: {
2337
+ color: "#000000",
2338
+ backgroundColor: "#ffffff"
2339
+ },
2340
+ styles: [
2341
+ {
2342
+ types: ["comment"],
2343
+ style: {
2344
+ color: "rgb(0, 128, 0)"
2345
+ }
2346
+ },
2347
+ {
2348
+ types: ["builtin"],
2349
+ style: {
2350
+ color: "rgb(0, 112, 193)"
2351
+ }
2352
+ },
2353
+ {
2354
+ types: ["number", "variable", "inserted"],
2355
+ style: {
2356
+ color: "rgb(9, 134, 88)"
2357
+ }
2358
+ },
2359
+ {
2360
+ types: ["operator"],
2361
+ style: {
2362
+ color: "rgb(0, 0, 0)"
2363
+ }
2364
+ },
2365
+ {
2366
+ types: ["constant", "char"],
2367
+ style: {
2368
+ color: "rgb(129, 31, 63)"
2369
+ }
2370
+ },
2371
+ {
2372
+ types: ["tag"],
2373
+ style: {
2374
+ color: "rgb(128, 0, 0)"
2375
+ }
2376
+ },
2377
+ {
2378
+ types: ["attr-name"],
2379
+ style: {
2380
+ color: "rgb(255, 0, 0)"
2381
+ }
2382
+ },
2383
+ {
2384
+ types: ["deleted", "string"],
2385
+ style: {
2386
+ color: "rgb(163, 21, 21)"
2387
+ }
2388
+ },
2389
+ {
2390
+ types: ["changed", "punctuation"],
2391
+ style: {
2392
+ color: "rgb(4, 81, 165)"
2393
+ }
2394
+ },
2395
+ {
2396
+ types: ["function", "keyword"],
2397
+ style: {
2398
+ color: "rgb(0, 0, 255)"
2399
+ }
2400
+ },
2401
+ {
2402
+ types: ["class-name"],
2403
+ style: {
2404
+ color: "rgb(38, 127, 153)"
2405
+ }
2406
+ }
2407
+ ]
2408
+ }, Gr = Yr, Hr = {
2409
+ plain: {
2410
+ color: "#f8fafc",
2411
+ backgroundColor: "#011627"
2412
+ },
2413
+ styles: [
2414
+ {
2415
+ types: ["prolog"],
2416
+ style: {
2417
+ color: "#000080"
2418
+ }
2419
+ },
2420
+ {
2421
+ types: ["comment"],
2422
+ style: {
2423
+ color: "#6A9955"
2424
+ }
2425
+ },
2426
+ {
2427
+ types: ["builtin", "changed", "keyword", "interpolation-punctuation"],
2428
+ style: {
2429
+ color: "#569CD6"
2430
+ }
2431
+ },
2432
+ {
2433
+ types: ["number", "inserted"],
2434
+ style: {
2435
+ color: "#B5CEA8"
2436
+ }
2437
+ },
2438
+ {
2439
+ types: ["constant"],
2440
+ style: {
2441
+ color: "#f8fafc"
2442
+ }
2443
+ },
2444
+ {
2445
+ types: ["attr-name", "variable"],
2446
+ style: {
2447
+ color: "#9CDCFE"
2448
+ }
2449
+ },
2450
+ {
2451
+ types: ["deleted", "string", "attr-value", "template-punctuation"],
2452
+ style: {
2453
+ color: "#cbd5e1"
2454
+ }
2455
+ },
2456
+ {
2457
+ types: ["selector"],
2458
+ style: {
2459
+ color: "#D7BA7D"
2460
+ }
2461
+ },
2462
+ {
2463
+ types: ["tag"],
2464
+ style: {
2465
+ color: "#0ea5e9"
2466
+ }
2467
+ },
2468
+ {
2469
+ types: ["tag"],
2470
+ languages: ["markup"],
2471
+ style: {
2472
+ color: "#0ea5e9"
2473
+ }
2474
+ },
2475
+ {
2476
+ types: ["punctuation", "operator"],
2477
+ style: {
2478
+ color: "#D4D4D4"
2479
+ }
2480
+ },
2481
+ {
2482
+ types: ["punctuation"],
2483
+ languages: ["markup"],
2484
+ style: {
2485
+ color: "#808080"
2486
+ }
2487
+ },
2488
+ {
2489
+ types: ["function"],
2490
+ style: {
2491
+ color: "#7dd3fc"
2492
+ }
2493
+ },
2494
+ {
2495
+ types: ["class-name"],
2496
+ style: {
2497
+ color: "#0ea5e9"
2498
+ }
2499
+ },
2500
+ {
2501
+ types: ["char"],
2502
+ style: {
2503
+ color: "#D16969"
2504
+ }
2505
+ }
2506
+ ]
2507
+ }, Kr = Hr, Wr = {
2508
+ plain: {
2509
+ color: "#0f172a",
2510
+ backgroundColor: "#f1f5f9"
2511
+ },
2512
+ styles: [
2513
+ {
2514
+ types: ["prolog"],
2515
+ style: {
2516
+ color: "#000080"
2517
+ }
2518
+ },
2519
+ {
2520
+ types: ["comment"],
2521
+ style: {
2522
+ color: "#6A9955"
2523
+ }
2524
+ },
2525
+ {
2526
+ types: ["builtin", "changed", "keyword", "interpolation-punctuation"],
2527
+ style: {
2528
+ color: "#0c4a6e"
2529
+ }
2530
+ },
2531
+ {
2532
+ types: ["number", "inserted"],
2533
+ style: {
2534
+ color: "#B5CEA8"
2535
+ }
2536
+ },
2537
+ {
2538
+ types: ["constant"],
2539
+ style: {
2540
+ color: "#0f172a"
2541
+ }
2542
+ },
2543
+ {
2544
+ types: ["attr-name", "variable"],
2545
+ style: {
2546
+ color: "#0c4a6e"
2547
+ }
2548
+ },
2549
+ {
2550
+ types: ["deleted", "string", "attr-value", "template-punctuation"],
2551
+ style: {
2552
+ color: "#64748b"
2553
+ }
2554
+ },
2555
+ {
2556
+ types: ["selector"],
2557
+ style: {
2558
+ color: "#D7BA7D"
2559
+ }
2560
+ },
2561
+ {
2562
+ types: ["tag"],
2563
+ style: {
2564
+ color: "#0ea5e9"
2565
+ }
2566
+ },
2567
+ {
2568
+ types: ["tag"],
2569
+ languages: ["markup"],
2570
+ style: {
2571
+ color: "#0ea5e9"
2572
+ }
2573
+ },
2574
+ {
2575
+ types: ["punctuation", "operator"],
2576
+ style: {
2577
+ color: "#475569"
2578
+ }
2579
+ },
2580
+ {
2581
+ types: ["punctuation"],
2582
+ languages: ["markup"],
2583
+ style: {
2584
+ color: "#808080"
2585
+ }
2586
+ },
2587
+ {
2588
+ types: ["function"],
2589
+ style: {
2590
+ color: "#0e7490"
2591
+ }
2592
+ },
2593
+ {
2594
+ types: ["class-name"],
2595
+ style: {
2596
+ color: "#0ea5e9"
2597
+ }
2598
+ },
2599
+ {
2600
+ types: ["char"],
2601
+ style: {
2602
+ color: "#D16969"
2603
+ }
2604
+ }
2605
+ ]
2606
+ }, qr = Wr, Zr = {
2607
+ plain: {
2608
+ backgroundColor: "hsl(220, 13%, 18%)",
2609
+ color: "hsl(220, 14%, 71%)",
2610
+ textShadow: "0 1px rgba(0, 0, 0, 0.3)"
2611
+ },
2612
+ styles: [
2613
+ {
2614
+ types: ["comment", "prolog", "cdata"],
2615
+ style: {
2616
+ color: "hsl(220, 10%, 40%)"
2617
+ }
2618
+ },
2619
+ {
2620
+ types: ["doctype", "punctuation", "entity"],
2621
+ style: {
2622
+ color: "hsl(220, 14%, 71%)"
2623
+ }
2624
+ },
2625
+ {
2626
+ types: [
2627
+ "attr-name",
2628
+ "class-name",
2629
+ "maybe-class-name",
2630
+ "boolean",
2631
+ "constant",
2632
+ "number",
2633
+ "atrule"
2634
+ ],
2635
+ style: { color: "hsl(29, 54%, 61%)" }
2636
+ },
2637
+ {
2638
+ types: ["keyword"],
2639
+ style: { color: "hsl(286, 60%, 67%)" }
2640
+ },
2641
+ {
2642
+ types: ["property", "tag", "symbol", "deleted", "important"],
2643
+ style: {
2644
+ color: "hsl(355, 65%, 65%)"
2645
+ }
2646
+ },
2647
+ {
2648
+ types: [
2649
+ "selector",
2650
+ "string",
2651
+ "char",
2652
+ "builtin",
2653
+ "inserted",
2654
+ "regex",
2655
+ "attr-value"
2656
+ ],
2657
+ style: {
2658
+ color: "hsl(95, 38%, 62%)"
2659
+ }
2660
+ },
2661
+ {
2662
+ types: ["variable", "operator", "function"],
2663
+ style: {
2664
+ color: "hsl(207, 82%, 66%)"
2665
+ }
2666
+ },
2667
+ {
2668
+ types: ["url"],
2669
+ style: {
2670
+ color: "hsl(187, 47%, 55%)"
2671
+ }
2672
+ },
2673
+ {
2674
+ types: ["deleted"],
2675
+ style: {
2676
+ textDecorationLine: "line-through"
2677
+ }
2678
+ },
2679
+ {
2680
+ types: ["inserted"],
2681
+ style: {
2682
+ textDecorationLine: "underline"
2683
+ }
2684
+ },
2685
+ {
2686
+ types: ["italic"],
2687
+ style: {
2688
+ fontStyle: "italic"
2689
+ }
2690
+ },
2691
+ {
2692
+ types: ["important", "bold"],
2693
+ style: {
2694
+ fontWeight: "bold"
2695
+ }
2696
+ },
2697
+ {
2698
+ types: ["important"],
2699
+ style: {
2700
+ color: "hsl(220, 14%, 71%)"
2701
+ }
2702
+ }
2703
+ ]
2704
+ }, Vr = Zr, Xr = {
2705
+ plain: {
2706
+ backgroundColor: "hsl(230, 1%, 98%)",
2707
+ color: "hsl(230, 8%, 24%)"
2708
+ },
2709
+ styles: [
2710
+ {
2711
+ types: ["comment", "prolog", "cdata"],
2712
+ style: {
2713
+ color: "hsl(230, 4%, 64%)"
2714
+ }
2715
+ },
2716
+ {
2717
+ types: ["doctype", "punctuation", "entity"],
2718
+ style: {
2719
+ color: "hsl(230, 8%, 24%)"
2720
+ }
2721
+ },
2722
+ {
2723
+ types: [
2724
+ "attr-name",
2725
+ "class-name",
2726
+ "boolean",
2727
+ "constant",
2728
+ "number",
2729
+ "atrule"
2730
+ ],
2731
+ style: {
2732
+ color: "hsl(35, 99%, 36%)"
2733
+ }
2734
+ },
2735
+ {
2736
+ types: ["keyword"],
2737
+ style: {
2738
+ color: "hsl(301, 63%, 40%)"
2739
+ }
2740
+ },
2741
+ {
2742
+ types: ["property", "tag", "symbol", "deleted", "important"],
2743
+ style: {
2744
+ color: "hsl(5, 74%, 59%)"
2745
+ }
2746
+ },
2747
+ {
2748
+ types: [
2749
+ "selector",
2750
+ "string",
2751
+ "char",
2752
+ "builtin",
2753
+ "inserted",
2754
+ "regex",
2755
+ "attr-value",
2756
+ "punctuation"
2757
+ ],
2758
+ style: {
2759
+ color: "hsl(119, 34%, 47%)"
2760
+ }
2761
+ },
2762
+ {
2763
+ types: ["variable", "operator", "function"],
2764
+ style: {
2765
+ color: "hsl(221, 87%, 60%)"
2766
+ }
2767
+ },
2768
+ {
2769
+ types: ["url"],
2770
+ style: {
2771
+ color: "hsl(198, 99%, 37%)"
2772
+ }
2773
+ },
2774
+ {
2775
+ types: ["deleted"],
2776
+ style: {
2777
+ textDecorationLine: "line-through"
2778
+ }
2779
+ },
2780
+ {
2781
+ types: ["inserted"],
2782
+ style: {
2783
+ textDecorationLine: "underline"
2784
+ }
2785
+ },
2786
+ {
2787
+ types: ["italic"],
2788
+ style: {
2789
+ fontStyle: "italic"
2790
+ }
2791
+ },
2792
+ {
2793
+ types: ["important", "bold"],
2794
+ style: {
2795
+ fontWeight: "bold"
2796
+ }
2797
+ },
2798
+ {
2799
+ types: ["important"],
2800
+ style: {
2801
+ color: "hsl(230, 8%, 24%)"
2802
+ }
2803
+ }
2804
+ ]
2805
+ }, Qr = Xr, Jr = {
2806
+ plain: {
2807
+ color: "#ebdbb2",
2808
+ backgroundColor: "#292828"
2809
+ },
2810
+ styles: [
2811
+ {
2812
+ types: [
2813
+ "imports",
2814
+ "class-name",
2815
+ "maybe-class-name",
2816
+ "constant",
2817
+ "doctype",
2818
+ "builtin",
2819
+ "function"
2820
+ ],
2821
+ style: {
2822
+ color: "#d8a657"
2823
+ }
2824
+ },
2825
+ {
2826
+ types: ["property-access"],
2827
+ style: {
2828
+ color: "#7daea3"
2829
+ }
2830
+ },
2831
+ {
2832
+ types: ["tag"],
2833
+ style: {
2834
+ color: "#e78a4e"
2835
+ }
2836
+ },
2837
+ {
2838
+ types: ["attr-name", "char", "url", "regex"],
2839
+ style: {
2840
+ color: "#a9b665"
2841
+ }
2842
+ },
2843
+ {
2844
+ types: ["attr-value", "string"],
2845
+ style: {
2846
+ color: "#89b482"
2847
+ }
2848
+ },
2849
+ {
2850
+ types: ["comment", "prolog", "cdata", "operator", "inserted"],
2851
+ style: {
2852
+ color: "#a89984"
2853
+ }
2854
+ },
2855
+ {
2856
+ types: [
2857
+ "delimiter",
2858
+ "boolean",
2859
+ "keyword",
2860
+ "selector",
2861
+ "important",
2862
+ "atrule",
2863
+ "property",
2864
+ "variable",
2865
+ "deleted"
2866
+ ],
2867
+ style: {
2868
+ color: "#ea6962"
2869
+ }
2870
+ },
2871
+ {
2872
+ types: ["entity", "number", "symbol"],
2873
+ style: {
2874
+ color: "#d3869b"
2875
+ }
2876
+ }
2877
+ ]
2878
+ }, ea = Jr, na = {
2879
+ plain: {
2880
+ color: "#654735",
2881
+ backgroundColor: "#f9f5d7"
2882
+ },
2883
+ styles: [
2884
+ {
2885
+ types: [
2886
+ "delimiter",
2887
+ "boolean",
2888
+ "keyword",
2889
+ "selector",
2890
+ "important",
2891
+ "atrule",
2892
+ "property",
2893
+ "variable",
2894
+ "deleted"
2895
+ ],
2896
+ style: {
2897
+ color: "#af2528"
2898
+ }
2899
+ },
2900
+ {
2901
+ types: [
2902
+ "imports",
2903
+ "class-name",
2904
+ "maybe-class-name",
2905
+ "constant",
2906
+ "doctype",
2907
+ "builtin"
2908
+ ],
2909
+ style: {
2910
+ color: "#b4730e"
2911
+ }
2912
+ },
2913
+ {
2914
+ types: ["string", "attr-value"],
2915
+ style: {
2916
+ color: "#477a5b"
2917
+ }
2918
+ },
2919
+ {
2920
+ types: ["property-access"],
2921
+ style: {
2922
+ color: "#266b79"
2923
+ }
2924
+ },
2925
+ {
2926
+ types: ["function", "attr-name", "char", "url"],
2927
+ style: {
2928
+ color: "#72761e"
2929
+ }
2930
+ },
2931
+ {
2932
+ types: ["tag"],
2933
+ style: {
2934
+ color: "#b94c07"
2935
+ }
2936
+ },
2937
+ {
2938
+ types: ["comment", "prolog", "cdata", "operator", "inserted"],
2939
+ style: {
2940
+ color: "#a89984"
2941
+ }
2942
+ },
2943
+ {
2944
+ types: ["entity", "number", "symbol"],
2945
+ style: {
2946
+ color: "#924f79"
2947
+ }
2948
+ }
2949
+ ]
2950
+ }, ta = na, ra = (e) => be(
2951
+ (n) => {
2952
+ var t = n, { className: a, style: r, line: o } = t, i = et(t, ["className", "style", "line"]);
2953
+ const l = Xe(ne({}, i), {
2954
+ className: Vn("token-line", a)
2955
+ });
2956
+ return typeof e == "object" && "plain" in e && (l.style = e.plain), typeof r == "object" && (l.style = ne(ne({}, l.style || {}), r)), l;
2957
+ },
2958
+ [e]
2959
+ ), aa = (e) => {
2960
+ const n = be(
2961
+ ({ types: t, empty: a }) => {
2962
+ if (e != null) {
2963
+ {
2964
+ if (t.length === 1 && t[0] === "plain")
2965
+ return a != null ? { display: "inline-block" } : void 0;
2966
+ if (t.length === 1 && a != null)
2967
+ return e[t[0]];
2968
+ }
2969
+ return Object.assign(
2970
+ a != null ? { display: "inline-block" } : {},
2971
+ ...t.map((r) => e[r])
2972
+ );
2973
+ }
2974
+ },
2975
+ [e]
2976
+ );
2977
+ return be(
2978
+ (t) => {
2979
+ var a = t, { token: r, className: o, style: i } = a, l = et(a, ["token", "className", "style"]);
2980
+ const s = Xe(ne({}, l), {
2981
+ className: Vn("token", ...r.types, o),
2982
+ children: r.content,
2983
+ style: n(r)
2984
+ });
2985
+ return i != null && (s.style = ne(ne({}, s.style || {}), i)), s;
2986
+ },
2987
+ [n]
2988
+ );
2989
+ }, ia = /\r\n|\r|\n/, Ln = (e) => {
2990
+ e.length === 0 ? e.push({
2991
+ types: ["plain"],
2992
+ content: `
2993
+ `,
2994
+ empty: !0
2995
+ }) : e.length === 1 && e[0].content === "" && (e[0].content = `
2996
+ `, e[0].empty = !0);
2997
+ }, Rn = (e, n) => {
2998
+ const t = e.length;
2999
+ return t > 0 && e[t - 1] === n ? e : e.concat(n);
3000
+ }, oa = (e) => {
3001
+ const n = [[]], t = [e], a = [0], r = [e.length];
3002
+ let o = 0, i = 0, l = [];
3003
+ const s = [l];
3004
+ for (; i > -1; ) {
3005
+ for (; (o = a[i]++) < r[i]; ) {
3006
+ let c, g = n[i];
3007
+ const m = t[i][o];
3008
+ if (typeof m == "string" ? (g = i > 0 ? g : ["plain"], c = m) : (g = Rn(g, m.type), m.alias && (g = Rn(g, m.alias)), c = m.content), typeof c != "string") {
3009
+ i++, n.push(g), t.push(c), a.push(0), r.push(c.length);
3010
+ continue;
3011
+ }
3012
+ const v = c.split(ia), u = v.length;
3013
+ l.push({
3014
+ types: g,
3015
+ content: v[0]
3016
+ });
3017
+ for (let f = 1; f < u; f++)
3018
+ Ln(l), s.push(l = []), l.push({
3019
+ types: g,
3020
+ content: v[f]
3021
+ });
3022
+ }
3023
+ i--, n.pop(), t.pop(), a.pop(), r.pop();
3024
+ }
3025
+ return Ln(l), s;
3026
+ }, Nn = oa, la = ({ prism: e, code: n, grammar: t, language: a }) => ln(() => {
3027
+ if (t == null)
3028
+ return Nn([n]);
3029
+ const r = {
3030
+ code: n,
3031
+ grammar: t,
3032
+ language: a,
3033
+ tokens: []
3034
+ };
3035
+ return e.hooks.run("before-tokenize", r), r.tokens = e.tokenize(n, t), e.hooks.run("after-tokenize", r), Nn(r.tokens);
3036
+ }, [
3037
+ n,
3038
+ t,
3039
+ a,
3040
+ // prism is a stable import
3041
+ e
3042
+ ]), sa = (e, n) => {
3043
+ const { plain: t } = e, a = e.styles.reduce((r, o) => {
3044
+ const { languages: i, style: l } = o;
3045
+ return i && !i.includes(n) || o.types.forEach((s) => {
3046
+ const c = ne(ne({}, r[s]), l);
3047
+ r[s] = c;
3048
+ }), r;
3049
+ }, {});
3050
+ return a.root = t, a.plain = Xe(ne({}, t), { backgroundColor: void 0 }), a;
3051
+ }, ua = sa, ca = ({
3052
+ children: e,
3053
+ language: n,
3054
+ code: t,
3055
+ theme: a,
3056
+ prism: r
3057
+ }) => {
3058
+ const o = n.toLowerCase(), i = ua(a, o), l = ra(i), s = aa(i), c = r.languages[o], g = la({ prism: r, language: o, code: t, grammar: c });
3059
+ return e({
3060
+ tokens: g,
3061
+ className: `prism-code language-${o}`,
3062
+ style: i != null ? i.root : {},
3063
+ getLineProps: l,
3064
+ getTokenProps: s
3065
+ });
3066
+ }, pa = (e) => Vt(ca, Xe(ne({}, e), {
3067
+ prism: e.prism || h,
3068
+ theme: e.theme || nt,
3069
+ code: e.code,
3070
+ language: e.language
3071
+ }));
3072
+ /*! Bundled license information:
3073
+
3074
+ prismjs/prism.js:
3075
+ (**
3076
+ * Prism: Lightweight, robust, elegant syntax highlighting
3077
+ *
3078
+ * @license MIT <https://opensource.org/licenses/MIT>
3079
+ * @author Lea Verou <https://lea.verou.me>
3080
+ * @namespace
3081
+ * @public
3082
+ *)
3083
+ */
3084
+ /*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT */
3085
+ function tt(e) {
3086
+ return typeof e > "u" || e === null;
3087
+ }
3088
+ function fa(e) {
3089
+ return typeof e == "object" && e !== null;
3090
+ }
3091
+ function da(e) {
3092
+ return Array.isArray(e) ? e : tt(e) ? [] : [e];
3093
+ }
3094
+ function ga(e, n) {
3095
+ var t, a, r, o;
3096
+ if (n)
3097
+ for (o = Object.keys(n), t = 0, a = o.length; t < a; t += 1)
3098
+ r = o[t], e[r] = n[r];
3099
+ return e;
3100
+ }
3101
+ function ya(e, n) {
3102
+ var t = "", a;
3103
+ for (a = 0; a < n; a += 1)
3104
+ t += e;
3105
+ return t;
3106
+ }
3107
+ function ha(e) {
3108
+ return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
3109
+ }
3110
+ var ma = tt, ba = fa, va = da, xa = ya, wa = ha, Aa = ga, M = {
3111
+ isNothing: ma,
3112
+ isObject: ba,
3113
+ toArray: va,
3114
+ repeat: xa,
3115
+ isNegativeZero: wa,
3116
+ extend: Aa
3117
+ };
3118
+ function rt(e, n) {
3119
+ var t = "", a = e.reason || "(unknown reason)";
3120
+ return e.mark ? (e.mark.name && (t += 'in "' + e.mark.name + '" '), t += "(" + (e.mark.line + 1) + ":" + (e.mark.column + 1) + ")", !n && e.mark.snippet && (t += `
3121
+
3122
+ ` + e.mark.snippet), a + " " + t) : a;
3123
+ }
3124
+ function Pe(e, n) {
3125
+ Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = n, this.message = rt(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
3126
+ }
3127
+ Pe.prototype = Object.create(Error.prototype);
3128
+ Pe.prototype.constructor = Pe;
3129
+ Pe.prototype.toString = function(n) {
3130
+ return this.name + ": " + rt(this, n);
3131
+ };
3132
+ var H = Pe;
3133
+ function rn(e, n, t, a, r) {
3134
+ var o = "", i = "", l = Math.floor(r / 2) - 1;
3135
+ return a - n > l && (o = " ... ", n = a - l + o.length), t - a > l && (i = " ...", t = a + l - i.length), {
3136
+ str: o + e.slice(n, t).replace(/\t/g, "→") + i,
3137
+ pos: a - n + o.length
3138
+ // relative position
3139
+ };
3140
+ }
3141
+ function an(e, n) {
3142
+ return M.repeat(" ", n - e.length) + e;
3143
+ }
3144
+ function ka(e, n) {
3145
+ if (n = Object.create(n || null), !e.buffer) return null;
3146
+ n.maxLength || (n.maxLength = 79), typeof n.indent != "number" && (n.indent = 1), typeof n.linesBefore != "number" && (n.linesBefore = 3), typeof n.linesAfter != "number" && (n.linesAfter = 2);
3147
+ for (var t = /\r?\n|\r|\0/g, a = [0], r = [], o, i = -1; o = t.exec(e.buffer); )
3148
+ r.push(o.index), a.push(o.index + o[0].length), e.position <= o.index && i < 0 && (i = a.length - 2);
3149
+ i < 0 && (i = a.length - 1);
3150
+ var l = "", s, c, g = Math.min(e.line + n.linesAfter, r.length).toString().length, p = n.maxLength - (n.indent + g + 3);
3151
+ for (s = 1; s <= n.linesBefore && !(i - s < 0); s++)
3152
+ c = rn(
3153
+ e.buffer,
3154
+ a[i - s],
3155
+ r[i - s],
3156
+ e.position - (a[i] - a[i - s]),
3157
+ p
3158
+ ), l = M.repeat(" ", n.indent) + an((e.line - s + 1).toString(), g) + " | " + c.str + `
3159
+ ` + l;
3160
+ for (c = rn(e.buffer, a[i], r[i], e.position, p), l += M.repeat(" ", n.indent) + an((e.line + 1).toString(), g) + " | " + c.str + `
3161
+ `, l += M.repeat("-", n.indent + g + 3 + c.pos) + `^
3162
+ `, s = 1; s <= n.linesAfter && !(i + s >= r.length); s++)
3163
+ c = rn(
3164
+ e.buffer,
3165
+ a[i + s],
3166
+ r[i + s],
3167
+ e.position - (a[i] - a[i + s]),
3168
+ p
3169
+ ), l += M.repeat(" ", n.indent) + an((e.line + s + 1).toString(), g) + " | " + c.str + `
3170
+ `;
3171
+ return l.replace(/\n$/, "");
3172
+ }
3173
+ var Ea = ka, Sa = [
3174
+ "kind",
3175
+ "multi",
3176
+ "resolve",
3177
+ "construct",
3178
+ "instanceOf",
3179
+ "predicate",
3180
+ "represent",
3181
+ "representName",
3182
+ "defaultStyle",
3183
+ "styleAliases"
3184
+ ], _a = [
3185
+ "scalar",
3186
+ "sequence",
3187
+ "mapping"
3188
+ ];
3189
+ function Fa(e) {
3190
+ var n = {};
3191
+ return e !== null && Object.keys(e).forEach(function(t) {
3192
+ e[t].forEach(function(a) {
3193
+ n[String(a)] = t;
3194
+ });
3195
+ }), n;
3196
+ }
3197
+ function Ca(e, n) {
3198
+ if (n = n || {}, Object.keys(n).forEach(function(t) {
3199
+ if (Sa.indexOf(t) === -1)
3200
+ throw new H('Unknown option "' + t + '" is met in definition of "' + e + '" YAML type.');
3201
+ }), this.options = n, this.tag = e, this.kind = n.kind || null, this.resolve = n.resolve || function() {
3202
+ return !0;
3203
+ }, this.construct = n.construct || function(t) {
3204
+ return t;
3205
+ }, this.instanceOf = n.instanceOf || null, this.predicate = n.predicate || null, this.represent = n.represent || null, this.representName = n.representName || null, this.defaultStyle = n.defaultStyle || null, this.multi = n.multi || !1, this.styleAliases = Fa(n.styleAliases || null), _a.indexOf(this.kind) === -1)
3206
+ throw new H('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
3207
+ }
3208
+ var U = Ca;
3209
+ function Dn(e, n) {
3210
+ var t = [];
3211
+ return e[n].forEach(function(a) {
3212
+ var r = t.length;
3213
+ t.forEach(function(o, i) {
3214
+ o.tag === a.tag && o.kind === a.kind && o.multi === a.multi && (r = i);
3215
+ }), t[r] = a;
3216
+ }), t;
3217
+ }
3218
+ function Ta() {
3219
+ var e = {
3220
+ scalar: {},
3221
+ sequence: {},
3222
+ mapping: {},
3223
+ fallback: {},
3224
+ multi: {
3225
+ scalar: [],
3226
+ sequence: [],
3227
+ mapping: [],
3228
+ fallback: []
3229
+ }
3230
+ }, n, t;
3231
+ function a(r) {
3232
+ r.multi ? (e.multi[r.kind].push(r), e.multi.fallback.push(r)) : e[r.kind][r.tag] = e.fallback[r.tag] = r;
3233
+ }
3234
+ for (n = 0, t = arguments.length; n < t; n += 1)
3235
+ arguments[n].forEach(a);
3236
+ return e;
3237
+ }
3238
+ function un(e) {
3239
+ return this.extend(e);
3240
+ }
3241
+ un.prototype.extend = function(n) {
3242
+ var t = [], a = [];
3243
+ if (n instanceof U)
3244
+ a.push(n);
3245
+ else if (Array.isArray(n))
3246
+ a = a.concat(n);
3247
+ else if (n && (Array.isArray(n.implicit) || Array.isArray(n.explicit)))
3248
+ n.implicit && (t = t.concat(n.implicit)), n.explicit && (a = a.concat(n.explicit));
3249
+ else
3250
+ throw new H("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
3251
+ t.forEach(function(o) {
3252
+ if (!(o instanceof U))
3253
+ throw new H("Specified list of YAML types (or a single Type object) contains a non-Type object.");
3254
+ if (o.loadKind && o.loadKind !== "scalar")
3255
+ throw new H("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
3256
+ if (o.multi)
3257
+ throw new H("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
3258
+ }), a.forEach(function(o) {
3259
+ if (!(o instanceof U))
3260
+ throw new H("Specified list of YAML types (or a single Type object) contains a non-Type object.");
3261
+ });
3262
+ var r = Object.create(un.prototype);
3263
+ return r.implicit = (this.implicit || []).concat(t), r.explicit = (this.explicit || []).concat(a), r.compiledImplicit = Dn(r, "implicit"), r.compiledExplicit = Dn(r, "explicit"), r.compiledTypeMap = Ta(r.compiledImplicit, r.compiledExplicit), r;
3264
+ };
3265
+ var at = un, it = new U("tag:yaml.org,2002:str", {
3266
+ kind: "scalar",
3267
+ construct: function(e) {
3268
+ return e !== null ? e : "";
3269
+ }
3270
+ }), ot = new U("tag:yaml.org,2002:seq", {
3271
+ kind: "sequence",
3272
+ construct: function(e) {
3273
+ return e !== null ? e : [];
3274
+ }
3275
+ }), lt = new U("tag:yaml.org,2002:map", {
3276
+ kind: "mapping",
3277
+ construct: function(e) {
3278
+ return e !== null ? e : {};
3279
+ }
3280
+ }), st = new at({
3281
+ explicit: [
3282
+ it,
3283
+ ot,
3284
+ lt
3285
+ ]
3286
+ });
3287
+ function Oa(e) {
3288
+ if (e === null) return !0;
3289
+ var n = e.length;
3290
+ return n === 1 && e === "~" || n === 4 && (e === "null" || e === "Null" || e === "NULL");
3291
+ }
3292
+ function Ia() {
3293
+ return null;
3294
+ }
3295
+ function La(e) {
3296
+ return e === null;
3297
+ }
3298
+ var ut = new U("tag:yaml.org,2002:null", {
3299
+ kind: "scalar",
3300
+ resolve: Oa,
3301
+ construct: Ia,
3302
+ predicate: La,
3303
+ represent: {
3304
+ canonical: function() {
3305
+ return "~";
3306
+ },
3307
+ lowercase: function() {
3308
+ return "null";
3309
+ },
3310
+ uppercase: function() {
3311
+ return "NULL";
3312
+ },
3313
+ camelcase: function() {
3314
+ return "Null";
3315
+ },
3316
+ empty: function() {
3317
+ return "";
3318
+ }
3319
+ },
3320
+ defaultStyle: "lowercase"
3321
+ });
3322
+ function Ra(e) {
3323
+ if (e === null) return !1;
3324
+ var n = e.length;
3325
+ return n === 4 && (e === "true" || e === "True" || e === "TRUE") || n === 5 && (e === "false" || e === "False" || e === "FALSE");
3326
+ }
3327
+ function Na(e) {
3328
+ return e === "true" || e === "True" || e === "TRUE";
3329
+ }
3330
+ function Da(e) {
3331
+ return Object.prototype.toString.call(e) === "[object Boolean]";
3332
+ }
3333
+ var ct = new U("tag:yaml.org,2002:bool", {
3334
+ kind: "scalar",
3335
+ resolve: Ra,
3336
+ construct: Na,
3337
+ predicate: Da,
3338
+ represent: {
3339
+ lowercase: function(e) {
3340
+ return e ? "true" : "false";
3341
+ },
3342
+ uppercase: function(e) {
3343
+ return e ? "TRUE" : "FALSE";
3344
+ },
3345
+ camelcase: function(e) {
3346
+ return e ? "True" : "False";
3347
+ }
3348
+ },
3349
+ defaultStyle: "lowercase"
3350
+ });
3351
+ function Ba(e) {
3352
+ return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
3353
+ }
3354
+ function Pa(e) {
3355
+ return 48 <= e && e <= 55;
3356
+ }
3357
+ function Ma(e) {
3358
+ return 48 <= e && e <= 57;
3359
+ }
3360
+ function ja(e) {
3361
+ if (e === null) return !1;
3362
+ var n = e.length, t = 0, a = !1, r;
3363
+ if (!n) return !1;
3364
+ if (r = e[t], (r === "-" || r === "+") && (r = e[++t]), r === "0") {
3365
+ if (t + 1 === n) return !0;
3366
+ if (r = e[++t], r === "b") {
3367
+ for (t++; t < n; t++)
3368
+ if (r = e[t], r !== "_") {
3369
+ if (r !== "0" && r !== "1") return !1;
3370
+ a = !0;
3371
+ }
3372
+ return a && r !== "_";
3373
+ }
3374
+ if (r === "x") {
3375
+ for (t++; t < n; t++)
3376
+ if (r = e[t], r !== "_") {
3377
+ if (!Ba(e.charCodeAt(t))) return !1;
3378
+ a = !0;
3379
+ }
3380
+ return a && r !== "_";
3381
+ }
3382
+ if (r === "o") {
3383
+ for (t++; t < n; t++)
3384
+ if (r = e[t], r !== "_") {
3385
+ if (!Pa(e.charCodeAt(t))) return !1;
3386
+ a = !0;
3387
+ }
3388
+ return a && r !== "_";
3389
+ }
3390
+ }
3391
+ if (r === "_") return !1;
3392
+ for (; t < n; t++)
3393
+ if (r = e[t], r !== "_") {
3394
+ if (!Ma(e.charCodeAt(t)))
3395
+ return !1;
3396
+ a = !0;
3397
+ }
3398
+ return !(!a || r === "_");
3399
+ }
3400
+ function $a(e) {
3401
+ var n = e, t = 1, a;
3402
+ if (n.indexOf("_") !== -1 && (n = n.replace(/_/g, "")), a = n[0], (a === "-" || a === "+") && (a === "-" && (t = -1), n = n.slice(1), a = n[0]), n === "0") return 0;
3403
+ if (a === "0") {
3404
+ if (n[1] === "b") return t * parseInt(n.slice(2), 2);
3405
+ if (n[1] === "x") return t * parseInt(n.slice(2), 16);
3406
+ if (n[1] === "o") return t * parseInt(n.slice(2), 8);
3407
+ }
3408
+ return t * parseInt(n, 10);
3409
+ }
3410
+ function Ua(e) {
3411
+ return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !M.isNegativeZero(e);
3412
+ }
3413
+ var pt = new U("tag:yaml.org,2002:int", {
3414
+ kind: "scalar",
3415
+ resolve: ja,
3416
+ construct: $a,
3417
+ predicate: Ua,
3418
+ represent: {
3419
+ binary: function(e) {
3420
+ return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
3421
+ },
3422
+ octal: function(e) {
3423
+ return e >= 0 ? "0o" + e.toString(8) : "-0o" + e.toString(8).slice(1);
3424
+ },
3425
+ decimal: function(e) {
3426
+ return e.toString(10);
3427
+ },
3428
+ /* eslint-disable max-len */
3429
+ hexadecimal: function(e) {
3430
+ return e >= 0 ? "0x" + e.toString(16).toUpperCase() : "-0x" + e.toString(16).toUpperCase().slice(1);
3431
+ }
3432
+ },
3433
+ defaultStyle: "decimal",
3434
+ styleAliases: {
3435
+ binary: [2, "bin"],
3436
+ octal: [8, "oct"],
3437
+ decimal: [10, "dec"],
3438
+ hexadecimal: [16, "hex"]
3439
+ }
3440
+ }), za = new RegExp(
3441
+ // 2.5e4, 2.5 and integers
3442
+ "^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
3443
+ );
3444
+ function Ya(e) {
3445
+ return !(e === null || !za.test(e) || // Quick hack to not allow integers end with `_`
3446
+ // Probably should update regexp & check speed
3447
+ e[e.length - 1] === "_");
3448
+ }
3449
+ function Ga(e) {
3450
+ var n, t;
3451
+ return n = e.replace(/_/g, "").toLowerCase(), t = n[0] === "-" ? -1 : 1, "+-".indexOf(n[0]) >= 0 && (n = n.slice(1)), n === ".inf" ? t === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY : n === ".nan" ? NaN : t * parseFloat(n, 10);
3452
+ }
3453
+ var Ha = /^[-+]?[0-9]+e/;
3454
+ function Ka(e, n) {
3455
+ var t;
3456
+ if (isNaN(e))
3457
+ switch (n) {
3458
+ case "lowercase":
3459
+ return ".nan";
3460
+ case "uppercase":
3461
+ return ".NAN";
3462
+ case "camelcase":
3463
+ return ".NaN";
3464
+ }
3465
+ else if (Number.POSITIVE_INFINITY === e)
3466
+ switch (n) {
3467
+ case "lowercase":
3468
+ return ".inf";
3469
+ case "uppercase":
3470
+ return ".INF";
3471
+ case "camelcase":
3472
+ return ".Inf";
3473
+ }
3474
+ else if (Number.NEGATIVE_INFINITY === e)
3475
+ switch (n) {
3476
+ case "lowercase":
3477
+ return "-.inf";
3478
+ case "uppercase":
3479
+ return "-.INF";
3480
+ case "camelcase":
3481
+ return "-.Inf";
3482
+ }
3483
+ else if (M.isNegativeZero(e))
3484
+ return "-0.0";
3485
+ return t = e.toString(10), Ha.test(t) ? t.replace("e", ".e") : t;
3486
+ }
3487
+ function Wa(e) {
3488
+ return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || M.isNegativeZero(e));
3489
+ }
3490
+ var ft = new U("tag:yaml.org,2002:float", {
3491
+ kind: "scalar",
3492
+ resolve: Ya,
3493
+ construct: Ga,
3494
+ predicate: Wa,
3495
+ represent: Ka,
3496
+ defaultStyle: "lowercase"
3497
+ }), dt = st.extend({
3498
+ implicit: [
3499
+ ut,
3500
+ ct,
3501
+ pt,
3502
+ ft
3503
+ ]
3504
+ }), gt = dt, yt = new RegExp(
3505
+ "^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
3506
+ ), ht = new RegExp(
3507
+ "^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"
3508
+ );
3509
+ function qa(e) {
3510
+ return e === null ? !1 : yt.exec(e) !== null || ht.exec(e) !== null;
3511
+ }
3512
+ function Za(e) {
3513
+ var n, t, a, r, o, i, l, s = 0, c = null, g, p, m;
3514
+ if (n = yt.exec(e), n === null && (n = ht.exec(e)), n === null) throw new Error("Date resolve error");
3515
+ if (t = +n[1], a = +n[2] - 1, r = +n[3], !n[4])
3516
+ return new Date(Date.UTC(t, a, r));
3517
+ if (o = +n[4], i = +n[5], l = +n[6], n[7]) {
3518
+ for (s = n[7].slice(0, 3); s.length < 3; )
3519
+ s += "0";
3520
+ s = +s;
3521
+ }
3522
+ return n[9] && (g = +n[10], p = +(n[11] || 0), c = (g * 60 + p) * 6e4, n[9] === "-" && (c = -c)), m = new Date(Date.UTC(t, a, r, o, i, l, s)), c && m.setTime(m.getTime() - c), m;
3523
+ }
3524
+ function Va(e) {
3525
+ return e.toISOString();
3526
+ }
3527
+ var mt = new U("tag:yaml.org,2002:timestamp", {
3528
+ kind: "scalar",
3529
+ resolve: qa,
3530
+ construct: Za,
3531
+ instanceOf: Date,
3532
+ represent: Va
3533
+ });
3534
+ function Xa(e) {
3535
+ return e === "<<" || e === null;
3536
+ }
3537
+ var bt = new U("tag:yaml.org,2002:merge", {
3538
+ kind: "scalar",
3539
+ resolve: Xa
3540
+ }), yn = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
3541
+ \r`;
3542
+ function Qa(e) {
3543
+ if (e === null) return !1;
3544
+ var n, t, a = 0, r = e.length, o = yn;
3545
+ for (t = 0; t < r; t++)
3546
+ if (n = o.indexOf(e.charAt(t)), !(n > 64)) {
3547
+ if (n < 0) return !1;
3548
+ a += 6;
3549
+ }
3550
+ return a % 8 === 0;
3551
+ }
3552
+ function Ja(e) {
3553
+ var n, t, a = e.replace(/[\r\n=]/g, ""), r = a.length, o = yn, i = 0, l = [];
3554
+ for (n = 0; n < r; n++)
3555
+ n % 4 === 0 && n && (l.push(i >> 16 & 255), l.push(i >> 8 & 255), l.push(i & 255)), i = i << 6 | o.indexOf(a.charAt(n));
3556
+ return t = r % 4 * 6, t === 0 ? (l.push(i >> 16 & 255), l.push(i >> 8 & 255), l.push(i & 255)) : t === 18 ? (l.push(i >> 10 & 255), l.push(i >> 2 & 255)) : t === 12 && l.push(i >> 4 & 255), new Uint8Array(l);
3557
+ }
3558
+ function ei(e) {
3559
+ var n = "", t = 0, a, r, o = e.length, i = yn;
3560
+ for (a = 0; a < o; a++)
3561
+ a % 3 === 0 && a && (n += i[t >> 18 & 63], n += i[t >> 12 & 63], n += i[t >> 6 & 63], n += i[t & 63]), t = (t << 8) + e[a];
3562
+ return r = o % 3, r === 0 ? (n += i[t >> 18 & 63], n += i[t >> 12 & 63], n += i[t >> 6 & 63], n += i[t & 63]) : r === 2 ? (n += i[t >> 10 & 63], n += i[t >> 4 & 63], n += i[t << 2 & 63], n += i[64]) : r === 1 && (n += i[t >> 2 & 63], n += i[t << 4 & 63], n += i[64], n += i[64]), n;
3563
+ }
3564
+ function ni(e) {
3565
+ return Object.prototype.toString.call(e) === "[object Uint8Array]";
3566
+ }
3567
+ var vt = new U("tag:yaml.org,2002:binary", {
3568
+ kind: "scalar",
3569
+ resolve: Qa,
3570
+ construct: Ja,
3571
+ predicate: ni,
3572
+ represent: ei
3573
+ }), ti = Object.prototype.hasOwnProperty, ri = Object.prototype.toString;
3574
+ function ai(e) {
3575
+ if (e === null) return !0;
3576
+ var n = [], t, a, r, o, i, l = e;
3577
+ for (t = 0, a = l.length; t < a; t += 1) {
3578
+ if (r = l[t], i = !1, ri.call(r) !== "[object Object]") return !1;
3579
+ for (o in r)
3580
+ if (ti.call(r, o))
3581
+ if (!i) i = !0;
3582
+ else return !1;
3583
+ if (!i) return !1;
3584
+ if (n.indexOf(o) === -1) n.push(o);
3585
+ else return !1;
3586
+ }
3587
+ return !0;
3588
+ }
3589
+ function ii(e) {
3590
+ return e !== null ? e : [];
3591
+ }
3592
+ var xt = new U("tag:yaml.org,2002:omap", {
3593
+ kind: "sequence",
3594
+ resolve: ai,
3595
+ construct: ii
3596
+ }), oi = Object.prototype.toString;
3597
+ function li(e) {
3598
+ if (e === null) return !0;
3599
+ var n, t, a, r, o, i = e;
3600
+ for (o = new Array(i.length), n = 0, t = i.length; n < t; n += 1) {
3601
+ if (a = i[n], oi.call(a) !== "[object Object]" || (r = Object.keys(a), r.length !== 1)) return !1;
3602
+ o[n] = [r[0], a[r[0]]];
3603
+ }
3604
+ return !0;
3605
+ }
3606
+ function si(e) {
3607
+ if (e === null) return [];
3608
+ var n, t, a, r, o, i = e;
3609
+ for (o = new Array(i.length), n = 0, t = i.length; n < t; n += 1)
3610
+ a = i[n], r = Object.keys(a), o[n] = [r[0], a[r[0]]];
3611
+ return o;
3612
+ }
3613
+ var wt = new U("tag:yaml.org,2002:pairs", {
3614
+ kind: "sequence",
3615
+ resolve: li,
3616
+ construct: si
3617
+ }), ui = Object.prototype.hasOwnProperty;
3618
+ function ci(e) {
3619
+ if (e === null) return !0;
3620
+ var n, t = e;
3621
+ for (n in t)
3622
+ if (ui.call(t, n) && t[n] !== null)
3623
+ return !1;
3624
+ return !0;
3625
+ }
3626
+ function pi(e) {
3627
+ return e !== null ? e : {};
3628
+ }
3629
+ var At = new U("tag:yaml.org,2002:set", {
3630
+ kind: "mapping",
3631
+ resolve: ci,
3632
+ construct: pi
3633
+ }), hn = gt.extend({
3634
+ implicit: [
3635
+ mt,
3636
+ bt
3637
+ ],
3638
+ explicit: [
3639
+ vt,
3640
+ xt,
3641
+ wt,
3642
+ At
3643
+ ]
3644
+ }), ye = Object.prototype.hasOwnProperty, He = 1, kt = 2, Et = 3, Ke = 4, on = 1, fi = 2, Bn = 3, di = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, gi = /[\x85\u2028\u2029]/, yi = /[,\[\]\{\}]/, St = /^(?:!|!!|![a-z\-]+!)$/i, _t = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
3645
+ function Pn(e) {
3646
+ return Object.prototype.toString.call(e);
3647
+ }
3648
+ function te(e) {
3649
+ return e === 10 || e === 13;
3650
+ }
3651
+ function ve(e) {
3652
+ return e === 9 || e === 32;
3653
+ }
3654
+ function W(e) {
3655
+ return e === 9 || e === 32 || e === 10 || e === 13;
3656
+ }
3657
+ function Se(e) {
3658
+ return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
3659
+ }
3660
+ function hi(e) {
3661
+ var n;
3662
+ return 48 <= e && e <= 57 ? e - 48 : (n = e | 32, 97 <= n && n <= 102 ? n - 97 + 10 : -1);
3663
+ }
3664
+ function mi(e) {
3665
+ return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
3666
+ }
3667
+ function bi(e) {
3668
+ return 48 <= e && e <= 57 ? e - 48 : -1;
3669
+ }
3670
+ function Mn(e) {
3671
+ return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
3672
+ ` : e === 118 ? "\v" : e === 102 ? "\f" : e === 114 ? "\r" : e === 101 ? "\x1B" : e === 32 ? " " : e === 34 ? '"' : e === 47 ? "/" : e === 92 ? "\\" : e === 78 ? "…" : e === 95 ? " " : e === 76 ? "\u2028" : e === 80 ? "\u2029" : "";
3673
+ }
3674
+ function vi(e) {
3675
+ return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode(
3676
+ (e - 65536 >> 10) + 55296,
3677
+ (e - 65536 & 1023) + 56320
3678
+ );
3679
+ }
3680
+ function Ft(e, n, t) {
3681
+ n === "__proto__" ? Object.defineProperty(e, n, {
3682
+ configurable: !0,
3683
+ enumerable: !0,
3684
+ writable: !0,
3685
+ value: t
3686
+ }) : e[n] = t;
3687
+ }
3688
+ var Ct = new Array(256), Tt = new Array(256);
3689
+ for (var ke = 0; ke < 256; ke++)
3690
+ Ct[ke] = Mn(ke) ? 1 : 0, Tt[ke] = Mn(ke);
3691
+ function xi(e, n) {
3692
+ this.input = e, this.filename = n.filename || null, this.schema = n.schema || hn, this.onWarning = n.onWarning || null, this.legacy = n.legacy || !1, this.json = n.json || !1, this.listener = n.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = [];
3693
+ }
3694
+ function Ot(e, n) {
3695
+ var t = {
3696
+ name: e.filename,
3697
+ buffer: e.input.slice(0, -1),
3698
+ // omit trailing \0
3699
+ position: e.position,
3700
+ line: e.line,
3701
+ column: e.position - e.lineStart
3702
+ };
3703
+ return t.snippet = Ea(t), new H(n, t);
3704
+ }
3705
+ function A(e, n) {
3706
+ throw Ot(e, n);
3707
+ }
3708
+ function We(e, n) {
3709
+ e.onWarning && e.onWarning.call(null, Ot(e, n));
3710
+ }
3711
+ var jn = {
3712
+ YAML: function(n, t, a) {
3713
+ var r, o, i;
3714
+ n.version !== null && A(n, "duplication of %YAML directive"), a.length !== 1 && A(n, "YAML directive accepts exactly one argument"), r = /^([0-9]+)\.([0-9]+)$/.exec(a[0]), r === null && A(n, "ill-formed argument of the YAML directive"), o = parseInt(r[1], 10), i = parseInt(r[2], 10), o !== 1 && A(n, "unacceptable YAML version of the document"), n.version = a[0], n.checkLineBreaks = i < 2, i !== 1 && i !== 2 && We(n, "unsupported YAML version of the document");
3715
+ },
3716
+ TAG: function(n, t, a) {
3717
+ var r, o;
3718
+ a.length !== 2 && A(n, "TAG directive accepts exactly two arguments"), r = a[0], o = a[1], St.test(r) || A(n, "ill-formed tag handle (first argument) of the TAG directive"), ye.call(n.tagMap, r) && A(n, 'there is a previously declared suffix for "' + r + '" tag handle'), _t.test(o) || A(n, "ill-formed tag prefix (second argument) of the TAG directive");
3719
+ try {
3720
+ o = decodeURIComponent(o);
3721
+ } catch {
3722
+ A(n, "tag prefix is malformed: " + o);
3723
+ }
3724
+ n.tagMap[r] = o;
3725
+ }
3726
+ };
3727
+ function ge(e, n, t, a) {
3728
+ var r, o, i, l;
3729
+ if (n < t) {
3730
+ if (l = e.input.slice(n, t), a)
3731
+ for (r = 0, o = l.length; r < o; r += 1)
3732
+ i = l.charCodeAt(r), i === 9 || 32 <= i && i <= 1114111 || A(e, "expected valid JSON character");
3733
+ else di.test(l) && A(e, "the stream contains non-printable characters");
3734
+ e.result += l;
3735
+ }
3736
+ }
3737
+ function $n(e, n, t, a) {
3738
+ var r, o, i, l;
3739
+ for (M.isObject(t) || A(e, "cannot merge mappings; the provided source object is unacceptable"), r = Object.keys(t), i = 0, l = r.length; i < l; i += 1)
3740
+ o = r[i], ye.call(n, o) || (Ft(n, o, t[o]), a[o] = !0);
3741
+ }
3742
+ function _e(e, n, t, a, r, o, i, l, s) {
3743
+ var c, g;
3744
+ if (Array.isArray(r))
3745
+ for (r = Array.prototype.slice.call(r), c = 0, g = r.length; c < g; c += 1)
3746
+ Array.isArray(r[c]) && A(e, "nested arrays are not supported inside keys"), typeof r == "object" && Pn(r[c]) === "[object Object]" && (r[c] = "[object Object]");
3747
+ if (typeof r == "object" && Pn(r) === "[object Object]" && (r = "[object Object]"), r = String(r), n === null && (n = {}), a === "tag:yaml.org,2002:merge")
3748
+ if (Array.isArray(o))
3749
+ for (c = 0, g = o.length; c < g; c += 1)
3750
+ $n(e, n, o[c], t);
3751
+ else
3752
+ $n(e, n, o, t);
3753
+ else
3754
+ !e.json && !ye.call(t, r) && ye.call(n, r) && (e.line = i || e.line, e.lineStart = l || e.lineStart, e.position = s || e.position, A(e, "duplicated mapping key")), Ft(n, r, o), delete t[r];
3755
+ return n;
3756
+ }
3757
+ function mn(e) {
3758
+ var n;
3759
+ n = e.input.charCodeAt(e.position), n === 10 ? e.position++ : n === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : A(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
3760
+ }
3761
+ function B(e, n, t) {
3762
+ for (var a = 0, r = e.input.charCodeAt(e.position); r !== 0; ) {
3763
+ for (; ve(r); )
3764
+ r === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), r = e.input.charCodeAt(++e.position);
3765
+ if (n && r === 35)
3766
+ do
3767
+ r = e.input.charCodeAt(++e.position);
3768
+ while (r !== 10 && r !== 13 && r !== 0);
3769
+ if (te(r))
3770
+ for (mn(e), r = e.input.charCodeAt(e.position), a++, e.lineIndent = 0; r === 32; )
3771
+ e.lineIndent++, r = e.input.charCodeAt(++e.position);
3772
+ else
3773
+ break;
3774
+ }
3775
+ return t !== -1 && a !== 0 && e.lineIndent < t && We(e, "deficient indentation"), a;
3776
+ }
3777
+ function Qe(e) {
3778
+ var n = e.position, t;
3779
+ return t = e.input.charCodeAt(n), !!((t === 45 || t === 46) && t === e.input.charCodeAt(n + 1) && t === e.input.charCodeAt(n + 2) && (n += 3, t = e.input.charCodeAt(n), t === 0 || W(t)));
3780
+ }
3781
+ function bn(e, n) {
3782
+ n === 1 ? e.result += " " : n > 1 && (e.result += M.repeat(`
3783
+ `, n - 1));
3784
+ }
3785
+ function wi(e, n, t) {
3786
+ var a, r, o, i, l, s, c, g, p = e.kind, m = e.result, v;
3787
+ if (v = e.input.charCodeAt(e.position), W(v) || Se(v) || v === 35 || v === 38 || v === 42 || v === 33 || v === 124 || v === 62 || v === 39 || v === 34 || v === 37 || v === 64 || v === 96 || (v === 63 || v === 45) && (r = e.input.charCodeAt(e.position + 1), W(r) || t && Se(r)))
3788
+ return !1;
3789
+ for (e.kind = "scalar", e.result = "", o = i = e.position, l = !1; v !== 0; ) {
3790
+ if (v === 58) {
3791
+ if (r = e.input.charCodeAt(e.position + 1), W(r) || t && Se(r))
3792
+ break;
3793
+ } else if (v === 35) {
3794
+ if (a = e.input.charCodeAt(e.position - 1), W(a))
3795
+ break;
3796
+ } else {
3797
+ if (e.position === e.lineStart && Qe(e) || t && Se(v))
3798
+ break;
3799
+ if (te(v))
3800
+ if (s = e.line, c = e.lineStart, g = e.lineIndent, B(e, !1, -1), e.lineIndent >= n) {
3801
+ l = !0, v = e.input.charCodeAt(e.position);
3802
+ continue;
3803
+ } else {
3804
+ e.position = i, e.line = s, e.lineStart = c, e.lineIndent = g;
3805
+ break;
3806
+ }
3807
+ }
3808
+ l && (ge(e, o, i, !1), bn(e, e.line - s), o = i = e.position, l = !1), ve(v) || (i = e.position + 1), v = e.input.charCodeAt(++e.position);
3809
+ }
3810
+ return ge(e, o, i, !1), e.result ? !0 : (e.kind = p, e.result = m, !1);
3811
+ }
3812
+ function Ai(e, n) {
3813
+ var t, a, r;
3814
+ if (t = e.input.charCodeAt(e.position), t !== 39)
3815
+ return !1;
3816
+ for (e.kind = "scalar", e.result = "", e.position++, a = r = e.position; (t = e.input.charCodeAt(e.position)) !== 0; )
3817
+ if (t === 39)
3818
+ if (ge(e, a, e.position, !0), t = e.input.charCodeAt(++e.position), t === 39)
3819
+ a = e.position, e.position++, r = e.position;
3820
+ else
3821
+ return !0;
3822
+ else te(t) ? (ge(e, a, r, !0), bn(e, B(e, !1, n)), a = r = e.position) : e.position === e.lineStart && Qe(e) ? A(e, "unexpected end of the document within a single quoted scalar") : (e.position++, r = e.position);
3823
+ A(e, "unexpected end of the stream within a single quoted scalar");
3824
+ }
3825
+ function ki(e, n) {
3826
+ var t, a, r, o, i, l;
3827
+ if (l = e.input.charCodeAt(e.position), l !== 34)
3828
+ return !1;
3829
+ for (e.kind = "scalar", e.result = "", e.position++, t = a = e.position; (l = e.input.charCodeAt(e.position)) !== 0; ) {
3830
+ if (l === 34)
3831
+ return ge(e, t, e.position, !0), e.position++, !0;
3832
+ if (l === 92) {
3833
+ if (ge(e, t, e.position, !0), l = e.input.charCodeAt(++e.position), te(l))
3834
+ B(e, !1, n);
3835
+ else if (l < 256 && Ct[l])
3836
+ e.result += Tt[l], e.position++;
3837
+ else if ((i = mi(l)) > 0) {
3838
+ for (r = i, o = 0; r > 0; r--)
3839
+ l = e.input.charCodeAt(++e.position), (i = hi(l)) >= 0 ? o = (o << 4) + i : A(e, "expected hexadecimal character");
3840
+ e.result += vi(o), e.position++;
3841
+ } else
3842
+ A(e, "unknown escape sequence");
3843
+ t = a = e.position;
3844
+ } else te(l) ? (ge(e, t, a, !0), bn(e, B(e, !1, n)), t = a = e.position) : e.position === e.lineStart && Qe(e) ? A(e, "unexpected end of the document within a double quoted scalar") : (e.position++, a = e.position);
3845
+ }
3846
+ A(e, "unexpected end of the stream within a double quoted scalar");
3847
+ }
3848
+ function Ei(e, n) {
3849
+ var t = !0, a, r, o, i = e.tag, l, s = e.anchor, c, g, p, m, v, u = /* @__PURE__ */ Object.create(null), f, d, b, y;
3850
+ if (y = e.input.charCodeAt(e.position), y === 91)
3851
+ g = 93, v = !1, l = [];
3852
+ else if (y === 123)
3853
+ g = 125, v = !0, l = {};
3854
+ else
3855
+ return !1;
3856
+ for (e.anchor !== null && (e.anchorMap[e.anchor] = l), y = e.input.charCodeAt(++e.position); y !== 0; ) {
3857
+ if (B(e, !0, n), y = e.input.charCodeAt(e.position), y === g)
3858
+ return e.position++, e.tag = i, e.anchor = s, e.kind = v ? "mapping" : "sequence", e.result = l, !0;
3859
+ t ? y === 44 && A(e, "expected the node content, but found ','") : A(e, "missed comma between flow collection entries"), d = f = b = null, p = m = !1, y === 63 && (c = e.input.charCodeAt(e.position + 1), W(c) && (p = m = !0, e.position++, B(e, !0, n))), a = e.line, r = e.lineStart, o = e.position, Fe(e, n, He, !1, !0), d = e.tag, f = e.result, B(e, !0, n), y = e.input.charCodeAt(e.position), (m || e.line === a) && y === 58 && (p = !0, y = e.input.charCodeAt(++e.position), B(e, !0, n), Fe(e, n, He, !1, !0), b = e.result), v ? _e(e, l, u, d, f, b, a, r, o) : p ? l.push(_e(e, null, u, d, f, b, a, r, o)) : l.push(f), B(e, !0, n), y = e.input.charCodeAt(e.position), y === 44 ? (t = !0, y = e.input.charCodeAt(++e.position)) : t = !1;
3860
+ }
3861
+ A(e, "unexpected end of the stream within a flow collection");
3862
+ }
3863
+ function Si(e, n) {
3864
+ var t, a, r = on, o = !1, i = !1, l = n, s = 0, c = !1, g, p;
3865
+ if (p = e.input.charCodeAt(e.position), p === 124)
3866
+ a = !1;
3867
+ else if (p === 62)
3868
+ a = !0;
3869
+ else
3870
+ return !1;
3871
+ for (e.kind = "scalar", e.result = ""; p !== 0; )
3872
+ if (p = e.input.charCodeAt(++e.position), p === 43 || p === 45)
3873
+ on === r ? r = p === 43 ? Bn : fi : A(e, "repeat of a chomping mode identifier");
3874
+ else if ((g = bi(p)) >= 0)
3875
+ g === 0 ? A(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : i ? A(e, "repeat of an indentation width identifier") : (l = n + g - 1, i = !0);
3876
+ else
3877
+ break;
3878
+ if (ve(p)) {
3879
+ do
3880
+ p = e.input.charCodeAt(++e.position);
3881
+ while (ve(p));
3882
+ if (p === 35)
3883
+ do
3884
+ p = e.input.charCodeAt(++e.position);
3885
+ while (!te(p) && p !== 0);
3886
+ }
3887
+ for (; p !== 0; ) {
3888
+ for (mn(e), e.lineIndent = 0, p = e.input.charCodeAt(e.position); (!i || e.lineIndent < l) && p === 32; )
3889
+ e.lineIndent++, p = e.input.charCodeAt(++e.position);
3890
+ if (!i && e.lineIndent > l && (l = e.lineIndent), te(p)) {
3891
+ s++;
3892
+ continue;
3893
+ }
3894
+ if (e.lineIndent < l) {
3895
+ r === Bn ? e.result += M.repeat(`
3896
+ `, o ? 1 + s : s) : r === on && o && (e.result += `
3897
+ `);
3898
+ break;
3899
+ }
3900
+ for (a ? ve(p) ? (c = !0, e.result += M.repeat(`
3901
+ `, o ? 1 + s : s)) : c ? (c = !1, e.result += M.repeat(`
3902
+ `, s + 1)) : s === 0 ? o && (e.result += " ") : e.result += M.repeat(`
3903
+ `, s) : e.result += M.repeat(`
3904
+ `, o ? 1 + s : s), o = !0, i = !0, s = 0, t = e.position; !te(p) && p !== 0; )
3905
+ p = e.input.charCodeAt(++e.position);
3906
+ ge(e, t, e.position, !1);
3907
+ }
3908
+ return !0;
3909
+ }
3910
+ function Un(e, n) {
3911
+ var t, a = e.tag, r = e.anchor, o = [], i, l = !1, s;
3912
+ if (e.firstTabInLine !== -1) return !1;
3913
+ for (e.anchor !== null && (e.anchorMap[e.anchor] = o), s = e.input.charCodeAt(e.position); s !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, A(e, "tab characters must not be used in indentation")), !(s !== 45 || (i = e.input.charCodeAt(e.position + 1), !W(i)))); ) {
3914
+ if (l = !0, e.position++, B(e, !0, -1) && e.lineIndent <= n) {
3915
+ o.push(null), s = e.input.charCodeAt(e.position);
3916
+ continue;
3917
+ }
3918
+ if (t = e.line, Fe(e, n, Et, !1, !0), o.push(e.result), B(e, !0, -1), s = e.input.charCodeAt(e.position), (e.line === t || e.lineIndent > n) && s !== 0)
3919
+ A(e, "bad indentation of a sequence entry");
3920
+ else if (e.lineIndent < n)
3921
+ break;
3922
+ }
3923
+ return l ? (e.tag = a, e.anchor = r, e.kind = "sequence", e.result = o, !0) : !1;
3924
+ }
3925
+ function _i(e, n, t) {
3926
+ var a, r, o, i, l, s, c = e.tag, g = e.anchor, p = {}, m = /* @__PURE__ */ Object.create(null), v = null, u = null, f = null, d = !1, b = !1, y;
3927
+ if (e.firstTabInLine !== -1) return !1;
3928
+ for (e.anchor !== null && (e.anchorMap[e.anchor] = p), y = e.input.charCodeAt(e.position); y !== 0; ) {
3929
+ if (!d && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, A(e, "tab characters must not be used in indentation")), a = e.input.charCodeAt(e.position + 1), o = e.line, (y === 63 || y === 58) && W(a))
3930
+ y === 63 ? (d && (_e(e, p, m, v, u, null, i, l, s), v = u = f = null), b = !0, d = !0, r = !0) : d ? (d = !1, r = !0) : A(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, y = a;
3931
+ else {
3932
+ if (i = e.line, l = e.lineStart, s = e.position, !Fe(e, t, kt, !1, !0))
3933
+ break;
3934
+ if (e.line === o) {
3935
+ for (y = e.input.charCodeAt(e.position); ve(y); )
3936
+ y = e.input.charCodeAt(++e.position);
3937
+ if (y === 58)
3938
+ y = e.input.charCodeAt(++e.position), W(y) || A(e, "a whitespace character is expected after the key-value separator within a block mapping"), d && (_e(e, p, m, v, u, null, i, l, s), v = u = f = null), b = !0, d = !1, r = !1, v = e.tag, u = e.result;
3939
+ else if (b)
3940
+ A(e, "can not read an implicit mapping pair; a colon is missed");
3941
+ else
3942
+ return e.tag = c, e.anchor = g, !0;
3943
+ } else if (b)
3944
+ A(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
3945
+ else
3946
+ return e.tag = c, e.anchor = g, !0;
3947
+ }
3948
+ if ((e.line === o || e.lineIndent > n) && (d && (i = e.line, l = e.lineStart, s = e.position), Fe(e, n, Ke, !0, r) && (d ? u = e.result : f = e.result), d || (_e(e, p, m, v, u, f, i, l, s), v = u = f = null), B(e, !0, -1), y = e.input.charCodeAt(e.position)), (e.line === o || e.lineIndent > n) && y !== 0)
3949
+ A(e, "bad indentation of a mapping entry");
3950
+ else if (e.lineIndent < n)
3951
+ break;
3952
+ }
3953
+ return d && _e(e, p, m, v, u, null, i, l, s), b && (e.tag = c, e.anchor = g, e.kind = "mapping", e.result = p), b;
3954
+ }
3955
+ function Fi(e) {
3956
+ var n, t = !1, a = !1, r, o, i;
3957
+ if (i = e.input.charCodeAt(e.position), i !== 33) return !1;
3958
+ if (e.tag !== null && A(e, "duplication of a tag property"), i = e.input.charCodeAt(++e.position), i === 60 ? (t = !0, i = e.input.charCodeAt(++e.position)) : i === 33 ? (a = !0, r = "!!", i = e.input.charCodeAt(++e.position)) : r = "!", n = e.position, t) {
3959
+ do
3960
+ i = e.input.charCodeAt(++e.position);
3961
+ while (i !== 0 && i !== 62);
3962
+ e.position < e.length ? (o = e.input.slice(n, e.position), i = e.input.charCodeAt(++e.position)) : A(e, "unexpected end of the stream within a verbatim tag");
3963
+ } else {
3964
+ for (; i !== 0 && !W(i); )
3965
+ i === 33 && (a ? A(e, "tag suffix cannot contain exclamation marks") : (r = e.input.slice(n - 1, e.position + 1), St.test(r) || A(e, "named tag handle cannot contain such characters"), a = !0, n = e.position + 1)), i = e.input.charCodeAt(++e.position);
3966
+ o = e.input.slice(n, e.position), yi.test(o) && A(e, "tag suffix cannot contain flow indicator characters");
3967
+ }
3968
+ o && !_t.test(o) && A(e, "tag name cannot contain such characters: " + o);
3969
+ try {
3970
+ o = decodeURIComponent(o);
3971
+ } catch {
3972
+ A(e, "tag name is malformed: " + o);
3973
+ }
3974
+ return t ? e.tag = o : ye.call(e.tagMap, r) ? e.tag = e.tagMap[r] + o : r === "!" ? e.tag = "!" + o : r === "!!" ? e.tag = "tag:yaml.org,2002:" + o : A(e, 'undeclared tag handle "' + r + '"'), !0;
3975
+ }
3976
+ function Ci(e) {
3977
+ var n, t;
3978
+ if (t = e.input.charCodeAt(e.position), t !== 38) return !1;
3979
+ for (e.anchor !== null && A(e, "duplication of an anchor property"), t = e.input.charCodeAt(++e.position), n = e.position; t !== 0 && !W(t) && !Se(t); )
3980
+ t = e.input.charCodeAt(++e.position);
3981
+ return e.position === n && A(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(n, e.position), !0;
3982
+ }
3983
+ function Ti(e) {
3984
+ var n, t, a;
3985
+ if (a = e.input.charCodeAt(e.position), a !== 42) return !1;
3986
+ for (a = e.input.charCodeAt(++e.position), n = e.position; a !== 0 && !W(a) && !Se(a); )
3987
+ a = e.input.charCodeAt(++e.position);
3988
+ return e.position === n && A(e, "name of an alias node must contain at least one character"), t = e.input.slice(n, e.position), ye.call(e.anchorMap, t) || A(e, 'unidentified alias "' + t + '"'), e.result = e.anchorMap[t], B(e, !0, -1), !0;
3989
+ }
3990
+ function Fe(e, n, t, a, r) {
3991
+ var o, i, l, s = 1, c = !1, g = !1, p, m, v, u, f, d;
3992
+ if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = i = l = Ke === t || Et === t, a && B(e, !0, -1) && (c = !0, e.lineIndent > n ? s = 1 : e.lineIndent === n ? s = 0 : e.lineIndent < n && (s = -1)), s === 1)
3993
+ for (; Fi(e) || Ci(e); )
3994
+ B(e, !0, -1) ? (c = !0, l = o, e.lineIndent > n ? s = 1 : e.lineIndent === n ? s = 0 : e.lineIndent < n && (s = -1)) : l = !1;
3995
+ if (l && (l = c || r), (s === 1 || Ke === t) && (He === t || kt === t ? f = n : f = n + 1, d = e.position - e.lineStart, s === 1 ? l && (Un(e, d) || _i(e, d, f)) || Ei(e, f) ? g = !0 : (i && Si(e, f) || Ai(e, f) || ki(e, f) ? g = !0 : Ti(e) ? (g = !0, (e.tag !== null || e.anchor !== null) && A(e, "alias node should not have any properties")) : wi(e, f, He === t) && (g = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : s === 0 && (g = l && Un(e, d))), e.tag === null)
3996
+ e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
3997
+ else if (e.tag === "?") {
3998
+ for (e.result !== null && e.kind !== "scalar" && A(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), p = 0, m = e.implicitTypes.length; p < m; p += 1)
3999
+ if (u = e.implicitTypes[p], u.resolve(e.result)) {
4000
+ e.result = u.construct(e.result), e.tag = u.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
4001
+ break;
4002
+ }
4003
+ } else if (e.tag !== "!") {
4004
+ if (ye.call(e.typeMap[e.kind || "fallback"], e.tag))
4005
+ u = e.typeMap[e.kind || "fallback"][e.tag];
4006
+ else
4007
+ for (u = null, v = e.typeMap.multi[e.kind || "fallback"], p = 0, m = v.length; p < m; p += 1)
4008
+ if (e.tag.slice(0, v[p].tag.length) === v[p].tag) {
4009
+ u = v[p];
4010
+ break;
4011
+ }
4012
+ u || A(e, "unknown tag !<" + e.tag + ">"), e.result !== null && u.kind !== e.kind && A(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + u.kind + '", not "' + e.kind + '"'), u.resolve(e.result, e.tag) ? (e.result = u.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : A(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
4013
+ }
4014
+ return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || g;
4015
+ }
4016
+ function Oi(e) {
4017
+ var n = e.position, t, a, r, o = !1, i;
4018
+ for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (i = e.input.charCodeAt(e.position)) !== 0 && (B(e, !0, -1), i = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || i !== 37)); ) {
4019
+ for (o = !0, i = e.input.charCodeAt(++e.position), t = e.position; i !== 0 && !W(i); )
4020
+ i = e.input.charCodeAt(++e.position);
4021
+ for (a = e.input.slice(t, e.position), r = [], a.length < 1 && A(e, "directive name must not be less than one character in length"); i !== 0; ) {
4022
+ for (; ve(i); )
4023
+ i = e.input.charCodeAt(++e.position);
4024
+ if (i === 35) {
4025
+ do
4026
+ i = e.input.charCodeAt(++e.position);
4027
+ while (i !== 0 && !te(i));
4028
+ break;
4029
+ }
4030
+ if (te(i)) break;
4031
+ for (t = e.position; i !== 0 && !W(i); )
4032
+ i = e.input.charCodeAt(++e.position);
4033
+ r.push(e.input.slice(t, e.position));
4034
+ }
4035
+ i !== 0 && mn(e), ye.call(jn, a) ? jn[a](e, a, r) : We(e, 'unknown document directive "' + a + '"');
4036
+ }
4037
+ if (B(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, B(e, !0, -1)) : o && A(e, "directives end mark is expected"), Fe(e, e.lineIndent - 1, Ke, !1, !0), B(e, !0, -1), e.checkLineBreaks && gi.test(e.input.slice(n, e.position)) && We(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && Qe(e)) {
4038
+ e.input.charCodeAt(e.position) === 46 && (e.position += 3, B(e, !0, -1));
4039
+ return;
4040
+ }
4041
+ if (e.position < e.length - 1)
4042
+ A(e, "end of the stream or a document separator is expected");
4043
+ else
4044
+ return;
4045
+ }
4046
+ function It(e, n) {
4047
+ e = String(e), n = n || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
4048
+ `), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
4049
+ var t = new xi(e, n), a = e.indexOf("\0");
4050
+ for (a !== -1 && (t.position = a, A(t, "null byte is not allowed in input")), t.input += "\0"; t.input.charCodeAt(t.position) === 32; )
4051
+ t.lineIndent += 1, t.position += 1;
4052
+ for (; t.position < t.length - 1; )
4053
+ Oi(t);
4054
+ return t.documents;
4055
+ }
4056
+ function Ii(e, n, t) {
4057
+ n !== null && typeof n == "object" && typeof t > "u" && (t = n, n = null);
4058
+ var a = It(e, t);
4059
+ if (typeof n != "function")
4060
+ return a;
4061
+ for (var r = 0, o = a.length; r < o; r += 1)
4062
+ n(a[r]);
4063
+ }
4064
+ function Li(e, n) {
4065
+ var t = It(e, n);
4066
+ if (t.length !== 0) {
4067
+ if (t.length === 1)
4068
+ return t[0];
4069
+ throw new H("expected a single document in the stream, but found more");
4070
+ }
4071
+ }
4072
+ var Ri = Ii, Ni = Li, Lt = {
4073
+ loadAll: Ri,
4074
+ load: Ni
4075
+ }, Rt = Object.prototype.toString, Nt = Object.prototype.hasOwnProperty, vn = 65279, Di = 9, Me = 10, Bi = 13, Pi = 32, Mi = 33, ji = 34, cn = 35, $i = 37, Ui = 38, zi = 39, Yi = 42, Dt = 44, Gi = 45, qe = 58, Hi = 61, Ki = 62, Wi = 63, qi = 64, Bt = 91, Pt = 93, Zi = 96, Mt = 123, Vi = 124, jt = 125, z = {};
4076
+ z[0] = "\\0";
4077
+ z[7] = "\\a";
4078
+ z[8] = "\\b";
4079
+ z[9] = "\\t";
4080
+ z[10] = "\\n";
4081
+ z[11] = "\\v";
4082
+ z[12] = "\\f";
4083
+ z[13] = "\\r";
4084
+ z[27] = "\\e";
4085
+ z[34] = '\\"';
4086
+ z[92] = "\\\\";
4087
+ z[133] = "\\N";
4088
+ z[160] = "\\_";
4089
+ z[8232] = "\\L";
4090
+ z[8233] = "\\P";
4091
+ var Xi = [
4092
+ "y",
4093
+ "Y",
4094
+ "yes",
4095
+ "Yes",
4096
+ "YES",
4097
+ "on",
4098
+ "On",
4099
+ "ON",
4100
+ "n",
4101
+ "N",
4102
+ "no",
4103
+ "No",
4104
+ "NO",
4105
+ "off",
4106
+ "Off",
4107
+ "OFF"
4108
+ ], Qi = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
4109
+ function Ji(e, n) {
4110
+ var t, a, r, o, i, l, s;
4111
+ if (n === null) return {};
4112
+ for (t = {}, a = Object.keys(n), r = 0, o = a.length; r < o; r += 1)
4113
+ i = a[r], l = String(n[i]), i.slice(0, 2) === "!!" && (i = "tag:yaml.org,2002:" + i.slice(2)), s = e.compiledTypeMap.fallback[i], s && Nt.call(s.styleAliases, l) && (l = s.styleAliases[l]), t[i] = l;
4114
+ return t;
4115
+ }
4116
+ function eo(e) {
4117
+ var n, t, a;
4118
+ if (n = e.toString(16).toUpperCase(), e <= 255)
4119
+ t = "x", a = 2;
4120
+ else if (e <= 65535)
4121
+ t = "u", a = 4;
4122
+ else if (e <= 4294967295)
4123
+ t = "U", a = 8;
4124
+ else
4125
+ throw new H("code point within a string may not be greater than 0xFFFFFFFF");
4126
+ return "\\" + t + M.repeat("0", a - n.length) + n;
4127
+ }
4128
+ var no = 1, je = 2;
4129
+ function to(e) {
4130
+ this.schema = e.schema || hn, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = M.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = Ji(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === '"' ? je : no, this.forceQuotes = e.forceQuotes || !1, this.replacer = typeof e.replacer == "function" ? e.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
4131
+ }
4132
+ function zn(e, n) {
4133
+ for (var t = M.repeat(" ", n), a = 0, r = -1, o = "", i, l = e.length; a < l; )
4134
+ r = e.indexOf(`
4135
+ `, a), r === -1 ? (i = e.slice(a), a = l) : (i = e.slice(a, r + 1), a = r + 1), i.length && i !== `
4136
+ ` && (o += t), o += i;
4137
+ return o;
4138
+ }
4139
+ function pn(e, n) {
4140
+ return `
4141
+ ` + M.repeat(" ", e.indent * n);
4142
+ }
4143
+ function ro(e, n) {
4144
+ var t, a, r;
4145
+ for (t = 0, a = e.implicitTypes.length; t < a; t += 1)
4146
+ if (r = e.implicitTypes[t], r.resolve(n))
4147
+ return !0;
4148
+ return !1;
4149
+ }
4150
+ function Ze(e) {
4151
+ return e === Pi || e === Di;
4152
+ }
4153
+ function $e(e) {
4154
+ return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== vn || 65536 <= e && e <= 1114111;
4155
+ }
4156
+ function Yn(e) {
4157
+ return $e(e) && e !== vn && e !== Bi && e !== Me;
4158
+ }
4159
+ function Gn(e, n, t) {
4160
+ var a = Yn(e), r = a && !Ze(e);
4161
+ return (
4162
+ // ns-plain-safe
4163
+ (t ? (
4164
+ // c = flow-in
4165
+ a
4166
+ ) : a && e !== Dt && e !== Bt && e !== Pt && e !== Mt && e !== jt) && e !== cn && !(n === qe && !r) || Yn(n) && !Ze(n) && e === cn || n === qe && r
4167
+ );
4168
+ }
4169
+ function ao(e) {
4170
+ return $e(e) && e !== vn && !Ze(e) && e !== Gi && e !== Wi && e !== qe && e !== Dt && e !== Bt && e !== Pt && e !== Mt && e !== jt && e !== cn && e !== Ui && e !== Yi && e !== Mi && e !== Vi && e !== Hi && e !== Ki && e !== zi && e !== ji && e !== $i && e !== qi && e !== Zi;
4171
+ }
4172
+ function io(e) {
4173
+ return !Ze(e) && e !== qe;
4174
+ }
4175
+ function Be(e, n) {
4176
+ var t = e.charCodeAt(n), a;
4177
+ return t >= 55296 && t <= 56319 && n + 1 < e.length && (a = e.charCodeAt(n + 1), a >= 56320 && a <= 57343) ? (t - 55296) * 1024 + a - 56320 + 65536 : t;
4178
+ }
4179
+ function $t(e) {
4180
+ var n = /^\n* /;
4181
+ return n.test(e);
4182
+ }
4183
+ var Ut = 1, fn = 2, zt = 3, Yt = 4, Ee = 5;
4184
+ function oo(e, n, t, a, r, o, i, l) {
4185
+ var s, c = 0, g = null, p = !1, m = !1, v = a !== -1, u = -1, f = ao(Be(e, 0)) && io(Be(e, e.length - 1));
4186
+ if (n || i)
4187
+ for (s = 0; s < e.length; c >= 65536 ? s += 2 : s++) {
4188
+ if (c = Be(e, s), !$e(c))
4189
+ return Ee;
4190
+ f = f && Gn(c, g, l), g = c;
4191
+ }
4192
+ else {
4193
+ for (s = 0; s < e.length; c >= 65536 ? s += 2 : s++) {
4194
+ if (c = Be(e, s), c === Me)
4195
+ p = !0, v && (m = m || // Foldable line = too long, and not more-indented.
4196
+ s - u - 1 > a && e[u + 1] !== " ", u = s);
4197
+ else if (!$e(c))
4198
+ return Ee;
4199
+ f = f && Gn(c, g, l), g = c;
4200
+ }
4201
+ m = m || v && s - u - 1 > a && e[u + 1] !== " ";
4202
+ }
4203
+ return !p && !m ? f && !i && !r(e) ? Ut : o === je ? Ee : fn : t > 9 && $t(e) ? Ee : i ? o === je ? Ee : fn : m ? Yt : zt;
4204
+ }
4205
+ function lo(e, n, t, a, r) {
4206
+ e.dump = function() {
4207
+ if (n.length === 0)
4208
+ return e.quotingType === je ? '""' : "''";
4209
+ if (!e.noCompatMode && (Xi.indexOf(n) !== -1 || Qi.test(n)))
4210
+ return e.quotingType === je ? '"' + n + '"' : "'" + n + "'";
4211
+ var o = e.indent * Math.max(1, t), i = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - o), l = a || e.flowLevel > -1 && t >= e.flowLevel;
4212
+ function s(c) {
4213
+ return ro(e, c);
4214
+ }
4215
+ switch (oo(
4216
+ n,
4217
+ l,
4218
+ e.indent,
4219
+ i,
4220
+ s,
4221
+ e.quotingType,
4222
+ e.forceQuotes && !a,
4223
+ r
4224
+ )) {
4225
+ case Ut:
4226
+ return n;
4227
+ case fn:
4228
+ return "'" + n.replace(/'/g, "''") + "'";
4229
+ case zt:
4230
+ return "|" + Hn(n, e.indent) + Kn(zn(n, o));
4231
+ case Yt:
4232
+ return ">" + Hn(n, e.indent) + Kn(zn(so(n, i), o));
4233
+ case Ee:
4234
+ return '"' + uo(n) + '"';
4235
+ default:
4236
+ throw new H("impossible error: invalid scalar style");
4237
+ }
4238
+ }();
4239
+ }
4240
+ function Hn(e, n) {
4241
+ var t = $t(e) ? String(n) : "", a = e[e.length - 1] === `
4242
+ `, r = a && (e[e.length - 2] === `
4243
+ ` || e === `
4244
+ `), o = r ? "+" : a ? "" : "-";
4245
+ return t + o + `
4246
+ `;
4247
+ }
4248
+ function Kn(e) {
4249
+ return e[e.length - 1] === `
4250
+ ` ? e.slice(0, -1) : e;
4251
+ }
4252
+ function so(e, n) {
4253
+ for (var t = /(\n+)([^\n]*)/g, a = function() {
4254
+ var c = e.indexOf(`
4255
+ `);
4256
+ return c = c !== -1 ? c : e.length, t.lastIndex = c, Wn(e.slice(0, c), n);
4257
+ }(), r = e[0] === `
4258
+ ` || e[0] === " ", o, i; i = t.exec(e); ) {
4259
+ var l = i[1], s = i[2];
4260
+ o = s[0] === " ", a += l + (!r && !o && s !== "" ? `
4261
+ ` : "") + Wn(s, n), r = o;
4262
+ }
4263
+ return a;
4264
+ }
4265
+ function Wn(e, n) {
4266
+ if (e === "" || e[0] === " ") return e;
4267
+ for (var t = / [^ ]/g, a, r = 0, o, i = 0, l = 0, s = ""; a = t.exec(e); )
4268
+ l = a.index, l - r > n && (o = i > r ? i : l, s += `
4269
+ ` + e.slice(r, o), r = o + 1), i = l;
4270
+ return s += `
4271
+ `, e.length - r > n && i > r ? s += e.slice(r, i) + `
4272
+ ` + e.slice(i + 1) : s += e.slice(r), s.slice(1);
4273
+ }
4274
+ function uo(e) {
4275
+ for (var n = "", t = 0, a, r = 0; r < e.length; t >= 65536 ? r += 2 : r++)
4276
+ t = Be(e, r), a = z[t], !a && $e(t) ? (n += e[r], t >= 65536 && (n += e[r + 1])) : n += a || eo(t);
4277
+ return n;
4278
+ }
4279
+ function co(e, n, t) {
4280
+ var a = "", r = e.tag, o, i, l;
4281
+ for (o = 0, i = t.length; o < i; o += 1)
4282
+ l = t[o], e.replacer && (l = e.replacer.call(t, String(o), l)), (le(e, n, l, !1, !1) || typeof l > "u" && le(e, n, null, !1, !1)) && (a !== "" && (a += "," + (e.condenseFlow ? "" : " ")), a += e.dump);
4283
+ e.tag = r, e.dump = "[" + a + "]";
4284
+ }
4285
+ function qn(e, n, t, a) {
4286
+ var r = "", o = e.tag, i, l, s;
4287
+ for (i = 0, l = t.length; i < l; i += 1)
4288
+ s = t[i], e.replacer && (s = e.replacer.call(t, String(i), s)), (le(e, n + 1, s, !0, !0, !1, !0) || typeof s > "u" && le(e, n + 1, null, !0, !0, !1, !0)) && ((!a || r !== "") && (r += pn(e, n)), e.dump && Me === e.dump.charCodeAt(0) ? r += "-" : r += "- ", r += e.dump);
4289
+ e.tag = o, e.dump = r || "[]";
4290
+ }
4291
+ function po(e, n, t) {
4292
+ var a = "", r = e.tag, o = Object.keys(t), i, l, s, c, g;
4293
+ for (i = 0, l = o.length; i < l; i += 1)
4294
+ g = "", a !== "" && (g += ", "), e.condenseFlow && (g += '"'), s = o[i], c = t[s], e.replacer && (c = e.replacer.call(t, s, c)), le(e, n, s, !1, !1) && (e.dump.length > 1024 && (g += "? "), g += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), le(e, n, c, !1, !1) && (g += e.dump, a += g));
4295
+ e.tag = r, e.dump = "{" + a + "}";
4296
+ }
4297
+ function fo(e, n, t, a) {
4298
+ var r = "", o = e.tag, i = Object.keys(t), l, s, c, g, p, m;
4299
+ if (e.sortKeys === !0)
4300
+ i.sort();
4301
+ else if (typeof e.sortKeys == "function")
4302
+ i.sort(e.sortKeys);
4303
+ else if (e.sortKeys)
4304
+ throw new H("sortKeys must be a boolean or a function");
4305
+ for (l = 0, s = i.length; l < s; l += 1)
4306
+ m = "", (!a || r !== "") && (m += pn(e, n)), c = i[l], g = t[c], e.replacer && (g = e.replacer.call(t, c, g)), le(e, n + 1, c, !0, !0, !0) && (p = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, p && (e.dump && Me === e.dump.charCodeAt(0) ? m += "?" : m += "? "), m += e.dump, p && (m += pn(e, n)), le(e, n + 1, g, !0, p) && (e.dump && Me === e.dump.charCodeAt(0) ? m += ":" : m += ": ", m += e.dump, r += m));
4307
+ e.tag = o, e.dump = r || "{}";
4308
+ }
4309
+ function Zn(e, n, t) {
4310
+ var a, r, o, i, l, s;
4311
+ for (r = t ? e.explicitTypes : e.implicitTypes, o = 0, i = r.length; o < i; o += 1)
4312
+ if (l = r[o], (l.instanceOf || l.predicate) && (!l.instanceOf || typeof n == "object" && n instanceof l.instanceOf) && (!l.predicate || l.predicate(n))) {
4313
+ if (t ? l.multi && l.representName ? e.tag = l.representName(n) : e.tag = l.tag : e.tag = "?", l.represent) {
4314
+ if (s = e.styleMap[l.tag] || l.defaultStyle, Rt.call(l.represent) === "[object Function]")
4315
+ a = l.represent(n, s);
4316
+ else if (Nt.call(l.represent, s))
4317
+ a = l.represent[s](n, s);
4318
+ else
4319
+ throw new H("!<" + l.tag + '> tag resolver accepts not "' + s + '" style');
4320
+ e.dump = a;
4321
+ }
4322
+ return !0;
4323
+ }
4324
+ return !1;
4325
+ }
4326
+ function le(e, n, t, a, r, o, i) {
4327
+ e.tag = null, e.dump = t, Zn(e, t, !1) || Zn(e, t, !0);
4328
+ var l = Rt.call(e.dump), s = a, c;
4329
+ a && (a = e.flowLevel < 0 || e.flowLevel > n);
4330
+ var g = l === "[object Object]" || l === "[object Array]", p, m;
4331
+ if (g && (p = e.duplicates.indexOf(t), m = p !== -1), (e.tag !== null && e.tag !== "?" || m || e.indent !== 2 && n > 0) && (r = !1), m && e.usedDuplicates[p])
4332
+ e.dump = "*ref_" + p;
4333
+ else {
4334
+ if (g && m && !e.usedDuplicates[p] && (e.usedDuplicates[p] = !0), l === "[object Object]")
4335
+ a && Object.keys(e.dump).length !== 0 ? (fo(e, n, e.dump, r), m && (e.dump = "&ref_" + p + e.dump)) : (po(e, n, e.dump), m && (e.dump = "&ref_" + p + " " + e.dump));
4336
+ else if (l === "[object Array]")
4337
+ a && e.dump.length !== 0 ? (e.noArrayIndent && !i && n > 0 ? qn(e, n - 1, e.dump, r) : qn(e, n, e.dump, r), m && (e.dump = "&ref_" + p + e.dump)) : (co(e, n, e.dump), m && (e.dump = "&ref_" + p + " " + e.dump));
4338
+ else if (l === "[object String]")
4339
+ e.tag !== "?" && lo(e, e.dump, n, o, s);
4340
+ else {
4341
+ if (l === "[object Undefined]")
4342
+ return !1;
4343
+ if (e.skipInvalid) return !1;
4344
+ throw new H("unacceptable kind of an object to dump " + l);
4345
+ }
4346
+ e.tag !== null && e.tag !== "?" && (c = encodeURI(
4347
+ e.tag[0] === "!" ? e.tag.slice(1) : e.tag
4348
+ ).replace(/!/g, "%21"), e.tag[0] === "!" ? c = "!" + c : c.slice(0, 18) === "tag:yaml.org,2002:" ? c = "!!" + c.slice(18) : c = "!<" + c + ">", e.dump = c + " " + e.dump);
4349
+ }
4350
+ return !0;
4351
+ }
4352
+ function go(e, n) {
4353
+ var t = [], a = [], r, o;
4354
+ for (dn(e, t, a), r = 0, o = a.length; r < o; r += 1)
4355
+ n.duplicates.push(t[a[r]]);
4356
+ n.usedDuplicates = new Array(o);
4357
+ }
4358
+ function dn(e, n, t) {
4359
+ var a, r, o;
4360
+ if (e !== null && typeof e == "object")
4361
+ if (r = n.indexOf(e), r !== -1)
4362
+ t.indexOf(r) === -1 && t.push(r);
4363
+ else if (n.push(e), Array.isArray(e))
4364
+ for (r = 0, o = e.length; r < o; r += 1)
4365
+ dn(e[r], n, t);
4366
+ else
4367
+ for (a = Object.keys(e), r = 0, o = a.length; r < o; r += 1)
4368
+ dn(e[a[r]], n, t);
4369
+ }
4370
+ function yo(e, n) {
4371
+ n = n || {};
4372
+ var t = new to(n);
4373
+ t.noRefs || go(e, t);
4374
+ var a = e;
4375
+ return t.replacer && (a = t.replacer.call({ "": a }, "", a)), le(t, 0, a, !0, !0) ? t.dump + `
4376
+ ` : "";
4377
+ }
4378
+ var ho = yo, mo = {
4379
+ dump: ho
4380
+ };
4381
+ function xn(e, n) {
4382
+ return function() {
4383
+ throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + n + " instead, which is now safe by default.");
4384
+ };
4385
+ }
4386
+ var bo = U, vo = at, xo = st, wo = dt, Ao = gt, ko = hn, Eo = Lt.load, So = Lt.loadAll, _o = mo.dump, Fo = H, Co = {
4387
+ binary: vt,
4388
+ float: ft,
4389
+ map: lt,
4390
+ null: ut,
4391
+ pairs: wt,
4392
+ set: At,
4393
+ timestamp: mt,
4394
+ bool: ct,
4395
+ int: pt,
4396
+ merge: bt,
4397
+ omap: xt,
4398
+ seq: ot,
4399
+ str: it
4400
+ }, To = xn("safeLoad", "load"), Oo = xn("safeLoadAll", "loadAll"), Io = xn("safeDump", "dump"), Lo = {
4401
+ Type: bo,
4402
+ Schema: vo,
4403
+ FAILSAFE_SCHEMA: xo,
4404
+ JSON_SCHEMA: wo,
4405
+ CORE_SCHEMA: Ao,
4406
+ DEFAULT_SCHEMA: ko,
4407
+ load: Eo,
4408
+ loadAll: So,
4409
+ dump: _o,
4410
+ YAMLException: Fo,
4411
+ types: Co,
4412
+ safeLoad: To,
4413
+ safeLoadAll: Oo,
4414
+ safeDump: Io
4415
+ };
4416
+ h.languages.yaml || (h.languages.yaml = {
4417
+ scalar: {
4418
+ pattern: /([\-:]\s*(?:![^\s]+)?[ \t]*[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/,
4419
+ lookbehind: !0,
4420
+ alias: "string"
4421
+ },
4422
+ comment: /#.*/,
4423
+ key: {
4424
+ pattern: /(\s*(?:^|[:\-,[{\r\n?])[ \t]*(?:![^\s]+)?[ \t]*)[^\r\n{[\]},#\s]+?(?=\s*:\s)/,
4425
+ lookbehind: !0,
4426
+ alias: "atrule"
4427
+ },
4428
+ directive: {
4429
+ pattern: /(^[ \t]*)%.+/m,
4430
+ lookbehind: !0,
4431
+ alias: "tag"
4432
+ },
4433
+ datetime: {
4434
+ pattern: /([:\-,[{]\s*(?:![^\s]+)?[ \t]*)(?:\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?)(?=[ \t]*(?:$|,|\]|\}))/m,
4435
+ lookbehind: !0,
4436
+ alias: "number"
4437
+ },
4438
+ boolean: {
4439
+ pattern: /([:\-,[{]\s*(?:![^\s]+)?[ \t]*)(?:false|true)(?=[ \t]*(?:$|,|\]|\}|[\r\n]))/im,
4440
+ lookbehind: !0,
4441
+ alias: "boolean"
4442
+ },
4443
+ null: {
4444
+ pattern: /([:\-,[{]\s*(?:![^\s]+)?[ \t]*)(?:null|~)(?=[ \t]*(?:$|,|\]|\}|[\r\n]))/im,
4445
+ lookbehind: !0,
4446
+ alias: "constant"
4447
+ },
4448
+ string: {
4449
+ pattern: /([:\-,[{]\s*(?:![^\s]+)?[ \t]*)("|')(?:(?!\2)[^\\\r\n]|\\.)*\2(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/m,
4450
+ lookbehind: !0,
4451
+ greedy: !0
4452
+ },
4453
+ number: {
4454
+ pattern: /([:\-,[{]\s*(?:![^\s]+)?[ \t]*)[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)(?=[ \t]*(?:$|,|\]|\}|[\r\n]))/im,
4455
+ lookbehind: !0
4456
+ },
4457
+ tag: /![^\s]+/,
4458
+ anchor: /[&*][\w]+/,
4459
+ punctuation: /---|[:[\]{}\-,|>?]|\.\.\./
4460
+ });
4461
+ function Bo({
4462
+ value: e,
4463
+ onChange: n,
4464
+ onValidationChange: t,
4465
+ readOnly: a = !1,
4466
+ minHeight: r = 100,
4467
+ maxHeight: o,
4468
+ debounceMs: i = 500,
4469
+ style: l = {}
4470
+ }) {
4471
+ const [s, c] = Sn(null), g = Ne(null), p = Ne(t), m = Ne(!1);
4472
+ p.current = t;
4473
+ const v = be((F) => {
4474
+ if (!F.trim()) return null;
4475
+ try {
4476
+ return Lo.load(F), null;
4477
+ } catch (L) {
4478
+ const I = L.mark;
4479
+ return {
4480
+ line: (I == null ? void 0 : I.line) !== void 0 ? I.line + 1 : 1,
4481
+ message: L.message || "Invalid YAML"
4482
+ };
4483
+ }
4484
+ }, []), u = be((F) => {
4485
+ var L;
4486
+ c(F), (L = p.current) == null || L.call(p, !F, F == null ? void 0 : F.message);
4487
+ }, []), f = be(
4488
+ (F) => {
4489
+ a || (m.current = !0, g.current && clearTimeout(g.current), g.current = setTimeout(() => {
4490
+ u(v(F)), g.current = null;
4491
+ }, i), n(F));
4492
+ },
4493
+ [n, v, u, i, a]
4494
+ );
4495
+ nn(() => () => {
4496
+ g.current && clearTimeout(g.current);
4497
+ }, []), nn(() => {
4498
+ if (m.current) {
4499
+ m.current = !1;
4500
+ return;
4501
+ }
4502
+ g.current && (clearTimeout(g.current), g.current = null), u(v(e));
4503
+ }, [e, v, u]);
4504
+ const d = ln(() => e.split(`
4505
+ `).length, [e]), b = ln(() => Array.from({ length: d }, (F, L) => L + 1).join(`
4506
+ `), [d]), [y, w] = Sn(!1);
4507
+ nn(() => {
4508
+ const F = () => {
4509
+ const I = getComputedStyle(document.documentElement).getPropertyValue("--bg").trim();
4510
+ w(I.startsWith("#0") || I.startsWith("#1") || I.startsWith("#2") || I.startsWith("#3"));
4511
+ };
4512
+ F();
4513
+ const L = new MutationObserver(F);
4514
+ return L.observe(document.documentElement, { attributes: !0, attributeFilter: ["class", "data-theme"] }), () => L.disconnect();
4515
+ }, []);
4516
+ const E = y ? sn.vsDark : sn.vsLight, k = be(
4517
+ (F) => /* @__PURE__ */ de(pa, { theme: E, code: F, language: "yaml", children: ({ tokens: L, getLineProps: I, getTokenProps: K }) => /* @__PURE__ */ de(qt, { children: L.map((se, N) => {
4518
+ const Y = N + 1, Q = (s == null ? void 0 : s.line) === Y;
4519
+ return /* @__PURE__ */ de(
4520
+ "div",
4521
+ {
4522
+ ...I({ line: se }),
4523
+ style: {
4524
+ background: Q ? "var(--danger-bg, rgba(220, 53, 69, 0.15))" : void 0,
4525
+ textDecoration: Q ? "underline wavy var(--danger)" : void 0
4526
+ },
4527
+ children: se.map((C, j) => {
4528
+ const xe = K({ token: C }), V = C.types.map((ae) => `nc-token-${ae}`).join(" ");
4529
+ return /* @__PURE__ */ de(
4530
+ "span",
4531
+ {
4532
+ ...xe,
4533
+ className: V
4534
+ },
4535
+ j
4536
+ );
4537
+ })
4538
+ },
4539
+ N
4540
+ );
4541
+ }) }) }),
4542
+ [s, E]
4543
+ ), R = Ne(null), O = Ne(null), P = () => {
4544
+ R.current && O.current && (O.current.scrollTop = R.current.scrollTop);
4545
+ };
4546
+ return /* @__PURE__ */ en("div", { style: { display: "flex", flexDirection: "column", gap: 4, ...l }, children: [
4547
+ /* @__PURE__ */ de("style", { children: `
4548
+ .yaml-editor-container,
4549
+ .yaml-editor-container * {
4550
+ white-space: pre !important;
4551
+ overflow-wrap: normal !important;
4552
+ word-wrap: normal !important;
4553
+ word-break: keep-all !important;
4554
+ }
4555
+ .yaml-editor-container textarea,
4556
+ .yaml-editor-container pre {
4557
+ white-space: pre !important;
4558
+ overflow-wrap: normal !important;
4559
+ word-wrap: normal !important;
4560
+ word-break: keep-all !important;
4561
+ overflow-x: visible !important;
4562
+ }
4563
+ ` }),
4564
+ /* @__PURE__ */ en(
4565
+ "div",
4566
+ {
4567
+ style: {
4568
+ display: "flex",
4569
+ border: `1px solid ${s ? "var(--nc-danger)" : "var(--nc-border)"}`,
4570
+ borderRadius: 4,
4571
+ overflow: "hidden",
4572
+ background: "var(--nc-bg-secondary)",
4573
+ minHeight: r,
4574
+ maxHeight: o
4575
+ },
4576
+ children: [
4577
+ /* @__PURE__ */ de(
4578
+ "div",
4579
+ {
4580
+ ref: O,
4581
+ style: {
4582
+ padding: "10px 8px",
4583
+ paddingRight: 12,
4584
+ background: "var(--nc-bg-tertiary)",
4585
+ borderRight: "1px solid var(--nc-border)",
4586
+ color: "var(--nc-text-weak)",
4587
+ fontFamily: 'Consolas, Monaco, "Courier New", monospace',
4588
+ fontSize: 13,
4589
+ lineHeight: "1.5",
4590
+ textAlign: "right",
4591
+ userSelect: "none",
4592
+ whiteSpace: "pre",
4593
+ minWidth: 40,
4594
+ overflow: "hidden"
4595
+ },
4596
+ children: b
4597
+ }
4598
+ ),
4599
+ /* @__PURE__ */ de("div", { ref: R, className: "yaml-editor-container", style: { flex: 1, overflowX: "auto", overflowY: "auto" }, onScroll: P, children: /* @__PURE__ */ de(
4600
+ lr,
4601
+ {
4602
+ value: e,
4603
+ onValueChange: f,
4604
+ highlight: k,
4605
+ padding: 10,
4606
+ readOnly: a,
4607
+ style: {
4608
+ fontFamily: 'Consolas, Monaco, "Courier New", monospace',
4609
+ fontSize: 13,
4610
+ lineHeight: "1.5",
4611
+ minHeight: r - 2,
4612
+ background: "transparent",
4613
+ whiteSpace: "pre",
4614
+ minWidth: "max-content"
4615
+ },
4616
+ textareaClassName: "yaml-editor-textarea"
4617
+ }
4618
+ ) })
4619
+ ]
4620
+ }
4621
+ ),
4622
+ s && /* @__PURE__ */ en(
4623
+ "div",
4624
+ {
4625
+ style: {
4626
+ color: "var(--danger)",
4627
+ fontSize: 12,
4628
+ padding: "4px 8px",
4629
+ background: "var(--danger-bg, rgba(220, 53, 69, 0.1))",
4630
+ borderRadius: 4
4631
+ },
4632
+ children: [
4633
+ "Line ",
4634
+ s.line,
4635
+ ": ",
4636
+ s.message
4637
+ ]
4638
+ }
4639
+ )
4640
+ ] });
4641
+ }
4642
+ export {
4643
+ Bo as YamlTextArea,
4644
+ Bo as default
4645
+ };
4646
+ //# sourceMappingURL=yaml.js.map