zudoku 0.3.0-dev.16 → 0.3.0-dev.18

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.
Files changed (53) hide show
  1. package/dist/config/config.d.ts +1 -1
  2. package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -0
  3. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -0
  4. package/dist/lib/plugins/api-keys/index.js.map +1 -0
  5. package/dist/vite/dev-server.js +1 -1
  6. package/dist/vite/dev-server.js.map +1 -1
  7. package/dist/vite/plugin-api-keys.js +2 -2
  8. package/dist/vite/plugin-api-keys.js.map +1 -1
  9. package/dist/vite/plugin-api.js +3 -3
  10. package/dist/vite/plugin-api.js.map +1 -1
  11. package/dist/vite/plugin-docs.js +1 -1
  12. package/dist/vite/plugin-docs.js.map +1 -1
  13. package/dist/vite/plugin-redirect.js +2 -2
  14. package/dist/vite/plugin-redirect.js.map +1 -1
  15. package/lib/DevPortalProvider-CRKuwoXc.js +4123 -0
  16. package/lib/Markdown-5LmPZyLV.js +8620 -0
  17. package/lib/MdxComponents-DYD_QPVF.js +3017 -0
  18. package/lib/Select-DR3PiqjV.js +4569 -0
  19. package/lib/Spinner-DjQ2eBxC.js +181 -0
  20. package/lib/_commonjsHelpers-BkfeUUK-.js +28 -0
  21. package/lib/hook-FCY9-FHO.js +24 -0
  22. package/lib/index-By9bEW57.js +411 -0
  23. package/lib/{loglevel-CoH7VSwE.js → loglevel-CA34MiFn.js} +10 -10
  24. package/lib/state-Ds_OxRHP.js +288 -0
  25. package/lib/util-voKLTRDG.js +740 -0
  26. package/lib/zudoku.auth-auth0.js +1 -1
  27. package/lib/zudoku.auth-clerk.js +1 -1
  28. package/lib/zudoku.auth-openid.js +2 -2
  29. package/lib/zudoku.components.js +111 -104
  30. package/lib/zudoku.plugin-api-keys.js +292 -0
  31. package/lib/zudoku.plugin-markdown.js +255 -0
  32. package/lib/zudoku.plugin-openapi.js +6240 -0
  33. package/lib/zudoku.plugin-redirect.js +10 -0
  34. package/package.json +12 -3
  35. package/dist/lib/plugins/api-key/CreateApiKey.js.map +0 -1
  36. package/dist/lib/plugins/api-key/SettingsApiKeys.js.map +0 -1
  37. package/dist/lib/plugins/api-key/index.js.map +0 -1
  38. package/dist/lib/plugins/index.d.ts +0 -4
  39. package/dist/lib/plugins/index.js +0 -5
  40. package/dist/lib/plugins/index.js.map +0 -1
  41. package/lib/Spinner-Cf0Eb7YI.js +0 -8460
  42. package/lib/state-2Hu1renZ.js +0 -313
  43. package/lib/zudoku.plugins.js +0 -19918
  44. package/src/lib/plugins/index.ts +0 -4
  45. /package/dist/lib/plugins/{api-key → api-keys}/CreateApiKey.d.ts +0 -0
  46. /package/dist/lib/plugins/{api-key → api-keys}/CreateApiKey.js +0 -0
  47. /package/dist/lib/plugins/{api-key → api-keys}/SettingsApiKeys.d.ts +0 -0
  48. /package/dist/lib/plugins/{api-key → api-keys}/SettingsApiKeys.js +0 -0
  49. /package/dist/lib/plugins/{api-key → api-keys}/index.d.ts +0 -0
  50. /package/dist/lib/plugins/{api-key → api-keys}/index.js +0 -0
  51. /package/src/lib/plugins/{api-key → api-keys}/CreateApiKey.tsx +0 -0
  52. /package/src/lib/plugins/{api-key → api-keys}/SettingsApiKeys.tsx +0 -0
  53. /package/src/lib/plugins/{api-key → api-keys}/index.tsx +0 -0
@@ -0,0 +1,3017 @@
1
+ import { j as k } from "./index-PyGcnQFX.js";
2
+ import { c as q, l as z, q as Se, J as ye, G as _e, L as Fe } from "./DevPortalProvider-CRKuwoXc.js";
3
+ import { createContext as fe, useState as X, useRef as M, useEffect as G, useMemo as ne, useCallback as Z, useContext as be, createElement as Te } from "react";
4
+ /**
5
+ * @license lucide-react v0.378.0 - ISC
6
+ *
7
+ * This source code is licensed under the ISC license.
8
+ * See the LICENSE file in the root directory of this source tree.
9
+ */
10
+ const Re = q("Copy", [
11
+ ["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
12
+ ["path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2", key: "zix9uf" }]
13
+ ]);
14
+ /**
15
+ * @license lucide-react v0.378.0 - ISC
16
+ *
17
+ * This source code is licensed under the ISC license.
18
+ * See the LICENSE file in the root directory of this source tree.
19
+ */
20
+ const ie = q("Info", [
21
+ ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
22
+ ["path", { d: "M12 16v-4", key: "1dtifu" }],
23
+ ["path", { d: "M12 8h.01", key: "e9boi3" }]
24
+ ]);
25
+ /**
26
+ * @license lucide-react v0.378.0 - ISC
27
+ *
28
+ * This source code is licensed under the ISC license.
29
+ * See the LICENSE file in the root directory of this source tree.
30
+ */
31
+ const Ie = q("Lightbulb", [
32
+ [
33
+ "path",
34
+ {
35
+ d: "M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",
36
+ key: "1gvzjb"
37
+ }
38
+ ],
39
+ ["path", { d: "M9 18h6", key: "x1upvd" }],
40
+ ["path", { d: "M10 22h4", key: "ceow96" }]
41
+ ]);
42
+ /**
43
+ * @license lucide-react v0.378.0 - ISC
44
+ *
45
+ * This source code is licensed under the ISC license.
46
+ * See the LICENSE file in the root directory of this source tree.
47
+ */
48
+ const Le = q("ShieldAlert", [
49
+ [
50
+ "path",
51
+ {
52
+ d: "M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",
53
+ key: "oel41y"
54
+ }
55
+ ],
56
+ ["path", { d: "M12 8v4", key: "1got3b" }],
57
+ ["path", { d: "M12 16h.01", key: "1drbdi" }]
58
+ ]);
59
+ /**
60
+ * @license lucide-react v0.378.0 - ISC
61
+ *
62
+ * This source code is licensed under the ISC license.
63
+ * See the LICENSE file in the root directory of this source tree.
64
+ */
65
+ const Ce = q("TriangleAlert", [
66
+ [
67
+ "path",
68
+ {
69
+ d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",
70
+ key: "wmoenq"
71
+ }
72
+ ],
73
+ ["path", { d: "M12 9v4", key: "juzpu7" }],
74
+ ["path", { d: "M12 17h.01", key: "p32p05" }]
75
+ ]), Oe = {
76
+ note: {
77
+ border: "border-gray-300 dark:border-zinc-800",
78
+ bg: "bg-gray-100 dark:bg-zinc-800/50",
79
+ iconColor: "text-gray-600 dark:text-zinc-300",
80
+ titleColor: "text-gray-600 dark:text-zinc-300",
81
+ textColor: "text-gray-600 dark:text-zinc-300",
82
+ Icon: ie
83
+ },
84
+ tip: {
85
+ border: "border-green-500 dark:border-green-800",
86
+ bg: "bg-green-200/25 dark:bg-green-950/70",
87
+ iconColor: "text-green-600 dark:text-green-200",
88
+ titleColor: "text-green-700 dark:text-green-200",
89
+ textColor: "text-green-600 dark:text-green-50",
90
+ Icon: Ie
91
+ },
92
+ info: {
93
+ border: "border-blue-400 dark:border-blue-900/60",
94
+ bg: "bg-blue-50 dark:bg-blue-950/40",
95
+ iconColor: "text-blue-400 dark:text-blue-200",
96
+ titleColor: "text-blue-700 dark:text-blue-200",
97
+ textColor: "text-blue-600 dark:text-blue-100",
98
+ Icon: ie
99
+ },
100
+ caution: {
101
+ border: "border-yellow-400 dark:border-yellow-400/25",
102
+ bg: "bg-yellow-100/60 dark:bg-yellow-400/10",
103
+ iconColor: "text-yellow-500 dark:text-yellow-300",
104
+ titleColor: "text-yellow-600 dark:text-yellow-300",
105
+ textColor: "text-yellow-700 dark:text-yellow-200",
106
+ Icon: Ce
107
+ },
108
+ danger: {
109
+ border: "border-rose-400 dark:border-rose-800",
110
+ bg: "bg-rose-50 dark:bg-rose-950/40",
111
+ iconColor: "text-rose-400 dark:text-rose-300",
112
+ titleColor: "text-rose-800 dark:text-rose-300",
113
+ textColor: "text-rose-700 dark:text-rose-100",
114
+ Icon: Le
115
+ }
116
+ }, j = ({ type: e, children: t, title: r, className: l }) => {
117
+ const { border: i, bg: b, iconColor: c, titleColor: d, textColor: p, Icon: y } = Oe[e];
118
+ return /* @__PURE__ */ k.jsxs(
119
+ "div",
120
+ {
121
+ className: z(
122
+ "not-prose grid grid-cols-[fit-content_1fr] grid-rows-[fit-content_1fr] gap-x-4 gap-y-2 text-md rounded-md border p-4",
123
+ "[&_a]:underline [&_a]:decoration-current [&_a]:decoration-from-font [&_a]:underline-offset-4 hover:[&_a]:decoration-1",
124
+ "[&_code]:!bg-transparent [&_code]:!border-none",
125
+ r && "items-center",
126
+ i,
127
+ b,
128
+ l
129
+ ),
130
+ children: [
131
+ /* @__PURE__ */ k.jsx(
132
+ y,
133
+ {
134
+ className: z(!r && "mt-1 translate-y-px", c),
135
+ size: 20,
136
+ "aria-hidden": "true"
137
+ }
138
+ ),
139
+ r && /* @__PURE__ */ k.jsx("h3", { className: z("font-medium", d), children: r }),
140
+ /* @__PURE__ */ k.jsx("div", { className: z("col-start-2", !r && "row-start-1", p), children: t })
141
+ ]
142
+ }
143
+ );
144
+ }, me = fe(
145
+ void 0
146
+ ), Ne = () => {
147
+ const e = be(me);
148
+ if (!e)
149
+ throw new Error(
150
+ "useViewportAnchor must be used within a CurrentAnchorProvider"
151
+ );
152
+ return e;
153
+ }, De = () => {
154
+ const e = M(null), { observe: t, unobserve: r } = Ne();
155
+ return G(() => {
156
+ const i = e.current;
157
+ if (i)
158
+ return t(i), () => r(i);
159
+ }, [t, r]), { ref: Z((i) => {
160
+ i && (e.current = i);
161
+ }, []) };
162
+ }, Gt = ({
163
+ children: e
164
+ }) => {
165
+ const [t, r] = X(""), l = M(null), i = M(/* @__PURE__ */ new Set());
166
+ G(() => (l.current = new IntersectionObserver(
167
+ (d) => {
168
+ for (const p of d)
169
+ p.isIntersecting && p.target.id && r(p.target.id);
170
+ },
171
+ {
172
+ // 115px is the height of the sticky header
173
+ // see --header-height in `main.css`
174
+ rootMargin: "115px 0px -80% 0px",
175
+ threshold: 0.75
176
+ }
177
+ ), () => {
178
+ var d;
179
+ return (d = l.current) == null ? void 0 : d.disconnect();
180
+ }), []), G(() => {
181
+ const d = i.current, p = () => {
182
+ const y = window.scrollY === 0, h = window.innerHeight + window.scrollY >= document.body.scrollHeight;
183
+ y ? r("") : h && requestIdleCallback(() => {
184
+ const g = Array.from(d).pop();
185
+ r((g == null ? void 0 : g.id) ?? "");
186
+ });
187
+ };
188
+ return document.addEventListener("scroll", p), () => {
189
+ d.clear(), document.removeEventListener("scroll", p);
190
+ };
191
+ }, []);
192
+ const b = ne(() => ({
193
+ observe: (d) => {
194
+ !d || !l.current || (i.current.add(d), l.current.observe(d));
195
+ },
196
+ unobserve: (d) => {
197
+ !d || !l.current || (i.current.delete(d), l.current.unobserve(d));
198
+ }
199
+ }), []), c = ne(
200
+ () => ({ activeAnchor: t, setActiveAnchor: r, ...b }),
201
+ [t, r, b]
202
+ );
203
+ return /* @__PURE__ */ k.jsx(me.Provider, { value: c, children: e });
204
+ }, Be = Se("group relative", {
205
+ variants: {
206
+ level: {
207
+ 6: "text-md",
208
+ 5: "text-lg",
209
+ 4: "text-xl",
210
+ 3: "text-xl font-semibold",
211
+ 2: "text-2xl font-bold",
212
+ 1: "text-4xl font-extrabold"
213
+ }
214
+ },
215
+ defaultVariants: {
216
+ level: 1
217
+ }
218
+ }), je = (e) => {
219
+ switch (e) {
220
+ case 1:
221
+ return "h1";
222
+ case 2:
223
+ return "h2";
224
+ case 3:
225
+ return "h3";
226
+ case 4:
227
+ return "h4";
228
+ case 5:
229
+ return "h5";
230
+ case 6:
231
+ return "h6";
232
+ default:
233
+ return "h1";
234
+ }
235
+ }, P = ({
236
+ level: e,
237
+ children: t,
238
+ id: r,
239
+ className: l,
240
+ registerSidebarAnchor: i
241
+ }) => {
242
+ const b = je(e ?? 1), { ref: c } = De();
243
+ return /* @__PURE__ */ k.jsxs(
244
+ b,
245
+ {
246
+ className: Be({ className: l, level: e }),
247
+ ref: i ? c : void 0,
248
+ id: r,
249
+ children: [
250
+ r && /* @__PURE__ */ k.jsx(
251
+ "a",
252
+ {
253
+ href: `#${r}`,
254
+ className: "no-underline absolute text-primary -left-[0.8em] pr-2.5 opacity-0 group-hover:opacity-50 hover:!opacity-100 transition-opacity duration-200",
255
+ "aria-label": `Link to ${r}`,
256
+ children: "#"
257
+ }
258
+ ),
259
+ t
260
+ ]
261
+ }
262
+ );
263
+ };
264
+ var $e = Object.create, Q = Object.defineProperty, Pe = Object.defineProperties, ze = Object.getOwnPropertyDescriptor, Me = Object.getOwnPropertyDescriptors, he = Object.getOwnPropertyNames, K = Object.getOwnPropertySymbols, Ue = Object.getPrototypeOf, oe = Object.prototype.hasOwnProperty, ve = Object.prototype.propertyIsEnumerable, ue = (e, t, r) => t in e ? Q(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, O = (e, t) => {
265
+ for (var r in t || (t = {}))
266
+ oe.call(t, r) && ue(e, r, t[r]);
267
+ if (K)
268
+ for (var r of K(t))
269
+ ve.call(t, r) && ue(e, r, t[r]);
270
+ return e;
271
+ }, J = (e, t) => Pe(e, Me(t)), ke = (e, t) => {
272
+ var r = {};
273
+ for (var l in e)
274
+ oe.call(e, l) && t.indexOf(l) < 0 && (r[l] = e[l]);
275
+ if (e != null && K)
276
+ for (var l of K(e))
277
+ t.indexOf(l) < 0 && ve.call(e, l) && (r[l] = e[l]);
278
+ return r;
279
+ }, Ge = (e, t) => function() {
280
+ return t || (0, e[he(e)[0]])((t = { exports: {} }).exports, t), t.exports;
281
+ }, Ze = (e, t) => {
282
+ for (var r in t)
283
+ Q(e, r, { get: t[r], enumerable: !0 });
284
+ }, qe = (e, t, r, l) => {
285
+ if (t && typeof t == "object" || typeof t == "function")
286
+ for (let i of he(t))
287
+ !oe.call(e, i) && i !== r && Q(e, i, { get: () => t[i], enumerable: !(l = ze(t, i)) || l.enumerable });
288
+ return e;
289
+ }, He = (e, t, r) => (r = e != null ? $e(Ue(e)) : {}, qe(
290
+ // If the importer is in node compatibility mode or this is not an ESM
291
+ // file that has been converted to a CommonJS file using a Babel-
292
+ // compatible transform (i.e. "__esModule" has not been set), then set
293
+ // "default" to the CommonJS "module.exports" for node compatibility.
294
+ !e || !e.__esModule ? Q(r, "default", { value: e, enumerable: !0 }) : r,
295
+ e
296
+ )), We = Ge({
297
+ "../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(e, t) {
298
+ var r = function() {
299
+ var l = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, i = 0, b = {}, c = {
300
+ /**
301
+ * A namespace for utility methods.
302
+ *
303
+ * All function in this namespace that are not explicitly marked as _public_ are for __internal use only__ and may
304
+ * change or disappear at any time.
305
+ *
306
+ * @namespace
307
+ * @memberof Prism
308
+ */
309
+ util: {
310
+ encode: function a(n) {
311
+ return n instanceof d ? new d(n.type, a(n.content), n.alias) : Array.isArray(n) ? n.map(a) : n.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/\u00a0/g, " ");
312
+ },
313
+ /**
314
+ * Returns the name of the type of the given value.
315
+ *
316
+ * @param {any} o
317
+ * @returns {string}
318
+ * @example
319
+ * type(null) === 'Null'
320
+ * type(undefined) === 'Undefined'
321
+ * type(123) === 'Number'
322
+ * type('foo') === 'String'
323
+ * type(true) === 'Boolean'
324
+ * type([1, 2]) === 'Array'
325
+ * type({}) === 'Object'
326
+ * type(String) === 'Function'
327
+ * type(/abc+/) === 'RegExp'
328
+ */
329
+ type: function(a) {
330
+ return Object.prototype.toString.call(a).slice(8, -1);
331
+ },
332
+ /**
333
+ * Returns a unique number for the given object. Later calls will still return the same number.
334
+ *
335
+ * @param {Object} obj
336
+ * @returns {number}
337
+ */
338
+ objId: function(a) {
339
+ return a.__id || Object.defineProperty(a, "__id", { value: ++i }), a.__id;
340
+ },
341
+ /**
342
+ * Creates a deep clone of the given object.
343
+ *
344
+ * The main intended use of this function is to clone language definitions.
345
+ *
346
+ * @param {T} o
347
+ * @param {Record<number, any>} [visited]
348
+ * @returns {T}
349
+ * @template T
350
+ */
351
+ clone: function a(n, s) {
352
+ s = s || {};
353
+ var f, u;
354
+ switch (c.util.type(n)) {
355
+ case "Object":
356
+ if (u = c.util.objId(n), s[u])
357
+ return s[u];
358
+ f = /** @type {Record<string, any>} */
359
+ {}, s[u] = f;
360
+ for (var m in n)
361
+ n.hasOwnProperty(m) && (f[m] = a(n[m], s));
362
+ return (
363
+ /** @type {any} */
364
+ f
365
+ );
366
+ case "Array":
367
+ return u = c.util.objId(n), s[u] ? s[u] : (f = [], s[u] = f, n.forEach(function(w, E) {
368
+ f[E] = a(w, s);
369
+ }), /** @type {any} */
370
+ f);
371
+ default:
372
+ return n;
373
+ }
374
+ },
375
+ /**
376
+ * Returns the Prism language of the given element set by a `language-xxxx` or `lang-xxxx` class.
377
+ *
378
+ * If no language is set for the element or the element is `null` or `undefined`, `none` will be returned.
379
+ *
380
+ * @param {Element} element
381
+ * @returns {string}
382
+ */
383
+ getLanguage: function(a) {
384
+ for (; a; ) {
385
+ var n = l.exec(a.className);
386
+ if (n)
387
+ return n[1].toLowerCase();
388
+ a = a.parentElement;
389
+ }
390
+ return "none";
391
+ },
392
+ /**
393
+ * Sets the Prism `language-xxxx` class of the given element.
394
+ *
395
+ * @param {Element} element
396
+ * @param {string} language
397
+ * @returns {void}
398
+ */
399
+ setLanguage: function(a, n) {
400
+ a.className = a.className.replace(RegExp(l, "gi"), ""), a.classList.add("language-" + n);
401
+ },
402
+ /**
403
+ * Returns whether a given class is active for `element`.
404
+ *
405
+ * The class can be activated if `element` or one of its ancestors has the given class and it can be deactivated
406
+ * if `element` or one of its ancestors has the negated version of the given class. The _negated version_ of the
407
+ * given class is just the given class with a `no-` prefix.
408
+ *
409
+ * Whether the class is active is determined by the closest ancestor of `element` (where `element` itself is
410
+ * closest ancestor) that has the given class or the negated version of it. If neither `element` nor any of its
411
+ * ancestors have the given class or the negated version of it, then the default activation will be returned.
412
+ *
413
+ * In the paradoxical situation where the closest ancestor contains __both__ the given class and the negated
414
+ * version of it, the class is considered active.
415
+ *
416
+ * @param {Element} element
417
+ * @param {string} className
418
+ * @param {boolean} [defaultActivation=false]
419
+ * @returns {boolean}
420
+ */
421
+ isActive: function(a, n, s) {
422
+ for (var f = "no-" + n; a; ) {
423
+ var u = a.classList;
424
+ if (u.contains(n))
425
+ return !0;
426
+ if (u.contains(f))
427
+ return !1;
428
+ a = a.parentElement;
429
+ }
430
+ return !!s;
431
+ }
432
+ },
433
+ /**
434
+ * This namespace contains all currently loaded languages and the some helper functions to create and modify languages.
435
+ *
436
+ * @namespace
437
+ * @memberof Prism
438
+ * @public
439
+ */
440
+ languages: {
441
+ /**
442
+ * The grammar for plain, unformatted text.
443
+ */
444
+ plain: b,
445
+ plaintext: b,
446
+ text: b,
447
+ txt: b,
448
+ /**
449
+ * Creates a deep copy of the language with the given id and appends the given tokens.
450
+ *
451
+ * If a token in `redef` also appears in the copied language, then the existing token in the copied language
452
+ * will be overwritten at its original position.
453
+ *
454
+ * ## Best practices
455
+ *
456
+ * Since the position of overwriting tokens (token in `redef` that overwrite tokens in the copied language)
457
+ * doesn't matter, they can technically be in any order. However, this can be confusing to others that trying to
458
+ * understand the language definition because, normally, the order of tokens matters in Prism grammars.
459
+ *
460
+ * Therefore, it is encouraged to order overwriting tokens according to the positions of the overwritten tokens.
461
+ * Furthermore, all non-overwriting tokens should be placed after the overwriting ones.
462
+ *
463
+ * @param {string} id The id of the language to extend. This has to be a key in `Prism.languages`.
464
+ * @param {Grammar} redef The new tokens to append.
465
+ * @returns {Grammar} The new language created.
466
+ * @public
467
+ * @example
468
+ * Prism.languages['css-with-colors'] = Prism.languages.extend('css', {
469
+ * // Prism.languages.css already has a 'comment' token, so this token will overwrite CSS' 'comment' token
470
+ * // at its original position
471
+ * 'comment': { ... },
472
+ * // CSS doesn't have a 'color' token, so this token will be appended
473
+ * 'color': /\b(?:red|green|blue)\b/
474
+ * });
475
+ */
476
+ extend: function(a, n) {
477
+ var s = c.util.clone(c.languages[a]);
478
+ for (var f in n)
479
+ s[f] = n[f];
480
+ return s;
481
+ },
482
+ /**
483
+ * Inserts tokens _before_ another token in a language definition or any other grammar.
484
+ *
485
+ * ## Usage
486
+ *
487
+ * This helper method makes it easy to modify existing languages. For example, the CSS language definition
488
+ * not only defines CSS highlighting for CSS documents, but also needs to define highlighting for CSS embedded
489
+ * in HTML through `<style>` elements. To do this, it needs to modify `Prism.languages.markup` and add the
490
+ * appropriate tokens. However, `Prism.languages.markup` is a regular JavaScript object literal, so if you do
491
+ * this:
492
+ *
493
+ * ```js
494
+ * Prism.languages.markup.style = {
495
+ * // token
496
+ * };
497
+ * ```
498
+ *
499
+ * then the `style` token will be added (and processed) at the end. `insertBefore` allows you to insert tokens
500
+ * before existing tokens. For the CSS example above, you would use it like this:
501
+ *
502
+ * ```js
503
+ * Prism.languages.insertBefore('markup', 'cdata', {
504
+ * 'style': {
505
+ * // token
506
+ * }
507
+ * });
508
+ * ```
509
+ *
510
+ * ## Special cases
511
+ *
512
+ * If the grammars of `inside` and `insert` have tokens with the same name, the tokens in `inside`'s grammar
513
+ * will be ignored.
514
+ *
515
+ * This behavior can be used to insert tokens after `before`:
516
+ *
517
+ * ```js
518
+ * Prism.languages.insertBefore('markup', 'comment', {
519
+ * 'comment': Prism.languages.markup.comment,
520
+ * // tokens after 'comment'
521
+ * });
522
+ * ```
523
+ *
524
+ * ## Limitations
525
+ *
526
+ * The main problem `insertBefore` has to solve is iteration order. Since ES2015, the iteration order for object
527
+ * properties is guaranteed to be the insertion order (except for integer keys) but some browsers behave
528
+ * differently when keys are deleted and re-inserted. So `insertBefore` can't be implemented by temporarily
529
+ * deleting properties which is necessary to insert at arbitrary positions.
530
+ *
531
+ * To solve this problem, `insertBefore` doesn't actually insert the given tokens into the target object.
532
+ * Instead, it will create a new object and replace all references to the target object with the new one. This
533
+ * can be done without temporarily deleting properties, so the iteration order is well-defined.
534
+ *
535
+ * However, only references that can be reached from `Prism.languages` or `insert` will be replaced. I.e. if
536
+ * you hold the target object in a variable, then the value of the variable will not change.
537
+ *
538
+ * ```js
539
+ * var oldMarkup = Prism.languages.markup;
540
+ * var newMarkup = Prism.languages.insertBefore('markup', 'comment', { ... });
541
+ *
542
+ * assert(oldMarkup !== Prism.languages.markup);
543
+ * assert(newMarkup === Prism.languages.markup);
544
+ * ```
545
+ *
546
+ * @param {string} inside The property of `root` (e.g. a language id in `Prism.languages`) that contains the
547
+ * object to be modified.
548
+ * @param {string} before The key to insert before.
549
+ * @param {Grammar} insert An object containing the key-value pairs to be inserted.
550
+ * @param {Object<string, any>} [root] The object containing `inside`, i.e. the object that contains the
551
+ * object to be modified.
552
+ *
553
+ * Defaults to `Prism.languages`.
554
+ * @returns {Grammar} The new grammar object.
555
+ * @public
556
+ */
557
+ insertBefore: function(a, n, s, f) {
558
+ f = f || /** @type {any} */
559
+ c.languages;
560
+ var u = f[a], m = {};
561
+ for (var w in u)
562
+ if (u.hasOwnProperty(w)) {
563
+ if (w == n)
564
+ for (var E in s)
565
+ s.hasOwnProperty(E) && (m[E] = s[E]);
566
+ s.hasOwnProperty(w) || (m[w] = u[w]);
567
+ }
568
+ var S = f[a];
569
+ return f[a] = m, c.languages.DFS(c.languages, function(A, F) {
570
+ F === S && A != a && (this[A] = m);
571
+ }), m;
572
+ },
573
+ // Traverse a language definition with Depth First Search
574
+ DFS: function a(n, s, f, u) {
575
+ u = u || {};
576
+ var m = c.util.objId;
577
+ for (var w in n)
578
+ if (n.hasOwnProperty(w)) {
579
+ s.call(n, w, n[w], f || w);
580
+ var E = n[w], S = c.util.type(E);
581
+ S === "Object" && !u[m(E)] ? (u[m(E)] = !0, a(E, s, null, u)) : S === "Array" && !u[m(E)] && (u[m(E)] = !0, a(E, s, w, u));
582
+ }
583
+ }
584
+ },
585
+ plugins: {},
586
+ /**
587
+ * Low-level function, only use if you know what you’re doing. It accepts a string of text as input
588
+ * and the language definitions to use, and returns a string with the HTML produced.
589
+ *
590
+ * The following hooks will be run:
591
+ * 1. `before-tokenize`
592
+ * 2. `after-tokenize`
593
+ * 3. `wrap`: On each {@link Token}.
594
+ *
595
+ * @param {string} text A string with the code to be highlighted.
596
+ * @param {Grammar} grammar An object containing the tokens to use.
597
+ *
598
+ * Usually a language definition like `Prism.languages.markup`.
599
+ * @param {string} language The name of the language definition passed to `grammar`.
600
+ * @returns {string} The highlighted HTML.
601
+ * @memberof Prism
602
+ * @public
603
+ * @example
604
+ * Prism.highlight('var foo = true;', Prism.languages.javascript, 'javascript');
605
+ */
606
+ highlight: function(a, n, s) {
607
+ var f = {
608
+ code: a,
609
+ grammar: n,
610
+ language: s
611
+ };
612
+ if (c.hooks.run("before-tokenize", f), !f.grammar)
613
+ throw new Error('The language "' + f.language + '" has no grammar.');
614
+ return f.tokens = c.tokenize(f.code, f.grammar), c.hooks.run("after-tokenize", f), d.stringify(c.util.encode(f.tokens), f.language);
615
+ },
616
+ /**
617
+ * This is the heart of Prism, and the most low-level function you can use. It accepts a string of text as input
618
+ * and the language definitions to use, and returns an array with the tokenized code.
619
+ *
620
+ * When the language definition includes nested tokens, the function is called recursively on each of these tokens.
621
+ *
622
+ * This method could be useful in other contexts as well, as a very crude parser.
623
+ *
624
+ * @param {string} text A string with the code to be highlighted.
625
+ * @param {Grammar} grammar An object containing the tokens to use.
626
+ *
627
+ * Usually a language definition like `Prism.languages.markup`.
628
+ * @returns {TokenStream} An array of strings and tokens, a token stream.
629
+ * @memberof Prism
630
+ * @public
631
+ * @example
632
+ * let code = `var foo = 0;`;
633
+ * let tokens = Prism.tokenize(code, Prism.languages.javascript);
634
+ * tokens.forEach(token => {
635
+ * if (token instanceof Prism.Token && token.type === 'number') {
636
+ * console.log(`Found numeric literal: ${token.content}`);
637
+ * }
638
+ * });
639
+ */
640
+ tokenize: function(a, n) {
641
+ var s = n.rest;
642
+ if (s) {
643
+ for (var f in s)
644
+ n[f] = s[f];
645
+ delete n.rest;
646
+ }
647
+ var u = new h();
648
+ return g(u, u.head, a), y(a, u, n, u.head, 0), x(u);
649
+ },
650
+ /**
651
+ * @namespace
652
+ * @memberof Prism
653
+ * @public
654
+ */
655
+ hooks: {
656
+ all: {},
657
+ /**
658
+ * Adds the given callback to the list of callbacks for the given hook.
659
+ *
660
+ * The callback will be invoked when the hook it is registered for is run.
661
+ * Hooks are usually directly run by a highlight function but you can also run hooks yourself.
662
+ *
663
+ * One callback function can be registered to multiple hooks and the same hook multiple times.
664
+ *
665
+ * @param {string} name The name of the hook.
666
+ * @param {HookCallback} callback The callback function which is given environment variables.
667
+ * @public
668
+ */
669
+ add: function(a, n) {
670
+ var s = c.hooks.all;
671
+ s[a] = s[a] || [], s[a].push(n);
672
+ },
673
+ /**
674
+ * Runs a hook invoking all registered callbacks with the given environment variables.
675
+ *
676
+ * Callbacks will be invoked synchronously and in the order in which they were registered.
677
+ *
678
+ * @param {string} name The name of the hook.
679
+ * @param {Object<string, any>} env The environment variables of the hook passed to all callbacks registered.
680
+ * @public
681
+ */
682
+ run: function(a, n) {
683
+ var s = c.hooks.all[a];
684
+ if (!(!s || !s.length))
685
+ for (var f = 0, u; u = s[f++]; )
686
+ u(n);
687
+ }
688
+ },
689
+ Token: d
690
+ };
691
+ function d(a, n, s, f) {
692
+ this.type = a, this.content = n, this.alias = s, this.length = (f || "").length | 0;
693
+ }
694
+ d.stringify = function a(n, s) {
695
+ if (typeof n == "string")
696
+ return n;
697
+ if (Array.isArray(n)) {
698
+ var f = "";
699
+ return n.forEach(function(S) {
700
+ f += a(S, s);
701
+ }), f;
702
+ }
703
+ var u = {
704
+ type: n.type,
705
+ content: a(n.content, s),
706
+ tag: "span",
707
+ classes: ["token", n.type],
708
+ attributes: {},
709
+ language: s
710
+ }, m = n.alias;
711
+ m && (Array.isArray(m) ? Array.prototype.push.apply(u.classes, m) : u.classes.push(m)), c.hooks.run("wrap", u);
712
+ var w = "";
713
+ for (var E in u.attributes)
714
+ w += " " + E + '="' + (u.attributes[E] || "").replace(/"/g, "&quot;") + '"';
715
+ return "<" + u.tag + ' class="' + u.classes.join(" ") + '"' + w + ">" + u.content + "</" + u.tag + ">";
716
+ };
717
+ function p(a, n, s, f) {
718
+ a.lastIndex = n;
719
+ var u = a.exec(s);
720
+ if (u && f && u[1]) {
721
+ var m = u[1].length;
722
+ u.index += m, u[0] = u[0].slice(m);
723
+ }
724
+ return u;
725
+ }
726
+ function y(a, n, s, f, u, m) {
727
+ for (var w in s)
728
+ if (!(!s.hasOwnProperty(w) || !s[w])) {
729
+ var E = s[w];
730
+ E = Array.isArray(E) ? E : [E];
731
+ for (var S = 0; S < E.length; ++S) {
732
+ if (m && m.cause == w + "," + S)
733
+ return;
734
+ var A = E[S], F = A.inside, T = !!A.lookbehind, D = !!A.greedy, N = A.alias;
735
+ if (D && !A.pattern.global) {
736
+ var L = A.pattern.toString().match(/[imsuy]*$/)[0];
737
+ A.pattern = RegExp(A.pattern.source, L + "g");
738
+ }
739
+ for (var se = A.pattern || A, _ = f.next, C = u; _ !== n.tail && !(m && C >= m.reach); C += _.value.length, _ = _.next) {
740
+ var $ = _.value;
741
+ if (n.length > a.length)
742
+ return;
743
+ if (!($ instanceof d)) {
744
+ var H = 1, I;
745
+ if (D) {
746
+ if (I = p(se, C, a, T), !I || I.index >= a.length)
747
+ break;
748
+ var W = I.index, Ee = I.index + I[0].length, B = C;
749
+ for (B += _.value.length; W >= B; )
750
+ _ = _.next, B += _.value.length;
751
+ if (B -= _.value.length, C = B, _.value instanceof d)
752
+ continue;
753
+ for (var U = _; U !== n.tail && (B < Ee || typeof U.value == "string"); U = U.next)
754
+ H++, B += U.value.length;
755
+ H--, $ = a.slice(C, B), I.index -= C;
756
+ } else if (I = p(se, 0, $, T), !I)
757
+ continue;
758
+ var W = I.index, Y = I[0], ee = $.slice(0, W), le = $.slice(W + Y.length), te = C + $.length;
759
+ m && te > m.reach && (m.reach = te);
760
+ var V = _.prev;
761
+ ee && (V = g(n, V, ee), C += ee.length), v(n, V, H);
762
+ var Ae = new d(w, F ? c.tokenize(Y, F) : Y, N, Y);
763
+ if (_ = g(n, V, Ae), le && g(n, _, le), H > 1) {
764
+ var re = {
765
+ cause: w + "," + S,
766
+ reach: te
767
+ };
768
+ y(a, n, s, _.prev, C, re), m && re.reach > m.reach && (m.reach = re.reach);
769
+ }
770
+ }
771
+ }
772
+ }
773
+ }
774
+ }
775
+ function h() {
776
+ var a = { value: null, prev: null, next: null }, n = { value: null, prev: a, next: null };
777
+ a.next = n, this.head = a, this.tail = n, this.length = 0;
778
+ }
779
+ function g(a, n, s) {
780
+ var f = n.next, u = { value: s, prev: n, next: f };
781
+ return n.next = u, f.prev = u, a.length++, u;
782
+ }
783
+ function v(a, n, s) {
784
+ for (var f = n.next, u = 0; u < s && f !== a.tail; u++)
785
+ f = f.next;
786
+ n.next = f, f.prev = n, a.length -= u;
787
+ }
788
+ function x(a) {
789
+ for (var n = [], s = a.head.next; s !== a.tail; )
790
+ n.push(s.value), s = s.next;
791
+ return n;
792
+ }
793
+ return c;
794
+ }();
795
+ t.exports = r, r.default = r;
796
+ }
797
+ }), o = He(We());
798
+ o.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] }, o.languages.markup.tag.inside["attr-value"].inside.entity = o.languages.markup.entity, o.languages.markup.doctype.inside["internal-subset"].inside = o.languages.markup, o.hooks.add("wrap", function(e) {
799
+ e.type === "entity" && (e.attributes.title = e.content.replace(/&amp;/, "&"));
800
+ }), Object.defineProperty(o.languages.markup.tag, "addInlined", { value: function(e, l) {
801
+ var r = {}, r = (r["language-" + l] = { pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i, lookbehind: !0, inside: o.languages[l] }, r.cdata = /^<!\[CDATA\[|\]\]>$/i, { "included-cdata": { pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i, inside: r } }), l = (r["language-" + l] = { pattern: /[\s\S]+/, inside: o.languages[l] }, {});
802
+ l[e] = { pattern: RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g, function() {
803
+ return e;
804
+ }), "i"), lookbehind: !0, greedy: !0, inside: r }, o.languages.insertBefore("markup", "cdata", l);
805
+ } }), Object.defineProperty(o.languages.markup.tag, "addAttribute", { value: function(e, t) {
806
+ o.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: [t, "language-" + t], inside: o.languages[t] }, punctuation: [{ pattern: /^=/, alias: "attr-equals" }, /"|'/] } } } });
807
+ } }), o.languages.html = o.languages.markup, o.languages.mathml = o.languages.markup, o.languages.svg = o.languages.markup, o.languages.xml = o.languages.extend("markup", {}), o.languages.ssml = o.languages.xml, o.languages.atom = o.languages.xml, o.languages.rss = o.languages.xml, function(e) {
808
+ var t = { pattern: /\\[\\(){}[\]^$+*?|.]/, alias: "escape" }, r = /\\(?: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]|.)/, l = "(?:[^\\\\-]|" + r.source + ")", l = RegExp(l + "-" + l), i = { pattern: /(<|')[^<>']+(?=[>']$)/, lookbehind: !0, alias: "variable" };
809
+ 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: l, inside: { escape: r, "range-punctuation": { pattern: /-/, alias: "operator" } } }, "special-escape": t, "char-set": { pattern: /\\[wsd]|\\p\{[^{}]+\}/i, alias: "class-name" }, escape: r } }, "special-escape": t, "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": i } }], anchor: { pattern: /[$^]|\\[ABbGZz]/, alias: "function" }, escape: r, group: [{ pattern: /\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/, alias: "punctuation", inside: { "group-name": i } }, { pattern: /\)/, alias: "punctuation" }], quantifier: { pattern: /(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/, alias: "number" }, alternation: { pattern: /\|/, alias: "keyword" } };
810
+ }(o), o.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: /[{}[\];(),.:]/ }, o.languages.javascript = o.languages.extend("clike", { "class-name": [o.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}|\?\?=?|\?\.?|[~:]/ }), o.languages.javascript["class-name"][0].pattern = /(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/, o.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: o.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: o.languages.javascript }, { pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i, lookbehind: !0, inside: o.languages.javascript }, { pattern: /(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/, lookbehind: !0, inside: o.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: o.languages.javascript }], constant: /\b[A-Z](?:[A-Z_]|\dx?)*\b/ }), o.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: o.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" } }), o.languages.insertBefore("javascript", "operator", { "literal-property": { pattern: /((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m, lookbehind: !0, alias: "property" } }), o.languages.markup && (o.languages.markup.tag.addInlined("script", "javascript"), o.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")), o.languages.js = o.languages.javascript, o.languages.actionscript = o.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: /\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/ }), o.languages.actionscript["class-name"].alias = "function", delete o.languages.actionscript.parameter, delete o.languages.actionscript["literal-property"], o.languages.markup && o.languages.insertBefore("actionscript", "string", { xml: { pattern: /(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/, lookbehind: !0, inside: o.languages.markup } }), function(e) {
811
+ var t = /#(?!\{).+/, r = { pattern: /#\{[^}]+\}/, alias: "variable" };
812
+ e.languages.coffeescript = e.languages.extend("javascript", { comment: t, string: [{ pattern: /'(?:\\[\s\S]|[^\\'])*'/, greedy: !0 }, { pattern: /"(?:\\[\s\S]|[^\\"])*"/, greedy: !0, inside: { interpolation: r } }], 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: t, interpolation: r } } }), 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: r } }] }), e.languages.insertBefore("coffeescript", "keyword", { property: /(?!\d)\w+(?=\s*:(?!:))/ }), delete e.languages.coffeescript["template-string"], e.languages.coffee = e.languages.coffeescript;
813
+ }(o), function(e) {
814
+ var t = 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: /[{}]/ };
815
+ Object.defineProperty(t, "addSupport", { value: function(r, l) {
816
+ (r = typeof r == "string" ? [r] : r).forEach(function(i) {
817
+ var b = function(g) {
818
+ g.inside || (g.inside = {}), g.inside.rest = l;
819
+ }, c = "doc-comment";
820
+ if (d = e.languages[i]) {
821
+ var d, p = d[c];
822
+ if ((p = p || (d = e.languages.insertBefore(i, "comment", { "doc-comment": { pattern: /(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/, lookbehind: !0, alias: "comment" } }))[c]) instanceof RegExp && (p = d[c] = { pattern: p }), Array.isArray(p))
823
+ for (var y = 0, h = p.length; y < h; y++)
824
+ p[y] instanceof RegExp && (p[y] = { pattern: p[y] }), b(p[y]);
825
+ else
826
+ b(p);
827
+ }
828
+ });
829
+ } }), t.addSupport(["java", "javascript", "php"], t);
830
+ }(o), function(e) {
831
+ var t = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/, t = (e.languages.css = { comment: /\/\*[\s\S]*?\*\//, atrule: { pattern: RegExp("@[\\w-](?:" + /[^;{\s"']|\s+(?!\s)/.source + "|" + t.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\\((?:" + t.source + "|" + /(?:[^\\\r\n()"']|\\[\s\S])*/.source + ")\\)", "i"), greedy: !0, inside: { function: /^url/i, punctuation: /^\(|\)$/, string: { pattern: RegExp("^" + t.source + "$"), alias: "url" } } }, selector: { pattern: RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|` + t.source + ")*(?=\\s*\\{)"), lookbehind: !0 }, string: { pattern: t, 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);
832
+ t && (t.tag.addInlined("style", "css"), t.tag.addAttribute("style", "css"));
833
+ }(o), function(e) {
834
+ var t = /("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/, t = (e.languages.css.selector = { pattern: e.languages.css.selector.pattern, lookbehind: !0, inside: t = { "pseudo-element": /:(?:after|before|first-letter|first-line|selection)|::[-\w]+/, "pseudo-class": /:[-\w]+/, class: /\.[-\w]+/, id: /#[-\w]+/, attribute: { pattern: RegExp(`\\[(?:[^[\\]"']|` + t.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": [t, { 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 = t, 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 }), r = { pattern: /(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/, lookbehind: !0 };
835
+ 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: t, number: r, function: /[\w-]+(?=\()/, punctuation: /[(),]/ } }], entity: /\\[\da-f]{1,8}/i, unit: t, number: r });
836
+ }(o), function(e) {
837
+ var t = /[*&][^\s[\]{},]+/, r = /!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/, l = "(?:" + r.source + "(?:[ ]+" + t.source + ")?|" + t.source + "(?:[ ]+" + r.source + ")?)", i = /(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g, function() {
838
+ return /[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source;
839
+ }), b = /"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;
840
+ function c(d, p) {
841
+ p = (p || "").replace(/m/g, "") + "m";
842
+ var y = /([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g, function() {
843
+ return l;
844
+ }).replace(/<<value>>/g, function() {
845
+ return d;
846
+ });
847
+ return RegExp(y, p);
848
+ }
849
+ 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() {
850
+ return l;
851
+ })), lookbehind: !0, alias: "string" }, comment: /#.*/, key: { pattern: RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g, function() {
852
+ return l;
853
+ }).replace(/<<key>>/g, function() {
854
+ return "(?:" + i + "|" + b + ")";
855
+ })), lookbehind: !0, greedy: !0, alias: "atrule" }, directive: { pattern: /(^[ \t]*)%.+/m, lookbehind: !0, alias: "important" }, datetime: { pattern: c(/\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: c(/false|true/.source, "i"), lookbehind: !0, alias: "important" }, null: { pattern: c(/null|~/.source, "i"), lookbehind: !0, alias: "important" }, string: { pattern: c(b), lookbehind: !0, greedy: !0 }, number: { pattern: c(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source, "i"), lookbehind: !0 }, tag: r, important: t, punctuation: /---|[:[\]{}\-,|>?]|\.\.\./ }, e.languages.yml = e.languages.yaml;
856
+ }(o), function(e) {
857
+ var t = /(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;
858
+ function r(y) {
859
+ return y = y.replace(/<inner>/g, function() {
860
+ return t;
861
+ }), RegExp(/((?:^|[^\\])(?:\\{2})*)/.source + "(?:" + y + ")");
862
+ }
863
+ var l = /(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source, i = /\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g, function() {
864
+ return l;
865
+ }), b = /\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source, c = (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("^" + i + b + "(?:" + i + ")*", "m"), inside: { "table-data-rows": { pattern: RegExp("^(" + i + b + ")(?:" + i + ")*$"), lookbehind: !0, inside: { "table-data": { pattern: RegExp(l), inside: e.languages.markdown }, punctuation: /\|/ } }, "table-line": { pattern: RegExp("^(" + i + ")" + b + "$"), lookbehind: !0, inside: { punctuation: /\||:?-{3,}:?/ } }, "table-header-row": { pattern: RegExp("^" + i + "$"), inside: { "table-header": { pattern: RegExp(l), 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: r(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source), lookbehind: !0, greedy: !0, inside: { content: { pattern: /(^..)[\s\S]+(?=..$)/, lookbehind: !0, inside: {} }, punctuation: /\*\*|__/ } }, italic: { pattern: r(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source), lookbehind: !0, greedy: !0, inside: { content: { pattern: /(^.)[\s\S]+(?=.$)/, lookbehind: !0, inside: {} }, punctuation: /[*_]/ } }, strike: { pattern: r(/(~~?)(?:(?!~)<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: r(/!?\[(?:(?!\])<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(y) {
866
+ ["url", "bold", "italic", "strike", "code-snippet"].forEach(function(h) {
867
+ y !== h && (e.languages.markdown[y].inside.content.inside[h] = e.languages.markdown[h]);
868
+ });
869
+ }), e.hooks.add("after-tokenize", function(y) {
870
+ y.language !== "markdown" && y.language !== "md" || function h(g) {
871
+ if (g && typeof g != "string")
872
+ for (var v = 0, x = g.length; v < x; v++) {
873
+ var a, n = g[v];
874
+ n.type !== "code" ? h(n.content) : (a = n.content[1], n = n.content[3], a && n && a.type === "code-language" && n.type === "code-block" && typeof a.content == "string" && (a = a.content.replace(/\b#/g, "sharp").replace(/\b\+\+/g, "pp"), a = "language-" + (a = (/[a-z][\w-]*/i.exec(a) || [""])[0].toLowerCase()), n.alias ? typeof n.alias == "string" ? n.alias = [n.alias, a] : n.alias.push(a) : n.alias = [a]));
875
+ }
876
+ }(y.tokens);
877
+ }), e.hooks.add("wrap", function(y) {
878
+ if (y.type === "code-block") {
879
+ for (var h = "", g = 0, v = y.classes.length; g < v; g++) {
880
+ var x = y.classes[g], x = /language-(.+)/.exec(x);
881
+ if (x) {
882
+ h = x[1];
883
+ break;
884
+ }
885
+ }
886
+ var a, n = e.languages[h];
887
+ n ? y.content = e.highlight(function(s) {
888
+ return s = s.replace(c, ""), s = s.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi, function(f, u) {
889
+ var m;
890
+ return (u = u.toLowerCase())[0] === "#" ? (m = u[1] === "x" ? parseInt(u.slice(2), 16) : Number(u.slice(1)), p(m)) : d[u] || f;
891
+ });
892
+ }(y.content), n, h) : h && h !== "none" && e.plugins.autoloader && (a = "md-" + (/* @__PURE__ */ new Date()).valueOf() + "-" + Math.floor(1e16 * Math.random()), y.attributes.id = a, e.plugins.autoloader.loadLanguages(h, function() {
893
+ var s = document.getElementById(a);
894
+ s && (s.innerHTML = e.highlight(s.textContent, e.languages[h], h));
895
+ }));
896
+ }
897
+ }), RegExp(e.languages.markup.tag.pattern.source, "gi")), d = { amp: "&", lt: "<", gt: ">", quot: '"' }, p = String.fromCodePoint || String.fromCharCode;
898
+ e.languages.md = e.languages.markdown;
899
+ }(o), o.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: o.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+/ }, o.hooks.add("after-tokenize", function(e) {
900
+ if (e.language === "graphql")
901
+ for (var t = e.tokens.filter(function(a) {
902
+ return typeof a != "string" && a.type !== "comment" && a.type !== "scalar";
903
+ }), r = 0; r < t.length; ) {
904
+ var l = t[r++];
905
+ if (l.type === "keyword" && l.content === "mutation") {
906
+ var i = [];
907
+ if (g(["definition-mutation", "punctuation"]) && h(1).content === "(") {
908
+ r += 2;
909
+ var b = v(/^\($/, /^\)$/);
910
+ if (b === -1)
911
+ continue;
912
+ for (; r < b; r++) {
913
+ var c = h(0);
914
+ c.type === "variable" && (x(c, "variable-input"), i.push(c.content));
915
+ }
916
+ r = b + 1;
917
+ }
918
+ if (g(["punctuation", "property-query"]) && h(0).content === "{" && (r++, x(h(0), "property-mutation"), 0 < i.length)) {
919
+ var d = v(/^\{$/, /^\}$/);
920
+ if (d !== -1)
921
+ for (var p = r; p < d; p++) {
922
+ var y = t[p];
923
+ y.type === "variable" && 0 <= i.indexOf(y.content) && x(y, "variable-input");
924
+ }
925
+ }
926
+ }
927
+ }
928
+ function h(a) {
929
+ return t[r + a];
930
+ }
931
+ function g(a, n) {
932
+ n = n || 0;
933
+ for (var s = 0; s < a.length; s++) {
934
+ var f = h(s + n);
935
+ if (!f || f.type !== a[s])
936
+ return;
937
+ }
938
+ return 1;
939
+ }
940
+ function v(a, n) {
941
+ for (var s = 1, f = r; f < t.length; f++) {
942
+ var u = t[f], m = u.content;
943
+ if (u.type === "punctuation" && typeof m == "string") {
944
+ if (a.test(m))
945
+ s++;
946
+ else if (n.test(m) && --s === 0)
947
+ return f;
948
+ }
949
+ }
950
+ return -1;
951
+ }
952
+ function x(a, n) {
953
+ var s = a.alias;
954
+ s ? Array.isArray(s) || (a.alias = s = [s]) : a.alias = s = [], s.push(n);
955
+ }
956
+ }), o.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) {
957
+ var t = e.languages.javascript["template-string"], r = t.pattern.source, l = t.inside.interpolation, i = l.inside["interpolation-punctuation"], b = l.pattern.source;
958
+ function c(g, v) {
959
+ if (e.languages[g])
960
+ return { pattern: RegExp("((?:" + v + ")\\s*)" + r), lookbehind: !0, greedy: !0, inside: { "template-punctuation": { pattern: /^`|`$/, alias: "string" }, "embedded-code": { pattern: /[\s\S]+/, alias: g } } };
961
+ }
962
+ function d(g, v, x) {
963
+ return g = { code: g, grammar: v, language: x }, e.hooks.run("before-tokenize", g), g.tokens = e.tokenize(g.code, g.grammar), e.hooks.run("after-tokenize", g), g.tokens;
964
+ }
965
+ function p(g, v, x) {
966
+ var s = e.tokenize(g, { interpolation: { pattern: RegExp(b), lookbehind: !0 } }), a = 0, n = {}, s = d(s.map(function(u) {
967
+ if (typeof u == "string")
968
+ return u;
969
+ for (var m, w, u = u.content; g.indexOf((w = a++, m = "___" + x.toUpperCase() + "_" + w + "___")) !== -1; )
970
+ ;
971
+ return n[m] = u, m;
972
+ }).join(""), v, x), f = Object.keys(n);
973
+ return a = 0, function u(m) {
974
+ for (var w = 0; w < m.length; w++) {
975
+ if (a >= f.length)
976
+ return;
977
+ var E, S, A, F, T, D, N, L = m[w];
978
+ typeof L == "string" || typeof L.content == "string" ? (E = f[a], (N = (D = typeof L == "string" ? L : L.content).indexOf(E)) !== -1 && (++a, S = D.substring(0, N), T = n[E], A = void 0, (F = {})["interpolation-punctuation"] = i, (F = e.tokenize(T, F)).length === 3 && ((A = [1, 1]).push.apply(A, d(F[1], e.languages.javascript, "javascript")), F.splice.apply(F, A)), A = new e.Token("interpolation", F, l.alias, T), F = D.substring(N + E.length), T = [], S && T.push(S), T.push(A), F && (u(D = [F]), T.push.apply(T, D)), typeof L == "string" ? (m.splice.apply(m, [w, 1].concat(T)), w += T.length - 1) : L.content = T)) : (N = L.content, Array.isArray(N) ? u(N) : u([N]));
979
+ }
980
+ }(s), new e.Token(x, s, "language-" + x, g);
981
+ }
982
+ e.languages.javascript["template-string"] = [c("css", /\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source), c("html", /\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source), c("svg", /\bsvg/.source), c("markdown", /\b(?:markdown|md)/.source), c("graphql", /\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source), c("sql", /\bsql/.source), t].filter(Boolean);
983
+ var y = { javascript: !0, js: !0, typescript: !0, ts: !0, jsx: !0, tsx: !0 };
984
+ function h(g) {
985
+ return typeof g == "string" ? g : Array.isArray(g) ? g.map(h).join("") : h(g.content);
986
+ }
987
+ e.hooks.add("after-tokenize", function(g) {
988
+ g.language in y && function v(x) {
989
+ for (var a = 0, n = x.length; a < n; a++) {
990
+ var s, f, u, m = x[a];
991
+ typeof m != "string" && (s = m.content, Array.isArray(s) ? m.type === "template-string" ? (m = s[1], s.length === 3 && typeof m != "string" && m.type === "embedded-code" && (f = h(m), m = m.alias, m = Array.isArray(m) ? m[0] : m, u = e.languages[m]) && (s[1] = p(f, u, m))) : v(s) : typeof s != "string" && v([s]));
992
+ }
993
+ }(g.tokens);
994
+ });
995
+ }(o), function(e) {
996
+ 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"];
997
+ var t = e.languages.extend("typescript", {});
998
+ delete t["class-name"], e.languages.typescript["class-name"].inside = t, e.languages.insertBefore("typescript", "function", { decorator: { pattern: /@[$\w\xA0-\uFFFF]+/, inside: { at: { pattern: /^@/, alias: "operator" }, function: /^[\s\S]+/ } }, "generic-function": { pattern: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/, greedy: !0, inside: { function: /^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/, generic: { pattern: /<[\s\S]+/, alias: "class-name", inside: t } } } }), e.languages.ts = e.languages.typescript;
999
+ }(o), function(e) {
1000
+ var t = e.languages.javascript, r = /\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source, l = "(@(?:arg|argument|param|property)\\s+(?:" + r + "\\s+)?)";
1001
+ e.languages.jsdoc = e.languages.extend("javadoclike", { parameter: { pattern: RegExp(l + /(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source), lookbehind: !0, inside: { punctuation: /\./ } } }), e.languages.insertBefore("jsdoc", "keyword", { "optional-parameter": { pattern: RegExp(l + /\[(?:(?!\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: t, 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() {
1002
+ return r;
1003
+ })), lookbehind: !0, inside: { punctuation: /\./ } }, { pattern: RegExp("(@[a-z]+\\s+)" + r), lookbehind: !0, inside: { string: t.string, number: t.number, boolean: t.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: t, alias: "language-javascript" } } } }), e.languages.javadoclike.addSupport("javascript", e.languages.jsdoc);
1004
+ }(o), function(e) {
1005
+ 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 });
1006
+ }(o), o.languages.n4js = o.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/ }), o.languages.insertBefore("n4js", "constant", { annotation: { pattern: /@+\w+/, alias: "operator" } }), o.languages.n4jsd = o.languages.n4js, function(e) {
1007
+ function t(c, d) {
1008
+ return RegExp(c.replace(/<ID>/g, function() {
1009
+ return /(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source;
1010
+ }), d);
1011
+ }
1012
+ 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: t(/(\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: t(/(\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: t(/(\.\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" } });
1013
+ for (var r = ["function", "function-variable", "method", "method-variable", "property-access"], l = 0; l < r.length; l++) {
1014
+ var b = r[l], i = e.languages.javascript[b], b = (i = e.util.type(i) === "RegExp" ? e.languages.javascript[b] = { pattern: i } : i).inside || {};
1015
+ (i.inside = b)["maybe-class-name"] = /^[A-Z][\s\S]*/;
1016
+ }
1017
+ }(o), function(e) {
1018
+ var t = e.util.clone(e.languages.javascript), r = /(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source, l = /(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source, i = /(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;
1019
+ function b(p, y) {
1020
+ return p = p.replace(/<S>/g, function() {
1021
+ return r;
1022
+ }).replace(/<BRACES>/g, function() {
1023
+ return l;
1024
+ }).replace(/<SPREAD>/g, function() {
1025
+ return i;
1026
+ }), RegExp(p, y);
1027
+ }
1028
+ i = b(i).source, e.languages.jsx = e.languages.extend("markup", t), e.languages.jsx.tag.pattern = b(/<\/?(?:[\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 = t.comment, e.languages.insertBefore("inside", "attr-name", { spread: { pattern: b(/<SPREAD>/.source), inside: e.languages.jsx } }, e.languages.jsx.tag), e.languages.insertBefore("inside", "special-attr", { script: { pattern: b(/=<BRACES>/.source), alias: "language-javascript", inside: { "script-punctuation": { pattern: /^=(?=\{)/, alias: "punctuation" }, rest: e.languages.jsx } } }, e.languages.jsx.tag);
1029
+ function c(p) {
1030
+ for (var y = [], h = 0; h < p.length; h++) {
1031
+ var g = p[h], v = !1;
1032
+ typeof g != "string" && (g.type === "tag" && g.content[0] && g.content[0].type === "tag" ? g.content[0].content[0].content === "</" ? 0 < y.length && y[y.length - 1].tagName === d(g.content[0].content[1]) && y.pop() : g.content[g.content.length - 1].content !== "/>" && y.push({ tagName: d(g.content[0].content[1]), openedBraces: 0 }) : 0 < y.length && g.type === "punctuation" && g.content === "{" ? y[y.length - 1].openedBraces++ : 0 < y.length && 0 < y[y.length - 1].openedBraces && g.type === "punctuation" && g.content === "}" ? y[y.length - 1].openedBraces-- : v = !0), (v || typeof g == "string") && 0 < y.length && y[y.length - 1].openedBraces === 0 && (v = d(g), h < p.length - 1 && (typeof p[h + 1] == "string" || p[h + 1].type === "plain-text") && (v += d(p[h + 1]), p.splice(h + 1, 1)), 0 < h && (typeof p[h - 1] == "string" || p[h - 1].type === "plain-text") && (v = d(p[h - 1]) + v, p.splice(h - 1, 1), h--), p[h] = new e.Token("plain-text", v, null, v)), g.content && typeof g.content != "string" && c(g.content);
1033
+ }
1034
+ }
1035
+ var d = function(p) {
1036
+ return p ? typeof p == "string" ? p : typeof p.content == "string" ? p.content : p.content.map(d).join("") : "";
1037
+ };
1038
+ e.hooks.add("after-tokenize", function(p) {
1039
+ p.language !== "jsx" && p.language !== "tsx" || c(p.tokens);
1040
+ });
1041
+ }(o), function(e) {
1042
+ var t = e.util.clone(e.languages.typescript), t = (e.languages.tsx = e.languages.extend("jsx", t), delete e.languages.tsx.parameter, delete e.languages.tsx["literal-property"], e.languages.tsx.tag);
1043
+ t.pattern = RegExp(/(^|[^\w$]|(?=<\/))/.source + "(?:" + t.pattern.source + ")", t.pattern.flags), t.lookbehind = !0;
1044
+ }(o), o.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: /[{}[\]();,.:\\]/ }, o.languages.swift["string-literal"].forEach(function(e) {
1045
+ e.inside.interpolation.inside = o.languages.swift;
1046
+ }), function(e) {
1047
+ 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"];
1048
+ var t = { "interpolation-punctuation": { pattern: /^\$\{?|\}$/, alias: "punctuation" }, expression: { pattern: /[\s\S]+/, inside: e.languages.kotlin } };
1049
+ e.languages.insertBefore("kotlin", "string", { "string-literal": [{ pattern: /"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/, alias: "multiline", inside: { interpolation: { pattern: /\$(?:[a-z_]\w*|\{[^{}]*\})/i, inside: t }, string: /[\s\S]+/ } }, { pattern: /"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/, alias: "singleline", inside: { interpolation: { pattern: /((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i, lookbehind: !0, inside: t }, 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;
1050
+ }(o), o.languages.c = o.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|[?:~]|[-+*/%&|^!=<>]=?/ }), o.languages.insertBefore("c", "string", { char: { pattern: /'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/, greedy: !0 } }), o.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 }, o.languages.c.string], char: o.languages.c.char, comment: o.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: o.languages.c } } } }), o.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 o.languages.c.boolean, o.languages.objectivec = o.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 o.languages.objectivec["class-name"], o.languages.objc = o.languages.objectivec, o.languages.reason = o.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/ }), o.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 o.languages.reason.function, function(e) {
1051
+ for (var t = /\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source, r = 0; r < 2; r++)
1052
+ t = t.replace(/<self>/g, function() {
1053
+ return t;
1054
+ });
1055
+ t = t.replace(/<self>/g, function() {
1056
+ return /[^\s\S]/.source;
1057
+ }), e.languages.rust = { comment: [{ pattern: RegExp(/(^|[^\\])/.source + t), lookbehind: !0, greedy: !0 }, { pattern: /(^|[^\\:])\/\/.*/, lookbehind: !0, greedy: !0 }], string: { pattern: /b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/, greedy: !0 }, char: { pattern: /b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/, greedy: !0 }, attribute: { pattern: /#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/, greedy: !0, alias: "attr-name", inside: { string: null } }, "closure-params": { pattern: /([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/, lookbehind: !0, greedy: !0, inside: { "closure-punctuation": { pattern: /^\||\|$/, alias: "punctuation" }, rest: null } }, "lifetime-annotation": { pattern: /'\w+/, alias: "symbol" }, "fragment-specifier": { pattern: /(\$\w+:)[a-z]+/, lookbehind: !0, alias: "punctuation" }, variable: /\$\w+/, "function-definition": { pattern: /(\bfn\s+)\w+/, lookbehind: !0, alias: "function" }, "type-definition": { pattern: /(\b(?:enum|struct|trait|type|union)\s+)\w+/, lookbehind: !0, alias: "class-name" }, "module-declaration": [{ pattern: /(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/, lookbehind: !0, alias: "namespace" }, { pattern: /(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/, lookbehind: !0, alias: "namespace", inside: { punctuation: /::/ } }], keyword: [/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/, /\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/], function: /\b[a-z_]\w*(?=\s*(?:::\s*<|\())/, macro: { pattern: /\b\w+!/, alias: "property" }, constant: /\b[A-Z_][A-Z_\d]+\b/, "class-name": /\b[A-Z]\w*\b/, namespace: { pattern: /(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/, inside: { punctuation: /::/ } }, number: /\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/, boolean: /\b(?:false|true)\b/, punctuation: /->|\.\.=|\.{1,3}|::|[{}[\];(),:]/, operator: /[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/ }, e.languages.rust["closure-params"].inside.rest = e.languages.rust, e.languages.rust.attribute.inside.string = e.languages.rust.string;
1058
+ }(o), o.languages.go = o.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/ }), o.languages.insertBefore("go", "string", { char: { pattern: /'(?:\\.|[^'\\\r\n]){0,10}'/, greedy: !0 } }), delete o.languages.go["class-name"], function(e) {
1059
+ var t = /\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/, r = /\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g, function() {
1060
+ return t.source;
1061
+ });
1062
+ 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() {
1063
+ return t.source;
1064
+ })), 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: t, 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() {
1065
+ return r;
1066
+ }) + ")"), 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"]);
1067
+ }(o), o.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: /[{}[\];(),.:]/ }, o.languages.python["string-interpolation"].inside.interpolation.inside.rest = o.languages.python, o.languages.py = o.languages.python;
1068
+ var ae = {};
1069
+ Ze(ae, {
1070
+ dracula: () => Ve,
1071
+ duotoneDark: () => Xe,
1072
+ duotoneLight: () => Je,
1073
+ github: () => tt,
1074
+ jettwaveDark: () => xt,
1075
+ jettwaveLight: () => At,
1076
+ nightOwl: () => nt,
1077
+ nightOwlLight: () => ot,
1078
+ oceanicNext: () => lt,
1079
+ okaidia: () => ut,
1080
+ oneDark: () => _t,
1081
+ oneLight: () => Tt,
1082
+ palenight: () => pt,
1083
+ shadesOfPurple: () => gt,
1084
+ synthwave84: () => ft,
1085
+ ultramin: () => mt,
1086
+ vsDark: () => we,
1087
+ vsLight: () => kt
1088
+ });
1089
+ var Ye = {
1090
+ plain: {
1091
+ color: "#F8F8F2",
1092
+ backgroundColor: "#282A36"
1093
+ },
1094
+ styles: [
1095
+ {
1096
+ types: ["prolog", "constant", "builtin"],
1097
+ style: {
1098
+ color: "rgb(189, 147, 249)"
1099
+ }
1100
+ },
1101
+ {
1102
+ types: ["inserted", "function"],
1103
+ style: {
1104
+ color: "rgb(80, 250, 123)"
1105
+ }
1106
+ },
1107
+ {
1108
+ types: ["deleted"],
1109
+ style: {
1110
+ color: "rgb(255, 85, 85)"
1111
+ }
1112
+ },
1113
+ {
1114
+ types: ["changed"],
1115
+ style: {
1116
+ color: "rgb(255, 184, 108)"
1117
+ }
1118
+ },
1119
+ {
1120
+ types: ["punctuation", "symbol"],
1121
+ style: {
1122
+ color: "rgb(248, 248, 242)"
1123
+ }
1124
+ },
1125
+ {
1126
+ types: ["string", "char", "tag", "selector"],
1127
+ style: {
1128
+ color: "rgb(255, 121, 198)"
1129
+ }
1130
+ },
1131
+ {
1132
+ types: ["keyword", "variable"],
1133
+ style: {
1134
+ color: "rgb(189, 147, 249)",
1135
+ fontStyle: "italic"
1136
+ }
1137
+ },
1138
+ {
1139
+ types: ["comment"],
1140
+ style: {
1141
+ color: "rgb(98, 114, 164)"
1142
+ }
1143
+ },
1144
+ {
1145
+ types: ["attr-name"],
1146
+ style: {
1147
+ color: "rgb(241, 250, 140)"
1148
+ }
1149
+ }
1150
+ ]
1151
+ }, Ve = Ye, Ke = {
1152
+ plain: {
1153
+ backgroundColor: "#2a2734",
1154
+ color: "#9a86fd"
1155
+ },
1156
+ styles: [
1157
+ {
1158
+ types: ["comment", "prolog", "doctype", "cdata", "punctuation"],
1159
+ style: {
1160
+ color: "#6c6783"
1161
+ }
1162
+ },
1163
+ {
1164
+ types: ["namespace"],
1165
+ style: {
1166
+ opacity: 0.7
1167
+ }
1168
+ },
1169
+ {
1170
+ types: ["tag", "operator", "number"],
1171
+ style: {
1172
+ color: "#e09142"
1173
+ }
1174
+ },
1175
+ {
1176
+ types: ["property", "function"],
1177
+ style: {
1178
+ color: "#9a86fd"
1179
+ }
1180
+ },
1181
+ {
1182
+ types: ["tag-id", "selector", "atrule-id"],
1183
+ style: {
1184
+ color: "#eeebff"
1185
+ }
1186
+ },
1187
+ {
1188
+ types: ["attr-name"],
1189
+ style: {
1190
+ color: "#c4b9fe"
1191
+ }
1192
+ },
1193
+ {
1194
+ types: [
1195
+ "boolean",
1196
+ "string",
1197
+ "entity",
1198
+ "url",
1199
+ "attr-value",
1200
+ "keyword",
1201
+ "control",
1202
+ "directive",
1203
+ "unit",
1204
+ "statement",
1205
+ "regex",
1206
+ "atrule",
1207
+ "placeholder",
1208
+ "variable"
1209
+ ],
1210
+ style: {
1211
+ color: "#ffcc99"
1212
+ }
1213
+ },
1214
+ {
1215
+ types: ["deleted"],
1216
+ style: {
1217
+ textDecorationLine: "line-through"
1218
+ }
1219
+ },
1220
+ {
1221
+ types: ["inserted"],
1222
+ style: {
1223
+ textDecorationLine: "underline"
1224
+ }
1225
+ },
1226
+ {
1227
+ types: ["italic"],
1228
+ style: {
1229
+ fontStyle: "italic"
1230
+ }
1231
+ },
1232
+ {
1233
+ types: ["important", "bold"],
1234
+ style: {
1235
+ fontWeight: "bold"
1236
+ }
1237
+ },
1238
+ {
1239
+ types: ["important"],
1240
+ style: {
1241
+ color: "#c4b9fe"
1242
+ }
1243
+ }
1244
+ ]
1245
+ }, Xe = Ke, Qe = {
1246
+ plain: {
1247
+ backgroundColor: "#faf8f5",
1248
+ color: "#728fcb"
1249
+ },
1250
+ styles: [
1251
+ {
1252
+ types: ["comment", "prolog", "doctype", "cdata", "punctuation"],
1253
+ style: {
1254
+ color: "#b6ad9a"
1255
+ }
1256
+ },
1257
+ {
1258
+ types: ["namespace"],
1259
+ style: {
1260
+ opacity: 0.7
1261
+ }
1262
+ },
1263
+ {
1264
+ types: ["tag", "operator", "number"],
1265
+ style: {
1266
+ color: "#063289"
1267
+ }
1268
+ },
1269
+ {
1270
+ types: ["property", "function"],
1271
+ style: {
1272
+ color: "#b29762"
1273
+ }
1274
+ },
1275
+ {
1276
+ types: ["tag-id", "selector", "atrule-id"],
1277
+ style: {
1278
+ color: "#2d2006"
1279
+ }
1280
+ },
1281
+ {
1282
+ types: ["attr-name"],
1283
+ style: {
1284
+ color: "#896724"
1285
+ }
1286
+ },
1287
+ {
1288
+ types: [
1289
+ "boolean",
1290
+ "string",
1291
+ "entity",
1292
+ "url",
1293
+ "attr-value",
1294
+ "keyword",
1295
+ "control",
1296
+ "directive",
1297
+ "unit",
1298
+ "statement",
1299
+ "regex",
1300
+ "atrule"
1301
+ ],
1302
+ style: {
1303
+ color: "#728fcb"
1304
+ }
1305
+ },
1306
+ {
1307
+ types: ["placeholder", "variable"],
1308
+ style: {
1309
+ color: "#93abdc"
1310
+ }
1311
+ },
1312
+ {
1313
+ types: ["deleted"],
1314
+ style: {
1315
+ textDecorationLine: "line-through"
1316
+ }
1317
+ },
1318
+ {
1319
+ types: ["inserted"],
1320
+ style: {
1321
+ textDecorationLine: "underline"
1322
+ }
1323
+ },
1324
+ {
1325
+ types: ["italic"],
1326
+ style: {
1327
+ fontStyle: "italic"
1328
+ }
1329
+ },
1330
+ {
1331
+ types: ["important", "bold"],
1332
+ style: {
1333
+ fontWeight: "bold"
1334
+ }
1335
+ },
1336
+ {
1337
+ types: ["important"],
1338
+ style: {
1339
+ color: "#896724"
1340
+ }
1341
+ }
1342
+ ]
1343
+ }, Je = Qe, et = {
1344
+ plain: {
1345
+ color: "#393A34",
1346
+ backgroundColor: "#f6f8fa"
1347
+ },
1348
+ styles: [
1349
+ {
1350
+ types: ["comment", "prolog", "doctype", "cdata"],
1351
+ style: {
1352
+ color: "#999988",
1353
+ fontStyle: "italic"
1354
+ }
1355
+ },
1356
+ {
1357
+ types: ["namespace"],
1358
+ style: {
1359
+ opacity: 0.7
1360
+ }
1361
+ },
1362
+ {
1363
+ types: ["string", "attr-value"],
1364
+ style: {
1365
+ color: "#e3116c"
1366
+ }
1367
+ },
1368
+ {
1369
+ types: ["punctuation", "operator"],
1370
+ style: {
1371
+ color: "#393A34"
1372
+ }
1373
+ },
1374
+ {
1375
+ types: [
1376
+ "entity",
1377
+ "url",
1378
+ "symbol",
1379
+ "number",
1380
+ "boolean",
1381
+ "variable",
1382
+ "constant",
1383
+ "property",
1384
+ "regex",
1385
+ "inserted"
1386
+ ],
1387
+ style: {
1388
+ color: "#36acaa"
1389
+ }
1390
+ },
1391
+ {
1392
+ types: ["atrule", "keyword", "attr-name", "selector"],
1393
+ style: {
1394
+ color: "#00a4db"
1395
+ }
1396
+ },
1397
+ {
1398
+ types: ["function", "deleted", "tag"],
1399
+ style: {
1400
+ color: "#d73a49"
1401
+ }
1402
+ },
1403
+ {
1404
+ types: ["function-variable"],
1405
+ style: {
1406
+ color: "#6f42c1"
1407
+ }
1408
+ },
1409
+ {
1410
+ types: ["tag", "selector", "keyword"],
1411
+ style: {
1412
+ color: "#00009f"
1413
+ }
1414
+ }
1415
+ ]
1416
+ }, tt = et, rt = {
1417
+ plain: {
1418
+ color: "#d6deeb",
1419
+ backgroundColor: "#011627"
1420
+ },
1421
+ styles: [
1422
+ {
1423
+ types: ["changed"],
1424
+ style: {
1425
+ color: "rgb(162, 191, 252)",
1426
+ fontStyle: "italic"
1427
+ }
1428
+ },
1429
+ {
1430
+ types: ["deleted"],
1431
+ style: {
1432
+ color: "rgba(239, 83, 80, 0.56)",
1433
+ fontStyle: "italic"
1434
+ }
1435
+ },
1436
+ {
1437
+ types: ["inserted", "attr-name"],
1438
+ style: {
1439
+ color: "rgb(173, 219, 103)",
1440
+ fontStyle: "italic"
1441
+ }
1442
+ },
1443
+ {
1444
+ types: ["comment"],
1445
+ style: {
1446
+ color: "rgb(99, 119, 119)",
1447
+ fontStyle: "italic"
1448
+ }
1449
+ },
1450
+ {
1451
+ types: ["string", "url"],
1452
+ style: {
1453
+ color: "rgb(173, 219, 103)"
1454
+ }
1455
+ },
1456
+ {
1457
+ types: ["variable"],
1458
+ style: {
1459
+ color: "rgb(214, 222, 235)"
1460
+ }
1461
+ },
1462
+ {
1463
+ types: ["number"],
1464
+ style: {
1465
+ color: "rgb(247, 140, 108)"
1466
+ }
1467
+ },
1468
+ {
1469
+ types: ["builtin", "char", "constant", "function"],
1470
+ style: {
1471
+ color: "rgb(130, 170, 255)"
1472
+ }
1473
+ },
1474
+ {
1475
+ // This was manually added after the auto-generation
1476
+ // so that punctuations are not italicised
1477
+ types: ["punctuation"],
1478
+ style: {
1479
+ color: "rgb(199, 146, 234)"
1480
+ }
1481
+ },
1482
+ {
1483
+ types: ["selector", "doctype"],
1484
+ style: {
1485
+ color: "rgb(199, 146, 234)",
1486
+ fontStyle: "italic"
1487
+ }
1488
+ },
1489
+ {
1490
+ types: ["class-name"],
1491
+ style: {
1492
+ color: "rgb(255, 203, 139)"
1493
+ }
1494
+ },
1495
+ {
1496
+ types: ["tag", "operator", "keyword"],
1497
+ style: {
1498
+ color: "rgb(127, 219, 202)"
1499
+ }
1500
+ },
1501
+ {
1502
+ types: ["boolean"],
1503
+ style: {
1504
+ color: "rgb(255, 88, 116)"
1505
+ }
1506
+ },
1507
+ {
1508
+ types: ["property"],
1509
+ style: {
1510
+ color: "rgb(128, 203, 196)"
1511
+ }
1512
+ },
1513
+ {
1514
+ types: ["namespace"],
1515
+ style: {
1516
+ color: "rgb(178, 204, 214)"
1517
+ }
1518
+ }
1519
+ ]
1520
+ }, nt = rt, at = {
1521
+ plain: {
1522
+ color: "#403f53",
1523
+ backgroundColor: "#FBFBFB"
1524
+ },
1525
+ styles: [
1526
+ {
1527
+ types: ["changed"],
1528
+ style: {
1529
+ color: "rgb(162, 191, 252)",
1530
+ fontStyle: "italic"
1531
+ }
1532
+ },
1533
+ {
1534
+ types: ["deleted"],
1535
+ style: {
1536
+ color: "rgba(239, 83, 80, 0.56)",
1537
+ fontStyle: "italic"
1538
+ }
1539
+ },
1540
+ {
1541
+ types: ["inserted", "attr-name"],
1542
+ style: {
1543
+ color: "rgb(72, 118, 214)",
1544
+ fontStyle: "italic"
1545
+ }
1546
+ },
1547
+ {
1548
+ types: ["comment"],
1549
+ style: {
1550
+ color: "rgb(152, 159, 177)",
1551
+ fontStyle: "italic"
1552
+ }
1553
+ },
1554
+ {
1555
+ types: ["string", "builtin", "char", "constant", "url"],
1556
+ style: {
1557
+ color: "rgb(72, 118, 214)"
1558
+ }
1559
+ },
1560
+ {
1561
+ types: ["variable"],
1562
+ style: {
1563
+ color: "rgb(201, 103, 101)"
1564
+ }
1565
+ },
1566
+ {
1567
+ types: ["number"],
1568
+ style: {
1569
+ color: "rgb(170, 9, 130)"
1570
+ }
1571
+ },
1572
+ {
1573
+ // This was manually added after the auto-generation
1574
+ // so that punctuations are not italicised
1575
+ types: ["punctuation"],
1576
+ style: {
1577
+ color: "rgb(153, 76, 195)"
1578
+ }
1579
+ },
1580
+ {
1581
+ types: ["function", "selector", "doctype"],
1582
+ style: {
1583
+ color: "rgb(153, 76, 195)",
1584
+ fontStyle: "italic"
1585
+ }
1586
+ },
1587
+ {
1588
+ types: ["class-name"],
1589
+ style: {
1590
+ color: "rgb(17, 17, 17)"
1591
+ }
1592
+ },
1593
+ {
1594
+ types: ["tag"],
1595
+ style: {
1596
+ color: "rgb(153, 76, 195)"
1597
+ }
1598
+ },
1599
+ {
1600
+ types: ["operator", "property", "keyword", "namespace"],
1601
+ style: {
1602
+ color: "rgb(12, 150, 155)"
1603
+ }
1604
+ },
1605
+ {
1606
+ types: ["boolean"],
1607
+ style: {
1608
+ color: "rgb(188, 84, 84)"
1609
+ }
1610
+ }
1611
+ ]
1612
+ }, ot = at, R = {
1613
+ char: "#D8DEE9",
1614
+ comment: "#999999",
1615
+ keyword: "#c5a5c5",
1616
+ primitive: "#5a9bcf",
1617
+ string: "#8dc891",
1618
+ variable: "#d7deea",
1619
+ boolean: "#ff8b50",
1620
+ punctuation: "#5FB3B3",
1621
+ tag: "#fc929e",
1622
+ function: "#79b6f2",
1623
+ className: "#FAC863",
1624
+ method: "#6699CC",
1625
+ operator: "#fc929e"
1626
+ }, st = {
1627
+ plain: {
1628
+ backgroundColor: "#282c34",
1629
+ color: "#ffffff"
1630
+ },
1631
+ styles: [
1632
+ {
1633
+ types: ["attr-name"],
1634
+ style: {
1635
+ color: R.keyword
1636
+ }
1637
+ },
1638
+ {
1639
+ types: ["attr-value"],
1640
+ style: {
1641
+ color: R.string
1642
+ }
1643
+ },
1644
+ {
1645
+ types: [
1646
+ "comment",
1647
+ "block-comment",
1648
+ "prolog",
1649
+ "doctype",
1650
+ "cdata",
1651
+ "shebang"
1652
+ ],
1653
+ style: {
1654
+ color: R.comment
1655
+ }
1656
+ },
1657
+ {
1658
+ types: [
1659
+ "property",
1660
+ "number",
1661
+ "function-name",
1662
+ "constant",
1663
+ "symbol",
1664
+ "deleted"
1665
+ ],
1666
+ style: {
1667
+ color: R.primitive
1668
+ }
1669
+ },
1670
+ {
1671
+ types: ["boolean"],
1672
+ style: {
1673
+ color: R.boolean
1674
+ }
1675
+ },
1676
+ {
1677
+ types: ["tag"],
1678
+ style: {
1679
+ color: R.tag
1680
+ }
1681
+ },
1682
+ {
1683
+ types: ["string"],
1684
+ style: {
1685
+ color: R.string
1686
+ }
1687
+ },
1688
+ {
1689
+ types: ["punctuation"],
1690
+ style: {
1691
+ color: R.string
1692
+ }
1693
+ },
1694
+ {
1695
+ types: ["selector", "char", "builtin", "inserted"],
1696
+ style: {
1697
+ color: R.char
1698
+ }
1699
+ },
1700
+ {
1701
+ types: ["function"],
1702
+ style: {
1703
+ color: R.function
1704
+ }
1705
+ },
1706
+ {
1707
+ types: ["operator", "entity", "url", "variable"],
1708
+ style: {
1709
+ color: R.variable
1710
+ }
1711
+ },
1712
+ {
1713
+ types: ["keyword"],
1714
+ style: {
1715
+ color: R.keyword
1716
+ }
1717
+ },
1718
+ {
1719
+ types: ["atrule", "class-name"],
1720
+ style: {
1721
+ color: R.className
1722
+ }
1723
+ },
1724
+ {
1725
+ types: ["important"],
1726
+ style: {
1727
+ fontWeight: "400"
1728
+ }
1729
+ },
1730
+ {
1731
+ types: ["bold"],
1732
+ style: {
1733
+ fontWeight: "bold"
1734
+ }
1735
+ },
1736
+ {
1737
+ types: ["italic"],
1738
+ style: {
1739
+ fontStyle: "italic"
1740
+ }
1741
+ },
1742
+ {
1743
+ types: ["namespace"],
1744
+ style: {
1745
+ opacity: 0.7
1746
+ }
1747
+ }
1748
+ ]
1749
+ }, lt = st, it = {
1750
+ plain: {
1751
+ color: "#f8f8f2",
1752
+ backgroundColor: "#272822"
1753
+ },
1754
+ styles: [
1755
+ {
1756
+ types: ["changed"],
1757
+ style: {
1758
+ color: "rgb(162, 191, 252)",
1759
+ fontStyle: "italic"
1760
+ }
1761
+ },
1762
+ {
1763
+ types: ["deleted"],
1764
+ style: {
1765
+ color: "#f92672",
1766
+ fontStyle: "italic"
1767
+ }
1768
+ },
1769
+ {
1770
+ types: ["inserted"],
1771
+ style: {
1772
+ color: "rgb(173, 219, 103)",
1773
+ fontStyle: "italic"
1774
+ }
1775
+ },
1776
+ {
1777
+ types: ["comment"],
1778
+ style: {
1779
+ color: "#8292a2",
1780
+ fontStyle: "italic"
1781
+ }
1782
+ },
1783
+ {
1784
+ types: ["string", "url"],
1785
+ style: {
1786
+ color: "#a6e22e"
1787
+ }
1788
+ },
1789
+ {
1790
+ types: ["variable"],
1791
+ style: {
1792
+ color: "#f8f8f2"
1793
+ }
1794
+ },
1795
+ {
1796
+ types: ["number"],
1797
+ style: {
1798
+ color: "#ae81ff"
1799
+ }
1800
+ },
1801
+ {
1802
+ types: ["builtin", "char", "constant", "function", "class-name"],
1803
+ style: {
1804
+ color: "#e6db74"
1805
+ }
1806
+ },
1807
+ {
1808
+ types: ["punctuation"],
1809
+ style: {
1810
+ color: "#f8f8f2"
1811
+ }
1812
+ },
1813
+ {
1814
+ types: ["selector", "doctype"],
1815
+ style: {
1816
+ color: "#a6e22e",
1817
+ fontStyle: "italic"
1818
+ }
1819
+ },
1820
+ {
1821
+ types: ["tag", "operator", "keyword"],
1822
+ style: {
1823
+ color: "#66d9ef"
1824
+ }
1825
+ },
1826
+ {
1827
+ types: ["boolean"],
1828
+ style: {
1829
+ color: "#ae81ff"
1830
+ }
1831
+ },
1832
+ {
1833
+ types: ["namespace"],
1834
+ style: {
1835
+ color: "rgb(178, 204, 214)",
1836
+ opacity: 0.7
1837
+ }
1838
+ },
1839
+ {
1840
+ types: ["tag", "property"],
1841
+ style: {
1842
+ color: "#f92672"
1843
+ }
1844
+ },
1845
+ {
1846
+ types: ["attr-name"],
1847
+ style: {
1848
+ color: "#a6e22e !important"
1849
+ }
1850
+ },
1851
+ {
1852
+ types: ["doctype"],
1853
+ style: {
1854
+ color: "#8292a2"
1855
+ }
1856
+ },
1857
+ {
1858
+ types: ["rule"],
1859
+ style: {
1860
+ color: "#e6db74"
1861
+ }
1862
+ }
1863
+ ]
1864
+ }, ut = it, ct = {
1865
+ plain: {
1866
+ color: "#bfc7d5",
1867
+ backgroundColor: "#292d3e"
1868
+ },
1869
+ styles: [
1870
+ {
1871
+ types: ["comment"],
1872
+ style: {
1873
+ color: "rgb(105, 112, 152)",
1874
+ fontStyle: "italic"
1875
+ }
1876
+ },
1877
+ {
1878
+ types: ["string", "inserted"],
1879
+ style: {
1880
+ color: "rgb(195, 232, 141)"
1881
+ }
1882
+ },
1883
+ {
1884
+ types: ["number"],
1885
+ style: {
1886
+ color: "rgb(247, 140, 108)"
1887
+ }
1888
+ },
1889
+ {
1890
+ types: ["builtin", "char", "constant", "function"],
1891
+ style: {
1892
+ color: "rgb(130, 170, 255)"
1893
+ }
1894
+ },
1895
+ {
1896
+ types: ["punctuation", "selector"],
1897
+ style: {
1898
+ color: "rgb(199, 146, 234)"
1899
+ }
1900
+ },
1901
+ {
1902
+ types: ["variable"],
1903
+ style: {
1904
+ color: "rgb(191, 199, 213)"
1905
+ }
1906
+ },
1907
+ {
1908
+ types: ["class-name", "attr-name"],
1909
+ style: {
1910
+ color: "rgb(255, 203, 107)"
1911
+ }
1912
+ },
1913
+ {
1914
+ types: ["tag", "deleted"],
1915
+ style: {
1916
+ color: "rgb(255, 85, 114)"
1917
+ }
1918
+ },
1919
+ {
1920
+ types: ["operator"],
1921
+ style: {
1922
+ color: "rgb(137, 221, 255)"
1923
+ }
1924
+ },
1925
+ {
1926
+ types: ["boolean"],
1927
+ style: {
1928
+ color: "rgb(255, 88, 116)"
1929
+ }
1930
+ },
1931
+ {
1932
+ types: ["keyword"],
1933
+ style: {
1934
+ fontStyle: "italic"
1935
+ }
1936
+ },
1937
+ {
1938
+ types: ["doctype"],
1939
+ style: {
1940
+ color: "rgb(199, 146, 234)",
1941
+ fontStyle: "italic"
1942
+ }
1943
+ },
1944
+ {
1945
+ types: ["namespace"],
1946
+ style: {
1947
+ color: "rgb(178, 204, 214)"
1948
+ }
1949
+ },
1950
+ {
1951
+ types: ["url"],
1952
+ style: {
1953
+ color: "rgb(221, 221, 221)"
1954
+ }
1955
+ }
1956
+ ]
1957
+ }, pt = ct, dt = {
1958
+ plain: {
1959
+ color: "#9EFEFF",
1960
+ backgroundColor: "#2D2A55"
1961
+ },
1962
+ styles: [
1963
+ {
1964
+ types: ["changed"],
1965
+ style: {
1966
+ color: "rgb(255, 238, 128)"
1967
+ }
1968
+ },
1969
+ {
1970
+ types: ["deleted"],
1971
+ style: {
1972
+ color: "rgba(239, 83, 80, 0.56)"
1973
+ }
1974
+ },
1975
+ {
1976
+ types: ["inserted"],
1977
+ style: {
1978
+ color: "rgb(173, 219, 103)"
1979
+ }
1980
+ },
1981
+ {
1982
+ types: ["comment"],
1983
+ style: {
1984
+ color: "rgb(179, 98, 255)",
1985
+ fontStyle: "italic"
1986
+ }
1987
+ },
1988
+ {
1989
+ types: ["punctuation"],
1990
+ style: {
1991
+ color: "rgb(255, 255, 255)"
1992
+ }
1993
+ },
1994
+ {
1995
+ types: ["constant"],
1996
+ style: {
1997
+ color: "rgb(255, 98, 140)"
1998
+ }
1999
+ },
2000
+ {
2001
+ types: ["string", "url"],
2002
+ style: {
2003
+ color: "rgb(165, 255, 144)"
2004
+ }
2005
+ },
2006
+ {
2007
+ types: ["variable"],
2008
+ style: {
2009
+ color: "rgb(255, 238, 128)"
2010
+ }
2011
+ },
2012
+ {
2013
+ types: ["number", "boolean"],
2014
+ style: {
2015
+ color: "rgb(255, 98, 140)"
2016
+ }
2017
+ },
2018
+ {
2019
+ types: ["attr-name"],
2020
+ style: {
2021
+ color: "rgb(255, 180, 84)"
2022
+ }
2023
+ },
2024
+ {
2025
+ types: [
2026
+ "keyword",
2027
+ "operator",
2028
+ "property",
2029
+ "namespace",
2030
+ "tag",
2031
+ "selector",
2032
+ "doctype"
2033
+ ],
2034
+ style: {
2035
+ color: "rgb(255, 157, 0)"
2036
+ }
2037
+ },
2038
+ {
2039
+ types: ["builtin", "char", "constant", "function", "class-name"],
2040
+ style: {
2041
+ color: "rgb(250, 208, 0)"
2042
+ }
2043
+ }
2044
+ ]
2045
+ }, gt = dt, yt = {
2046
+ plain: {
2047
+ backgroundColor: "linear-gradient(to bottom, #2a2139 75%, #34294f)",
2048
+ backgroundImage: "#34294f",
2049
+ color: "#f92aad",
2050
+ textShadow: "0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"
2051
+ },
2052
+ styles: [
2053
+ {
2054
+ types: ["comment", "block-comment", "prolog", "doctype", "cdata"],
2055
+ style: {
2056
+ color: "#495495",
2057
+ fontStyle: "italic"
2058
+ }
2059
+ },
2060
+ {
2061
+ types: ["punctuation"],
2062
+ style: {
2063
+ color: "#ccc"
2064
+ }
2065
+ },
2066
+ {
2067
+ types: [
2068
+ "tag",
2069
+ "attr-name",
2070
+ "namespace",
2071
+ "number",
2072
+ "unit",
2073
+ "hexcode",
2074
+ "deleted"
2075
+ ],
2076
+ style: {
2077
+ color: "#e2777a"
2078
+ }
2079
+ },
2080
+ {
2081
+ types: ["property", "selector"],
2082
+ style: {
2083
+ color: "#72f1b8",
2084
+ textShadow: "0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"
2085
+ }
2086
+ },
2087
+ {
2088
+ types: ["function-name"],
2089
+ style: {
2090
+ color: "#6196cc"
2091
+ }
2092
+ },
2093
+ {
2094
+ types: ["boolean", "selector-id", "function"],
2095
+ style: {
2096
+ color: "#fdfdfd",
2097
+ textShadow: "0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"
2098
+ }
2099
+ },
2100
+ {
2101
+ types: ["class-name", "maybe-class-name", "builtin"],
2102
+ style: {
2103
+ color: "#fff5f6",
2104
+ textShadow: "0 0 2px #000, 0 0 10px #fc1f2c75, 0 0 5px #fc1f2c75, 0 0 25px #fc1f2c75"
2105
+ }
2106
+ },
2107
+ {
2108
+ types: ["constant", "symbol"],
2109
+ style: {
2110
+ color: "#f92aad",
2111
+ textShadow: "0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"
2112
+ }
2113
+ },
2114
+ {
2115
+ types: ["important", "atrule", "keyword", "selector-class"],
2116
+ style: {
2117
+ color: "#f4eee4",
2118
+ textShadow: "0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"
2119
+ }
2120
+ },
2121
+ {
2122
+ types: ["string", "char", "attr-value", "regex", "variable"],
2123
+ style: {
2124
+ color: "#f87c32"
2125
+ }
2126
+ },
2127
+ {
2128
+ types: ["parameter"],
2129
+ style: {
2130
+ fontStyle: "italic"
2131
+ }
2132
+ },
2133
+ {
2134
+ types: ["entity", "url"],
2135
+ style: {
2136
+ color: "#67cdcc"
2137
+ }
2138
+ },
2139
+ {
2140
+ types: ["operator"],
2141
+ style: {
2142
+ color: "ffffffee"
2143
+ }
2144
+ },
2145
+ {
2146
+ types: ["important", "bold"],
2147
+ style: {
2148
+ fontWeight: "bold"
2149
+ }
2150
+ },
2151
+ {
2152
+ types: ["italic"],
2153
+ style: {
2154
+ fontStyle: "italic"
2155
+ }
2156
+ },
2157
+ {
2158
+ types: ["entity"],
2159
+ style: {
2160
+ cursor: "help"
2161
+ }
2162
+ },
2163
+ {
2164
+ types: ["inserted"],
2165
+ style: {
2166
+ color: "green"
2167
+ }
2168
+ }
2169
+ ]
2170
+ }, ft = yt, bt = {
2171
+ plain: {
2172
+ color: "#282a2e",
2173
+ backgroundColor: "#ffffff"
2174
+ },
2175
+ styles: [
2176
+ {
2177
+ types: ["comment"],
2178
+ style: {
2179
+ color: "rgb(197, 200, 198)"
2180
+ }
2181
+ },
2182
+ {
2183
+ types: ["string", "number", "builtin", "variable"],
2184
+ style: {
2185
+ color: "rgb(150, 152, 150)"
2186
+ }
2187
+ },
2188
+ {
2189
+ types: ["class-name", "function", "tag", "attr-name"],
2190
+ style: {
2191
+ color: "rgb(40, 42, 46)"
2192
+ }
2193
+ }
2194
+ ]
2195
+ }, mt = bt, ht = {
2196
+ plain: {
2197
+ color: "#9CDCFE",
2198
+ backgroundColor: "#1E1E1E"
2199
+ },
2200
+ styles: [
2201
+ {
2202
+ types: ["prolog"],
2203
+ style: {
2204
+ color: "rgb(0, 0, 128)"
2205
+ }
2206
+ },
2207
+ {
2208
+ types: ["comment"],
2209
+ style: {
2210
+ color: "rgb(106, 153, 85)"
2211
+ }
2212
+ },
2213
+ {
2214
+ types: ["builtin", "changed", "keyword", "interpolation-punctuation"],
2215
+ style: {
2216
+ color: "rgb(86, 156, 214)"
2217
+ }
2218
+ },
2219
+ {
2220
+ types: ["number", "inserted"],
2221
+ style: {
2222
+ color: "rgb(181, 206, 168)"
2223
+ }
2224
+ },
2225
+ {
2226
+ types: ["constant"],
2227
+ style: {
2228
+ color: "rgb(100, 102, 149)"
2229
+ }
2230
+ },
2231
+ {
2232
+ types: ["attr-name", "variable"],
2233
+ style: {
2234
+ color: "rgb(156, 220, 254)"
2235
+ }
2236
+ },
2237
+ {
2238
+ types: ["deleted", "string", "attr-value", "template-punctuation"],
2239
+ style: {
2240
+ color: "rgb(206, 145, 120)"
2241
+ }
2242
+ },
2243
+ {
2244
+ types: ["selector"],
2245
+ style: {
2246
+ color: "rgb(215, 186, 125)"
2247
+ }
2248
+ },
2249
+ {
2250
+ // Fix tag color
2251
+ types: ["tag"],
2252
+ style: {
2253
+ color: "rgb(78, 201, 176)"
2254
+ }
2255
+ },
2256
+ {
2257
+ // Fix tag color for HTML
2258
+ types: ["tag"],
2259
+ languages: ["markup"],
2260
+ style: {
2261
+ color: "rgb(86, 156, 214)"
2262
+ }
2263
+ },
2264
+ {
2265
+ types: ["punctuation", "operator"],
2266
+ style: {
2267
+ color: "rgb(212, 212, 212)"
2268
+ }
2269
+ },
2270
+ {
2271
+ // Fix punctuation color for HTML
2272
+ types: ["punctuation"],
2273
+ languages: ["markup"],
2274
+ style: {
2275
+ color: "#808080"
2276
+ }
2277
+ },
2278
+ {
2279
+ types: ["function"],
2280
+ style: {
2281
+ color: "rgb(220, 220, 170)"
2282
+ }
2283
+ },
2284
+ {
2285
+ types: ["class-name"],
2286
+ style: {
2287
+ color: "rgb(78, 201, 176)"
2288
+ }
2289
+ },
2290
+ {
2291
+ types: ["char"],
2292
+ style: {
2293
+ color: "rgb(209, 105, 105)"
2294
+ }
2295
+ }
2296
+ ]
2297
+ }, we = ht, vt = {
2298
+ plain: {
2299
+ color: "#000000",
2300
+ backgroundColor: "#ffffff"
2301
+ },
2302
+ styles: [
2303
+ {
2304
+ types: ["comment"],
2305
+ style: {
2306
+ color: "rgb(0, 128, 0)"
2307
+ }
2308
+ },
2309
+ {
2310
+ types: ["builtin"],
2311
+ style: {
2312
+ color: "rgb(0, 112, 193)"
2313
+ }
2314
+ },
2315
+ {
2316
+ types: ["number", "variable", "inserted"],
2317
+ style: {
2318
+ color: "rgb(9, 134, 88)"
2319
+ }
2320
+ },
2321
+ {
2322
+ types: ["operator"],
2323
+ style: {
2324
+ color: "rgb(0, 0, 0)"
2325
+ }
2326
+ },
2327
+ {
2328
+ types: ["constant", "char"],
2329
+ style: {
2330
+ color: "rgb(129, 31, 63)"
2331
+ }
2332
+ },
2333
+ {
2334
+ types: ["tag"],
2335
+ style: {
2336
+ color: "rgb(128, 0, 0)"
2337
+ }
2338
+ },
2339
+ {
2340
+ types: ["attr-name"],
2341
+ style: {
2342
+ color: "rgb(255, 0, 0)"
2343
+ }
2344
+ },
2345
+ {
2346
+ types: ["deleted", "string"],
2347
+ style: {
2348
+ color: "rgb(163, 21, 21)"
2349
+ }
2350
+ },
2351
+ {
2352
+ types: ["changed", "punctuation"],
2353
+ style: {
2354
+ color: "rgb(4, 81, 165)"
2355
+ }
2356
+ },
2357
+ {
2358
+ types: ["function", "keyword"],
2359
+ style: {
2360
+ color: "rgb(0, 0, 255)"
2361
+ }
2362
+ },
2363
+ {
2364
+ types: ["class-name"],
2365
+ style: {
2366
+ color: "rgb(38, 127, 153)"
2367
+ }
2368
+ }
2369
+ ]
2370
+ }, kt = vt, wt = {
2371
+ plain: {
2372
+ color: "#f8fafc",
2373
+ backgroundColor: "#011627"
2374
+ },
2375
+ styles: [
2376
+ {
2377
+ types: ["prolog"],
2378
+ style: {
2379
+ color: "#000080"
2380
+ }
2381
+ },
2382
+ {
2383
+ types: ["comment"],
2384
+ style: {
2385
+ color: "#6A9955"
2386
+ }
2387
+ },
2388
+ {
2389
+ types: ["builtin", "changed", "keyword", "interpolation-punctuation"],
2390
+ style: {
2391
+ color: "#569CD6"
2392
+ }
2393
+ },
2394
+ {
2395
+ types: ["number", "inserted"],
2396
+ style: {
2397
+ color: "#B5CEA8"
2398
+ }
2399
+ },
2400
+ {
2401
+ types: ["constant"],
2402
+ style: {
2403
+ color: "#f8fafc"
2404
+ }
2405
+ },
2406
+ {
2407
+ types: ["attr-name", "variable"],
2408
+ style: {
2409
+ color: "#9CDCFE"
2410
+ }
2411
+ },
2412
+ {
2413
+ types: ["deleted", "string", "attr-value", "template-punctuation"],
2414
+ style: {
2415
+ color: "#cbd5e1"
2416
+ }
2417
+ },
2418
+ {
2419
+ types: ["selector"],
2420
+ style: {
2421
+ color: "#D7BA7D"
2422
+ }
2423
+ },
2424
+ {
2425
+ types: ["tag"],
2426
+ style: {
2427
+ color: "#0ea5e9"
2428
+ }
2429
+ },
2430
+ {
2431
+ types: ["tag"],
2432
+ languages: ["markup"],
2433
+ style: {
2434
+ color: "#0ea5e9"
2435
+ }
2436
+ },
2437
+ {
2438
+ types: ["punctuation", "operator"],
2439
+ style: {
2440
+ color: "#D4D4D4"
2441
+ }
2442
+ },
2443
+ {
2444
+ types: ["punctuation"],
2445
+ languages: ["markup"],
2446
+ style: {
2447
+ color: "#808080"
2448
+ }
2449
+ },
2450
+ {
2451
+ types: ["function"],
2452
+ style: {
2453
+ color: "#7dd3fc"
2454
+ }
2455
+ },
2456
+ {
2457
+ types: ["class-name"],
2458
+ style: {
2459
+ color: "#0ea5e9"
2460
+ }
2461
+ },
2462
+ {
2463
+ types: ["char"],
2464
+ style: {
2465
+ color: "#D16969"
2466
+ }
2467
+ }
2468
+ ]
2469
+ }, xt = wt, Et = {
2470
+ plain: {
2471
+ color: "#0f172a",
2472
+ backgroundColor: "#f1f5f9"
2473
+ },
2474
+ styles: [
2475
+ {
2476
+ types: ["prolog"],
2477
+ style: {
2478
+ color: "#000080"
2479
+ }
2480
+ },
2481
+ {
2482
+ types: ["comment"],
2483
+ style: {
2484
+ color: "#6A9955"
2485
+ }
2486
+ },
2487
+ {
2488
+ types: ["builtin", "changed", "keyword", "interpolation-punctuation"],
2489
+ style: {
2490
+ color: "#0c4a6e"
2491
+ }
2492
+ },
2493
+ {
2494
+ types: ["number", "inserted"],
2495
+ style: {
2496
+ color: "#B5CEA8"
2497
+ }
2498
+ },
2499
+ {
2500
+ types: ["constant"],
2501
+ style: {
2502
+ color: "#0f172a"
2503
+ }
2504
+ },
2505
+ {
2506
+ types: ["attr-name", "variable"],
2507
+ style: {
2508
+ color: "#0c4a6e"
2509
+ }
2510
+ },
2511
+ {
2512
+ types: ["deleted", "string", "attr-value", "template-punctuation"],
2513
+ style: {
2514
+ color: "#64748b"
2515
+ }
2516
+ },
2517
+ {
2518
+ types: ["selector"],
2519
+ style: {
2520
+ color: "#D7BA7D"
2521
+ }
2522
+ },
2523
+ {
2524
+ types: ["tag"],
2525
+ style: {
2526
+ color: "#0ea5e9"
2527
+ }
2528
+ },
2529
+ {
2530
+ types: ["tag"],
2531
+ languages: ["markup"],
2532
+ style: {
2533
+ color: "#0ea5e9"
2534
+ }
2535
+ },
2536
+ {
2537
+ types: ["punctuation", "operator"],
2538
+ style: {
2539
+ color: "#475569"
2540
+ }
2541
+ },
2542
+ {
2543
+ types: ["punctuation"],
2544
+ languages: ["markup"],
2545
+ style: {
2546
+ color: "#808080"
2547
+ }
2548
+ },
2549
+ {
2550
+ types: ["function"],
2551
+ style: {
2552
+ color: "#0e7490"
2553
+ }
2554
+ },
2555
+ {
2556
+ types: ["class-name"],
2557
+ style: {
2558
+ color: "#0ea5e9"
2559
+ }
2560
+ },
2561
+ {
2562
+ types: ["char"],
2563
+ style: {
2564
+ color: "#D16969"
2565
+ }
2566
+ }
2567
+ ]
2568
+ }, At = Et, St = {
2569
+ plain: {
2570
+ backgroundColor: "hsl(220, 13%, 18%)",
2571
+ color: "hsl(220, 14%, 71%)",
2572
+ textShadow: "0 1px rgba(0, 0, 0, 0.3)"
2573
+ },
2574
+ styles: [
2575
+ {
2576
+ types: ["comment", "prolog", "cdata"],
2577
+ style: {
2578
+ color: "hsl(220, 10%, 40%)"
2579
+ }
2580
+ },
2581
+ {
2582
+ types: ["doctype", "punctuation", "entity"],
2583
+ style: {
2584
+ color: "hsl(220, 14%, 71%)"
2585
+ }
2586
+ },
2587
+ {
2588
+ types: [
2589
+ "attr-name",
2590
+ "class-name",
2591
+ "maybe-class-name",
2592
+ "boolean",
2593
+ "constant",
2594
+ "number",
2595
+ "atrule"
2596
+ ],
2597
+ style: { color: "hsl(29, 54%, 61%)" }
2598
+ },
2599
+ {
2600
+ types: ["keyword"],
2601
+ style: { color: "hsl(286, 60%, 67%)" }
2602
+ },
2603
+ {
2604
+ types: ["property", "tag", "symbol", "deleted", "important"],
2605
+ style: {
2606
+ color: "hsl(355, 65%, 65%)"
2607
+ }
2608
+ },
2609
+ {
2610
+ types: [
2611
+ "selector",
2612
+ "string",
2613
+ "char",
2614
+ "builtin",
2615
+ "inserted",
2616
+ "regex",
2617
+ "attr-value"
2618
+ ],
2619
+ style: {
2620
+ color: "hsl(95, 38%, 62%)"
2621
+ }
2622
+ },
2623
+ {
2624
+ types: ["variable", "operator", "function"],
2625
+ style: {
2626
+ color: "hsl(207, 82%, 66%)"
2627
+ }
2628
+ },
2629
+ {
2630
+ types: ["url"],
2631
+ style: {
2632
+ color: "hsl(187, 47%, 55%)"
2633
+ }
2634
+ },
2635
+ {
2636
+ types: ["deleted"],
2637
+ style: {
2638
+ textDecorationLine: "line-through"
2639
+ }
2640
+ },
2641
+ {
2642
+ types: ["inserted"],
2643
+ style: {
2644
+ textDecorationLine: "underline"
2645
+ }
2646
+ },
2647
+ {
2648
+ types: ["italic"],
2649
+ style: {
2650
+ fontStyle: "italic"
2651
+ }
2652
+ },
2653
+ {
2654
+ types: ["important", "bold"],
2655
+ style: {
2656
+ fontWeight: "bold"
2657
+ }
2658
+ },
2659
+ {
2660
+ types: ["important"],
2661
+ style: {
2662
+ color: "hsl(220, 14%, 71%)"
2663
+ }
2664
+ }
2665
+ ]
2666
+ }, _t = St, Ft = {
2667
+ plain: {
2668
+ backgroundColor: "hsl(230, 1%, 98%)",
2669
+ color: "hsl(230, 8%, 24%)"
2670
+ },
2671
+ styles: [
2672
+ {
2673
+ types: ["comment", "prolog", "cdata"],
2674
+ style: {
2675
+ color: "hsl(230, 4%, 64%)"
2676
+ }
2677
+ },
2678
+ {
2679
+ types: ["doctype", "punctuation", "entity"],
2680
+ style: {
2681
+ color: "hsl(230, 8%, 24%)"
2682
+ }
2683
+ },
2684
+ {
2685
+ types: [
2686
+ "attr-name",
2687
+ "class-name",
2688
+ "boolean",
2689
+ "constant",
2690
+ "number",
2691
+ "atrule"
2692
+ ],
2693
+ style: {
2694
+ color: "hsl(35, 99%, 36%)"
2695
+ }
2696
+ },
2697
+ {
2698
+ types: ["keyword"],
2699
+ style: {
2700
+ color: "hsl(301, 63%, 40%)"
2701
+ }
2702
+ },
2703
+ {
2704
+ types: ["property", "tag", "symbol", "deleted", "important"],
2705
+ style: {
2706
+ color: "hsl(5, 74%, 59%)"
2707
+ }
2708
+ },
2709
+ {
2710
+ types: [
2711
+ "selector",
2712
+ "string",
2713
+ "char",
2714
+ "builtin",
2715
+ "inserted",
2716
+ "regex",
2717
+ "attr-value",
2718
+ "punctuation"
2719
+ ],
2720
+ style: {
2721
+ color: "hsl(119, 34%, 47%)"
2722
+ }
2723
+ },
2724
+ {
2725
+ types: ["variable", "operator", "function"],
2726
+ style: {
2727
+ color: "hsl(221, 87%, 60%)"
2728
+ }
2729
+ },
2730
+ {
2731
+ types: ["url"],
2732
+ style: {
2733
+ color: "hsl(198, 99%, 37%)"
2734
+ }
2735
+ },
2736
+ {
2737
+ types: ["deleted"],
2738
+ style: {
2739
+ textDecorationLine: "line-through"
2740
+ }
2741
+ },
2742
+ {
2743
+ types: ["inserted"],
2744
+ style: {
2745
+ textDecorationLine: "underline"
2746
+ }
2747
+ },
2748
+ {
2749
+ types: ["italic"],
2750
+ style: {
2751
+ fontStyle: "italic"
2752
+ }
2753
+ },
2754
+ {
2755
+ types: ["important", "bold"],
2756
+ style: {
2757
+ fontWeight: "bold"
2758
+ }
2759
+ },
2760
+ {
2761
+ types: ["important"],
2762
+ style: {
2763
+ color: "hsl(230, 8%, 24%)"
2764
+ }
2765
+ }
2766
+ ]
2767
+ }, Tt = Ft, Rt = (e, t) => {
2768
+ const { plain: r } = e, l = e.styles.reduce((i, b) => {
2769
+ const { languages: c, style: d } = b;
2770
+ return c && !c.includes(t) || b.types.forEach((p) => {
2771
+ const y = O(O({}, i[p]), d);
2772
+ i[p] = y;
2773
+ }), i;
2774
+ }, {});
2775
+ return l.root = r, l.plain = J(O({}, r), { backgroundColor: void 0 }), l;
2776
+ }, ce = Rt, It = (e, t) => {
2777
+ const [r, l] = X(
2778
+ ce(t, e)
2779
+ ), i = M(), b = M();
2780
+ return G(() => {
2781
+ (t !== i.current || e !== b.current) && (i.current = t, b.current = e, l(ce(t, e)));
2782
+ }, [e, t]), r;
2783
+ }, Lt = (e) => Z(
2784
+ (t) => {
2785
+ var r = t, { className: l, style: i, line: b } = r, c = ke(r, ["className", "style", "line"]);
2786
+ const d = J(O({}, c), {
2787
+ className: ye("token-line", l)
2788
+ });
2789
+ return typeof e == "object" && "plain" in e && (d.style = e.plain), typeof i == "object" && (d.style = O(O({}, d.style || {}), i)), d;
2790
+ },
2791
+ [e]
2792
+ ), Ct = (e) => {
2793
+ const t = Z(
2794
+ ({ types: r, empty: l }) => {
2795
+ if (e != null) {
2796
+ {
2797
+ if (r.length === 1 && r[0] === "plain")
2798
+ return l != null ? { display: "inline-block" } : void 0;
2799
+ if (r.length === 1 && l != null)
2800
+ return e[r[0]];
2801
+ }
2802
+ return Object.assign(
2803
+ l != null ? { display: "inline-block" } : {},
2804
+ ...r.map((i) => e[i])
2805
+ );
2806
+ }
2807
+ },
2808
+ [e]
2809
+ );
2810
+ return Z(
2811
+ (r) => {
2812
+ var l = r, { token: i, className: b, style: c } = l, d = ke(l, ["token", "className", "style"]);
2813
+ const p = J(O({}, d), {
2814
+ className: ye("token", ...i.types, b),
2815
+ children: i.content,
2816
+ style: t(i)
2817
+ });
2818
+ return c != null && (p.style = O(O({}, p.style || {}), c)), p;
2819
+ },
2820
+ [t]
2821
+ );
2822
+ }, Ot = /\r\n|\r|\n/, pe = (e) => {
2823
+ e.length === 0 ? e.push({
2824
+ types: ["plain"],
2825
+ content: `
2826
+ `,
2827
+ empty: !0
2828
+ }) : e.length === 1 && e[0].content === "" && (e[0].content = `
2829
+ `, e[0].empty = !0);
2830
+ }, de = (e, t) => {
2831
+ const r = e.length;
2832
+ return r > 0 && e[r - 1] === t ? e : e.concat(t);
2833
+ }, Nt = (e) => {
2834
+ const t = [[]], r = [e], l = [0], i = [e.length];
2835
+ let b = 0, c = 0, d = [];
2836
+ const p = [d];
2837
+ for (; c > -1; ) {
2838
+ for (; (b = l[c]++) < i[c]; ) {
2839
+ let y, h = t[c];
2840
+ const v = r[c][b];
2841
+ if (typeof v == "string" ? (h = c > 0 ? h : ["plain"], y = v) : (h = de(h, v.type), v.alias && (h = de(h, v.alias)), y = v.content), typeof y != "string") {
2842
+ c++, t.push(h), r.push(y), l.push(0), i.push(y.length);
2843
+ continue;
2844
+ }
2845
+ const x = y.split(Ot), a = x.length;
2846
+ d.push({
2847
+ types: h,
2848
+ content: x[0]
2849
+ });
2850
+ for (let n = 1; n < a; n++)
2851
+ pe(d), p.push(d = []), d.push({
2852
+ types: h,
2853
+ content: x[n]
2854
+ });
2855
+ }
2856
+ c--, t.pop(), r.pop(), l.pop(), i.pop();
2857
+ }
2858
+ return pe(d), p;
2859
+ }, ge = Nt, Dt = ({ prism: e, code: t, grammar: r, language: l }) => {
2860
+ const i = M(e);
2861
+ return ne(() => {
2862
+ if (r == null)
2863
+ return ge([t]);
2864
+ const b = {
2865
+ code: t,
2866
+ grammar: r,
2867
+ language: l,
2868
+ tokens: []
2869
+ };
2870
+ return i.current.hooks.run("before-tokenize", b), b.tokens = i.current.tokenize(t, r), i.current.hooks.run("after-tokenize", b), ge(b.tokens);
2871
+ }, [t, r, l]);
2872
+ }, Bt = ({
2873
+ children: e,
2874
+ language: t,
2875
+ code: r,
2876
+ theme: l,
2877
+ prism: i
2878
+ }) => {
2879
+ const b = t.toLowerCase(), c = It(b, l), d = Lt(c), p = Ct(c), y = i.languages[b], h = Dt({ prism: i, language: b, code: r, grammar: y });
2880
+ return e({
2881
+ tokens: h,
2882
+ className: `prism-code language-${b}`,
2883
+ style: c != null ? c.root : {},
2884
+ getLineProps: d,
2885
+ getTokenProps: p
2886
+ });
2887
+ }, jt = (e) => Te(Bt, J(O({}, e), {
2888
+ prism: e.prism || o,
2889
+ theme: e.theme || we,
2890
+ code: e.code,
2891
+ language: e.language
2892
+ }));
2893
+ /*! Bundled license information:
2894
+
2895
+ prismjs/prism.js:
2896
+ (**
2897
+ * Prism: Lightweight, robust, elegant syntax highlighting
2898
+ *
2899
+ * @license MIT <https://opensource.org/licenses/MIT>
2900
+ * @author Lea Verou <https://lea.verou.me>
2901
+ * @namespace
2902
+ * @public
2903
+ *)
2904
+ */
2905
+ const xe = fe([
2906
+ !1,
2907
+ () => {
2908
+ }
2909
+ ]), $t = () => {
2910
+ const e = be(xe);
2911
+ if (!e)
2912
+ throw new Error("useTheme must be used within a ThemeProvider");
2913
+ return e;
2914
+ }, Zt = (e) => {
2915
+ const [t, r] = X(!1);
2916
+ G(() => {
2917
+ const b = localStorage.getItem("theme"), c = window.matchMedia("(prefers-color-scheme: dark)"), d = b === "dark" || !b && c.matches;
2918
+ r(d);
2919
+ }, [t]);
2920
+ const l = Z(() => {
2921
+ const b = !t;
2922
+ document.documentElement.classList.toggle("dark", b), localStorage.setItem("theme", b ? "dark" : "light"), r(b);
2923
+ }, [t]), i = [t, l];
2924
+ return /* @__PURE__ */ k.jsx(xe.Provider, { value: i, ...e });
2925
+ };
2926
+ globalThis.Prism = o, import("./prism-bash.min-DadFsM4Z.js"), import("./prism-ruby.min-C7LwcKyz.js"), import("./prism-markup-templating-DZrrEs0A.js"), import("./prism-php.min-o7FpoMP_.js"), import("./prism-json.min-B1GJqK1k.js"), import("./prism-java.min-d5iT_mOd.js"), import("./prism-csharp.min-Yizuc34Y.js"), import("./prism-objectivec.min-BXSWqpJJ.js");
2927
+ const Pt = ({
2928
+ copyable: e = !0,
2929
+ ...t
2930
+ }) => {
2931
+ const [r] = $t(), [l, i] = X(!1);
2932
+ return t.code ? /* @__PURE__ */ k.jsx(jt, { theme: r ? ae.vsDark : ae.github, ...t, children: ({ className: b, style: c, tokens: d, getLineProps: p, getTokenProps: y }) => /* @__PURE__ */ k.jsxs(
2933
+ "pre",
2934
+ {
2935
+ className: z(
2936
+ "group relative",
2937
+ b,
2938
+ t.className,
2939
+ t.noBackground && "!bg-transparent",
2940
+ t.wrapLines && "whitespace-pre-wrap break-words"
2941
+ ),
2942
+ style: c,
2943
+ children: [
2944
+ e && /* @__PURE__ */ k.jsx(
2945
+ "button",
2946
+ {
2947
+ type: "button",
2948
+ "aria-label": "Copy code",
2949
+ className: "absolute top-1.5 right-3 p-3 opacity-0 group-hover:opacity-100 transition hover:bg-zinc-500/10 hover:dark:bg-zinc-700/25 rounded-lg text-sm text-gray-400 hover:text-gray-600 dark:text-gray-500 dark:hover:text-gray-400",
2950
+ disabled: l,
2951
+ onClick: () => {
2952
+ i(!0), navigator.clipboard.writeText(
2953
+ d.map((h) => h.map(({ content: g }) => g).join("")).join(`
2954
+ `)
2955
+ ), setTimeout(() => i(!1), 2e3);
2956
+ },
2957
+ children: l ? /* @__PURE__ */ k.jsx(_e, { className: "text-emerald-600", size: 18 }) : /* @__PURE__ */ k.jsx(Re, { size: 18 })
2958
+ }
2959
+ ),
2960
+ t.showLanguageIndicator && /* @__PURE__ */ k.jsx("span", { className: "absolute top-1.5 right-3 text-[11px] font-mono text-muted-foreground transition group-hover:opacity-0", children: t.language }),
2961
+ d.map((h, g) => /* @__PURE__ */ k.jsx("div", { ...p({ line: h }), children: h.map((v, x) => /* @__PURE__ */ k.jsx("span", { ...y({ token: v }) }, x)) }, g))
2962
+ ]
2963
+ }
2964
+ ) }) : null;
2965
+ }, qt = {
2966
+ img: (e) => /\.(mp4|webm|mov|avi)$/.test(e.src ?? "") ? /* @__PURE__ */ k.jsx("video", { src: e.src, controls: !0, playsInline: !0, autoPlay: !0, loop: !0 }) : /* @__PURE__ */ k.jsx("img", { ...e, className: "rounded-md" }),
2967
+ h1: ({ children: e, id: t }) => /* @__PURE__ */ k.jsx(P, { level: 1, id: t, children: e }),
2968
+ h2: ({ children: e, id: t }) => /* @__PURE__ */ k.jsx(P, { level: 2, id: t, children: e }),
2969
+ h3: ({ children: e, id: t }) => /* @__PURE__ */ k.jsx(P, { level: 3, id: t, children: e }),
2970
+ h4: ({ children: e, id: t }) => /* @__PURE__ */ k.jsx(P, { level: 4, id: t, children: e }),
2971
+ h5: ({ children: e, id: t }) => /* @__PURE__ */ k.jsx(P, { level: 5, id: t, children: e }),
2972
+ h6: ({ children: e, id: t }) => /* @__PURE__ */ k.jsx(P, { level: 6, id: t, children: e }),
2973
+ a: ({ href: e, ...t }) => e && !e.startsWith("http") ? /* @__PURE__ */ k.jsx(Fe, { to: e, relative: "path", ...t }) : /* @__PURE__ */ k.jsx("a", { href: e, target: "_blank", ...t, rel: "noreferrer" }),
2974
+ Callout: j,
2975
+ tip: (e) => /* @__PURE__ */ k.jsx(j, { type: "tip", ...e }),
2976
+ info: (e) => /* @__PURE__ */ k.jsx(j, { type: "info", ...e }),
2977
+ note: (e) => /* @__PURE__ */ k.jsx(j, { type: "note", ...e }),
2978
+ caution: (e) => /* @__PURE__ */ k.jsx(j, { type: "caution", ...e }),
2979
+ warning: (e) => /* @__PURE__ */ k.jsx(j, { type: "caution", ...e }),
2980
+ danger: (e) => /* @__PURE__ */ k.jsx(j, { type: "danger", ...e }),
2981
+ pre: ({ children: e }) => /* @__PURE__ */ k.jsx(k.Fragment, { children: e }),
2982
+ code: ({ className: e, children: t, ...r }) => {
2983
+ if (!r.inline) {
2984
+ const i = e == null ? void 0 : e.match(/language?-(\w+)/);
2985
+ return /* @__PURE__ */ k.jsx(
2986
+ Pt,
2987
+ {
2988
+ language: (i == null ? void 0 : i[1]) ?? "markup",
2989
+ className: "rounded-xl overflow-x-auto p-4 border border-border dark:!bg-foreground/10 dark:border-transparent",
2990
+ showLanguageIndicator: !0,
2991
+ code: String(t).trim()
2992
+ }
2993
+ );
2994
+ }
2995
+ return /* @__PURE__ */ k.jsx(
2996
+ "code",
2997
+ {
2998
+ className: z(
2999
+ e,
3000
+ "font-mono border border-border p-1 py-0.5 rounded bg-border/50 dark:bg-border/70 whitespace-nowrap"
3001
+ ),
3002
+ children: t
3003
+ }
3004
+ );
3005
+ }
3006
+ };
3007
+ export {
3008
+ j as C,
3009
+ P as H,
3010
+ qt as M,
3011
+ Pt as S,
3012
+ Zt as T,
3013
+ Gt as V,
3014
+ Ne as a,
3015
+ Ce as b,
3016
+ $t as u
3017
+ };