@hep-code-runner/vue3 2.3.0 → 2.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,12 +1,12 @@
1
- import { defineComponent as oe, useCssVars as pe, ref as N, computed as P, onMounted as ge, watch as M, onUnmounted as he, openBlock as x, createElementBlock as F, normalizeClass as B, createElementVNode as E, normalizeStyle as q, withDirectives as me, createCommentVNode as C, Fragment as fe, renderList as be, toDisplayString as $, vModelSelect as Ee, createTextVNode as ve, createStaticVNode as ye, createVNode as re, createBlock as ke, Teleport as Se, Transition as we, withCtx as Ae, renderSlot as Te } from "vue";
2
- var xe = Object.defineProperty, ie = (u, n, l) => ((s, h, b) => h in s ? xe(s, h, { enumerable: !0, configurable: !0, writable: !0, value: b }) : s[h] = b)(u, typeof n != "symbol" ? n + "" : n, l);
1
+ import { defineComponent as oe, useCssVars as pe, ref as N, computed as C, onMounted as ge, watch as M, onUnmounted as he, openBlock as A, createElementBlock as x, normalizeClass as B, createElementVNode as E, normalizeStyle as q, withDirectives as me, createCommentVNode as P, Fragment as fe, renderList as be, toDisplayString as $, vModelSelect as Ee, createTextVNode as ve, createStaticVNode as ye, createVNode as re, createBlock as ke, Teleport as Se, Transition as we, withCtx as Ae, renderSlot as Te } from "vue";
2
+ var xe = Object.defineProperty, ie = (u, a, l) => ((s, h, b) => h in s ? xe(s, h, { enumerable: !0, configurable: !0, writable: !0, value: b }) : s[h] = b)(u, typeof a != "symbol" ? a + "" : a, l);
3
3
  let ne = null;
4
4
  class Fe {
5
- constructor(n = {}) {
6
- ie(this, "baseUrl"), ie(this, "timeout"), this.baseUrl = n.pistonUrl || "/api/piston", this.timeout = n.timeout || 3e3;
5
+ constructor(a = {}) {
6
+ ie(this, "baseUrl"), ie(this, "timeout"), this.baseUrl = a.pistonUrl || "/api/piston", this.timeout = a.timeout || 3e3;
7
7
  }
8
- async getRuntimes(n = !1) {
9
- if (ne && !n) return ne;
8
+ async getRuntimes(a = !1) {
9
+ if (ne && !a) return ne;
10
10
  try {
11
11
  const l = await fetch(`${this.baseUrl}/runtimes`, { method: "GET", headers: { "Content-Type": "application/json" } });
12
12
  if (!l.ok) throw new Error(`Failed to fetch runtimes: ${l.statusText}`);
@@ -16,24 +16,24 @@ class Fe {
16
16
  throw l;
17
17
  }
18
18
  }
19
- async execute(n, l, s = {}) {
20
- const h = (await this.getRuntimes()).find((S) => {
19
+ async execute(a, l, s = {}) {
20
+ const h = (await this.getRuntimes()).find((v) => {
21
21
  var m;
22
- return S.language.toLowerCase() === n.toLowerCase() || ((m = S.aliases) == null ? void 0 : m.some((T) => T.toLowerCase() === n.toLowerCase()));
22
+ return v.language.toLowerCase() === a.toLowerCase() || ((m = v.aliases) == null ? void 0 : m.some((k) => k.toLowerCase() === a.toLowerCase()));
23
23
  });
24
- if (!h) throw new Error(`Language '${n}' is not supported`);
25
- const b = this.getFileName(n), i = { language: h.language, version: s.version || h.version, files: [{ name: b, content: l }], stdin: s.stdin || "", args: s.args || [], run_timeout: s.runTimeout || this.timeout, compile_timeout: this.timeout }, A = Date.now();
24
+ if (!h) throw new Error(`Language '${a}' is not supported`);
25
+ const b = this.getFileName(a), i = { language: h.language, version: s.version || h.version, files: [{ name: b, content: l }], stdin: s.stdin || "", args: s.args || [], run_timeout: s.runTimeout || this.timeout, compile_timeout: this.timeout }, S = Date.now();
26
26
  try {
27
- const S = await fetch(`${this.baseUrl}/execute`, { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify(i) });
28
- if (!S.ok) throw new Error(`Execute failed: ${S.statusText}`);
29
- const m = await S.json(), T = Date.now() - A, v = m.run.stdout || "", w = m.run.stderr || "";
30
- return { success: m.run.code === 0, output: v, stderr: w, code: m.run.code, executionTime: T, compile: m.compile ? { stdout: m.compile.stdout || "", stderr: m.compile.stderr || "", code: m.compile.code } : void 0 };
31
- } catch (S) {
32
- return { success: !1, output: "", stderr: S instanceof Error ? S.message : "Unknown error", code: -1, executionTime: Date.now() - A };
27
+ const v = await fetch(`${this.baseUrl}/execute`, { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify(i) });
28
+ if (!v.ok) throw new Error(`Execute failed: ${v.statusText}`);
29
+ const m = await v.json(), k = Date.now() - S, F = m.run.stdout || "", R = m.run.stderr || "";
30
+ return { success: m.run.code === 0, output: F, stderr: R, code: m.run.code, executionTime: k, compile: m.compile ? { stdout: m.compile.stdout || "", stderr: m.compile.stderr || "", code: m.compile.code } : void 0 };
31
+ } catch (v) {
32
+ return { success: !1, output: "", stderr: v instanceof Error ? v.message : "Unknown error", code: -1, executionTime: Date.now() - S };
33
33
  }
34
34
  }
35
- getFileName(n) {
36
- return { javascript: "main.js", typescript: "main.ts", python: "main.py", python3: "main.py", go: "main.go", rust: "main.rs", java: "Main.java", c: "main.c", cpp: "main.cpp", csharp: "Main.cs", ruby: "main.rb", php: "main.php", bash: "main.sh", shell: "main.sh", perl: "main.pl", lua: "main.lua", swift: "main.swift", kotlin: "Main.kt", scala: "Main.scala", haskell: "main.hs", dart: "main.dart", html: "index.html", css: "style.css", sql: "query.sql", markdown: "readme.md" }[n.toLowerCase()] || `main.${n}`;
35
+ getFileName(a) {
36
+ return { javascript: "main.js", typescript: "main.ts", python: "main.py", python3: "main.py", go: "main.go", rust: "main.rs", java: "Main.java", c: "main.c", cpp: "main.cpp", csharp: "Main.cs", ruby: "main.rb", php: "main.php", bash: "main.sh", shell: "main.sh", perl: "main.pl", lua: "main.lua", swift: "main.swift", kotlin: "Main.kt", scala: "Main.scala", haskell: "main.hs", dart: "main.dart", html: "index.html", css: "style.css", sql: "query.sql", markdown: "readme.md" }[a.toLowerCase()] || `main.${a}`;
37
37
  }
38
38
  }
39
39
  var le = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
@@ -42,23 +42,23 @@ function Ie(u) {
42
42
  }
43
43
  var ue = { exports: {} };
44
44
  (function(u) {
45
- var n = function(l) {
45
+ var a = function(l) {
46
46
  var s = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, h = 0, b = {}, i = { manual: l.Prism && l.Prism.manual, disableWorkerMessageHandler: l.Prism && l.Prism.disableWorkerMessageHandler, util: { encode: function t(e) {
47
- return e instanceof A ? new A(e.type, t(e.content), e.alias) : Array.isArray(e) ? e.map(t) : e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/\u00a0/g, " ");
47
+ return e instanceof S ? new S(e.type, t(e.content), e.alias) : Array.isArray(e) ? e.map(t) : e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/\u00a0/g, " ");
48
48
  }, type: function(t) {
49
49
  return Object.prototype.toString.call(t).slice(8, -1);
50
50
  }, objId: function(t) {
51
51
  return t.__id || Object.defineProperty(t, "__id", { value: ++h }), t.__id;
52
- }, clone: function t(e, a) {
52
+ }, clone: function t(e, n) {
53
53
  var r, o;
54
- switch (a = a || {}, i.util.type(e)) {
54
+ switch (n = n || {}, i.util.type(e)) {
55
55
  case "Object":
56
- if (o = i.util.objId(e), a[o]) return a[o];
57
- for (var p in r = {}, a[o] = r, e) e.hasOwnProperty(p) && (r[p] = t(e[p], a));
56
+ if (o = i.util.objId(e), n[o]) return n[o];
57
+ for (var p in r = {}, n[o] = r, e) e.hasOwnProperty(p) && (r[p] = t(e[p], n));
58
58
  return r;
59
59
  case "Array":
60
- return o = i.util.objId(e), a[o] ? a[o] : (r = [], a[o] = r, e.forEach(function(d, f) {
61
- r[f] = t(d, a);
60
+ return o = i.util.objId(e), n[o] ? n[o] : (r = [], n[o] = r, e.forEach(function(d, f) {
61
+ r[f] = t(d, n);
62
62
  }), r);
63
63
  default:
64
64
  return e;
@@ -81,271 +81,271 @@ var ue = { exports: {} };
81
81
  var t = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack) || [])[1];
82
82
  if (t) {
83
83
  var e = document.getElementsByTagName("script");
84
- for (var a in e) if (e[a].src == t) return e[a];
84
+ for (var n in e) if (e[n].src == t) return e[n];
85
85
  }
86
86
  return null;
87
87
  }
88
- }, isActive: function(t, e, a) {
88
+ }, isActive: function(t, e, n) {
89
89
  for (var r = "no-" + e; t; ) {
90
90
  var o = t.classList;
91
91
  if (o.contains(e)) return !0;
92
92
  if (o.contains(r)) return !1;
93
93
  t = t.parentElement;
94
94
  }
95
- return !!a;
95
+ return !!n;
96
96
  } }, languages: { plain: b, plaintext: b, text: b, txt: b, extend: function(t, e) {
97
- var a = i.util.clone(i.languages[t]);
98
- for (var r in e) a[r] = e[r];
99
- return a;
100
- }, insertBefore: function(t, e, a, r) {
97
+ var n = i.util.clone(i.languages[t]);
98
+ for (var r in e) n[r] = e[r];
99
+ return n;
100
+ }, insertBefore: function(t, e, n, r) {
101
101
  var o = (r = r || i.languages)[t], p = {};
102
102
  for (var d in o) if (o.hasOwnProperty(d)) {
103
- if (d == e) for (var f in a) a.hasOwnProperty(f) && (p[f] = a[f]);
104
- a.hasOwnProperty(d) || (p[d] = o[d]);
103
+ if (d == e) for (var f in n) n.hasOwnProperty(f) && (p[f] = n[f]);
104
+ n.hasOwnProperty(d) || (p[d] = o[d]);
105
105
  }
106
- var R = r[t];
106
+ var I = r[t];
107
107
  return r[t] = p, i.languages.DFS(i.languages, function(_, G) {
108
- G === R && _ != t && (this[_] = p);
108
+ G === I && _ != t && (this[_] = p);
109
109
  }), p;
110
- }, DFS: function t(e, a, r, o) {
110
+ }, DFS: function t(e, n, r, o) {
111
111
  o = o || {};
112
112
  var p = i.util.objId;
113
113
  for (var d in e) if (e.hasOwnProperty(d)) {
114
- a.call(e, d, e[d], r || d);
115
- var f = e[d], R = i.util.type(f);
116
- R !== "Object" || o[p(f)] ? R !== "Array" || o[p(f)] || (o[p(f)] = !0, t(f, a, d, o)) : (o[p(f)] = !0, t(f, a, null, o));
114
+ n.call(e, d, e[d], r || d);
115
+ var f = e[d], I = i.util.type(f);
116
+ I !== "Object" || o[p(f)] ? I !== "Array" || o[p(f)] || (o[p(f)] = !0, t(f, n, d, o)) : (o[p(f)] = !0, t(f, n, null, o));
117
117
  }
118
118
  } }, plugins: {}, highlightAll: function(t, e) {
119
119
  i.highlightAllUnder(document, t, e);
120
- }, highlightAllUnder: function(t, e, a) {
121
- var r = { callback: a, container: t, selector: 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code' };
120
+ }, highlightAllUnder: function(t, e, n) {
121
+ var r = { callback: n, container: t, selector: 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code' };
122
122
  i.hooks.run("before-highlightall", r), r.elements = Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)), i.hooks.run("before-all-elements-highlight", r);
123
123
  for (var o, p = 0; o = r.elements[p++]; ) i.highlightElement(o, e === !0, r.callback);
124
- }, highlightElement: function(t, e, a) {
124
+ }, highlightElement: function(t, e, n) {
125
125
  var r = i.util.getLanguage(t), o = i.languages[r];
126
126
  i.util.setLanguage(t, r);
127
127
  var p = t.parentElement;
128
128
  p && p.nodeName.toLowerCase() === "pre" && i.util.setLanguage(p, r);
129
129
  var d = { element: t, language: r, grammar: o, code: t.textContent };
130
130
  function f(_) {
131
- d.highlightedCode = _, i.hooks.run("before-insert", d), d.element.innerHTML = d.highlightedCode, i.hooks.run("after-highlight", d), i.hooks.run("complete", d), a && a.call(d.element);
131
+ d.highlightedCode = _, i.hooks.run("before-insert", d), d.element.innerHTML = d.highlightedCode, i.hooks.run("after-highlight", d), i.hooks.run("complete", d), n && n.call(d.element);
132
132
  }
133
- if (i.hooks.run("before-sanity-check", d), (p = d.element.parentElement) && p.nodeName.toLowerCase() === "pre" && !p.hasAttribute("tabindex") && p.setAttribute("tabindex", "0"), !d.code) return i.hooks.run("complete", d), void (a && a.call(d.element));
133
+ if (i.hooks.run("before-sanity-check", d), (p = d.element.parentElement) && p.nodeName.toLowerCase() === "pre" && !p.hasAttribute("tabindex") && p.setAttribute("tabindex", "0"), !d.code) return i.hooks.run("complete", d), void (n && n.call(d.element));
134
134
  if (i.hooks.run("before-highlight", d), d.grammar) if (e && l.Worker) {
135
- var R = new Worker(i.filename);
136
- R.onmessage = function(_) {
135
+ var I = new Worker(i.filename);
136
+ I.onmessage = function(_) {
137
137
  f(_.data);
138
- }, R.postMessage(JSON.stringify({ language: d.language, code: d.code, immediateClose: !0 }));
138
+ }, I.postMessage(JSON.stringify({ language: d.language, code: d.code, immediateClose: !0 }));
139
139
  } else f(i.highlight(d.code, d.grammar, d.language));
140
140
  else f(i.util.encode(d.code));
141
- }, highlight: function(t, e, a) {
142
- var r = { code: t, grammar: e, language: a };
141
+ }, highlight: function(t, e, n) {
142
+ var r = { code: t, grammar: e, language: n };
143
143
  if (i.hooks.run("before-tokenize", r), !r.grammar) throw new Error('The language "' + r.language + '" has no grammar.');
144
- return r.tokens = i.tokenize(r.code, r.grammar), i.hooks.run("after-tokenize", r), A.stringify(i.util.encode(r.tokens), r.language);
144
+ return r.tokens = i.tokenize(r.code, r.grammar), i.hooks.run("after-tokenize", r), S.stringify(i.util.encode(r.tokens), r.language);
145
145
  }, tokenize: function(t, e) {
146
- var a = e.rest;
147
- if (a) {
148
- for (var r in a) e[r] = a[r];
146
+ var n = e.rest;
147
+ if (n) {
148
+ for (var r in n) e[r] = n[r];
149
149
  delete e.rest;
150
150
  }
151
- var o = new T();
152
- return v(o, o.head, t), m(t, o, e, o.head, 0), function(p) {
151
+ var o = new k();
152
+ return F(o, o.head, t), m(t, o, e, o.head, 0), function(p) {
153
153
  for (var d = [], f = p.head.next; f !== p.tail; ) d.push(f.value), f = f.next;
154
154
  return d;
155
155
  }(o);
156
156
  }, hooks: { all: {}, add: function(t, e) {
157
- var a = i.hooks.all;
158
- a[t] = a[t] || [], a[t].push(e);
157
+ var n = i.hooks.all;
158
+ n[t] = n[t] || [], n[t].push(e);
159
159
  }, run: function(t, e) {
160
- var a = i.hooks.all[t];
161
- if (a && a.length) for (var r, o = 0; r = a[o++]; ) r(e);
162
- } }, Token: A };
163
- function A(t, e, a, r) {
164
- this.type = t, this.content = e, this.alias = a, this.length = 0 | (r || "").length;
160
+ var n = i.hooks.all[t];
161
+ if (n && n.length) for (var r, o = 0; r = n[o++]; ) r(e);
162
+ } }, Token: S };
163
+ function S(t, e, n, r) {
164
+ this.type = t, this.content = e, this.alias = n, this.length = 0 | (r || "").length;
165
165
  }
166
- function S(t, e, a, r) {
166
+ function v(t, e, n, r) {
167
167
  t.lastIndex = e;
168
- var o = t.exec(a);
168
+ var o = t.exec(n);
169
169
  if (o && r && o[1]) {
170
170
  var p = o[1].length;
171
171
  o.index += p, o[0] = o[0].slice(p);
172
172
  }
173
173
  return o;
174
174
  }
175
- function m(t, e, a, r, o, p) {
176
- for (var d in a) if (a.hasOwnProperty(d) && a[d]) {
177
- var f = a[d];
175
+ function m(t, e, n, r, o, p) {
176
+ for (var d in n) if (n.hasOwnProperty(d) && n[d]) {
177
+ var f = n[d];
178
178
  f = Array.isArray(f) ? f : [f];
179
- for (var R = 0; R < f.length; ++R) {
180
- if (p && p.cause == d + "," + R) return;
181
- var _ = f[R], G = _.inside, j = !!_.lookbehind, z = !!_.greedy, V = _.alias;
179
+ for (var I = 0; I < f.length; ++I) {
180
+ if (p && p.cause == d + "," + I) return;
181
+ var _ = f[I], G = _.inside, j = !!_.lookbehind, z = !!_.greedy, V = _.alias;
182
182
  if (z && !_.pattern.global) {
183
183
  var Y = _.pattern.toString().match(/[imsuy]*$/)[0];
184
184
  _.pattern = RegExp(_.pattern.source, Y + "g");
185
185
  }
186
186
  for (var X = _.pattern || _, c = r.next, g = o; c !== e.tail && !(p && g >= p.reach); g += c.value.length, c = c.next) {
187
- var k = c.value;
187
+ var y = c.value;
188
188
  if (e.length > t.length) return;
189
- if (!(k instanceof A)) {
189
+ if (!(y instanceof S)) {
190
190
  var L, D = 1;
191
191
  if (z) {
192
- if (!(L = S(X, g, t, j)) || L.index >= t.length) break;
192
+ if (!(L = v(X, g, t, j)) || L.index >= t.length) break;
193
193
  var Z = L.index, de = L.index + L[0].length, U = g;
194
194
  for (U += c.value.length; Z >= U; ) U += (c = c.next).value.length;
195
- if (g = U -= c.value.length, c.value instanceof A) continue;
195
+ if (g = U -= c.value.length, c.value instanceof S) continue;
196
196
  for (var H = c; H !== e.tail && (U < de || typeof H.value == "string"); H = H.next) D++, U += H.value.length;
197
- D--, k = t.slice(g, U), L.index -= g;
198
- } else if (!(L = S(X, 0, k, j))) continue;
197
+ D--, y = t.slice(g, U), L.index -= g;
198
+ } else if (!(L = v(X, 0, y, j))) continue;
199
199
  Z = L.index;
200
- var K = L[0], Q = k.slice(0, Z), se = k.slice(Z + K.length), ee = g + k.length;
200
+ var K = L[0], Q = y.slice(0, Z), se = y.slice(Z + K.length), ee = g + y.length;
201
201
  p && ee > p.reach && (p.reach = ee);
202
202
  var W = c.prev;
203
- if (Q && (W = v(e, W, Q), g += Q.length), w(e, W, D), c = v(e, W, new A(d, G ? i.tokenize(K, G) : K, V, K)), se && v(e, c, se), D > 1) {
204
- var te = { cause: d + "," + R, reach: ee };
205
- m(t, e, a, c.prev, g, te), p && te.reach > p.reach && (p.reach = te.reach);
203
+ if (Q && (W = F(e, W, Q), g += Q.length), R(e, W, D), c = F(e, W, new S(d, G ? i.tokenize(K, G) : K, V, K)), se && F(e, c, se), D > 1) {
204
+ var te = { cause: d + "," + I, reach: ee };
205
+ m(t, e, n, c.prev, g, te), p && te.reach > p.reach && (p.reach = te.reach);
206
206
  }
207
207
  }
208
208
  }
209
209
  }
210
210
  }
211
211
  }
212
- function T() {
212
+ function k() {
213
213
  var t = { value: null, prev: null, next: null }, e = { value: null, prev: t, next: null };
214
214
  t.next = e, this.head = t, this.tail = e, this.length = 0;
215
215
  }
216
- function v(t, e, a) {
217
- var r = e.next, o = { value: a, prev: e, next: r };
216
+ function F(t, e, n) {
217
+ var r = e.next, o = { value: n, prev: e, next: r };
218
218
  return e.next = o, r.prev = o, t.length++, o;
219
219
  }
220
- function w(t, e, a) {
221
- for (var r = e.next, o = 0; o < a && r !== t.tail; o++) r = r.next;
220
+ function R(t, e, n) {
221
+ for (var r = e.next, o = 0; o < n && r !== t.tail; o++) r = r.next;
222
222
  e.next = r, r.prev = e, t.length -= o;
223
223
  }
224
- if (l.Prism = i, A.stringify = function t(e, a) {
224
+ if (l.Prism = i, S.stringify = function t(e, n) {
225
225
  if (typeof e == "string") return e;
226
226
  if (Array.isArray(e)) {
227
227
  var r = "";
228
- return e.forEach(function(R) {
229
- r += t(R, a);
228
+ return e.forEach(function(I) {
229
+ r += t(I, n);
230
230
  }), r;
231
231
  }
232
- var o = { type: e.type, content: t(e.content, a), tag: "span", classes: ["token", e.type], attributes: {}, language: a }, p = e.alias;
232
+ var o = { type: e.type, content: t(e.content, n), tag: "span", classes: ["token", e.type], attributes: {}, language: n }, p = e.alias;
233
233
  p && (Array.isArray(p) ? Array.prototype.push.apply(o.classes, p) : o.classes.push(p)), i.hooks.run("wrap", o);
234
234
  var d = "";
235
235
  for (var f in o.attributes) d += " " + f + '="' + (o.attributes[f] || "").replace(/"/g, "&quot;") + '"';
236
236
  return "<" + o.tag + ' class="' + o.classes.join(" ") + '"' + d + ">" + o.content + "</" + o.tag + ">";
237
237
  }, !l.document) return l.addEventListener && (i.disableWorkerMessageHandler || l.addEventListener("message", function(t) {
238
- var e = JSON.parse(t.data), a = e.language, r = e.code, o = e.immediateClose;
239
- l.postMessage(i.highlight(r, i.languages[a], a)), o && l.close();
238
+ var e = JSON.parse(t.data), n = e.language, r = e.code, o = e.immediateClose;
239
+ l.postMessage(i.highlight(r, i.languages[n], n)), o && l.close();
240
240
  }, !1)), i;
241
- var y = i.util.currentScript();
241
+ var w = i.util.currentScript();
242
242
  function O() {
243
243
  i.manual || i.highlightAll();
244
244
  }
245
- if (y && (i.filename = y.src, y.hasAttribute("data-manual") && (i.manual = !0)), !i.manual) {
246
- var I = document.readyState;
247
- I === "loading" || I === "interactive" && y && y.defer ? document.addEventListener("DOMContentLoaded", O) : window.requestAnimationFrame ? window.requestAnimationFrame(O) : window.setTimeout(O, 16);
245
+ if (w && (i.filename = w.src, w.hasAttribute("data-manual") && (i.manual = !0)), !i.manual) {
246
+ var T = document.readyState;
247
+ T === "loading" || T === "interactive" && w && w.defer ? document.addEventListener("DOMContentLoaded", O) : window.requestAnimationFrame ? window.requestAnimationFrame(O) : window.setTimeout(O, 16);
248
248
  }
249
249
  return i;
250
250
  }(typeof window < "u" ? window : typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? self : {});
251
- u.exports && (u.exports = n), le !== void 0 && (le.Prism = n), n.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] }, n.languages.markup.tag.inside["attr-value"].inside.entity = n.languages.markup.entity, n.languages.markup.doctype.inside["internal-subset"].inside = n.languages.markup, n.hooks.add("wrap", function(l) {
251
+ u.exports && (u.exports = a), le !== void 0 && (le.Prism = a), a.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] }, a.languages.markup.tag.inside["attr-value"].inside.entity = a.languages.markup.entity, a.languages.markup.doctype.inside["internal-subset"].inside = a.languages.markup, a.hooks.add("wrap", function(l) {
252
252
  l.type === "entity" && (l.attributes.title = l.content.replace(/&amp;/, "&"));
253
- }), Object.defineProperty(n.languages.markup.tag, "addInlined", { value: function(l, s) {
253
+ }), Object.defineProperty(a.languages.markup.tag, "addInlined", { value: function(l, s) {
254
254
  var h = {};
255
- h["language-" + s] = { pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i, lookbehind: !0, inside: n.languages[s] }, h.cdata = /^<!\[CDATA\[|\]\]>$/i;
255
+ h["language-" + s] = { pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i, lookbehind: !0, inside: a.languages[s] }, h.cdata = /^<!\[CDATA\[|\]\]>$/i;
256
256
  var b = { "included-cdata": { pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i, inside: h } };
257
- b["language-" + s] = { pattern: /[\s\S]+/, inside: n.languages[s] };
257
+ b["language-" + s] = { pattern: /[\s\S]+/, inside: a.languages[s] };
258
258
  var i = {};
259
259
  i[l] = { pattern: RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g, function() {
260
260
  return l;
261
- }), "i"), lookbehind: !0, greedy: !0, inside: b }, n.languages.insertBefore("markup", "cdata", i);
262
- } }), Object.defineProperty(n.languages.markup.tag, "addAttribute", { value: function(l, s) {
263
- n.languages.markup.tag.inside["special-attr"].push({ pattern: RegExp(/(^|["'\s])/.source + "(?:" + l + ")" + /\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: [s, "language-" + s], inside: n.languages[s] }, punctuation: [{ pattern: /^=/, alias: "attr-equals" }, /"|'/] } } } });
264
- } }), n.languages.html = n.languages.markup, n.languages.mathml = n.languages.markup, n.languages.svg = n.languages.markup, n.languages.xml = n.languages.extend("markup", {}), n.languages.ssml = n.languages.xml, n.languages.atom = n.languages.xml, n.languages.rss = n.languages.xml, function(l) {
261
+ }), "i"), lookbehind: !0, greedy: !0, inside: b }, a.languages.insertBefore("markup", "cdata", i);
262
+ } }), Object.defineProperty(a.languages.markup.tag, "addAttribute", { value: function(l, s) {
263
+ a.languages.markup.tag.inside["special-attr"].push({ pattern: RegExp(/(^|["'\s])/.source + "(?:" + l + ")" + /\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: [s, "language-" + s], inside: a.languages[s] }, punctuation: [{ pattern: /^=/, alias: "attr-equals" }, /"|'/] } } } });
264
+ } }), a.languages.html = a.languages.markup, a.languages.mathml = a.languages.markup, a.languages.svg = a.languages.markup, a.languages.xml = a.languages.extend("markup", {}), a.languages.ssml = a.languages.xml, a.languages.atom = a.languages.xml, a.languages.rss = a.languages.xml, function(l) {
265
265
  var s = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
266
266
  l.languages.css = { comment: /\/\*[\s\S]*?\*\//, atrule: { pattern: RegExp("@[\\w-](?:" + /[^;{\s"']|\s+(?!\s)/.source + "|" + s.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\\((?:" + s.source + "|" + /(?:[^\\\r\n()"']|\\[\s\S])*/.source + ")\\)", "i"), greedy: !0, inside: { function: /^url/i, punctuation: /^\(|\)$/, string: { pattern: RegExp("^" + s.source + "$"), alias: "url" } } }, selector: { pattern: RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|` + s.source + ")*(?=\\s*\\{)"), lookbehind: !0 }, string: { pattern: s, 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: /[(){};:,]/ }, l.languages.css.atrule.inside.rest = l.languages.css;
267
267
  var h = l.languages.markup;
268
268
  h && (h.tag.addInlined("style", "css"), h.tag.addAttribute("style", "css"));
269
- }(n), n.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: /[{}[\];(),.:]/ }, n.languages.javascript = n.languages.extend("clike", { "class-name": [n.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}|\?\?=?|\?\.?|[~:]/ }), n.languages.javascript["class-name"][0].pattern = /(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/, n.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: n.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: n.languages.javascript }, { pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i, lookbehind: !0, inside: n.languages.javascript }, { pattern: /(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/, lookbehind: !0, inside: n.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: n.languages.javascript }], constant: /\b[A-Z](?:[A-Z_]|\dx?)*\b/ }), n.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: n.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" } }), n.languages.insertBefore("javascript", "operator", { "literal-property": { pattern: /((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m, lookbehind: !0, alias: "property" } }), n.languages.markup && (n.languages.markup.tag.addInlined("script", "javascript"), n.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")), n.languages.js = n.languages.javascript, function() {
270
- if (n !== void 0 && typeof document < "u") {
269
+ }(a), a.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: /[{}[\];(),.:]/ }, a.languages.javascript = a.languages.extend("clike", { "class-name": [a.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}|\?\?=?|\?\.?|[~:]/ }), a.languages.javascript["class-name"][0].pattern = /(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/, a.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: a.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: a.languages.javascript }, { pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i, lookbehind: !0, inside: a.languages.javascript }, { pattern: /(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/, lookbehind: !0, inside: a.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: a.languages.javascript }], constant: /\b[A-Z](?:[A-Z_]|\dx?)*\b/ }), a.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: a.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" } }), a.languages.insertBefore("javascript", "operator", { "literal-property": { pattern: /((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m, lookbehind: !0, alias: "property" } }), a.languages.markup && (a.languages.markup.tag.addInlined("script", "javascript"), a.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")), a.languages.js = a.languages.javascript, function() {
270
+ if (a !== void 0 && typeof document < "u") {
271
271
  Element.prototype.matches || (Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector);
272
272
  var l = { js: "javascript", py: "python", rb: "ruby", ps1: "powershell", psm1: "powershell", sh: "bash", bat: "batch", h: "c", tex: "latex" }, s = "data-src-status", h = "loading", b = "loaded", i = "pre[data-src]:not([" + s + '="' + b + '"]):not([' + s + '="' + h + '"])';
273
- n.hooks.add("before-highlightall", function(S) {
274
- S.selector += ", " + i;
275
- }), n.hooks.add("before-sanity-check", function(S) {
276
- var m = S.element;
273
+ a.hooks.add("before-highlightall", function(v) {
274
+ v.selector += ", " + i;
275
+ }), a.hooks.add("before-sanity-check", function(v) {
276
+ var m = v.element;
277
277
  if (m.matches(i)) {
278
- S.code = "", m.setAttribute(s, h);
279
- var T = m.appendChild(document.createElement("CODE"));
280
- T.textContent = "Loading…";
281
- var v = m.getAttribute("data-src"), w = S.language;
282
- if (w === "none") {
283
- var y = (/\.(\w+)$/.exec(v) || [, "none"])[1];
284
- w = l[y] || y;
278
+ v.code = "", m.setAttribute(s, h);
279
+ var k = m.appendChild(document.createElement("CODE"));
280
+ k.textContent = "Loading…";
281
+ var F = m.getAttribute("data-src"), R = v.language;
282
+ if (R === "none") {
283
+ var w = (/\.(\w+)$/.exec(F) || [, "none"])[1];
284
+ R = l[w] || w;
285
285
  }
286
- n.util.setLanguage(T, w), n.util.setLanguage(m, w);
287
- var O = n.plugins.autoloader;
288
- O && O.loadLanguages(w), function(I, t, e) {
289
- var a = new XMLHttpRequest();
290
- a.open("GET", I, !0), a.onreadystatechange = function() {
291
- a.readyState == 4 && (a.status < 400 && a.responseText ? t(a.responseText) : a.status >= 400 ? e("✖ Error " + a.status + " while fetching file: " + a.statusText) : e("✖ Error: File does not exist or is empty"));
292
- }, a.send(null);
293
- }(v, function(I) {
286
+ a.util.setLanguage(k, R), a.util.setLanguage(m, R);
287
+ var O = a.plugins.autoloader;
288
+ O && O.loadLanguages(R), function(T, t, e) {
289
+ var n = new XMLHttpRequest();
290
+ n.open("GET", T, !0), n.onreadystatechange = function() {
291
+ n.readyState == 4 && (n.status < 400 && n.responseText ? t(n.responseText) : n.status >= 400 ? e("✖ Error " + n.status + " while fetching file: " + n.statusText) : e("✖ Error: File does not exist or is empty"));
292
+ }, n.send(null);
293
+ }(F, function(T) {
294
294
  m.setAttribute(s, b);
295
295
  var t = function(o) {
296
296
  var p = /^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(o || "");
297
297
  if (p) {
298
- var d = Number(p[1]), f = p[2], R = p[3];
299
- return f ? R ? [d, Number(R)] : [d, void 0] : [d, d];
298
+ var d = Number(p[1]), f = p[2], I = p[3];
299
+ return f ? I ? [d, Number(I)] : [d, void 0] : [d, d];
300
300
  }
301
301
  }(m.getAttribute("data-range"));
302
302
  if (t) {
303
- var e = I.split(/\r\n?|\n/g), a = t[0], r = t[1] == null ? e.length : t[1];
304
- a < 0 && (a += e.length), a = Math.max(0, Math.min(a - 1, e.length)), r < 0 && (r += e.length), r = Math.max(0, Math.min(r, e.length)), I = e.slice(a, r).join(`
305
- `), m.hasAttribute("data-start") || m.setAttribute("data-start", String(a + 1));
303
+ var e = T.split(/\r\n?|\n/g), n = t[0], r = t[1] == null ? e.length : t[1];
304
+ n < 0 && (n += e.length), n = Math.max(0, Math.min(n - 1, e.length)), r < 0 && (r += e.length), r = Math.max(0, Math.min(r, e.length)), T = e.slice(n, r).join(`
305
+ `), m.hasAttribute("data-start") || m.setAttribute("data-start", String(n + 1));
306
306
  }
307
- T.textContent = I, n.highlightElement(T);
308
- }, function(I) {
309
- m.setAttribute(s, "failed"), T.textContent = I;
307
+ k.textContent = T, a.highlightElement(k);
308
+ }, function(T) {
309
+ m.setAttribute(s, "failed"), k.textContent = T;
310
310
  });
311
311
  }
312
- }), n.plugins.fileHighlight = { highlight: function(S) {
313
- for (var m, T = (S || document).querySelectorAll(i), v = 0; m = T[v++]; ) n.highlightElement(m);
312
+ }), a.plugins.fileHighlight = { highlight: function(v) {
313
+ for (var m, k = (v || document).querySelectorAll(i), F = 0; m = k[F++]; ) a.highlightElement(m);
314
314
  } };
315
- var A = !1;
316
- n.fileHighlight = function() {
317
- A || (A = !0), n.plugins.fileHighlight.highlight.apply(this, arguments);
315
+ var S = !1;
316
+ a.fileHighlight = function() {
317
+ S || (S = !0), a.plugins.fileHighlight.highlight.apply(this, arguments);
318
318
  };
319
319
  }
320
320
  }();
321
321
  })(ue);
322
322
  const ae = Ie(ue.exports);
323
323
  Prism.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: /[{}[\];(),.:]/ }, Prism.languages.javascript = Prism.languages.extend("clike", { "class-name": [Prism.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}|\?\?=?|\?\.?|[~:]/ }), Prism.languages.javascript["class-name"][0].pattern = /(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/, Prism.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: Prism.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: Prism.languages.javascript }, { pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i, lookbehind: !0, inside: Prism.languages.javascript }, { pattern: /(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/, lookbehind: !0, inside: Prism.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: Prism.languages.javascript }], constant: /\b[A-Z](?:[A-Z_]|\dx?)*\b/ }), Prism.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: Prism.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" } }), Prism.languages.insertBefore("javascript", "operator", { "literal-property": { pattern: /((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m, lookbehind: !0, alias: "property" } }), Prism.languages.markup && (Prism.languages.markup.tag.addInlined("script", "javascript"), Prism.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")), Prism.languages.js = Prism.languages.javascript, Prism.languages.python = { comment: { pattern: /(^|[^\\])#.*/, lookbehind: !0, greedy: !0 }, "string-interpolation": { pattern: /(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i, greedy: !0, inside: { interpolation: { pattern: /((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/, lookbehind: !0, inside: { "format-spec": { pattern: /(:)[^:(){}]+(?=\}$)/, lookbehind: !0 }, "conversion-option": { pattern: /![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: /[{}[\];(),.:]/ }, Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest = Prism.languages.python, Prism.languages.py = Prism.languages.python, Prism.languages.go = Prism.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/ }), Prism.languages.insertBefore("go", "string", { char: { pattern: /'(?:\\.|[^'\\\r\n]){0,10}'/, greedy: !0 } }), delete Prism.languages.go["class-name"], function(u) {
324
- var n = /\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/, l = /(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source, s = { pattern: RegExp(/(^|[^\w.])/.source + l + /[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source), lookbehind: !0, inside: { namespace: { pattern: /^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/, inside: { punctuation: /\./ } }, punctuation: /\./ } };
325
- u.languages.java = u.languages.extend("clike", { string: { pattern: /(^|[^\\])"(?:\\.|[^"\\\r\n])*"/, lookbehind: !0, greedy: !0 }, "class-name": [s, { pattern: RegExp(/(^|[^\w.])/.source + l + /[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source), lookbehind: !0, inside: s.inside }, { pattern: RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source + l + /[A-Z]\w*\b/.source), lookbehind: !0, inside: s.inside }], keyword: n, function: [u.languages.clike.function, { pattern: /(::\s*)[a-z_]\w*/, lookbehind: !0 }], number: /\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i, operator: { pattern: /(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m, lookbehind: !0 }, constant: /\b[A-Z][A-Z_\d]+\b/ }), u.languages.insertBefore("java", "string", { "triple-quoted-string": { pattern: /"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/, greedy: !0, alias: "string" }, char: { pattern: /'(?:\\.|[^'\\\r\n]){1,6}'/, greedy: !0 } }), u.languages.insertBefore("java", "class-name", { annotation: { pattern: /(^|[^.])@\w+(?:\s*\.\s*\w+)*/, lookbehind: !0, alias: "punctuation" }, generics: { pattern: /<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/, inside: { "class-name": s, keyword: n, punctuation: /[<>(),.:]/, operator: /[?&|]/ } }, import: [{ pattern: RegExp(/(\bimport\s+)/.source + l + /(?:[A-Z]\w*|\*)(?=\s*;)/.source), lookbehind: !0, inside: { namespace: s.inside.namespace, punctuation: /\./, operator: /\*/, "class-name": /\w+/ } }, { pattern: RegExp(/(\bimport\s+static\s+)/.source + l + /(?:\w+|\*)(?=\s*;)/.source), lookbehind: !0, alias: "static", inside: { namespace: s.inside.namespace, static: /\b\w+$/, punctuation: /\./, operator: /\*/, "class-name": /\w+/ } }], namespace: { pattern: RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g, function() {
326
- return n.source;
324
+ var a = /\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/, l = /(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source, s = { pattern: RegExp(/(^|[^\w.])/.source + l + /[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source), lookbehind: !0, inside: { namespace: { pattern: /^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/, inside: { punctuation: /\./ } }, punctuation: /\./ } };
325
+ u.languages.java = u.languages.extend("clike", { string: { pattern: /(^|[^\\])"(?:\\.|[^"\\\r\n])*"/, lookbehind: !0, greedy: !0 }, "class-name": [s, { pattern: RegExp(/(^|[^\w.])/.source + l + /[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source), lookbehind: !0, inside: s.inside }, { pattern: RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source + l + /[A-Z]\w*\b/.source), lookbehind: !0, inside: s.inside }], keyword: a, function: [u.languages.clike.function, { pattern: /(::\s*)[a-z_]\w*/, lookbehind: !0 }], number: /\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i, operator: { pattern: /(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m, lookbehind: !0 }, constant: /\b[A-Z][A-Z_\d]+\b/ }), u.languages.insertBefore("java", "string", { "triple-quoted-string": { pattern: /"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/, greedy: !0, alias: "string" }, char: { pattern: /'(?:\\.|[^'\\\r\n]){1,6}'/, greedy: !0 } }), u.languages.insertBefore("java", "class-name", { annotation: { pattern: /(^|[^.])@\w+(?:\s*\.\s*\w+)*/, lookbehind: !0, alias: "punctuation" }, generics: { pattern: /<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/, inside: { "class-name": s, keyword: a, punctuation: /[<>(),.:]/, operator: /[?&|]/ } }, import: [{ pattern: RegExp(/(\bimport\s+)/.source + l + /(?:[A-Z]\w*|\*)(?=\s*;)/.source), lookbehind: !0, inside: { namespace: s.inside.namespace, punctuation: /\./, operator: /\*/, "class-name": /\w+/ } }, { pattern: RegExp(/(\bimport\s+static\s+)/.source + l + /(?:\w+|\*)(?=\s*;)/.source), lookbehind: !0, alias: "static", inside: { namespace: s.inside.namespace, static: /\b\w+$/, punctuation: /\./, operator: /\*/, "class-name": /\w+/ } }], namespace: { pattern: RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g, function() {
326
+ return a.source;
327
327
  })), lookbehind: !0, inside: { punctuation: /\./ } } });
328
328
  }(Prism), Prism.languages.c = Prism.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|[?:~]|[-+*/%&|^!=<>]=?/ }), Prism.languages.insertBefore("c", "string", { char: { pattern: /'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/, greedy: !0 } }), Prism.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 }, Prism.languages.c.string], char: Prism.languages.c.char, comment: Prism.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: Prism.languages.c } } } }), Prism.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 Prism.languages.c.boolean, function(u) {
329
- for (var n = /\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source, l = 0; l < 2; l++) n = n.replace(/<self>/g, function() {
330
- return n;
329
+ for (var a = /\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source, l = 0; l < 2; l++) a = a.replace(/<self>/g, function() {
330
+ return a;
331
331
  });
332
- n = n.replace(/<self>/g, function() {
332
+ a = a.replace(/<self>/g, function() {
333
333
  return /[^\s\S]/.source;
334
- }), u.languages.rust = { comment: [{ pattern: RegExp(/(^|[^\\])/.source + n), lookbehind: !0, greedy: !0 }, { pattern: /(^|[^\\:])\/\/.*/, lookbehind: !0, greedy: !0 }], string: { pattern: /b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/, greedy: !0 }, char: { pattern: /b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/, greedy: !0 }, attribute: { pattern: /#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/, greedy: !0, alias: "attr-name", inside: { string: null } }, "closure-params": { pattern: /([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/, lookbehind: !0, greedy: !0, inside: { "closure-punctuation": { pattern: /^\||\|$/, alias: "punctuation" }, rest: null } }, "lifetime-annotation": { pattern: /'\w+/, alias: "symbol" }, "fragment-specifier": { pattern: /(\$\w+:)[a-z]+/, lookbehind: !0, alias: "punctuation" }, variable: /\$\w+/, "function-definition": { pattern: /(\bfn\s+)\w+/, lookbehind: !0, alias: "function" }, "type-definition": { pattern: /(\b(?:enum|struct|trait|type|union)\s+)\w+/, lookbehind: !0, alias: "class-name" }, "module-declaration": [{ pattern: /(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/, lookbehind: !0, alias: "namespace" }, { pattern: /(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/, lookbehind: !0, alias: "namespace", inside: { punctuation: /::/ } }], keyword: [/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/, /\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/], function: /\b[a-z_]\w*(?=\s*(?:::\s*<|\())/, macro: { pattern: /\b\w+!/, alias: "property" }, constant: /\b[A-Z_][A-Z_\d]+\b/, "class-name": /\b[A-Z]\w*\b/, namespace: { pattern: /(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/, inside: { punctuation: /::/ } }, number: /\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/, boolean: /\b(?:false|true)\b/, punctuation: /->|\.\.=|\.{1,3}|::|[{}[\];(),:]/, operator: /[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/ }, u.languages.rust["closure-params"].inside.rest = u.languages.rust, u.languages.rust.attribute.inside.string = u.languages.rust.string;
334
+ }), u.languages.rust = { comment: [{ pattern: RegExp(/(^|[^\\])/.source + a), 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: /[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/ }, u.languages.rust["closure-params"].inside.rest = u.languages.rust, u.languages.rust.attribute.inside.string = u.languages.rust.string;
335
335
  }(Prism), Prism.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(u) {
336
- var n = "\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b", l = { pattern: /(^(["']?)\w+\2)[ \t]+\S.*/, lookbehind: !0, alias: "punctuation", inside: null }, s = { bash: l, environment: { pattern: RegExp("\\$" + n), alias: "constant" }, variable: [{ pattern: /\$?\(\([\s\S]+?\)\)/, greedy: !0, inside: { variable: [{ pattern: /(^\$\(\([\s\S]+)\)\)/, lookbehind: !0 }, /^\$\(\(/], number: /\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/, operator: /--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/, punctuation: /\(\(?|\)\)?|,|;/ } }, { pattern: /\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/, greedy: !0, inside: { variable: /^\$\(|^`|\)$|`$/ } }, { pattern: /\$\{[^}]+\}/, greedy: !0, inside: { operator: /:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/, punctuation: /[\[\]]/, environment: { pattern: RegExp("(\\{)" + n), lookbehind: !0, alias: "constant" } } }, /\$(?:\w+|[#?*!@$])/], entity: /\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/ };
337
- u.languages.bash = { shebang: { pattern: /^#!\s*\/.*/, alias: "important" }, comment: { pattern: /(^|[^"{\\$])#.*/, lookbehind: !0 }, "function-name": [{ pattern: /(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/, lookbehind: !0, alias: "function" }, { pattern: /\b[\w-]+(?=\s*\(\s*\)\s*\{)/, alias: "function" }], "for-or-select": { pattern: /(\b(?:for|select)\s+)\w+(?=\s+in\s)/, alias: "variable", lookbehind: !0 }, "assign-left": { pattern: /(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/, inside: { environment: { pattern: RegExp("(^|[\\s;|&]|[<>]\\()" + n), lookbehind: !0, alias: "constant" } }, alias: "variable", lookbehind: !0 }, parameter: { pattern: /(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/, alias: "variable", lookbehind: !0 }, string: [{ pattern: /((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/, lookbehind: !0, greedy: !0, inside: s }, { pattern: /((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/, lookbehind: !0, greedy: !0, inside: { bash: l } }, { pattern: /(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/, lookbehind: !0, greedy: !0, inside: s }, { pattern: /(^|[^$\\])'[^']*'/, lookbehind: !0, greedy: !0 }, { pattern: /\$'(?:[^'\\]|\\[\s\S])*'/, greedy: !0, inside: { entity: s.entity } }], environment: { pattern: RegExp("\\$?" + n), alias: "constant" }, variable: s.variable, function: { pattern: /(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/, lookbehind: !0 }, keyword: { pattern: /(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/, lookbehind: !0 }, builtin: { pattern: /(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/, lookbehind: !0, alias: "class-name" }, boolean: { pattern: /(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/, lookbehind: !0 }, "file-descriptor": { pattern: /\B&\d\b/, alias: "important" }, operator: { pattern: /\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/, inside: { "file-descriptor": { pattern: /^\d/, alias: "important" } } }, punctuation: /\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/, number: { pattern: /(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/, lookbehind: !0 } }, l.inside = u.languages.bash;
336
+ var a = "\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b", l = { pattern: /(^(["']?)\w+\2)[ \t]+\S.*/, lookbehind: !0, alias: "punctuation", inside: null }, s = { bash: l, environment: { pattern: RegExp("\\$" + a), alias: "constant" }, variable: [{ pattern: /\$?\(\([\s\S]+?\)\)/, greedy: !0, inside: { variable: [{ pattern: /(^\$\(\([\s\S]+)\)\)/, lookbehind: !0 }, /^\$\(\(/], number: /\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/, operator: /--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/, punctuation: /\(\(?|\)\)?|,|;/ } }, { pattern: /\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/, greedy: !0, inside: { variable: /^\$\(|^`|\)$|`$/ } }, { pattern: /\$\{[^}]+\}/, greedy: !0, inside: { operator: /:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/, punctuation: /[\[\]]/, environment: { pattern: RegExp("(\\{)" + a), lookbehind: !0, alias: "constant" } } }, /\$(?:\w+|[#?*!@$])/], entity: /\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/ };
337
+ u.languages.bash = { shebang: { pattern: /^#!\s*\/.*/, alias: "important" }, comment: { pattern: /(^|[^"{\\$])#.*/, lookbehind: !0 }, "function-name": [{ pattern: /(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/, lookbehind: !0, alias: "function" }, { pattern: /\b[\w-]+(?=\s*\(\s*\)\s*\{)/, alias: "function" }], "for-or-select": { pattern: /(\b(?:for|select)\s+)\w+(?=\s+in\s)/, alias: "variable", lookbehind: !0 }, "assign-left": { pattern: /(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/, inside: { environment: { pattern: RegExp("(^|[\\s;|&]|[<>]\\()" + a), lookbehind: !0, alias: "constant" } }, alias: "variable", lookbehind: !0 }, parameter: { pattern: /(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/, alias: "variable", lookbehind: !0 }, string: [{ pattern: /((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/, lookbehind: !0, greedy: !0, inside: s }, { pattern: /((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/, lookbehind: !0, greedy: !0, inside: { bash: l } }, { pattern: /(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/, lookbehind: !0, greedy: !0, inside: s }, { pattern: /(^|[^$\\])'[^']*'/, lookbehind: !0, greedy: !0 }, { pattern: /\$'(?:[^'\\]|\\[\s\S])*'/, greedy: !0, inside: { entity: s.entity } }], environment: { pattern: RegExp("\\$?" + a), alias: "constant" }, variable: s.variable, function: { pattern: /(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/, lookbehind: !0 }, keyword: { pattern: /(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/, lookbehind: !0 }, builtin: { pattern: /(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/, lookbehind: !0, alias: "class-name" }, boolean: { pattern: /(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/, lookbehind: !0 }, "file-descriptor": { pattern: /\B&\d\b/, alias: "important" }, operator: { pattern: /\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/, inside: { "file-descriptor": { pattern: /^\d/, alias: "important" } } }, punctuation: /\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/, number: { pattern: /(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/, lookbehind: !0 } }, l.inside = u.languages.bash;
338
338
  for (var h = ["comment", "function-name", "for-or-select", "assign-left", "parameter", "string", "environment", "function", "keyword", "builtin", "boolean", "file-descriptor", "operator", "punctuation", "number"], b = s.variable[1].inside, i = 0; i < h.length; i++) b[h[i]] = u.languages.bash[h[i]];
339
339
  u.languages.sh = u.languages.bash, u.languages.shell = u.languages.bash;
340
340
  }(Prism), Prism.languages.json = { property: { pattern: /(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/, lookbehind: !0, greedy: !0 }, string: { pattern: /(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/, lookbehind: !0, greedy: !0 }, comment: { pattern: /\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/, greedy: !0 }, number: /-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i, punctuation: /[{}[\],]/, operator: /:/, boolean: /\b(?:false|true)\b/, null: { pattern: /\bnull\b/, alias: "keyword" } }, Prism.languages.webmanifest = Prism.languages.json;
341
- const Re = ["innerHTML"], _e = ["value", "disabled"], ce = (u, n) => {
341
+ const Re = ["innerHTML"], _e = ["value", "disabled"], ce = (u, a) => {
342
342
  const l = u.__vccOpts || u;
343
- for (const [s, h] of n) l[s] = h;
343
+ for (const [s, h] of a) l[s] = h;
344
344
  return l;
345
- }, Ne = ce(oe({ __name: "CodeEditor", props: { modelValue: {}, language: {}, theme: { default: "dark" }, disabled: { type: Boolean, default: !1 } }, emits: ["update:modelValue", "change"], setup(u, { emit: n }) {
345
+ }, Ne = ce(oe({ __name: "CodeEditor", props: { modelValue: {}, language: {}, theme: { default: "dark" }, disabled: { type: Boolean, default: !1 } }, emits: ["update:modelValue", "change"], setup(u, { emit: a }) {
346
346
  function l(t) {
347
347
  if (typeof document > "u") return;
348
- const e = "hep-cr-prism-styles", a = document.getElementById(e), r = t === "dark" ? `
348
+ const e = "hep-cr-prism-styles", n = document.getElementById(e), r = t === "dark" ? `
349
349
  /* 默认代码颜色 */
350
350
  .hep-cr-editor .hep-cr-highlight code,
351
351
  .hep-cr-editor .hep-cr-highlight pre {
@@ -509,22 +509,22 @@ const Re = ["innerHTML"], _e = ["value", "disabled"], ce = (u, n) => {
509
509
  color: #333 !important;
510
510
  }
511
511
  `;
512
- a && a.remove();
512
+ n && n.remove();
513
513
  const o = document.createElement("style");
514
514
  o.id = e, o.textContent = r, document.head.appendChild(o);
515
515
  }
516
- pe((t) => ({ v2b19bab6: v.value })), typeof window < "u" && (window.Prism = ae);
517
- const s = u, h = n, b = N(null), i = N(null);
518
- let A = null;
519
- function S(t) {
520
- A && clearTimeout(A), A = setTimeout(() => {
516
+ pe((t) => ({ v2b19bab6: F.value })), typeof window < "u" && (window.Prism = ae);
517
+ const s = u, h = a, b = N(null), i = N(null);
518
+ let S = null;
519
+ function v(t) {
520
+ S && clearTimeout(S), S = setTimeout(() => {
521
521
  h("change", t);
522
522
  }, 500);
523
523
  }
524
- const m = { javascript: "javascript", js: "javascript", typescript: "typescript", ts: "typescript", python: "python", py: "python", java: "java", c: "c", cpp: "cpp", "c++": "cpp", csharp: "csharp", "c#": "csharp", go: "go", golang: "go", rust: "rust", ruby: "ruby", rb: "ruby", php: "php", swift: "swift", kotlin: "kotlin", kt: "kotlin", sql: "sql", bash: "bash", sh: "bash", shell: "bash", json: "json", yaml: "yaml", yml: "yaml", markdown: "markdown", md: "markdown" }, T = P(() => m[s.language.toLowerCase()] || "javascript"), v = P(() => s.theme === "dark" ? "#1e1e1e" : "#fafafa"), w = P(() => {
524
+ const m = { javascript: "javascript", js: "javascript", typescript: "typescript", ts: "typescript", python: "python", py: "python", java: "java", c: "c", cpp: "cpp", "c++": "cpp", csharp: "csharp", "c#": "csharp", go: "go", golang: "go", rust: "rust", ruby: "ruby", rb: "ruby", php: "php", swift: "swift", kotlin: "kotlin", kt: "kotlin", sql: "sql", bash: "bash", sh: "bash", shell: "bash", json: "json", yaml: "yaml", yml: "yaml", markdown: "markdown", md: "markdown" }, k = C(() => m[s.language.toLowerCase()] || "javascript"), F = C(() => s.theme === "dark" ? "#1e1e1e" : "#fafafa"), R = C(() => {
525
525
  try {
526
- const t = ae.languages[T.value];
527
- if (t) return ae.highlight(s.modelValue || "", t, T.value);
526
+ const t = ae.languages[k.value];
527
+ if (t) return ae.highlight(s.modelValue || "", t, k.value);
528
528
  } catch {
529
529
  }
530
530
  return function(t) {
@@ -532,18 +532,18 @@ const Re = ["innerHTML"], _e = ["value", "disabled"], ce = (u, n) => {
532
532
  return e.textContent = t, e.innerHTML;
533
533
  }(s.modelValue || "");
534
534
  });
535
- function y(t) {
535
+ function w(t) {
536
536
  const e = t.target;
537
- h("update:modelValue", e.value), S(e.value);
537
+ h("update:modelValue", e.value), v(e.value);
538
538
  }
539
539
  function O() {
540
540
  b.value && i.value && (i.value.scrollTop = b.value.scrollTop, i.value.scrollLeft = b.value.scrollLeft);
541
541
  }
542
- function I(t) {
542
+ function T(t) {
543
543
  if (t.key === "Tab") {
544
544
  t.preventDefault();
545
- const e = t.target, a = e.selectionStart, r = e.selectionEnd, o = e.value;
546
- e.value = o.substring(0, a) + " " + o.substring(r), e.selectionStart = e.selectionEnd = a + 2, h("update:modelValue", e.value), S(e.value);
545
+ const e = t.target, n = e.selectionStart, r = e.selectionEnd, o = e.value;
546
+ e.value = o.substring(0, n) + " " + o.substring(r), e.selectionStart = e.selectionEnd = n + 2, h("update:modelValue", e.value), v(e.value);
547
547
  }
548
548
  }
549
549
  return ge(() => {
@@ -551,10 +551,10 @@ const Re = ["innerHTML"], _e = ["value", "disabled"], ce = (u, n) => {
551
551
  }), M(() => s.theme, (t) => {
552
552
  l(t);
553
553
  }), he(() => {
554
- A && clearTimeout(A);
555
- }), (t, e) => (x(), F("div", { class: B(["hep-cr-editor", `hep-cr-theme-${u.theme}`]) }, [E("pre", { ref_key: "highlightRef", ref: i, class: B(["hep-cr-highlight", [`language-${T.value}`, `hep-cr-prism-${u.theme}`]]), "aria-hidden": "true" }, [E("code", { innerHTML: w.value }, null, 8, Re)], 2), E("textarea", { ref_key: "codeRef", ref: b, class: "hep-cr-input", value: u.modelValue, disabled: u.disabled, onInput: y, onScroll: O, onKeydown: I, spellcheck: "false", placeholder: "Write your code here..." }, null, 40, _e)], 2));
556
- } }), [["__scopeId", "data-v-a988ca2a"]]), Le = { class: "hep-cr-header" }, Oe = { class: "hep-cr-controls" }, Ce = ["disabled"], Pe = { key: 0, value: "" }, De = ["value"], $e = { class: "hep-cr-actions" }, Me = ["disabled"], Ue = { key: 0, class: "hep-cr-spinner" }, Be = { key: 1, class: "hep-cr-run-icon" }, Ge = ["title"], je = { key: 0, width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, He = { key: 1, width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, ze = { key: 0, class: "hep-cr-error" }, Ve = { class: "hep-cr-main" }, Ye = { class: "hep-cr-panel-header" }, Xe = { class: "hep-cr-output-actions" }, Ze = { class: "hep-cr-language-badge" }, Ke = ["disabled", "title"], We = { key: 0, width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, qe = { key: 1, class: "hep-cr-copied-text" }, Je = { class: "hep-cr-panel-header" }, Qe = { class: "hep-cr-output-tabs" }, et = { class: "hep-cr-output-actions" }, tt = { key: 0, class: "hep-cr-execution-time" }, nt = ["disabled", "title"], at = { key: 0, width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, rt = { key: 1, class: "hep-cr-copied-text" }, ot = { class: "hep-cr-output-content" }, st = { key: 0 }, it = { key: 1, class: "hep-cr-stderr" }, J = ce(oe({ __name: "CodeRunner", props: { pistonUrl: { default: "/api/piston" }, modelValue: { default: "" }, language: { default: "javascript" }, theme: { default: "light" }, themeColor: { default: "" }, showLanguageSelector: { type: Boolean, default: !0 }, showEditor: { type: Boolean, default: !0 }, editable: { type: Boolean, default: !0 }, executorLabel: { default: "运行" } }, emits: ["execute-start", "execute-end", "language-change", "update:language", "update:modelValue"], setup(u, { emit: n }) {
557
- const l = u, s = n, h = N(l.modelValue);
554
+ S && clearTimeout(S);
555
+ }), (t, e) => (A(), x("div", { class: B(["hep-cr-editor", `hep-cr-theme-${u.theme}`]) }, [E("pre", { ref_key: "highlightRef", ref: i, class: B(["hep-cr-highlight", [`language-${k.value}`, `hep-cr-prism-${u.theme}`]]), "aria-hidden": "true" }, [E("code", { innerHTML: R.value }, null, 8, Re)], 2), E("textarea", { ref_key: "codeRef", ref: b, class: "hep-cr-input", value: u.modelValue, disabled: u.disabled, onInput: w, onScroll: O, onKeydown: T, spellcheck: "false", placeholder: "Write your code here..." }, null, 40, _e)], 2));
556
+ } }), [["__scopeId", "data-v-a988ca2a"]]), Le = { class: "hep-cr-header" }, Oe = { class: "hep-cr-controls" }, Ce = ["disabled"], Pe = { key: 0, value: "" }, De = ["value"], $e = { class: "hep-cr-actions" }, Me = ["disabled"], Ue = { key: 0, class: "hep-cr-spinner" }, Be = { key: 1, class: "hep-cr-run-icon" }, Ge = ["title"], je = { key: 0, width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, He = { key: 1, width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, ze = { key: 0, class: "hep-cr-error" }, Ve = { class: "hep-cr-main" }, Ye = { class: "hep-cr-panel-header" }, Xe = { class: "hep-cr-output-actions" }, Ze = { class: "hep-cr-language-badge" }, Ke = ["disabled", "title"], We = { key: 0, width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, qe = { key: 1, class: "hep-cr-copied-text" }, Je = { class: "hep-cr-panel-header" }, Qe = { class: "hep-cr-output-tabs" }, et = { class: "hep-cr-output-actions" }, tt = { key: 0, class: "hep-cr-execution-time" }, nt = ["disabled", "title"], at = { key: 0, width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, rt = { key: 1, class: "hep-cr-copied-text" }, ot = { class: "hep-cr-output-content" }, st = { key: 0 }, it = { key: 1, class: "hep-cr-stderr" }, J = ce(oe({ __name: "CodeRunner", props: { pistonUrl: { default: "/api/piston" }, modelValue: { default: "" }, language: { default: "javascript" }, theme: { default: "light" }, themeColor: { default: "" }, showLanguageSelector: { type: Boolean, default: !0 }, showEditor: { type: Boolean, default: !0 }, editable: { type: Boolean, default: !0 }, executorLabel: { default: "运行" } }, emits: ["execute-start", "execute-end", "language-change", "update:language", "update:modelValue"], setup(u, { emit: a }) {
557
+ const l = u, s = a, h = N(l.modelValue);
558
558
  M(() => l.modelValue, (c) => {
559
559
  c !== h.value && (h.value = c);
560
560
  }), M(h, (c) => {
@@ -566,35 +566,35 @@ const Re = ["innerHTML"], _e = ["value", "disabled"], ce = (u, n) => {
566
566
  }), M(b, (c) => {
567
567
  s("update:language", c);
568
568
  });
569
- const i = P(() => {
569
+ const i = C(() => {
570
570
  if (!l.themeColor) return {};
571
- const c = l.theme === "dark", g = l.themeColor, k = function(L) {
571
+ const c = l.theme === "dark", g = l.themeColor, y = function(L) {
572
572
  const D = parseInt(L.replace("#", ""), 16);
573
573
  return (0.299 * (D >> 16 & 255) + 0.587 * (D >> 8 & 255) + 0.114 * (255 & D)) / 255 > 0.5;
574
574
  }(g) ? "#000" : "#fff";
575
- return { "--hep-cr-theme-color": g, "--hep-cr-theme-color-hover": A(g, c ? 20 : -20), "--hep-cr-tab-active-color": k };
575
+ return { "--hep-cr-theme-color": g, "--hep-cr-theme-color-hover": S(g, c ? 20 : -20), "--hep-cr-tab-active-color": y };
576
576
  });
577
- function A(c, g) {
578
- const k = parseInt(c.replace("#", ""), 16), L = Math.round(2.55 * g);
579
- return "#" + (16777216 + 65536 * Math.min(255, Math.max(0, (k >> 16) + L)) + 256 * Math.min(255, Math.max(0, (k >> 8 & 255) + L)) + Math.min(255, Math.max(0, (255 & k) + L))).toString(16).slice(1);
577
+ function S(c, g) {
578
+ const y = parseInt(c.replace("#", ""), 16), L = Math.round(2.55 * g);
579
+ return "#" + (16777216 + 65536 * Math.min(255, Math.max(0, (y >> 16) + L)) + 256 * Math.min(255, Math.max(0, (y >> 8 & 255) + L)) + Math.min(255, Math.max(0, (255 & y) + L))).toString(16).slice(1);
580
580
  }
581
- const S = P(() => new Fe({ pistonUrl: l.pistonUrl })), m = N([]), T = N(l.theme), v = N(""), w = N(""), y = N(!1), O = N(null), I = N("stdout"), t = N(null), e = N(!1), a = N(60), r = N(!1), o = N(!1), p = P(() => m.value.map((c) => ({ value: `${c.language}:${c.version}`, label: `${c.language.charAt(0).toUpperCase() + c.language.slice(1)} ${c.version}` }))), d = P(() => {
581
+ const v = C(() => new Fe({ pistonUrl: l.pistonUrl })), m = N([]), k = N(l.theme), F = N(""), R = N(""), w = N(!1), O = N(null), T = N("stdout"), t = N(null), e = N(!1), n = N(60), r = N(!1), o = N(!1), p = C(() => m.value.map((c) => ({ value: `${c.language}:${c.version}`, label: `${c.language.charAt(0).toUpperCase() + c.language.slice(1)} ${c.version}` }))), d = C(() => {
582
582
  const c = b.value;
583
583
  return c.includes(":") ? c.split(":")[0] : c;
584
584
  });
585
585
  function f() {
586
- T.value = T.value === "light" ? "dark" : "light";
586
+ k.value = k.value === "light" ? "dark" : "light";
587
587
  }
588
- async function R() {
589
- if (!y.value) {
590
- y.value = !0, v.value = "", w.value = "", O.value = null, t.value = null, I.value = "stdout", s("execute-start");
588
+ async function I() {
589
+ if (!w.value) {
590
+ w.value = !0, F.value = "", R.value = "", O.value = null, t.value = null, T.value = "stdout", s("execute-start");
591
591
  try {
592
- const c = await S.value.execute(d.value, h.value);
593
- v.value = c.output, w.value = c.stderr, O.value = c.executionTime || null, I.value = c.stderr ? "stderr" : "stdout", s("execute-end", c);
592
+ const c = await v.value.execute(d.value, h.value);
593
+ F.value = c.output, R.value = c.stderr, O.value = c.executionTime || null, T.value = c.stderr ? "stderr" : "stdout", s("execute-end", c);
594
594
  } catch (c) {
595
595
  t.value = c instanceof Error ? c.message : "Execution failed", s("execute-end", { success: !1, output: "", stderr: t.value, code: -1 });
596
596
  } finally {
597
- y.value = !1;
597
+ w.value = !1;
598
598
  }
599
599
  }
600
600
  }
@@ -604,7 +604,7 @@ const Re = ["innerHTML"], _e = ["value", "disabled"], ce = (u, n) => {
604
604
  }, 2e3);
605
605
  }
606
606
  async function G() {
607
- const c = I.value === "stdout" ? v.value : w.value;
607
+ const c = T.value === "stdout" ? F.value : R.value;
608
608
  await navigator.clipboard.writeText(c), o.value = !0, setTimeout(() => {
609
609
  o.value = !1;
610
610
  }, 2e3);
@@ -612,8 +612,8 @@ const Re = ["innerHTML"], _e = ["value", "disabled"], ce = (u, n) => {
612
612
  (async function() {
613
613
  e.value = !0, t.value = null;
614
614
  try {
615
- m.value = await S.value.getRuntimes();
616
- const c = d.value, g = m.value.find((k) => k.language === c);
615
+ m.value = await v.value.getRuntimes();
616
+ const c = d.value, g = m.value.find((y) => y.language === c);
617
617
  g && !b.value.includes(":") && (b.value = `${c}:${g.version}`);
618
618
  } catch (c) {
619
619
  t.value = c instanceof Error ? c.message : "Failed to load runtimes";
@@ -629,33 +629,37 @@ const Re = ["innerHTML"], _e = ["value", "disabled"], ce = (u, n) => {
629
629
  if (!j) return;
630
630
  const g = document.querySelector(".hep-cr-main");
631
631
  if (!g) return;
632
- const k = g.getBoundingClientRect(), L = (c.clientX - k.left) / k.width * 100;
633
- a.value = Math.max(20, Math.min(80, L));
632
+ const y = g.getBoundingClientRect(), L = (c.clientX - y.left) / y.width * 100;
633
+ n.value = Math.max(20, Math.min(80, L));
634
634
  }
635
635
  function Y() {
636
636
  j = !1, document.removeEventListener("mousemove", V), document.removeEventListener("mouseup", Y), document.body.style.cursor = "", document.body.style.userSelect = "";
637
637
  }
638
- const X = P(() => `hep-cr-runner-${T.value}`);
639
- return (c, g) => (x(), F("div", { class: B(["hep-cr-runner", X.value]), style: q(i.value) }, [E("div", Le, [E("div", Oe, [u.showLanguageSelector ? me((x(), F("select", { key: 0, "onUpdate:modelValue": g[0] || (g[0] = (k) => b.value = k), class: "hep-cr-language-select", disabled: y.value }, [e.value ? (x(), F("option", Pe, "加载中...")) : C("", !0), (x(!0), F(fe, null, be(p.value, (k) => (x(), F("option", { key: k.value, value: k.value }, $(k.label), 9, De))), 128))], 8, Ce)), [[Ee, b.value]]) : C("", !0)]), E("div", $e, [E("button", { class: "hep-cr-btn hep-cr-btn-run", disabled: y.value || e.value, onClick: R }, [y.value ? (x(), F("span", Ue)) : (x(), F("span", Be, "▶")), ve(" " + $(y.value ? "运行中..." : u.executorLabel), 1)], 8, Me), E("button", { class: "hep-cr-btn hep-cr-btn-theme", onClick: f, title: T.value === "light" ? "Switch to dark mode" : "Switch to light mode" }, [T.value === "light" ? (x(), F("svg", je, [...g[5] || (g[5] = [E("path", { d: "M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z" }, null, -1)])])) : (x(), F("svg", He, [...g[6] || (g[6] = [ye('<circle cx="12" cy="12" r="5" data-v-6f2b63de></circle><line x1="12" y1="1" x2="12" y2="3" data-v-6f2b63de></line><line x1="12" y1="21" x2="12" y2="23" data-v-6f2b63de></line><line x1="4.22" y1="4.22" x2="5.64" y2="5.64" data-v-6f2b63de></line><line x1="18.36" y1="18.36" x2="19.78" y2="19.78" data-v-6f2b63de></line><line x1="1" y1="12" x2="3" y2="12" data-v-6f2b63de></line><line x1="21" y1="12" x2="23" y2="12" data-v-6f2b63de></line><line x1="4.22" y1="19.78" x2="5.64" y2="18.36" data-v-6f2b63de></line><line x1="18.36" y1="5.64" x2="19.78" y2="4.22" data-v-6f2b63de></line>', 9)])]))], 8, Ge)])]), t.value ? (x(), F("div", ze, $(t.value), 1)) : C("", !0), E("div", Ve, [u.showEditor ? (x(), F("div", { key: 0, class: "hep-cr-editor-panel", style: q({ width: a.value + "%" }) }, [E("div", Ye, [g[8] || (g[8] = E("span", { class: "hep-cr-panel-title" }, "编辑器", -1)), E("div", Xe, [E("span", Ze, $(d.value), 1), E("button", { class: B(["hep-cr-btn-icon", { "hep-cr-btn-copied": r.value }]), disabled: r.value, onClick: _, title: r.value ? "已复制" : "复制" }, [r.value ? (x(), F("span", qe, "已复制")) : (x(), F("svg", We, [...g[7] || (g[7] = [E("rect", { x: "9", y: "9", width: "13", height: "13", rx: "2", ry: "2" }, null, -1), E("path", { d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" }, null, -1)])]))], 10, Ke)])]), re(Ne, { modelValue: h.value, "onUpdate:modelValue": g[1] || (g[1] = (k) => h.value = k), language: d.value, theme: T.value, disabled: !u.editable || y.value, onChange: g[2] || (g[2] = (k) => s("update:modelValue", k)) }, null, 8, ["modelValue", "language", "theme", "disabled"])], 4)) : C("", !0), u.showEditor ? (x(), F("div", { key: 1, class: "hep-cr-resize-handle", onMousedown: z }, [...g[9] || (g[9] = [E("div", { class: "hep-cr-resize-line" }, null, -1)])], 32)) : C("", !0), E("div", { class: "hep-cr-output-panel", style: q({ width: u.showEditor ? 100 - a.value + "%" : "100%" }) }, [E("div", Je, [E("div", Qe, [E("button", { class: B(["hep-cr-tab", { active: I.value === "stdout" }]), onClick: g[3] || (g[3] = (k) => I.value = "stdout") }, " 输出 ", 2), w.value ? (x(), F("button", { key: 0, class: B(["hep-cr-tab", "hep-cr-tab-error", { active: I.value === "stderr" }]), onClick: g[4] || (g[4] = (k) => I.value = "stderr") }, " 错误 ", 2)) : C("", !0)]), E("div", et, [O.value !== null ? (x(), F("span", tt, $(O.value) + "ms ", 1)) : C("", !0), E("button", { class: B(["hep-cr-btn-icon", { "hep-cr-btn-copied": o.value }]), disabled: o.value, onClick: G, title: o.value ? "已复制" : "复制" }, [o.value ? (x(), F("span", rt, "已复制")) : (x(), F("svg", at, [...g[10] || (g[10] = [E("rect", { x: "9", y: "9", width: "13", height: "13", rx: "2", ry: "2" }, null, -1), E("path", { d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" }, null, -1)])]))], 10, nt)])]), E("div", ot, [I.value === "stdout" ? (x(), F("pre", st, $(y.value ? "代码执行中..." : v.value || '点击"运行"执行代码'), 1)) : (x(), F("pre", it, $(w.value), 1))])], 4)])], 6));
640
- } }), [["__scopeId", "data-v-6f2b63de"]]), lt = { class: "hep-cr-dialog-header" }, ut = { class: "hep-cr-dialog-title" }, ct = { class: "hep-cr-dialog-body" }, dt = { key: 0, class: "hep-cr-dialog-footer" }, gt = oe({ __name: "CodeRunnerDialog", props: { modelValue: { type: Boolean, default: !1 }, title: { default: "代码执行器" }, width: { default: 800 }, pistonUrl: { default: "/api/piston" }, language: { default: "javascript" }, code: { default: "" }, theme: { default: "light" }, themeColor: { default: "" }, showLanguageSelector: { type: Boolean, default: !0 }, showEditor: { type: Boolean, default: !0 }, editable: { type: Boolean, default: !0 }, executorLabel: { default: "运行" } }, emits: ["update:modelValue", "update:language", "update:code", "close", "change"], setup(u, { expose: n, emit: l }) {
641
- const s = u, h = l, b = N(s.modelValue), i = N(s.language || "javascript"), A = N(s.code || ""), S = P(() => s.modelValue !== void 0 ? s.modelValue : b.value);
642
- function m() {
643
- b.value = !1, h("update:modelValue", !1), h("close");
638
+ const X = C(() => `hep-cr-runner-${k.value}`);
639
+ return (c, g) => (A(), x("div", { class: B(["hep-cr-runner", X.value]), style: q(i.value) }, [E("div", Le, [E("div", Oe, [u.showLanguageSelector ? me((A(), x("select", { key: 0, "onUpdate:modelValue": g[0] || (g[0] = (y) => b.value = y), class: "hep-cr-language-select", disabled: w.value }, [e.value ? (A(), x("option", Pe, "加载中...")) : P("", !0), (A(!0), x(fe, null, be(p.value, (y) => (A(), x("option", { key: y.value, value: y.value }, $(y.label), 9, De))), 128))], 8, Ce)), [[Ee, b.value]]) : P("", !0)]), E("div", $e, [E("button", { class: "hep-cr-btn hep-cr-btn-run", disabled: w.value || e.value, onClick: I }, [w.value ? (A(), x("span", Ue)) : (A(), x("span", Be, "▶")), ve(" " + $(w.value ? "运行中..." : u.executorLabel), 1)], 8, Me), E("button", { class: "hep-cr-btn hep-cr-btn-theme", onClick: f, title: k.value === "light" ? "Switch to dark mode" : "Switch to light mode" }, [k.value === "light" ? (A(), x("svg", je, [...g[5] || (g[5] = [E("path", { d: "M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z" }, null, -1)])])) : (A(), x("svg", He, [...g[6] || (g[6] = [ye('<circle cx="12" cy="12" r="5" data-v-6f2b63de></circle><line x1="12" y1="1" x2="12" y2="3" data-v-6f2b63de></line><line x1="12" y1="21" x2="12" y2="23" data-v-6f2b63de></line><line x1="4.22" y1="4.22" x2="5.64" y2="5.64" data-v-6f2b63de></line><line x1="18.36" y1="18.36" x2="19.78" y2="19.78" data-v-6f2b63de></line><line x1="1" y1="12" x2="3" y2="12" data-v-6f2b63de></line><line x1="21" y1="12" x2="23" y2="12" data-v-6f2b63de></line><line x1="4.22" y1="19.78" x2="5.64" y2="18.36" data-v-6f2b63de></line><line x1="18.36" y1="5.64" x2="19.78" y2="4.22" data-v-6f2b63de></line>', 9)])]))], 8, Ge)])]), t.value ? (A(), x("div", ze, $(t.value), 1)) : P("", !0), E("div", Ve, [u.showEditor ? (A(), x("div", { key: 0, class: "hep-cr-editor-panel", style: q({ width: n.value + "%" }) }, [E("div", Ye, [g[8] || (g[8] = E("span", { class: "hep-cr-panel-title" }, "编辑器", -1)), E("div", Xe, [E("span", Ze, $(d.value), 1), E("button", { class: B(["hep-cr-btn-icon", { "hep-cr-btn-copied": r.value }]), disabled: r.value, onClick: _, title: r.value ? "已复制" : "复制" }, [r.value ? (A(), x("span", qe, "已复制")) : (A(), x("svg", We, [...g[7] || (g[7] = [E("rect", { x: "9", y: "9", width: "13", height: "13", rx: "2", ry: "2" }, null, -1), E("path", { d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" }, null, -1)])]))], 10, Ke)])]), re(Ne, { modelValue: h.value, "onUpdate:modelValue": g[1] || (g[1] = (y) => h.value = y), language: d.value, theme: k.value, disabled: !u.editable || w.value, onChange: g[2] || (g[2] = (y) => s("update:modelValue", y)) }, null, 8, ["modelValue", "language", "theme", "disabled"])], 4)) : P("", !0), u.showEditor ? (A(), x("div", { key: 1, class: "hep-cr-resize-handle", onMousedown: z }, [...g[9] || (g[9] = [E("div", { class: "hep-cr-resize-line" }, null, -1)])], 32)) : P("", !0), E("div", { class: "hep-cr-output-panel", style: q({ width: u.showEditor ? 100 - n.value + "%" : "100%" }) }, [E("div", Je, [E("div", Qe, [E("button", { class: B(["hep-cr-tab", { active: T.value === "stdout" }]), onClick: g[3] || (g[3] = (y) => T.value = "stdout") }, " 输出 ", 2), R.value ? (A(), x("button", { key: 0, class: B(["hep-cr-tab", "hep-cr-tab-error", { active: T.value === "stderr" }]), onClick: g[4] || (g[4] = (y) => T.value = "stderr") }, " 错误 ", 2)) : P("", !0)]), E("div", et, [O.value !== null ? (A(), x("span", tt, $(O.value) + "ms ", 1)) : P("", !0), E("button", { class: B(["hep-cr-btn-icon", { "hep-cr-btn-copied": o.value }]), disabled: o.value, onClick: G, title: o.value ? "已复制" : "复制" }, [o.value ? (A(), x("span", rt, "已复制")) : (A(), x("svg", at, [...g[10] || (g[10] = [E("rect", { x: "9", y: "9", width: "13", height: "13", rx: "2", ry: "2" }, null, -1), E("path", { d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" }, null, -1)])]))], 10, nt)])]), E("div", ot, [T.value === "stdout" ? (A(), x("pre", st, $(w.value ? "代码执行中..." : F.value || '点击"运行"执行代码'), 1)) : (A(), x("pre", it, $(R.value), 1))])], 4)])], 6));
640
+ } }), [["__scopeId", "data-v-6f2b63de"]]), lt = { class: "hep-cr-dialog-header" }, ut = { class: "hep-cr-dialog-title" }, ct = { class: "hep-cr-dialog-body" }, dt = { key: 0, class: "hep-cr-dialog-footer" }, gt = oe({ __name: "CodeRunnerDialog", props: { modelValue: { type: Boolean, default: !1 }, title: { default: "代码执行器" }, width: { default: 800 }, pistonUrl: { default: "/api/piston" }, language: { default: "javascript" }, code: { default: "" }, theme: { default: "light" }, themeColor: { default: "" }, showLanguageSelector: { type: Boolean, default: !0 }, showEditor: { type: Boolean, default: !0 }, editable: { type: Boolean, default: !0 }, executorLabel: { default: "运行" } }, emits: ["update:modelValue", "update:language", "update:code", "close", "change"], setup(u, { expose: a, emit: l }) {
641
+ const s = u, h = l, b = N(s.language || "javascript"), i = N(s.code || ""), S = C(() => s.language !== void 0), v = C(() => s.code !== void 0), m = C(() => S.value ? s.language : b.value), k = C(() => v.value ? s.code : i.value);
642
+ M(() => s.language, (e) => {
643
+ e !== void 0 && (b.value = e);
644
+ }), M(() => s.code, (e) => {
645
+ e !== void 0 && (i.value = e);
646
+ });
647
+ const F = N(s.modelValue), R = C(() => s.modelValue !== void 0 ? s.modelValue : F.value);
648
+ function w() {
649
+ F.value = !1, h("update:modelValue", !1), h("close");
650
+ }
651
+ function O(e) {
652
+ e.target === e.currentTarget && w();
653
+ }
654
+ function T(e) {
655
+ h("update:language", e), S.value || (b.value = e);
644
656
  }
645
- function T(v) {
646
- v.target === v.currentTarget && m();
657
+ function t(e) {
658
+ h("update:code", e), h("change", e), v.value || (i.value = e);
647
659
  }
648
- return M(() => s.modelValue, (v) => {
649
- v !== void 0 && (b.value = v);
650
- }), M(() => s.language, (v) => {
651
- v && (i.value = v);
652
- }), M(() => s.code, (v) => {
653
- v !== void 0 && (A.value = v);
654
- }), n({ close: m }), (v, w) => (x(), ke(Se, { to: "body" }, [re(we, { name: "hep-cr-dialog-fade" }, { default: Ae(() => [S.value ? (x(), F("div", { key: 0, class: "hep-cr-dialog-overlay", onClick: T }, [E("div", { class: "hep-cr-dialog-container", style: q({ width: typeof u.width == "number" ? u.width + "px" : u.width }) }, [E("div", lt, [E("h3", ut, $(u.title), 1), E("button", { class: "hep-cr-dialog-close", onClick: m }, [...w[4] || (w[4] = [E("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, [E("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), E("line", { x1: "6", y1: "6", x2: "18", y2: "18" })], -1)])])]), E("div", ct, [re(J, { language: i.value, "onUpdate:language": [w[0] || (w[0] = (y) => i.value = y), w[2] || (w[2] = (y) => {
655
- h("update:language", y);
656
- })], modelValue: A.value, "onUpdate:modelValue": [w[1] || (w[1] = (y) => A.value = y), w[3] || (w[3] = (y) => {
657
- h("update:code", y), h("change", y);
658
- })], pistonUrl: u.pistonUrl, theme: u.theme, themeColor: u.themeColor, showLanguageSelector: u.showLanguageSelector, showEditor: u.showEditor, editable: u.editable, executorLabel: u.executorLabel }, null, 8, ["language", "modelValue", "pistonUrl", "theme", "themeColor", "showLanguageSelector", "showEditor", "editable", "executorLabel"])]), v.$slots.footer ? (x(), F("div", dt, [Te(v.$slots, "footer", { close: m })])) : C("", !0)], 4)])) : C("", !0)]), _: 3 })]));
660
+ return M(() => s.modelValue, (e) => {
661
+ e !== void 0 && (F.value = e);
662
+ }), a({ close: w }), (e, n) => (A(), ke(Se, { to: "body" }, [re(we, { name: "hep-cr-dialog-fade" }, { default: Ae(() => [R.value ? (A(), x("div", { key: 0, class: "hep-cr-dialog-overlay", onClick: O }, [E("div", { class: "hep-cr-dialog-container", style: q({ width: typeof u.width == "number" ? u.width + "px" : u.width }) }, [E("div", lt, [E("h3", ut, $(u.title), 1), E("button", { class: "hep-cr-dialog-close", onClick: w }, [...n[2] || (n[2] = [E("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, [E("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), E("line", { x1: "6", y1: "6", x2: "18", y2: "18" })], -1)])])]), E("div", ct, [re(J, { language: m.value, "onUpdate:language": [n[0] || (n[0] = (r) => m.value = r), T], modelValue: k.value, "onUpdate:modelValue": [n[1] || (n[1] = (r) => k.value = r), t], pistonUrl: u.pistonUrl, theme: u.theme, themeColor: u.themeColor, showLanguageSelector: u.showLanguageSelector, showEditor: u.showEditor, editable: u.editable, executorLabel: u.executorLabel }, null, 8, ["language", "modelValue", "pistonUrl", "theme", "themeColor", "showLanguageSelector", "showEditor", "editable", "executorLabel"])]), e.$slots.footer ? (A(), x("div", dt, [Te(e.$slots, "footer", { close: w })])) : P("", !0)], 4)])) : P("", !0)]), _: 3 })]));
659
663
  } });
660
664
  J.install = (u) => {
661
665
  u.component("CodeRunner", J);