vue-repl-enhance 1.2.2 → 1.2.3

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 Cl, ref as Lu, inject as Tu, onMounted as Au, watchEffect as pl, onUnmounted as Ou, openBlock as Ll, createElementBlock as Nu, computed as Pu, createBlock as Mu } from "vue";
2
- import { d as Du } from "./chunks/utils-d36bcf61.js";
3
- import { c as Fu, g as Eu } from "./chunks/_commonjsHelpers-c5d32002.js";
1
+ import { defineComponent as Tl, ref as Ou, inject as Nu, onMounted as Pu, watchEffect as pl, onUnmounted as Mu, openBlock as Al, createElementBlock as Du, computed as Fu, createBlock as Eu } from "vue";
2
+ import { d as Wu } from "./chunks/utils-da915bd3.js";
3
+ import { c as Bu, g as Iu } 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
- })(Fu, function() {
9
+ })(Bu, function() {
10
10
  var b = navigator.userAgent, G = navigator.platform, z = /gecko\/\d/i.test(b), V = /MSIE \d/.test(b), ee = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(b), B = /Edge\/(\d+)/.exec(b), D = V || ee || B, K = D && (V ? document.documentMode || 6 : +(B || ee)[1]), T = !B && /WebKit\//.test(b), I = T && /Qt\/\d+\.\d+/.test(b), C = !B && /Chrome\/(\d+)/.exec(b), P = C && +C[1], W = /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 = W && b.match(/Version\/(\d*\.\d*)/);
11
11
  d && (d = Number(d[1])), d && d >= 15 && (W = !1, T = !0);
12
12
  var L = p && (I || W && (d == null || d < 12.11)), F = z || D && 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) : Tl(t, ue(e, t.line).text.length);
668
+ return t.line > n ? R(n, ue(e, n).text.length) : Nl(t, ue(e, t.line).text.length);
669
669
  }
670
- function Tl(e, t) {
670
+ function Nl(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 = Al(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 = Pl(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 Al(e, t, n) {
824
+ function Pl(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 Ol(e, t) {
836
+ function Ml(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 Nl() {
849
+ function Dl() {
850
850
  Co = !0;
851
851
  }
852
- function Pl() {
852
+ function Fl() {
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 Ml(e, t) {
866
+ function El(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 Dl(e, t, n) {
871
+ function Wl(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 Fl(e, t, n) {
875
+ function Bl(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 El(e, t, n) {
887
+ function Il(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 = Fl(n, i, a), s = El(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 = Bl(n, i, a), s = Il(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 E = 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 Wl(e, t, n) {
947
+ function Hl(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 Bl(e, t) {
1011
+ function zl(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 Il(e) {
1037
+ function Rl(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 Hl(e) {
1042
+ function Kl(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 zl(e, t, n, r) {
1127
+ function _l(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 Rl(e) {
1132
+ function Ul(e) {
1133
1133
  e.parent = null, To(e);
1134
1134
  }
1135
- var Kl = {}, _l = {};
1135
+ var Gl = {}, ql = {};
1136
1136
  function Do(e, t) {
1137
1137
  if (!e || /^\s*$/.test(e))
1138
1138
  return null;
1139
- var n = t.addModeClass ? _l : Kl;
1139
+ var n = t.addModeClass ? ql : Gl;
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 = Gl, lr(e.display.measure) && (a = Se(o, e.doc.direction)) && (r.addToken = Xl(r.addToken, a)), r.map = [];
1155
+ r.pos = 0, r.addToken = jl, lr(e.display.measure) && (a = Se(o, e.doc.direction)) && (r.addToken = Zl(r.addToken, a)), r.map = [];
1156
1156
  var l = t != e.display.externalMeasured && h(o);
1157
- jl(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
+ Ql(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 Ul(e) {
1165
+ function Xl(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 Gl(e, t, n, r, i, o, a) {
1169
+ function jl(e, t, n, r, i, o, a) {
1170
1170
  if (t) {
1171
- var l = e.splitSpaces ? ql(t, e.trailingSpace) : t, s = e.cm.state.specialChars, f = !1, y;
1171
+ var l = e.splitSpaces ? Yl(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), D && 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 ql(e, t) {
1208
+ function Yl(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 Xl(e, t) {
1217
+ function Zl(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 jl(e, t, n) {
1233
+ function Ql(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 = Hl(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 = Kl(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 Yl(e) {
1310
+ function Jl(e) {
1311
1311
  Rr ? Rr.ops.push(e) : e.ownsGroup = Rr = {
1312
1312
  ops: [e],
1313
1313
  delayedCallbacks: []
1314
1314
  };
1315
1315
  }
1316
- function Zl(e) {
1316
+ function Vl(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 Ql(e, t) {
1329
+ function $l(e, t) {
1330
1330
  var n = e.ownsGroup;
1331
1331
  if (n)
1332
1332
  try {
1333
- Zl(n);
1333
+ Vl(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(Jl, 0));
1343
+ Rr ? i = Rr.delayedCallbacks : cn ? i = cn : (i = cn = [], setTimeout(es, 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 Jl() {
1352
+ function es() {
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" ? $l(e, t) : o == "gutter" ? Ho(e, t, n, r) : o == "class" ? Ti(e, t) : o == "widget" && es(e, t, r);
1361
+ o == "text" ? rs(e, t) : o == "gutter" ? Ho(e, t, n, r) : o == "class" ? Ti(e, t) : o == "widget" && ns(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), D && K < 8 && (e.node.style.zIndex = 2)), e.node;
1367
1367
  }
1368
- function Vl(e, t) {
1368
+ function ts(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 $l(e, t) {
1381
+ function rs(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
- Vl(e, t), t.line.wrapClass ? hn(t).className = t.line.wrapClass : t.node != t.text && (t.node.className = "");
1386
+ ts(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 es(e, t, n) {
1422
+ function ns(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 ts(e, t, n, r) {
1428
+ function is(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"), rs(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"), os(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 rs(e, t, n, r) {
1444
+ function os(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 ns(e, t, n) {
1490
+ function as(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 is(e, t) {
1516
+ function ls(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 = is(e, t));
1535
+ r && !r.text ? r = null : r && r.changes && (Bo(e, r, n, Ei(e)), e.curOp.forceUpdate = !0), r || (r = ls(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 || (ns(e, t.view, t.rect), t.hasHeights = !0), a = as(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 || (as(e, t.view, t.rect), t.hasHeights = !0), a = us(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 os(e, t) {
1571
+ function ss(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 as(e, t, n, r) {
1581
+ function us(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 (D && K < 9 && a == 0 && l == i.coverEnd - i.coverStart ? f = o.parentNode.getBoundingClientRect() : f = os(j(o, a, l).getClientRects(), r), f.left || f.right || a == 0)
1589
+ if (D && K < 9 && a == 0 && l == i.coverEnd - i.coverStart ? f = o.parentNode.getBoundingClientRect() : f = ss(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
- D && K < 11 && (f = ls(e.display.measure, f));
1593
+ D && K < 11 && (f = fs(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 ls(e, t) {
1613
+ function fs(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 = ss(e, a, i, t, n), s = Bl(a, l.ch + (l.xRel > 0 || l.outside > 0 ? 1 : 0));
1718
+ var l = cs(e, a, i, t, n), s = zl(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 ss(e, t, n, r, i) {
1744
+ function cs(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 ? fs : us)(e, t, n, o, y, r, i);
1748
+ var k = (e.options.lineWrapping ? ds : hs)(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 E = 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, te, ie, r - Q);
1764
1764
  }
1765
- function us(e, t, n, r, i, o, a) {
1765
+ function hs(e, t, n, r, i, o, a) {
1766
1766
  var l = Kt(function(k) {
1767
1767
  var E = i[k], N = E.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 fs(e, t, n, r, i, o, a) {
1788
+ function ds(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, E = 0; E < i.length; E++) {
@@ -1936,7 +1936,7 @@ b`.split(/\n/).length != 3 ? function(e) {
1936
1936
  }
1937
1937
  return { index: i, lineN: n };
1938
1938
  }
1939
- function cs(e, t, n) {
1939
+ function ps(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 || hs(e, s, o);
1967
+ f || vs(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 hs(e, t, n) {
1986
+ function vs(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 ds(e, t) {
2092
+ function gs(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 ps(e, t, n, r) {
2104
+ function ms(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 vs(e, t) {
2122
+ function ys(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 gs(e, t) {
2152
+ function bs(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 ms = 0;
2269
+ var xs = 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: ++ms,
2299
+ id: ++xs,
2300
2300
  // Unique ID
2301
2301
  markArrays: null
2302
2302
  // Used by addMarkedSpan
2303
- }, Yl(e.curOp);
2303
+ }, Jl(e.curOp);
2304
2304
  }
2305
2305
  function Or(e) {
2306
2306
  var t = e.curOp;
2307
- t && Ql(t, function(n) {
2307
+ t && $l(t, function(n) {
2308
2308
  for (var r = 0; r < n.ops.length; r++)
2309
2309
  n.ops[r].cm.curOp = null;
2310
- ys(n);
2310
+ ks(n);
2311
2311
  });
2312
2312
  }
2313
- function ys(e) {
2313
+ function ks(e) {
2314
2314
  for (var t = e.ops, n = 0; n < t.length; n++)
2315
- bs(t[n]);
2315
+ ws(t[n]);
2316
2316
  for (var r = 0; r < t.length; r++)
2317
- xs(t[r]);
2317
+ Ss(t[r]);
2318
2318
  for (var i = 0; i < t.length; i++)
2319
- ks(t[i]);
2319
+ Cs(t[i]);
2320
2320
  for (var o = 0; o < t.length; o++)
2321
- ws(t[o]);
2321
+ Ls(t[o]);
2322
2322
  for (var a = 0; a < t.length; a++)
2323
- Ss(t[a]);
2323
+ Ts(t[a]);
2324
2324
  }
2325
- function bs(e) {
2325
+ function ws(e) {
2326
2326
  var t = e.cm, n = t.display;
2327
- Ls(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
+ Os(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 xs(e) {
2329
+ function Ss(e) {
2330
2330
  e.updatedDisplay = e.mustUpdate && Ui(e.cm, e.update);
2331
2331
  }
2332
- function ks(e) {
2332
+ function Cs(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 ws(e) {
2336
+ function Ls(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 Ss(e) {
2342
+ function Ts(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 = ps(
2345
+ var i = ms(
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
- ds(t, i);
2351
+ gs(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(Cs, e));
2410
+ e.doc.highlightFrontier < e.display.viewTo && e.state.highlight.set(t, ge(As, e));
2411
2411
  }
2412
- function Cs(e) {
2412
+ function As(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 Ls(e) {
2445
+ function Os(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 Ts(e) {
2449
+ function Ns(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 As(e) {
2462
+ function Ps(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
- cs(e, o, a), n.viewOffset = Vt(ue(e.doc, n.viewFrom)), e.display.mover.style.top = n.viewOffset + "px";
2478
+ ps(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 = Ts(e);
2483
- return s > 4 && (n.lineDiv.style.display = "none"), Os(e, n.updateLineNumbers, t.dims), s > 4 && (n.lineDiv.style.display = ""), n.renderedView = n.view, As(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 = Ns(e);
2483
+ return s > 4 && (n.lineDiv.style.display = "none"), Ms(e, n.updateLineNumbers, t.dims), s > 4 && (n.lineDiv.style.display = ""), n.renderedView = n.view, Ps(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 Os(e, t, n) {
2508
+ function Ms(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 E = ts(e, k, f, n);
2518
+ var E = is(e, k, f, n);
2519
2519
  o.insertBefore(E, 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 Ns(e, t, n, r) {
2590
+ function Ds(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 Ps(e) {
2607
+ function Fs(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 Ms(e, t, n) {
2732
+ function Es(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
- zl(le, oe, se, r), Ve(le, "change", le, t);
2759
+ _l(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 Ds(e) {
2809
+ function Ws(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 Fs(e, t) {
2832
+ function Bs(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 = Fs(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 = Bs(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 Es(e, t, n, r) {
2856
+ function Is(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 Ws(e, t, n, r) {
2860
+ function Hs(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 || Es(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 || Is(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 Bs(e) {
2874
+ function zs(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 Is(e, t) {
2881
+ function Rs(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(Bs(n[i]));
2886
+ r.push(zs(n[i]));
2887
2887
  return r;
2888
2888
  }
2889
2889
  function Ca(e, t) {
2890
- var n = Is(e, t), r = ki(e, t);
2890
+ var n = Rs(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 Hs(e, t, n) {
2955
+ function Ks(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), Ws(e, e.sel, e.cm ? e.cm.curOp.id : NaN, n);
2975
+ ai(e, t, n), Hs(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 = Hs(e, t, n));
2978
+ (wt(e, "beforeSelectionChange") || e.cm && wt(e.cm, "beforeSelectionChange")) && (t = Ks(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 && Wl(e, t.from, t.to);
3053
+ var r = Co && !n && Hl(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 ? zs(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 ? _s(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 zs(e, t, n) {
3148
+ function _s(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)), Ol(r, o.line), xn(e, 400);
3156
+ }), l && (e.curOp.updateMaxLine = !0)), Ml(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, Rl(i), Ve(i, "delete");
3222
+ this.height -= i.height, Ul(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 Rs(e, t, n, r) {
3356
+ function Us(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 = Ml(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 = El(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 Ks(e, t, n, r, i);
3424
+ return Gs(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
- Pl();
3433
+ Fl();
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), Dl(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), Wl(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 && (Nl(), (e.history.done.length || e.history.undone.length) && e.clearHistory()), o.collapsed && (o.id = ++Ra, o.atomic = !0), s) {
3447
+ }), o.readOnly && (Dl(), (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 Ks(e, t, n, r, i) {
3472
+ function Gs(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 _s(e, t) {
3488
+ function qs(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 Us(e) {
3497
+ function Xs(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 Gs = 0, yt = function(e, t, n, r, i) {
3510
+ var js = 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 = ++Gs, 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 = ++js, 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" && Ms(this, r, t), s = r.length - 1; s >= 0; s--)
3648
+ for (var l = t && t != "end" && Es(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 Rs(this, e, t, n);
3766
+ return Us(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 }], _s(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 }], qs(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), Us(Ka(this));
3857
+ this.linked.splice(t, 1), e.unlinkDoc(this), Xs(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 && Ds(this.cm));
3887
+ }), this.cm && Ws(this.cm));
3888
3888
  })
3889
3889
  }), yt.prototype.eachLine = yt.prototype.iter;
3890
3890
  var _a = 0;
3891
- function qs(e) {
3891
+ function Ys(e) {
3892
3892
  var t = this;
3893
3893
  if (Ua(t), !(Re(t, e) || $t(t.display, e))) {
3894
3894
  st(e), D && (_a = +/* @__PURE__ */ new Date());
@@ -3949,7 +3949,7 @@ b`.split(/\n/).length != 3 ? function(e) {
3949
3949
  }
3950
3950
  }
3951
3951
  }
3952
- function Xs(e, t) {
3952
+ function Zs(e, t) {
3953
3953
  if (D && (!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==", W && (n.width = n.height = 1, e.display.wrapper.appendChild(n), n._top = n.offsetTop), t.dataTransfer.setDragImage(n, 0, 0), W && n.parentNode.removeChild(n);
3960
3960
  }
3961
3961
  }
3962
- function js(e, t) {
3962
+ function Qs(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 Ys() {
3986
- qa || (Zs(), qa = !0);
3985
+ function Js() {
3986
+ qa || (Vs(), qa = !0);
3987
3987
  }
3988
- function Zs() {
3988
+ function Vs() {
3989
3989
  var e;
3990
3990
  pe(window, "resize", function() {
3991
3991
  e == null && (e = setTimeout(function() {
3992
- e = null, Ga(Qs);
3992
+ e = null, Ga($s);
3993
3993
  }, 100));
3994
3994
  }), pe(window, "blur", function() {
3995
3995
  return Ga(Gr);
3996
3996
  });
3997
3997
  }
3998
- function Qs(e) {
3998
+ function $s(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 Js(e) {
4159
+ function eu(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 Vs(e) {
4177
+ function tu(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(" "), Js), o = 0; o < i.length; o++) {
4188
+ for (var i = De(n.split(" "), eu), 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 $s(e, t, n, r) {
4284
+ function ru(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 eu(e, t.head.line);
4397
+ return nu(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 eu(e, t) {
4554
- var n = ue(e.doc, t), r = Il(n);
4553
+ function nu(e, t) {
4554
+ var n = ue(e.doc, t), r = Rl(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 tu(e, t, n) {
4577
+ function iu(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 ru = new be();
4585
+ var ou = 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 : ru.set(50, function() {
4591
+ if (/\'$/.test(t) ? e.state.keySeq = null : ou.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 = tu(e, t, r);
4599
+ var i = iu(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 nu(e, t, n) {
4613
+ function au(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
- W && (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) && iu(t);
4626
+ W && (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) && lu(t);
4627
4627
  }
4628
4628
  }
4629
- function iu(e) {
4629
+ function lu(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 (!(W && (!e.which || e.which < 10) && Va(t, e))) {
4649
4649
  var i = String.fromCharCode(r == null ? n : r);
4650
- i != "\b" && (nu(t, e, i) || t.display.input.onKeyPress(e));
4650
+ i != "\b" && (au(t, e, i) || t.display.input.onKeyPress(e));
4651
4651
  }
4652
4652
  }
4653
4653
  }
4654
- var ou = 400, io = function(e, t, n) {
4654
+ var su = 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 + ou > e && ae(t, this.pos) == 0 && n == this.button;
4658
+ return this.time + su > e && ae(t, this.pos) == 0 && n == this.button;
4659
4659
  };
4660
4660
  var Fn, En;
4661
- function au(e, t) {
4661
+ function uu(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 ? au(r, i) : "single";
4676
- me(t).focus(), i == 1 && t.state.selectingText && t.state.selectingText(e), !(r && lu(t, i, r, o, e)) && (i == 1 ? r ? uu(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 ? uu(r, i) : "single";
4676
+ me(t).focus(), i == 1 && t.state.selectingText && t.state.selectingText(e), !(r && fu(t, i, r, o, e)) && (i == 1 ? r ? hu(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 && (F ? t.display.input.onContextMenu(e) : zi(t)));
4679
4679
  }
4680
4680
  }
4681
4681
  }
4682
- function lu(e, t, n, r, i) {
4682
+ function fu(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 su(e, t, n) {
4696
+ function cu(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 uu(e, t, n, r) {
4704
+ function hu(e, t, n, r) {
4705
4705
  D ? setTimeout(ge(na, e), 0) : e.curOp.focus = fe(Ge(e));
4706
- var i = su(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) ? fu(e, r, t, i) : cu(e, r, t, i);
4706
+ var i = cu(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) ? du(e, r, t, i) : pu(e, r, t, i);
4708
4708
  }
4709
- function fu(e, t, n, r) {
4709
+ function du(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 || D && 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 cu(e, t, n, r) {
4733
+ function pu(e, t, n, r) {
4734
4734
  D && 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] = hu(e, new Ne(ye(o, Qe), Ze)), ut(o, zt(e, _e, l), Lt);
4770
+ _e[l] = vu(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, te);
4796
4796
  e.state.selectingText = le, pe(i.wrapper.ownerDocument, "mousemove", ie), pe(i.wrapper.ownerDocument, "mouseup", le);
4797
4797
  }
4798
- function hu(e, t) {
4798
+ function vu(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) || du(e, t) || Re(e, t, "contextmenu") || F || e.display.input.onContextMenu(t);
4850
+ $t(e.display, t) || gu(e, t) || Re(e, t, "contextmenu") || F || e.display.input.onContextMenu(t);
4851
4851
  }
4852
- function du(e, t) {
4852
+ function gu(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 pu(e) {
4861
+ function mu(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", Ul, function(r) {
4891
+ }), n("specialCharPlaceholder", Xl, 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, gu, !0), n("gutters", [], function(r, i) {
4906
+ }), n("extraKeys", null), n("configureMouse", null), n("lineWrapping", !1, bu, !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, vu), 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, yu), 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 vu(e, t, n) {
4936
+ function yu(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 gu(e) {
4943
+ function bu(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 Ns(e, r, i, t);
4955
+ var i = new Be.inputStyles[t.inputStyle](this), o = this.display = new Ds(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(), D && K < 11 && setTimeout(function() {
4979
4979
  return n.display.input.reset(!0);
4980
- }, 20), mu(this), Ys(), Ar(this), this.curOp.forceUpdate = !0, ba(this, r), t.autofocus && !u || this.hasFocus() ? setTimeout(function() {
4980
+ }, 20), xu(this), Js(), 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 mu(e) {
4991
+ function xu(e) {
4992
4992
  var t = e.display;
4993
4993
  pe(t.scroller, "mousedown", $e(e, rl)), D && 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) || (js(e, s), ar(s));
5059
+ Re(e, s) || (Qs(e, s), ar(s));
5060
5060
  },
5061
5061
  start: function(s) {
5062
- return Xs(e, s);
5062
+ return Zs(e, s);
5063
5063
  },
5064
- drop: $e(e, qs),
5064
+ drop: $e(e, Ys),
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 yu(e) {
5185
+ function ku(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), E = 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 > E && (y = E - 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 && vs(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 && ys(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 ? gs(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 ? bs(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 = $s(e.cm, l, t, n) : oe = to(l, t, n);
5528
+ i ? oe = ru(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 && bu(e.anchorNode)) {
5709
+ if (g && C && this.cm.display.gutterSpecs.length && wu(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(xu(e, l, y, a, f)), E = Qt(e.doc, R(a, 0), R(f, ue(e.doc, f).text.length)); k.length > 1 && E.length > 1; )
5731
+ for (var k = e.doc.splitLines(Su(e, l, y, a, f)), E = Qt(e.doc, R(a, 0), R(f, ue(e.doc, f).text.length)); k.length > 1 && E.length > 1; )
5732
5732
  if (Ce(k) == Ce(E))
5733
5733
  k.pop(), E.pop(), f--;
5734
5734
  else if (k[0] == E[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 bu(e) {
5794
+ function wu(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 xu(e, t, n, r, i) {
5803
+ function Su(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 ku(o, t, n);
5861
+ return Cu(o, t, n);
5862
5862
  }
5863
5863
  }
5864
- function ku(e, t, n) {
5864
+ function Cu(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 wu(e, t) {
6083
+ function Lu(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 Su(e) {
6118
- e.off = lt, e.on = pe, e.wheelEventPixels = Ps, 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 = Vs, 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 Tu(e) {
6118
+ e.off = lt, e.on = pe, e.wheelEventPixels = Fs, 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 = tu, 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
- pu(Be), yu(Be);
6121
- var Cu = "iter insert remove copy getEditor constructor".split(" ");
6120
+ mu(Be), ku(Be);
6121
+ var Au = "iter insert remove copy getEditor constructor".split(" ");
6122
6122
  for (var vi in yt.prototype)
6123
- yt.prototype.hasOwnProperty(vi) && he(Cu, vi) < 0 && (Be.prototype[vi] = function(e) {
6123
+ yt.prototype.hasOwnProperty(vi) && he(Au, vi) < 0 && (Be.prototype[vi] = function(e) {
6124
6124
  return function() {
6125
6125
  return e.apply(this.doc, arguments);
6126
6126
  };
@@ -6135,13 +6135,13 @@ 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 = wu, Su(Be), Be.version = "5.65.18", Be;
6138
+ }, Be.fromTextArea = Lu, Tu(Be), Be.version = "5.65.18", Be;
6139
6139
  });
6140
6140
  }(ho)), ho.exports;
6141
6141
  }
6142
- var Wu = nt();
6143
- const Bu = /* @__PURE__ */ Eu(Wu);
6144
- var Iu = { exports: {} };
6142
+ var Hu = nt();
6143
+ const zu = /* @__PURE__ */ Iu(Hu);
6144
+ var Ru = { exports: {} };
6145
6145
  (function(Ie, Ue) {
6146
6146
  (function(b) {
6147
6147
  b(nt());
@@ -6910,7 +6910,7 @@ var Iu = { exports: {} };
6910
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
6911
  });
6912
6912
  })();
6913
- var Hu = Iu.exports, zu = { exports: {} };
6913
+ var Ku = Ru.exports, _u = { exports: {} };
6914
6914
  (function(Ie, Ue) {
6915
6915
  (function(b) {
6916
6916
  b(nt());
@@ -8480,8 +8480,8 @@ var Hu = Iu.exports, zu = { exports: {} };
8480
8480
  });
8481
8481
  });
8482
8482
  })();
8483
- var Ru = zu.exports, gl = { exports: {} }, ml;
8484
- function Ku() {
8483
+ var Uu = _u.exports, gl = { exports: {} }, ml;
8484
+ function Gu() {
8485
8485
  return ml || (ml = 1, function(Ie, Ue) {
8486
8486
  (function(b) {
8487
8487
  b(nt());
@@ -8780,7 +8780,7 @@ function Ku() {
8780
8780
  }
8781
8781
  (function(Ie, Ue) {
8782
8782
  (function(b) {
8783
- b(nt(), Ku(), Hu, Ru);
8783
+ b(nt(), Gu(), Ku, Uu);
8784
8784
  })(function(b) {
8785
8785
  var G = {
8786
8786
  script: [
@@ -9030,7 +9030,7 @@ function Ku() {
9030
9030
  });
9031
9031
  })();
9032
9032
  var yl = { exports: {} }, bl;
9033
- function _u() {
9033
+ function qu() {
9034
9034
  return bl || (bl = 1, function(Ie, Ue) {
9035
9035
  (function(b) {
9036
9036
  b(nt());
@@ -9212,7 +9212,7 @@ function _u() {
9212
9212
  }
9213
9213
  (function(Ie, Ue) {
9214
9214
  (function(b) {
9215
- b(nt(), _u());
9215
+ b(nt(), qu());
9216
9216
  })(function(b) {
9217
9217
  b.defineOption("autoCloseTags", !1, function(T, I, C) {
9218
9218
  if (C != b.Init && C && T.removeKeyMap("autoCloseTags"), !!I) {
@@ -9491,7 +9491,7 @@ function _u() {
9491
9491
  });
9492
9492
  });
9493
9493
  })();
9494
- var Uu = { exports: {} };
9494
+ var Xu = { exports: {} };
9495
9495
  (function(Ie, Ue) {
9496
9496
  (function(b) {
9497
9497
  b(nt());
@@ -9607,10 +9607,10 @@ var Uu = { exports: {} };
9607
9607
  });
9608
9608
  });
9609
9609
  })();
9610
- var Gu = Uu.exports;
9610
+ var ju = Xu.exports;
9611
9611
  (function(Ie, Ue) {
9612
9612
  (function(b) {
9613
- b(nt(), Gu);
9613
+ b(nt(), ju);
9614
9614
  })(function(b) {
9615
9615
  b.defineOption("foldGutter", !1, function(M, S, v) {
9616
9616
  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", W), 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", W), M.on("fold", J), M.on("unfold", J), M.on("swapDoc", P), M.on("optionChange", C));
@@ -10151,79 +10151,80 @@ function po() {
10151
10151
  });
10152
10152
  }()), xl.exports;
10153
10153
  }
10154
- var qu = { exports: {} };
10155
- (function(Ie, Ue) {
10156
- (function(b) {
10157
- b(nt());
10158
- })(function(b) {
10159
- function G(V, ee, B) {
10160
- var D = V.getWrapperElement(), K;
10161
- return K = D.appendChild(document.createElement("div")), B ? K.className = "CodeMirror-dialog CodeMirror-dialog-bottom" : K.className = "CodeMirror-dialog CodeMirror-dialog-top", typeof ee == "string" ? K.innerHTML = ee : K.appendChild(ee), b.addClass(D, "dialog-opened"), K;
10162
- }
10163
- function z(V, ee) {
10164
- V.state.currentNotificationClose && V.state.currentNotificationClose(), V.state.currentNotificationClose = ee;
10165
- }
10166
- b.defineExtension("openDialog", function(V, ee, B) {
10167
- B || (B = {}), z(this, null);
10168
- var D = G(this, V, B.bottom), K = !1, T = this;
10169
- function I(W) {
10170
- if (typeof W == "string")
10171
- C.value = W;
10172
- else {
10173
- if (K)
10174
- return;
10175
- K = !0, b.rmClass(D.parentNode, "dialog-opened"), D.parentNode.removeChild(D), T.focus(), B.onClose && B.onClose(D);
10176
- }
10177
- }
10178
- var C = D.getElementsByTagName("input")[0], P;
10179
- return C ? (C.focus(), B.value && (C.value = B.value, B.selectValueOnOpen !== !1 && C.select()), B.onInput && b.on(C, "input", function(W) {
10180
- B.onInput(W, C.value, I);
10181
- }), B.onKeyUp && b.on(C, "keyup", function(W) {
10182
- B.onKeyUp(W, C.value, I);
10183
- }), b.on(C, "keydown", function(W) {
10184
- B && B.onKeyDown && B.onKeyDown(W, C.value, I) || ((W.keyCode == 27 || B.closeOnEnter !== !1 && W.keyCode == 13) && (C.blur(), b.e_stop(W), I()), W.keyCode == 13 && ee(C.value, W));
10185
- }), B.closeOnBlur !== !1 && b.on(D, "focusout", function(W) {
10186
- W.relatedTarget !== null && I();
10187
- })) : (P = D.getElementsByTagName("button")[0]) && (b.on(P, "click", function() {
10188
- I(), T.focus();
10189
- }), B.closeOnBlur !== !1 && b.on(P, "blur", I), P.focus()), I;
10190
- }), b.defineExtension("openConfirm", function(V, ee, B) {
10191
- z(this, null);
10192
- var D = G(this, V, B && B.bottom), K = D.getElementsByTagName("button"), T = !1, I = this, C = 1;
10193
- function P() {
10194
- T || (T = !0, b.rmClass(D.parentNode, "dialog-opened"), D.parentNode.removeChild(D), I.focus());
10195
- }
10196
- K[0].focus();
10197
- for (var W = 0; W < K.length; ++W) {
10198
- var J = K[W];
10199
- (function(M) {
10200
- b.on(J, "click", function(S) {
10201
- b.e_preventDefault(S), P(), M && M(I);
10154
+ var wl = { exports: {} }, Sl;
10155
+ function Ol() {
10156
+ return Sl || (Sl = 1, function(Ie, Ue) {
10157
+ (function(b) {
10158
+ b(nt());
10159
+ })(function(b) {
10160
+ function G(V, ee, B) {
10161
+ var D = V.getWrapperElement(), K;
10162
+ return K = D.appendChild(document.createElement("div")), B ? K.className = "CodeMirror-dialog CodeMirror-dialog-bottom" : K.className = "CodeMirror-dialog CodeMirror-dialog-top", typeof ee == "string" ? K.innerHTML = ee : K.appendChild(ee), b.addClass(D, "dialog-opened"), K;
10163
+ }
10164
+ function z(V, ee) {
10165
+ V.state.currentNotificationClose && V.state.currentNotificationClose(), V.state.currentNotificationClose = ee;
10166
+ }
10167
+ b.defineExtension("openDialog", function(V, ee, B) {
10168
+ B || (B = {}), z(this, null);
10169
+ var D = G(this, V, B.bottom), K = !1, T = this;
10170
+ function I(W) {
10171
+ if (typeof W == "string")
10172
+ C.value = W;
10173
+ else {
10174
+ if (K)
10175
+ return;
10176
+ K = !0, b.rmClass(D.parentNode, "dialog-opened"), D.parentNode.removeChild(D), T.focus(), B.onClose && B.onClose(D);
10177
+ }
10178
+ }
10179
+ var C = D.getElementsByTagName("input")[0], P;
10180
+ return C ? (C.focus(), B.value && (C.value = B.value, B.selectValueOnOpen !== !1 && C.select()), B.onInput && b.on(C, "input", function(W) {
10181
+ B.onInput(W, C.value, I);
10182
+ }), B.onKeyUp && b.on(C, "keyup", function(W) {
10183
+ B.onKeyUp(W, C.value, I);
10184
+ }), b.on(C, "keydown", function(W) {
10185
+ B && B.onKeyDown && B.onKeyDown(W, C.value, I) || ((W.keyCode == 27 || B.closeOnEnter !== !1 && W.keyCode == 13) && (C.blur(), b.e_stop(W), I()), W.keyCode == 13 && ee(C.value, W));
10186
+ }), B.closeOnBlur !== !1 && b.on(D, "focusout", function(W) {
10187
+ W.relatedTarget !== null && I();
10188
+ })) : (P = D.getElementsByTagName("button")[0]) && (b.on(P, "click", function() {
10189
+ I(), T.focus();
10190
+ }), B.closeOnBlur !== !1 && b.on(P, "blur", I), P.focus()), I;
10191
+ }), b.defineExtension("openConfirm", function(V, ee, B) {
10192
+ z(this, null);
10193
+ var D = G(this, V, B && B.bottom), K = D.getElementsByTagName("button"), T = !1, I = this, C = 1;
10194
+ function P() {
10195
+ T || (T = !0, b.rmClass(D.parentNode, "dialog-opened"), D.parentNode.removeChild(D), I.focus());
10196
+ }
10197
+ K[0].focus();
10198
+ for (var W = 0; W < K.length; ++W) {
10199
+ var J = K[W];
10200
+ (function(M) {
10201
+ b.on(J, "click", function(S) {
10202
+ b.e_preventDefault(S), P(), M && M(I);
10203
+ });
10204
+ })(ee[W]), b.on(J, "blur", function() {
10205
+ --C, setTimeout(function() {
10206
+ C <= 0 && P();
10207
+ }, 200);
10208
+ }), b.on(J, "focus", function() {
10209
+ ++C;
10202
10210
  });
10203
- })(ee[W]), b.on(J, "blur", function() {
10204
- --C, setTimeout(function() {
10205
- C <= 0 && P();
10206
- }, 200);
10207
- }), b.on(J, "focus", function() {
10208
- ++C;
10209
- });
10210
- }
10211
- }), b.defineExtension("openNotification", function(V, ee) {
10212
- z(this, I);
10213
- var B = G(this, V, ee && ee.bottom), D = !1, K, T = ee && typeof ee.duration < "u" ? ee.duration : 5e3;
10214
- function I() {
10215
- D || (D = !0, clearTimeout(K), b.rmClass(B.parentNode, "dialog-opened"), B.parentNode.removeChild(B));
10216
- }
10217
- return b.on(B, "click", function(C) {
10218
- b.e_preventDefault(C), I();
10219
- }), T && (K = setTimeout(I, T)), I;
10211
+ }
10212
+ }), b.defineExtension("openNotification", function(V, ee) {
10213
+ z(this, I);
10214
+ var B = G(this, V, ee && ee.bottom), D = !1, K, T = ee && typeof ee.duration < "u" ? ee.duration : 5e3;
10215
+ function I() {
10216
+ D || (D = !0, clearTimeout(K), b.rmClass(B.parentNode, "dialog-opened"), B.parentNode.removeChild(B));
10217
+ }
10218
+ return b.on(B, "click", function(C) {
10219
+ b.e_preventDefault(C), I();
10220
+ }), T && (K = setTimeout(I, T)), I;
10221
+ });
10220
10222
  });
10221
- });
10222
- })();
10223
- var Xu = qu.exports;
10223
+ }()), wl.exports;
10224
+ }
10224
10225
  (function(Ie, Ue) {
10225
10226
  (function(b) {
10226
- b(nt(), po(), Xu);
10227
+ b(nt(), po(), Ol());
10227
10228
  })(function(b) {
10228
10229
  b.defineOption("search", { bottom: !1 });
10229
10230
  function G(d, L) {
@@ -10461,9 +10462,10 @@ var Xu = qu.exports;
10461
10462
  });
10462
10463
  })();
10463
10464
  po();
10464
- var wl = { exports: {} }, Sl;
10465
- function ju() {
10466
- return Sl || (Sl = 1, function(Ie, Ue) {
10465
+ Ol();
10466
+ var Cl = { exports: {} }, Ll;
10467
+ function Yu() {
10468
+ return Ll || (Ll = 1, function(Ie, Ue) {
10467
10469
  (function(b) {
10468
10470
  b(nt());
10469
10471
  })(function(b) {
@@ -10550,11 +10552,11 @@ function ju() {
10550
10552
  return D(this, C, P, W, J);
10551
10553
  });
10552
10554
  });
10553
- }()), wl.exports;
10555
+ }()), Cl.exports;
10554
10556
  }
10555
10557
  (function(Ie, Ue) {
10556
10558
  (function(b) {
10557
- b(nt(), po(), ju());
10559
+ b(nt(), po(), Yu());
10558
10560
  })(function(b) {
10559
10561
  var G = b.commands, z = b.Pos;
10560
10562
  function V(u, p, m) {
@@ -11108,7 +11110,7 @@ function ju() {
11108
11110
  v.sublime = g ? v.macSublime : v.pcSublime;
11109
11111
  });
11110
11112
  })();
11111
- const Yu = /* @__PURE__ */ Cl({
11113
+ const Zu = /* @__PURE__ */ Tl({
11112
11114
  __name: "CodeMirror",
11113
11115
  props: {
11114
11116
  mode: { default: "htmlmixed" },
@@ -11117,16 +11119,16 @@ const Yu = /* @__PURE__ */ Cl({
11117
11119
  },
11118
11120
  emits: ["change"],
11119
11121
  setup(Ie, { emit: Ue }) {
11120
- const b = Ie, G = Ue, z = Lu(), V = Tu("autoresize");
11122
+ const b = Ie, G = Ue, z = Ou(), V = Nu("autoresize");
11121
11123
  let ee;
11122
- return Au(() => {
11124
+ return Pu(() => {
11123
11125
  const B = b.readonly ? {} : {
11124
11126
  autoCloseBrackets: !0,
11125
11127
  autoCloseTags: !0,
11126
11128
  foldGutter: !0,
11127
11129
  gutters: ["CodeMirror-linenumbers", "CodeMirror-foldgutter"],
11128
11130
  keyMap: "sublime"
11129
- }, D = Bu(z.value, {
11131
+ }, D = zu(z.value, {
11130
11132
  value: "",
11131
11133
  mode: b.mode,
11132
11134
  readOnly: b.readonly,
@@ -11145,22 +11147,22 @@ const Yu = /* @__PURE__ */ Cl({
11145
11147
  }), setTimeout(() => {
11146
11148
  D.refresh();
11147
11149
  }, 50), V) {
11148
- const T = Du(() => {
11150
+ const T = Wu(() => {
11149
11151
  D.refresh();
11150
11152
  });
11151
11153
  window.addEventListener("resize", T), ee = () => window.removeEventListener("resize", T);
11152
11154
  }
11153
- Ou(() => {
11155
+ Mu(() => {
11154
11156
  D.off("change", K), ee == null || ee(), ee = void 0;
11155
11157
  });
11156
- }), (B, D) => (Ll(), Nu("div", {
11158
+ }), (B, D) => (Al(), Du("div", {
11157
11159
  class: "editor",
11158
11160
  ref_key: "el",
11159
11161
  ref: z
11160
11162
  }, null, 512));
11161
11163
  }
11162
11164
  });
11163
- const Vu = /* @__PURE__ */ Cl({
11165
+ const $u = /* @__PURE__ */ Tl({
11164
11166
  editorType: "codemirror",
11165
11167
  __name: "CodeMirrorEditor",
11166
11168
  props: {
@@ -11195,11 +11197,11 @@ const Vu = /* @__PURE__ */ Cl({
11195
11197
  typescript: !0
11196
11198
  },
11197
11199
  vue: "htmlmixed"
11198
- }, ee = Pu(() => {
11200
+ }, ee = Fu(() => {
11199
11201
  const { mode: B, filename: D } = b, K = V[B || D.split(".").pop()];
11200
11202
  return D.lastIndexOf(".") !== -1 && K ? K : V.js;
11201
11203
  });
11202
- return (B, D) => (Ll(), Mu(Yu, {
11204
+ return (B, D) => (Al(), Eu(Zu, {
11203
11205
  onChange: z,
11204
11206
  value: Ie.value,
11205
11207
  mode: ee.value
@@ -11207,5 +11209,5 @@ const Vu = /* @__PURE__ */ Cl({
11207
11209
  }
11208
11210
  });
11209
11211
  export {
11210
- Vu as default
11212
+ $u as default
11211
11213
  };