@hep-code-runner/vue3 1.3.0 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,9 +1,9 @@
1
- import { defineComponent as oe, useCssVars as be, ref as L, computed as G, onMounted as pe, watch as le, openBlock as _, createElementBlock as R, normalizeClass as W, createElementVNode as E, withDirectives as Ee, createCommentVNode as U, Fragment as ve, renderList as ye, toDisplayString as H, vModelSelect as Ae, createTextVNode as Se, normalizeStyle as se, createVNode as ie, createBlock as we, Teleport as Te, Transition as ke, withCtx as Ie, normalizeProps as Fe, guardReactiveProps as _e, renderSlot as Re } from "vue";
2
- var xe = Object.defineProperty, Oe = (o, d, a) => d in o ? xe(o, d, { enumerable: !0, configurable: !0, writable: !0, value: a }) : o[d] = a, ce = (o, d, a) => Oe(o, typeof d != "symbol" ? d + "" : d, a);
1
+ import { defineComponent as oe, useCssVars as me, ref as C, computed as G, openBlock as R, createElementBlock as x, normalizeClass as W, createElementVNode as m, watch as de, onMounted as be, withDirectives as Ee, createCommentVNode as U, Fragment as ve, renderList as ye, toDisplayString as H, vModelSelect as Ae, createTextVNode as Se, normalizeStyle as se, createVNode as ie, createBlock as we, Teleport as Te, Transition as ke, withCtx as Ie, normalizeProps as Fe, guardReactiveProps as _e, renderSlot as Re } from "vue";
2
+ var xe = Object.defineProperty, Oe = (o, d, a) => d in o ? xe(o, d, { enumerable: !0, configurable: !0, writable: !0, value: a }) : o[d] = a, ue = (o, d, a) => Oe(o, typeof d != "symbol" ? d + "" : d, a);
3
3
  let ae = null;
4
4
  class Ne {
5
5
  constructor(d = {}) {
6
- ce(this, "baseUrl"), ce(this, "timeout"), this.baseUrl = d.pistonUrl || "/api/piston", this.timeout = d.timeout || 3e3;
6
+ ue(this, "baseUrl"), ue(this, "timeout"), this.baseUrl = d.pistonUrl || "/api/piston", this.timeout = d.timeout || 3e3;
7
7
  }
8
8
  async getRuntimes(d = !1) {
9
9
  if (ae && !d)
@@ -24,20 +24,20 @@ class Ne {
24
24
  }
25
25
  }
26
26
  async execute(d, a, l = {}) {
27
- const h = (await this.getRuntimes()).find(
28
- (f) => {
29
- var m;
30
- return f.language.toLowerCase() === d.toLowerCase() || ((m = f.aliases) == null ? void 0 : m.some((k) => k.toLowerCase() === d.toLowerCase()));
27
+ const p = (await this.getRuntimes()).find(
28
+ (b) => {
29
+ var g;
30
+ return b.language.toLowerCase() === d.toLowerCase() || ((g = b.aliases) == null ? void 0 : g.some((I) => I.toLowerCase() === d.toLowerCase()));
31
31
  }
32
32
  );
33
- if (!h)
33
+ if (!p)
34
34
  throw new Error(`Language '${d}' is not supported`);
35
- const y = this.getFileName(d), A = {
36
- language: h.language,
37
- version: l.version || h.version,
35
+ const v = this.getFileName(d), A = {
36
+ language: p.language,
37
+ version: l.version || p.version,
38
38
  files: [
39
39
  {
40
- name: y,
40
+ name: v,
41
41
  content: a
42
42
  }
43
43
  ],
@@ -45,37 +45,37 @@ class Ne {
45
45
  args: l.args || [],
46
46
  run_timeout: l.runTimeout || this.timeout,
47
47
  compile_timeout: this.timeout
48
- }, s = Date.now();
48
+ }, r = Date.now();
49
49
  try {
50
- const f = await fetch(`${this.baseUrl}/execute`, {
50
+ const b = await fetch(`${this.baseUrl}/execute`, {
51
51
  method: "POST",
52
52
  headers: {
53
53
  "Content-Type": "application/json"
54
54
  },
55
55
  body: JSON.stringify(A)
56
56
  });
57
- if (!f.ok)
58
- throw new Error(`Execute failed: ${f.statusText}`);
59
- const m = await f.json(), k = Date.now() - s, N = m.run.stdout || "", I = m.run.stderr || "";
57
+ if (!b.ok)
58
+ throw new Error(`Execute failed: ${b.statusText}`);
59
+ const g = await b.json(), I = Date.now() - r, L = g.run.stdout || "", F = g.run.stderr || "";
60
60
  return {
61
- success: m.run.code === 0,
62
- output: N,
63
- stderr: I,
64
- code: m.run.code,
65
- executionTime: k,
66
- compile: m.compile ? {
67
- stdout: m.compile.stdout || "",
68
- stderr: m.compile.stderr || "",
69
- code: m.compile.code
61
+ success: g.run.code === 0,
62
+ output: L,
63
+ stderr: F,
64
+ code: g.run.code,
65
+ executionTime: I,
66
+ compile: g.compile ? {
67
+ stdout: g.compile.stdout || "",
68
+ stderr: g.compile.stderr || "",
69
+ code: g.compile.code
70
70
  } : void 0
71
71
  };
72
- } catch (f) {
72
+ } catch (b) {
73
73
  return {
74
74
  success: !1,
75
75
  output: "",
76
- stderr: f instanceof Error ? f.message : "Unknown error",
76
+ stderr: b instanceof Error ? b.message : "Unknown error",
77
77
  code: -1,
78
- executionTime: Date.now() - s
78
+ executionTime: Date.now() - r
79
79
  };
80
80
  }
81
81
  }
@@ -212,11 +212,11 @@ function ne(o) {
212
212
  return Le[d] || `// ${o}
213
213
  // Write your code here`;
214
214
  }
215
- var de = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
215
+ var ce = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
216
216
  function Ce(o) {
217
217
  return o && o.__esModule && Object.prototype.hasOwnProperty.call(o, "default") ? o.default : o;
218
218
  }
219
- var ge = { exports: {} };
219
+ var pe = { exports: {} };
220
220
  (function(o) {
221
221
  var d = typeof window < "u" ? window : typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? self : {};
222
222
  /**
@@ -228,7 +228,7 @@ var ge = { exports: {} };
228
228
  * @public
229
229
  */
230
230
  var a = function(l) {
231
- var h = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, y = 0, A = {}, s = {
231
+ var p = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, v = 0, A = {}, r = {
232
232
  /**
233
233
  * By default, Prism will attempt to highlight all code elements (by calling {@link Prism.highlightAll}) on the
234
234
  * current page after the page finished loading. This might be a problem if e.g. you wanted to asynchronously load
@@ -284,7 +284,7 @@ var ge = { exports: {} };
284
284
  */
285
285
  util: {
286
286
  encode: function t(e) {
287
- return e instanceof f ? new f(e.type, t(e.content), e.alias) : Array.isArray(e) ? e.map(t) : e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/\u00a0/g, " ");
287
+ return e instanceof b ? new b(e.type, t(e.content), e.alias) : Array.isArray(e) ? e.map(t) : e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/\u00a0/g, " ");
288
288
  },
289
289
  /**
290
290
  * Returns the name of the type of the given value.
@@ -312,7 +312,7 @@ var ge = { exports: {} };
312
312
  * @returns {number}
313
313
  */
314
314
  objId: function(t) {
315
- return t.__id || Object.defineProperty(t, "__id", { value: ++y }), t.__id;
315
+ return t.__id || Object.defineProperty(t, "__id", { value: ++v }), t.__id;
316
316
  },
317
317
  /**
318
318
  * Creates a deep clone of the given object.
@@ -326,26 +326,26 @@ var ge = { exports: {} };
326
326
  */
327
327
  clone: function t(e, n) {
328
328
  n = n || {};
329
- var r, i;
330
- switch (s.util.type(e)) {
329
+ var s, i;
330
+ switch (r.util.type(e)) {
331
331
  case "Object":
332
- if (i = s.util.objId(e), n[i])
332
+ if (i = r.util.objId(e), n[i])
333
333
  return n[i];
334
- r = /** @type {Record<string, any>} */
335
- {}, n[i] = r;
334
+ s = /** @type {Record<string, any>} */
335
+ {}, n[i] = s;
336
336
  for (var c in e)
337
- e.hasOwnProperty(c) && (r[c] = t(e[c], n));
337
+ e.hasOwnProperty(c) && (s[c] = t(e[c], n));
338
338
  return (
339
339
  /** @type {any} */
340
- r
340
+ s
341
341
  );
342
342
  case "Array":
343
- return i = s.util.objId(e), n[i] ? n[i] : (r = [], n[i] = r, /** @type {Array} */
343
+ return i = r.util.objId(e), n[i] ? n[i] : (s = [], n[i] = s, /** @type {Array} */
344
344
  /** @type {any} */
345
- e.forEach(function(b, u) {
346
- r[u] = t(b, n);
345
+ e.forEach(function(f, u) {
346
+ s[u] = t(f, n);
347
347
  }), /** @type {any} */
348
- r);
348
+ s);
349
349
  default:
350
350
  return e;
351
351
  }
@@ -360,7 +360,7 @@ var ge = { exports: {} };
360
360
  */
361
361
  getLanguage: function(t) {
362
362
  for (; t; ) {
363
- var e = h.exec(t.className);
363
+ var e = p.exec(t.className);
364
364
  if (e)
365
365
  return e[1].toLowerCase();
366
366
  t = t.parentElement;
@@ -375,7 +375,7 @@ var ge = { exports: {} };
375
375
  * @returns {void}
376
376
  */
377
377
  setLanguage: function(t, e) {
378
- t.className = t.className.replace(RegExp(h, "gi"), ""), t.classList.add("language-" + e);
378
+ t.className = t.className.replace(RegExp(p, "gi"), ""), t.classList.add("language-" + e);
379
379
  },
380
380
  /**
381
381
  * Returns the script element that is currently executing.
@@ -394,8 +394,8 @@ var ge = { exports: {} };
394
394
  );
395
395
  try {
396
396
  throw new Error();
397
- } catch (r) {
398
- var t = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack) || [])[1];
397
+ } catch (s) {
398
+ var t = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(s.stack) || [])[1];
399
399
  if (t) {
400
400
  var e = document.getElementsByTagName("script");
401
401
  for (var n in e)
@@ -425,11 +425,11 @@ var ge = { exports: {} };
425
425
  * @returns {boolean}
426
426
  */
427
427
  isActive: function(t, e, n) {
428
- for (var r = "no-" + e; t; ) {
428
+ for (var s = "no-" + e; t; ) {
429
429
  var i = t.classList;
430
430
  if (i.contains(e))
431
431
  return !0;
432
- if (i.contains(r))
432
+ if (i.contains(s))
433
433
  return !1;
434
434
  t = t.parentElement;
435
435
  }
@@ -480,9 +480,9 @@ var ge = { exports: {} };
480
480
  * });
481
481
  */
482
482
  extend: function(t, e) {
483
- var n = s.util.clone(s.languages[t]);
484
- for (var r in e)
485
- n[r] = e[r];
483
+ var n = r.util.clone(r.languages[t]);
484
+ for (var s in e)
485
+ n[s] = e[s];
486
486
  return n;
487
487
  },
488
488
  /**
@@ -560,31 +560,31 @@ var ge = { exports: {} };
560
560
  * @returns {Grammar} The new grammar object.
561
561
  * @public
562
562
  */
563
- insertBefore: function(t, e, n, r) {
564
- r = r || /** @type {any} */
565
- s.languages;
566
- var i = r[t], c = {};
567
- for (var b in i)
568
- if (i.hasOwnProperty(b)) {
569
- if (b == e)
563
+ insertBefore: function(t, e, n, s) {
564
+ s = s || /** @type {any} */
565
+ r.languages;
566
+ var i = s[t], c = {};
567
+ for (var f in i)
568
+ if (i.hasOwnProperty(f)) {
569
+ if (f == e)
570
570
  for (var u in n)
571
571
  n.hasOwnProperty(u) && (c[u] = n[u]);
572
- n.hasOwnProperty(b) || (c[b] = i[b]);
572
+ n.hasOwnProperty(f) || (c[f] = i[f]);
573
573
  }
574
- var w = r[t];
575
- return r[t] = c, s.languages.DFS(s.languages, function(F, P) {
576
- P === w && F != t && (this[F] = c);
574
+ var S = s[t];
575
+ return s[t] = c, r.languages.DFS(r.languages, function(_, P) {
576
+ P === S && _ != t && (this[_] = c);
577
577
  }), c;
578
578
  },
579
579
  // Traverse a language definition with Depth First Search
580
- DFS: function t(e, n, r, i) {
580
+ DFS: function t(e, n, s, i) {
581
581
  i = i || {};
582
- var c = s.util.objId;
583
- for (var b in e)
584
- if (e.hasOwnProperty(b)) {
585
- n.call(e, b, e[b], r || b);
586
- var u = e[b], w = s.util.type(u);
587
- w === "Object" && !i[c(u)] ? (i[c(u)] = !0, t(u, n, null, i)) : w === "Array" && !i[c(u)] && (i[c(u)] = !0, t(u, n, b, i));
582
+ var c = r.util.objId;
583
+ for (var f in e)
584
+ if (e.hasOwnProperty(f)) {
585
+ n.call(e, f, e[f], s || f);
586
+ var u = e[f], S = r.util.type(u);
587
+ S === "Object" && !i[c(u)] ? (i[c(u)] = !0, t(u, n, null, i)) : S === "Array" && !i[c(u)] && (i[c(u)] = !0, t(u, n, f, i));
588
588
  }
589
589
  }
590
590
  },
@@ -602,7 +602,7 @@ var ge = { exports: {} };
602
602
  * @public
603
603
  */
604
604
  highlightAll: function(t, e) {
605
- s.highlightAllUnder(document, t, e);
605
+ r.highlightAllUnder(document, t, e);
606
606
  },
607
607
  /**
608
608
  * Fetches all the descendants of `container` that have a `.language-xxxx` class and then calls
@@ -620,14 +620,14 @@ var ge = { exports: {} };
620
620
  * @public
621
621
  */
622
622
  highlightAllUnder: function(t, e, n) {
623
- var r = {
623
+ var s = {
624
624
  callback: n,
625
625
  container: t,
626
626
  selector: 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'
627
627
  };
628
- s.hooks.run("before-highlightall", r), r.elements = Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)), s.hooks.run("before-all-elements-highlight", r);
629
- for (var i = 0, c; c = r.elements[i++]; )
630
- s.highlightElement(c, e === !0, r.callback);
628
+ r.hooks.run("before-highlightall", s), s.elements = Array.prototype.slice.apply(s.container.querySelectorAll(s.selector)), r.hooks.run("before-all-elements-highlight", s);
629
+ for (var i = 0, c; c = s.elements[i++]; )
630
+ r.highlightElement(c, e === !0, s.callback);
631
631
  },
632
632
  /**
633
633
  * Highlights the code inside a single element.
@@ -658,38 +658,38 @@ var ge = { exports: {} };
658
658
  * @public
659
659
  */
660
660
  highlightElement: function(t, e, n) {
661
- var r = s.util.getLanguage(t), i = s.languages[r];
662
- s.util.setLanguage(t, r);
661
+ var s = r.util.getLanguage(t), i = r.languages[s];
662
+ r.util.setLanguage(t, s);
663
663
  var c = t.parentElement;
664
- c && c.nodeName.toLowerCase() === "pre" && s.util.setLanguage(c, r);
665
- var b = t.textContent, u = {
664
+ c && c.nodeName.toLowerCase() === "pre" && r.util.setLanguage(c, s);
665
+ var f = t.textContent, u = {
666
666
  element: t,
667
- language: r,
667
+ language: s,
668
668
  grammar: i,
669
- code: b
669
+ code: f
670
670
  };
671
- function w(P) {
672
- u.highlightedCode = P, s.hooks.run("before-insert", u), u.element.innerHTML = u.highlightedCode, s.hooks.run("after-highlight", u), s.hooks.run("complete", u), n && n.call(u.element);
671
+ function S(P) {
672
+ u.highlightedCode = P, r.hooks.run("before-insert", u), u.element.innerHTML = u.highlightedCode, r.hooks.run("after-highlight", u), r.hooks.run("complete", u), n && n.call(u.element);
673
673
  }
674
- if (s.hooks.run("before-sanity-check", u), c = u.element.parentElement, c && c.nodeName.toLowerCase() === "pre" && !c.hasAttribute("tabindex") && c.setAttribute("tabindex", "0"), !u.code) {
675
- s.hooks.run("complete", u), n && n.call(u.element);
674
+ if (r.hooks.run("before-sanity-check", u), c = u.element.parentElement, c && c.nodeName.toLowerCase() === "pre" && !c.hasAttribute("tabindex") && c.setAttribute("tabindex", "0"), !u.code) {
675
+ r.hooks.run("complete", u), n && n.call(u.element);
676
676
  return;
677
677
  }
678
- if (s.hooks.run("before-highlight", u), !u.grammar) {
679
- w(s.util.encode(u.code));
678
+ if (r.hooks.run("before-highlight", u), !u.grammar) {
679
+ S(r.util.encode(u.code));
680
680
  return;
681
681
  }
682
682
  if (e && l.Worker) {
683
- var F = new Worker(s.filename);
684
- F.onmessage = function(P) {
685
- w(P.data);
686
- }, F.postMessage(JSON.stringify({
683
+ var _ = new Worker(r.filename);
684
+ _.onmessage = function(P) {
685
+ S(P.data);
686
+ }, _.postMessage(JSON.stringify({
687
687
  language: u.language,
688
688
  code: u.code,
689
689
  immediateClose: !0
690
690
  }));
691
691
  } else
692
- w(s.highlight(u.code, u.grammar, u.language));
692
+ S(r.highlight(u.code, u.grammar, u.language));
693
693
  },
694
694
  /**
695
695
  * Low-level function, only use if you know what you’re doing. It accepts a string of text as input
@@ -712,14 +712,14 @@ var ge = { exports: {} };
712
712
  * Prism.highlight('var foo = true;', Prism.languages.javascript, 'javascript');
713
713
  */
714
714
  highlight: function(t, e, n) {
715
- var r = {
715
+ var s = {
716
716
  code: t,
717
717
  grammar: e,
718
718
  language: n
719
719
  };
720
- if (s.hooks.run("before-tokenize", r), !r.grammar)
721
- throw new Error('The language "' + r.language + '" has no grammar.');
722
- return r.tokens = s.tokenize(r.code, r.grammar), s.hooks.run("after-tokenize", r), f.stringify(s.util.encode(r.tokens), r.language);
720
+ if (r.hooks.run("before-tokenize", s), !s.grammar)
721
+ throw new Error('The language "' + s.language + '" has no grammar.');
722
+ return s.tokens = r.tokenize(s.code, s.grammar), r.hooks.run("after-tokenize", s), b.stringify(r.util.encode(s.tokens), s.language);
723
723
  },
724
724
  /**
725
725
  * This is the heart of Prism, and the most low-level function you can use. It accepts a string of text as input
@@ -748,12 +748,12 @@ var ge = { exports: {} };
748
748
  tokenize: function(t, e) {
749
749
  var n = e.rest;
750
750
  if (n) {
751
- for (var r in n)
752
- e[r] = n[r];
751
+ for (var s in n)
752
+ e[s] = n[s];
753
753
  delete e.rest;
754
754
  }
755
- var i = new N();
756
- return I(i, i.head, t), k(t, i, e, i.head, 0), D(i);
755
+ var i = new L();
756
+ return F(i, i.head, t), I(t, i, e, i.head, 0), T(i);
757
757
  },
758
758
  /**
759
759
  * @namespace
@@ -775,7 +775,7 @@ var ge = { exports: {} };
775
775
  * @public
776
776
  */
777
777
  add: function(t, e) {
778
- var n = s.hooks.all;
778
+ var n = r.hooks.all;
779
779
  n[t] = n[t] || [], n[t].push(e);
780
780
  },
781
781
  /**
@@ -788,26 +788,26 @@ var ge = { exports: {} };
788
788
  * @public
789
789
  */
790
790
  run: function(t, e) {
791
- var n = s.hooks.all[t];
791
+ var n = r.hooks.all[t];
792
792
  if (!(!n || !n.length))
793
- for (var r = 0, i; i = n[r++]; )
793
+ for (var s = 0, i; i = n[s++]; )
794
794
  i(e);
795
795
  }
796
796
  },
797
- Token: f
797
+ Token: b
798
798
  };
799
- l.Prism = s;
800
- function f(t, e, n, r) {
801
- this.type = t, this.content = e, this.alias = n, this.length = (r || "").length | 0;
799
+ l.Prism = r;
800
+ function b(t, e, n, s) {
801
+ this.type = t, this.content = e, this.alias = n, this.length = (s || "").length | 0;
802
802
  }
803
- f.stringify = function t(e, n) {
803
+ b.stringify = function t(e, n) {
804
804
  if (typeof e == "string")
805
805
  return e;
806
806
  if (Array.isArray(e)) {
807
- var r = "";
808
- return e.forEach(function(w) {
809
- r += t(w, n);
810
- }), r;
807
+ var s = "";
808
+ return e.forEach(function(S) {
809
+ s += t(S, n);
810
+ }), s;
811
811
  }
812
812
  var i = {
813
813
  type: e.type,
@@ -817,105 +817,105 @@ var ge = { exports: {} };
817
817
  attributes: {},
818
818
  language: n
819
819
  }, c = e.alias;
820
- c && (Array.isArray(c) ? Array.prototype.push.apply(i.classes, c) : i.classes.push(c)), s.hooks.run("wrap", i);
821
- var b = "";
820
+ c && (Array.isArray(c) ? Array.prototype.push.apply(i.classes, c) : i.classes.push(c)), r.hooks.run("wrap", i);
821
+ var f = "";
822
822
  for (var u in i.attributes)
823
- b += " " + u + '="' + (i.attributes[u] || "").replace(/"/g, "&quot;") + '"';
824
- return "<" + i.tag + ' class="' + i.classes.join(" ") + '"' + b + ">" + i.content + "</" + i.tag + ">";
823
+ f += " " + u + '="' + (i.attributes[u] || "").replace(/"/g, "&quot;") + '"';
824
+ return "<" + i.tag + ' class="' + i.classes.join(" ") + '"' + f + ">" + i.content + "</" + i.tag + ">";
825
825
  };
826
- function m(t, e, n, r) {
826
+ function g(t, e, n, s) {
827
827
  t.lastIndex = e;
828
828
  var i = t.exec(n);
829
- if (i && r && i[1]) {
829
+ if (i && s && i[1]) {
830
830
  var c = i[1].length;
831
831
  i.index += c, i[0] = i[0].slice(c);
832
832
  }
833
833
  return i;
834
834
  }
835
- function k(t, e, n, r, i, c) {
836
- for (var b in n)
837
- if (!(!n.hasOwnProperty(b) || !n[b])) {
838
- var u = n[b];
835
+ function I(t, e, n, s, i, c) {
836
+ for (var f in n)
837
+ if (!(!n.hasOwnProperty(f) || !n[f])) {
838
+ var u = n[f];
839
839
  u = Array.isArray(u) ? u : [u];
840
- for (var w = 0; w < u.length; ++w) {
841
- if (c && c.cause == b + "," + w)
840
+ for (var S = 0; S < u.length; ++S) {
841
+ if (c && c.cause == f + "," + S)
842
842
  return;
843
- var F = u[w], P = F.inside, V = !!F.lookbehind, v = !!F.greedy, T = F.alias;
844
- if (v && !F.pattern.global) {
845
- var x = F.pattern.toString().match(/[imsuy]*$/)[0];
846
- F.pattern = RegExp(F.pattern.source, x + "g");
843
+ var _ = u[S], P = _.inside, V = !!_.lookbehind, E = !!_.greedy, w = _.alias;
844
+ if (E && !_.pattern.global) {
845
+ var O = _.pattern.toString().match(/[imsuy]*$/)[0];
846
+ _.pattern = RegExp(_.pattern.source, O + "g");
847
847
  }
848
- for (var Y = F.pattern || F, O = r.next, M = i; O !== e.tail && !(c && M >= c.reach); M += O.value.length, O = O.next) {
849
- var z = O.value;
848
+ for (var Y = _.pattern || _, N = s.next, M = i; N !== e.tail && !(c && M >= c.reach); M += N.value.length, N = N.next) {
849
+ var z = N.value;
850
850
  if (e.length > t.length)
851
851
  return;
852
- if (!(z instanceof f)) {
852
+ if (!(z instanceof b)) {
853
853
  var X = 1, $;
854
- if (v) {
855
- if ($ = m(Y, M, t, V), !$ || $.index >= t.length)
854
+ if (E) {
855
+ if ($ = g(Y, M, t, V), !$ || $.index >= t.length)
856
856
  break;
857
- var Z = $.index, fe = $.index + $[0].length, B = M;
858
- for (B += O.value.length; Z >= B; )
859
- O = O.next, B += O.value.length;
860
- if (B -= O.value.length, M = B, O.value instanceof f)
857
+ var Z = $.index, he = $.index + $[0].length, B = M;
858
+ for (B += N.value.length; Z >= B; )
859
+ N = N.next, B += N.value.length;
860
+ if (B -= N.value.length, M = B, N.value instanceof b)
861
861
  continue;
862
- for (var j = O; j !== e.tail && (B < fe || typeof j.value == "string"); j = j.next)
862
+ for (var j = N; j !== e.tail && (B < he || typeof j.value == "string"); j = j.next)
863
863
  X++, B += j.value.length;
864
864
  X--, z = t.slice(M, B), $.index -= M;
865
- } else if ($ = m(Y, 0, z, V), !$)
865
+ } else if ($ = g(Y, 0, z, V), !$)
866
866
  continue;
867
- var Z = $.index, K = $[0], Q = z.slice(0, Z), ue = z.slice(Z + K.length), ee = M + z.length;
867
+ var Z = $.index, K = $[0], Q = z.slice(0, Z), le = z.slice(Z + K.length), ee = M + z.length;
868
868
  c && ee > c.reach && (c.reach = ee);
869
- var q = O.prev;
870
- Q && (q = I(e, q, Q), M += Q.length), C(e, q, X);
871
- var me = new f(b, P ? s.tokenize(K, P) : K, T, K);
872
- if (O = I(e, q, me), ue && I(e, O, ue), X > 1) {
869
+ var q = N.prev;
870
+ Q && (q = F(e, q, Q), M += Q.length), D(e, q, X);
871
+ var fe = new b(f, P ? r.tokenize(K, P) : K, w, K);
872
+ if (N = F(e, q, fe), le && F(e, N, le), X > 1) {
873
873
  var te = {
874
- cause: b + "," + w,
874
+ cause: f + "," + S,
875
875
  reach: ee
876
876
  };
877
- k(t, e, n, O.prev, M, te), c && te.reach > c.reach && (c.reach = te.reach);
877
+ I(t, e, n, N.prev, M, te), c && te.reach > c.reach && (c.reach = te.reach);
878
878
  }
879
879
  }
880
880
  }
881
881
  }
882
882
  }
883
883
  }
884
- function N() {
884
+ function L() {
885
885
  var t = { value: null, prev: null, next: null }, e = { value: null, prev: t, next: null };
886
886
  t.next = e, this.head = t, this.tail = e, this.length = 0;
887
887
  }
888
- function I(t, e, n) {
889
- var r = e.next, i = { value: n, prev: e, next: r };
890
- return e.next = i, r.prev = i, t.length++, i;
888
+ function F(t, e, n) {
889
+ var s = e.next, i = { value: n, prev: e, next: s };
890
+ return e.next = i, s.prev = i, t.length++, i;
891
891
  }
892
- function C(t, e, n) {
893
- for (var r = e.next, i = 0; i < n && r !== t.tail; i++)
894
- r = r.next;
895
- e.next = r, r.prev = e, t.length -= i;
892
+ function D(t, e, n) {
893
+ for (var s = e.next, i = 0; i < n && s !== t.tail; i++)
894
+ s = s.next;
895
+ e.next = s, s.prev = e, t.length -= i;
896
896
  }
897
- function D(t) {
897
+ function T(t) {
898
898
  for (var e = [], n = t.head.next; n !== t.tail; )
899
899
  e.push(n.value), n = n.next;
900
900
  return e;
901
901
  }
902
902
  if (!l.document)
903
- return l.addEventListener && (s.disableWorkerMessageHandler || l.addEventListener("message", function(t) {
904
- var e = JSON.parse(t.data), n = e.language, r = e.code, i = e.immediateClose;
905
- l.postMessage(s.highlight(r, s.languages[n], n)), i && l.close();
906
- }, !1)), s;
907
- var g = s.util.currentScript();
908
- g && (s.filename = g.src, g.hasAttribute("data-manual") && (s.manual = !0));
909
- function p() {
910
- s.manual || s.highlightAll();
903
+ return l.addEventListener && (r.disableWorkerMessageHandler || l.addEventListener("message", function(t) {
904
+ var e = JSON.parse(t.data), n = e.language, s = e.code, i = e.immediateClose;
905
+ l.postMessage(r.highlight(s, r.languages[n], n)), i && l.close();
906
+ }, !1)), r;
907
+ var h = r.util.currentScript();
908
+ h && (r.filename = h.src, h.hasAttribute("data-manual") && (r.manual = !0));
909
+ function y() {
910
+ r.manual || r.highlightAll();
911
911
  }
912
- if (!s.manual) {
913
- var S = document.readyState;
914
- S === "loading" || S === "interactive" && g && g.defer ? document.addEventListener("DOMContentLoaded", p) : window.requestAnimationFrame ? window.requestAnimationFrame(p) : window.setTimeout(p, 16);
912
+ if (!r.manual) {
913
+ var k = document.readyState;
914
+ k === "loading" || k === "interactive" && h && h.defer ? document.addEventListener("DOMContentLoaded", y) : window.requestAnimationFrame ? window.requestAnimationFrame(y) : window.setTimeout(y, 16);
915
915
  }
916
- return s;
916
+ return r;
917
917
  }(d);
918
- o.exports && (o.exports = a), typeof de < "u" && (de.Prism = a), a.languages.markup = {
918
+ o.exports && (o.exports = a), typeof ce < "u" && (ce.Prism = a), a.languages.markup = {
919
919
  comment: {
920
920
  pattern: /<!--(?:(?!<!--)[\s\S])*?-->/,
921
921
  greedy: !0
@@ -1006,32 +1006,32 @@ var ge = { exports: {} };
1006
1006
  * @example
1007
1007
  * addInlined('style', 'css');
1008
1008
  */
1009
- value: function(h, y) {
1009
+ value: function(p, v) {
1010
1010
  var A = {};
1011
- A["language-" + y] = {
1011
+ A["language-" + v] = {
1012
1012
  pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,
1013
1013
  lookbehind: !0,
1014
- inside: a.languages[y]
1014
+ inside: a.languages[v]
1015
1015
  }, A.cdata = /^<!\[CDATA\[|\]\]>$/i;
1016
- var s = {
1016
+ var r = {
1017
1017
  "included-cdata": {
1018
1018
  pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
1019
1019
  inside: A
1020
1020
  }
1021
1021
  };
1022
- s["language-" + y] = {
1022
+ r["language-" + v] = {
1023
1023
  pattern: /[\s\S]+/,
1024
- inside: a.languages[y]
1024
+ inside: a.languages[v]
1025
1025
  };
1026
- var f = {};
1027
- f[h] = {
1026
+ var b = {};
1027
+ b[p] = {
1028
1028
  pattern: RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g, function() {
1029
- return h;
1029
+ return p;
1030
1030
  }), "i"),
1031
1031
  lookbehind: !0,
1032
1032
  greedy: !0,
1033
- inside: s
1034
- }, a.languages.insertBefore("markup", "cdata", f);
1033
+ inside: r
1034
+ }, a.languages.insertBefore("markup", "cdata", b);
1035
1035
  }
1036
1036
  }), Object.defineProperty(a.languages.markup.tag, "addAttribute", {
1037
1037
  /**
@@ -1045,7 +1045,7 @@ var ge = { exports: {} };
1045
1045
  * @example
1046
1046
  * addAttribute('style', 'css');
1047
1047
  */
1048
- value: function(l, h) {
1048
+ value: function(l, p) {
1049
1049
  a.languages.markup.tag.inside["special-attr"].push({
1050
1050
  pattern: RegExp(
1051
1051
  /(^|["'\s])/.source + "(?:" + l + ")" + /\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,
@@ -1060,8 +1060,8 @@ var ge = { exports: {} };
1060
1060
  value: {
1061
1061
  pattern: /(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,
1062
1062
  lookbehind: !0,
1063
- alias: [h, "language-" + h],
1064
- inside: a.languages[h]
1063
+ alias: [p, "language-" + p],
1064
+ inside: a.languages[p]
1065
1065
  },
1066
1066
  punctuation: [
1067
1067
  {
@@ -1076,11 +1076,11 @@ var ge = { exports: {} };
1076
1076
  });
1077
1077
  }
1078
1078
  }), 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) {
1079
- var h = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
1079
+ var p = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
1080
1080
  l.languages.css = {
1081
1081
  comment: /\/\*[\s\S]*?\*\//,
1082
1082
  atrule: {
1083
- pattern: RegExp("@[\\w-](?:" + /[^;{\s"']|\s+(?!\s)/.source + "|" + h.source + ")*?" + /(?:;|(?=\s*\{))/.source),
1083
+ pattern: RegExp("@[\\w-](?:" + /[^;{\s"']|\s+(?!\s)/.source + "|" + p.source + ")*?" + /(?:;|(?=\s*\{))/.source),
1084
1084
  inside: {
1085
1085
  rule: /^@[\w-]+/,
1086
1086
  "selector-function-argument": {
@@ -1097,23 +1097,23 @@ var ge = { exports: {} };
1097
1097
  },
1098
1098
  url: {
1099
1099
  // https://drafts.csswg.org/css-values-3/#urls
1100
- pattern: RegExp("\\burl\\((?:" + h.source + "|" + /(?:[^\\\r\n()"']|\\[\s\S])*/.source + ")\\)", "i"),
1100
+ pattern: RegExp("\\burl\\((?:" + p.source + "|" + /(?:[^\\\r\n()"']|\\[\s\S])*/.source + ")\\)", "i"),
1101
1101
  greedy: !0,
1102
1102
  inside: {
1103
1103
  function: /^url/i,
1104
1104
  punctuation: /^\(|\)$/,
1105
1105
  string: {
1106
- pattern: RegExp("^" + h.source + "$"),
1106
+ pattern: RegExp("^" + p.source + "$"),
1107
1107
  alias: "url"
1108
1108
  }
1109
1109
  }
1110
1110
  },
1111
1111
  selector: {
1112
- pattern: RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|` + h.source + ")*(?=\\s*\\{)"),
1112
+ pattern: RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|` + p.source + ")*(?=\\s*\\{)"),
1113
1113
  lookbehind: !0
1114
1114
  },
1115
1115
  string: {
1116
- pattern: h,
1116
+ pattern: p,
1117
1117
  greedy: !0
1118
1118
  },
1119
1119
  property: {
@@ -1127,8 +1127,8 @@ var ge = { exports: {} };
1127
1127
  },
1128
1128
  punctuation: /[(){};:,]/
1129
1129
  }, l.languages.css.atrule.inside.rest = l.languages.css;
1130
- var y = l.languages.markup;
1131
- y && (y.tag.addInlined("style", "css"), y.tag.addAttribute("style", "css"));
1130
+ var v = l.languages.markup;
1131
+ v && (v.tag.addInlined("style", "css"), v.tag.addAttribute("style", "css"));
1132
1132
  }(a), a.languages.clike = {
1133
1133
  comment: [
1134
1134
  {
@@ -1293,9 +1293,9 @@ var ge = { exports: {} };
1293
1293
  if (typeof a > "u" || typeof document > "u")
1294
1294
  return;
1295
1295
  Element.prototype.matches || (Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector);
1296
- var l = "Loading…", h = function(g, p) {
1297
- return "✖ Error " + g + " while fetching file: " + p;
1298
- }, y = "✖ Error: File does not exist or is empty", A = {
1296
+ var l = "Loading…", p = function(h, y) {
1297
+ return "✖ Error " + h + " while fetching file: " + y;
1298
+ }, v = "✖ Error: File does not exist or is empty", A = {
1299
1299
  js: "javascript",
1300
1300
  py: "python",
1301
1301
  rb: "ruby",
@@ -1305,52 +1305,52 @@ var ge = { exports: {} };
1305
1305
  bat: "batch",
1306
1306
  h: "c",
1307
1307
  tex: "latex"
1308
- }, s = "data-src-status", f = "loading", m = "loaded", k = "failed", N = "pre[data-src]:not([" + s + '="' + m + '"]):not([' + s + '="' + f + '"])';
1309
- function I(g, p, S) {
1308
+ }, r = "data-src-status", b = "loading", g = "loaded", I = "failed", L = "pre[data-src]:not([" + r + '="' + g + '"]):not([' + r + '="' + b + '"])';
1309
+ function F(h, y, k) {
1310
1310
  var t = new XMLHttpRequest();
1311
- t.open("GET", g, !0), t.onreadystatechange = function() {
1312
- t.readyState == 4 && (t.status < 400 && t.responseText ? p(t.responseText) : t.status >= 400 ? S(h(t.status, t.statusText)) : S(y));
1311
+ t.open("GET", h, !0), t.onreadystatechange = function() {
1312
+ t.readyState == 4 && (t.status < 400 && t.responseText ? y(t.responseText) : t.status >= 400 ? k(p(t.status, t.statusText)) : k(v));
1313
1313
  }, t.send(null);
1314
1314
  }
1315
- function C(g) {
1316
- var p = /^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(g || "");
1317
- if (p) {
1318
- var S = Number(p[1]), t = p[2], e = p[3];
1319
- return t ? e ? [S, Number(e)] : [S, void 0] : [S, S];
1315
+ function D(h) {
1316
+ var y = /^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(h || "");
1317
+ if (y) {
1318
+ var k = Number(y[1]), t = y[2], e = y[3];
1319
+ return t ? e ? [k, Number(e)] : [k, void 0] : [k, k];
1320
1320
  }
1321
1321
  }
1322
- a.hooks.add("before-highlightall", function(g) {
1323
- g.selector += ", " + N;
1324
- }), a.hooks.add("before-sanity-check", function(g) {
1325
- var p = (
1322
+ a.hooks.add("before-highlightall", function(h) {
1323
+ h.selector += ", " + L;
1324
+ }), a.hooks.add("before-sanity-check", function(h) {
1325
+ var y = (
1326
1326
  /** @type {HTMLPreElement} */
1327
- g.element
1327
+ h.element
1328
1328
  );
1329
- if (p.matches(N)) {
1330
- g.code = "", p.setAttribute(s, f);
1331
- var S = p.appendChild(document.createElement("CODE"));
1332
- S.textContent = l;
1333
- var t = p.getAttribute("data-src"), e = g.language;
1329
+ if (y.matches(L)) {
1330
+ h.code = "", y.setAttribute(r, b);
1331
+ var k = y.appendChild(document.createElement("CODE"));
1332
+ k.textContent = l;
1333
+ var t = y.getAttribute("data-src"), e = h.language;
1334
1334
  if (e === "none") {
1335
1335
  var n = (/\.(\w+)$/.exec(t) || [, "none"])[1];
1336
1336
  e = A[n] || n;
1337
1337
  }
1338
- a.util.setLanguage(S, e), a.util.setLanguage(p, e);
1339
- var r = a.plugins.autoloader;
1340
- r && r.loadLanguages(e), I(
1338
+ a.util.setLanguage(k, e), a.util.setLanguage(y, e);
1339
+ var s = a.plugins.autoloader;
1340
+ s && s.loadLanguages(e), F(
1341
1341
  t,
1342
1342
  function(i) {
1343
- p.setAttribute(s, m);
1344
- var c = C(p.getAttribute("data-range"));
1343
+ y.setAttribute(r, g);
1344
+ var c = D(y.getAttribute("data-range"));
1345
1345
  if (c) {
1346
- var b = i.split(/\r\n?|\n/g), u = c[0], w = c[1] == null ? b.length : c[1];
1347
- u < 0 && (u += b.length), u = Math.max(0, Math.min(u - 1, b.length)), w < 0 && (w += b.length), w = Math.max(0, Math.min(w, b.length)), i = b.slice(u, w).join(`
1348
- `), p.hasAttribute("data-start") || p.setAttribute("data-start", String(u + 1));
1346
+ var f = i.split(/\r\n?|\n/g), u = c[0], S = c[1] == null ? f.length : c[1];
1347
+ u < 0 && (u += f.length), u = Math.max(0, Math.min(u - 1, f.length)), S < 0 && (S += f.length), S = Math.max(0, Math.min(S, f.length)), i = f.slice(u, S).join(`
1348
+ `), y.hasAttribute("data-start") || y.setAttribute("data-start", String(u + 1));
1349
1349
  }
1350
- S.textContent = i, a.highlightElement(S);
1350
+ k.textContent = i, a.highlightElement(k);
1351
1351
  },
1352
1352
  function(i) {
1353
- p.setAttribute(s, k), S.textContent = i;
1353
+ y.setAttribute(r, I), k.textContent = i;
1354
1354
  }
1355
1355
  );
1356
1356
  }
@@ -1362,18 +1362,18 @@ var ge = { exports: {} };
1362
1362
  *
1363
1363
  * @param {ParentNode} [container=document]
1364
1364
  */
1365
- highlight: function(p) {
1366
- for (var S = (p || document).querySelectorAll(N), t = 0, e; e = S[t++]; )
1365
+ highlight: function(y) {
1366
+ for (var k = (y || document).querySelectorAll(L), t = 0, e; e = k[t++]; )
1367
1367
  a.highlightElement(e);
1368
1368
  }
1369
1369
  };
1370
- var D = !1;
1370
+ var T = !1;
1371
1371
  a.fileHighlight = function() {
1372
- D || (console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."), D = !0), a.plugins.fileHighlight.highlight.apply(this, arguments);
1372
+ T || (console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."), T = !0), a.plugins.fileHighlight.highlight.apply(this, arguments);
1373
1373
  };
1374
1374
  }();
1375
- })(ge);
1376
- var De = ge.exports;
1375
+ })(pe);
1376
+ var De = pe.exports;
1377
1377
  const re = /* @__PURE__ */ Ce(De);
1378
1378
  Prism.languages.clike = {
1379
1379
  comment: [
@@ -2170,7 +2170,7 @@ Prism.languages.sql = {
2170
2170
  lookbehind: !0
2171
2171
  }
2172
2172
  }, a.inside = o.languages.bash;
2173
- for (var h = [
2173
+ for (var p = [
2174
2174
  "comment",
2175
2175
  "function-name",
2176
2176
  "for-or-select",
@@ -2186,8 +2186,8 @@ Prism.languages.sql = {
2186
2186
  "operator",
2187
2187
  "punctuation",
2188
2188
  "number"
2189
- ], y = l.variable[1].inside, A = 0; A < h.length; A++)
2190
- y[h[A]] = o.languages.bash[h[A]];
2189
+ ], v = l.variable[1].inside, A = 0; A < p.length; A++)
2190
+ v[p[A]] = o.languages.bash[p[A]];
2191
2191
  o.languages.sh = o.languages.bash, o.languages.shell = o.languages.bash;
2192
2192
  })(Prism);
2193
2193
  Prism.languages.json = {
@@ -2225,21 +2225,10 @@ const Pe = ["innerHTML"], $e = ["value", "disabled"], Me = /* @__PURE__ */ oe({
2225
2225
  },
2226
2226
  emits: ["update:modelValue"],
2227
2227
  setup(o, { emit: d }) {
2228
- be((g) => ({
2229
- v27028a20: m.value
2230
- }));
2231
- function a(g) {
2232
- if (typeof document > "u") return;
2233
- const p = g === "dark" ? "prism-okaidia" : "prism", S = "hep-cr-prism-theme", t = document.getElementById(S);
2234
- if (t)
2235
- t.setAttribute("href", `https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/${p}.min.css`);
2236
- else {
2237
- const e = document.createElement("link");
2238
- e.id = S, e.rel = "stylesheet", e.href = `https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/${p}.min.css`, document.head.appendChild(e);
2239
- }
2240
- }
2241
- typeof window < "u" && (window.Prism = re);
2242
- const l = o, h = d, y = L(null), A = L(null), s = {
2228
+ me((T) => ({
2229
+ v52686fa0: b.value
2230
+ })), typeof window < "u" && (window.Prism = re);
2231
+ const a = o, l = d, p = C(null), v = C(null), A = {
2243
2232
  javascript: "javascript",
2244
2233
  js: "javascript",
2245
2234
  typescript: "typescript",
@@ -2270,68 +2259,64 @@ const Pe = ["innerHTML"], $e = ["value", "disabled"], Me = /* @__PURE__ */ oe({
2270
2259
  yml: "yaml",
2271
2260
  markdown: "markdown",
2272
2261
  md: "markdown"
2273
- }, f = G(() => s[l.language.toLowerCase()] || "javascript"), m = G(() => l.theme === "dark" ? "#1e1e1e" : "#fafafa"), k = G(() => {
2262
+ }, r = G(() => A[a.language.toLowerCase()] || "javascript"), b = G(() => a.theme === "dark" ? "#1e1e1e" : "#fafafa"), g = G(() => {
2274
2263
  try {
2275
- const g = re.languages[f.value];
2276
- if (g)
2277
- return re.highlight(l.modelValue || "", g, f.value);
2264
+ const T = re.languages[r.value];
2265
+ if (T)
2266
+ return re.highlight(a.modelValue || "", T, r.value);
2278
2267
  } catch {
2279
2268
  }
2280
- return N(l.modelValue || "");
2269
+ return I(a.modelValue || "");
2281
2270
  });
2282
- function N(g) {
2283
- const p = document.createElement("div");
2284
- return p.textContent = g, p.innerHTML;
2271
+ function I(T) {
2272
+ const h = document.createElement("div");
2273
+ return h.textContent = T, h.innerHTML;
2285
2274
  }
2286
- function I(g) {
2287
- const p = g.target;
2288
- h("update:modelValue", p.value);
2275
+ function L(T) {
2276
+ const h = T.target;
2277
+ l("update:modelValue", h.value);
2289
2278
  }
2290
- function C() {
2291
- y.value && A.value && (A.value.scrollTop = y.value.scrollTop, A.value.scrollLeft = y.value.scrollLeft);
2279
+ function F() {
2280
+ p.value && v.value && (v.value.scrollTop = p.value.scrollTop, v.value.scrollLeft = p.value.scrollLeft);
2292
2281
  }
2293
- function D(g) {
2294
- if (g.key === "Tab") {
2295
- g.preventDefault();
2296
- const p = g.target, S = p.selectionStart, t = p.selectionEnd, e = p.value;
2297
- p.value = e.substring(0, S) + " " + e.substring(t), p.selectionStart = p.selectionEnd = S + 2, h("update:modelValue", p.value);
2282
+ function D(T) {
2283
+ if (T.key === "Tab") {
2284
+ T.preventDefault();
2285
+ const h = T.target, y = h.selectionStart, k = h.selectionEnd, t = h.value;
2286
+ h.value = t.substring(0, y) + " " + t.substring(k), h.selectionStart = h.selectionEnd = y + 2, l("update:modelValue", h.value);
2298
2287
  }
2299
2288
  }
2300
- return pe(() => {
2301
- a(l.theme);
2302
- }), le(() => l.theme, (g) => {
2303
- a(g);
2304
- }), (g, p) => (_(), R("div", {
2289
+ return (T, h) => (R(), x("div", {
2305
2290
  class: W(["hep-cr-editor", `hep-cr-theme-${o.theme}`])
2306
2291
  }, [
2307
- E("pre", {
2292
+ m("pre", {
2308
2293
  ref_key: "highlightRef",
2309
- ref: A,
2310
- class: W(["hep-cr-highlight", [`language-${f.value}`, `hep-cr-prism-${o.theme}`]]),
2294
+ ref: v,
2295
+ class: W(["hep-cr-highlight", [`language-${r.value}`, `hep-cr-prism-${o.theme}`]]),
2311
2296
  "aria-hidden": "true"
2312
2297
  }, [
2313
- E("code", { innerHTML: k.value }, null, 8, Pe)
2298
+ m("code", { innerHTML: g.value }, null, 8, Pe)
2314
2299
  ], 2),
2315
- E("textarea", {
2300
+ m("textarea", {
2316
2301
  ref_key: "codeRef",
2317
- ref: y,
2302
+ ref: p,
2318
2303
  class: "hep-cr-input",
2319
2304
  value: o.modelValue,
2320
2305
  disabled: o.disabled,
2321
- onInput: I,
2322
- onScroll: C,
2306
+ onInput: L,
2307
+ onScroll: F,
2323
2308
  onKeydown: D,
2324
2309
  spellcheck: "false",
2325
2310
  placeholder: "Write your code here..."
2326
2311
  }, null, 40, $e)
2327
2312
  ], 2));
2328
2313
  }
2329
- }), he = (o, d) => {
2314
+ }), ge = (o, d) => {
2330
2315
  const a = o.__vccOpts || o;
2331
- for (const [l, h] of d)
2332
- a[l] = h;
2316
+ for (const [l, p] of d)
2317
+ a[l] = p;
2333
2318
  return a;
2334
- }, Ue = /* @__PURE__ */ he(Me, [["__scopeId", "data-v-1d5e2c50"]]), He = { class: "hep-cr-header" }, Be = { class: "hep-cr-controls" }, Ge = ["disabled"], ze = {
2319
+ }, Ue = /* @__PURE__ */ ge(Me, [["__scopeId", "data-v-ce046296"]]), He = { class: "hep-cr-header" }, Be = { class: "hep-cr-controls" }, Ge = ["disabled"], ze = {
2335
2320
  key: 0,
2336
2321
  value: ""
2337
2322
  }, je = ["value"], We = { class: "hep-cr-actions" }, Ve = ["disabled"], Ye = {
@@ -2363,172 +2348,172 @@ const Pe = ["innerHTML"], $e = ["value", "disabled"], Me = /* @__PURE__ */ oe({
2363
2348
  },
2364
2349
  emits: ["execute-start", "execute-end", "language-change"],
2365
2350
  setup(o, { emit: d }) {
2366
- const a = o, l = d, h = L([]), y = L(a.language), A = L(a.theme), s = L(""), f = L(""), m = L(""), k = L(!1), N = L(null), I = L("stdout"), C = L(null), D = L(!1), g = L(60);
2367
- function p() {
2351
+ const a = o, l = d, p = C([]), v = C(a.language), A = C(a.theme), r = C(""), b = C(""), g = C(""), I = C(!1), L = C(null), F = C("stdout"), D = C(null), T = C(!1), h = C(60);
2352
+ function y() {
2368
2353
  A.value = A.value === "light" ? "dark" : "light";
2369
2354
  }
2370
- const S = G(
2355
+ const k = G(
2371
2356
  () => new Ne({ pistonUrl: a.pistonUrl })
2372
- ), t = G(() => h.value.map((v) => ({
2373
- value: `${v.language}:${v.version}`,
2374
- label: `${v.language.charAt(0).toUpperCase() + v.language.slice(1)} ${v.version}`
2357
+ ), t = G(() => p.value.map((E) => ({
2358
+ value: `${E.language}:${E.version}`,
2359
+ label: `${E.language.charAt(0).toUpperCase() + E.language.slice(1)} ${E.version}`
2375
2360
  }))), e = G(() => {
2376
- const v = y.value;
2377
- return v.includes(":") ? v.split(":")[0] : v;
2361
+ const E = v.value;
2362
+ return E.includes(":") ? E.split(":")[0] : E;
2378
2363
  });
2379
2364
  async function n() {
2380
- D.value = !0, C.value = null;
2365
+ T.value = !0, D.value = null;
2381
2366
  try {
2382
- h.value = await S.value.getRuntimes();
2383
- } catch (v) {
2384
- C.value = v instanceof Error ? v.message : "Failed to load runtimes";
2367
+ p.value = await k.value.getRuntimes();
2368
+ } catch (E) {
2369
+ D.value = E instanceof Error ? E.message : "Failed to load runtimes";
2385
2370
  } finally {
2386
- D.value = !1;
2371
+ T.value = !1;
2387
2372
  }
2388
2373
  }
2389
- le(y, (v) => {
2390
- const T = v.includes(":") ? v.split(":")[0] : v, x = ne(T);
2391
- s.value = x, l("language-change", T, x);
2374
+ de(v, (E) => {
2375
+ const w = E.includes(":") ? E.split(":")[0] : E, O = ne(w);
2376
+ r.value = O, l("language-change", w, O);
2392
2377
  });
2393
- async function r() {
2394
- if (!k.value) {
2395
- k.value = !0, f.value = "", m.value = "", N.value = null, C.value = null, I.value = "stdout", l("execute-start");
2378
+ async function s() {
2379
+ if (!I.value) {
2380
+ I.value = !0, b.value = "", g.value = "", L.value = null, D.value = null, F.value = "stdout", l("execute-start");
2396
2381
  try {
2397
- const v = await S.value.execute(e.value, s.value);
2398
- f.value = v.output, m.value = v.stderr, N.value = v.executionTime || null, I.value = v.stderr ? "stderr" : "stdout", l("execute-end", v);
2399
- } catch (v) {
2400
- C.value = v instanceof Error ? v.message : "Execution failed", l("execute-end", {
2382
+ const E = await k.value.execute(e.value, r.value);
2383
+ b.value = E.output, g.value = E.stderr, L.value = E.executionTime || null, F.value = E.stderr ? "stderr" : "stdout", l("execute-end", E);
2384
+ } catch (E) {
2385
+ D.value = E instanceof Error ? E.message : "Execution failed", l("execute-end", {
2401
2386
  success: !1,
2402
2387
  output: "",
2403
- stderr: C.value,
2388
+ stderr: D.value,
2404
2389
  code: -1
2405
2390
  });
2406
2391
  } finally {
2407
- k.value = !1;
2392
+ I.value = !1;
2408
2393
  }
2409
2394
  }
2410
2395
  }
2411
2396
  function i() {
2412
- f.value = "", m.value = "", N.value = null, C.value = null;
2397
+ b.value = "", g.value = "", L.value = null, D.value = null;
2413
2398
  }
2414
2399
  async function c() {
2415
- const v = I.value === "stdout" ? f.value : m.value;
2416
- await navigator.clipboard.writeText(v);
2400
+ const E = F.value === "stdout" ? b.value : g.value;
2401
+ await navigator.clipboard.writeText(E);
2417
2402
  }
2418
- function b() {
2419
- s.value = ne(e.value);
2403
+ function f() {
2404
+ r.value = ne(e.value);
2420
2405
  }
2421
2406
  let u = !1;
2422
- function w(v) {
2423
- u = !0, document.addEventListener("mousemove", F), document.addEventListener("mouseup", P), document.body.style.cursor = "col-resize", document.body.style.userSelect = "none";
2407
+ function S(E) {
2408
+ u = !0, document.addEventListener("mousemove", _), document.addEventListener("mouseup", P), document.body.style.cursor = "col-resize", document.body.style.userSelect = "none";
2424
2409
  }
2425
- function F(v) {
2410
+ function _(E) {
2426
2411
  if (!u) return;
2427
- const T = document.querySelector(
2412
+ const w = document.querySelector(
2428
2413
  ".hep-cr-main"
2429
2414
  );
2430
- if (!T) return;
2431
- const x = T.getBoundingClientRect(), Y = (v.clientX - x.left) / x.width * 100;
2432
- g.value = Math.max(20, Math.min(80, Y));
2415
+ if (!w) return;
2416
+ const O = w.getBoundingClientRect(), Y = (E.clientX - O.left) / O.width * 100;
2417
+ h.value = Math.max(20, Math.min(80, Y));
2433
2418
  }
2434
2419
  function P() {
2435
- u = !1, document.removeEventListener("mousemove", F), document.removeEventListener("mouseup", P), document.body.style.cursor = "", document.body.style.userSelect = "";
2420
+ u = !1, document.removeEventListener("mousemove", _), document.removeEventListener("mouseup", P), document.body.style.cursor = "", document.body.style.userSelect = "";
2436
2421
  }
2437
- pe(async () => {
2438
- await n(), s.value || (s.value = a.defaultCode || ne(y.value));
2422
+ be(async () => {
2423
+ await n(), r.value || (r.value = a.defaultCode || ne(v.value));
2439
2424
  });
2440
2425
  const V = G(() => `hep-cr-runner-${A.value}`);
2441
- return (v, T) => (_(), R("div", {
2426
+ return (E, w) => (R(), x("div", {
2442
2427
  class: W(["hep-cr-runner", V.value])
2443
2428
  }, [
2444
- E("div", He, [
2445
- E("div", Be, [
2446
- o.showLanguageSelector ? Ee((_(), R("select", {
2429
+ m("div", He, [
2430
+ m("div", Be, [
2431
+ o.showLanguageSelector ? Ee((R(), x("select", {
2447
2432
  key: 0,
2448
- "onUpdate:modelValue": T[0] || (T[0] = (x) => y.value = x),
2433
+ "onUpdate:modelValue": w[0] || (w[0] = (O) => v.value = O),
2449
2434
  class: "hep-cr-language-select",
2450
- disabled: k.value
2435
+ disabled: I.value
2451
2436
  }, [
2452
- D.value ? (_(), R("option", ze, "加载中...")) : U("", !0),
2453
- (_(!0), R(ve, null, ye(t.value, (x) => (_(), R("option", {
2454
- key: x.value,
2455
- value: x.value
2456
- }, H(x.label), 9, je))), 128))
2437
+ T.value ? (R(), x("option", ze, "加载中...")) : U("", !0),
2438
+ (R(!0), x(ve, null, ye(t.value, (O) => (R(), x("option", {
2439
+ key: O.value,
2440
+ value: O.value
2441
+ }, H(O.label), 9, je))), 128))
2457
2442
  ], 8, Ge)), [
2458
- [Ae, y.value]
2443
+ [Ae, v.value]
2459
2444
  ]) : U("", !0)
2460
2445
  ]),
2461
- E("div", We, [
2462
- E("button", {
2446
+ m("div", We, [
2447
+ m("button", {
2463
2448
  class: "hep-cr-btn hep-cr-btn-run",
2464
- disabled: k.value || D.value,
2465
- onClick: r
2449
+ disabled: I.value || T.value,
2450
+ onClick: s
2466
2451
  }, [
2467
- k.value ? (_(), R("span", Ye)) : (_(), R("span", Xe, "▶")),
2468
- Se(" " + H(k.value ? "运行中..." : o.executorLabel), 1)
2452
+ I.value ? (R(), x("span", Ye)) : (R(), x("span", Xe, "▶")),
2453
+ Se(" " + H(I.value ? "运行中..." : o.executorLabel), 1)
2469
2454
  ], 8, Ve),
2470
- o.showEditor && o.editable ? (_(), R("button", {
2455
+ o.showEditor && o.editable ? (R(), x("button", {
2471
2456
  key: 0,
2472
2457
  class: "hep-cr-btn hep-cr-btn-reset",
2473
- onClick: b
2458
+ onClick: f
2474
2459
  }, " 重置 ")) : U("", !0),
2475
- E("button", {
2460
+ m("button", {
2476
2461
  class: "hep-cr-btn hep-cr-btn-theme",
2477
- onClick: p,
2462
+ onClick: y,
2478
2463
  title: A.value === "light" ? "Switch to dark mode" : "Switch to light mode"
2479
2464
  }, H(A.value === "light" ? "🌙" : "☀️"), 9, Ze)
2480
2465
  ])
2481
2466
  ]),
2482
- C.value ? (_(), R("div", Ke, H(C.value), 1)) : U("", !0),
2483
- E("div", qe, [
2484
- o.showEditor ? (_(), R("div", {
2467
+ D.value ? (R(), x("div", Ke, H(D.value), 1)) : U("", !0),
2468
+ m("div", qe, [
2469
+ o.showEditor ? (R(), x("div", {
2485
2470
  key: 0,
2486
2471
  class: "hep-cr-editor-panel",
2487
- style: se({ width: g.value + "%" })
2472
+ style: se({ width: h.value + "%" })
2488
2473
  }, [
2489
- E("div", Je, [
2490
- T[4] || (T[4] = E("span", { class: "hep-cr-panel-title" }, "编辑器", -1)),
2491
- E("span", Qe, H(e.value), 1)
2474
+ m("div", Je, [
2475
+ w[4] || (w[4] = m("span", { class: "hep-cr-panel-title" }, "编辑器", -1)),
2476
+ m("span", Qe, H(e.value), 1)
2492
2477
  ]),
2493
2478
  ie(Ue, {
2494
- modelValue: s.value,
2495
- "onUpdate:modelValue": T[1] || (T[1] = (x) => s.value = x),
2479
+ modelValue: r.value,
2480
+ "onUpdate:modelValue": w[1] || (w[1] = (O) => r.value = O),
2496
2481
  language: e.value,
2497
2482
  theme: A.value,
2498
- disabled: !o.editable || k.value
2483
+ disabled: !o.editable || I.value
2499
2484
  }, null, 8, ["modelValue", "language", "theme", "disabled"])
2500
2485
  ], 4)) : U("", !0),
2501
- o.showEditor ? (_(), R("div", {
2486
+ o.showEditor ? (R(), x("div", {
2502
2487
  key: 1,
2503
2488
  class: "hep-cr-resize-handle",
2504
- onMousedown: w
2505
- }, [...T[5] || (T[5] = [
2506
- E("div", { class: "hep-cr-resize-line" }, null, -1)
2489
+ onMousedown: S
2490
+ }, [...w[5] || (w[5] = [
2491
+ m("div", { class: "hep-cr-resize-line" }, null, -1)
2507
2492
  ])], 32)) : U("", !0),
2508
- E("div", {
2493
+ m("div", {
2509
2494
  class: "hep-cr-output-panel",
2510
- style: se({ width: o.showEditor ? 100 - g.value + "%" : "100%" })
2495
+ style: se({ width: o.showEditor ? 100 - h.value + "%" : "100%" })
2511
2496
  }, [
2512
- E("div", et, [
2513
- E("div", tt, [
2514
- E("button", {
2515
- class: W(["hep-cr-tab", { active: I.value === "stdout" }]),
2516
- onClick: T[2] || (T[2] = (x) => I.value = "stdout")
2497
+ m("div", et, [
2498
+ m("div", tt, [
2499
+ m("button", {
2500
+ class: W(["hep-cr-tab", { active: F.value === "stdout" }]),
2501
+ onClick: w[2] || (w[2] = (O) => F.value = "stdout")
2517
2502
  }, " 输出 ", 2),
2518
- m.value ? (_(), R("button", {
2503
+ g.value ? (R(), x("button", {
2519
2504
  key: 0,
2520
- class: W(["hep-cr-tab", { active: I.value === "stderr" }]),
2521
- onClick: T[3] || (T[3] = (x) => I.value = "stderr")
2505
+ class: W(["hep-cr-tab", { active: F.value === "stderr" }]),
2506
+ onClick: w[3] || (w[3] = (O) => F.value = "stderr")
2522
2507
  }, " 错误 ", 2)) : U("", !0)
2523
2508
  ]),
2524
- E("div", at, [
2525
- N.value !== null ? (_(), R("span", nt, H(N.value) + "ms ", 1)) : U("", !0),
2526
- E("button", {
2509
+ m("div", at, [
2510
+ L.value !== null ? (R(), x("span", nt, H(L.value) + "ms ", 1)) : U("", !0),
2511
+ m("button", {
2527
2512
  class: "hep-cr-btn-icon",
2528
2513
  onClick: c,
2529
2514
  title: "复制"
2530
- }, [...T[6] || (T[6] = [
2531
- E("svg", {
2515
+ }, [...w[6] || (w[6] = [
2516
+ m("svg", {
2532
2517
  width: "14",
2533
2518
  height: "14",
2534
2519
  viewBox: "0 0 24 24",
@@ -2536,7 +2521,7 @@ const Pe = ["innerHTML"], $e = ["value", "disabled"], Me = /* @__PURE__ */ oe({
2536
2521
  stroke: "currentColor",
2537
2522
  "stroke-width": "2"
2538
2523
  }, [
2539
- E("rect", {
2524
+ m("rect", {
2540
2525
  x: "9",
2541
2526
  y: "9",
2542
2527
  width: "13",
@@ -2544,15 +2529,15 @@ const Pe = ["innerHTML"], $e = ["value", "disabled"], Me = /* @__PURE__ */ oe({
2544
2529
  rx: "2",
2545
2530
  ry: "2"
2546
2531
  }),
2547
- E("path", { d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" })
2532
+ m("path", { d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" })
2548
2533
  ], -1)
2549
2534
  ])]),
2550
- E("button", {
2535
+ m("button", {
2551
2536
  class: "hep-cr-btn-icon",
2552
2537
  onClick: i,
2553
2538
  title: "清除"
2554
- }, [...T[7] || (T[7] = [
2555
- E("svg", {
2539
+ }, [...w[7] || (w[7] = [
2540
+ m("svg", {
2556
2541
  width: "14",
2557
2542
  height: "14",
2558
2543
  viewBox: "0 0 24 24",
@@ -2560,20 +2545,20 @@ const Pe = ["innerHTML"], $e = ["value", "disabled"], Me = /* @__PURE__ */ oe({
2560
2545
  stroke: "currentColor",
2561
2546
  "stroke-width": "2"
2562
2547
  }, [
2563
- E("polyline", { points: "3 6 5 6 21 6" }),
2564
- E("path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" })
2548
+ m("polyline", { points: "3 6 5 6 21 6" }),
2549
+ m("path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" })
2565
2550
  ], -1)
2566
2551
  ])])
2567
2552
  ])
2568
2553
  ]),
2569
- E("div", rt, [
2570
- I.value === "stdout" ? (_(), R("pre", st, H(f.value || '点击"运行"执行代码'), 1)) : (_(), R("pre", it, H(m.value), 1))
2554
+ m("div", rt, [
2555
+ F.value === "stdout" ? (R(), x("pre", st, H(b.value || '点击"运行"执行代码'), 1)) : (R(), x("pre", it, H(g.value), 1))
2571
2556
  ])
2572
2557
  ], 4)
2573
2558
  ])
2574
2559
  ], 2));
2575
2560
  }
2576
- }), J = /* @__PURE__ */ he(ot, [["__scopeId", "data-v-f4bf7f21"]]), lt = { class: "hep-cr-dialog-header" }, ut = { class: "hep-cr-dialog-title" }, ct = { class: "hep-cr-dialog-body" }, dt = {
2561
+ }), J = /* @__PURE__ */ ge(ot, [["__scopeId", "data-v-f4bf7f21"]]), lt = { class: "hep-cr-dialog-header" }, ut = { class: "hep-cr-dialog-title" }, ct = { class: "hep-cr-dialog-body" }, dt = {
2577
2562
  key: 0,
2578
2563
  class: "hep-cr-dialog-footer"
2579
2564
  }, gt = /* @__PURE__ */ oe({
@@ -2593,40 +2578,40 @@ const Pe = ["innerHTML"], $e = ["value", "disabled"], Me = /* @__PURE__ */ oe({
2593
2578
  },
2594
2579
  emits: ["update:modelValue", "close"],
2595
2580
  setup(o, { expose: d, emit: a }) {
2596
- const l = o, h = a, y = L(l.modelValue), A = G(() => l.modelValue !== void 0 ? l.modelValue : y.value);
2597
- le(
2581
+ const l = o, p = a, v = C(l.modelValue), A = G(() => l.modelValue !== void 0 ? l.modelValue : v.value);
2582
+ de(
2598
2583
  () => l.modelValue,
2599
- (m) => {
2600
- m !== void 0 && (y.value = m);
2584
+ (g) => {
2585
+ g !== void 0 && (v.value = g);
2601
2586
  }
2602
2587
  );
2603
- function s() {
2604
- y.value = !1, h("update:modelValue", !1), h("close");
2588
+ function r() {
2589
+ v.value = !1, p("update:modelValue", !1), p("close");
2605
2590
  }
2606
- function f(m) {
2607
- m.target === m.currentTarget && s();
2591
+ function b(g) {
2592
+ g.target === g.currentTarget && r();
2608
2593
  }
2609
2594
  return d({
2610
- close: s
2611
- }), (m, k) => (_(), we(Te, { to: "body" }, [
2595
+ close: r
2596
+ }), (g, I) => (R(), we(Te, { to: "body" }, [
2612
2597
  ie(ke, { name: "hep-cr-dialog-fade" }, {
2613
2598
  default: Ie(() => [
2614
- A.value ? (_(), R("div", {
2599
+ A.value ? (R(), x("div", {
2615
2600
  key: 0,
2616
2601
  class: "hep-cr-dialog-overlay",
2617
- onClick: f
2602
+ onClick: b
2618
2603
  }, [
2619
- E("div", {
2604
+ m("div", {
2620
2605
  class: "hep-cr-dialog-container",
2621
2606
  style: se({ width: typeof o.width == "number" ? o.width + "px" : o.width })
2622
2607
  }, [
2623
- E("div", lt, [
2624
- E("h3", ut, H(o.title), 1),
2625
- E("button", {
2608
+ m("div", lt, [
2609
+ m("h3", ut, H(o.title), 1),
2610
+ m("button", {
2626
2611
  class: "hep-cr-dialog-close",
2627
- onClick: s
2628
- }, [...k[0] || (k[0] = [
2629
- E("svg", {
2612
+ onClick: r
2613
+ }, [...I[0] || (I[0] = [
2614
+ m("svg", {
2630
2615
  width: "16",
2631
2616
  height: "16",
2632
2617
  viewBox: "0 0 24 24",
@@ -2634,13 +2619,13 @@ const Pe = ["innerHTML"], $e = ["value", "disabled"], Me = /* @__PURE__ */ oe({
2634
2619
  stroke: "currentColor",
2635
2620
  "stroke-width": "2"
2636
2621
  }, [
2637
- E("line", {
2622
+ m("line", {
2638
2623
  x1: "18",
2639
2624
  y1: "6",
2640
2625
  x2: "6",
2641
2626
  y2: "18"
2642
2627
  }),
2643
- E("line", {
2628
+ m("line", {
2644
2629
  x1: "6",
2645
2630
  y1: "6",
2646
2631
  x2: "18",
@@ -2649,11 +2634,11 @@ const Pe = ["innerHTML"], $e = ["value", "disabled"], Me = /* @__PURE__ */ oe({
2649
2634
  ], -1)
2650
2635
  ])])
2651
2636
  ]),
2652
- E("div", ct, [
2653
- ie(J, Fe(_e(m.$attrs)), null, 16)
2637
+ m("div", ct, [
2638
+ ie(J, Fe(_e(g.$attrs)), null, 16)
2654
2639
  ]),
2655
- m.$slots.footer ? (_(), R("div", dt, [
2656
- Re(m.$slots, "footer", { close: s })
2640
+ g.$slots.footer ? (R(), x("div", dt, [
2641
+ Re(g.$slots, "footer", { close: r })
2657
2642
  ])) : U("", !0)
2658
2643
  ], 4)
2659
2644
  ])) : U("", !0)