vue-repl-enhance 1.1.8 → 1.1.9

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.
@@ -1,12 +1,12 @@
1
- import { defineComponent as Pl, ref as Eu, inject as Wu, onMounted as Bu, watchEffect as pl, openBlock as Ml, createElementBlock as Iu, computed as Hu, createBlock as zu } from "vue";
2
- import { d as Ru } from "./chunks/utils-ad8c137a.js";
3
- import { c as Ku, g as _u } from "./chunks/_commonjsHelpers-c5d32002.js";
1
+ import { defineComponent as Ol, ref as Mu, inject as Du, onMounted as Fu, watchEffect as pl, openBlock as Nl, createElementBlock as Eu, computed as Wu, createBlock as Bu } from "vue";
2
+ import { d as Iu } from "./chunks/utils-ad8c137a.js";
3
+ import { c as Hu, g as zu } from "./chunks/_commonjsHelpers-c5d32002.js";
4
4
  var ho = { exports: {} }, vl;
5
5
  function nt() {
6
6
  return vl || (vl = 1, function(Ie, Ue) {
7
7
  (function(b, G) {
8
8
  Ie.exports = G();
9
- })(Ku, function() {
9
+ })(Hu, function() {
10
10
  var b = navigator.userAgent, G = navigator.platform, z = /gecko\/\d/i.test(b), V = /MSIE \d/.test(b), re = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(b), B = /Edge\/(\d+)/.exec(b), W = V || re || B, K = W && (V ? document.documentMode || 6 : +(B || re)[1]), T = !B && /WebKit\//.test(b), I = T && /Qt\/\d+\.\d+/.test(b), C = !B && /Chrome\/(\d+)/.exec(b), P = C && +C[1], E = /Opera\//.test(b), J = /Apple Computer/.test(navigator.vendor), M = /Mac OS X 1\d\D([8-9]|\d\d)\D/.test(b), S = /PhantomJS/.test(b), v = J && (/Mobile\/\w+/.test(b) || navigator.maxTouchPoints > 2), g = /Android/.test(b), u = v || g || /webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(b), p = v || /Mac/.test(G), m = /\bCrOS\b/.test(b), w = /win/i.test(G), d = E && b.match(/Version\/(\d*\.\d*)/);
11
11
  d && (d = Number(d[1])), d && d >= 15 && (E = !1, T = !0);
12
12
  var L = p && (I || E && (d == null || d < 12.11)), D = z || W && K >= 9;
@@ -665,9 +665,9 @@ b`.split(/\n/).length != 3 ? function(e) {
665
665
  if (t.line < e.first)
666
666
  return R(e.first, 0);
667
667
  var n = e.first + e.size - 1;
668
- return t.line > n ? R(n, ue(e, n).text.length) : Wl(t, ue(e, t.line).text.length);
668
+ return t.line > n ? R(n, ue(e, n).text.length) : Dl(t, ue(e, t.line).text.length);
669
669
  }
670
- function Wl(e, t) {
670
+ function Dl(e, t) {
671
671
  var n = e.ch;
672
672
  return n == null || n > t ? R(e.line, t) : n < 0 ? R(e.line, 0) : e;
673
673
  }
@@ -747,7 +747,7 @@ b`.split(/\n/).length != 3 ? function(e) {
747
747
  var r = e.doc, i = e.display;
748
748
  if (!r.mode.startState)
749
749
  return new Ut(r, !0, t);
750
- var o = Bl(e, t, n), a = o > r.first && ue(r, o - 1).stateAfter, l = a ? Ut.fromSaved(r, a, o) : new Ut(r, Ir(r.mode), o);
750
+ var o = Fl(e, t, n), a = o > r.first && ue(r, o - 1).stateAfter, l = a ? Ut.fromSaved(r, a, o) : new Ut(r, Ir(r.mode), o);
751
751
  return r.iter(o, t, function(s) {
752
752
  bi(e, s.text, l);
753
753
  var f = l.line;
@@ -821,7 +821,7 @@ b`.split(/\n/).length != 3 ? function(e) {
821
821
  i(q, f), s = q;
822
822
  }
823
823
  }
824
- function Bl(e, t, n) {
824
+ function Fl(e, t, n) {
825
825
  for (var r, i, o = e.doc, a = n ? -1 : t - (e.doc.mode.innerMode ? 1e3 : 100), l = t; l > a; --l) {
826
826
  if (l <= o.first)
827
827
  return o.first;
@@ -833,7 +833,7 @@ b`.split(/\n/).length != 3 ? function(e) {
833
833
  }
834
834
  return i;
835
835
  }
836
- function Il(e, t) {
836
+ function El(e, t) {
837
837
  if (e.modeFrontier = Math.min(e.modeFrontier, t), !(e.highlightFrontier < t - 10)) {
838
838
  for (var n = e.first, r = t - 1; r > n; r--) {
839
839
  var i = ue(e, r).stateAfter;
@@ -846,10 +846,10 @@ b`.split(/\n/).length != 3 ? function(e) {
846
846
  }
847
847
  }
848
848
  var Co = !1, Jt = !1;
849
- function Hl() {
849
+ function Wl() {
850
850
  Co = !0;
851
851
  }
852
- function zl() {
852
+ function Bl() {
853
853
  Jt = !0;
854
854
  }
855
855
  function Kn(e, t, n) {
@@ -863,16 +863,16 @@ b`.split(/\n/).length != 3 ? function(e) {
863
863
  return r;
864
864
  }
865
865
  }
866
- function Rl(e, t) {
866
+ function Il(e, t) {
867
867
  for (var n, r = 0; r < e.length; ++r)
868
868
  e[r] != t && (n || (n = [])).push(e[r]);
869
869
  return n;
870
870
  }
871
- function Kl(e, t, n) {
871
+ function Hl(e, t, n) {
872
872
  var r = n && window.WeakSet && (n.markedSpans || (n.markedSpans = /* @__PURE__ */ new WeakSet()));
873
873
  r && e.markedSpans && r.has(e.markedSpans) ? e.markedSpans.push(t) : (e.markedSpans = e.markedSpans ? e.markedSpans.concat([t]) : [t], r && r.add(e.markedSpans)), t.marker.attachLine(e);
874
874
  }
875
- function _l(e, t, n) {
875
+ function zl(e, t, n) {
876
876
  var r;
877
877
  if (e)
878
878
  for (var i = 0; i < e.length; ++i) {
@@ -884,7 +884,7 @@ b`.split(/\n/).length != 3 ? function(e) {
884
884
  }
885
885
  return r;
886
886
  }
887
- function Ul(e, t, n) {
887
+ function Rl(e, t, n) {
888
888
  var r;
889
889
  if (e)
890
890
  for (var i = 0; i < e.length; ++i) {
@@ -906,7 +906,7 @@ b`.split(/\n/).length != 3 ? function(e) {
906
906
  var n = Y(e, t.from.line) && ue(e, t.from.line).markedSpans, r = Y(e, t.to.line) && ue(e, t.to.line).markedSpans;
907
907
  if (!n && !r)
908
908
  return null;
909
- var i = t.from.ch, o = t.to.ch, a = ae(t.from, t.to) == 0, l = _l(n, i, a), s = Ul(r, o, a), f = t.text.length == 1, y = Ce(t.text).length + (f ? i : 0);
909
+ var i = t.from.ch, o = t.to.ch, a = ae(t.from, t.to) == 0, l = zl(n, i, a), s = Rl(r, o, a), f = t.text.length == 1, y = Ce(t.text).length + (f ? i : 0);
910
910
  if (l)
911
911
  for (var k = 0; k < l.length; ++k) {
912
912
  var F = l[k];
@@ -944,7 +944,7 @@ b`.split(/\n/).length != 3 ? function(e) {
944
944
  }
945
945
  return e.length ? e : null;
946
946
  }
947
- function Gl(e, t, n) {
947
+ function Kl(e, t, n) {
948
948
  var r = null;
949
949
  if (e.iter(t.line, n.line + 1, function(N) {
950
950
  if (N.markedSpans)
@@ -1008,7 +1008,7 @@ b`.split(/\n/).length != 3 ? function(e) {
1008
1008
  function Gn(e) {
1009
1009
  return Oo(e, !1);
1010
1010
  }
1011
- function ql(e, t) {
1011
+ function _l(e, t) {
1012
1012
  var n = Jt && e.markedSpans, r;
1013
1013
  if (n)
1014
1014
  for (var i = 0; i < n.length; ++i) {
@@ -1034,12 +1034,12 @@ b`.split(/\n/).length != 3 ? function(e) {
1034
1034
  e = t.find(-1, !0).line;
1035
1035
  return e;
1036
1036
  }
1037
- function Xl(e) {
1037
+ function Ul(e) {
1038
1038
  for (var t; t = Gn(e); )
1039
1039
  e = t.find(1, !0).line;
1040
1040
  return e;
1041
1041
  }
1042
- function jl(e) {
1042
+ function Gl(e) {
1043
1043
  for (var t, n; t = Gn(e); )
1044
1044
  e = t.find(1, !0).line, (n || (n = [])).push(e);
1045
1045
  return n;
@@ -1124,19 +1124,19 @@ b`.split(/\n/).length != 3 ? function(e) {
1124
1124
  zr.prototype.lineNo = function() {
1125
1125
  return h(this);
1126
1126
  }, Dt(zr);
1127
- function Yl(e, t, n, r) {
1127
+ function ql(e, t, n, r) {
1128
1128
  e.text = t, e.stateAfter && (e.stateAfter = null), e.styles && (e.styles = null), e.order != null && (e.order = null), To(e), Ao(e, n);
1129
1129
  var i = r ? r(e) : 1;
1130
1130
  i != e.height && At(e, i);
1131
1131
  }
1132
- function Zl(e) {
1132
+ function Xl(e) {
1133
1133
  e.parent = null, To(e);
1134
1134
  }
1135
- var Ql = {}, Jl = {};
1135
+ var jl = {}, Yl = {};
1136
1136
  function Do(e, t) {
1137
1137
  if (!e || /^\s*$/.test(e))
1138
1138
  return null;
1139
- var n = t.addModeClass ? Jl : Ql;
1139
+ var n = t.addModeClass ? Yl : jl;
1140
1140
  return n[e] || (n[e] = e.replace(/\S+/g, "cm-$&"));
1141
1141
  }
1142
1142
  function Fo(e, t) {
@@ -1152,9 +1152,9 @@ b`.split(/\n/).length != 3 ? function(e) {
1152
1152
  t.measure = {};
1153
1153
  for (var i = 0; i <= (t.rest ? t.rest.length : 0); i++) {
1154
1154
  var o = i ? t.rest[i - 1] : t.line, a = void 0;
1155
- r.pos = 0, r.addToken = $l, lr(e.display.measure) && (a = Se(o, e.doc.direction)) && (r.addToken = ts(r.addToken, a)), r.map = [];
1155
+ r.pos = 0, r.addToken = Ql, lr(e.display.measure) && (a = Se(o, e.doc.direction)) && (r.addToken = Vl(r.addToken, a)), r.map = [];
1156
1156
  var l = t != e.display.externalMeasured && h(o);
1157
- rs(o, r, yo(e, o, l)), o.styleClasses && (o.styleClasses.bgClass && (r.bgClass = we(o.styleClasses.bgClass, r.bgClass || "")), o.styleClasses.textClass && (r.textClass = we(o.styleClasses.textClass, r.textClass || ""))), r.map.length == 0 && r.map.push(0, 0, r.content.appendChild(Hn(e.display.measure))), i == 0 ? (t.measure.map = r.map, t.measure.cache = {}) : ((t.measure.maps || (t.measure.maps = [])).push(r.map), (t.measure.caches || (t.measure.caches = [])).push({}));
1157
+ $l(o, r, yo(e, o, l)), o.styleClasses && (o.styleClasses.bgClass && (r.bgClass = we(o.styleClasses.bgClass, r.bgClass || "")), o.styleClasses.textClass && (r.textClass = we(o.styleClasses.textClass, r.textClass || ""))), r.map.length == 0 && r.map.push(0, 0, r.content.appendChild(Hn(e.display.measure))), i == 0 ? (t.measure.map = r.map, t.measure.cache = {}) : ((t.measure.maps || (t.measure.maps = [])).push(r.map), (t.measure.caches || (t.measure.caches = [])).push({}));
1158
1158
  }
1159
1159
  if (T) {
1160
1160
  var s = r.content.lastChild;
@@ -1162,13 +1162,13 @@ b`.split(/\n/).length != 3 ? function(e) {
1162
1162
  }
1163
1163
  return ze(e, "renderLine", e, t.line, r.pre), r.pre.className && (r.textClass = we(r.pre.className, r.textClass || "")), r;
1164
1164
  }
1165
- function Vl(e) {
1165
+ function Zl(e) {
1166
1166
  var t = c("span", "•", "cm-invalidchar");
1167
1167
  return t.title = "\\u" + e.charCodeAt(0).toString(16), t.setAttribute("aria-label", t.title), t;
1168
1168
  }
1169
- function $l(e, t, n, r, i, o, a) {
1169
+ function Ql(e, t, n, r, i, o, a) {
1170
1170
  if (t) {
1171
- var l = e.splitSpaces ? es(t, e.trailingSpace) : t, s = e.cm.state.specialChars, f = !1, y;
1171
+ var l = e.splitSpaces ? Jl(t, e.trailingSpace) : t, s = e.cm.state.specialChars, f = !1, y;
1172
1172
  if (!s.test(t))
1173
1173
  e.col += t.length, y = document.createTextNode(l), e.map.push(e.pos, e.pos + t.length, y), W && K < 9 && (f = !0), e.pos += t.length;
1174
1174
  else {
@@ -1205,7 +1205,7 @@ b`.split(/\n/).length != 3 ? function(e) {
1205
1205
  e.content.appendChild(y);
1206
1206
  }
1207
1207
  }
1208
- function es(e, t) {
1208
+ function Jl(e, t) {
1209
1209
  if (e.length > 1 && !/ /.test(e))
1210
1210
  return e;
1211
1211
  for (var n = t, r = "", i = 0; i < e.length; i++) {
@@ -1214,7 +1214,7 @@ b`.split(/\n/).length != 3 ? function(e) {
1214
1214
  }
1215
1215
  return r;
1216
1216
  }
1217
- function ts(e, t) {
1217
+ function Vl(e, t) {
1218
1218
  return function(n, r, i, o, a, l, s) {
1219
1219
  i = i ? i + " cm-force-border" : "cm-force-border";
1220
1220
  for (var f = n.pos, y = f + r.length; ; ) {
@@ -1230,7 +1230,7 @@ b`.split(/\n/).length != 3 ? function(e) {
1230
1230
  var i = !r && n.widgetNode;
1231
1231
  i && e.map.push(e.pos, e.pos + t, i), !r && e.cm.display.input.needsContentAttribute && (i || (i = e.content.appendChild(document.createElement("span"))), i.setAttribute("cm-marker", n.id)), i && (e.cm.display.input.setUneditable(i), e.content.appendChild(i)), e.pos += t, e.trailingSpace = !1;
1232
1232
  }
1233
- function rs(e, t, n) {
1233
+ function $l(e, t, n) {
1234
1234
  var r = e.markedSpans, i = e.text, o = 0;
1235
1235
  if (!r) {
1236
1236
  for (var a = 1; a < n.length; a += 2)
@@ -1297,7 +1297,7 @@ b`.split(/\n/).length != 3 ? function(e) {
1297
1297
  }
1298
1298
  }
1299
1299
  function Wo(e, t, n) {
1300
- this.line = t, this.rest = jl(t), this.size = this.rest ? h(Ce(this.rest)) - n + 1 : 1, this.node = this.text = null, this.hidden = fr(e, t);
1300
+ this.line = t, this.rest = Gl(t), this.size = this.rest ? h(Ce(this.rest)) - n + 1 : 1, this.node = this.text = null, this.hidden = fr(e, t);
1301
1301
  }
1302
1302
  function Xn(e, t, n) {
1303
1303
  for (var r = [], i, o = t; o < n; o = i) {
@@ -1307,13 +1307,13 @@ b`.split(/\n/).length != 3 ? function(e) {
1307
1307
  return r;
1308
1308
  }
1309
1309
  var Rr = null;
1310
- function ns(e) {
1310
+ function es(e) {
1311
1311
  Rr ? Rr.ops.push(e) : e.ownsGroup = Rr = {
1312
1312
  ops: [e],
1313
1313
  delayedCallbacks: []
1314
1314
  };
1315
1315
  }
1316
- function is(e) {
1316
+ function ts(e) {
1317
1317
  var t = e.delayedCallbacks, n = 0;
1318
1318
  do {
1319
1319
  for (; n < t.length; n++)
@@ -1326,11 +1326,11 @@ b`.split(/\n/).length != 3 ? function(e) {
1326
1326
  }
1327
1327
  } while (n < t.length);
1328
1328
  }
1329
- function os(e, t) {
1329
+ function rs(e, t) {
1330
1330
  var n = e.ownsGroup;
1331
1331
  if (n)
1332
1332
  try {
1333
- is(n);
1333
+ ts(n);
1334
1334
  } finally {
1335
1335
  Rr = null, t(n);
1336
1336
  }
@@ -1340,7 +1340,7 @@ b`.split(/\n/).length != 3 ? function(e) {
1340
1340
  var n = Zt(e, t);
1341
1341
  if (n.length) {
1342
1342
  var r = Array.prototype.slice.call(arguments, 2), i;
1343
- Rr ? i = Rr.delayedCallbacks : cn ? i = cn : (i = cn = [], setTimeout(as, 0));
1343
+ Rr ? i = Rr.delayedCallbacks : cn ? i = cn : (i = cn = [], setTimeout(ns, 0));
1344
1344
  for (var o = function(l) {
1345
1345
  i.push(function() {
1346
1346
  return n[l].apply(null, r);
@@ -1349,7 +1349,7 @@ b`.split(/\n/).length != 3 ? function(e) {
1349
1349
  o(a);
1350
1350
  }
1351
1351
  }
1352
- function as() {
1352
+ function ns() {
1353
1353
  var e = cn;
1354
1354
  cn = null;
1355
1355
  for (var t = 0; t < e.length; ++t)
@@ -1358,14 +1358,14 @@ b`.split(/\n/).length != 3 ? function(e) {
1358
1358
  function Bo(e, t, n, r) {
1359
1359
  for (var i = 0; i < t.changes.length; i++) {
1360
1360
  var o = t.changes[i];
1361
- o == "text" ? ss(e, t) : o == "gutter" ? Ho(e, t, n, r) : o == "class" ? Ti(e, t) : o == "widget" && us(e, t, r);
1361
+ o == "text" ? os(e, t) : o == "gutter" ? Ho(e, t, n, r) : o == "class" ? Ti(e, t) : o == "widget" && as(e, t, r);
1362
1362
  }
1363
1363
  t.changes = null;
1364
1364
  }
1365
1365
  function hn(e) {
1366
1366
  return e.node == e.text && (e.node = c("div", null, null, "position: relative"), e.text.parentNode && e.text.parentNode.replaceChild(e.node, e.text), e.node.appendChild(e.text), W && K < 8 && (e.node.style.zIndex = 2)), e.node;
1367
1367
  }
1368
- function ls(e, t) {
1368
+ function is(e, t) {
1369
1369
  var n = t.bgClass ? t.bgClass + " " + (t.line.bgClass || "") : t.line.bgClass;
1370
1370
  if (n && (n += " CodeMirror-linebackground"), t.background)
1371
1371
  n ? t.background.className = n : (t.background.parentNode.removeChild(t.background), t.background = null);
@@ -1378,12 +1378,12 @@ b`.split(/\n/).length != 3 ? function(e) {
1378
1378
  var n = e.display.externalMeasured;
1379
1379
  return n && n.line == t.line ? (e.display.externalMeasured = null, t.measure = n.measure, n.built) : Fo(e, t);
1380
1380
  }
1381
- function ss(e, t) {
1381
+ function os(e, t) {
1382
1382
  var n = t.text.className, r = Io(e, t);
1383
1383
  t.text == t.node && (t.node = r.pre), t.text.parentNode.replaceChild(r.pre, t.text), t.text = r.pre, r.bgClass != t.bgClass || r.textClass != t.textClass ? (t.bgClass = r.bgClass, t.textClass = r.textClass, Ti(e, t)) : n && (t.text.className = n);
1384
1384
  }
1385
1385
  function Ti(e, t) {
1386
- ls(e, t), t.line.wrapClass ? hn(t).className = t.line.wrapClass : t.node != t.text && (t.node.className = "");
1386
+ is(e, t), t.line.wrapClass ? hn(t).className = t.line.wrapClass : t.node != t.text && (t.node.className = "");
1387
1387
  var n = t.textClass ? t.textClass + " " + (t.line.textClass || "") : t.line.textClass;
1388
1388
  t.text.className = n || "";
1389
1389
  }
@@ -1419,13 +1419,13 @@ b`.split(/\n/).length != 3 ? function(e) {
1419
1419
  }
1420
1420
  }
1421
1421
  }
1422
- function us(e, t, n) {
1422
+ function as(e, t, n) {
1423
1423
  t.alignable && (t.alignable = null);
1424
1424
  for (var r = O("CodeMirror-linewidget"), i = t.node.firstChild, o = void 0; i; i = o)
1425
1425
  o = i.nextSibling, r.test(i.className) && t.node.removeChild(i);
1426
1426
  zo(e, t, n);
1427
1427
  }
1428
- function fs(e, t, n, r) {
1428
+ function ls(e, t, n, r) {
1429
1429
  var i = Io(e, t);
1430
1430
  return t.text = t.node = i.pre, i.bgClass && (t.bgClass = i.bgClass), i.textClass && (t.textClass = i.textClass), Ti(e, t), Ho(e, t, n, r), zo(e, t, r), t.node;
1431
1431
  }
@@ -1438,10 +1438,10 @@ b`.split(/\n/).length != 3 ? function(e) {
1438
1438
  if (t.widgets)
1439
1439
  for (var o = hn(n), a = 0, l = t.widgets; a < l.length; ++a) {
1440
1440
  var s = l[a], f = c("div", [s.node], "CodeMirror-linewidget" + (s.className ? " " + s.className : ""));
1441
- s.handleMouseEvents || f.setAttribute("cm-ignore-events", "true"), cs(s, f, n, r), e.display.input.setUneditable(f), i && s.above ? o.insertBefore(f, n.gutter || n.text) : o.appendChild(f), Ve(s, "redraw");
1441
+ s.handleMouseEvents || f.setAttribute("cm-ignore-events", "true"), ss(s, f, n, r), e.display.input.setUneditable(f), i && s.above ? o.insertBefore(f, n.gutter || n.text) : o.appendChild(f), Ve(s, "redraw");
1442
1442
  }
1443
1443
  }
1444
- function cs(e, t, n, r) {
1444
+ function ss(e, t, n, r) {
1445
1445
  if (e.noHScroll) {
1446
1446
  (n.alignable || (n.alignable = [])).push(t);
1447
1447
  var i = r.wrapperWidth;
@@ -1487,7 +1487,7 @@ b`.split(/\n/).length != 3 ? function(e) {
1487
1487
  function Oi(e) {
1488
1488
  return e.display.scroller.clientHeight - Gt(e) - e.display.barHeight;
1489
1489
  }
1490
- function hs(e, t, n) {
1490
+ function us(e, t, n) {
1491
1491
  var r = e.options.lineWrapping, i = r && kr(e);
1492
1492
  if (!t.measure.heights || r && t.measure.width != i) {
1493
1493
  var o = t.measure.heights = [];
@@ -1513,7 +1513,7 @@ b`.split(/\n/).length != 3 ? function(e) {
1513
1513
  return { map: e.measure.maps[i], cache: e.measure.caches[i], before: !0 };
1514
1514
  }
1515
1515
  }
1516
- function ds(e, t) {
1516
+ function fs(e, t) {
1517
1517
  t = It(t);
1518
1518
  var n = h(t), r = e.display.externalMeasured = new Wo(e.doc, t, n);
1519
1519
  r.lineN = n;
@@ -1532,7 +1532,7 @@ b`.split(/\n/).length != 3 ? function(e) {
1532
1532
  }
1533
1533
  function Kr(e, t) {
1534
1534
  var n = h(t), r = Ni(e, n);
1535
- r && !r.text ? r = null : r && r.changes && (Bo(e, r, n, Ei(e)), e.curOp.forceUpdate = !0), r || (r = ds(e, t));
1535
+ r && !r.text ? r = null : r && r.changes && (Bo(e, r, n, Ei(e)), e.curOp.forceUpdate = !0), r || (r = fs(e, t));
1536
1536
  var i = _o(r, t, n);
1537
1537
  return {
1538
1538
  line: t,
@@ -1547,7 +1547,7 @@ b`.split(/\n/).length != 3 ? function(e) {
1547
1547
  function qt(e, t, n, r, i) {
1548
1548
  t.before && (n = -1);
1549
1549
  var o = n + (r || ""), a;
1550
- return t.cache.hasOwnProperty(o) ? a = t.cache[o] : (t.rect || (t.rect = t.view.text.getBoundingClientRect()), t.hasHeights || (hs(e, t.view, t.rect), t.hasHeights = !0), a = vs(e, t, n, r), a.bogus || (t.cache[o] = a)), {
1550
+ return t.cache.hasOwnProperty(o) ? a = t.cache[o] : (t.rect || (t.rect = t.view.text.getBoundingClientRect()), t.hasHeights || (us(e, t.view, t.rect), t.hasHeights = !0), a = hs(e, t, n, r), a.bogus || (t.cache[o] = a)), {
1551
1551
  left: a.left,
1552
1552
  right: a.right,
1553
1553
  top: i ? a.rtop : a.top,
@@ -1568,7 +1568,7 @@ b`.split(/\n/).length != 3 ? function(e) {
1568
1568
  }
1569
1569
  return { node: r, start: i, end: o, collapse: a, coverStart: l, coverEnd: s };
1570
1570
  }
1571
- function ps(e, t) {
1571
+ function cs(e, t) {
1572
1572
  var n = Go;
1573
1573
  if (t == "left")
1574
1574
  for (var r = 0; r < e.length && (n = e[r]).left == n.right; r++)
@@ -1578,7 +1578,7 @@ b`.split(/\n/).length != 3 ? function(e) {
1578
1578
  ;
1579
1579
  return n;
1580
1580
  }
1581
- function vs(e, t, n, r) {
1581
+ function hs(e, t, n, r) {
1582
1582
  var i = qo(t.map, n, r), o = i.node, a = i.start, l = i.end, s = i.collapse, f;
1583
1583
  if (o.nodeType == 3) {
1584
1584
  for (var y = 0; y < 4; y++) {
@@ -1586,11 +1586,11 @@ b`.split(/\n/).length != 3 ? function(e) {
1586
1586
  --a;
1587
1587
  for (; i.coverStart + l < i.coverEnd && je(t.line.text.charAt(i.coverStart + l)); )
1588
1588
  ++l;
1589
- if (W && K < 9 && a == 0 && l == i.coverEnd - i.coverStart ? f = o.parentNode.getBoundingClientRect() : f = ps(j(o, a, l).getClientRects(), r), f.left || f.right || a == 0)
1589
+ if (W && K < 9 && a == 0 && l == i.coverEnd - i.coverStart ? f = o.parentNode.getBoundingClientRect() : f = cs(j(o, a, l).getClientRects(), r), f.left || f.right || a == 0)
1590
1590
  break;
1591
1591
  l = a, a = a - 1, s = "right";
1592
1592
  }
1593
- W && K < 11 && (f = gs(e.display.measure, f));
1593
+ W && K < 11 && (f = ds(e.display.measure, f));
1594
1594
  } else {
1595
1595
  a > 0 && (s = r = "right");
1596
1596
  var k;
@@ -1610,7 +1610,7 @@ b`.split(/\n/).length != 3 ? function(e) {
1610
1610
  };
1611
1611
  return !f.left && !f.right && (se.bogus = !0), e.options.singleCursorHeightPerLine || (se.rtop = N, se.rbottom = q), se;
1612
1612
  }
1613
- function gs(e, t) {
1613
+ function ds(e, t) {
1614
1614
  if (!window.screen || screen.logicalXDPI == null || screen.logicalXDPI == screen.deviceXDPI || !yi(e))
1615
1615
  return t;
1616
1616
  var n = screen.logicalXDPI / screen.deviceXDPI, r = screen.logicalYDPI / screen.deviceYDPI;
@@ -1715,7 +1715,7 @@ b`.split(/\n/).length != 3 ? function(e) {
1715
1715
  return Mi(r.first + r.size - 1, ue(r, o).text.length, null, 1, 1);
1716
1716
  t < 0 && (t = 0);
1717
1717
  for (var a = ue(r, i); ; ) {
1718
- var l = ms(e, a, i, t, n), s = ql(a, l.ch + (l.xRel > 0 || l.outside > 0 ? 1 : 0));
1718
+ var l = ps(e, a, i, t, n), s = _l(a, l.ch + (l.xRel > 0 || l.outside > 0 ? 1 : 0));
1719
1719
  if (!s)
1720
1720
  return l;
1721
1721
  var f = s.find(1);
@@ -1741,11 +1741,11 @@ b`.split(/\n/).length != 3 ? function(e) {
1741
1741
  function Fi(e, t, n, r) {
1742
1742
  return e.bottom <= n ? !1 : e.top > n ? !0 : (r ? e.left : e.right) > t;
1743
1743
  }
1744
- function ms(e, t, n, r, i) {
1744
+ function ps(e, t, n, r, i) {
1745
1745
  i -= Vt(t);
1746
1746
  var o = Kr(e, t), a = Pi(t), l = 0, s = t.text.length, f = !0, y = Se(t, e.doc.direction);
1747
1747
  if (y) {
1748
- var k = (e.options.lineWrapping ? bs : ys)(e, t, n, o, y, r, i);
1748
+ var k = (e.options.lineWrapping ? gs : vs)(e, t, n, o, y, r, i);
1749
1749
  f = k.level != 1, l = f ? k.from : k.to - 1, s = f ? k.to : k.from - 1;
1750
1750
  }
1751
1751
  var F = null, N = null, q = Kt(function(ve) {
@@ -1762,7 +1762,7 @@ b`.split(/\n/).length != 3 ? function(e) {
1762
1762
  }
1763
1763
  return q = nr(t.text, q, 1), Mi(n, q, ee, ie, r - Q);
1764
1764
  }
1765
- function ys(e, t, n, r, i, o, a) {
1765
+ function vs(e, t, n, r, i, o, a) {
1766
1766
  var l = Kt(function(k) {
1767
1767
  var F = i[k], N = F.level != 1;
1768
1768
  return Fi(Ht(
@@ -1785,7 +1785,7 @@ b`.split(/\n/).length != 3 ? function(e) {
1785
1785
  }
1786
1786
  return s;
1787
1787
  }
1788
- function bs(e, t, n, r, i, o, a) {
1788
+ function gs(e, t, n, r, i, o, a) {
1789
1789
  var l = Vo(e, t, r, a), s = l.begin, f = l.end;
1790
1790
  /\s/.test(t.text.charAt(f - 1)) && f--;
1791
1791
  for (var y = null, k = null, F = 0; F < i.length; F++) {
@@ -1936,7 +1936,7 @@ b`.split(/\n/).length != 3 ? function(e) {
1936
1936
  }
1937
1937
  return { index: i, lineN: n };
1938
1938
  }
1939
- function xs(e, t, n) {
1939
+ function ms(e, t, n) {
1940
1940
  var r = e.display, i = r.view;
1941
1941
  i.length == 0 || t >= r.viewTo || n <= r.viewFrom ? (r.view = Xn(e, t, n), r.viewFrom = t) : (r.viewFrom > t ? r.view = Xn(e, t, r.viewFrom).concat(r.view) : r.viewFrom < t && (r.view = r.view.slice(Cr(e, t))), r.viewFrom = t, r.viewTo < n ? r.view = r.view.concat(Xn(e, r.viewTo, n)) : r.viewTo > n && (r.view = r.view.slice(0, Cr(e, n)))), r.viewTo = n;
1942
1942
  }
@@ -1964,7 +1964,7 @@ b`.split(/\n/).length != 3 ? function(e) {
1964
1964
  y && Ii(e, y, i);
1965
1965
  } else
1966
1966
  (f || e.options.showCursorWhenSelecting) && Ii(e, s.head, i);
1967
- f || ks(e, s, o);
1967
+ f || ys(e, s, o);
1968
1968
  }
1969
1969
  }
1970
1970
  return r;
@@ -1983,7 +1983,7 @@ b`.split(/\n/).length != 3 ? function(e) {
1983
1983
  function Jn(e, t) {
1984
1984
  return e.top - t.top || e.left - t.left;
1985
1985
  }
1986
- function ks(e, t, n) {
1986
+ function ys(e, t, n) {
1987
1987
  var r = e.display, i = e.doc, o = document.createDocumentFragment(), a = Ko(e.display), l = a.left, s = Math.max(r.sizerWidth, kr(e) - r.sizer.offsetLeft) - a.right, f = i.direction == "ltr";
1988
1988
  function y(oe, se, ve, de) {
1989
1989
  se < 0 && (se = 0), se = Math.round(se), de = Math.round(de), o.appendChild(c("div", null, "CodeMirror-selected", "position: absolute; left: " + oe + `px;
@@ -2089,7 +2089,7 @@ b`.split(/\n/).length != 3 ? function(e) {
2089
2089
  }
2090
2090
  return { from: o, to: Math.max(a, o + 1) };
2091
2091
  }
2092
- function ws(e, t) {
2092
+ function bs(e, t) {
2093
2093
  if (!Re(e, "scrollCursorIntoView")) {
2094
2094
  var n = e.display, r = n.sizer.getBoundingClientRect(), i = null, o = n.wrapper.ownerDocument;
2095
2095
  if (t.top + r.top < 0 ? i = !0 : t.bottom + r.top > (o.defaultView.innerHeight || o.documentElement.clientHeight) && (i = !1), i != null && !S) {
@@ -2101,7 +2101,7 @@ b`.split(/\n/).length != 3 ? function(e) {
2101
2101
  }
2102
2102
  }
2103
2103
  }
2104
- function Ss(e, t, n, r) {
2104
+ function xs(e, t, n, r) {
2105
2105
  r == null && (r = 0);
2106
2106
  var i;
2107
2107
  !e.options.lineWrapping && t == n && (n = t.sticky == "before" ? R(t.line, t.ch + 1, "before") : t, t = t.ch ? R(t.line, t.sticky == "before" ? t.ch - 1 : t.ch, "after") : t);
@@ -2119,7 +2119,7 @@ b`.split(/\n/).length != 3 ? function(e) {
2119
2119
  }
2120
2120
  return i;
2121
2121
  }
2122
- function Cs(e, t) {
2122
+ function ks(e, t) {
2123
2123
  var n = Ki(e, t);
2124
2124
  n.scrollTop != null && mn(e, n.scrollTop), n.scrollLeft != null && Lr(e, n.scrollLeft);
2125
2125
  }
@@ -2149,7 +2149,7 @@ b`.split(/\n/).length != 3 ? function(e) {
2149
2149
  function gn(e, t, n) {
2150
2150
  (t != null || n != null) && ei(e), t != null && (e.curOp.scrollLeft = t), n != null && (e.curOp.scrollTop = n);
2151
2151
  }
2152
- function Ls(e, t) {
2152
+ function ws(e, t) {
2153
2153
  ei(e), e.curOp.scrollToPos = t;
2154
2154
  }
2155
2155
  function ei(e) {
@@ -2266,7 +2266,7 @@ b`.split(/\n/).length != 3 ? function(e) {
2266
2266
  n == "horizontal" ? Lr(e, t) : mn(e, t);
2267
2267
  }, e), e.display.scrollbars.addClass && ce(e.display.wrapper, e.display.scrollbars.addClass);
2268
2268
  }
2269
- var Ts = 0;
2269
+ var Ss = 0;
2270
2270
  function Ar(e) {
2271
2271
  e.curOp = {
2272
2272
  cm: e,
@@ -2296,59 +2296,59 @@ b`.split(/\n/).length != 3 ? function(e) {
2296
2296
  scrollToPos: null,
2297
2297
  // Used to scroll to a specific position
2298
2298
  focus: !1,
2299
- id: ++Ts,
2299
+ id: ++Ss,
2300
2300
  // Unique ID
2301
2301
  markArrays: null
2302
2302
  // Used by addMarkedSpan
2303
- }, ns(e.curOp);
2303
+ }, es(e.curOp);
2304
2304
  }
2305
2305
  function Or(e) {
2306
2306
  var t = e.curOp;
2307
- t && os(t, function(n) {
2307
+ t && rs(t, function(n) {
2308
2308
  for (var r = 0; r < n.ops.length; r++)
2309
2309
  n.ops[r].cm.curOp = null;
2310
- As(n);
2310
+ Cs(n);
2311
2311
  });
2312
2312
  }
2313
- function As(e) {
2313
+ function Cs(e) {
2314
2314
  for (var t = e.ops, n = 0; n < t.length; n++)
2315
- Os(t[n]);
2315
+ Ls(t[n]);
2316
2316
  for (var r = 0; r < t.length; r++)
2317
- Ns(t[r]);
2317
+ Ts(t[r]);
2318
2318
  for (var i = 0; i < t.length; i++)
2319
- Ps(t[i]);
2319
+ As(t[i]);
2320
2320
  for (var o = 0; o < t.length; o++)
2321
- Ms(t[o]);
2321
+ Os(t[o]);
2322
2322
  for (var a = 0; a < t.length; a++)
2323
- Ds(t[a]);
2323
+ Ns(t[a]);
2324
2324
  }
2325
- function Os(e) {
2325
+ function Ls(e) {
2326
2326
  var t = e.cm, n = t.display;
2327
- Es(t), e.updateMaxLine && Li(t), e.mustUpdate = e.viewChanged || e.forceUpdate || e.scrollTop != null || e.scrollToPos && (e.scrollToPos.from.line < n.viewFrom || e.scrollToPos.to.line >= n.viewTo) || n.maxLineChanged && t.options.lineWrapping, e.update = e.mustUpdate && new ti(t, e.mustUpdate && { top: e.scrollTop, ensure: e.scrollToPos }, e.forceUpdate);
2327
+ Ms(t), e.updateMaxLine && Li(t), e.mustUpdate = e.viewChanged || e.forceUpdate || e.scrollTop != null || e.scrollToPos && (e.scrollToPos.from.line < n.viewFrom || e.scrollToPos.to.line >= n.viewTo) || n.maxLineChanged && t.options.lineWrapping, e.update = e.mustUpdate && new ti(t, e.mustUpdate && { top: e.scrollTop, ensure: e.scrollToPos }, e.forceUpdate);
2328
2328
  }
2329
- function Ns(e) {
2329
+ function Ts(e) {
2330
2330
  e.updatedDisplay = e.mustUpdate && Ui(e.cm, e.update);
2331
2331
  }
2332
- function Ps(e) {
2332
+ function As(e) {
2333
2333
  var t = e.cm, n = t.display;
2334
2334
  e.updatedDisplay && Vn(t), e.barMeasure = yn(t), n.maxLineChanged && !t.options.lineWrapping && (e.adjustWidthTo = Uo(t, n.maxLine, n.maxLine.text.length).left + 3, t.display.sizerWidth = e.adjustWidthTo, e.barMeasure.scrollWidth = Math.max(n.scroller.clientWidth, n.sizer.offsetLeft + e.adjustWidthTo + Gt(t) + t.display.barWidth), e.maxScrollLeft = Math.max(0, n.sizer.offsetLeft + e.adjustWidthTo - kr(t))), (e.updatedDisplay || e.selectionChanged) && (e.preparedSelection = n.input.prepareSelection());
2335
2335
  }
2336
- function Ms(e) {
2336
+ function Os(e) {
2337
2337
  var t = e.cm;
2338
2338
  e.adjustWidthTo != null && (t.display.sizer.style.minWidth = e.adjustWidthTo + "px", e.maxScrollLeft < t.doc.scrollLeft && Lr(t, Math.min(t.display.scroller.scrollLeft, e.maxScrollLeft), !0), t.display.maxLineChanged = !1);
2339
2339
  var n = e.focus && e.focus == fe(Ge(t));
2340
2340
  e.preparedSelection && t.display.input.showSelection(e.preparedSelection, n), (e.updatedDisplay || e.startHeight != t.doc.height) && Xr(t, e.barMeasure), e.updatedDisplay && Xi(t, e.barMeasure), e.selectionChanged && Hi(t), t.state.focused && e.updateInput && t.display.input.reset(e.typing), n && na(e.cm);
2341
2341
  }
2342
- function Ds(e) {
2342
+ function Ns(e) {
2343
2343
  var t = e.cm, n = t.display, r = t.doc;
2344
2344
  if (e.updatedDisplay && fa(t, e.update), n.wheelStartX != null && (e.scrollTop != null || e.scrollLeft != null || e.scrollToPos) && (n.wheelStartX = n.wheelStartY = null), e.scrollTop != null && aa(t, e.scrollTop, e.forceScroll), e.scrollLeft != null && Lr(t, e.scrollLeft, !0, !0), e.scrollToPos) {
2345
- var i = Ss(
2345
+ var i = xs(
2346
2346
  t,
2347
2347
  ye(r, e.scrollToPos.from),
2348
2348
  ye(r, e.scrollToPos.to),
2349
2349
  e.scrollToPos.margin
2350
2350
  );
2351
- ws(t, i);
2351
+ bs(t, i);
2352
2352
  }
2353
2353
  var o = e.maybeHiddenMarkers, a = e.maybeUnhiddenMarkers;
2354
2354
  if (o)
@@ -2407,9 +2407,9 @@ b`.split(/\n/).length != 3 ? function(e) {
2407
2407
  };
2408
2408
  }
2409
2409
  function xn(e, t) {
2410
- e.doc.highlightFrontier < e.display.viewTo && e.state.highlight.set(t, ge(Fs, e));
2410
+ e.doc.highlightFrontier < e.display.viewTo && e.state.highlight.set(t, ge(Ps, e));
2411
2411
  }
2412
- function Fs(e) {
2412
+ function Ps(e) {
2413
2413
  var t = e.doc;
2414
2414
  if (!(t.highlightFrontier >= e.display.viewTo)) {
2415
2415
  var n = +/* @__PURE__ */ new Date() + e.options.workTime, r = un(e, t.highlightFrontier), i = [];
@@ -2442,11 +2442,11 @@ b`.split(/\n/).length != 3 ? function(e) {
2442
2442
  for (var e = 0; e < this.events.length; e++)
2443
2443
  ze.apply(null, this.events[e]);
2444
2444
  };
2445
- function Es(e) {
2445
+ function Ms(e) {
2446
2446
  var t = e.display;
2447
2447
  !t.scrollbarsClipped && t.scroller.offsetWidth && (t.nativeBarWidth = t.scroller.offsetWidth - t.scroller.clientWidth, t.heightForcer.style.height = Gt(e) + "px", t.sizer.style.marginBottom = -t.nativeBarWidth + "px", t.sizer.style.borderRightWidth = Gt(e) + "px", t.scrollbarsClipped = !0);
2448
2448
  }
2449
- function Ws(e) {
2449
+ function Ds(e) {
2450
2450
  if (e.hasFocus())
2451
2451
  return null;
2452
2452
  var t = fe(Ge(e));
@@ -2459,7 +2459,7 @@ b`.split(/\n/).length != 3 ? function(e) {
2459
2459
  }
2460
2460
  return n;
2461
2461
  }
2462
- function Bs(e) {
2462
+ function Fs(e) {
2463
2463
  if (!(!e || !e.activeElt || e.activeElt == fe(Ee(e.activeElt))) && (e.activeElt.focus(), !/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName) && e.anchorNode && ne(document.body, e.anchorNode) && ne(document.body, e.focusNode))) {
2464
2464
  var t = e.activeElt.ownerDocument, n = t.defaultView.getSelection(), r = t.createRange();
2465
2465
  r.setEnd(e.anchorNode, e.anchorOffset), r.collapse(!1), n.removeAllRanges(), n.addRange(r), n.extend(e.focusNode, e.focusOffset);
@@ -2475,12 +2475,12 @@ b`.split(/\n/).length != 3 ? function(e) {
2475
2475
  var i = r.first + r.size, o = Math.max(t.visible.from - e.options.viewportMargin, r.first), a = Math.min(i, t.visible.to + e.options.viewportMargin);
2476
2476
  n.viewFrom < o && o - n.viewFrom < 20 && (o = Math.max(r.first, n.viewFrom)), n.viewTo > a && n.viewTo - a < 20 && (a = Math.min(i, n.viewTo)), Jt && (o = Si(e.doc, o), a = Mo(e.doc, a));
2477
2477
  var l = o != n.viewFrom || a != n.viewTo || n.lastWrapHeight != t.wrapperHeight || n.lastWrapWidth != t.wrapperWidth;
2478
- xs(e, o, a), n.viewOffset = Vt(ue(e.doc, n.viewFrom)), e.display.mover.style.top = n.viewOffset + "px";
2478
+ ms(e, o, a), n.viewOffset = Vt(ue(e.doc, n.viewFrom)), e.display.mover.style.top = n.viewOffset + "px";
2479
2479
  var s = ta(e);
2480
2480
  if (!l && s == 0 && !t.force && n.renderedView == n.view && (n.updateLineNumbers == null || n.updateLineNumbers >= n.viewTo))
2481
2481
  return !1;
2482
- var f = Ws(e);
2483
- return s > 4 && (n.lineDiv.style.display = "none"), Is(e, n.updateLineNumbers, t.dims), s > 4 && (n.lineDiv.style.display = ""), n.renderedView = n.view, Bs(f), A(n.cursorDiv), A(n.selectionDiv), n.gutters.style.height = n.sizer.style.minHeight = 0, l && (n.lastWrapHeight = t.wrapperHeight, n.lastWrapWidth = t.wrapperWidth, xn(e, 400)), n.updateLineNumbers = null, !0;
2482
+ var f = Ds(e);
2483
+ return s > 4 && (n.lineDiv.style.display = "none"), Es(e, n.updateLineNumbers, t.dims), s > 4 && (n.lineDiv.style.display = ""), n.renderedView = n.view, Fs(f), A(n.cursorDiv), A(n.selectionDiv), n.gutters.style.height = n.sizer.style.minHeight = 0, l && (n.lastWrapHeight = t.wrapperHeight, n.lastWrapWidth = t.wrapperWidth, xn(e, 400)), n.updateLineNumbers = null, !0;
2484
2484
  }
2485
2485
  function fa(e, t) {
2486
2486
  for (var n = t.viewport, r = !0; ; r = !1) {
@@ -2505,7 +2505,7 @@ b`.split(/\n/).length != 3 ? function(e) {
2505
2505
  vn(e), Xr(e, r), Xi(e, r), n.finish();
2506
2506
  }
2507
2507
  }
2508
- function Is(e, t, n) {
2508
+ function Es(e, t, n) {
2509
2509
  var r = e.display, i = e.options.lineNumbers, o = r.lineDiv, a = o.firstChild;
2510
2510
  function l(q) {
2511
2511
  var Q = q.nextSibling;
@@ -2515,7 +2515,7 @@ b`.split(/\n/).length != 3 ? function(e) {
2515
2515
  var k = s[y];
2516
2516
  if (!k.hidden)
2517
2517
  if (!k.node || k.node.parentNode != o) {
2518
- var F = fs(e, k, f, n);
2518
+ var F = ls(e, k, f, n);
2519
2519
  o.insertBefore(F, a);
2520
2520
  } else {
2521
2521
  for (; a != k.node; )
@@ -2587,7 +2587,7 @@ b`.split(/\n/).length != 3 ? function(e) {
2587
2587
  function kn(e) {
2588
2588
  da(e.display), mt(e), ca(e);
2589
2589
  }
2590
- function Hs(e, t, n, r) {
2590
+ function Ws(e, t, n, r) {
2591
2591
  var i = this;
2592
2592
  this.input = n, i.scrollbarFiller = c("div", null, "CodeMirror-scrollbar-filler"), i.scrollbarFiller.setAttribute("cm-not-content", "true"), i.gutterFiller = c("div", null, "CodeMirror-gutter-filler"), i.gutterFiller.setAttribute("cm-not-content", "true"), i.lineDiv = Z("div", null, "CodeMirror-code"), i.selectionDiv = c("div", null, null, "position: relative; z-index: 1"), i.cursorDiv = c("div", null, "CodeMirror-cursors"), i.measure = c("div", null, "CodeMirror-measure"), i.lineMeasure = c("div", null, "CodeMirror-measure"), i.lineSpace = Z(
2593
2593
  "div",
@@ -2604,7 +2604,7 @@ b`.split(/\n/).length != 3 ? function(e) {
2604
2604
  var t = e.wheelDeltaX, n = e.wheelDeltaY;
2605
2605
  return t == null && e.detail && e.axis == e.HORIZONTAL_AXIS && (t = e.detail), n == null && e.detail && e.axis == e.VERTICAL_AXIS ? n = e.detail : n == null && (n = e.wheelDelta), { x: t, y: n };
2606
2606
  }
2607
- function zs(e) {
2607
+ function Bs(e) {
2608
2608
  var t = pa(e);
2609
2609
  return t.x *= er, t.y *= er, t;
2610
2610
  }
@@ -2729,7 +2729,7 @@ b`.split(/\n/).length != 3 ? function(e) {
2729
2729
  function ma(e, t, n) {
2730
2730
  return e.line == t.line ? R(n.line, e.ch - t.ch + n.ch) : R(n.line + (e.line - t.line), e.ch);
2731
2731
  }
2732
- function Rs(e, t, n) {
2732
+ function Is(e, t, n) {
2733
2733
  for (var r = [], i = R(e.first, 0), o = i, a = 0; a < t.length; a++) {
2734
2734
  var l = t[a], s = ma(l.from, i, o), f = ma(pr(l), i, o);
2735
2735
  if (i = l.to, o = f, n == "around") {
@@ -2756,7 +2756,7 @@ b`.split(/\n/).length != 3 ? function(e) {
2756
2756
  return n ? n[le] : null;
2757
2757
  }
2758
2758
  function o(le, oe, se) {
2759
- Yl(le, oe, se, r), Ve(le, "change", le, t);
2759
+ ql(le, oe, se, r), Ve(le, "change", le, t);
2760
2760
  }
2761
2761
  function a(le, oe) {
2762
2762
  for (var se = [], ve = le; ve < oe; ++ve)
@@ -2806,7 +2806,7 @@ b`.split(/\n/).length != 3 ? function(e) {
2806
2806
  function xa(e) {
2807
2807
  (e.doc.direction == "rtl" ? ce : _)(e.display.lineDiv, "CodeMirror-rtl");
2808
2808
  }
2809
- function Ks(e) {
2809
+ function Hs(e) {
2810
2810
  St(e, function() {
2811
2811
  xa(e), mt(e);
2812
2812
  });
@@ -2829,7 +2829,7 @@ b`.split(/\n/).length != 3 ? function(e) {
2829
2829
  break;
2830
2830
  }
2831
2831
  }
2832
- function _s(e, t) {
2832
+ function zs(e, t) {
2833
2833
  if (t)
2834
2834
  return ka(e.done), Ce(e.done);
2835
2835
  if (e.done.length && !Ce(e.done).ranges)
@@ -2841,7 +2841,7 @@ b`.split(/\n/).length != 3 ? function(e) {
2841
2841
  var i = e.history;
2842
2842
  i.undone.length = 0;
2843
2843
  var o = +/* @__PURE__ */ new Date(), a, l;
2844
- if ((i.lastOp == r || i.lastOrigin == t.origin && t.origin && (t.origin.charAt(0) == "+" && i.lastModTime > o - (e.cm ? e.cm.options.historyEventDelay : 500) || t.origin.charAt(0) == "*")) && (a = _s(i, i.lastOp == r)))
2844
+ if ((i.lastOp == r || i.lastOrigin == t.origin && t.origin && (t.origin.charAt(0) == "+" && i.lastModTime > o - (e.cm ? e.cm.options.historyEventDelay : 500) || t.origin.charAt(0) == "*")) && (a = zs(i, i.lastOp == r)))
2845
2845
  l = Ce(a.changes), ae(t.from, t.to) == 0 && ae(t.from, l.to) == 0 ? l.to = pr(t) : a.changes.push(Ji(e, t));
2846
2846
  else {
2847
2847
  var s = Ce(i.done);
@@ -2853,13 +2853,13 @@ b`.split(/\n/).length != 3 ? function(e) {
2853
2853
  }
2854
2854
  i.done.push(n), i.generation = ++i.maxGeneration, i.lastModTime = i.lastSelTime = o, i.lastOp = i.lastSelOp = r, i.lastOrigin = i.lastSelOrigin = t.origin, l || ze(e, "historyAdded");
2855
2855
  }
2856
- function Us(e, t, n, r) {
2856
+ function Rs(e, t, n, r) {
2857
2857
  var i = t.charAt(0);
2858
2858
  return i == "*" || i == "+" && n.ranges.length == r.ranges.length && n.somethingSelected() == r.somethingSelected() && /* @__PURE__ */ new Date() - e.history.lastSelTime <= (e.cm ? e.cm.options.historyEventDelay : 500);
2859
2859
  }
2860
- function Gs(e, t, n, r) {
2860
+ function Ks(e, t, n, r) {
2861
2861
  var i = e.history, o = r && r.origin;
2862
- n == i.lastSelOp || o && i.lastSelOrigin == o && (i.lastModTime == i.lastSelTime && i.lastOrigin == o || Us(e, o, Ce(i.done), t)) ? i.done[i.done.length - 1] = t : ii(t, i.done), i.lastSelTime = +/* @__PURE__ */ new Date(), i.lastSelOrigin = o, i.lastSelOp = n, r && r.clearRedo !== !1 && ka(i.undone);
2862
+ n == i.lastSelOp || o && i.lastSelOrigin == o && (i.lastModTime == i.lastSelTime && i.lastOrigin == o || Rs(e, o, Ce(i.done), t)) ? i.done[i.done.length - 1] = t : ii(t, i.done), i.lastSelTime = +/* @__PURE__ */ new Date(), i.lastSelOrigin = o, i.lastSelOp = n, r && r.clearRedo !== !1 && ka(i.undone);
2863
2863
  }
2864
2864
  function ii(e, t) {
2865
2865
  var n = Ce(t);
@@ -2871,23 +2871,23 @@ b`.split(/\n/).length != 3 ? function(e) {
2871
2871
  a.markedSpans && ((i || (i = t["spans_" + e.id] = {}))[o] = a.markedSpans), ++o;
2872
2872
  });
2873
2873
  }
2874
- function qs(e) {
2874
+ function _s(e) {
2875
2875
  if (!e)
2876
2876
  return null;
2877
2877
  for (var t, n = 0; n < e.length; ++n)
2878
2878
  e[n].marker.explicitlyCleared ? t || (t = e.slice(0, n)) : t && t.push(e[n]);
2879
2879
  return t ? t.length ? t : null : e;
2880
2880
  }
2881
- function Xs(e, t) {
2881
+ function Us(e, t) {
2882
2882
  var n = t["spans_" + e.id];
2883
2883
  if (!n)
2884
2884
  return null;
2885
2885
  for (var r = [], i = 0; i < t.text.length; ++i)
2886
- r.push(qs(n[i]));
2886
+ r.push(_s(n[i]));
2887
2887
  return r;
2888
2888
  }
2889
2889
  function Ca(e, t) {
2890
- var n = Xs(e, t), r = ki(e, t);
2890
+ var n = Us(e, t), r = ki(e, t);
2891
2891
  if (!n)
2892
2892
  return r;
2893
2893
  if (!r)
@@ -2952,7 +2952,7 @@ b`.split(/\n/).length != 3 ? function(e) {
2952
2952
  function Ta(e, t, n, r) {
2953
2953
  ut(e, dr(t, n), r);
2954
2954
  }
2955
- function js(e, t, n) {
2955
+ function Gs(e, t, n) {
2956
2956
  var r = {
2957
2957
  ranges: t.ranges,
2958
2958
  update: function(i) {
@@ -2972,10 +2972,10 @@ b`.split(/\n/).length != 3 ? function(e) {
2972
2972
  i && i.ranges ? (r[r.length - 1] = t, ai(e, t, n)) : ut(e, t, n);
2973
2973
  }
2974
2974
  function ut(e, t, n) {
2975
- ai(e, t, n), Gs(e, e.sel, e.cm ? e.cm.curOp.id : NaN, n);
2975
+ ai(e, t, n), Ks(e, e.sel, e.cm ? e.cm.curOp.id : NaN, n);
2976
2976
  }
2977
2977
  function ai(e, t, n) {
2978
- (wt(e, "beforeSelectionChange") || e.cm && wt(e.cm, "beforeSelectionChange")) && (t = js(e, t, n));
2978
+ (wt(e, "beforeSelectionChange") || e.cm && wt(e.cm, "beforeSelectionChange")) && (t = Gs(e, t, n));
2979
2979
  var r = n && n.bias || (ae(t.primary().head, e.sel.primary().head) < 0 ? -1 : 1);
2980
2980
  Oa(e, Pa(e, t, r, !0)), !(n && n.scroll === !1) && e.cm && e.cm.getOption("readOnly") != "nocursor" && qr(e.cm);
2981
2981
  }
@@ -3050,7 +3050,7 @@ b`.split(/\n/).length != 3 ? function(e) {
3050
3050
  return;
3051
3051
  }
3052
3052
  if (!((wt(e, "beforeChange") || e.cm && wt(e.cm, "beforeChange")) && (t = Fa(e, t, !0), !t))) {
3053
- var r = Co && !n && Gl(e, t.from, t.to);
3053
+ var r = Co && !n && Kl(e, t.from, t.to);
3054
3054
  if (r)
3055
3055
  for (var i = r.length - 1; i >= 0; --i)
3056
3056
  Ea(e, { from: r[i].from, to: r[i].to, text: i ? [""] : t.text, origin: t.origin });
@@ -3142,10 +3142,10 @@ b`.split(/\n/).length != 3 ? function(e) {
3142
3142
  to: R(o, ue(e, o).text.length),
3143
3143
  text: [t.text[0]],
3144
3144
  origin: t.origin
3145
- }), t.removed = Qt(e, t.from, t.to), n || (n = Yi(e, t)), e.cm ? Ys(e.cm, t, r) : Qi(e, t, r), ai(e, n, dt), e.cantEdit && li(e, R(e.firstLine(), 0)) && (e.cantEdit = !1);
3145
+ }), t.removed = Qt(e, t.from, t.to), n || (n = Yi(e, t)), e.cm ? qs(e.cm, t, r) : Qi(e, t, r), ai(e, n, dt), e.cantEdit && li(e, R(e.firstLine(), 0)) && (e.cantEdit = !1);
3146
3146
  }
3147
3147
  }
3148
- function Ys(e, t, n) {
3148
+ function qs(e, t, n) {
3149
3149
  var r = e.doc, i = e.display, o = t.from, a = t.to, l = !1, s = o.line;
3150
3150
  e.options.lineWrapping || (s = h(It(ue(r, o.line))), r.iter(s, a.line + 1, function(N) {
3151
3151
  if (N == i.maxLine)
@@ -3153,7 +3153,7 @@ b`.split(/\n/).length != 3 ? function(e) {
3153
3153
  })), r.sel.contains(t.from, t.to) > -1 && Nt(e), Qi(r, t, n, ea(e)), e.options.lineWrapping || (r.iter(s, o.line + t.text.length, function(N) {
3154
3154
  var q = qn(N);
3155
3155
  q > i.maxLineLength && (i.maxLine = N, i.maxLineLength = q, i.maxLineChanged = !0, l = !1);
3156
- }), l && (e.curOp.updateMaxLine = !0)), Il(r, o.line), xn(e, 400);
3156
+ }), l && (e.curOp.updateMaxLine = !0)), El(r, o.line), xn(e, 400);
3157
3157
  var f = t.text.length - (a.line - o.line) - 1;
3158
3158
  t.full ? mt(e) : o.line == a.line && t.text.length == 1 && !ya(e.doc, t) ? cr(e, o.line, "text") : mt(e, o.line, a.line + 1, f);
3159
3159
  var y = wt(e, "changes"), k = wt(e, "change");
@@ -3219,7 +3219,7 @@ b`.split(/\n/).length != 3 ? function(e) {
3219
3219
  removeInner: function(e, t) {
3220
3220
  for (var n = e, r = e + t; n < r; ++n) {
3221
3221
  var i = this.lines[n];
3222
- this.height -= i.height, Zl(i), Ve(i, "delete");
3222
+ this.height -= i.height, Xl(i), Ve(i, "delete");
3223
3223
  }
3224
3224
  this.lines.splice(e, t);
3225
3225
  },
@@ -3353,7 +3353,7 @@ b`.split(/\n/).length != 3 ? function(e) {
3353
3353
  function za(e, t, n) {
3354
3354
  Vt(t) < (e.curOp && e.curOp.scrollTop || e.doc.scrollTop) && _i(e, n);
3355
3355
  }
3356
- function Zs(e, t, n, r) {
3356
+ function Xs(e, t, n, r) {
3357
3357
  var i = new An(e, n, r), o = e.cm;
3358
3358
  return o && i.noHScroll && (o.display.alignWidgets = !0), Cn(e, t, "widget", function(a) {
3359
3359
  var l = a.widgets || (a.widgets = []);
@@ -3376,7 +3376,7 @@ b`.split(/\n/).length != 3 ? function(e) {
3376
3376
  }
3377
3377
  for (var r = null, i = null, o = 0; o < this.lines.length; ++o) {
3378
3378
  var a = this.lines[o], l = fn(a.markedSpans, this);
3379
- e && !this.collapsed ? cr(e, h(a), "text") : e && (l.to != null && (i = h(a)), l.from != null && (r = h(a))), a.markedSpans = Rl(a.markedSpans, l), l.from == null && this.collapsed && !fr(this.doc, a) && e && At(a, _r(e.display));
3379
+ e && !this.collapsed ? cr(e, h(a), "text") : e && (l.to != null && (i = h(a)), l.from != null && (r = h(a))), a.markedSpans = Il(a.markedSpans, l), l.from == null && this.collapsed && !fr(this.doc, a) && e && At(a, _r(e.display));
3380
3380
  }
3381
3381
  if (e && this.collapsed && !e.options.lineWrapping)
3382
3382
  for (var s = 0; s < this.lines.length; ++s) {
@@ -3421,7 +3421,7 @@ b`.split(/\n/).length != 3 ? function(e) {
3421
3421
  }, Dt(gr);
3422
3422
  function Jr(e, t, n, r, i) {
3423
3423
  if (r && r.shared)
3424
- return Qs(e, t, n, r, i);
3424
+ return js(e, t, n, r, i);
3425
3425
  if (e.cm && !e.cm.curOp)
3426
3426
  return $e(e.cm, Jr)(e, t, n, r, i);
3427
3427
  var o = new gr(e, i), a = ae(t, n);
@@ -3430,12 +3430,12 @@ b`.split(/\n/).length != 3 ? function(e) {
3430
3430
  if (o.replacedWith && (o.collapsed = !0, o.widgetNode = Z("span", [o.replacedWith], "CodeMirror-widget"), r.handleMouseEvents || o.widgetNode.setAttribute("cm-ignore-events", "true"), r.insertLeft && (o.widgetNode.insertLeft = !0)), o.collapsed) {
3431
3431
  if (Po(e, t.line, t, n, o) || t.line != n.line && Po(e, n.line, t, n, o))
3432
3432
  throw new Error("Inserting collapsed marker partially overlapping an existing one");
3433
- zl();
3433
+ Bl();
3434
3434
  }
3435
3435
  o.addToHistory && wa(e, { from: t, to: n, origin: "markText" }, e.sel, NaN);
3436
3436
  var l = t.line, s = e.cm, f;
3437
3437
  if (e.iter(l, n.line + 1, function(k) {
3438
- s && o.collapsed && !s.options.lineWrapping && It(k) == s.display.maxLine && (f = !0), o.collapsed && l != t.line && At(k, 0), Kl(k, new Kn(
3438
+ s && o.collapsed && !s.options.lineWrapping && It(k) == s.display.maxLine && (f = !0), o.collapsed && l != t.line && At(k, 0), Hl(k, new Kn(
3439
3439
  o,
3440
3440
  l == t.line ? t.ch : null,
3441
3441
  l == n.line ? n.ch : null
@@ -3444,7 +3444,7 @@ b`.split(/\n/).length != 3 ? function(e) {
3444
3444
  fr(e, k) && At(k, 0);
3445
3445
  }), o.clearOnEnter && pe(o, "beforeCursorEnter", function() {
3446
3446
  return o.clear();
3447
- }), o.readOnly && (Hl(), (e.history.done.length || e.history.undone.length) && e.clearHistory()), o.collapsed && (o.id = ++Ra, o.atomic = !0), s) {
3447
+ }), o.readOnly && (Wl(), (e.history.done.length || e.history.undone.length) && e.clearHistory()), o.collapsed && (o.id = ++Ra, o.atomic = !0), s) {
3448
3448
  if (f && (s.curOp.updateMaxLine = !0), o.collapsed)
3449
3449
  mt(s, t.line, n.line + 1);
3450
3450
  else if (o.className || o.startStyle || o.endStyle || o.css || o.attributes || o.title)
@@ -3469,7 +3469,7 @@ b`.split(/\n/).length != 3 ? function(e) {
3469
3469
  }, On.prototype.find = function(e, t) {
3470
3470
  return this.primary.find(e, t);
3471
3471
  }, Dt(On);
3472
- function Qs(e, t, n, r, i) {
3472
+ function js(e, t, n, r, i) {
3473
3473
  r = xe(r), r.shared = !1;
3474
3474
  var o = [Jr(e, t, n, r, i)], a = o[0], l = r.widgetNode;
3475
3475
  return vr(e, function(s) {
@@ -3485,7 +3485,7 @@ b`.split(/\n/).length != 3 ? function(e) {
3485
3485
  return t.parent;
3486
3486
  });
3487
3487
  }
3488
- function Js(e, t) {
3488
+ function Ys(e, t) {
3489
3489
  for (var n = 0; n < t.length; n++) {
3490
3490
  var r = t[n], i = r.find(), o = e.clipPos(i.from), a = e.clipPos(i.to);
3491
3491
  if (ae(o, a)) {
@@ -3494,7 +3494,7 @@ b`.split(/\n/).length != 3 ? function(e) {
3494
3494
  }
3495
3495
  }
3496
3496
  }
3497
- function Vs(e) {
3497
+ function Zs(e) {
3498
3498
  for (var t = function(r) {
3499
3499
  var i = e[r], o = [i.primary.doc];
3500
3500
  vr(i.primary.doc, function(s) {
@@ -3507,12 +3507,12 @@ b`.split(/\n/).length != 3 ? function(e) {
3507
3507
  }, n = 0; n < e.length; n++)
3508
3508
  t(n);
3509
3509
  }
3510
- var $s = 0, yt = function(e, t, n, r, i) {
3510
+ var Qs = 0, yt = function(e, t, n, r, i) {
3511
3511
  if (!(this instanceof yt))
3512
3512
  return new yt(e, t, n, r, i);
3513
3513
  n == null && (n = 0), Tn.call(this, [new Ln([new zr("", null)])]), this.first = n, this.scrollTop = this.scrollLeft = 0, this.cantEdit = !1, this.cleanGeneration = 1, this.modeFrontier = this.highlightFrontier = n;
3514
3514
  var o = R(n, 0);
3515
- this.sel = dr(o), this.history = new ni(null), this.id = ++$s, this.modeOption = t, this.lineSep = r, this.direction = i == "rtl" ? "rtl" : "ltr", this.extend = !1, typeof e == "string" && (e = this.splitLines(e)), Qi(this, { from: o, to: o, text: e }), ut(this, dr(o), dt);
3515
+ this.sel = dr(o), this.history = new ni(null), this.id = ++Qs, this.modeOption = t, this.lineSep = r, this.direction = i == "rtl" ? "rtl" : "ltr", this.extend = !1, typeof e == "string" && (e = this.splitLines(e)), Qi(this, { from: o, to: o, text: e }), ut(this, dr(o), dt);
3516
3516
  };
3517
3517
  yt.prototype = X(Tn.prototype, {
3518
3518
  constructor: yt,
@@ -3645,7 +3645,7 @@ b`.split(/\n/).length != 3 ? function(e) {
3645
3645
  var a = i.ranges[o];
3646
3646
  r[o] = { from: a.from(), to: a.to(), text: this.splitLines(e[o]), origin: n };
3647
3647
  }
3648
- for (var l = t && t != "end" && Rs(this, r, t), s = r.length - 1; s >= 0; s--)
3648
+ for (var l = t && t != "end" && Is(this, r, t), s = r.length - 1; s >= 0; s--)
3649
3649
  Zr(this, r[s]);
3650
3650
  l ? Aa(this, l) : this.cm && qr(this.cm);
3651
3651
  }),
@@ -3763,7 +3763,7 @@ b`.split(/\n/).length != 3 ? function(e) {
3763
3763
  });
3764
3764
  }),
3765
3765
  addLineWidget: et(function(e, t, n) {
3766
- return Zs(this, e, t, n);
3766
+ return Xs(this, e, t, n);
3767
3767
  }),
3768
3768
  removeLineWidget: function(e) {
3769
3769
  e.clear();
@@ -3847,14 +3847,14 @@ b`.split(/\n/).length != 3 ? function(e) {
3847
3847
  var t = this.first, n = this.first + this.size;
3848
3848
  e.from != null && e.from > t && (t = e.from), e.to != null && e.to < n && (n = e.to);
3849
3849
  var r = new yt(sn(this, t, n), e.mode || this.modeOption, t, this.lineSep, this.direction);
3850
- return e.sharedHist && (r.history = this.history), (this.linked || (this.linked = [])).push({ doc: r, sharedHist: e.sharedHist }), r.linked = [{ doc: this, isParent: !0, sharedHist: e.sharedHist }], Js(r, Ka(this)), r;
3850
+ return e.sharedHist && (r.history = this.history), (this.linked || (this.linked = [])).push({ doc: r, sharedHist: e.sharedHist }), r.linked = [{ doc: this, isParent: !0, sharedHist: e.sharedHist }], Ys(r, Ka(this)), r;
3851
3851
  },
3852
3852
  unlinkDoc: function(e) {
3853
3853
  if (e instanceof Be && (e = e.doc), this.linked)
3854
3854
  for (var t = 0; t < this.linked.length; ++t) {
3855
3855
  var n = this.linked[t];
3856
3856
  if (n.doc == e) {
3857
- this.linked.splice(t, 1), e.unlinkDoc(this), Vs(Ka(this));
3857
+ this.linked.splice(t, 1), e.unlinkDoc(this), Zs(Ka(this));
3858
3858
  break;
3859
3859
  }
3860
3860
  }
@@ -3884,11 +3884,11 @@ b`.split(/\n/).length != 3 ? function(e) {
3884
3884
  setDirection: et(function(e) {
3885
3885
  e != "rtl" && (e = "ltr"), e != this.direction && (this.direction = e, this.iter(function(t) {
3886
3886
  return t.order = null;
3887
- }), this.cm && Ks(this.cm));
3887
+ }), this.cm && Hs(this.cm));
3888
3888
  })
3889
3889
  }), yt.prototype.eachLine = yt.prototype.iter;
3890
3890
  var _a = 0;
3891
- function eu(e) {
3891
+ function Js(e) {
3892
3892
  var t = this;
3893
3893
  if (Ua(t), !(Re(t, e) || $t(t.display, e))) {
3894
3894
  st(e), W && (_a = +/* @__PURE__ */ new Date());
@@ -3949,7 +3949,7 @@ b`.split(/\n/).length != 3 ? function(e) {
3949
3949
  }
3950
3950
  }
3951
3951
  }
3952
- function tu(e, t) {
3952
+ function Vs(e, t) {
3953
3953
  if (W && (!e.state.draggingText || +/* @__PURE__ */ new Date() - _a < 100)) {
3954
3954
  ar(t);
3955
3955
  return;
@@ -3959,7 +3959,7 @@ b`.split(/\n/).length != 3 ? function(e) {
3959
3959
  n.src = "data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==", E && (n.width = n.height = 1, e.display.wrapper.appendChild(n), n._top = n.offsetTop), t.dataTransfer.setDragImage(n, 0, 0), E && n.parentNode.removeChild(n);
3960
3960
  }
3961
3961
  }
3962
- function ru(e, t) {
3962
+ function $s(e, t) {
3963
3963
  var n = Sr(e, t);
3964
3964
  if (n) {
3965
3965
  var r = document.createDocumentFragment();
@@ -3982,20 +3982,20 @@ b`.split(/\n/).length != 3 ? function(e) {
3982
3982
  }
3983
3983
  }
3984
3984
  var qa = !1;
3985
- function nu() {
3986
- qa || (iu(), qa = !0);
3985
+ function eu() {
3986
+ qa || (tu(), qa = !0);
3987
3987
  }
3988
- function iu() {
3988
+ function tu() {
3989
3989
  var e;
3990
3990
  pe(window, "resize", function() {
3991
3991
  e == null && (e = setTimeout(function() {
3992
- e = null, Ga(ou);
3992
+ e = null, Ga(ru);
3993
3993
  }, 100));
3994
3994
  }), pe(window, "blur", function() {
3995
3995
  return Ga(Gr);
3996
3996
  });
3997
3997
  }
3998
- function ou(e) {
3998
+ function ru(e) {
3999
3999
  var t = e.display;
4000
4000
  t.cachedCharWidth = t.cachedTextHeight = t.cachedPaddingH = null, t.scrollbarsClipped = !1, e.setSize();
4001
4001
  }
@@ -4156,7 +4156,7 @@ b`.split(/\n/).length != 3 ? function(e) {
4156
4156
  "Ctrl-Down": "goDocEnd",
4157
4157
  fallthrough: ["basic", "emacsy"]
4158
4158
  }, tr.default = p ? tr.macDefault : tr.pcDefault;
4159
- function au(e) {
4159
+ function nu(e) {
4160
4160
  var t = e.split(/-(?!$)/);
4161
4161
  e = t[t.length - 1];
4162
4162
  for (var n, r, i, o, a = 0; a < t.length - 1; a++) {
@@ -4174,7 +4174,7 @@ b`.split(/\n/).length != 3 ? function(e) {
4174
4174
  }
4175
4175
  return n && (e = "Alt-" + e), r && (e = "Ctrl-" + e), o && (e = "Cmd-" + e), i && (e = "Shift-" + e), e;
4176
4176
  }
4177
- function lu(e) {
4177
+ function iu(e) {
4178
4178
  var t = {};
4179
4179
  for (var n in e)
4180
4180
  if (e.hasOwnProperty(n)) {
@@ -4185,7 +4185,7 @@ b`.split(/\n/).length != 3 ? function(e) {
4185
4185
  delete e[n];
4186
4186
  continue;
4187
4187
  }
4188
- for (var i = De(n.split(" "), au), o = 0; o < i.length; o++) {
4188
+ for (var i = De(n.split(" "), nu), o = 0; o < i.length; o++) {
4189
4189
  var a = void 0, l = void 0;
4190
4190
  o == i.length - 1 ? (l = i.join(" "), a = r) : (l = i.slice(0, o + 1).join(" "), a = "...");
4191
4191
  var s = t[l];
@@ -4281,7 +4281,7 @@ b`.split(/\n/).length != 3 ? function(e) {
4281
4281
  }
4282
4282
  return new R(r, i < 0 ? n.text.length : 0, i < 0 ? "before" : "after");
4283
4283
  }
4284
- function su(e, t, n, r) {
4284
+ function ou(e, t, n, r) {
4285
4285
  var i = Se(t, e.doc.direction);
4286
4286
  if (!i)
4287
4287
  return to(t, n, r);
@@ -4394,7 +4394,7 @@ b`.split(/\n/).length != 3 ? function(e) {
4394
4394
  goLineEnd: function(e) {
4395
4395
  return e.extendSelectionsBy(
4396
4396
  function(t) {
4397
- return uu(e, t.head.line);
4397
+ return au(e, t.head.line);
4398
4398
  },
4399
4399
  { origin: "+move", bias: -1 }
4400
4400
  );
@@ -4550,8 +4550,8 @@ b`.split(/\n/).length != 3 ? function(e) {
4550
4550
  var n = ue(e.doc, t), r = It(n);
4551
4551
  return r != n && (t = h(r)), ro(!0, e, r, t, 1);
4552
4552
  }
4553
- function uu(e, t) {
4554
- var n = ue(e.doc, t), r = Xl(n);
4553
+ function au(e, t) {
4554
+ var n = ue(e.doc, t), r = Ul(n);
4555
4555
  return r != n && (t = h(r)), ro(!0, e, n, t, -1);
4556
4556
  }
4557
4557
  function Qa(e, t) {
@@ -4574,7 +4574,7 @@ b`.split(/\n/).length != 3 ? function(e) {
4574
4574
  }
4575
4575
  return i;
4576
4576
  }
4577
- function fu(e, t, n) {
4577
+ function lu(e, t, n) {
4578
4578
  for (var r = 0; r < e.state.keyMaps.length; r++) {
4579
4579
  var i = Vr(t, e.state.keyMaps[r], n, e);
4580
4580
  if (i)
@@ -4582,13 +4582,13 @@ b`.split(/\n/).length != 3 ? function(e) {
4582
4582
  }
4583
4583
  return e.options.extraKeys && Vr(t, e.options.extraKeys, n, e) || Vr(t, e.options.keyMap, n, e);
4584
4584
  }
4585
- var cu = new be();
4585
+ var su = new be();
4586
4586
  function Dn(e, t, n, r) {
4587
4587
  var i = e.state.keySeq;
4588
4588
  if (i) {
4589
4589
  if (Xa(t))
4590
4590
  return "handled";
4591
- if (/\'$/.test(t) ? e.state.keySeq = null : cu.set(50, function() {
4591
+ if (/\'$/.test(t) ? e.state.keySeq = null : su.set(50, function() {
4592
4592
  e.state.keySeq == i && (e.state.keySeq = null, e.display.input.reset());
4593
4593
  }), Ja(e, i + " " + t, n, r))
4594
4594
  return !0;
@@ -4596,7 +4596,7 @@ b`.split(/\n/).length != 3 ? function(e) {
4596
4596
  return Ja(e, t, n, r);
4597
4597
  }
4598
4598
  function Ja(e, t, n, r) {
4599
- var i = fu(e, t, r);
4599
+ var i = lu(e, t, r);
4600
4600
  return i == "multi" && (e.state.keySeq = t), i == "handled" && Ve(e, "keyHandled", e, t, n), (i == "handled" || i == "multi") && (st(n), Hi(e)), !!i;
4601
4601
  }
4602
4602
  function Va(e, t) {
@@ -4610,7 +4610,7 @@ b`.split(/\n/).length != 3 ? function(e) {
4610
4610
  return ci(e, r);
4611
4611
  }) : !1;
4612
4612
  }
4613
- function hu(e, t, n) {
4613
+ function uu(e, t, n) {
4614
4614
  return Dn(e, "'" + n + "'", t, function(r) {
4615
4615
  return ci(e, r, !0);
4616
4616
  });
@@ -4623,10 +4623,10 @@ b`.split(/\n/).length != 3 ? function(e) {
4623
4623
  var n = e.keyCode;
4624
4624
  t.display.shift = n == 16 || e.shiftKey;
4625
4625
  var r = Va(t, e);
4626
- E && (no = r ? n : null, !r && n == 88 && !zn && (p ? e.metaKey : e.ctrlKey) && t.replaceSelection("", null, "cut")), z && !p && !r && n == 46 && e.shiftKey && !e.ctrlKey && document.execCommand && document.execCommand("cut"), n == 18 && !/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className) && du(t);
4626
+ E && (no = r ? n : null, !r && n == 88 && !zn && (p ? e.metaKey : e.ctrlKey) && t.replaceSelection("", null, "cut")), z && !p && !r && n == 46 && e.shiftKey && !e.ctrlKey && document.execCommand && document.execCommand("cut"), n == 18 && !/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className) && fu(t);
4627
4627
  }
4628
4628
  }
4629
- function du(e) {
4629
+ function fu(e) {
4630
4630
  var t = e.display.lineDiv;
4631
4631
  ce(t, "CodeMirror-crosshair");
4632
4632
  function n(r) {
@@ -4647,18 +4647,18 @@ b`.split(/\n/).length != 3 ? function(e) {
4647
4647
  }
4648
4648
  if (!(E && (!e.which || e.which < 10) && Va(t, e))) {
4649
4649
  var i = String.fromCharCode(r == null ? n : r);
4650
- i != "\b" && (hu(t, e, i) || t.display.input.onKeyPress(e));
4650
+ i != "\b" && (uu(t, e, i) || t.display.input.onKeyPress(e));
4651
4651
  }
4652
4652
  }
4653
4653
  }
4654
- var pu = 400, io = function(e, t, n) {
4654
+ var cu = 400, io = function(e, t, n) {
4655
4655
  this.time = e, this.pos = t, this.button = n;
4656
4656
  };
4657
4657
  io.prototype.compare = function(e, t, n) {
4658
- return this.time + pu > e && ae(t, this.pos) == 0 && n == this.button;
4658
+ return this.time + cu > e && ae(t, this.pos) == 0 && n == this.button;
4659
4659
  };
4660
4660
  var Fn, En;
4661
- function vu(e, t) {
4661
+ function hu(e, t) {
4662
4662
  var n = +/* @__PURE__ */ new Date();
4663
4663
  return En && En.compare(n, e, t) ? (Fn = En = null, "triple") : Fn && Fn.compare(n, e, t) ? (En = new io(n, e, t), Fn = null, "double") : (Fn = new io(n, e, t), En = null, "single");
4664
4664
  }
@@ -4672,14 +4672,14 @@ b`.split(/\n/).length != 3 ? function(e) {
4672
4672
  return;
4673
4673
  }
4674
4674
  if (!oo(t, e)) {
4675
- var r = Sr(t, e), i = Ft(e), o = r ? vu(r, i) : "single";
4676
- me(t).focus(), i == 1 && t.state.selectingText && t.state.selectingText(e), !(r && gu(t, i, r, o, e)) && (i == 1 ? r ? yu(t, r, o, e) : on(e) == n.scroller && st(e) : i == 2 ? (r && oi(t.doc, r), setTimeout(function() {
4675
+ var r = Sr(t, e), i = Ft(e), o = r ? hu(r, i) : "single";
4676
+ me(t).focus(), i == 1 && t.state.selectingText && t.state.selectingText(e), !(r && du(t, i, r, o, e)) && (i == 1 ? r ? vu(t, r, o, e) : on(e) == n.scroller && st(e) : i == 2 ? (r && oi(t.doc, r), setTimeout(function() {
4677
4677
  return n.input.focus();
4678
4678
  }, 20)) : i == 3 && (D ? t.display.input.onContextMenu(e) : zi(t)));
4679
4679
  }
4680
4680
  }
4681
4681
  }
4682
- function gu(e, t, n, r, i) {
4682
+ function du(e, t, n, r, i) {
4683
4683
  var o = "Click";
4684
4684
  return r == "double" ? o = "Double" + o : r == "triple" && (o = "Triple" + o), o = (t == 1 ? "Left" : t == 2 ? "Middle" : "Right") + o, Dn(e, ja(o, i), i, function(a) {
4685
4685
  if (typeof a == "string" && (a = Mn[a]), !a)
@@ -4693,7 +4693,7 @@ b`.split(/\n/).length != 3 ? function(e) {
4693
4693
  return l;
4694
4694
  });
4695
4695
  }
4696
- function mu(e, t, n) {
4696
+ function pu(e, t, n) {
4697
4697
  var r = e.getOption("configureMouse"), i = r ? r(e, t, n) : {};
4698
4698
  if (i.unit == null) {
4699
4699
  var o = m ? n.shiftKey && n.metaKey : n.altKey;
@@ -4701,12 +4701,12 @@ b`.split(/\n/).length != 3 ? function(e) {
4701
4701
  }
4702
4702
  return (i.extend == null || e.doc.extend) && (i.extend = e.doc.extend || n.shiftKey), i.addNew == null && (i.addNew = p ? n.metaKey : n.ctrlKey), i.moveOnDrag == null && (i.moveOnDrag = !(p ? n.altKey : n.ctrlKey)), i;
4703
4703
  }
4704
- function yu(e, t, n, r) {
4704
+ function vu(e, t, n, r) {
4705
4705
  W ? setTimeout(ge(na, e), 0) : e.curOp.focus = fe(Ge(e));
4706
- var i = mu(e, n, r), o = e.doc.sel, a;
4707
- e.options.dragDrop && mi && !e.isReadOnly() && n == "single" && (a = o.contains(t)) > -1 && (ae((a = o.ranges[a]).from(), t) < 0 || t.xRel > 0) && (ae(a.to(), t) > 0 || t.xRel < 0) ? bu(e, r, t, i) : xu(e, r, t, i);
4706
+ var i = pu(e, n, r), o = e.doc.sel, a;
4707
+ e.options.dragDrop && mi && !e.isReadOnly() && n == "single" && (a = o.contains(t)) > -1 && (ae((a = o.ranges[a]).from(), t) < 0 || t.xRel > 0) && (ae(a.to(), t) > 0 || t.xRel < 0) ? gu(e, r, t, i) : mu(e, r, t, i);
4708
4708
  }
4709
- function bu(e, t, n, r) {
4709
+ function gu(e, t, n, r) {
4710
4710
  var i = e.display, o = !1, a = $e(e, function(f) {
4711
4711
  T && (i.scroller.draggable = !1), e.state.draggingText = !1, e.state.delayingBlurEvent && (e.hasFocus() ? e.state.delayingBlurEvent = !1 : zi(e)), lt(i.wrapper.ownerDocument, "mouseup", a), lt(i.wrapper.ownerDocument, "mousemove", l), lt(i.scroller, "dragstart", s), lt(i.scroller, "drop", a), o || (st(f), r.addNew || oi(e.doc, n, null, null, r.extend), T && !J || W && K == 9 ? setTimeout(function() {
4712
4712
  i.wrapper.ownerDocument.body.focus({ preventScroll: !0 }), i.input.focus();
@@ -4730,7 +4730,7 @@ b`.split(/\n/).length != 3 ? function(e) {
4730
4730
  var r = n(e, t);
4731
4731
  return new Ne(r.from, r.to);
4732
4732
  }
4733
- function xu(e, t, n, r) {
4733
+ function mu(e, t, n, r) {
4734
4734
  W && zi(e);
4735
4735
  var i = e.display, o = e.doc;
4736
4736
  st(t);
@@ -4767,7 +4767,7 @@ b`.split(/\n/).length != 3 ? function(e) {
4767
4767
  var xt = a, ot = nl(e, oe, r.unit), Qe = xt.anchor, Ze;
4768
4768
  ae(ot.anchor, Qe) > 0 ? (Ze = ot.head, Qe = Hr(xt.from(), ot.anchor)) : (Ze = ot.anchor, Qe = gt(xt.to(), ot.head));
4769
4769
  var _e = s.ranges.slice(0);
4770
- _e[l] = ku(e, new Ne(ye(o, Qe), Ze)), ut(o, zt(e, _e, l), Lt);
4770
+ _e[l] = yu(e, new Ne(ye(o, Qe), Ze)), ut(o, zt(e, _e, l), Lt);
4771
4771
  }
4772
4772
  }
4773
4773
  var N = i.wrapper.getBoundingClientRect(), q = 0;
@@ -4795,7 +4795,7 @@ b`.split(/\n/).length != 3 ? function(e) {
4795
4795
  }), le = $e(e, ee);
4796
4796
  e.state.selectingText = le, pe(i.wrapper.ownerDocument, "mousemove", ie), pe(i.wrapper.ownerDocument, "mouseup", le);
4797
4797
  }
4798
- function ku(e, t) {
4798
+ function yu(e, t) {
4799
4799
  var n = t.anchor, r = t.head, i = ue(e.doc, n.line);
4800
4800
  if (ae(n, r) == 0 && n.sticky == r.sticky)
4801
4801
  return t;
@@ -4847,9 +4847,9 @@ b`.split(/\n/).length != 3 ? function(e) {
4847
4847
  return il(e, t, "gutterClick", !0);
4848
4848
  }
4849
4849
  function ol(e, t) {
4850
- $t(e.display, t) || wu(e, t) || Re(e, t, "contextmenu") || D || e.display.input.onContextMenu(t);
4850
+ $t(e.display, t) || bu(e, t) || Re(e, t, "contextmenu") || D || e.display.input.onContextMenu(t);
4851
4851
  }
4852
- function wu(e, t) {
4852
+ function bu(e, t) {
4853
4853
  return wt(e, "gutterContextMenu") ? il(e, t, "gutterContextMenu", !1) : !1;
4854
4854
  }
4855
4855
  function al(e) {
@@ -4858,7 +4858,7 @@ b`.split(/\n/).length != 3 ? function(e) {
4858
4858
  var en = { toString: function() {
4859
4859
  return "CodeMirror.Init";
4860
4860
  } }, ll = {}, hi = {};
4861
- function Su(e) {
4861
+ function xu(e) {
4862
4862
  var t = e.optionHandlers;
4863
4863
  function n(r, i, o, a) {
4864
4864
  e.defaults[r] = i, o && (t[r] = a ? function(l, s, f) {
@@ -4888,7 +4888,7 @@ b`.split(/\n/).length != 3 ? function(e) {
4888
4888
  }
4889
4889
  }), n("specialChars", /[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g, function(r, i, o) {
4890
4890
  r.state.specialChars = new RegExp(i.source + (i.test(" ") ? "" : "| "), "g"), o != en && r.refresh();
4891
- }), n("specialCharPlaceholder", Vl, function(r) {
4891
+ }), n("specialCharPlaceholder", Zl, function(r) {
4892
4892
  return r.refresh();
4893
4893
  }, !0), n("electricChars", !0), n("inputStyle", u ? "contenteditable" : "textarea", function() {
4894
4894
  throw new Error("inputStyle can not (yet) be changed in a running editor");
@@ -4903,7 +4903,7 @@ b`.split(/\n/).length != 3 ? function(e) {
4903
4903
  }, !0), n("keyMap", "default", function(r, i, o) {
4904
4904
  var a = fi(i), l = o != en && fi(o);
4905
4905
  l && l.detach && l.detach(r, a), a.attach && a.attach(r, l || null);
4906
- }), n("extraKeys", null), n("configureMouse", null), n("lineWrapping", !1, Lu, !0), n("gutters", [], function(r, i) {
4906
+ }), n("extraKeys", null), n("configureMouse", null), n("lineWrapping", !1, wu, !0), n("gutters", [], function(r, i) {
4907
4907
  r.display.gutterSpecs = ji(i, r.options.lineNumbers), kn(r);
4908
4908
  }, !0), n("fixedGutter", !0, function(r, i) {
4909
4909
  r.display.gutters.style.left = i ? Wi(r.display) + "px" : "0", r.refresh();
@@ -4921,7 +4921,7 @@ b`.split(/\n/).length != 3 ? function(e) {
4921
4921
  i = i === "" ? null : i, r.display.input.screenReaderLabelChanged(i);
4922
4922
  }), n("disableInput", !1, function(r, i) {
4923
4923
  i || r.display.input.reset();
4924
- }, !0), n("dragDrop", !0, Cu), n("allowDropFileTypes", null), n("cursorBlinkRate", 530), n("cursorScrollMargin", 0), n("cursorHeight", 1, vn, !0), n("singleCursorHeightPerLine", !0, vn, !0), n("workTime", 100), n("workDelay", 100), n("flattenSpans", !0, wn, !0), n("addModeClass", !1, wn, !0), n("pollInterval", 100), n("undoDepth", 200, function(r, i) {
4924
+ }, !0), n("dragDrop", !0, ku), n("allowDropFileTypes", null), n("cursorBlinkRate", 530), n("cursorScrollMargin", 0), n("cursorHeight", 1, vn, !0), n("singleCursorHeightPerLine", !0, vn, !0), n("workTime", 100), n("workDelay", 100), n("flattenSpans", !0, wn, !0), n("addModeClass", !1, wn, !0), n("pollInterval", 100), n("undoDepth", 200, function(r, i) {
4925
4925
  return r.doc.history.undoDepth = i;
4926
4926
  }), n("historyEventDelay", 1250), n("viewportMargin", 10, function(r) {
4927
4927
  return r.refresh();
@@ -4933,14 +4933,14 @@ b`.split(/\n/).length != 3 ? function(e) {
4933
4933
  return r.doc.setDirection(i);
4934
4934
  }, !0), n("phrases", null);
4935
4935
  }
4936
- function Cu(e, t, n) {
4936
+ function ku(e, t, n) {
4937
4937
  var r = n && n != en;
4938
4938
  if (!t != !r) {
4939
4939
  var i = e.display.dragFunctions, o = t ? pe : lt;
4940
4940
  o(e.display.scroller, "dragstart", i.start), o(e.display.scroller, "dragenter", i.enter), o(e.display.scroller, "dragover", i.over), o(e.display.scroller, "dragleave", i.leave), o(e.display.scroller, "drop", i.drop);
4941
4941
  }
4942
4942
  }
4943
- function Lu(e) {
4943
+ function wu(e) {
4944
4944
  e.options.lineWrapping ? (ce(e.display.wrapper, "CodeMirror-wrap"), e.display.sizer.style.minWidth = "", e.display.sizerWidth = null) : (_(e.display.wrapper, "CodeMirror-wrap"), Li(e)), Bi(e), mt(e), pn(e), setTimeout(function() {
4945
4945
  return Xr(e);
4946
4946
  }, 100);
@@ -4952,7 +4952,7 @@ b`.split(/\n/).length != 3 ? function(e) {
4952
4952
  this.options = t = t ? xe(t) : {}, xe(ll, t, !1);
4953
4953
  var r = t.value;
4954
4954
  typeof r == "string" ? r = new yt(r, t.mode, null, t.lineSeparator, t.direction) : t.mode && (r.modeOption = t.mode), this.doc = r;
4955
- var i = new Be.inputStyles[t.inputStyle](this), o = this.display = new Hs(e, r, i, t);
4955
+ var i = new Be.inputStyles[t.inputStyle](this), o = this.display = new Ws(e, r, i, t);
4956
4956
  o.wrapper.CodeMirror = this, al(this), t.lineWrapping && (this.display.wrapper.className += " CodeMirror-wrap"), ua(this), this.state = {
4957
4957
  keyMaps: [],
4958
4958
  // stores maps added by addKeyMap
@@ -4977,7 +4977,7 @@ b`.split(/\n/).length != 3 ? function(e) {
4977
4977
  specialChars: null
4978
4978
  }, t.autofocus && !u && o.input.focus(), W && K < 11 && setTimeout(function() {
4979
4979
  return n.display.input.reset(!0);
4980
- }, 20), Tu(this), nu(), Ar(this), this.curOp.forceUpdate = !0, ba(this, r), t.autofocus && !u || this.hasFocus() ? setTimeout(function() {
4980
+ }, 20), Su(this), eu(), Ar(this), this.curOp.forceUpdate = !0, ba(this, r), t.autofocus && !u || this.hasFocus() ? setTimeout(function() {
4981
4981
  n.hasFocus() && !n.state.focused && Ri(n);
4982
4982
  }, 20) : Gr(this);
4983
4983
  for (var a in hi)
@@ -4988,7 +4988,7 @@ b`.split(/\n/).length != 3 ? function(e) {
4988
4988
  Or(this), T && t.lineWrapping && getComputedStyle(o.lineDiv).textRendering == "optimizelegibility" && (o.lineDiv.style.textRendering = "auto");
4989
4989
  }
4990
4990
  Be.defaults = ll, Be.optionHandlers = hi;
4991
- function Tu(e) {
4991
+ function Su(e) {
4992
4992
  var t = e.display;
4993
4993
  pe(t.scroller, "mousedown", $e(e, rl)), W && K < 11 ? pe(t.scroller, "dblclick", $e(e, function(s) {
4994
4994
  if (!Re(e, s)) {
@@ -5056,12 +5056,12 @@ b`.split(/\n/).length != 3 ? function(e) {
5056
5056
  Re(e, s) || ar(s);
5057
5057
  },
5058
5058
  over: function(s) {
5059
- Re(e, s) || (ru(e, s), ar(s));
5059
+ Re(e, s) || ($s(e, s), ar(s));
5060
5060
  },
5061
5061
  start: function(s) {
5062
- return tu(e, s);
5062
+ return Vs(e, s);
5063
5063
  },
5064
- drop: $e(e, eu),
5064
+ drop: $e(e, Js),
5065
5065
  leave: function(s) {
5066
5066
  Re(e, s) || Ua(e);
5067
5067
  }
@@ -5182,7 +5182,7 @@ b`.split(/\n/).length != 3 ? function(e) {
5182
5182
  var e = c("textarea", null, null, "position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"), t = c("div", [e], null, "overflow: hidden; position: relative; width: 3px; height: 0px;");
5183
5183
  return T ? e.style.width = "1000px" : e.setAttribute("wrap", "off"), v && (e.style.border = "1px solid black"), t;
5184
5184
  }
5185
- function Au(e) {
5185
+ function Cu(e) {
5186
5186
  var t = e.optionHandlers, n = e.helpers = {};
5187
5187
  e.prototype = {
5188
5188
  constructor: e,
@@ -5351,7 +5351,7 @@ b`.split(/\n/).length != 3 ? function(e) {
5351
5351
  var k = Math.max(s.wrapper.clientHeight, this.doc.height), F = Math.max(s.sizer.clientWidth, s.lineSpace.clientWidth);
5352
5352
  (a == "above" || r.bottom + i.offsetHeight > k) && r.top > i.offsetHeight ? f = r.top - i.offsetHeight : r.bottom + i.offsetHeight <= k && (f = r.bottom), y + i.offsetWidth > F && (y = F - i.offsetWidth);
5353
5353
  }
5354
- i.style.top = f + "px", i.style.left = i.style.right = "", l == "right" ? (y = s.sizer.clientWidth - i.offsetWidth, i.style.right = "0px") : (l == "left" ? y = 0 : l == "middle" && (y = (s.sizer.clientWidth - i.offsetWidth) / 2), i.style.left = y + "px"), o && Cs(this, { left: y, top: f, right: y + i.offsetWidth, bottom: f + i.offsetHeight });
5354
+ i.style.top = f + "px", i.style.left = i.style.right = "", l == "right" ? (y = s.sizer.clientWidth - i.offsetWidth, i.style.right = "0px") : (l == "left" ? y = 0 : l == "middle" && (y = (s.sizer.clientWidth - i.offsetWidth) / 2), i.style.left = y + "px"), o && ks(this, { left: y, top: f, right: y + i.offsetWidth, bottom: f + i.offsetHeight });
5355
5355
  },
5356
5356
  triggerOnKeyDown: ct($a),
5357
5357
  triggerOnKeyPress: ct(tl),
@@ -5450,7 +5450,7 @@ b`.split(/\n/).length != 3 ? function(e) {
5450
5450
  };
5451
5451
  },
5452
5452
  scrollIntoView: ct(function(r, i) {
5453
- r == null ? (r = { from: this.doc.sel.primary().head, to: null }, i == null && (i = this.options.cursorScrollMargin)) : typeof r == "number" ? r = { from: R(r, 0), to: null } : r.from == null && (r = { from: r, to: null }), r.to || (r.to = r.from), r.margin = i || 0, r.from.line != null ? Ls(this, r) : oa(this, r.from, r.to, r.margin);
5453
+ r == null ? (r = { from: this.doc.sel.primary().head, to: null }, i == null && (i = this.options.cursorScrollMargin)) : typeof r == "number" ? r = { from: R(r, 0), to: null } : r.from == null && (r = { from: r, to: null }), r.to || (r.to = r.from), r.margin = i || 0, r.from.line != null ? ws(this, r) : oa(this, r.from, r.to, r.margin);
5454
5454
  }),
5455
5455
  setSize: ct(function(r, i) {
5456
5456
  var o = this, a = function(s) {
@@ -5525,7 +5525,7 @@ b`.split(/\n/).length != 3 ? function(e) {
5525
5525
  oe = new R(t.line, Math.max(0, Math.min(l.text.length, t.ch + n * (ve ? 2 : 1))), -n);
5526
5526
  }
5527
5527
  } else
5528
- i ? oe = su(e.cm, l, t, n) : oe = to(l, t, n);
5528
+ i ? oe = ou(e.cm, l, t, n) : oe = to(l, t, n);
5529
5529
  if (oe == null)
5530
5530
  if (!le && f())
5531
5531
  t = ro(i, e.cm, l, t.line, s);
@@ -5706,7 +5706,7 @@ b`.split(/\n/).length != 3 ? function(e) {
5706
5706
  }, Pe.prototype.pollSelection = function() {
5707
5707
  if (!(this.readDOMTimeout != null || this.gracePeriod || !this.selectionChanged())) {
5708
5708
  var e = this.getSelection(), t = this.cm;
5709
- if (g && C && this.cm.display.gutterSpecs.length && Ou(e.anchorNode)) {
5709
+ if (g && C && this.cm.display.gutterSpecs.length && Lu(e.anchorNode)) {
5710
5710
  this.cm.triggerOnKeyDown({ type: "keydown", keyCode: 8, preventDefault: Math.abs }), this.blur(), this.focus();
5711
5711
  return;
5712
5712
  }
@@ -5728,7 +5728,7 @@ b`.split(/\n/).length != 3 ? function(e) {
5728
5728
  var s = Cr(e, i.line), f, y;
5729
5729
  if (s == t.view.length - 1 ? (f = t.viewTo - 1, y = t.lineDiv.lastChild) : (f = h(t.view[s + 1].line) - 1, y = t.view[s + 1].node.previousSibling), !l)
5730
5730
  return !1;
5731
- for (var k = e.doc.splitLines(Nu(e, l, y, a, f)), F = Qt(e.doc, R(a, 0), R(f, ue(e.doc, f).text.length)); k.length > 1 && F.length > 1; )
5731
+ for (var k = e.doc.splitLines(Tu(e, l, y, a, f)), F = Qt(e.doc, R(a, 0), R(f, ue(e.doc, f).text.length)); k.length > 1 && F.length > 1; )
5732
5732
  if (Ce(k) == Ce(F))
5733
5733
  k.pop(), F.pop(), f--;
5734
5734
  else if (k[0] == F[0])
@@ -5791,7 +5791,7 @@ b`.split(/\n/).length != 3 ? function(e) {
5791
5791
  var s = qo(i.map, t.ch, a);
5792
5792
  return s.offset = s.collapse == "right" ? s.end : s.start, s;
5793
5793
  }
5794
- function Ou(e) {
5794
+ function Lu(e) {
5795
5795
  for (var t = e; t; t = t.parentNode)
5796
5796
  if (/CodeMirror-gutter-wrapper/.test(t.className))
5797
5797
  return !0;
@@ -5800,7 +5800,7 @@ b`.split(/\n/).length != 3 ? function(e) {
5800
5800
  function tn(e, t) {
5801
5801
  return t && (e.bad = !0), e;
5802
5802
  }
5803
- function Nu(e, t, n, r, i) {
5803
+ function Tu(e, t, n, r, i) {
5804
5804
  var o = "", a = !1, l = e.doc.lineSeparator(), s = !1;
5805
5805
  function f(N) {
5806
5806
  return function(q) {
@@ -5858,10 +5858,10 @@ b`.split(/\n/).length != 3 ? function(e) {
5858
5858
  for (var i = 0; i < e.display.view.length; i++) {
5859
5859
  var o = e.display.view[i];
5860
5860
  if (o.node == r)
5861
- return Pu(o, t, n);
5861
+ return Au(o, t, n);
5862
5862
  }
5863
5863
  }
5864
- function Pu(e, t, n) {
5864
+ function Au(e, t, n) {
5865
5865
  var r = e.text.firstChild, i = !1;
5866
5866
  if (!t || !ne(r, t))
5867
5867
  return tn(R(h(e.line), 0), !0);
@@ -6080,7 +6080,7 @@ b`.split(/\n/).length != 3 ? function(e) {
6080
6080
  e || this.reset(), this.textarea.disabled = e == "nocursor", this.textarea.readOnly = !!e;
6081
6081
  }, qe.prototype.setUneditable = function() {
6082
6082
  }, qe.prototype.needsContentAttribute = !1;
6083
- function Mu(e, t) {
6083
+ function Ou(e, t) {
6084
6084
  if (t = t ? xe(t) : {}, t.value = e.value, !t.tabindex && e.tabIndex && (t.tabindex = e.tabIndex), !t.placeholder && e.placeholder && (t.placeholder = e.placeholder), t.autofocus == null) {
6085
6085
  var n = fe(Ee(e));
6086
6086
  t.autofocus = n == e || e.getAttribute("autofocus") != null && n == document.body;
@@ -6114,13 +6114,13 @@ b`.split(/\n/).length != 3 ? function(e) {
6114
6114
  );
6115
6115
  return l;
6116
6116
  }
6117
- function Du(e) {
6118
- e.off = lt, e.on = pe, e.wheelEventPixels = zs, e.Doc = yt, e.splitLines = Pt, e.countColumn = Le, e.findColumn = Xe, e.isWordChar = at, e.Pass = Mt, e.signal = ze, e.Line = zr, e.changeEnd = pr, e.scrollbarModel = sa, e.Pos = R, e.cmpPos = ae, e.modes = Fr, e.mimeModes = Wt, e.resolveMode = Er, e.getMode = Wr, e.modeExtensions = ur, e.extendMode = Br, e.copyState = _t, e.startState = Ir, e.innerMode = ln, e.commands = Mn, e.keyMap = tr, e.keyName = Ya, e.isModifierKey = Xa, e.lookupKey = Vr, e.normalizeKeyMap = lu, e.StringStream = Ke, e.SharedTextMarker = On, e.TextMarker = gr, e.LineWidget = An, e.e_preventDefault = st, e.e_stopPropagation = Mr, e.e_stop = ar, e.addClass = ce, e.contains = ne, e.rmClass = _, e.keyNames = mr;
6117
+ function Nu(e) {
6118
+ e.off = lt, e.on = pe, e.wheelEventPixels = Bs, e.Doc = yt, e.splitLines = Pt, e.countColumn = Le, e.findColumn = Xe, e.isWordChar = at, e.Pass = Mt, e.signal = ze, e.Line = zr, e.changeEnd = pr, e.scrollbarModel = sa, e.Pos = R, e.cmpPos = ae, e.modes = Fr, e.mimeModes = Wt, e.resolveMode = Er, e.getMode = Wr, e.modeExtensions = ur, e.extendMode = Br, e.copyState = _t, e.startState = Ir, e.innerMode = ln, e.commands = Mn, e.keyMap = tr, e.keyName = Ya, e.isModifierKey = Xa, e.lookupKey = Vr, e.normalizeKeyMap = iu, e.StringStream = Ke, e.SharedTextMarker = On, e.TextMarker = gr, e.LineWidget = An, e.e_preventDefault = st, e.e_stopPropagation = Mr, e.e_stop = ar, e.addClass = ce, e.contains = ne, e.rmClass = _, e.keyNames = mr;
6119
6119
  }
6120
- Su(Be), Au(Be);
6121
- var Fu = "iter insert remove copy getEditor constructor".split(" ");
6120
+ xu(Be), Cu(Be);
6121
+ var Pu = "iter insert remove copy getEditor constructor".split(" ");
6122
6122
  for (var vi in yt.prototype)
6123
- yt.prototype.hasOwnProperty(vi) && he(Fu, vi) < 0 && (Be.prototype[vi] = function(e) {
6123
+ yt.prototype.hasOwnProperty(vi) && he(Pu, vi) < 0 && (Be.prototype[vi] = function(e) {
6124
6124
  return function() {
6125
6125
  return e.apply(this.doc, arguments);
6126
6126
  };
@@ -6135,787 +6135,784 @@ b`.split(/\n/).length != 3 ? function(e) {
6135
6135
  Be.prototype[e] = t;
6136
6136
  }, Be.defineDocExtension = function(e, t) {
6137
6137
  yt.prototype[e] = t;
6138
- }, Be.fromTextArea = Mu, Du(Be), Be.version = "5.65.18", Be;
6138
+ }, Be.fromTextArea = Ou, Nu(Be), Be.version = "5.65.18", Be;
6139
6139
  });
6140
6140
  }(ho)), ho.exports;
6141
6141
  }
6142
- var Uu = nt();
6143
- const Gu = /* @__PURE__ */ _u(Uu);
6144
- var gl = { exports: {} }, ml;
6145
- function Dl() {
6146
- return ml || (ml = 1, function(Ie, Ue) {
6147
- (function(b) {
6148
- b(nt());
6149
- })(function(b) {
6150
- b.defineMode("javascript", function(G, z) {
6151
- var V = G.indentUnit, re = z.statementIndent, B = z.jsonld, W = z.json || B, K = z.trackScope !== !1, T = z.typescript, I = z.wordCharacters || /[\w$\xa1-\uffff]/, C = function() {
6152
- function h(Je) {
6153
- return { type: Je, style: "keyword" };
6154
- }
6155
- var x = h("keyword a"), Y = h("keyword b"), $ = h("keyword c"), R = h("keyword d"), ae = h("operator"), Oe = { type: "atom", style: "atom" };
6156
- return {
6157
- if: h("if"),
6158
- while: x,
6159
- with: x,
6160
- else: Y,
6161
- do: Y,
6162
- try: Y,
6163
- finally: Y,
6164
- return: R,
6165
- break: R,
6166
- continue: R,
6167
- new: h("new"),
6168
- delete: $,
6169
- void: $,
6170
- throw: $,
6171
- debugger: h("debugger"),
6172
- var: h("var"),
6173
- const: h("var"),
6174
- let: h("var"),
6175
- function: h("function"),
6176
- catch: h("catch"),
6177
- for: h("for"),
6178
- switch: h("switch"),
6179
- case: h("case"),
6180
- default: h("default"),
6181
- in: ae,
6182
- typeof: ae,
6183
- instanceof: ae,
6184
- true: Oe,
6185
- false: Oe,
6186
- null: Oe,
6187
- undefined: Oe,
6188
- NaN: Oe,
6189
- Infinity: Oe,
6190
- this: h("this"),
6191
- class: h("class"),
6192
- super: h("atom"),
6193
- yield: $,
6194
- export: h("export"),
6195
- import: h("import"),
6196
- extends: $,
6197
- await: $
6198
- };
6199
- }(), P = /[+\-*&%=<>!?|~^@]/, E = /^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;
6200
- function J(h) {
6201
- for (var x = !1, Y, $ = !1; (Y = h.next()) != null; ) {
6202
- if (!x) {
6203
- if (Y == "/" && !$)
6204
- return;
6205
- Y == "[" ? $ = !0 : $ && Y == "]" && ($ = !1);
6206
- }
6207
- x = !x && Y == "\\";
6208
- }
6209
- }
6210
- var M, S;
6211
- function v(h, x, Y) {
6212
- return M = h, S = Y, x;
6213
- }
6214
- function g(h, x) {
6215
- var Y = h.next();
6216
- if (Y == '"' || Y == "'")
6217
- return x.tokenize = u(Y), x.tokenize(h, x);
6218
- if (Y == "." && h.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))
6219
- return v("number", "number");
6220
- if (Y == "." && h.match(".."))
6221
- return v("spread", "meta");
6222
- if (/[\[\]{}\(\),;\:\.]/.test(Y))
6223
- return v(Y);
6224
- if (Y == "=" && h.eat(">"))
6225
- return v("=>", "operator");
6226
- if (Y == "0" && h.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))
6227
- return v("number", "number");
6228
- if (/\d/.test(Y))
6229
- return h.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/), v("number", "number");
6230
- if (Y == "/")
6231
- return h.eat("*") ? (x.tokenize = p, p(h, x)) : h.eat("/") ? (h.skipToEnd(), v("comment", "comment")) : At(h, x, 1) ? (J(h), h.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/), v("regexp", "string-2")) : (h.eat("="), v("operator", "operator", h.current()));
6232
- if (Y == "`")
6233
- return x.tokenize = m, m(h, x);
6234
- if (Y == "#" && h.peek() == "!")
6235
- return h.skipToEnd(), v("meta", "meta");
6236
- if (Y == "#" && h.eatWhile(I))
6237
- return v("variable", "property");
6238
- if (Y == "<" && h.match("!--") || Y == "-" && h.match("->") && !/\S/.test(h.string.slice(0, h.start)))
6239
- return h.skipToEnd(), v("comment", "comment");
6240
- if (P.test(Y))
6241
- return (Y != ">" || !x.lexical || x.lexical.type != ">") && (h.eat("=") ? (Y == "!" || Y == "=") && h.eat("=") : /[<>*+\-|&?]/.test(Y) && (h.eat(Y), Y == ">" && h.eat(Y))), Y == "?" && h.eat(".") ? v(".") : v("operator", "operator", h.current());
6242
- if (I.test(Y)) {
6243
- h.eatWhile(I);
6244
- var $ = h.current();
6245
- if (x.lastType != ".") {
6246
- if (C.propertyIsEnumerable($)) {
6247
- var R = C[$];
6248
- return v(R.type, R.style, $);
6249
- }
6250
- if ($ == "async" && h.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/, !1))
6251
- return v("async", "keyword", $);
6142
+ var Ru = nt();
6143
+ const Ku = /* @__PURE__ */ zu(Ru);
6144
+ var _u = { exports: {} };
6145
+ (function(Ie, Ue) {
6146
+ (function(b) {
6147
+ b(nt());
6148
+ })(function(b) {
6149
+ b.defineMode("javascript", function(G, z) {
6150
+ var V = G.indentUnit, re = z.statementIndent, B = z.jsonld, W = z.json || B, K = z.trackScope !== !1, T = z.typescript, I = z.wordCharacters || /[\w$\xa1-\uffff]/, C = function() {
6151
+ function h(Je) {
6152
+ return { type: Je, style: "keyword" };
6153
+ }
6154
+ var x = h("keyword a"), Y = h("keyword b"), $ = h("keyword c"), R = h("keyword d"), ae = h("operator"), Oe = { type: "atom", style: "atom" };
6155
+ return {
6156
+ if: h("if"),
6157
+ while: x,
6158
+ with: x,
6159
+ else: Y,
6160
+ do: Y,
6161
+ try: Y,
6162
+ finally: Y,
6163
+ return: R,
6164
+ break: R,
6165
+ continue: R,
6166
+ new: h("new"),
6167
+ delete: $,
6168
+ void: $,
6169
+ throw: $,
6170
+ debugger: h("debugger"),
6171
+ var: h("var"),
6172
+ const: h("var"),
6173
+ let: h("var"),
6174
+ function: h("function"),
6175
+ catch: h("catch"),
6176
+ for: h("for"),
6177
+ switch: h("switch"),
6178
+ case: h("case"),
6179
+ default: h("default"),
6180
+ in: ae,
6181
+ typeof: ae,
6182
+ instanceof: ae,
6183
+ true: Oe,
6184
+ false: Oe,
6185
+ null: Oe,
6186
+ undefined: Oe,
6187
+ NaN: Oe,
6188
+ Infinity: Oe,
6189
+ this: h("this"),
6190
+ class: h("class"),
6191
+ super: h("atom"),
6192
+ yield: $,
6193
+ export: h("export"),
6194
+ import: h("import"),
6195
+ extends: $,
6196
+ await: $
6197
+ };
6198
+ }(), P = /[+\-*&%=<>!?|~^@]/, E = /^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;
6199
+ function J(h) {
6200
+ for (var x = !1, Y, $ = !1; (Y = h.next()) != null; ) {
6201
+ if (!x) {
6202
+ if (Y == "/" && !$)
6203
+ return;
6204
+ Y == "[" ? $ = !0 : $ && Y == "]" && ($ = !1);
6205
+ }
6206
+ x = !x && Y == "\\";
6207
+ }
6208
+ }
6209
+ var M, S;
6210
+ function v(h, x, Y) {
6211
+ return M = h, S = Y, x;
6212
+ }
6213
+ function g(h, x) {
6214
+ var Y = h.next();
6215
+ if (Y == '"' || Y == "'")
6216
+ return x.tokenize = u(Y), x.tokenize(h, x);
6217
+ if (Y == "." && h.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))
6218
+ return v("number", "number");
6219
+ if (Y == "." && h.match(".."))
6220
+ return v("spread", "meta");
6221
+ if (/[\[\]{}\(\),;\:\.]/.test(Y))
6222
+ return v(Y);
6223
+ if (Y == "=" && h.eat(">"))
6224
+ return v("=>", "operator");
6225
+ if (Y == "0" && h.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))
6226
+ return v("number", "number");
6227
+ if (/\d/.test(Y))
6228
+ return h.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/), v("number", "number");
6229
+ if (Y == "/")
6230
+ return h.eat("*") ? (x.tokenize = p, p(h, x)) : h.eat("/") ? (h.skipToEnd(), v("comment", "comment")) : At(h, x, 1) ? (J(h), h.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/), v("regexp", "string-2")) : (h.eat("="), v("operator", "operator", h.current()));
6231
+ if (Y == "`")
6232
+ return x.tokenize = m, m(h, x);
6233
+ if (Y == "#" && h.peek() == "!")
6234
+ return h.skipToEnd(), v("meta", "meta");
6235
+ if (Y == "#" && h.eatWhile(I))
6236
+ return v("variable", "property");
6237
+ if (Y == "<" && h.match("!--") || Y == "-" && h.match("->") && !/\S/.test(h.string.slice(0, h.start)))
6238
+ return h.skipToEnd(), v("comment", "comment");
6239
+ if (P.test(Y))
6240
+ return (Y != ">" || !x.lexical || x.lexical.type != ">") && (h.eat("=") ? (Y == "!" || Y == "=") && h.eat("=") : /[<>*+\-|&?]/.test(Y) && (h.eat(Y), Y == ">" && h.eat(Y))), Y == "?" && h.eat(".") ? v(".") : v("operator", "operator", h.current());
6241
+ if (I.test(Y)) {
6242
+ h.eatWhile(I);
6243
+ var $ = h.current();
6244
+ if (x.lastType != ".") {
6245
+ if (C.propertyIsEnumerable($)) {
6246
+ var R = C[$];
6247
+ return v(R.type, R.style, $);
6252
6248
  }
6253
- return v("variable", "variable", $);
6249
+ if ($ == "async" && h.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/, !1))
6250
+ return v("async", "keyword", $);
6254
6251
  }
6252
+ return v("variable", "variable", $);
6255
6253
  }
6256
- function u(h) {
6257
- return function(x, Y) {
6258
- var $ = !1, R;
6259
- if (B && x.peek() == "@" && x.match(E))
6260
- return Y.tokenize = g, v("jsonld-keyword", "meta");
6261
- for (; (R = x.next()) != null && !(R == h && !$); )
6262
- $ = !$ && R == "\\";
6263
- return $ || (Y.tokenize = g), v("string", "string");
6264
- };
6254
+ }
6255
+ function u(h) {
6256
+ return function(x, Y) {
6257
+ var $ = !1, R;
6258
+ if (B && x.peek() == "@" && x.match(E))
6259
+ return Y.tokenize = g, v("jsonld-keyword", "meta");
6260
+ for (; (R = x.next()) != null && !(R == h && !$); )
6261
+ $ = !$ && R == "\\";
6262
+ return $ || (Y.tokenize = g), v("string", "string");
6263
+ };
6264
+ }
6265
+ function p(h, x) {
6266
+ for (var Y = !1, $; $ = h.next(); ) {
6267
+ if ($ == "/" && Y) {
6268
+ x.tokenize = g;
6269
+ break;
6270
+ }
6271
+ Y = $ == "*";
6265
6272
  }
6266
- function p(h, x) {
6267
- for (var Y = !1, $; $ = h.next(); ) {
6268
- if ($ == "/" && Y) {
6269
- x.tokenize = g;
6270
- break;
6271
- }
6272
- Y = $ == "*";
6273
+ return v("comment", "comment");
6274
+ }
6275
+ function m(h, x) {
6276
+ for (var Y = !1, $; ($ = h.next()) != null; ) {
6277
+ if (!Y && ($ == "`" || $ == "$" && h.eat("{"))) {
6278
+ x.tokenize = g;
6279
+ break;
6273
6280
  }
6274
- return v("comment", "comment");
6281
+ Y = !Y && $ == "\\";
6275
6282
  }
6276
- function m(h, x) {
6277
- for (var Y = !1, $; ($ = h.next()) != null; ) {
6278
- if (!Y && ($ == "`" || $ == "$" && h.eat("{"))) {
6279
- x.tokenize = g;
6280
- break;
6281
- }
6282
- Y = !Y && $ == "\\";
6283
- }
6284
- return v("quasi", "string-2", h.current());
6285
- }
6286
- var w = "([{}])";
6287
- function d(h, x) {
6288
- x.fatArrowAt && (x.fatArrowAt = null);
6289
- var Y = h.string.indexOf("=>", h.start);
6290
- if (!(Y < 0)) {
6291
- if (T) {
6292
- var $ = /:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(h.string.slice(h.start, Y));
6293
- $ && (Y = $.index);
6294
- }
6295
- for (var R = 0, ae = !1, Oe = Y - 1; Oe >= 0; --Oe) {
6296
- var Je = h.string.charAt(Oe), gt = w.indexOf(Je);
6297
- if (gt >= 0 && gt < 3) {
6298
- if (!R) {
6299
- ++Oe;
6300
- break;
6301
- }
6302
- if (--R == 0) {
6303
- Je == "(" && (ae = !0);
6304
- break;
6305
- }
6306
- } else if (gt >= 3 && gt < 6)
6307
- ++R;
6308
- else if (I.test(Je))
6309
- ae = !0;
6310
- else if (/["'\/`]/.test(Je))
6311
- for (; ; --Oe) {
6312
- if (Oe == 0)
6313
- return;
6314
- var Hr = h.string.charAt(Oe - 1);
6315
- if (Hr == Je && h.string.charAt(Oe - 2) != "\\") {
6316
- Oe--;
6317
- break;
6318
- }
6319
- }
6320
- else if (ae && !R) {
6283
+ return v("quasi", "string-2", h.current());
6284
+ }
6285
+ var w = "([{}])";
6286
+ function d(h, x) {
6287
+ x.fatArrowAt && (x.fatArrowAt = null);
6288
+ var Y = h.string.indexOf("=>", h.start);
6289
+ if (!(Y < 0)) {
6290
+ if (T) {
6291
+ var $ = /:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(h.string.slice(h.start, Y));
6292
+ $ && (Y = $.index);
6293
+ }
6294
+ for (var R = 0, ae = !1, Oe = Y - 1; Oe >= 0; --Oe) {
6295
+ var Je = h.string.charAt(Oe), gt = w.indexOf(Je);
6296
+ if (gt >= 0 && gt < 3) {
6297
+ if (!R) {
6321
6298
  ++Oe;
6322
6299
  break;
6323
6300
  }
6301
+ if (--R == 0) {
6302
+ Je == "(" && (ae = !0);
6303
+ break;
6304
+ }
6305
+ } else if (gt >= 3 && gt < 6)
6306
+ ++R;
6307
+ else if (I.test(Je))
6308
+ ae = !0;
6309
+ else if (/["'\/`]/.test(Je))
6310
+ for (; ; --Oe) {
6311
+ if (Oe == 0)
6312
+ return;
6313
+ var Hr = h.string.charAt(Oe - 1);
6314
+ if (Hr == Je && h.string.charAt(Oe - 2) != "\\") {
6315
+ Oe--;
6316
+ break;
6317
+ }
6318
+ }
6319
+ else if (ae && !R) {
6320
+ ++Oe;
6321
+ break;
6324
6322
  }
6325
- ae && !R && (x.fatArrowAt = Oe);
6326
- }
6327
- }
6328
- var L = {
6329
- atom: !0,
6330
- number: !0,
6331
- variable: !0,
6332
- string: !0,
6333
- regexp: !0,
6334
- this: !0,
6335
- import: !0,
6336
- "jsonld-keyword": !0
6337
- };
6338
- function D(h, x, Y, $, R, ae) {
6339
- this.indented = h, this.column = x, this.type = Y, this.prev = R, this.info = ae, $ != null && (this.align = $);
6323
+ }
6324
+ ae && !R && (x.fatArrowAt = Oe);
6340
6325
  }
6341
- function O(h, x) {
6342
- if (!K)
6343
- return !1;
6344
- for (var Y = h.localVars; Y; Y = Y.next)
6326
+ }
6327
+ var L = {
6328
+ atom: !0,
6329
+ number: !0,
6330
+ variable: !0,
6331
+ string: !0,
6332
+ regexp: !0,
6333
+ this: !0,
6334
+ import: !0,
6335
+ "jsonld-keyword": !0
6336
+ };
6337
+ function D(h, x, Y, $, R, ae) {
6338
+ this.indented = h, this.column = x, this.type = Y, this.prev = R, this.info = ae, $ != null && (this.align = $);
6339
+ }
6340
+ function O(h, x) {
6341
+ if (!K)
6342
+ return !1;
6343
+ for (var Y = h.localVars; Y; Y = Y.next)
6344
+ if (Y.name == x)
6345
+ return !0;
6346
+ for (var $ = h.context; $; $ = $.prev)
6347
+ for (var Y = $.vars; Y; Y = Y.next)
6345
6348
  if (Y.name == x)
6346
6349
  return !0;
6347
- for (var $ = h.context; $; $ = $.prev)
6348
- for (var Y = $.vars; Y; Y = Y.next)
6349
- if (Y.name == x)
6350
- return !0;
6351
- }
6352
- function _(h, x, Y, $, R) {
6353
- var ae = h.cc;
6354
- for (A.state = h, A.stream = R, A.marked = null, A.cc = ae, A.style = x, h.lexical.hasOwnProperty("align") || (h.lexical.align = !0); ; ) {
6355
- var Oe = ae.length ? ae.pop() : W ? he : Le;
6356
- if (Oe(Y, $)) {
6357
- for (; ae.length && ae[ae.length - 1].lex; )
6358
- ae.pop()();
6359
- return A.marked ? A.marked : Y == "variable" && O(h, $) ? "variable-2" : x;
6360
- }
6350
+ }
6351
+ function _(h, x, Y, $, R) {
6352
+ var ae = h.cc;
6353
+ for (A.state = h, A.stream = R, A.marked = null, A.cc = ae, A.style = x, h.lexical.hasOwnProperty("align") || (h.lexical.align = !0); ; ) {
6354
+ var Oe = ae.length ? ae.pop() : W ? he : Le;
6355
+ if (Oe(Y, $)) {
6356
+ for (; ae.length && ae[ae.length - 1].lex; )
6357
+ ae.pop()();
6358
+ return A.marked ? A.marked : Y == "variable" && O(h, $) ? "variable-2" : x;
6361
6359
  }
6362
6360
  }
6363
- var A = { state: null, column: null, marked: null, cc: null };
6364
- function U() {
6365
- for (var h = arguments.length - 1; h >= 0; h--)
6366
- A.cc.push(arguments[h]);
6367
- }
6368
- function c() {
6369
- return U.apply(null, arguments), !0;
6370
- }
6371
- function Z(h, x) {
6372
- for (var Y = x; Y; Y = Y.next)
6373
- if (Y.name == h)
6374
- return !0;
6375
- return !1;
6376
- }
6377
- function j(h) {
6378
- var x = A.state;
6379
- if (A.marked = "def", !!K) {
6380
- if (x.context) {
6381
- if (x.lexical.info == "var" && x.context && x.context.block) {
6382
- var Y = ne(h, x.context);
6383
- if (Y != null) {
6384
- x.context = Y;
6385
- return;
6386
- }
6387
- } else if (!Z(h, x.localVars)) {
6388
- x.localVars = new we(h, x.localVars);
6361
+ }
6362
+ var A = { state: null, column: null, marked: null, cc: null };
6363
+ function U() {
6364
+ for (var h = arguments.length - 1; h >= 0; h--)
6365
+ A.cc.push(arguments[h]);
6366
+ }
6367
+ function c() {
6368
+ return U.apply(null, arguments), !0;
6369
+ }
6370
+ function Z(h, x) {
6371
+ for (var Y = x; Y; Y = Y.next)
6372
+ if (Y.name == h)
6373
+ return !0;
6374
+ return !1;
6375
+ }
6376
+ function j(h) {
6377
+ var x = A.state;
6378
+ if (A.marked = "def", !!K) {
6379
+ if (x.context) {
6380
+ if (x.lexical.info == "var" && x.context && x.context.block) {
6381
+ var Y = ne(h, x.context);
6382
+ if (Y != null) {
6383
+ x.context = Y;
6389
6384
  return;
6390
6385
  }
6386
+ } else if (!Z(h, x.localVars)) {
6387
+ x.localVars = new we(h, x.localVars);
6388
+ return;
6391
6389
  }
6392
- z.globalVars && !Z(h, x.globalVars) && (x.globalVars = new we(h, x.globalVars));
6393
6390
  }
6391
+ z.globalVars && !Z(h, x.globalVars) && (x.globalVars = new we(h, x.globalVars));
6394
6392
  }
6395
- function ne(h, x) {
6396
- if (x)
6397
- if (x.block) {
6398
- var Y = ne(h, x.prev);
6399
- return Y ? Y == x.prev ? x : new ce(Y, x.vars, !0) : null;
6400
- } else
6401
- return Z(h, x.vars) ? x : new ce(x.prev, new we(h, x.vars), !1);
6393
+ }
6394
+ function ne(h, x) {
6395
+ if (x)
6396
+ if (x.block) {
6397
+ var Y = ne(h, x.prev);
6398
+ return Y ? Y == x.prev ? x : new ce(Y, x.vars, !0) : null;
6399
+ } else
6400
+ return Z(h, x.vars) ? x : new ce(x.prev, new we(h, x.vars), !1);
6401
+ else
6402
+ return null;
6403
+ }
6404
+ function fe(h) {
6405
+ return h == "public" || h == "private" || h == "protected" || h == "abstract" || h == "readonly";
6406
+ }
6407
+ function ce(h, x, Y) {
6408
+ this.prev = h, this.vars = x, this.block = Y;
6409
+ }
6410
+ function we(h, x) {
6411
+ this.name = h, this.next = x;
6412
+ }
6413
+ var We = new we("this", new we("arguments", null));
6414
+ function Me() {
6415
+ A.state.context = new ce(A.state.context, A.state.localVars, !1), A.state.localVars = We;
6416
+ }
6417
+ function Ge() {
6418
+ A.state.context = new ce(A.state.context, A.state.localVars, !0), A.state.localVars = null;
6419
+ }
6420
+ Me.lex = Ge.lex = !0;
6421
+ function Ee() {
6422
+ A.state.localVars = A.state.context.vars, A.state.context = A.state.context.prev;
6423
+ }
6424
+ Ee.lex = !0;
6425
+ function me(h, x) {
6426
+ var Y = function() {
6427
+ var $ = A.state, R = $.indented;
6428
+ if ($.lexical.type == "stat")
6429
+ R = $.lexical.indented;
6402
6430
  else
6403
- return null;
6404
- }
6405
- function fe(h) {
6406
- return h == "public" || h == "private" || h == "protected" || h == "abstract" || h == "readonly";
6407
- }
6408
- function ce(h, x, Y) {
6409
- this.prev = h, this.vars = x, this.block = Y;
6410
- }
6411
- function we(h, x) {
6412
- this.name = h, this.next = x;
6413
- }
6414
- var We = new we("this", new we("arguments", null));
6415
- function Me() {
6416
- A.state.context = new ce(A.state.context, A.state.localVars, !1), A.state.localVars = We;
6417
- }
6418
- function Ge() {
6419
- A.state.context = new ce(A.state.context, A.state.localVars, !0), A.state.localVars = null;
6420
- }
6421
- Me.lex = Ge.lex = !0;
6422
- function Ee() {
6423
- A.state.localVars = A.state.context.vars, A.state.context = A.state.context.prev;
6424
- }
6425
- Ee.lex = !0;
6426
- function me(h, x) {
6427
- var Y = function() {
6428
- var $ = A.state, R = $.indented;
6429
- if ($.lexical.type == "stat")
6430
- R = $.lexical.indented;
6431
- else
6432
- for (var ae = $.lexical; ae && ae.type == ")" && ae.align; ae = ae.prev)
6433
- R = ae.indented;
6434
- $.lexical = new D(R, A.stream.column(), h, null, $.lexical, x);
6435
- };
6436
- return Y.lex = !0, Y;
6437
- }
6438
- function ge() {
6439
- var h = A.state;
6440
- h.lexical.prev && (h.lexical.type == ")" && (h.indented = h.lexical.indented), h.lexical = h.lexical.prev);
6441
- }
6442
- ge.lex = !0;
6443
- function xe(h) {
6444
- function x(Y) {
6445
- return Y == h ? c() : h == ";" || Y == "}" || Y == ")" || Y == "]" ? U() : c(x);
6446
- }
6447
- return x;
6448
- }
6449
- function Le(h, x) {
6450
- return h == "var" ? c(me("vardef", x), Mr, xe(";"), ge) : h == "keyword a" ? c(me("form"), Mt, Le, ge) : h == "keyword b" ? c(me("form"), Le, ge) : h == "keyword d" ? A.stream.match(/^\s*$/, !1) ? c() : c(me("stat"), Lt, xe(";"), ge) : h == "debugger" ? c(xe(";")) : h == "{" ? c(me("}"), Ge, Kt, ge, Ee) : h == ";" ? c() : h == "if" ? (A.state.lexical.info == "else" && A.state.cc[A.state.cc.length - 1] == ge && A.state.cc.pop()(), c(me("form"), Mt, Le, ge, Dr)) : h == "function" ? c(Pt) : h == "for" ? c(me("form"), Ge, Hn, Le, Ee, ge) : h == "class" || T && x == "interface" ? (A.marked = "keyword", c(me("form", h == "class" ? h : x), Fr, ge)) : h == "variable" ? T && x == "declare" ? (A.marked = "keyword", c(Le)) : T && (x == "module" || x == "enum" || x == "type") && A.stream.match(/^\s*\w/, !1) ? (A.marked = "keyword", x == "enum" ? c(ue) : x == "type" ? c(zn, xe("operator"), Se, xe(";")) : c(me("form"), vt, xe("{"), me("}"), Kt, ge, ge)) : T && x == "namespace" ? (A.marked = "keyword", c(me("form"), he, Le, ge)) : T && x == "abstract" ? (A.marked = "keyword", c(Le)) : c(me("stat"), Te) : h == "switch" ? c(
6451
- me("form"),
6452
- Mt,
6453
- xe("{"),
6454
- me("}", "switch"),
6455
- Ge,
6456
- Kt,
6457
- ge,
6458
- ge,
6459
- Ee
6460
- ) : h == "case" ? c(he, xe(":")) : h == "default" ? c(xe(":")) : h == "catch" ? c(me("form"), Me, be, Le, ge, Ee) : h == "export" ? c(me("stat"), Er, ge) : h == "import" ? c(me("stat"), ur, ge) : h == "async" ? c(Le) : x == "@" ? c(he, Le) : U(me("stat"), he, xe(";"), ge);
6461
- }
6462
- function be(h) {
6431
+ for (var ae = $.lexical; ae && ae.type == ")" && ae.align; ae = ae.prev)
6432
+ R = ae.indented;
6433
+ $.lexical = new D(R, A.stream.column(), h, null, $.lexical, x);
6434
+ };
6435
+ return Y.lex = !0, Y;
6436
+ }
6437
+ function ge() {
6438
+ var h = A.state;
6439
+ h.lexical.prev && (h.lexical.type == ")" && (h.indented = h.lexical.indented), h.lexical = h.lexical.prev);
6440
+ }
6441
+ ge.lex = !0;
6442
+ function xe(h) {
6443
+ function x(Y) {
6444
+ return Y == h ? c() : h == ";" || Y == "}" || Y == ")" || Y == "]" ? U() : c(x);
6445
+ }
6446
+ return x;
6447
+ }
6448
+ function Le(h, x) {
6449
+ return h == "var" ? c(me("vardef", x), Mr, xe(";"), ge) : h == "keyword a" ? c(me("form"), Mt, Le, ge) : h == "keyword b" ? c(me("form"), Le, ge) : h == "keyword d" ? A.stream.match(/^\s*$/, !1) ? c() : c(me("stat"), Lt, xe(";"), ge) : h == "debugger" ? c(xe(";")) : h == "{" ? c(me("}"), Ge, Kt, ge, Ee) : h == ";" ? c() : h == "if" ? (A.state.lexical.info == "else" && A.state.cc[A.state.cc.length - 1] == ge && A.state.cc.pop()(), c(me("form"), Mt, Le, ge, Dr)) : h == "function" ? c(Pt) : h == "for" ? c(me("form"), Ge, Hn, Le, Ee, ge) : h == "class" || T && x == "interface" ? (A.marked = "keyword", c(me("form", h == "class" ? h : x), Fr, ge)) : h == "variable" ? T && x == "declare" ? (A.marked = "keyword", c(Le)) : T && (x == "module" || x == "enum" || x == "type") && A.stream.match(/^\s*\w/, !1) ? (A.marked = "keyword", x == "enum" ? c(ue) : x == "type" ? c(zn, xe("operator"), Se, xe(";")) : c(me("form"), vt, xe("{"), me("}"), Kt, ge, ge)) : T && x == "namespace" ? (A.marked = "keyword", c(me("form"), he, Le, ge)) : T && x == "abstract" ? (A.marked = "keyword", c(Le)) : c(me("stat"), Te) : h == "switch" ? c(
6450
+ me("form"),
6451
+ Mt,
6452
+ xe("{"),
6453
+ me("}", "switch"),
6454
+ Ge,
6455
+ Kt,
6456
+ ge,
6457
+ ge,
6458
+ Ee
6459
+ ) : h == "case" ? c(he, xe(":")) : h == "default" ? c(xe(":")) : h == "catch" ? c(me("form"), Me, be, Le, ge, Ee) : h == "export" ? c(me("stat"), Er, ge) : h == "import" ? c(me("stat"), ur, ge) : h == "async" ? c(Le) : x == "@" ? c(he, Le) : U(me("stat"), he, xe(";"), ge);
6460
+ }
6461
+ function be(h) {
6462
+ if (h == "(")
6463
+ return c(Et, xe(")"));
6464
+ }
6465
+ function he(h, x) {
6466
+ return dt(h, x, !1);
6467
+ }
6468
+ function it(h, x) {
6469
+ return dt(h, x, !0);
6470
+ }
6471
+ function Mt(h) {
6472
+ return h != "(" ? U() : c(me(")"), Lt, xe(")"), ge);
6473
+ }
6474
+ function dt(h, x, Y) {
6475
+ if (A.state.fatArrowAt == A.stream.start) {
6476
+ var $ = Y ? De : Ce;
6463
6477
  if (h == "(")
6464
- return c(Et, xe(")"));
6465
- }
6466
- function he(h, x) {
6467
- return dt(h, x, !1);
6468
- }
6469
- function it(h, x) {
6470
- return dt(h, x, !0);
6471
- }
6472
- function Mt(h) {
6473
- return h != "(" ? U() : c(me(")"), Lt, xe(")"), ge);
6474
- }
6475
- function dt(h, x, Y) {
6476
- if (A.state.fatArrowAt == A.stream.start) {
6477
- var $ = Y ? De : Ce;
6478
- if (h == "(")
6479
- return c(Me, me(")"), je(Et, ")"), ge, xe("=>"), $, Ee);
6480
- if (h == "variable")
6481
- return U(Me, vt, xe("=>"), $, Ee);
6482
- }
6483
- var R = Y ? Xe : Ae;
6484
- return L.hasOwnProperty(h) ? c(R) : h == "function" ? c(Pt, R) : h == "class" || T && x == "interface" ? (A.marked = "keyword", c(me("form"), yi, ge)) : h == "keyword c" || h == "async" ? c(Y ? it : he) : h == "(" ? c(me(")"), Lt, xe(")"), ge, R) : h == "operator" || h == "spread" ? c(Y ? it : he) : h == "[" ? c(me("]"), Ke, ge, R) : h == "{" ? nr(jt, "}", null, R) : h == "quasi" ? U(pt, R) : h == "new" ? c(H(Y)) : c();
6485
- }
6486
- function Lt(h) {
6487
- return h.match(/[;\}\)\],]/) ? U() : U(he);
6488
- }
6489
- function Ae(h, x) {
6490
- return h == "," ? c(Lt) : Xe(h, x, !1);
6491
- }
6492
- function Xe(h, x, Y) {
6493
- var $ = Y == !1 ? Ae : Xe, R = Y == !1 ? he : it;
6494
- if (h == "=>")
6495
- return c(Me, Y ? De : Ce, Ee);
6496
- if (h == "operator")
6497
- return /\+\+|--/.test(x) || T && x == "!" ? c($) : T && x == "<" && A.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/, !1) ? c(me(">"), je(Se, ">"), ge, $) : x == "?" ? c(he, xe(":"), R) : c(R);
6498
- if (h == "quasi")
6499
- return U(pt, $);
6500
- if (h != ";") {
6501
- if (h == "(")
6502
- return nr(it, ")", "call", $);
6503
- if (h == ".")
6504
- return c(at, $);
6505
- if (h == "[")
6506
- return c(me("]"), Lt, xe("]"), ge, $);
6507
- if (T && x == "as")
6508
- return A.marked = "keyword", c(Se, $);
6509
- if (h == "regexp")
6510
- return A.state.lastType = A.marked = "operator", A.stream.backUp(A.stream.pos - A.stream.start - 1), c(R);
6511
- }
6512
- }
6513
- function pt(h, x) {
6514
- return h != "quasi" ? U() : x.slice(x.length - 2) != "${" ? c(pt) : c(Lt, Tt);
6515
- }
6516
- function Tt(h) {
6517
- if (h == "}")
6518
- return A.marked = "string-2", A.state.tokenize = m, c(pt);
6519
- }
6520
- function Ce(h) {
6521
- return d(A.stream, A.state), U(h == "{" ? Le : he);
6522
- }
6523
- function De(h) {
6524
- return d(A.stream, A.state), U(h == "{" ? Le : it);
6525
- }
6526
- function H(h) {
6527
- return function(x) {
6528
- return x == "." ? c(h ? X : te) : x == "variable" && T ? c(wt, h ? Xe : Ae) : U(h ? it : he);
6529
- };
6530
- }
6531
- function te(h, x) {
6532
- if (x == "target")
6533
- return A.marked = "keyword", c(Ae);
6534
- }
6535
- function X(h, x) {
6536
- if (x == "target")
6537
- return A.marked = "keyword", c(Xe);
6538
- }
6539
- function Te(h) {
6540
- return h == ":" ? c(ge, Le) : U(Ae, xe(";"), ge);
6541
- }
6542
- function at(h) {
6478
+ return c(Me, me(")"), je(Et, ")"), ge, xe("=>"), $, Ee);
6543
6479
  if (h == "variable")
6544
- return A.marked = "property", c();
6545
- }
6546
- function jt(h, x) {
6547
- if (h == "async")
6548
- return A.marked = "property", c(jt);
6549
- if (h == "variable" || A.style == "keyword") {
6550
- if (A.marked = "property", x == "get" || x == "set")
6551
- return c(Bn);
6552
- var Y;
6553
- return T && A.state.fatArrowAt == A.stream.start && (Y = A.stream.match(/^\s*:\s*/, !1)) && (A.state.fatArrowAt = A.stream.pos + Y[0].length), c(Yt);
6554
- } else {
6555
- if (h == "number" || h == "string")
6556
- return A.marked = B ? "property" : A.style + " property", c(Yt);
6557
- if (h == "jsonld-keyword")
6558
- return c(Yt);
6559
- if (T && fe(x))
6560
- return A.marked = "keyword", c(jt);
6561
- if (h == "[")
6562
- return c(he, ir, xe("]"), Yt);
6563
- if (h == "spread")
6564
- return c(it, Yt);
6565
- if (x == "*")
6566
- return A.marked = "keyword", c(jt);
6567
- if (h == ":")
6568
- return U(Yt);
6569
- }
6570
- }
6571
- function Bn(h) {
6572
- return h != "variable" ? U(Yt) : (A.marked = "property", c(Pt));
6573
- }
6574
- function Yt(h) {
6575
- if (h == ":")
6576
- return c(it);
6480
+ return U(Me, vt, xe("=>"), $, Ee);
6481
+ }
6482
+ var R = Y ? Xe : Ae;
6483
+ return L.hasOwnProperty(h) ? c(R) : h == "function" ? c(Pt, R) : h == "class" || T && x == "interface" ? (A.marked = "keyword", c(me("form"), yi, ge)) : h == "keyword c" || h == "async" ? c(Y ? it : he) : h == "(" ? c(me(")"), Lt, xe(")"), ge, R) : h == "operator" || h == "spread" ? c(Y ? it : he) : h == "[" ? c(me("]"), Ke, ge, R) : h == "{" ? nr(jt, "}", null, R) : h == "quasi" ? U(pt, R) : h == "new" ? c(H(Y)) : c();
6484
+ }
6485
+ function Lt(h) {
6486
+ return h.match(/[;\}\)\],]/) ? U() : U(he);
6487
+ }
6488
+ function Ae(h, x) {
6489
+ return h == "," ? c(Lt) : Xe(h, x, !1);
6490
+ }
6491
+ function Xe(h, x, Y) {
6492
+ var $ = Y == !1 ? Ae : Xe, R = Y == !1 ? he : it;
6493
+ if (h == "=>")
6494
+ return c(Me, Y ? De : Ce, Ee);
6495
+ if (h == "operator")
6496
+ return /\+\+|--/.test(x) || T && x == "!" ? c($) : T && x == "<" && A.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/, !1) ? c(me(">"), je(Se, ">"), ge, $) : x == "?" ? c(he, xe(":"), R) : c(R);
6497
+ if (h == "quasi")
6498
+ return U(pt, $);
6499
+ if (h != ";") {
6577
6500
  if (h == "(")
6578
- return U(Pt);
6579
- }
6580
- function je(h, x, Y) {
6581
- function $(R, ae) {
6582
- if (Y ? Y.indexOf(R) > -1 : R == ",") {
6583
- var Oe = A.state.lexical;
6584
- return Oe.info == "call" && (Oe.pos = (Oe.pos || 0) + 1), c(function(Je, gt) {
6585
- return Je == x || gt == x ? U() : U(h);
6586
- }, $);
6587
- }
6588
- return R == x || ae == x ? c() : Y && Y.indexOf(";") > -1 ? U(h) : c(xe(x));
6589
- }
6590
- return function(R, ae) {
6591
- return R == x || ae == x ? c() : U(h, $);
6592
- };
6593
- }
6594
- function nr(h, x, Y) {
6595
- for (var $ = 3; $ < arguments.length; $++)
6596
- A.cc.push(arguments[$]);
6597
- return c(me(x, Y), je(h, x), ge);
6598
- }
6599
- function Kt(h) {
6600
- return h == "}" ? c() : U(Le, Kt);
6601
- }
6602
- function ir(h, x) {
6603
- if (T) {
6604
- if (h == ":")
6605
- return c(Se);
6606
- if (x == "?")
6607
- return c(ir);
6608
- }
6609
- }
6610
- function br(h, x) {
6611
- if (T && (h == ":" || x == "in"))
6612
- return c(Se);
6613
- }
6614
- function or(h) {
6615
- if (T && h == ":")
6616
- return A.stream.match(/^\s*\w+\s+is\b/, !1) ? c(he, gi, Se) : c(Se);
6617
- }
6618
- function gi(h, x) {
6619
- if (x == "is")
6620
- return A.marked = "keyword", c();
6621
- }
6622
- function Se(h, x) {
6623
- if (x == "keyof" || x == "typeof" || x == "infer" || x == "readonly")
6624
- return A.marked = "keyword", c(x == "typeof" ? it : Se);
6625
- if (h == "variable" || x == "void")
6626
- return A.marked = "type", c(Nt);
6627
- if (x == "|" || x == "&")
6628
- return c(Se);
6629
- if (h == "string" || h == "number" || h == "atom")
6630
- return c(Nt);
6501
+ return nr(it, ")", "call", $);
6502
+ if (h == ".")
6503
+ return c(at, $);
6631
6504
  if (h == "[")
6632
- return c(me("]"), je(Se, "]", ","), ge, Nt);
6633
- if (h == "{")
6634
- return c(me("}"), pe, ge, Nt);
6635
- if (h == "(")
6636
- return c(je(Re, ")"), In, Nt);
6637
- if (h == "<")
6638
- return c(je(Se, ">"), Se);
6639
- if (h == "quasi")
6640
- return U(lt, Nt);
6641
- }
6642
- function In(h) {
6643
- if (h == "=>")
6644
- return c(Se);
6645
- }
6646
- function pe(h) {
6647
- return h.match(/[\}\)\]]/) ? c() : h == "," || h == ";" ? c(pe) : U(Zt, pe);
6648
- }
6649
- function Zt(h, x) {
6650
- if (h == "variable" || A.style == "keyword")
6651
- return A.marked = "property", c(Zt);
6652
- if (x == "?" || h == "number" || h == "string")
6653
- return c(Zt);
6654
- if (h == ":")
6655
- return c(Se);
6656
- if (h == "[")
6657
- return c(xe("variable"), br, xe("]"), Zt);
6658
- if (h == "(")
6659
- return U(sr, Zt);
6660
- if (!h.match(/[;\}\)\],]/))
6661
- return c();
6662
- }
6663
- function lt(h, x) {
6664
- return h != "quasi" ? U() : x.slice(x.length - 2) != "${" ? c(lt) : c(Se, ze);
6665
- }
6666
- function ze(h) {
6667
- if (h == "}")
6668
- return A.marked = "string-2", A.state.tokenize = m, c(lt);
6669
- }
6670
- function Re(h, x) {
6671
- return h == "variable" && A.stream.match(/^\s*[?:]/, !1) || x == "?" ? c(Re) : h == ":" ? c(Se) : h == "spread" ? c(Re) : U(Se);
6672
- }
6673
- function Nt(h, x) {
6674
- if (x == "<")
6675
- return c(me(">"), je(Se, ">"), ge, Nt);
6676
- if (x == "|" || h == "." || x == "&")
6677
- return c(Se);
6678
- if (h == "[")
6679
- return c(Se, xe("]"), Nt);
6680
- if (x == "extends" || x == "implements")
6681
- return A.marked = "keyword", c(Se);
6682
- if (x == "?")
6683
- return c(Se, xe(":"), Se);
6684
- }
6685
- function wt(h, x) {
6686
- if (x == "<")
6687
- return c(me(">"), je(Se, ">"), ge, Nt);
6688
- }
6689
- function Dt() {
6690
- return U(Se, st);
6691
- }
6692
- function st(h, x) {
6693
- if (x == "=")
6694
- return c(Se);
6695
- }
6696
- function Mr(h, x) {
6697
- return x == "enum" ? (A.marked = "keyword", c(ue)) : U(vt, ir, Ft, mi);
6698
- }
6699
- function vt(h, x) {
6700
- if (T && fe(x))
6701
- return A.marked = "keyword", c(vt);
6702
- if (h == "variable")
6703
- return j(x), c();
6704
- if (h == "spread")
6705
- return c(vt);
6706
- if (h == "[")
6707
- return nr(on, "]");
6708
- if (h == "{")
6709
- return nr(ar, "}");
6710
- }
6711
- function ar(h, x) {
6712
- return h == "variable" && !A.stream.match(/^\s*:/, !1) ? (j(x), c(Ft)) : (h == "variable" && (A.marked = "property"), h == "spread" ? c(vt) : h == "}" ? U() : h == "[" ? c(he, xe("]"), xe(":"), ar) : c(xe(":"), vt, Ft));
6713
- }
6714
- function on() {
6715
- return U(vt, Ft);
6716
- }
6717
- function Ft(h, x) {
6718
- if (x == "=")
6719
- return c(it);
6720
- }
6721
- function mi(h) {
6722
- if (h == ",")
6723
- return c(Mr);
6505
+ return c(me("]"), Lt, xe("]"), ge, $);
6506
+ if (T && x == "as")
6507
+ return A.marked = "keyword", c(Se, $);
6508
+ if (h == "regexp")
6509
+ return A.state.lastType = A.marked = "operator", A.stream.backUp(A.stream.pos - A.stream.start - 1), c(R);
6724
6510
  }
6725
- function Dr(h, x) {
6726
- if (h == "keyword b" && x == "else")
6727
- return c(me("form", "else"), Le, ge);
6728
- }
6729
- function Hn(h, x) {
6730
- if (x == "await")
6731
- return c(Hn);
6732
- if (h == "(")
6733
- return c(me(")"), an, ge);
6734
- }
6735
- function an(h) {
6736
- return h == "var" ? c(Mr, lr) : h == "variable" ? c(lr) : U(lr);
6737
- }
6738
- function lr(h, x) {
6739
- return h == ")" ? c() : h == ";" ? c(lr) : x == "in" || x == "of" ? (A.marked = "keyword", c(he, lr)) : U(he, lr);
6740
- }
6741
- function Pt(h, x) {
6742
- if (x == "*")
6743
- return A.marked = "keyword", c(Pt);
6744
- if (h == "variable")
6745
- return j(x), c(Pt);
6746
- if (h == "(")
6747
- return c(Me, me(")"), je(Et, ")"), ge, or, Le, Ee);
6748
- if (T && x == "<")
6749
- return c(me(">"), je(Dt, ">"), ge, Pt);
6750
- }
6751
- function sr(h, x) {
6752
- if (x == "*")
6753
- return A.marked = "keyword", c(sr);
6754
- if (h == "variable")
6755
- return j(x), c(sr);
6756
- if (h == "(")
6757
- return c(Me, me(")"), je(Et, ")"), ge, or, Ee);
6758
- if (T && x == "<")
6759
- return c(me(">"), je(Dt, ">"), ge, sr);
6760
- }
6761
- function zn(h, x) {
6762
- if (h == "keyword" || h == "variable")
6763
- return A.marked = "type", c(zn);
6764
- if (x == "<")
6765
- return c(me(">"), je(Dt, ">"), ge);
6766
- }
6767
- function Et(h, x) {
6768
- return x == "@" && c(he, Et), h == "spread" ? c(Et) : T && fe(x) ? (A.marked = "keyword", c(Et)) : T && h == "this" ? c(ir, Ft) : U(vt, ir, Ft);
6769
- }
6770
- function yi(h, x) {
6771
- return h == "variable" ? Fr(h, x) : Wt(h, x);
6772
- }
6773
- function Fr(h, x) {
6774
- if (h == "variable")
6775
- return j(x), c(Wt);
6776
- }
6777
- function Wt(h, x) {
6778
- if (x == "<")
6779
- return c(me(">"), je(Dt, ">"), ge, Wt);
6780
- if (x == "extends" || x == "implements" || T && h == ",")
6781
- return x == "implements" && (A.marked = "keyword"), c(T ? Se : he, Wt);
6782
- if (h == "{")
6783
- return c(me("}"), Bt, ge);
6784
- }
6785
- function Bt(h, x) {
6786
- if (h == "async" || h == "variable" && (x == "static" || x == "get" || x == "set" || T && fe(x)) && A.stream.match(/^\s+#?[\w$\xa1-\uffff]/, !1))
6787
- return A.marked = "keyword", c(Bt);
6788
- if (h == "variable" || A.style == "keyword")
6789
- return A.marked = "property", c(xr, Bt);
6511
+ }
6512
+ function pt(h, x) {
6513
+ return h != "quasi" ? U() : x.slice(x.length - 2) != "${" ? c(pt) : c(Lt, Tt);
6514
+ }
6515
+ function Tt(h) {
6516
+ if (h == "}")
6517
+ return A.marked = "string-2", A.state.tokenize = m, c(pt);
6518
+ }
6519
+ function Ce(h) {
6520
+ return d(A.stream, A.state), U(h == "{" ? Le : he);
6521
+ }
6522
+ function De(h) {
6523
+ return d(A.stream, A.state), U(h == "{" ? Le : it);
6524
+ }
6525
+ function H(h) {
6526
+ return function(x) {
6527
+ return x == "." ? c(h ? X : te) : x == "variable" && T ? c(wt, h ? Xe : Ae) : U(h ? it : he);
6528
+ };
6529
+ }
6530
+ function te(h, x) {
6531
+ if (x == "target")
6532
+ return A.marked = "keyword", c(Ae);
6533
+ }
6534
+ function X(h, x) {
6535
+ if (x == "target")
6536
+ return A.marked = "keyword", c(Xe);
6537
+ }
6538
+ function Te(h) {
6539
+ return h == ":" ? c(ge, Le) : U(Ae, xe(";"), ge);
6540
+ }
6541
+ function at(h) {
6542
+ if (h == "variable")
6543
+ return A.marked = "property", c();
6544
+ }
6545
+ function jt(h, x) {
6546
+ if (h == "async")
6547
+ return A.marked = "property", c(jt);
6548
+ if (h == "variable" || A.style == "keyword") {
6549
+ if (A.marked = "property", x == "get" || x == "set")
6550
+ return c(Bn);
6551
+ var Y;
6552
+ return T && A.state.fatArrowAt == A.stream.start && (Y = A.stream.match(/^\s*:\s*/, !1)) && (A.state.fatArrowAt = A.stream.pos + Y[0].length), c(Yt);
6553
+ } else {
6790
6554
  if (h == "number" || h == "string")
6791
- return c(xr, Bt);
6555
+ return A.marked = B ? "property" : A.style + " property", c(Yt);
6556
+ if (h == "jsonld-keyword")
6557
+ return c(Yt);
6558
+ if (T && fe(x))
6559
+ return A.marked = "keyword", c(jt);
6792
6560
  if (h == "[")
6793
- return c(he, ir, xe("]"), xr, Bt);
6561
+ return c(he, ir, xe("]"), Yt);
6562
+ if (h == "spread")
6563
+ return c(it, Yt);
6794
6564
  if (x == "*")
6795
- return A.marked = "keyword", c(Bt);
6796
- if (T && h == "(")
6797
- return U(sr, Bt);
6798
- if (h == ";" || h == ",")
6799
- return c(Bt);
6800
- if (h == "}")
6801
- return c();
6802
- if (x == "@")
6803
- return c(he, Bt);
6804
- }
6805
- function xr(h, x) {
6806
- if (x == "!" || x == "?")
6807
- return c(xr);
6565
+ return A.marked = "keyword", c(jt);
6808
6566
  if (h == ":")
6809
- return c(Se, Ft);
6810
- if (x == "=")
6811
- return c(it);
6812
- var Y = A.state.lexical.prev, $ = Y && Y.info == "interface";
6813
- return U($ ? sr : Pt);
6814
- }
6815
- function Er(h, x) {
6816
- return x == "*" ? (A.marked = "keyword", c(Ir, xe(";"))) : x == "default" ? (A.marked = "keyword", c(he, xe(";"))) : h == "{" ? c(je(Wr, "}"), Ir, xe(";")) : U(Le);
6817
- }
6818
- function Wr(h, x) {
6819
- if (x == "as")
6820
- return A.marked = "keyword", c(xe("variable"));
6821
- if (h == "variable")
6822
- return U(it, Wr);
6823
- }
6824
- function ur(h) {
6825
- return h == "string" ? c() : h == "(" ? U(he) : h == "." ? U(Ae) : U(Br, _t, Ir);
6826
- }
6827
- function Br(h, x) {
6828
- return h == "{" ? nr(Br, "}") : (h == "variable" && j(x), x == "*" && (A.marked = "keyword"), c(ln));
6829
- }
6830
- function _t(h) {
6831
- if (h == ",")
6832
- return c(Br, _t);
6833
- }
6834
- function ln(h, x) {
6835
- if (x == "as")
6836
- return A.marked = "keyword", c(Br);
6837
- }
6838
- function Ir(h, x) {
6839
- if (x == "from")
6840
- return A.marked = "keyword", c(he);
6841
- }
6842
- function Ke(h) {
6843
- return h == "]" ? c() : U(je(it, "]"));
6844
- }
6845
- function ue() {
6846
- return U(me("form"), vt, xe("{"), me("}"), je(Qt, "}"), ge, ge);
6847
- }
6848
- function Qt() {
6849
- return U(vt, Ft);
6850
- }
6851
- function sn(h, x) {
6852
- return h.lastType == "operator" || h.lastType == "," || P.test(x.charAt(0)) || /[,.]/.test(x.charAt(0));
6567
+ return U(Yt);
6853
6568
  }
6854
- function At(h, x, Y) {
6855
- return x.tokenize == g && /^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(x.lastType) || x.lastType == "quasi" && /\{\s*$/.test(h.string.slice(0, h.pos - (Y || 0)));
6856
- }
6857
- return {
6858
- startState: function(h) {
6859
- var x = {
6860
- tokenize: g,
6861
- lastType: "sof",
6862
- cc: [],
6863
- lexical: new D((h || 0) - V, 0, "block", !1),
6864
- localVars: z.localVars,
6865
- context: z.localVars && new ce(null, null, !1),
6866
- indented: h || 0
6867
- };
6868
- return z.globalVars && typeof z.globalVars == "object" && (x.globalVars = z.globalVars), x;
6869
- },
6870
- token: function(h, x) {
6871
- if (h.sol() && (x.lexical.hasOwnProperty("align") || (x.lexical.align = !1), x.indented = h.indentation(), d(h, x)), x.tokenize != p && h.eatSpace())
6872
- return null;
6873
- var Y = x.tokenize(h, x);
6874
- return M == "comment" ? Y : (x.lastType = M == "operator" && (S == "++" || S == "--") ? "incdec" : M, _(x, Y, M, S, h));
6875
- },
6876
- indent: function(h, x) {
6877
- if (h.tokenize == p || h.tokenize == m)
6878
- return b.Pass;
6879
- if (h.tokenize != g)
6880
- return 0;
6881
- var Y = x && x.charAt(0), $ = h.lexical, R;
6882
- if (!/^\s*else\b/.test(x))
6883
- for (var ae = h.cc.length - 1; ae >= 0; --ae) {
6884
- var Oe = h.cc[ae];
6885
- if (Oe == ge)
6886
- $ = $.prev;
6887
- else if (Oe != Dr && Oe != Ee)
6888
- break;
6889
- }
6890
- for (; ($.type == "stat" || $.type == "form") && (Y == "}" || (R = h.cc[h.cc.length - 1]) && (R == Ae || R == Xe) && !/^[,\.=+\-*:?[\(]/.test(x)); )
6891
- $ = $.prev;
6892
- re && $.type == ")" && $.prev.type == "stat" && ($ = $.prev);
6893
- var Je = $.type, gt = Y == Je;
6894
- return Je == "vardef" ? $.indented + (h.lastType == "operator" || h.lastType == "," ? $.info.length + 1 : 0) : Je == "form" && Y == "{" ? $.indented : Je == "form" ? $.indented + V : Je == "stat" ? $.indented + (sn(h, x) ? re || V : 0) : $.info == "switch" && !gt && z.doubleIndentSwitch != !1 ? $.indented + (/^(?:case|default)\b/.test(x) ? V : 2 * V) : $.align ? $.column + (gt ? 0 : 1) : $.indented + (gt ? 0 : V);
6895
- },
6896
- electricInput: /^\s*(?:case .*?:|default:|\{|\})$/,
6897
- blockCommentStart: W ? null : "/*",
6898
- blockCommentEnd: W ? null : "*/",
6899
- blockCommentContinue: W ? null : " * ",
6900
- lineComment: W ? null : "//",
6901
- fold: "brace",
6902
- closeBrackets: "()[]{}''\"\"``",
6903
- helperType: W ? "json" : "javascript",
6904
- jsonldMode: B,
6905
- jsonMode: W,
6906
- expressionAllowed: At,
6907
- skipExpression: function(h) {
6908
- _(h, "atom", "atom", "true", new b.StringStream("", 2, null));
6569
+ }
6570
+ function Bn(h) {
6571
+ return h != "variable" ? U(Yt) : (A.marked = "property", c(Pt));
6572
+ }
6573
+ function Yt(h) {
6574
+ if (h == ":")
6575
+ return c(it);
6576
+ if (h == "(")
6577
+ return U(Pt);
6578
+ }
6579
+ function je(h, x, Y) {
6580
+ function $(R, ae) {
6581
+ if (Y ? Y.indexOf(R) > -1 : R == ",") {
6582
+ var Oe = A.state.lexical;
6583
+ return Oe.info == "call" && (Oe.pos = (Oe.pos || 0) + 1), c(function(Je, gt) {
6584
+ return Je == x || gt == x ? U() : U(h);
6585
+ }, $);
6909
6586
  }
6587
+ return R == x || ae == x ? c() : Y && Y.indexOf(";") > -1 ? U(h) : c(xe(x));
6588
+ }
6589
+ return function(R, ae) {
6590
+ return R == x || ae == x ? c() : U(h, $);
6910
6591
  };
6911
- }), b.registerHelper("wordChars", "javascript", /[\w$]/), b.defineMIME("text/javascript", "javascript"), b.defineMIME("text/ecmascript", "javascript"), b.defineMIME("application/javascript", "javascript"), b.defineMIME("application/x-javascript", "javascript"), b.defineMIME("application/ecmascript", "javascript"), b.defineMIME("application/json", { name: "javascript", json: !0 }), b.defineMIME("application/x-json", { name: "javascript", json: !0 }), b.defineMIME("application/manifest+json", { name: "javascript", json: !0 }), b.defineMIME("application/ld+json", { name: "javascript", jsonld: !0 }), b.defineMIME("text/typescript", { name: "javascript", typescript: !0 }), b.defineMIME("application/typescript", { name: "javascript", typescript: !0 });
6912
- });
6913
- }()), gl.exports;
6914
- }
6915
- Dl();
6916
- var yl = { exports: {} }, bl;
6917
- function Fl() {
6918
- return bl || (bl = 1, function(Ie, Ue) {
6592
+ }
6593
+ function nr(h, x, Y) {
6594
+ for (var $ = 3; $ < arguments.length; $++)
6595
+ A.cc.push(arguments[$]);
6596
+ return c(me(x, Y), je(h, x), ge);
6597
+ }
6598
+ function Kt(h) {
6599
+ return h == "}" ? c() : U(Le, Kt);
6600
+ }
6601
+ function ir(h, x) {
6602
+ if (T) {
6603
+ if (h == ":")
6604
+ return c(Se);
6605
+ if (x == "?")
6606
+ return c(ir);
6607
+ }
6608
+ }
6609
+ function br(h, x) {
6610
+ if (T && (h == ":" || x == "in"))
6611
+ return c(Se);
6612
+ }
6613
+ function or(h) {
6614
+ if (T && h == ":")
6615
+ return A.stream.match(/^\s*\w+\s+is\b/, !1) ? c(he, gi, Se) : c(Se);
6616
+ }
6617
+ function gi(h, x) {
6618
+ if (x == "is")
6619
+ return A.marked = "keyword", c();
6620
+ }
6621
+ function Se(h, x) {
6622
+ if (x == "keyof" || x == "typeof" || x == "infer" || x == "readonly")
6623
+ return A.marked = "keyword", c(x == "typeof" ? it : Se);
6624
+ if (h == "variable" || x == "void")
6625
+ return A.marked = "type", c(Nt);
6626
+ if (x == "|" || x == "&")
6627
+ return c(Se);
6628
+ if (h == "string" || h == "number" || h == "atom")
6629
+ return c(Nt);
6630
+ if (h == "[")
6631
+ return c(me("]"), je(Se, "]", ","), ge, Nt);
6632
+ if (h == "{")
6633
+ return c(me("}"), pe, ge, Nt);
6634
+ if (h == "(")
6635
+ return c(je(Re, ")"), In, Nt);
6636
+ if (h == "<")
6637
+ return c(je(Se, ">"), Se);
6638
+ if (h == "quasi")
6639
+ return U(lt, Nt);
6640
+ }
6641
+ function In(h) {
6642
+ if (h == "=>")
6643
+ return c(Se);
6644
+ }
6645
+ function pe(h) {
6646
+ return h.match(/[\}\)\]]/) ? c() : h == "," || h == ";" ? c(pe) : U(Zt, pe);
6647
+ }
6648
+ function Zt(h, x) {
6649
+ if (h == "variable" || A.style == "keyword")
6650
+ return A.marked = "property", c(Zt);
6651
+ if (x == "?" || h == "number" || h == "string")
6652
+ return c(Zt);
6653
+ if (h == ":")
6654
+ return c(Se);
6655
+ if (h == "[")
6656
+ return c(xe("variable"), br, xe("]"), Zt);
6657
+ if (h == "(")
6658
+ return U(sr, Zt);
6659
+ if (!h.match(/[;\}\)\],]/))
6660
+ return c();
6661
+ }
6662
+ function lt(h, x) {
6663
+ return h != "quasi" ? U() : x.slice(x.length - 2) != "${" ? c(lt) : c(Se, ze);
6664
+ }
6665
+ function ze(h) {
6666
+ if (h == "}")
6667
+ return A.marked = "string-2", A.state.tokenize = m, c(lt);
6668
+ }
6669
+ function Re(h, x) {
6670
+ return h == "variable" && A.stream.match(/^\s*[?:]/, !1) || x == "?" ? c(Re) : h == ":" ? c(Se) : h == "spread" ? c(Re) : U(Se);
6671
+ }
6672
+ function Nt(h, x) {
6673
+ if (x == "<")
6674
+ return c(me(">"), je(Se, ">"), ge, Nt);
6675
+ if (x == "|" || h == "." || x == "&")
6676
+ return c(Se);
6677
+ if (h == "[")
6678
+ return c(Se, xe("]"), Nt);
6679
+ if (x == "extends" || x == "implements")
6680
+ return A.marked = "keyword", c(Se);
6681
+ if (x == "?")
6682
+ return c(Se, xe(":"), Se);
6683
+ }
6684
+ function wt(h, x) {
6685
+ if (x == "<")
6686
+ return c(me(">"), je(Se, ">"), ge, Nt);
6687
+ }
6688
+ function Dt() {
6689
+ return U(Se, st);
6690
+ }
6691
+ function st(h, x) {
6692
+ if (x == "=")
6693
+ return c(Se);
6694
+ }
6695
+ function Mr(h, x) {
6696
+ return x == "enum" ? (A.marked = "keyword", c(ue)) : U(vt, ir, Ft, mi);
6697
+ }
6698
+ function vt(h, x) {
6699
+ if (T && fe(x))
6700
+ return A.marked = "keyword", c(vt);
6701
+ if (h == "variable")
6702
+ return j(x), c();
6703
+ if (h == "spread")
6704
+ return c(vt);
6705
+ if (h == "[")
6706
+ return nr(on, "]");
6707
+ if (h == "{")
6708
+ return nr(ar, "}");
6709
+ }
6710
+ function ar(h, x) {
6711
+ return h == "variable" && !A.stream.match(/^\s*:/, !1) ? (j(x), c(Ft)) : (h == "variable" && (A.marked = "property"), h == "spread" ? c(vt) : h == "}" ? U() : h == "[" ? c(he, xe("]"), xe(":"), ar) : c(xe(":"), vt, Ft));
6712
+ }
6713
+ function on() {
6714
+ return U(vt, Ft);
6715
+ }
6716
+ function Ft(h, x) {
6717
+ if (x == "=")
6718
+ return c(it);
6719
+ }
6720
+ function mi(h) {
6721
+ if (h == ",")
6722
+ return c(Mr);
6723
+ }
6724
+ function Dr(h, x) {
6725
+ if (h == "keyword b" && x == "else")
6726
+ return c(me("form", "else"), Le, ge);
6727
+ }
6728
+ function Hn(h, x) {
6729
+ if (x == "await")
6730
+ return c(Hn);
6731
+ if (h == "(")
6732
+ return c(me(")"), an, ge);
6733
+ }
6734
+ function an(h) {
6735
+ return h == "var" ? c(Mr, lr) : h == "variable" ? c(lr) : U(lr);
6736
+ }
6737
+ function lr(h, x) {
6738
+ return h == ")" ? c() : h == ";" ? c(lr) : x == "in" || x == "of" ? (A.marked = "keyword", c(he, lr)) : U(he, lr);
6739
+ }
6740
+ function Pt(h, x) {
6741
+ if (x == "*")
6742
+ return A.marked = "keyword", c(Pt);
6743
+ if (h == "variable")
6744
+ return j(x), c(Pt);
6745
+ if (h == "(")
6746
+ return c(Me, me(")"), je(Et, ")"), ge, or, Le, Ee);
6747
+ if (T && x == "<")
6748
+ return c(me(">"), je(Dt, ">"), ge, Pt);
6749
+ }
6750
+ function sr(h, x) {
6751
+ if (x == "*")
6752
+ return A.marked = "keyword", c(sr);
6753
+ if (h == "variable")
6754
+ return j(x), c(sr);
6755
+ if (h == "(")
6756
+ return c(Me, me(")"), je(Et, ")"), ge, or, Ee);
6757
+ if (T && x == "<")
6758
+ return c(me(">"), je(Dt, ">"), ge, sr);
6759
+ }
6760
+ function zn(h, x) {
6761
+ if (h == "keyword" || h == "variable")
6762
+ return A.marked = "type", c(zn);
6763
+ if (x == "<")
6764
+ return c(me(">"), je(Dt, ">"), ge);
6765
+ }
6766
+ function Et(h, x) {
6767
+ return x == "@" && c(he, Et), h == "spread" ? c(Et) : T && fe(x) ? (A.marked = "keyword", c(Et)) : T && h == "this" ? c(ir, Ft) : U(vt, ir, Ft);
6768
+ }
6769
+ function yi(h, x) {
6770
+ return h == "variable" ? Fr(h, x) : Wt(h, x);
6771
+ }
6772
+ function Fr(h, x) {
6773
+ if (h == "variable")
6774
+ return j(x), c(Wt);
6775
+ }
6776
+ function Wt(h, x) {
6777
+ if (x == "<")
6778
+ return c(me(">"), je(Dt, ">"), ge, Wt);
6779
+ if (x == "extends" || x == "implements" || T && h == ",")
6780
+ return x == "implements" && (A.marked = "keyword"), c(T ? Se : he, Wt);
6781
+ if (h == "{")
6782
+ return c(me("}"), Bt, ge);
6783
+ }
6784
+ function Bt(h, x) {
6785
+ if (h == "async" || h == "variable" && (x == "static" || x == "get" || x == "set" || T && fe(x)) && A.stream.match(/^\s+#?[\w$\xa1-\uffff]/, !1))
6786
+ return A.marked = "keyword", c(Bt);
6787
+ if (h == "variable" || A.style == "keyword")
6788
+ return A.marked = "property", c(xr, Bt);
6789
+ if (h == "number" || h == "string")
6790
+ return c(xr, Bt);
6791
+ if (h == "[")
6792
+ return c(he, ir, xe("]"), xr, Bt);
6793
+ if (x == "*")
6794
+ return A.marked = "keyword", c(Bt);
6795
+ if (T && h == "(")
6796
+ return U(sr, Bt);
6797
+ if (h == ";" || h == ",")
6798
+ return c(Bt);
6799
+ if (h == "}")
6800
+ return c();
6801
+ if (x == "@")
6802
+ return c(he, Bt);
6803
+ }
6804
+ function xr(h, x) {
6805
+ if (x == "!" || x == "?")
6806
+ return c(xr);
6807
+ if (h == ":")
6808
+ return c(Se, Ft);
6809
+ if (x == "=")
6810
+ return c(it);
6811
+ var Y = A.state.lexical.prev, $ = Y && Y.info == "interface";
6812
+ return U($ ? sr : Pt);
6813
+ }
6814
+ function Er(h, x) {
6815
+ return x == "*" ? (A.marked = "keyword", c(Ir, xe(";"))) : x == "default" ? (A.marked = "keyword", c(he, xe(";"))) : h == "{" ? c(je(Wr, "}"), Ir, xe(";")) : U(Le);
6816
+ }
6817
+ function Wr(h, x) {
6818
+ if (x == "as")
6819
+ return A.marked = "keyword", c(xe("variable"));
6820
+ if (h == "variable")
6821
+ return U(it, Wr);
6822
+ }
6823
+ function ur(h) {
6824
+ return h == "string" ? c() : h == "(" ? U(he) : h == "." ? U(Ae) : U(Br, _t, Ir);
6825
+ }
6826
+ function Br(h, x) {
6827
+ return h == "{" ? nr(Br, "}") : (h == "variable" && j(x), x == "*" && (A.marked = "keyword"), c(ln));
6828
+ }
6829
+ function _t(h) {
6830
+ if (h == ",")
6831
+ return c(Br, _t);
6832
+ }
6833
+ function ln(h, x) {
6834
+ if (x == "as")
6835
+ return A.marked = "keyword", c(Br);
6836
+ }
6837
+ function Ir(h, x) {
6838
+ if (x == "from")
6839
+ return A.marked = "keyword", c(he);
6840
+ }
6841
+ function Ke(h) {
6842
+ return h == "]" ? c() : U(je(it, "]"));
6843
+ }
6844
+ function ue() {
6845
+ return U(me("form"), vt, xe("{"), me("}"), je(Qt, "}"), ge, ge);
6846
+ }
6847
+ function Qt() {
6848
+ return U(vt, Ft);
6849
+ }
6850
+ function sn(h, x) {
6851
+ return h.lastType == "operator" || h.lastType == "," || P.test(x.charAt(0)) || /[,.]/.test(x.charAt(0));
6852
+ }
6853
+ function At(h, x, Y) {
6854
+ return x.tokenize == g && /^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(x.lastType) || x.lastType == "quasi" && /\{\s*$/.test(h.string.slice(0, h.pos - (Y || 0)));
6855
+ }
6856
+ return {
6857
+ startState: function(h) {
6858
+ var x = {
6859
+ tokenize: g,
6860
+ lastType: "sof",
6861
+ cc: [],
6862
+ lexical: new D((h || 0) - V, 0, "block", !1),
6863
+ localVars: z.localVars,
6864
+ context: z.localVars && new ce(null, null, !1),
6865
+ indented: h || 0
6866
+ };
6867
+ return z.globalVars && typeof z.globalVars == "object" && (x.globalVars = z.globalVars), x;
6868
+ },
6869
+ token: function(h, x) {
6870
+ if (h.sol() && (x.lexical.hasOwnProperty("align") || (x.lexical.align = !1), x.indented = h.indentation(), d(h, x)), x.tokenize != p && h.eatSpace())
6871
+ return null;
6872
+ var Y = x.tokenize(h, x);
6873
+ return M == "comment" ? Y : (x.lastType = M == "operator" && (S == "++" || S == "--") ? "incdec" : M, _(x, Y, M, S, h));
6874
+ },
6875
+ indent: function(h, x) {
6876
+ if (h.tokenize == p || h.tokenize == m)
6877
+ return b.Pass;
6878
+ if (h.tokenize != g)
6879
+ return 0;
6880
+ var Y = x && x.charAt(0), $ = h.lexical, R;
6881
+ if (!/^\s*else\b/.test(x))
6882
+ for (var ae = h.cc.length - 1; ae >= 0; --ae) {
6883
+ var Oe = h.cc[ae];
6884
+ if (Oe == ge)
6885
+ $ = $.prev;
6886
+ else if (Oe != Dr && Oe != Ee)
6887
+ break;
6888
+ }
6889
+ for (; ($.type == "stat" || $.type == "form") && (Y == "}" || (R = h.cc[h.cc.length - 1]) && (R == Ae || R == Xe) && !/^[,\.=+\-*:?[\(]/.test(x)); )
6890
+ $ = $.prev;
6891
+ re && $.type == ")" && $.prev.type == "stat" && ($ = $.prev);
6892
+ var Je = $.type, gt = Y == Je;
6893
+ return Je == "vardef" ? $.indented + (h.lastType == "operator" || h.lastType == "," ? $.info.length + 1 : 0) : Je == "form" && Y == "{" ? $.indented : Je == "form" ? $.indented + V : Je == "stat" ? $.indented + (sn(h, x) ? re || V : 0) : $.info == "switch" && !gt && z.doubleIndentSwitch != !1 ? $.indented + (/^(?:case|default)\b/.test(x) ? V : 2 * V) : $.align ? $.column + (gt ? 0 : 1) : $.indented + (gt ? 0 : V);
6894
+ },
6895
+ electricInput: /^\s*(?:case .*?:|default:|\{|\})$/,
6896
+ blockCommentStart: W ? null : "/*",
6897
+ blockCommentEnd: W ? null : "*/",
6898
+ blockCommentContinue: W ? null : " * ",
6899
+ lineComment: W ? null : "//",
6900
+ fold: "brace",
6901
+ closeBrackets: "()[]{}''\"\"``",
6902
+ helperType: W ? "json" : "javascript",
6903
+ jsonldMode: B,
6904
+ jsonMode: W,
6905
+ expressionAllowed: At,
6906
+ skipExpression: function(h) {
6907
+ _(h, "atom", "atom", "true", new b.StringStream("", 2, null));
6908
+ }
6909
+ };
6910
+ }), b.registerHelper("wordChars", "javascript", /[\w$]/), b.defineMIME("text/javascript", "javascript"), b.defineMIME("text/ecmascript", "javascript"), b.defineMIME("application/javascript", "javascript"), b.defineMIME("application/x-javascript", "javascript"), b.defineMIME("application/ecmascript", "javascript"), b.defineMIME("application/json", { name: "javascript", json: !0 }), b.defineMIME("application/x-json", { name: "javascript", json: !0 }), b.defineMIME("application/manifest+json", { name: "javascript", json: !0 }), b.defineMIME("application/ld+json", { name: "javascript", jsonld: !0 }), b.defineMIME("text/typescript", { name: "javascript", typescript: !0 }), b.defineMIME("application/typescript", { name: "javascript", typescript: !0 });
6911
+ });
6912
+ })();
6913
+ var Uu = _u.exports, gl = { exports: {} }, ml;
6914
+ function Pl() {
6915
+ return ml || (ml = 1, function(Ie, Ue) {
6919
6916
  (function(b) {
6920
6917
  b(nt());
6921
6918
  })(function(b) {
@@ -8483,12 +8480,12 @@ function Fl() {
8483
8480
  helperType: "gss"
8484
8481
  });
8485
8482
  });
8486
- }()), yl.exports;
8483
+ }()), gl.exports;
8487
8484
  }
8488
- Fl();
8489
- var xl = { exports: {} }, kl;
8490
- function qu() {
8491
- return kl || (kl = 1, function(Ie, Ue) {
8485
+ Pl();
8486
+ var yl = { exports: {} }, bl;
8487
+ function Gu() {
8488
+ return bl || (bl = 1, function(Ie, Ue) {
8492
8489
  (function(b) {
8493
8490
  b(nt());
8494
8491
  })(function(b) {
@@ -8782,11 +8779,11 @@ function qu() {
8782
8779
  };
8783
8780
  }), b.defineMIME("text/xml", "xml"), b.defineMIME("application/xml", "xml"), b.mimeModes.hasOwnProperty("text/html") || b.defineMIME("text/html", { name: "xml", htmlMode: !0 });
8784
8781
  });
8785
- }()), xl.exports;
8782
+ }()), yl.exports;
8786
8783
  }
8787
8784
  (function(Ie, Ue) {
8788
8785
  (function(b) {
8789
- b(nt(), qu(), Dl(), Fl());
8786
+ b(nt(), Gu(), Uu, Pl());
8790
8787
  })(function(b) {
8791
8788
  var G = {
8792
8789
  script: [
@@ -9035,9 +9032,9 @@ function qu() {
9035
9032
  }
9036
9033
  });
9037
9034
  })();
9038
- var wl = { exports: {} }, Sl;
9039
- function Xu() {
9040
- return Sl || (Sl = 1, function(Ie, Ue) {
9035
+ var xl = { exports: {} }, kl;
9036
+ function qu() {
9037
+ return kl || (kl = 1, function(Ie, Ue) {
9041
9038
  (function(b) {
9042
9039
  b(nt());
9043
9040
  })(function(b) {
@@ -9214,11 +9211,11 @@ function Xu() {
9214
9211
  return M(m, u);
9215
9212
  };
9216
9213
  });
9217
- }()), wl.exports;
9214
+ }()), xl.exports;
9218
9215
  }
9219
9216
  (function(Ie, Ue) {
9220
9217
  (function(b) {
9221
- b(nt(), Xu());
9218
+ b(nt(), qu());
9222
9219
  })(function(b) {
9223
9220
  b.defineOption("autoCloseTags", !1, function(T, I, C) {
9224
9221
  if (C != b.Init && C && T.removeKeyMap("autoCloseTags"), !!I) {
@@ -9497,7 +9494,7 @@ function Xu() {
9497
9494
  });
9498
9495
  });
9499
9496
  })();
9500
- var ju = { exports: {} };
9497
+ var Xu = { exports: {} };
9501
9498
  (function(Ie, Ue) {
9502
9499
  (function(b) {
9503
9500
  b(nt());
@@ -9613,10 +9610,10 @@ var ju = { exports: {} };
9613
9610
  });
9614
9611
  });
9615
9612
  })();
9616
- var Yu = ju.exports;
9613
+ var ju = Xu.exports;
9617
9614
  (function(Ie, Ue) {
9618
9615
  (function(b) {
9619
- b(nt(), Yu);
9616
+ b(nt(), ju);
9620
9617
  })(function(b) {
9621
9618
  b.defineOption("foldGutter", !1, function(M, S, v) {
9622
9619
  v && v != b.Init && (M.clearGutter(M.state.foldGutter.options.gutter), M.state.foldGutter = null, M.off("gutterClick", I), M.off("changes", P), M.off("viewportChange", E), M.off("fold", J), M.off("unfold", J), M.off("swapDoc", P), M.off("optionChange", C)), S && (M.state.foldGutter = new z(V(S)), T(M), M.on("gutterClick", I), M.on("changes", P), M.on("viewportChange", E), M.on("fold", J), M.on("unfold", J), M.on("swapDoc", P), M.on("optionChange", C));
@@ -9900,9 +9897,9 @@ var Yu = ju.exports;
9900
9897
  });
9901
9898
  });
9902
9899
  })();
9903
- var Cl = { exports: {} }, Ll;
9900
+ var wl = { exports: {} }, Sl;
9904
9901
  function po() {
9905
- return Ll || (Ll = 1, function(Ie, Ue) {
9902
+ return Sl || (Sl = 1, function(Ie, Ue) {
9906
9903
  (function(b) {
9907
9904
  b(nt());
9908
9905
  })(function(b) {
@@ -10155,11 +10152,11 @@ function po() {
10155
10152
  u.length && this.setSelections(u, 0);
10156
10153
  });
10157
10154
  });
10158
- }()), Cl.exports;
10155
+ }()), wl.exports;
10159
10156
  }
10160
- var Tl = { exports: {} }, Al;
10161
- function El() {
10162
- return Al || (Al = 1, function(Ie, Ue) {
10157
+ var Cl = { exports: {} }, Ll;
10158
+ function Ml() {
10159
+ return Ll || (Ll = 1, function(Ie, Ue) {
10163
10160
  (function(b) {
10164
10161
  b(nt());
10165
10162
  })(function(b) {
@@ -10226,11 +10223,11 @@ function El() {
10226
10223
  }), T && (K = setTimeout(I, T)), I;
10227
10224
  });
10228
10225
  });
10229
- }()), Tl.exports;
10226
+ }()), Cl.exports;
10230
10227
  }
10231
10228
  (function(Ie, Ue) {
10232
10229
  (function(b) {
10233
- b(nt(), po(), El());
10230
+ b(nt(), po(), Ml());
10234
10231
  })(function(b) {
10235
10232
  b.defineOption("search", { bottom: !1 });
10236
10233
  function G(d, L) {
@@ -10468,10 +10465,10 @@ function El() {
10468
10465
  });
10469
10466
  })();
10470
10467
  po();
10471
- El();
10472
- var Ol = { exports: {} }, Nl;
10473
- function Zu() {
10474
- return Nl || (Nl = 1, function(Ie, Ue) {
10468
+ Ml();
10469
+ var Tl = { exports: {} }, Al;
10470
+ function Yu() {
10471
+ return Al || (Al = 1, function(Ie, Ue) {
10475
10472
  (function(b) {
10476
10473
  b(nt());
10477
10474
  })(function(b) {
@@ -10558,11 +10555,11 @@ function Zu() {
10558
10555
  return W(this, C, P, E, J);
10559
10556
  });
10560
10557
  });
10561
- }()), Ol.exports;
10558
+ }()), Tl.exports;
10562
10559
  }
10563
10560
  (function(Ie, Ue) {
10564
10561
  (function(b) {
10565
- b(nt(), po(), Zu());
10562
+ b(nt(), po(), Yu());
10566
10563
  })(function(b) {
10567
10564
  var G = b.commands, z = b.Pos;
10568
10565
  function V(u, p, m) {
@@ -11116,7 +11113,7 @@ function Zu() {
11116
11113
  v.sublime = g ? v.macSublime : v.pcSublime;
11117
11114
  });
11118
11115
  })();
11119
- const Qu = /* @__PURE__ */ Pl({
11116
+ const Zu = /* @__PURE__ */ Ol({
11120
11117
  __name: "CodeMirror",
11121
11118
  props: {
11122
11119
  mode: { default: "htmlmixed" },
@@ -11125,15 +11122,15 @@ const Qu = /* @__PURE__ */ Pl({
11125
11122
  },
11126
11123
  emits: ["change"],
11127
11124
  setup(Ie, { emit: Ue }) {
11128
- const b = Ie, G = Ue, z = Eu(), V = Wu("autoresize");
11129
- return Bu(() => {
11125
+ const b = Ie, G = Ue, z = Mu(), V = Du("autoresize");
11126
+ return Fu(() => {
11130
11127
  const re = b.readonly ? {} : {
11131
11128
  autoCloseBrackets: !0,
11132
11129
  autoCloseTags: !0,
11133
11130
  foldGutter: !0,
11134
11131
  gutters: ["CodeMirror-linenumbers", "CodeMirror-foldgutter"],
11135
11132
  keyMap: "sublime"
11136
- }, B = Gu(z.value, {
11133
+ }, B = Ku(z.value, {
11137
11134
  value: "",
11138
11135
  mode: b.mode,
11139
11136
  readOnly: b.readonly,
@@ -11153,18 +11150,18 @@ const Qu = /* @__PURE__ */ Pl({
11153
11150
  B.refresh();
11154
11151
  }, 50), V && window.addEventListener(
11155
11152
  "resize",
11156
- Ru(() => {
11153
+ Iu(() => {
11157
11154
  B.refresh();
11158
11155
  })
11159
11156
  );
11160
- }), (re, B) => (Ml(), Iu("div", {
11157
+ }), (re, B) => (Nl(), Eu("div", {
11161
11158
  class: "editor",
11162
11159
  ref_key: "el",
11163
11160
  ref: z
11164
11161
  }, null, 512));
11165
11162
  }
11166
11163
  });
11167
- const ef = /* @__PURE__ */ Pl({
11164
+ const $u = /* @__PURE__ */ Ol({
11168
11165
  editorType: "codemirror",
11169
11166
  __name: "CodeMirrorEditor",
11170
11167
  props: {
@@ -11199,11 +11196,11 @@ const ef = /* @__PURE__ */ Pl({
11199
11196
  typescript: !0
11200
11197
  },
11201
11198
  vue: "htmlmixed"
11202
- }, re = Hu(() => {
11199
+ }, re = Wu(() => {
11203
11200
  const { mode: B, filename: W } = b, K = V[B || W.split(".").pop()];
11204
11201
  return W.lastIndexOf(".") !== -1 && K ? K : V.js;
11205
11202
  });
11206
- return (B, W) => (Ml(), zu(Qu, {
11203
+ return (B, W) => (Nl(), Bu(Zu, {
11207
11204
  onChange: z,
11208
11205
  value: Ie.value,
11209
11206
  mode: re.value
@@ -11211,5 +11208,5 @@ const ef = /* @__PURE__ */ Pl({
11211
11208
  }
11212
11209
  });
11213
11210
  export {
11214
- ef as default
11211
+ $u as default
11215
11212
  };