@langsword/trace 0.1.24 → 0.1.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/trace.es.js CHANGED
@@ -1,20 +1,20 @@
1
- var qd = Object.defineProperty;
1
+ var Vd = Object.defineProperty;
2
2
  var su = (l) => {
3
3
  throw TypeError(l);
4
4
  };
5
- var Gd = (l, n, r) => n in l ? qd(l, n, { enumerable: !0, configurable: !0, writable: !0, value: r }) : l[n] = r;
6
- var Xe = (l, n, r) => Gd(l, typeof n != "symbol" ? n + "" : n, r), Kd = (l, n, r) => n.has(l) || su("Cannot " + r);
5
+ var Xd = (l, n, r) => n in l ? Vd(l, n, { enumerable: !0, configurable: !0, writable: !0, value: r }) : l[n] = r;
6
+ var Xe = (l, n, r) => Xd(l, typeof n != "symbol" ? n + "" : n, r), Yd = (l, n, r) => n.has(l) || su("Cannot " + r);
7
7
  var ou = (l, n, r) => n.has(l) ? su("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(l) : n.set(l, r);
8
- var ga = (l, n, r) => (Kd(l, n, "access private method"), r);
9
- import { defineStore as Vd } from "pinia";
10
- import Xd from "axios";
11
- import Yd from "vue";
12
- var rc = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Ds = { exports: {} }, lu;
8
+ var ga = (l, n, r) => (Yd(l, n, "access private method"), r);
9
+ import { defineStore as Jd } from "pinia";
10
+ import Qd from "axios";
11
+ import Zd from "vue";
12
+ var ac = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Ds = { exports: {} }, lu;
13
13
  function Vt() {
14
14
  return lu || (lu = 1, function(l, n) {
15
15
  (function(r, o) {
16
16
  l.exports = o();
17
- })(rc, function() {
17
+ })(ac, function() {
18
18
  var r = navigator.userAgent, o = navigator.platform, u = /gecko\/\d/i.test(r), f = /MSIE \d/.test(r), p = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(r), y = /Edge\/(\d+)/.exec(r), m = f || p || y, k = m && (f ? document.documentMode || 6 : +(y || p)[1]), S = !y && /WebKit\//.test(r), R = S && /Qt\/\d+\.\d+/.test(r), L = !y && /Chrome\/(\d+)/.exec(r), W = L && +L[1], z = /Opera\//.test(r), D = /Apple Computer/.test(navigator.vendor), $ = /Mac OS X 1\d\D([8-9]|\d\d)\D/.test(r), I = /PhantomJS/.test(r), N = D && (/Mobile\/\w+/.test(r) || navigator.maxTouchPoints > 2), H = /Android/.test(r), V = N || H || /webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(r), ne = N || /Mac/.test(o), ue = /\bCrOS\b/.test(r), se = /win/i.test(o), de = z && r.match(/Version\/(\d*\.\d*)/);
19
19
  de && (de = Number(de[1])), de && de >= 15 && (z = !1, S = !0);
20
20
  var De = ne && (R || z && (de == null || de < 12.11)), Fe = u || m && k >= 9;
@@ -672,9 +672,9 @@ b`.split(/\n/).length != 3 ? function(e) {
672
672
  if (t.line < e.first)
673
673
  return P(e.first, 0);
674
674
  var a = e.first + e.size - 1;
675
- return t.line > a ? P(a, ce(e, a).text.length) : qc(t, ce(e, t.line).text.length);
675
+ return t.line > a ? P(a, ce(e, a).text.length) : Vc(t, ce(e, t.line).text.length);
676
676
  }
677
- function qc(e, t) {
677
+ function Vc(e, t) {
678
678
  var a = e.ch;
679
679
  return a == null || a > t ? P(e.line, t) : a < 0 ? P(e.line, 0) : e;
680
680
  }
@@ -753,7 +753,7 @@ b`.split(/\n/).length != 3 ? function(e) {
753
753
  var i = e.doc, s = e.display;
754
754
  if (!i.mode.startState)
755
755
  return new hn(i, !0, t);
756
- var c = Gc(e, t, a), d = c > i.first && ce(i, c - 1).stateAfter, h = d ? hn.fromSaved(i, d, c) : new hn(i, mr(i.mode), c);
756
+ var c = Xc(e, t, a), d = c > i.first && ce(i, c - 1).stateAfter, h = d ? hn.fromSaved(i, d, c) : new hn(i, mr(i.mode), c);
757
757
  return i.iter(c, t, function(g) {
758
758
  Pa(e, g.text, h);
759
759
  var v = h.line;
@@ -827,7 +827,7 @@ b`.split(/\n/).length != 3 ? function(e) {
827
827
  s(B, v), g = B;
828
828
  }
829
829
  }
830
- function Gc(e, t, a) {
830
+ function Xc(e, t, a) {
831
831
  for (var i, s, c = e.doc, d = a ? -1 : t - (e.doc.mode.innerMode ? 1e3 : 100), h = t; h > d; --h) {
832
832
  if (h <= c.first)
833
833
  return c.first;
@@ -839,7 +839,7 @@ b`.split(/\n/).length != 3 ? function(e) {
839
839
  }
840
840
  return s;
841
841
  }
842
- function Kc(e, t) {
842
+ function Yc(e, t) {
843
843
  if (e.modeFrontier = Math.min(e.modeFrontier, t), !(e.highlightFrontier < t - 10)) {
844
844
  for (var a = e.first, i = t - 1; i > a; i--) {
845
845
  var s = ce(e, i).stateAfter;
@@ -852,10 +852,10 @@ b`.split(/\n/).length != 3 ? function(e) {
852
852
  }
853
853
  }
854
854
  var mo = !1, kn = !1;
855
- function Vc() {
855
+ function Jc() {
856
856
  mo = !0;
857
857
  }
858
- function Xc() {
858
+ function Qc() {
859
859
  kn = !0;
860
860
  }
861
861
  function Bi(e, t, a) {
@@ -869,16 +869,16 @@ b`.split(/\n/).length != 3 ? function(e) {
869
869
  return i;
870
870
  }
871
871
  }
872
- function Yc(e, t) {
872
+ function Zc(e, t) {
873
873
  for (var a, i = 0; i < e.length; ++i)
874
874
  e[i] != t && (a || (a = [])).push(e[i]);
875
875
  return a;
876
876
  }
877
- function Jc(e, t, a) {
877
+ function ef(e, t, a) {
878
878
  var i = a && window.WeakSet && (a.markedSpans || (a.markedSpans = /* @__PURE__ */ new WeakSet()));
879
879
  i && e.markedSpans && i.has(e.markedSpans) ? e.markedSpans.push(t) : (e.markedSpans = e.markedSpans ? e.markedSpans.concat([t]) : [t], i && i.add(e.markedSpans)), t.marker.attachLine(e);
880
880
  }
881
- function Qc(e, t, a) {
881
+ function tf(e, t, a) {
882
882
  var i;
883
883
  if (e)
884
884
  for (var s = 0; s < e.length; ++s) {
@@ -890,7 +890,7 @@ b`.split(/\n/).length != 3 ? function(e) {
890
890
  }
891
891
  return i;
892
892
  }
893
- function Zc(e, t, a) {
893
+ function nf(e, t, a) {
894
894
  var i;
895
895
  if (e)
896
896
  for (var s = 0; s < e.length; ++s) {
@@ -912,7 +912,7 @@ b`.split(/\n/).length != 3 ? function(e) {
912
912
  var a = U(e, t.from.line) && ce(e, t.from.line).markedSpans, i = U(e, t.to.line) && ce(e, t.to.line).markedSpans;
913
913
  if (!a && !i)
914
914
  return null;
915
- var s = t.from.ch, c = t.to.ch, d = re(t.from, t.to) == 0, h = Qc(a, s, d), g = Zc(i, c, d), v = t.text.length == 1, C = be(t.text).length + (v ? s : 0);
915
+ var s = t.from.ch, c = t.to.ch, d = re(t.from, t.to) == 0, h = tf(a, s, d), g = nf(i, c, d), v = t.text.length == 1, C = be(t.text).length + (v ? s : 0);
916
916
  if (h)
917
917
  for (var _ = 0; _ < h.length; ++_) {
918
918
  var F = h[_];
@@ -950,7 +950,7 @@ b`.split(/\n/).length != 3 ? function(e) {
950
950
  }
951
951
  return e.length ? e : null;
952
952
  }
953
- function ef(e, t, a) {
953
+ function rf(e, t, a) {
954
954
  var i = null;
955
955
  if (e.iter(t.line, a.line + 1, function(O) {
956
956
  if (O.markedSpans)
@@ -1014,7 +1014,7 @@ b`.split(/\n/).length != 3 ? function(e) {
1014
1014
  function ji(e) {
1015
1015
  return xo(e, !1);
1016
1016
  }
1017
- function tf(e, t) {
1017
+ function af(e, t) {
1018
1018
  var a = kn && e.markedSpans, i;
1019
1019
  if (a)
1020
1020
  for (var s = 0; s < a.length; ++s) {
@@ -1040,12 +1040,12 @@ b`.split(/\n/).length != 3 ? function(e) {
1040
1040
  e = t.find(-1, !0).line;
1041
1041
  return e;
1042
1042
  }
1043
- function nf(e) {
1043
+ function sf(e) {
1044
1044
  for (var t; t = ji(e); )
1045
1045
  e = t.find(1, !0).line;
1046
1046
  return e;
1047
1047
  }
1048
- function rf(e) {
1048
+ function of(e) {
1049
1049
  for (var t, a; t = ji(e); )
1050
1050
  e = t.find(1, !0).line, (a || (a = [])).push(e);
1051
1051
  return a;
@@ -1130,19 +1130,19 @@ b`.split(/\n/).length != 3 ? function(e) {
1130
1130
  yr.prototype.lineNo = function() {
1131
1131
  return b(this);
1132
1132
  }, en(yr);
1133
- function af(e, t, a, i) {
1133
+ function lf(e, t, a, i) {
1134
1134
  e.text = t, e.stateAfter && (e.stateAfter = null), e.styles && (e.styles = null), e.order != null && (e.order = null), yo(e), bo(e, a);
1135
1135
  var s = i ? i(e) : 1;
1136
1136
  s != e.height && jt(e, s);
1137
1137
  }
1138
- function sf(e) {
1138
+ function uf(e) {
1139
1139
  e.parent = null, yo(e);
1140
1140
  }
1141
- var of = {}, lf = {};
1141
+ var cf = {}, ff = {};
1142
1142
  function Co(e, t) {
1143
1143
  if (!e || /^\s*$/.test(e))
1144
1144
  return null;
1145
- var a = t.addModeClass ? lf : of;
1145
+ var a = t.addModeClass ? ff : cf;
1146
1146
  return a[e] || (a[e] = e.replace(/\S+/g, "cm-$&"));
1147
1147
  }
1148
1148
  function To(e, t) {
@@ -1158,9 +1158,9 @@ b`.split(/\n/).length != 3 ? function(e) {
1158
1158
  t.measure = {};
1159
1159
  for (var s = 0; s <= (t.rest ? t.rest.length : 0); s++) {
1160
1160
  var c = s ? t.rest[s - 1] : t.line, d = void 0;
1161
- i.pos = 0, i.addToken = cf, Nn(e.display.measure) && (d = Me(c, e.doc.direction)) && (i.addToken = df(i.addToken, d)), i.map = [];
1161
+ i.pos = 0, i.addToken = hf, Nn(e.display.measure) && (d = Me(c, e.doc.direction)) && (i.addToken = gf(i.addToken, d)), i.map = [];
1162
1162
  var h = t != e.display.externalMeasured && b(c);
1163
- hf(c, i, uo(e, c, h)), c.styleClasses && (c.styleClasses.bgClass && (i.bgClass = he(c.styleClasses.bgClass, i.bgClass || "")), c.styleClasses.textClass && (i.textClass = he(c.styleClasses.textClass, i.textClass || ""))), i.map.length == 0 && i.map.push(0, 0, i.content.appendChild($i(e.display.measure))), s == 0 ? (t.measure.map = i.map, t.measure.cache = {}) : ((t.measure.maps || (t.measure.maps = [])).push(i.map), (t.measure.caches || (t.measure.caches = [])).push({}));
1163
+ mf(c, i, uo(e, c, h)), c.styleClasses && (c.styleClasses.bgClass && (i.bgClass = he(c.styleClasses.bgClass, i.bgClass || "")), c.styleClasses.textClass && (i.textClass = he(c.styleClasses.textClass, i.textClass || ""))), i.map.length == 0 && i.map.push(0, 0, i.content.appendChild($i(e.display.measure))), s == 0 ? (t.measure.map = i.map, t.measure.cache = {}) : ((t.measure.maps || (t.measure.maps = [])).push(i.map), (t.measure.caches || (t.measure.caches = [])).push({}));
1164
1164
  }
1165
1165
  if (S) {
1166
1166
  var g = i.content.lastChild;
@@ -1168,13 +1168,13 @@ b`.split(/\n/).length != 3 ? function(e) {
1168
1168
  }
1169
1169
  return Qe(e, "renderLine", e, t.line, i.pre), i.pre.className && (i.textClass = he(i.pre.className, i.textClass || "")), i;
1170
1170
  }
1171
- function uf(e) {
1171
+ function df(e) {
1172
1172
  var t = w("span", "•", "cm-invalidchar");
1173
1173
  return t.title = "\\u" + e.charCodeAt(0).toString(16), t.setAttribute("aria-label", t.title), t;
1174
1174
  }
1175
- function cf(e, t, a, i, s, c, d) {
1175
+ function hf(e, t, a, i, s, c, d) {
1176
1176
  if (t) {
1177
- var h = e.splitSpaces ? ff(t, e.trailingSpace) : t, g = e.cm.state.specialChars, v = !1, C;
1177
+ var h = e.splitSpaces ? pf(t, e.trailingSpace) : t, g = e.cm.state.specialChars, v = !1, C;
1178
1178
  if (!g.test(t))
1179
1179
  e.col += t.length, C = document.createTextNode(h), e.map.push(e.pos, e.pos + t.length, C), m && k < 9 && (v = !0), e.pos += t.length;
1180
1180
  else {
@@ -1210,7 +1210,7 @@ b`.split(/\n/).length != 3 ? function(e) {
1210
1210
  e.content.appendChild(C);
1211
1211
  }
1212
1212
  }
1213
- function ff(e, t) {
1213
+ function pf(e, t) {
1214
1214
  if (e.length > 1 && !/ /.test(e))
1215
1215
  return e;
1216
1216
  for (var a = t, i = "", s = 0; s < e.length; s++) {
@@ -1219,7 +1219,7 @@ b`.split(/\n/).length != 3 ? function(e) {
1219
1219
  }
1220
1220
  return i;
1221
1221
  }
1222
- function df(e, t) {
1222
+ function gf(e, t) {
1223
1223
  return function(a, i, s, c, d, h, g) {
1224
1224
  s = s ? s + " cm-force-border" : "cm-force-border";
1225
1225
  for (var v = a.pos, C = v + i.length; ; ) {
@@ -1235,7 +1235,7 @@ b`.split(/\n/).length != 3 ? function(e) {
1235
1235
  var s = !i && a.widgetNode;
1236
1236
  s && e.map.push(e.pos, e.pos + t, s), !i && e.cm.display.input.needsContentAttribute && (s || (s = e.content.appendChild(document.createElement("span"))), s.setAttribute("cm-marker", a.id)), s && (e.cm.display.input.setUneditable(s), e.content.appendChild(s)), e.pos += t, e.trailingSpace = !1;
1237
1237
  }
1238
- function hf(e, t, a) {
1238
+ function mf(e, t, a) {
1239
1239
  var i = e.markedSpans, s = e.text, c = 0;
1240
1240
  if (!i) {
1241
1241
  for (var d = 1; d < a.length; d += 2)
@@ -1301,7 +1301,7 @@ b`.split(/\n/).length != 3 ? function(e) {
1301
1301
  }
1302
1302
  }
1303
1303
  function Lo(e, t, a) {
1304
- this.line = t, this.rest = rf(t), this.size = this.rest ? b(be(this.rest)) - a + 1 : 1, this.node = this.text = null, this.hidden = Mn(e, t);
1304
+ this.line = t, this.rest = of(t), this.size = this.rest ? b(be(this.rest)) - a + 1 : 1, this.node = this.text = null, this.hidden = Mn(e, t);
1305
1305
  }
1306
1306
  function qi(e, t, a) {
1307
1307
  for (var i = [], s, c = t; c < a; c = s) {
@@ -1311,13 +1311,13 @@ b`.split(/\n/).length != 3 ? function(e) {
1311
1311
  return i;
1312
1312
  }
1313
1313
  var br = null;
1314
- function pf(e) {
1314
+ function vf(e) {
1315
1315
  br ? br.ops.push(e) : e.ownsGroup = br = {
1316
1316
  ops: [e],
1317
1317
  delayedCallbacks: []
1318
1318
  };
1319
1319
  }
1320
- function gf(e) {
1320
+ function yf(e) {
1321
1321
  var t = e.delayedCallbacks, a = 0;
1322
1322
  do {
1323
1323
  for (; a < t.length; a++)
@@ -1330,11 +1330,11 @@ b`.split(/\n/).length != 3 ? function(e) {
1330
1330
  }
1331
1331
  } while (a < t.length);
1332
1332
  }
1333
- function mf(e, t) {
1333
+ function bf(e, t) {
1334
1334
  var a = e.ownsGroup;
1335
1335
  if (a)
1336
1336
  try {
1337
- gf(a);
1337
+ yf(a);
1338
1338
  } finally {
1339
1339
  br = null, t(a);
1340
1340
  }
@@ -1344,7 +1344,7 @@ b`.split(/\n/).length != 3 ? function(e) {
1344
1344
  var a = xn(e, t);
1345
1345
  if (a.length) {
1346
1346
  var i = Array.prototype.slice.call(arguments, 2), s;
1347
- br ? s = br.delayedCallbacks : Qr ? s = Qr : (s = Qr = [], setTimeout(vf, 0));
1347
+ br ? s = br.delayedCallbacks : Qr ? s = Qr : (s = Qr = [], setTimeout(xf, 0));
1348
1348
  for (var c = function(h) {
1349
1349
  s.push(function() {
1350
1350
  return a[h].apply(null, i);
@@ -1353,7 +1353,7 @@ b`.split(/\n/).length != 3 ? function(e) {
1353
1353
  c(d);
1354
1354
  }
1355
1355
  }
1356
- function vf() {
1356
+ function xf() {
1357
1357
  var e = Qr;
1358
1358
  Qr = null;
1359
1359
  for (var t = 0; t < e.length; ++t)
@@ -1362,14 +1362,14 @@ b`.split(/\n/).length != 3 ? function(e) {
1362
1362
  function Eo(e, t, a, i) {
1363
1363
  for (var s = 0; s < t.changes.length; s++) {
1364
1364
  var c = t.changes[s];
1365
- c == "text" ? bf(e, t) : c == "gutter" ? Ao(e, t, a, i) : c == "class" ? qa(e, t) : c == "widget" && xf(e, t, i);
1365
+ c == "text" ? kf(e, t) : c == "gutter" ? Ao(e, t, a, i) : c == "class" ? qa(e, t) : c == "widget" && Sf(e, t, i);
1366
1366
  }
1367
1367
  t.changes = null;
1368
1368
  }
1369
1369
  function Zr(e) {
1370
1370
  return e.node == e.text && (e.node = w("div", null, null, "position: relative"), e.text.parentNode && e.text.parentNode.replaceChild(e.node, e.text), e.node.appendChild(e.text), m && k < 8 && (e.node.style.zIndex = 2)), e.node;
1371
1371
  }
1372
- function yf(e, t) {
1372
+ function wf(e, t) {
1373
1373
  var a = t.bgClass ? t.bgClass + " " + (t.line.bgClass || "") : t.line.bgClass;
1374
1374
  if (a && (a += " CodeMirror-linebackground"), t.background)
1375
1375
  a ? t.background.className = a : (t.background.parentNode.removeChild(t.background), t.background = null);
@@ -1382,12 +1382,12 @@ b`.split(/\n/).length != 3 ? function(e) {
1382
1382
  var a = e.display.externalMeasured;
1383
1383
  return a && a.line == t.line ? (e.display.externalMeasured = null, t.measure = a.measure, a.built) : To(e, t);
1384
1384
  }
1385
- function bf(e, t) {
1385
+ function kf(e, t) {
1386
1386
  var a = t.text.className, i = Io(e, t);
1387
1387
  t.text == t.node && (t.node = i.pre), t.text.parentNode.replaceChild(i.pre, t.text), t.text = i.pre, i.bgClass != t.bgClass || i.textClass != t.textClass ? (t.bgClass = i.bgClass, t.textClass = i.textClass, qa(e, t)) : a && (t.text.className = a);
1388
1388
  }
1389
1389
  function qa(e, t) {
1390
- yf(e, t), t.line.wrapClass ? Zr(t).className = t.line.wrapClass : t.node != t.text && (t.node.className = "");
1390
+ wf(e, t), t.line.wrapClass ? Zr(t).className = t.line.wrapClass : t.node != t.text && (t.node.className = "");
1391
1391
  var a = t.textClass ? t.textClass + " " + (t.line.textClass || "") : t.line.textClass;
1392
1392
  t.text.className = a || "";
1393
1393
  }
@@ -1423,13 +1423,13 @@ b`.split(/\n/).length != 3 ? function(e) {
1423
1423
  }
1424
1424
  }
1425
1425
  }
1426
- function xf(e, t, a) {
1426
+ function Sf(e, t, a) {
1427
1427
  t.alignable && (t.alignable = null);
1428
1428
  for (var i = ie("CodeMirror-linewidget"), s = t.node.firstChild, c = void 0; s; s = c)
1429
1429
  c = s.nextSibling, i.test(s.className) && t.node.removeChild(s);
1430
1430
  Do(e, t, a);
1431
1431
  }
1432
- function wf(e, t, a, i) {
1432
+ function Cf(e, t, a, i) {
1433
1433
  var s = Io(e, t);
1434
1434
  return t.text = t.node = s.pre, s.bgClass && (t.bgClass = s.bgClass), s.textClass && (t.textClass = s.textClass), qa(e, t), Ao(e, t, a, i), Do(e, t, i), t.node;
1435
1435
  }
@@ -1442,10 +1442,10 @@ b`.split(/\n/).length != 3 ? function(e) {
1442
1442
  if (t.widgets)
1443
1443
  for (var c = Zr(a), d = 0, h = t.widgets; d < h.length; ++d) {
1444
1444
  var g = h[d], v = w("div", [g.node], "CodeMirror-linewidget" + (g.className ? " " + g.className : ""));
1445
- g.handleMouseEvents || v.setAttribute("cm-ignore-events", "true"), kf(g, v, a, i), e.display.input.setUneditable(v), s && g.above ? c.insertBefore(v, a.gutter || a.text) : c.appendChild(v), gt(g, "redraw");
1445
+ g.handleMouseEvents || v.setAttribute("cm-ignore-events", "true"), Tf(g, v, a, i), e.display.input.setUneditable(v), s && g.above ? c.insertBefore(v, a.gutter || a.text) : c.appendChild(v), gt(g, "redraw");
1446
1446
  }
1447
1447
  }
1448
- function kf(e, t, a, i) {
1448
+ function Tf(e, t, a, i) {
1449
1449
  if (e.noHScroll) {
1450
1450
  (a.alignable || (a.alignable = [])).push(t);
1451
1451
  var s = i.wrapperWidth;
@@ -1491,7 +1491,7 @@ b`.split(/\n/).length != 3 ? function(e) {
1491
1491
  function Ka(e) {
1492
1492
  return e.display.scroller.clientHeight - pn(e) - e.display.barHeight;
1493
1493
  }
1494
- function Sf(e, t, a) {
1494
+ function _f(e, t, a) {
1495
1495
  var i = e.options.lineWrapping, s = i && Vn(e);
1496
1496
  if (!t.measure.heights || i && t.measure.width != s) {
1497
1497
  var c = t.measure.heights = [];
@@ -1517,7 +1517,7 @@ b`.split(/\n/).length != 3 ? function(e) {
1517
1517
  return { map: e.measure.maps[s], cache: e.measure.caches[s], before: !0 };
1518
1518
  }
1519
1519
  }
1520
- function Cf(e, t) {
1520
+ function Lf(e, t) {
1521
1521
  t = sn(t);
1522
1522
  var a = b(t), i = e.display.externalMeasured = new Lo(e.doc, t, a);
1523
1523
  i.lineN = a;
@@ -1536,7 +1536,7 @@ b`.split(/\n/).length != 3 ? function(e) {
1536
1536
  }
1537
1537
  function xr(e, t) {
1538
1538
  var a = b(t), i = Va(e, a);
1539
- i && !i.text ? i = null : i && i.changes && (Eo(e, i, a, Za(e)), e.curOp.forceUpdate = !0), i || (i = Cf(e, t));
1539
+ i && !i.text ? i = null : i && i.changes && (Eo(e, i, a, Za(e)), e.curOp.forceUpdate = !0), i || (i = Lf(e, t));
1540
1540
  var s = Fo(i, t, a);
1541
1541
  return {
1542
1542
  line: t,
@@ -1551,7 +1551,7 @@ b`.split(/\n/).length != 3 ? function(e) {
1551
1551
  function gn(e, t, a, i, s) {
1552
1552
  t.before && (a = -1);
1553
1553
  var c = a + (i || ""), d;
1554
- return t.cache.hasOwnProperty(c) ? d = t.cache[c] : (t.rect || (t.rect = t.view.text.getBoundingClientRect()), t.hasHeights || (Sf(e, t.view, t.rect), t.hasHeights = !0), d = _f(e, t, a, i), d.bogus || (t.cache[c] = d)), {
1554
+ return t.cache.hasOwnProperty(c) ? d = t.cache[c] : (t.rect || (t.rect = t.view.text.getBoundingClientRect()), t.hasHeights || (_f(e, t.view, t.rect), t.hasHeights = !0), d = If(e, t, a, i), d.bogus || (t.cache[c] = d)), {
1555
1555
  left: d.left,
1556
1556
  right: d.right,
1557
1557
  top: s ? d.rtop : d.top,
@@ -1572,7 +1572,7 @@ b`.split(/\n/).length != 3 ? function(e) {
1572
1572
  }
1573
1573
  return { node: i, start: s, end: c, collapse: d, coverStart: h, coverEnd: g };
1574
1574
  }
1575
- function Tf(e, t) {
1575
+ function Ef(e, t) {
1576
1576
  var a = Mo;
1577
1577
  if (t == "left")
1578
1578
  for (var i = 0; i < e.length && (a = e[i]).left == a.right; i++)
@@ -1582,7 +1582,7 @@ b`.split(/\n/).length != 3 ? function(e) {
1582
1582
  ;
1583
1583
  return a;
1584
1584
  }
1585
- function _f(e, t, a, i) {
1585
+ function If(e, t, a, i) {
1586
1586
  var s = $o(t.map, a, i), c = s.node, d = s.start, h = s.end, g = s.collapse, v;
1587
1587
  if (c.nodeType == 3) {
1588
1588
  for (var C = 0; C < 4; C++) {
@@ -1590,11 +1590,11 @@ b`.split(/\n/).length != 3 ? function(e) {
1590
1590
  --d;
1591
1591
  for (; s.coverStart + h < s.coverEnd && Ie(t.line.text.charAt(s.coverStart + h)); )
1592
1592
  ++h;
1593
- if (m && k < 9 && d == 0 && h == s.coverEnd - s.coverStart ? v = c.parentNode.getBoundingClientRect() : v = Tf(G(c, d, h).getClientRects(), i), v.left || v.right || d == 0)
1593
+ if (m && k < 9 && d == 0 && h == s.coverEnd - s.coverStart ? v = c.parentNode.getBoundingClientRect() : v = Ef(G(c, d, h).getClientRects(), i), v.left || v.right || d == 0)
1594
1594
  break;
1595
1595
  h = d, d = d - 1, g = "right";
1596
1596
  }
1597
- m && k < 11 && (v = Lf(e.display.measure, v));
1597
+ m && k < 11 && (v = Af(e.display.measure, v));
1598
1598
  } else {
1599
1599
  d > 0 && (g = i = "right");
1600
1600
  var _;
@@ -1614,7 +1614,7 @@ b`.split(/\n/).length != 3 ? function(e) {
1614
1614
  };
1615
1615
  return !v.left && !v.right && (le.bogus = !0), e.options.singleCursorHeightPerLine || (le.rtop = O, le.rbottom = B), le;
1616
1616
  }
1617
- function Lf(e, t) {
1617
+ function Af(e, t) {
1618
1618
  if (!window.screen || screen.logicalXDPI == null || screen.logicalXDPI == screen.deviceXDPI || !$a(e))
1619
1619
  return t;
1620
1620
  var a = screen.logicalXDPI / screen.deviceXDPI, i = screen.logicalYDPI / screen.deviceYDPI;
@@ -1719,7 +1719,7 @@ b`.split(/\n/).length != 3 ? function(e) {
1719
1719
  return Ya(i.first + i.size - 1, ce(i, c).text.length, null, 1, 1);
1720
1720
  t < 0 && (t = 0);
1721
1721
  for (var d = ce(i, s); ; ) {
1722
- var h = Ef(e, d, s, t, a), g = tf(d, h.ch + (h.xRel > 0 || h.outside > 0 ? 1 : 0));
1722
+ var h = Df(e, d, s, t, a), g = af(d, h.ch + (h.xRel > 0 || h.outside > 0 ? 1 : 0));
1723
1723
  if (!g)
1724
1724
  return h;
1725
1725
  var v = g.find(1);
@@ -1745,11 +1745,11 @@ b`.split(/\n/).length != 3 ? function(e) {
1745
1745
  function Qa(e, t, a, i) {
1746
1746
  return e.bottom <= a ? !1 : e.top > a ? !0 : (i ? e.left : e.right) > t;
1747
1747
  }
1748
- function Ef(e, t, a, i, s) {
1748
+ function Df(e, t, a, i, s) {
1749
1749
  s -= Sn(t);
1750
1750
  var c = xr(e, t), d = Xa(t), h = 0, g = t.text.length, v = !0, C = Me(t, e.doc.direction);
1751
1751
  if (C) {
1752
- var _ = (e.options.lineWrapping ? Af : If)(e, t, a, c, C, i, s);
1752
+ var _ = (e.options.lineWrapping ? Nf : Of)(e, t, a, c, C, i, s);
1753
1753
  v = _.level != 1, h = v ? _.from : _.to - 1, g = v ? _.to : _.from - 1;
1754
1754
  }
1755
1755
  var F = null, O = null, B = Xt(function(ve) {
@@ -1766,7 +1766,7 @@ b`.split(/\n/).length != 3 ? function(e) {
1766
1766
  }
1767
1767
  return B = $t(t.text, B, 1), Ya(a, B, Y, ee, i - q);
1768
1768
  }
1769
- function If(e, t, a, i, s, c, d) {
1769
+ function Of(e, t, a, i, s, c, d) {
1770
1770
  var h = Xt(function(_) {
1771
1771
  var F = s[_], O = F.level != 1;
1772
1772
  return Qa(on(
@@ -1789,7 +1789,7 @@ b`.split(/\n/).length != 3 ? function(e) {
1789
1789
  }
1790
1790
  return g;
1791
1791
  }
1792
- function Af(e, t, a, i, s, c, d) {
1792
+ function Nf(e, t, a, i, s, c, d) {
1793
1793
  var h = Uo(e, t, i, d), g = h.begin, v = h.end;
1794
1794
  /\s/.test(t.text.charAt(v - 1)) && v--;
1795
1795
  for (var C = null, _ = null, F = 0; F < s.length; F++) {
@@ -1940,7 +1940,7 @@ b`.split(/\n/).length != 3 ? function(e) {
1940
1940
  }
1941
1941
  return { index: s, lineN: a };
1942
1942
  }
1943
- function Df(e, t, a) {
1943
+ function Ff(e, t, a) {
1944
1944
  var i = e.display, s = i.view;
1945
1945
  s.length == 0 || t >= i.viewTo || a <= i.viewFrom ? (i.view = qi(e, t, a), i.viewFrom = t) : (i.viewFrom > t ? i.view = qi(e, t, i.viewFrom).concat(i.view) : i.viewFrom < t && (i.view = i.view.slice(Jn(e, t))), i.viewFrom = t, i.viewTo < a ? i.view = i.view.concat(qi(e, i.viewTo, a)) : i.viewTo > a && (i.view = i.view.slice(0, Jn(e, a)))), i.viewTo = a;
1946
1946
  }
@@ -1967,7 +1967,7 @@ b`.split(/\n/).length != 3 ? function(e) {
1967
1967
  var C = d(e, g);
1968
1968
  C && ns(e, C, s);
1969
1969
  } else (v || e.options.showCursorWhenSelecting) && ns(e, g.head, s);
1970
- v || Of(e, g, c);
1970
+ v || Rf(e, g, c);
1971
1971
  }
1972
1972
  }
1973
1973
  return i;
@@ -1986,7 +1986,7 @@ b`.split(/\n/).length != 3 ? function(e) {
1986
1986
  function Yi(e, t) {
1987
1987
  return e.top - t.top || e.left - t.left;
1988
1988
  }
1989
- function Of(e, t, a) {
1989
+ function Rf(e, t, a) {
1990
1990
  var i = e.display, s = e.doc, c = document.createDocumentFragment(), d = No(e.display), h = d.left, g = Math.max(i.sizerWidth, Vn(e) - i.sizer.offsetLeft) - d.right, v = s.direction == "ltr";
1991
1991
  function C(te, le, ve, ge) {
1992
1992
  le < 0 && (le = 0), le = Math.round(le), ge = Math.round(ge), c.appendChild(w("div", null, "CodeMirror-selected", "position: absolute; left: " + te + `px;
@@ -2092,7 +2092,7 @@ b`.split(/\n/).length != 3 ? function(e) {
2092
2092
  }
2093
2093
  return { from: c, to: Math.max(d, c + 1) };
2094
2094
  }
2095
- function Nf(e, t) {
2095
+ function Mf(e, t) {
2096
2096
  if (!Ze(e, "scrollCursorIntoView")) {
2097
2097
  var a = e.display, i = a.sizer.getBoundingClientRect(), s = null, c = a.wrapper.ownerDocument;
2098
2098
  if (t.top + i.top < 0 ? s = !0 : t.bottom + i.top > (c.defaultView.innerHeight || c.documentElement.clientHeight) && (s = !1), s != null && !I) {
@@ -2104,7 +2104,7 @@ b`.split(/\n/).length != 3 ? function(e) {
2104
2104
  }
2105
2105
  }
2106
2106
  }
2107
- function Ff(e, t, a, i) {
2107
+ function $f(e, t, a, i) {
2108
2108
  i == null && (i = 0);
2109
2109
  var s;
2110
2110
  !e.options.lineWrapping && t == a && (a = t.sticky == "before" ? P(t.line, t.ch + 1, "before") : t, t = t.ch ? P(t.line, t.sticky == "before" ? t.ch - 1 : t.ch, "after") : t);
@@ -2122,7 +2122,7 @@ b`.split(/\n/).length != 3 ? function(e) {
2122
2122
  }
2123
2123
  return s;
2124
2124
  }
2125
- function Rf(e, t) {
2125
+ function Pf(e, t) {
2126
2126
  var a = ss(e, t);
2127
2127
  a.scrollTop != null && ii(e, a.scrollTop), a.scrollLeft != null && Qn(e, a.scrollLeft);
2128
2128
  }
@@ -2152,7 +2152,7 @@ b`.split(/\n/).length != 3 ? function(e) {
2152
2152
  function ri(e, t, a) {
2153
2153
  (t != null || a != null) && Zi(e), t != null && (e.curOp.scrollLeft = t), a != null && (e.curOp.scrollTop = a);
2154
2154
  }
2155
- function Mf(e, t) {
2155
+ function zf(e, t) {
2156
2156
  Zi(e), e.curOp.scrollToPos = t;
2157
2157
  }
2158
2158
  function Zi(e) {
@@ -2269,7 +2269,7 @@ b`.split(/\n/).length != 3 ? function(e) {
2269
2269
  a == "horizontal" ? Qn(e, t) : ii(e, t);
2270
2270
  }, e), e.display.scrollbars.addClass && K(e.display.wrapper, e.display.scrollbars.addClass);
2271
2271
  }
2272
- var $f = 0;
2272
+ var Bf = 0;
2273
2273
  function er(e) {
2274
2274
  e.curOp = {
2275
2275
  cm: e,
@@ -2299,59 +2299,59 @@ b`.split(/\n/).length != 3 ? function(e) {
2299
2299
  scrollToPos: null,
2300
2300
  // Used to scroll to a specific position
2301
2301
  focus: !1,
2302
- id: ++$f,
2302
+ id: ++Bf,
2303
2303
  // Unique ID
2304
2304
  markArrays: null
2305
2305
  // Used by addMarkedSpan
2306
- }, pf(e.curOp);
2306
+ }, vf(e.curOp);
2307
2307
  }
2308
2308
  function tr(e) {
2309
2309
  var t = e.curOp;
2310
- t && mf(t, function(a) {
2310
+ t && bf(t, function(a) {
2311
2311
  for (var i = 0; i < a.ops.length; i++)
2312
2312
  a.ops[i].cm.curOp = null;
2313
- Pf(a);
2313
+ Hf(a);
2314
2314
  });
2315
2315
  }
2316
- function Pf(e) {
2316
+ function Hf(e) {
2317
2317
  for (var t = e.ops, a = 0; a < t.length; a++)
2318
- zf(t[a]);
2318
+ Wf(t[a]);
2319
2319
  for (var i = 0; i < t.length; i++)
2320
- Bf(t[i]);
2320
+ jf(t[i]);
2321
2321
  for (var s = 0; s < t.length; s++)
2322
- Hf(t[s]);
2322
+ Uf(t[s]);
2323
2323
  for (var c = 0; c < t.length; c++)
2324
- Wf(t[c]);
2324
+ qf(t[c]);
2325
2325
  for (var d = 0; d < t.length; d++)
2326
- jf(t[d]);
2326
+ Gf(t[d]);
2327
2327
  }
2328
- function zf(e) {
2328
+ function Wf(e) {
2329
2329
  var t = e.cm, a = t.display;
2330
- qf(t), e.updateMaxLine && Ua(t), e.mustUpdate = e.viewChanged || e.forceUpdate || e.scrollTop != null || e.scrollToPos && (e.scrollToPos.from.line < a.viewFrom || e.scrollToPos.to.line >= a.viewTo) || a.maxLineChanged && t.options.lineWrapping, e.update = e.mustUpdate && new ea(t, e.mustUpdate && { top: e.scrollTop, ensure: e.scrollToPos }, e.forceUpdate);
2330
+ Vf(t), e.updateMaxLine && Ua(t), e.mustUpdate = e.viewChanged || e.forceUpdate || e.scrollTop != null || e.scrollToPos && (e.scrollToPos.from.line < a.viewFrom || e.scrollToPos.to.line >= a.viewTo) || a.maxLineChanged && t.options.lineWrapping, e.update = e.mustUpdate && new ea(t, e.mustUpdate && { top: e.scrollTop, ensure: e.scrollToPos }, e.forceUpdate);
2331
2331
  }
2332
- function Bf(e) {
2332
+ function jf(e) {
2333
2333
  e.updatedDisplay = e.mustUpdate && ls(e.cm, e.update);
2334
2334
  }
2335
- function Hf(e) {
2335
+ function Uf(e) {
2336
2336
  var t = e.cm, a = t.display;
2337
2337
  e.updatedDisplay && Ji(t), e.barMeasure = ai(t), a.maxLineChanged && !t.options.lineWrapping && (e.adjustWidthTo = Ro(t, a.maxLine, a.maxLine.text.length).left + 3, t.display.sizerWidth = e.adjustWidthTo, e.barMeasure.scrollWidth = Math.max(a.scroller.clientWidth, a.sizer.offsetLeft + e.adjustWidthTo + pn(t) + t.display.barWidth), e.maxScrollLeft = Math.max(0, a.sizer.offsetLeft + e.adjustWidthTo - Vn(t))), (e.updatedDisplay || e.selectionChanged) && (e.preparedSelection = a.input.prepareSelection());
2338
2338
  }
2339
- function Wf(e) {
2339
+ function qf(e) {
2340
2340
  var t = e.cm;
2341
2341
  e.adjustWidthTo != null && (t.display.sizer.style.minWidth = e.adjustWidthTo + "px", e.maxScrollLeft < t.doc.scrollLeft && Qn(t, Math.min(t.display.scroller.scrollLeft, e.maxScrollLeft), !0), t.display.maxLineChanged = !1);
2342
2342
  var a = e.focus && e.focus == M(oe(t));
2343
2343
  e.preparedSelection && t.display.input.showSelection(e.preparedSelection, a), (e.updatedDisplay || e.startHeight != t.doc.height) && Tr(t, e.barMeasure), e.updatedDisplay && fs(t, e.barMeasure), e.selectionChanged && rs(t), t.state.focused && e.updateInput && t.display.input.reset(e.typing), a && Xo(e.cm);
2344
2344
  }
2345
- function jf(e) {
2345
+ function Gf(e) {
2346
2346
  var t = e.cm, a = t.display, i = t.doc;
2347
2347
  if (e.updatedDisplay && nl(t, e.update), a.wheelStartX != null && (e.scrollTop != null || e.scrollLeft != null || e.scrollToPos) && (a.wheelStartX = a.wheelStartY = null), e.scrollTop != null && Qo(t, e.scrollTop, e.forceScroll), e.scrollLeft != null && Qn(t, e.scrollLeft, !0, !0), e.scrollToPos) {
2348
- var s = Ff(
2348
+ var s = $f(
2349
2349
  t,
2350
2350
  Ce(i, e.scrollToPos.from),
2351
2351
  Ce(i, e.scrollToPos.to),
2352
2352
  e.scrollToPos.margin
2353
2353
  );
2354
- Nf(t, s);
2354
+ Mf(t, s);
2355
2355
  }
2356
2356
  var c = e.maybeHiddenMarkers, d = e.maybeUnhiddenMarkers;
2357
2357
  if (c)
@@ -2410,9 +2410,9 @@ b`.split(/\n/).length != 3 ? function(e) {
2410
2410
  };
2411
2411
  }
2412
2412
  function oi(e, t) {
2413
- e.doc.highlightFrontier < e.display.viewTo && e.state.highlight.set(t, fe(Uf, e));
2413
+ e.doc.highlightFrontier < e.display.viewTo && e.state.highlight.set(t, fe(Kf, e));
2414
2414
  }
2415
- function Uf(e) {
2415
+ function Kf(e) {
2416
2416
  var t = e.doc;
2417
2417
  if (!(t.highlightFrontier >= e.display.viewTo)) {
2418
2418
  var a = +/* @__PURE__ */ new Date() + e.options.workTime, i = Yr(e, t.highlightFrontier), s = [];
@@ -2445,11 +2445,11 @@ b`.split(/\n/).length != 3 ? function(e) {
2445
2445
  for (var e = 0; e < this.events.length; e++)
2446
2446
  Qe.apply(null, this.events[e]);
2447
2447
  };
2448
- function qf(e) {
2448
+ function Vf(e) {
2449
2449
  var t = e.display;
2450
2450
  !t.scrollbarsClipped && t.scroller.offsetWidth && (t.nativeBarWidth = t.scroller.offsetWidth - t.scroller.clientWidth, t.heightForcer.style.height = pn(e) + "px", t.sizer.style.marginBottom = -t.nativeBarWidth + "px", t.sizer.style.borderRightWidth = pn(e) + "px", t.scrollbarsClipped = !0);
2451
2451
  }
2452
- function Gf(e) {
2452
+ function Xf(e) {
2453
2453
  if (e.hasFocus())
2454
2454
  return null;
2455
2455
  var t = M(oe(e));
@@ -2462,7 +2462,7 @@ b`.split(/\n/).length != 3 ? function(e) {
2462
2462
  }
2463
2463
  return a;
2464
2464
  }
2465
- function Kf(e) {
2465
+ function Yf(e) {
2466
2466
  if (!(!e || !e.activeElt || e.activeElt == M(Te(e.activeElt))) && (e.activeElt.focus(), !/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName) && e.anchorNode && A(document.body, e.anchorNode) && A(document.body, e.focusNode))) {
2467
2467
  var t = e.activeElt.ownerDocument, a = t.defaultView.getSelection(), i = t.createRange();
2468
2468
  i.setEnd(e.anchorNode, e.anchorOffset), i.collapse(!1), a.removeAllRanges(), a.addRange(i), a.extend(e.focusNode, e.focusOffset);
@@ -2478,12 +2478,12 @@ b`.split(/\n/).length != 3 ? function(e) {
2478
2478
  var s = i.first + i.size, c = Math.max(t.visible.from - e.options.viewportMargin, i.first), d = Math.min(s, t.visible.to + e.options.viewportMargin);
2479
2479
  a.viewFrom < c && c - a.viewFrom < 20 && (c = Math.max(i.first, a.viewFrom)), a.viewTo > d && a.viewTo - d < 20 && (d = Math.min(s, a.viewTo)), kn && (c = Wa(e.doc, c), d = So(e.doc, d));
2480
2480
  var h = c != a.viewFrom || d != a.viewTo || a.lastWrapHeight != t.wrapperHeight || a.lastWrapWidth != t.wrapperWidth;
2481
- Df(e, c, d), a.viewOffset = Sn(ce(e.doc, a.viewFrom)), e.display.mover.style.top = a.viewOffset + "px";
2481
+ Ff(e, c, d), a.viewOffset = Sn(ce(e.doc, a.viewFrom)), e.display.mover.style.top = a.viewOffset + "px";
2482
2482
  var g = Ko(e);
2483
2483
  if (!h && g == 0 && !t.force && a.renderedView == a.view && (a.updateLineNumbers == null || a.updateLineNumbers >= a.viewTo))
2484
2484
  return !1;
2485
- var v = Gf(e);
2486
- return g > 4 && (a.lineDiv.style.display = "none"), Vf(e, a.updateLineNumbers, t.dims), g > 4 && (a.lineDiv.style.display = ""), a.renderedView = a.view, Kf(v), j(a.cursorDiv), j(a.selectionDiv), a.gutters.style.height = a.sizer.style.minHeight = 0, h && (a.lastWrapHeight = t.wrapperHeight, a.lastWrapWidth = t.wrapperWidth, oi(e, 400)), a.updateLineNumbers = null, !0;
2485
+ var v = Xf(e);
2486
+ return g > 4 && (a.lineDiv.style.display = "none"), Jf(e, a.updateLineNumbers, t.dims), g > 4 && (a.lineDiv.style.display = ""), a.renderedView = a.view, Yf(v), j(a.cursorDiv), j(a.selectionDiv), a.gutters.style.height = a.sizer.style.minHeight = 0, h && (a.lastWrapHeight = t.wrapperHeight, a.lastWrapWidth = t.wrapperWidth, oi(e, 400)), a.updateLineNumbers = null, !0;
2487
2487
  }
2488
2488
  function nl(e, t) {
2489
2489
  for (var a = t.viewport, i = !0; ; i = !1) {
@@ -2507,7 +2507,7 @@ b`.split(/\n/).length != 3 ? function(e) {
2507
2507
  ni(e), Tr(e, i), fs(e, i), a.finish();
2508
2508
  }
2509
2509
  }
2510
- function Vf(e, t, a) {
2510
+ function Jf(e, t, a) {
2511
2511
  var i = e.display, s = e.options.lineNumbers, c = i.lineDiv, d = c.firstChild;
2512
2512
  function h(B) {
2513
2513
  var q = B.nextSibling;
@@ -2516,7 +2516,7 @@ b`.split(/\n/).length != 3 ? function(e) {
2516
2516
  for (var g = i.view, v = i.viewFrom, C = 0; C < g.length; C++) {
2517
2517
  var _ = g[C];
2518
2518
  if (!_.hidden) if (!_.node || _.node.parentNode != c) {
2519
- var F = wf(e, _, v, a);
2519
+ var F = Cf(e, _, v, a);
2520
2520
  c.insertBefore(F, d);
2521
2521
  } else {
2522
2522
  for (; d != _.node; )
@@ -2588,7 +2588,7 @@ b`.split(/\n/).length != 3 ? function(e) {
2588
2588
  function li(e) {
2589
2589
  al(e.display), Dt(e), rl(e);
2590
2590
  }
2591
- function Xf(e, t, a, i) {
2591
+ function Qf(e, t, a, i) {
2592
2592
  var s = this;
2593
2593
  this.input = a, s.scrollbarFiller = w("div", null, "CodeMirror-scrollbar-filler"), s.scrollbarFiller.setAttribute("cm-not-content", "true"), s.gutterFiller = w("div", null, "CodeMirror-gutter-filler"), s.gutterFiller.setAttribute("cm-not-content", "true"), s.lineDiv = J("div", null, "CodeMirror-code"), s.selectionDiv = w("div", null, null, "position: relative; z-index: 1"), s.cursorDiv = w("div", null, "CodeMirror-cursors"), s.measure = w("div", null, "CodeMirror-measure"), s.lineMeasure = w("div", null, "CodeMirror-measure"), s.lineSpace = J(
2594
2594
  "div",
@@ -2605,7 +2605,7 @@ b`.split(/\n/).length != 3 ? function(e) {
2605
2605
  var t = e.wheelDeltaX, a = e.wheelDeltaY;
2606
2606
  return t == null && e.detail && e.axis == e.HORIZONTAL_AXIS && (t = e.detail), a == null && e.detail && e.axis == e.VERTICAL_AXIS ? a = e.detail : a == null && (a = e.wheelDelta), { x: t, y: a };
2607
2607
  }
2608
- function Yf(e) {
2608
+ function Zf(e) {
2609
2609
  var t = sl(e);
2610
2610
  return t.x *= Tn, t.y *= Tn, t;
2611
2611
  }
@@ -2729,7 +2729,7 @@ b`.split(/\n/).length != 3 ? function(e) {
2729
2729
  function ul(e, t, a) {
2730
2730
  return e.line == t.line ? P(a.line, e.ch - t.ch + a.ch) : P(a.line + (e.line - t.line), e.ch);
2731
2731
  }
2732
- function Jf(e, t, a) {
2732
+ function ed(e, t, a) {
2733
2733
  for (var i = [], s = P(e.first, 0), c = s, d = 0; d < t.length; d++) {
2734
2734
  var h = t[d], g = ul(h.from, s, c), v = ul(Bn(h), s, c);
2735
2735
  if (s = h.to, c = v, a == "around") {
@@ -2756,7 +2756,7 @@ b`.split(/\n/).length != 3 ? function(e) {
2756
2756
  return a ? a[ae] : null;
2757
2757
  }
2758
2758
  function c(ae, te, le) {
2759
- af(ae, te, le, i), gt(ae, "change", ae, t);
2759
+ lf(ae, te, le, i), gt(ae, "change", ae, t);
2760
2760
  }
2761
2761
  function d(ae, te) {
2762
2762
  for (var le = [], ve = ae; ve < te; ++ve)
@@ -2806,7 +2806,7 @@ b`.split(/\n/).length != 3 ? function(e) {
2806
2806
  function dl(e) {
2807
2807
  (e.doc.direction == "rtl" ? K : $e)(e.display.lineDiv, "CodeMirror-rtl");
2808
2808
  }
2809
- function Qf(e) {
2809
+ function td(e) {
2810
2810
  zt(e, function() {
2811
2811
  dl(e), Dt(e);
2812
2812
  });
@@ -2829,7 +2829,7 @@ b`.split(/\n/).length != 3 ? function(e) {
2829
2829
  break;
2830
2830
  }
2831
2831
  }
2832
- function Zf(e, t) {
2832
+ function nd(e, t) {
2833
2833
  if (t)
2834
2834
  return hl(e.done), be(e.done);
2835
2835
  if (e.done.length && !be(e.done).ranges)
@@ -2841,7 +2841,7 @@ b`.split(/\n/).length != 3 ? function(e) {
2841
2841
  var s = e.history;
2842
2842
  s.undone.length = 0;
2843
2843
  var c = +/* @__PURE__ */ new Date(), d, h;
2844
- if ((s.lastOp == i || s.lastOrigin == t.origin && t.origin && (t.origin.charAt(0) == "+" && s.lastModTime > c - (e.cm ? e.cm.options.historyEventDelay : 500) || t.origin.charAt(0) == "*")) && (d = Zf(s, s.lastOp == i)))
2844
+ if ((s.lastOp == i || s.lastOrigin == t.origin && t.origin && (t.origin.charAt(0) == "+" && s.lastModTime > c - (e.cm ? e.cm.options.historyEventDelay : 500) || t.origin.charAt(0) == "*")) && (d = nd(s, s.lastOp == i)))
2845
2845
  h = be(d.changes), re(t.from, t.to) == 0 && re(t.from, h.to) == 0 ? h.to = Bn(t) : d.changes.push(ms(e, t));
2846
2846
  else {
2847
2847
  var g = be(s.done);
@@ -2853,13 +2853,13 @@ b`.split(/\n/).length != 3 ? function(e) {
2853
2853
  }
2854
2854
  s.done.push(a), s.generation = ++s.maxGeneration, s.lastModTime = s.lastSelTime = c, s.lastOp = s.lastSelOp = i, s.lastOrigin = s.lastSelOrigin = t.origin, h || Qe(e, "historyAdded");
2855
2855
  }
2856
- function ed(e, t, a, i) {
2856
+ function rd(e, t, a, i) {
2857
2857
  var s = t.charAt(0);
2858
2858
  return s == "*" || s == "+" && a.ranges.length == i.ranges.length && a.somethingSelected() == i.somethingSelected() && /* @__PURE__ */ new Date() - e.history.lastSelTime <= (e.cm ? e.cm.options.historyEventDelay : 500);
2859
2859
  }
2860
- function td(e, t, a, i) {
2860
+ function id(e, t, a, i) {
2861
2861
  var s = e.history, c = i && i.origin;
2862
- a == s.lastSelOp || c && s.lastSelOrigin == c && (s.lastModTime == s.lastSelTime && s.lastOrigin == c || ed(e, c, be(s.done), t)) ? s.done[s.done.length - 1] = t : ra(t, s.done), s.lastSelTime = +/* @__PURE__ */ new Date(), s.lastSelOrigin = c, s.lastSelOp = a, i && i.clearRedo !== !1 && hl(s.undone);
2862
+ a == s.lastSelOp || c && s.lastSelOrigin == c && (s.lastModTime == s.lastSelTime && s.lastOrigin == c || rd(e, c, be(s.done), t)) ? s.done[s.done.length - 1] = t : ra(t, s.done), s.lastSelTime = +/* @__PURE__ */ new Date(), s.lastSelOrigin = c, s.lastSelOp = a, i && i.clearRedo !== !1 && hl(s.undone);
2863
2863
  }
2864
2864
  function ra(e, t) {
2865
2865
  var a = be(t);
@@ -2871,23 +2871,23 @@ b`.split(/\n/).length != 3 ? function(e) {
2871
2871
  d.markedSpans && ((s || (s = t["spans_" + e.id] = {}))[c] = d.markedSpans), ++c;
2872
2872
  });
2873
2873
  }
2874
- function nd(e) {
2874
+ function ad(e) {
2875
2875
  if (!e)
2876
2876
  return null;
2877
2877
  for (var t, a = 0; a < e.length; ++a)
2878
2878
  e[a].marker.explicitlyCleared ? t || (t = e.slice(0, a)) : t && t.push(e[a]);
2879
2879
  return t ? t.length ? t : null : e;
2880
2880
  }
2881
- function rd(e, t) {
2881
+ function sd(e, t) {
2882
2882
  var a = t["spans_" + e.id];
2883
2883
  if (!a)
2884
2884
  return null;
2885
2885
  for (var i = [], s = 0; s < t.text.length; ++s)
2886
- i.push(nd(a[s]));
2886
+ i.push(ad(a[s]));
2887
2887
  return i;
2888
2888
  }
2889
2889
  function ml(e, t) {
2890
- var a = rd(e, t), i = Ba(e, t);
2890
+ var a = sd(e, t), i = Ba(e, t);
2891
2891
  if (!a)
2892
2892
  return i;
2893
2893
  if (!i)
@@ -2950,7 +2950,7 @@ b`.split(/\n/).length != 3 ? function(e) {
2950
2950
  function yl(e, t, a, i) {
2951
2951
  Ct(e, zn(t, a), i);
2952
2952
  }
2953
- function id(e, t, a) {
2953
+ function od(e, t, a) {
2954
2954
  var i = {
2955
2955
  ranges: t.ranges,
2956
2956
  update: function(s) {
@@ -2970,10 +2970,10 @@ b`.split(/\n/).length != 3 ? function(e) {
2970
2970
  s && s.ranges ? (i[i.length - 1] = t, aa(e, t, a)) : Ct(e, t, a);
2971
2971
  }
2972
2972
  function Ct(e, t, a) {
2973
- aa(e, t, a), td(e, e.sel, e.cm ? e.cm.curOp.id : NaN, a);
2973
+ aa(e, t, a), id(e, e.sel, e.cm ? e.cm.curOp.id : NaN, a);
2974
2974
  }
2975
2975
  function aa(e, t, a) {
2976
- (Pt(e, "beforeSelectionChange") || e.cm && Pt(e.cm, "beforeSelectionChange")) && (t = id(e, t, a));
2976
+ (Pt(e, "beforeSelectionChange") || e.cm && Pt(e.cm, "beforeSelectionChange")) && (t = od(e, t, a));
2977
2977
  var i = a && a.bias || (re(t.primary().head, e.sel.primary().head) < 0 ? -1 : 1);
2978
2978
  xl(e, kl(e, t, i, !0)), !(a && a.scroll === !1) && e.cm && e.cm.getOption("readOnly") != "nocursor" && Cr(e.cm);
2979
2979
  }
@@ -3048,7 +3048,7 @@ b`.split(/\n/).length != 3 ? function(e) {
3048
3048
  return;
3049
3049
  }
3050
3050
  if (!((Pt(e, "beforeChange") || e.cm && Pt(e.cm, "beforeChange")) && (t = Tl(e, t, !0), !t))) {
3051
- var i = mo && !a && ef(e, t.from, t.to);
3051
+ var i = mo && !a && rf(e, t.from, t.to);
3052
3052
  if (i)
3053
3053
  for (var s = i.length - 1; s >= 0; --s)
3054
3054
  _l(e, { from: i[s].from, to: i[s].to, text: s ? [""] : t.text, origin: t.origin });
@@ -3139,10 +3139,10 @@ b`.split(/\n/).length != 3 ? function(e) {
3139
3139
  to: P(c, ce(e, c).text.length),
3140
3140
  text: [t.text[0]],
3141
3141
  origin: t.origin
3142
- }), t.removed = wn(e, t.from, t.to), a || (a = hs(e, t)), e.cm ? ad(e.cm, t, i) : gs(e, t, i), aa(e, a, ut), e.cantEdit && sa(e, P(e.firstLine(), 0)) && (e.cantEdit = !1);
3142
+ }), t.removed = wn(e, t.from, t.to), a || (a = hs(e, t)), e.cm ? ld(e.cm, t, i) : gs(e, t, i), aa(e, a, ut), e.cantEdit && sa(e, P(e.firstLine(), 0)) && (e.cantEdit = !1);
3143
3143
  }
3144
3144
  }
3145
- function ad(e, t, a) {
3145
+ function ld(e, t, a) {
3146
3146
  var i = e.doc, s = e.display, c = t.from, d = t.to, h = !1, g = c.line;
3147
3147
  e.options.lineWrapping || (g = b(sn(ce(i, c.line))), i.iter(g, d.line + 1, function(O) {
3148
3148
  if (O == s.maxLine)
@@ -3150,7 +3150,7 @@ b`.split(/\n/).length != 3 ? function(e) {
3150
3150
  })), i.sel.contains(t.from, t.to) > -1 && Yt(e), gs(i, t, a, Go(e)), e.options.lineWrapping || (i.iter(g, c.line + t.text.length, function(O) {
3151
3151
  var B = Ui(O);
3152
3152
  B > s.maxLineLength && (s.maxLine = O, s.maxLineLength = B, s.maxLineChanged = !0, h = !1);
3153
- }), h && (e.curOp.updateMaxLine = !0)), Kc(i, c.line), oi(e, 400);
3153
+ }), h && (e.curOp.updateMaxLine = !0)), Yc(i, c.line), oi(e, 400);
3154
3154
  var v = t.text.length - (d.line - c.line) - 1;
3155
3155
  t.full ? Dt(e) : c.line == d.line && t.text.length == 1 && !cl(e.doc, t) ? $n(e, c.line, "text") : Dt(e, c.line, d.line + 1, v);
3156
3156
  var C = Pt(e, "changes"), _ = Pt(e, "change");
@@ -3216,7 +3216,7 @@ b`.split(/\n/).length != 3 ? function(e) {
3216
3216
  removeInner: function(e, t) {
3217
3217
  for (var a = e, i = e + t; a < i; ++a) {
3218
3218
  var s = this.lines[a];
3219
- this.height -= s.height, sf(s), gt(s, "delete");
3219
+ this.height -= s.height, uf(s), gt(s, "delete");
3220
3220
  }
3221
3221
  this.lines.splice(e, t);
3222
3222
  },
@@ -3350,7 +3350,7 @@ b`.split(/\n/).length != 3 ? function(e) {
3350
3350
  function Dl(e, t, a) {
3351
3351
  Sn(t) < (e.curOp && e.curOp.scrollTop || e.doc.scrollTop) && os(e, a);
3352
3352
  }
3353
- function sd(e, t, a, i) {
3353
+ function ud(e, t, a, i) {
3354
3354
  var s = new pi(e, a, i), c = e.cm;
3355
3355
  return c && s.noHScroll && (c.display.alignWidgets = !0), fi(e, t, "widget", function(d) {
3356
3356
  var h = d.widgets || (d.widgets = []);
@@ -3373,7 +3373,7 @@ b`.split(/\n/).length != 3 ? function(e) {
3373
3373
  }
3374
3374
  for (var i = null, s = null, c = 0; c < this.lines.length; ++c) {
3375
3375
  var d = this.lines[c], h = Jr(d.markedSpans, this);
3376
- e && !this.collapsed ? $n(e, b(d), "text") : e && (h.to != null && (s = b(d)), h.from != null && (i = b(d))), d.markedSpans = Yc(d.markedSpans, h), h.from == null && this.collapsed && !Mn(this.doc, d) && e && jt(d, wr(e.display));
3376
+ e && !this.collapsed ? $n(e, b(d), "text") : e && (h.to != null && (s = b(d)), h.from != null && (i = b(d))), d.markedSpans = Zc(d.markedSpans, h), h.from == null && this.collapsed && !Mn(this.doc, d) && e && jt(d, wr(e.display));
3377
3377
  }
3378
3378
  if (e && this.collapsed && !e.options.lineWrapping)
3379
3379
  for (var g = 0; g < this.lines.length; ++g) {
@@ -3418,7 +3418,7 @@ b`.split(/\n/).length != 3 ? function(e) {
3418
3418
  }, en(Wn);
3419
3419
  function Ar(e, t, a, i, s) {
3420
3420
  if (i && i.shared)
3421
- return od(e, t, a, i, s);
3421
+ return cd(e, t, a, i, s);
3422
3422
  if (e.cm && !e.cm.curOp)
3423
3423
  return mt(e.cm, Ar)(e, t, a, i, s);
3424
3424
  var c = new Wn(e, s), d = re(t, a);
@@ -3427,12 +3427,12 @@ b`.split(/\n/).length != 3 ? function(e) {
3427
3427
  if (c.replacedWith && (c.collapsed = !0, c.widgetNode = J("span", [c.replacedWith], "CodeMirror-widget"), i.handleMouseEvents || c.widgetNode.setAttribute("cm-ignore-events", "true"), i.insertLeft && (c.widgetNode.insertLeft = !0)), c.collapsed) {
3428
3428
  if (ko(e, t.line, t, a, c) || t.line != a.line && ko(e, a.line, t, a, c))
3429
3429
  throw new Error("Inserting collapsed marker partially overlapping an existing one");
3430
- Xc();
3430
+ Qc();
3431
3431
  }
3432
3432
  c.addToHistory && pl(e, { from: t, to: a, origin: "markText" }, e.sel, NaN);
3433
3433
  var h = t.line, g = e.cm, v;
3434
3434
  if (e.iter(h, a.line + 1, function(_) {
3435
- g && c.collapsed && !g.options.lineWrapping && sn(_) == g.display.maxLine && (v = !0), c.collapsed && h != t.line && jt(_, 0), Jc(_, new Bi(
3435
+ g && c.collapsed && !g.options.lineWrapping && sn(_) == g.display.maxLine && (v = !0), c.collapsed && h != t.line && jt(_, 0), ef(_, new Bi(
3436
3436
  c,
3437
3437
  h == t.line ? t.ch : null,
3438
3438
  h == a.line ? a.ch : null
@@ -3441,7 +3441,7 @@ b`.split(/\n/).length != 3 ? function(e) {
3441
3441
  Mn(e, _) && jt(_, 0);
3442
3442
  }), c.clearOnEnter && me(c, "beforeCursorEnter", function() {
3443
3443
  return c.clear();
3444
- }), c.readOnly && (Vc(), (e.history.done.length || e.history.undone.length) && e.clearHistory()), c.collapsed && (c.id = ++Ol, c.atomic = !0), g) {
3444
+ }), c.readOnly && (Jc(), (e.history.done.length || e.history.undone.length) && e.clearHistory()), c.collapsed && (c.id = ++Ol, c.atomic = !0), g) {
3445
3445
  if (v && (g.curOp.updateMaxLine = !0), c.collapsed)
3446
3446
  Dt(g, t.line, a.line + 1);
3447
3447
  else if (c.className || c.startStyle || c.endStyle || c.css || c.attributes || c.title)
@@ -3466,7 +3466,7 @@ b`.split(/\n/).length != 3 ? function(e) {
3466
3466
  }, gi.prototype.find = function(e, t) {
3467
3467
  return this.primary.find(e, t);
3468
3468
  }, en(gi);
3469
- function od(e, t, a, i, s) {
3469
+ function cd(e, t, a, i, s) {
3470
3470
  i = ke(i), i.shared = !1;
3471
3471
  var c = [Ar(e, t, a, i, s)], d = c[0], h = i.widgetNode;
3472
3472
  return Hn(e, function(g) {
@@ -3482,7 +3482,7 @@ b`.split(/\n/).length != 3 ? function(e) {
3482
3482
  return t.parent;
3483
3483
  });
3484
3484
  }
3485
- function ld(e, t) {
3485
+ function fd(e, t) {
3486
3486
  for (var a = 0; a < t.length; a++) {
3487
3487
  var i = t[a], s = i.find(), c = e.clipPos(s.from), d = e.clipPos(s.to);
3488
3488
  if (re(c, d)) {
@@ -3491,7 +3491,7 @@ b`.split(/\n/).length != 3 ? function(e) {
3491
3491
  }
3492
3492
  }
3493
3493
  }
3494
- function ud(e) {
3494
+ function dd(e) {
3495
3495
  for (var t = function(i) {
3496
3496
  var s = e[i], c = [s.primary.doc];
3497
3497
  Hn(s.primary.doc, function(g) {
@@ -3503,12 +3503,12 @@ b`.split(/\n/).length != 3 ? function(e) {
3503
3503
  }
3504
3504
  }, a = 0; a < e.length; a++) t(a);
3505
3505
  }
3506
- var cd = 0, Ot = function(e, t, a, i, s) {
3506
+ var hd = 0, Ot = function(e, t, a, i, s) {
3507
3507
  if (!(this instanceof Ot))
3508
3508
  return new Ot(e, t, a, i, s);
3509
3509
  a == null && (a = 0), hi.call(this, [new di([new yr("", null)])]), this.first = a, this.scrollTop = this.scrollLeft = 0, this.cantEdit = !1, this.cleanGeneration = 1, this.modeFrontier = this.highlightFrontier = a;
3510
3510
  var c = P(a, 0);
3511
- this.sel = zn(c), this.history = new na(null), this.id = ++cd, this.modeOption = t, this.lineSep = i, this.direction = s == "rtl" ? "rtl" : "ltr", this.extend = !1, typeof e == "string" && (e = this.splitLines(e)), gs(this, { from: c, to: c, text: e }), Ct(this, zn(c), ut);
3511
+ this.sel = zn(c), this.history = new na(null), this.id = ++hd, this.modeOption = t, this.lineSep = i, this.direction = s == "rtl" ? "rtl" : "ltr", this.extend = !1, typeof e == "string" && (e = this.splitLines(e)), gs(this, { from: c, to: c, text: e }), Ct(this, zn(c), ut);
3512
3512
  };
3513
3513
  Ot.prototype = qn(hi.prototype, {
3514
3514
  constructor: Ot,
@@ -3641,7 +3641,7 @@ b`.split(/\n/).length != 3 ? function(e) {
3641
3641
  var d = s.ranges[c];
3642
3642
  i[c] = { from: d.from(), to: d.to(), text: this.splitLines(e[c]), origin: a };
3643
3643
  }
3644
- for (var h = t && t != "end" && Jf(this, i, t), g = i.length - 1; g >= 0; g--)
3644
+ for (var h = t && t != "end" && ed(this, i, t), g = i.length - 1; g >= 0; g--)
3645
3645
  Er(this, i[g]);
3646
3646
  h ? bl(this, h) : this.cm && Cr(this.cm);
3647
3647
  }),
@@ -3758,7 +3758,7 @@ b`.split(/\n/).length != 3 ? function(e) {
3758
3758
  });
3759
3759
  }),
3760
3760
  addLineWidget: vt(function(e, t, a) {
3761
- return sd(this, e, t, a);
3761
+ return ud(this, e, t, a);
3762
3762
  }),
3763
3763
  removeLineWidget: function(e) {
3764
3764
  e.clear();
@@ -3842,14 +3842,14 @@ b`.split(/\n/).length != 3 ? function(e) {
3842
3842
  var t = this.first, a = this.first + this.size;
3843
3843
  e.from != null && e.from > t && (t = e.from), e.to != null && e.to < a && (a = e.to);
3844
3844
  var i = new Ot(Xr(this, t, a), e.mode || this.modeOption, t, this.lineSep, this.direction);
3845
- return e.sharedHist && (i.history = this.history), (this.linked || (this.linked = [])).push({ doc: i, sharedHist: e.sharedHist }), i.linked = [{ doc: this, isParent: !0, sharedHist: e.sharedHist }], ld(i, Nl(this)), i;
3845
+ return e.sharedHist && (i.history = this.history), (this.linked || (this.linked = [])).push({ doc: i, sharedHist: e.sharedHist }), i.linked = [{ doc: this, isParent: !0, sharedHist: e.sharedHist }], fd(i, Nl(this)), i;
3846
3846
  },
3847
3847
  unlinkDoc: function(e) {
3848
3848
  if (e instanceof Ve && (e = e.doc), this.linked)
3849
3849
  for (var t = 0; t < this.linked.length; ++t) {
3850
3850
  var a = this.linked[t];
3851
3851
  if (a.doc == e) {
3852
- this.linked.splice(t, 1), e.unlinkDoc(this), ud(Nl(this));
3852
+ this.linked.splice(t, 1), e.unlinkDoc(this), dd(Nl(this));
3853
3853
  break;
3854
3854
  }
3855
3855
  }
@@ -3879,11 +3879,11 @@ b`.split(/\n/).length != 3 ? function(e) {
3879
3879
  setDirection: vt(function(e) {
3880
3880
  e != "rtl" && (e = "ltr"), e != this.direction && (this.direction = e, this.iter(function(t) {
3881
3881
  return t.order = null;
3882
- }), this.cm && Qf(this.cm));
3882
+ }), this.cm && td(this.cm));
3883
3883
  })
3884
3884
  }), Ot.prototype.eachLine = Ot.prototype.iter;
3885
3885
  var Fl = 0;
3886
- function fd(e) {
3886
+ function pd(e) {
3887
3887
  var t = this;
3888
3888
  if (Rl(t), !(Ze(t, e) || Cn(t.display, e))) {
3889
3889
  St(e), m && (Fl = +/* @__PURE__ */ new Date());
@@ -3944,7 +3944,7 @@ b`.split(/\n/).length != 3 ? function(e) {
3944
3944
  }
3945
3945
  }
3946
3946
  }
3947
- function dd(e, t) {
3947
+ function gd(e, t) {
3948
3948
  if (m && (!e.state.draggingText || +/* @__PURE__ */ new Date() - Fl < 100)) {
3949
3949
  On(t);
3950
3950
  return;
@@ -3954,7 +3954,7 @@ b`.split(/\n/).length != 3 ? function(e) {
3954
3954
  a.src = "data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==", z && (a.width = a.height = 1, e.display.wrapper.appendChild(a), a._top = a.offsetTop), t.dataTransfer.setDragImage(a, 0, 0), z && a.parentNode.removeChild(a);
3955
3955
  }
3956
3956
  }
3957
- function hd(e, t) {
3957
+ function md(e, t) {
3958
3958
  var a = Yn(e, t);
3959
3959
  if (a) {
3960
3960
  var i = document.createDocumentFragment();
@@ -3977,20 +3977,20 @@ b`.split(/\n/).length != 3 ? function(e) {
3977
3977
  }
3978
3978
  }
3979
3979
  var $l = !1;
3980
- function pd() {
3981
- $l || (gd(), $l = !0);
3980
+ function vd() {
3981
+ $l || (yd(), $l = !0);
3982
3982
  }
3983
- function gd() {
3983
+ function yd() {
3984
3984
  var e;
3985
3985
  me(window, "resize", function() {
3986
3986
  e == null && (e = setTimeout(function() {
3987
- e = null, Ml(md);
3987
+ e = null, Ml(bd);
3988
3988
  }, 100));
3989
3989
  }), me(window, "blur", function() {
3990
3990
  return Ml(Sr);
3991
3991
  });
3992
3992
  }
3993
- function md(e) {
3993
+ function bd(e) {
3994
3994
  var t = e.display;
3995
3995
  t.cachedCharWidth = t.cachedTextHeight = t.cachedPaddingH = null, t.scrollbarsClipped = !1, e.setSize();
3996
3996
  }
@@ -4151,7 +4151,7 @@ b`.split(/\n/).length != 3 ? function(e) {
4151
4151
  "Ctrl-Down": "goDocEnd",
4152
4152
  fallthrough: ["basic", "emacsy"]
4153
4153
  }, _n.default = ne ? _n.macDefault : _n.pcDefault;
4154
- function vd(e) {
4154
+ function xd(e) {
4155
4155
  var t = e.split(/-(?!$)/);
4156
4156
  e = t[t.length - 1];
4157
4157
  for (var a, i, s, c, d = 0; d < t.length - 1; d++) {
@@ -4169,7 +4169,7 @@ b`.split(/\n/).length != 3 ? function(e) {
4169
4169
  }
4170
4170
  return a && (e = "Alt-" + e), i && (e = "Ctrl-" + e), c && (e = "Cmd-" + e), s && (e = "Shift-" + e), e;
4171
4171
  }
4172
- function yd(e) {
4172
+ function wd(e) {
4173
4173
  var t = {};
4174
4174
  for (var a in e)
4175
4175
  if (e.hasOwnProperty(a)) {
@@ -4180,7 +4180,7 @@ b`.split(/\n/).length != 3 ? function(e) {
4180
4180
  delete e[a];
4181
4181
  continue;
4182
4182
  }
4183
- for (var s = xt(a.split(" "), vd), c = 0; c < s.length; c++) {
4183
+ for (var s = xt(a.split(" "), xd), c = 0; c < s.length; c++) {
4184
4184
  var d = void 0, h = void 0;
4185
4185
  c == s.length - 1 ? (h = s.join(" "), d = i) : (h = s.slice(0, c + 1).join(" "), d = "...");
4186
4186
  var g = t[h];
@@ -4276,7 +4276,7 @@ b`.split(/\n/).length != 3 ? function(e) {
4276
4276
  }
4277
4277
  return new P(i, s < 0 ? a.text.length : 0, s < 0 ? "before" : "after");
4278
4278
  }
4279
- function bd(e, t, a, i) {
4279
+ function kd(e, t, a, i) {
4280
4280
  var s = Me(t, e.doc.direction);
4281
4281
  if (!s)
4282
4282
  return xs(t, a, i);
@@ -4389,7 +4389,7 @@ b`.split(/\n/).length != 3 ? function(e) {
4389
4389
  goLineEnd: function(e) {
4390
4390
  return e.extendSelectionsBy(
4391
4391
  function(t) {
4392
- return xd(e, t.head.line);
4392
+ return Sd(e, t.head.line);
4393
4393
  },
4394
4394
  { origin: "+move", bias: -1 }
4395
4395
  );
@@ -4545,8 +4545,8 @@ b`.split(/\n/).length != 3 ? function(e) {
4545
4545
  var a = ce(e.doc, t), i = sn(a);
4546
4546
  return i != a && (t = b(i)), ws(!0, e, i, t, 1);
4547
4547
  }
4548
- function xd(e, t) {
4549
- var a = ce(e.doc, t), i = nf(a);
4548
+ function Sd(e, t) {
4549
+ var a = ce(e.doc, t), i = sf(a);
4550
4550
  return i != a && (t = b(i)), ws(!0, e, a, t, -1);
4551
4551
  }
4552
4552
  function Wl(e, t) {
@@ -4569,7 +4569,7 @@ b`.split(/\n/).length != 3 ? function(e) {
4569
4569
  }
4570
4570
  return s;
4571
4571
  }
4572
- function wd(e, t, a) {
4572
+ function Cd(e, t, a) {
4573
4573
  for (var i = 0; i < e.state.keyMaps.length; i++) {
4574
4574
  var s = Dr(t, e.state.keyMaps[i], a, e);
4575
4575
  if (s)
@@ -4577,13 +4577,13 @@ b`.split(/\n/).length != 3 ? function(e) {
4577
4577
  }
4578
4578
  return e.options.extraKeys && Dr(t, e.options.extraKeys, a, e) || Dr(t, e.options.keyMap, a, e);
4579
4579
  }
4580
- var kd = new lt();
4580
+ var Td = new lt();
4581
4581
  function bi(e, t, a, i) {
4582
4582
  var s = e.state.keySeq;
4583
4583
  if (s) {
4584
4584
  if (Pl(t))
4585
4585
  return "handled";
4586
- if (/\'$/.test(t) ? e.state.keySeq = null : kd.set(50, function() {
4586
+ if (/\'$/.test(t) ? e.state.keySeq = null : Td.set(50, function() {
4587
4587
  e.state.keySeq == s && (e.state.keySeq = null, e.display.input.reset());
4588
4588
  }), jl(e, s + " " + t, a, i))
4589
4589
  return !0;
@@ -4591,7 +4591,7 @@ b`.split(/\n/).length != 3 ? function(e) {
4591
4591
  return jl(e, t, a, i);
4592
4592
  }
4593
4593
  function jl(e, t, a, i) {
4594
- var s = wd(e, t, i);
4594
+ var s = Cd(e, t, i);
4595
4595
  return s == "multi" && (e.state.keySeq = t), s == "handled" && gt(e, "keyHandled", e, t, a), (s == "handled" || s == "multi") && (St(a), rs(e)), !!s;
4596
4596
  }
4597
4597
  function Ul(e, t) {
@@ -4605,7 +4605,7 @@ b`.split(/\n/).length != 3 ? function(e) {
4605
4605
  return ca(e, i);
4606
4606
  }) : !1;
4607
4607
  }
4608
- function Sd(e, t, a) {
4608
+ function _d(e, t, a) {
4609
4609
  return bi(e, "'" + a + "'", t, function(i) {
4610
4610
  return ca(e, i, !0);
4611
4611
  });
@@ -4618,10 +4618,10 @@ b`.split(/\n/).length != 3 ? function(e) {
4618
4618
  var a = e.keyCode;
4619
4619
  t.display.shift = a == 16 || e.shiftKey;
4620
4620
  var i = Ul(t, e);
4621
- z && (ks = i ? a : null, !i && a == 88 && !Pi && (ne ? e.metaKey : e.ctrlKey) && t.replaceSelection("", null, "cut")), u && !ne && !i && a == 46 && e.shiftKey && !e.ctrlKey && document.execCommand && document.execCommand("cut"), a == 18 && !/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className) && Cd(t);
4621
+ z && (ks = i ? a : null, !i && a == 88 && !Pi && (ne ? e.metaKey : e.ctrlKey) && t.replaceSelection("", null, "cut")), u && !ne && !i && a == 46 && e.shiftKey && !e.ctrlKey && document.execCommand && document.execCommand("cut"), a == 18 && !/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className) && Ld(t);
4622
4622
  }
4623
4623
  }
4624
- function Cd(e) {
4624
+ function Ld(e) {
4625
4625
  var t = e.display.lineDiv;
4626
4626
  K(t, "CodeMirror-crosshair");
4627
4627
  function a(i) {
@@ -4642,18 +4642,18 @@ b`.split(/\n/).length != 3 ? function(e) {
4642
4642
  }
4643
4643
  if (!(z && (!e.which || e.which < 10) && Ul(t, e))) {
4644
4644
  var s = String.fromCharCode(i ?? a);
4645
- s != "\b" && (Sd(t, e, s) || t.display.input.onKeyPress(e));
4645
+ s != "\b" && (_d(t, e, s) || t.display.input.onKeyPress(e));
4646
4646
  }
4647
4647
  }
4648
4648
  }
4649
- var Td = 400, Ss = function(e, t, a) {
4649
+ var Ed = 400, Ss = function(e, t, a) {
4650
4650
  this.time = e, this.pos = t, this.button = a;
4651
4651
  };
4652
4652
  Ss.prototype.compare = function(e, t, a) {
4653
- return this.time + Td > e && re(t, this.pos) == 0 && a == this.button;
4653
+ return this.time + Ed > e && re(t, this.pos) == 0 && a == this.button;
4654
4654
  };
4655
4655
  var xi, wi;
4656
- function _d(e, t) {
4656
+ function Id(e, t) {
4657
4657
  var a = +/* @__PURE__ */ new Date();
4658
4658
  return wi && wi.compare(a, e, t) ? (xi = wi = null, "triple") : xi && xi.compare(a, e, t) ? (wi = new Ss(a, e, t), xi = null, "double") : (xi = new Ss(a, e, t), wi = null, "single");
4659
4659
  }
@@ -4667,14 +4667,14 @@ b`.split(/\n/).length != 3 ? function(e) {
4667
4667
  return;
4668
4668
  }
4669
4669
  if (!Cs(t, e)) {
4670
- var i = Yn(t, e), s = tn(e), c = i ? _d(i, s) : "single";
4671
- Z(t).focus(), s == 1 && t.state.selectingText && t.state.selectingText(e), !(i && Ld(t, s, i, c, e)) && (s == 1 ? i ? Id(t, i, c, e) : Gr(e) == a.scroller && St(e) : s == 2 ? (i && ia(t.doc, i), setTimeout(function() {
4670
+ var i = Yn(t, e), s = tn(e), c = i ? Id(i, s) : "single";
4671
+ Z(t).focus(), s == 1 && t.state.selectingText && t.state.selectingText(e), !(i && Ad(t, s, i, c, e)) && (s == 1 ? i ? Od(t, i, c, e) : Gr(e) == a.scroller && St(e) : s == 2 ? (i && ia(t.doc, i), setTimeout(function() {
4672
4672
  return a.input.focus();
4673
4673
  }, 20)) : s == 3 && (Fe ? t.display.input.onContextMenu(e) : is(t)));
4674
4674
  }
4675
4675
  }
4676
4676
  }
4677
- function Ld(e, t, a, i, s) {
4677
+ function Ad(e, t, a, i, s) {
4678
4678
  var c = "Click";
4679
4679
  return i == "double" ? c = "Double" + c : i == "triple" && (c = "Triple" + c), c = (t == 1 ? "Left" : t == 2 ? "Middle" : "Right") + c, bi(e, zl(c, s), s, function(d) {
4680
4680
  if (typeof d == "string" && (d = yi[d]), !d)
@@ -4688,7 +4688,7 @@ b`.split(/\n/).length != 3 ? function(e) {
4688
4688
  return h;
4689
4689
  });
4690
4690
  }
4691
- function Ed(e, t, a) {
4691
+ function Dd(e, t, a) {
4692
4692
  var i = e.getOption("configureMouse"), s = i ? i(e, t, a) : {};
4693
4693
  if (s.unit == null) {
4694
4694
  var c = ue ? a.shiftKey && a.metaKey : a.altKey;
@@ -4696,12 +4696,12 @@ b`.split(/\n/).length != 3 ? function(e) {
4696
4696
  }
4697
4697
  return (s.extend == null || e.doc.extend) && (s.extend = e.doc.extend || a.shiftKey), s.addNew == null && (s.addNew = ne ? a.metaKey : a.ctrlKey), s.moveOnDrag == null && (s.moveOnDrag = !(ne ? a.altKey : a.ctrlKey)), s;
4698
4698
  }
4699
- function Id(e, t, a, i) {
4699
+ function Od(e, t, a, i) {
4700
4700
  m ? setTimeout(fe(Xo, e), 0) : e.curOp.focus = M(oe(e));
4701
- var s = Ed(e, a, i), c = e.doc.sel, d;
4702
- e.options.dragDrop && Ma && !e.isReadOnly() && a == "single" && (d = c.contains(t)) > -1 && (re((d = c.ranges[d]).from(), t) < 0 || t.xRel > 0) && (re(d.to(), t) > 0 || t.xRel < 0) ? Ad(e, i, t, s) : Dd(e, i, t, s);
4701
+ var s = Dd(e, a, i), c = e.doc.sel, d;
4702
+ e.options.dragDrop && Ma && !e.isReadOnly() && a == "single" && (d = c.contains(t)) > -1 && (re((d = c.ranges[d]).from(), t) < 0 || t.xRel > 0) && (re(d.to(), t) > 0 || t.xRel < 0) ? Nd(e, i, t, s) : Fd(e, i, t, s);
4703
4703
  }
4704
- function Ad(e, t, a, i) {
4704
+ function Nd(e, t, a, i) {
4705
4705
  var s = e.display, c = !1, d = mt(e, function(v) {
4706
4706
  S && (s.scroller.draggable = !1), e.state.draggingText = !1, e.state.delayingBlurEvent && (e.hasFocus() ? e.state.delayingBlurEvent = !1 : is(e)), kt(s.wrapper.ownerDocument, "mouseup", d), kt(s.wrapper.ownerDocument, "mousemove", h), kt(s.scroller, "dragstart", g), kt(s.scroller, "drop", d), c || (St(v), i.addNew || ia(e.doc, a, null, null, i.extend), S && !D || m && k == 9 ? setTimeout(function() {
4707
4707
  s.wrapper.ownerDocument.body.focus({ preventScroll: !0 }), s.input.focus();
@@ -4725,7 +4725,7 @@ b`.split(/\n/).length != 3 ? function(e) {
4725
4725
  var i = a(e, t);
4726
4726
  return new ze(i.from, i.to);
4727
4727
  }
4728
- function Dd(e, t, a, i) {
4728
+ function Fd(e, t, a, i) {
4729
4729
  m && is(e);
4730
4730
  var s = e.display, c = e.doc;
4731
4731
  St(t);
@@ -4762,7 +4762,7 @@ b`.split(/\n/).length != 3 ? function(e) {
4762
4762
  var Ft = d, wt = Xl(e, te, i.unit), dt = Ft.anchor, st;
4763
4763
  re(wt.anchor, dt) > 0 ? (st = wt.head, dt = vr(Ft.from(), wt.anchor)) : (st = wt.anchor, dt = At(Ft.to(), wt.head));
4764
4764
  var tt = g.ranges.slice(0);
4765
- tt[h] = Od(e, new ze(Ce(c, dt), st)), Ct(c, ln(e, tt, h), Mt);
4765
+ tt[h] = Rd(e, new ze(Ce(c, dt), st)), Ct(c, ln(e, tt, h), Mt);
4766
4766
  }
4767
4767
  }
4768
4768
  var O = s.wrapper.getBoundingClientRect(), B = 0;
@@ -4790,7 +4790,7 @@ b`.split(/\n/).length != 3 ? function(e) {
4790
4790
  }), ae = mt(e, Y);
4791
4791
  e.state.selectingText = ae, me(s.wrapper.ownerDocument, "mousemove", ee), me(s.wrapper.ownerDocument, "mouseup", ae);
4792
4792
  }
4793
- function Od(e, t) {
4793
+ function Rd(e, t) {
4794
4794
  var a = t.anchor, i = t.head, s = ce(e.doc, a.line);
4795
4795
  if (re(a, i) == 0 && a.sticky == i.sticky)
4796
4796
  return t;
@@ -4842,9 +4842,9 @@ b`.split(/\n/).length != 3 ? function(e) {
4842
4842
  return Yl(e, t, "gutterClick", !0);
4843
4843
  }
4844
4844
  function Jl(e, t) {
4845
- Cn(e.display, t) || Nd(e, t) || Ze(e, t, "contextmenu") || Fe || e.display.input.onContextMenu(t);
4845
+ Cn(e.display, t) || Md(e, t) || Ze(e, t, "contextmenu") || Fe || e.display.input.onContextMenu(t);
4846
4846
  }
4847
- function Nd(e, t) {
4847
+ function Md(e, t) {
4848
4848
  return Pt(e, "gutterContextMenu") ? Yl(e, t, "gutterContextMenu", !1) : !1;
4849
4849
  }
4850
4850
  function Ql(e) {
@@ -4853,7 +4853,7 @@ b`.split(/\n/).length != 3 ? function(e) {
4853
4853
  var Nr = { toString: function() {
4854
4854
  return "CodeMirror.Init";
4855
4855
  } }, Zl = {}, fa = {};
4856
- function Fd(e) {
4856
+ function $d(e) {
4857
4857
  var t = e.optionHandlers;
4858
4858
  function a(i, s, c, d) {
4859
4859
  e.defaults[i] = s, c && (t[i] = d ? function(h, g, v) {
@@ -4883,7 +4883,7 @@ b`.split(/\n/).length != 3 ? function(e) {
4883
4883
  }
4884
4884
  }), a("specialChars", /[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g, function(i, s, c) {
4885
4885
  i.state.specialChars = new RegExp(s.source + (s.test(" ") ? "" : "| "), "g"), c != Nr && i.refresh();
4886
- }), a("specialCharPlaceholder", uf, function(i) {
4886
+ }), a("specialCharPlaceholder", df, function(i) {
4887
4887
  return i.refresh();
4888
4888
  }, !0), a("electricChars", !0), a("inputStyle", V ? "contenteditable" : "textarea", function() {
4889
4889
  throw new Error("inputStyle can not (yet) be changed in a running editor");
@@ -4898,7 +4898,7 @@ b`.split(/\n/).length != 3 ? function(e) {
4898
4898
  }, !0), a("keyMap", "default", function(i, s, c) {
4899
4899
  var d = ua(s), h = c != Nr && ua(c);
4900
4900
  h && h.detach && h.detach(i, d), d.attach && d.attach(i, h || null);
4901
- }), a("extraKeys", null), a("configureMouse", null), a("lineWrapping", !1, Md, !0), a("gutters", [], function(i, s) {
4901
+ }), a("extraKeys", null), a("configureMouse", null), a("lineWrapping", !1, zd, !0), a("gutters", [], function(i, s) {
4902
4902
  i.display.gutterSpecs = ds(s, i.options.lineNumbers), li(i);
4903
4903
  }, !0), a("fixedGutter", !0, function(i, s) {
4904
4904
  i.display.gutters.style.left = s ? es(i.display) + "px" : "0", i.refresh();
@@ -4916,7 +4916,7 @@ b`.split(/\n/).length != 3 ? function(e) {
4916
4916
  s = s === "" ? null : s, i.display.input.screenReaderLabelChanged(s);
4917
4917
  }), a("disableInput", !1, function(i, s) {
4918
4918
  s || i.display.input.reset();
4919
- }, !0), a("dragDrop", !0, Rd), a("allowDropFileTypes", null), a("cursorBlinkRate", 530), a("cursorScrollMargin", 0), a("cursorHeight", 1, ni, !0), a("singleCursorHeightPerLine", !0, ni, !0), a("workTime", 100), a("workDelay", 100), a("flattenSpans", !0, ui, !0), a("addModeClass", !1, ui, !0), a("pollInterval", 100), a("undoDepth", 200, function(i, s) {
4919
+ }, !0), a("dragDrop", !0, Pd), a("allowDropFileTypes", null), a("cursorBlinkRate", 530), a("cursorScrollMargin", 0), a("cursorHeight", 1, ni, !0), a("singleCursorHeightPerLine", !0, ni, !0), a("workTime", 100), a("workDelay", 100), a("flattenSpans", !0, ui, !0), a("addModeClass", !1, ui, !0), a("pollInterval", 100), a("undoDepth", 200, function(i, s) {
4920
4920
  return i.doc.history.undoDepth = s;
4921
4921
  }), a("historyEventDelay", 1250), a("viewportMargin", 10, function(i) {
4922
4922
  return i.refresh();
@@ -4928,14 +4928,14 @@ b`.split(/\n/).length != 3 ? function(e) {
4928
4928
  return i.doc.setDirection(s);
4929
4929
  }, !0), a("phrases", null);
4930
4930
  }
4931
- function Rd(e, t, a) {
4931
+ function Pd(e, t, a) {
4932
4932
  var i = a && a != Nr;
4933
4933
  if (!t != !i) {
4934
4934
  var s = e.display.dragFunctions, c = t ? me : kt;
4935
4935
  c(e.display.scroller, "dragstart", s.start), c(e.display.scroller, "dragenter", s.enter), c(e.display.scroller, "dragover", s.over), c(e.display.scroller, "dragleave", s.leave), c(e.display.scroller, "drop", s.drop);
4936
4936
  }
4937
4937
  }
4938
- function Md(e) {
4938
+ function zd(e) {
4939
4939
  e.options.lineWrapping ? (K(e.display.wrapper, "CodeMirror-wrap"), e.display.sizer.style.minWidth = "", e.display.sizerWidth = null) : ($e(e.display.wrapper, "CodeMirror-wrap"), Ua(e)), ts(e), Dt(e), ti(e), setTimeout(function() {
4940
4940
  return Tr(e);
4941
4941
  }, 100);
@@ -4947,7 +4947,7 @@ b`.split(/\n/).length != 3 ? function(e) {
4947
4947
  this.options = t = t ? ke(t) : {}, ke(Zl, t, !1);
4948
4948
  var i = t.value;
4949
4949
  typeof i == "string" ? i = new Ot(i, t.mode, null, t.lineSeparator, t.direction) : t.mode && (i.modeOption = t.mode), this.doc = i;
4950
- var s = new Ve.inputStyles[t.inputStyle](this), c = this.display = new Xf(e, i, s, t);
4950
+ var s = new Ve.inputStyles[t.inputStyle](this), c = this.display = new Qf(e, i, s, t);
4951
4951
  c.wrapper.CodeMirror = this, Ql(this), t.lineWrapping && (this.display.wrapper.className += " CodeMirror-wrap"), tl(this), this.state = {
4952
4952
  keyMaps: [],
4953
4953
  // stores maps added by addKeyMap
@@ -4972,7 +4972,7 @@ b`.split(/\n/).length != 3 ? function(e) {
4972
4972
  specialChars: null
4973
4973
  }, t.autofocus && !V && c.input.focus(), m && k < 11 && setTimeout(function() {
4974
4974
  return a.display.input.reset(!0);
4975
- }, 20), $d(this), pd(), er(this), this.curOp.forceUpdate = !0, fl(this, i), t.autofocus && !V || this.hasFocus() ? setTimeout(function() {
4975
+ }, 20), Bd(this), vd(), er(this), this.curOp.forceUpdate = !0, fl(this, i), t.autofocus && !V || this.hasFocus() ? setTimeout(function() {
4976
4976
  a.hasFocus() && !a.state.focused && as(a);
4977
4977
  }, 20) : Sr(this);
4978
4978
  for (var d in fa)
@@ -4983,7 +4983,7 @@ b`.split(/\n/).length != 3 ? function(e) {
4983
4983
  tr(this), S && t.lineWrapping && getComputedStyle(c.lineDiv).textRendering == "optimizelegibility" && (c.lineDiv.style.textRendering = "auto");
4984
4984
  }
4985
4985
  Ve.defaults = Zl, Ve.optionHandlers = fa;
4986
- function $d(e) {
4986
+ function Bd(e) {
4987
4987
  var t = e.display;
4988
4988
  me(t.scroller, "mousedown", mt(e, Vl)), m && k < 11 ? me(t.scroller, "dblclick", mt(e, function(g) {
4989
4989
  if (!Ze(e, g)) {
@@ -5051,12 +5051,12 @@ b`.split(/\n/).length != 3 ? function(e) {
5051
5051
  Ze(e, g) || On(g);
5052
5052
  },
5053
5053
  over: function(g) {
5054
- Ze(e, g) || (hd(e, g), On(g));
5054
+ Ze(e, g) || (md(e, g), On(g));
5055
5055
  },
5056
5056
  start: function(g) {
5057
- return dd(e, g);
5057
+ return gd(e, g);
5058
5058
  },
5059
- drop: mt(e, fd),
5059
+ drop: mt(e, pd),
5060
5060
  leave: function(g) {
5061
5061
  Ze(e, g) || Rl(e);
5062
5062
  }
@@ -5175,7 +5175,7 @@ b`.split(/\n/).length != 3 ? function(e) {
5175
5175
  var e = w("textarea", null, null, "position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"), t = w("div", [e], null, "overflow: hidden; position: relative; width: 3px; height: 0px;");
5176
5176
  return S ? e.style.width = "1000px" : e.setAttribute("wrap", "off"), N && (e.style.border = "1px solid black"), t;
5177
5177
  }
5178
- function Pd(e) {
5178
+ function Hd(e) {
5179
5179
  var t = e.optionHandlers, a = e.helpers = {};
5180
5180
  e.prototype = {
5181
5181
  constructor: e,
@@ -5343,7 +5343,7 @@ b`.split(/\n/).length != 3 ? function(e) {
5343
5343
  var _ = Math.max(g.wrapper.clientHeight, this.doc.height), F = Math.max(g.sizer.clientWidth, g.lineSpace.clientWidth);
5344
5344
  (d == "above" || i.bottom + s.offsetHeight > _) && i.top > s.offsetHeight ? v = i.top - s.offsetHeight : i.bottom + s.offsetHeight <= _ && (v = i.bottom), C + s.offsetWidth > F && (C = F - s.offsetWidth);
5345
5345
  }
5346
- s.style.top = v + "px", s.style.left = s.style.right = "", h == "right" ? (C = g.sizer.clientWidth - s.offsetWidth, s.style.right = "0px") : (h == "left" ? C = 0 : h == "middle" && (C = (g.sizer.clientWidth - s.offsetWidth) / 2), s.style.left = C + "px"), c && Rf(this, { left: C, top: v, right: C + s.offsetWidth, bottom: v + s.offsetHeight });
5346
+ s.style.top = v + "px", s.style.left = s.style.right = "", h == "right" ? (C = g.sizer.clientWidth - s.offsetWidth, s.style.right = "0px") : (h == "left" ? C = 0 : h == "middle" && (C = (g.sizer.clientWidth - s.offsetWidth) / 2), s.style.left = C + "px"), c && Pf(this, { left: C, top: v, right: C + s.offsetWidth, bottom: v + s.offsetHeight });
5347
5347
  },
5348
5348
  triggerOnKeyDown: Lt(ql),
5349
5349
  triggerOnKeyPress: Lt(Kl),
@@ -5442,7 +5442,7 @@ b`.split(/\n/).length != 3 ? function(e) {
5442
5442
  };
5443
5443
  },
5444
5444
  scrollIntoView: Lt(function(i, s) {
5445
- i == null ? (i = { from: this.doc.sel.primary().head, to: null }, s == null && (s = this.options.cursorScrollMargin)) : typeof i == "number" ? i = { from: P(i, 0), to: null } : i.from == null && (i = { from: i, to: null }), i.to || (i.to = i.from), i.margin = s || 0, i.from.line != null ? Mf(this, i) : Jo(this, i.from, i.to, i.margin);
5445
+ i == null ? (i = { from: this.doc.sel.primary().head, to: null }, s == null && (s = this.options.cursorScrollMargin)) : typeof i == "number" ? i = { from: P(i, 0), to: null } : i.from == null && (i = { from: i, to: null }), i.to || (i.to = i.from), i.margin = s || 0, i.from.line != null ? zf(this, i) : Jo(this, i.from, i.to, i.margin);
5446
5446
  }),
5447
5447
  setSize: Lt(function(i, s) {
5448
5448
  var c = this, d = function(g) {
@@ -5516,7 +5516,7 @@ b`.split(/\n/).length != 3 ? function(e) {
5516
5516
  var ve = a > 0 ? le >= 55296 && le < 56320 : le >= 56320 && le < 57343;
5517
5517
  te = new P(t.line, Math.max(0, Math.min(h.text.length, t.ch + a * (ve ? 2 : 1))), -a);
5518
5518
  }
5519
- } else s ? te = bd(e.cm, h, t, a) : te = xs(h, t, a);
5519
+ } else s ? te = kd(e.cm, h, t, a) : te = xs(h, t, a);
5520
5520
  if (te == null)
5521
5521
  if (!ae && v())
5522
5522
  t = ws(s, e.cm, h, t.line, g);
@@ -5696,7 +5696,7 @@ b`.split(/\n/).length != 3 ? function(e) {
5696
5696
  }, He.prototype.pollSelection = function() {
5697
5697
  if (!(this.readDOMTimeout != null || this.gracePeriod || !this.selectionChanged())) {
5698
5698
  var e = this.getSelection(), t = this.cm;
5699
- if (H && L && this.cm.display.gutterSpecs.length && zd(e.anchorNode)) {
5699
+ if (H && L && this.cm.display.gutterSpecs.length && Wd(e.anchorNode)) {
5700
5700
  this.cm.triggerOnKeyDown({ type: "keydown", keyCode: 8, preventDefault: Math.abs }), this.blur(), this.focus();
5701
5701
  return;
5702
5702
  }
@@ -5718,7 +5718,7 @@ b`.split(/\n/).length != 3 ? function(e) {
5718
5718
  var g = Jn(e, s.line), v, C;
5719
5719
  if (g == t.view.length - 1 ? (v = t.viewTo - 1, C = t.lineDiv.lastChild) : (v = b(t.view[g + 1].line) - 1, C = t.view[g + 1].node.previousSibling), !h)
5720
5720
  return !1;
5721
- for (var _ = e.doc.splitLines(Bd(e, h, C, d, v)), F = wn(e.doc, P(d, 0), P(v, ce(e.doc, v).text.length)); _.length > 1 && F.length > 1; )
5721
+ for (var _ = e.doc.splitLines(jd(e, h, C, d, v)), F = wn(e.doc, P(d, 0), P(v, ce(e.doc, v).text.length)); _.length > 1 && F.length > 1; )
5722
5722
  if (be(_) == be(F))
5723
5723
  _.pop(), F.pop(), v--;
5724
5724
  else if (_[0] == F[0])
@@ -5781,7 +5781,7 @@ b`.split(/\n/).length != 3 ? function(e) {
5781
5781
  var g = $o(s.map, t.ch, d);
5782
5782
  return g.offset = g.collapse == "right" ? g.end : g.start, g;
5783
5783
  }
5784
- function zd(e) {
5784
+ function Wd(e) {
5785
5785
  for (var t = e; t; t = t.parentNode)
5786
5786
  if (/CodeMirror-gutter-wrapper/.test(t.className))
5787
5787
  return !0;
@@ -5790,7 +5790,7 @@ b`.split(/\n/).length != 3 ? function(e) {
5790
5790
  function Fr(e, t) {
5791
5791
  return t && (e.bad = !0), e;
5792
5792
  }
5793
- function Bd(e, t, a, i, s) {
5793
+ function jd(e, t, a, i, s) {
5794
5794
  var c = "", d = !1, h = e.doc.lineSeparator(), g = !1;
5795
5795
  function v(O) {
5796
5796
  return function(B) {
@@ -5847,10 +5847,10 @@ b`.split(/\n/).length != 3 ? function(e) {
5847
5847
  for (var s = 0; s < e.display.view.length; s++) {
5848
5848
  var c = e.display.view[s];
5849
5849
  if (c.node == i)
5850
- return Hd(c, t, a);
5850
+ return Ud(c, t, a);
5851
5851
  }
5852
5852
  }
5853
- function Hd(e, t, a) {
5853
+ function Ud(e, t, a) {
5854
5854
  var i = e.text.firstChild, s = !1;
5855
5855
  if (!t || !A(i, t))
5856
5856
  return Fr(P(b(e.line), 0), !0);
@@ -6068,7 +6068,7 @@ b`.split(/\n/).length != 3 ? function(e) {
6068
6068
  e || this.reset(), this.textarea.disabled = e == "nocursor", this.textarea.readOnly = !!e;
6069
6069
  }, rt.prototype.setUneditable = function() {
6070
6070
  }, rt.prototype.needsContentAttribute = !1;
6071
- function Wd(e, t) {
6071
+ function qd(e, t) {
6072
6072
  if (t = t ? ke(t) : {}, t.value = e.value, !t.tabindex && e.tabIndex && (t.tabindex = e.tabIndex), !t.placeholder && e.placeholder && (t.placeholder = e.placeholder), t.autofocus == null) {
6073
6073
  var a = M(Te(e));
6074
6074
  t.autofocus = a == e || e.getAttribute("autofocus") != null && a == document.body;
@@ -6102,13 +6102,13 @@ b`.split(/\n/).length != 3 ? function(e) {
6102
6102
  );
6103
6103
  return h;
6104
6104
  }
6105
- function jd(e) {
6106
- e.off = kt, e.on = me, e.wheelEventPixels = Yf, e.Doc = Ot, e.splitLines = Jt, e.countColumn = _e, e.findColumn = ft, e.isWordChar = ye, e.Pass = Ue, e.signal = Qe, e.Line = yr, e.changeEnd = Bn, e.scrollbarModel = el, e.Pos = P, e.cmpPos = re, e.modes = dr, e.mimeModes = rn, e.resolveMode = hr, e.getMode = pr, e.modeExtensions = Rn, e.extendMode = gr, e.copyState = dn, e.startState = mr, e.innerMode = Vr, e.commands = yi, e.keyMap = _n, e.keyName = Bl, e.isModifierKey = Pl, e.lookupKey = Dr, e.normalizeKeyMap = yd, e.StringStream = et, e.SharedTextMarker = gi, e.TextMarker = Wn, e.LineWidget = pi, e.e_preventDefault = St, e.e_stopPropagation = cr, e.e_stop = On, e.addClass = K, e.contains = A, e.rmClass = $e, e.keyNames = jn;
6105
+ function Gd(e) {
6106
+ e.off = kt, e.on = me, e.wheelEventPixels = Zf, e.Doc = Ot, e.splitLines = Jt, e.countColumn = _e, e.findColumn = ft, e.isWordChar = ye, e.Pass = Ue, e.signal = Qe, e.Line = yr, e.changeEnd = Bn, e.scrollbarModel = el, e.Pos = P, e.cmpPos = re, e.modes = dr, e.mimeModes = rn, e.resolveMode = hr, e.getMode = pr, e.modeExtensions = Rn, e.extendMode = gr, e.copyState = dn, e.startState = mr, e.innerMode = Vr, e.commands = yi, e.keyMap = _n, e.keyName = Bl, e.isModifierKey = Pl, e.lookupKey = Dr, e.normalizeKeyMap = wd, e.StringStream = et, e.SharedTextMarker = gi, e.TextMarker = Wn, e.LineWidget = pi, e.e_preventDefault = St, e.e_stopPropagation = cr, e.e_stop = On, e.addClass = K, e.contains = A, e.rmClass = $e, e.keyNames = jn;
6107
6107
  }
6108
- Fd(Ve), Pd(Ve);
6109
- var Ud = "iter insert remove copy getEditor constructor".split(" ");
6108
+ $d(Ve), Hd(Ve);
6109
+ var Kd = "iter insert remove copy getEditor constructor".split(" ");
6110
6110
  for (var pa in Ot.prototype)
6111
- Ot.prototype.hasOwnProperty(pa) && we(Ud, pa) < 0 && (Ve.prototype[pa] = /* @__PURE__ */ function(e) {
6111
+ Ot.prototype.hasOwnProperty(pa) && we(Kd, pa) < 0 && (Ve.prototype[pa] = /* @__PURE__ */ function(e) {
6112
6112
  return function() {
6113
6113
  return e.apply(this.doc, arguments);
6114
6114
  };
@@ -6123,7 +6123,7 @@ b`.split(/\n/).length != 3 ? function(e) {
6123
6123
  Ve.prototype[e] = t;
6124
6124
  }, Ve.defineDocExtension = function(e, t) {
6125
6125
  Ot.prototype[e] = t;
6126
- }, Ve.fromTextArea = Wd, jd(Ve), Ve.version = "5.65.20", Ve;
6126
+ }, Ve.fromTextArea = qd, Gd(Ve), Ve.version = "5.65.20", Ve;
6127
6127
  });
6128
6128
  }(Ds)), Ds.exports;
6129
6129
  }
@@ -7043,118 +7043,120 @@ b`.split(/\n/).length != 3 ? function(e) {
7043
7043
  });
7044
7044
  });
7045
7045
  })();
7046
- var Jd = { exports: {} };
7047
- (function(l, n) {
7048
- (function(r) {
7049
- r(Vt());
7050
- })(function(r) {
7051
- function o(y, m, k, S) {
7052
- if (k && k.call) {
7053
- var R = k;
7054
- k = null;
7055
- } else
7056
- var R = p(y, k, "rangeFinder");
7057
- typeof m == "number" && (m = r.Pos(m, 0));
7058
- var L = p(y, k, "minFoldSize");
7059
- function W(I) {
7060
- var N = R(y, m);
7061
- if (!N || N.to.line - N.from.line < L) return null;
7062
- if (S === "fold") return N;
7063
- for (var H = y.findMarksAt(N.from), V = 0; V < H.length; ++V)
7064
- if (H[V].__isFold) {
7065
- if (!I) return null;
7066
- N.cleared = !0, H[V].clear();
7067
- }
7068
- return N;
7069
- }
7070
- var z = W(!0);
7071
- if (p(y, k, "scanUp")) for (; !z && m.line > y.firstLine(); )
7072
- m = r.Pos(m.line - 1, 0), z = W(!1);
7073
- if (!(!z || z.cleared || S === "unfold")) {
7074
- var D = u(y, k, z);
7075
- r.on(D, "mousedown", function(I) {
7076
- $.clear(), r.e_preventDefault(I);
7046
+ var uu = { exports: {} }, cu;
7047
+ function sc() {
7048
+ return cu || (cu = 1, function(l, n) {
7049
+ (function(r) {
7050
+ r(Vt());
7051
+ })(function(r) {
7052
+ function o(y, m, k, S) {
7053
+ if (k && k.call) {
7054
+ var R = k;
7055
+ k = null;
7056
+ } else
7057
+ var R = p(y, k, "rangeFinder");
7058
+ typeof m == "number" && (m = r.Pos(m, 0));
7059
+ var L = p(y, k, "minFoldSize");
7060
+ function W(I) {
7061
+ var N = R(y, m);
7062
+ if (!N || N.to.line - N.from.line < L) return null;
7063
+ if (S === "fold") return N;
7064
+ for (var H = y.findMarksAt(N.from), V = 0; V < H.length; ++V)
7065
+ if (H[V].__isFold) {
7066
+ if (!I) return null;
7067
+ N.cleared = !0, H[V].clear();
7068
+ }
7069
+ return N;
7070
+ }
7071
+ var z = W(!0);
7072
+ if (p(y, k, "scanUp")) for (; !z && m.line > y.firstLine(); )
7073
+ m = r.Pos(m.line - 1, 0), z = W(!1);
7074
+ if (!(!z || z.cleared || S === "unfold")) {
7075
+ var D = u(y, k, z);
7076
+ r.on(D, "mousedown", function(I) {
7077
+ $.clear(), r.e_preventDefault(I);
7078
+ });
7079
+ var $ = y.markText(z.from, z.to, {
7080
+ replacedWith: D,
7081
+ clearOnEnter: p(y, k, "clearOnEnter"),
7082
+ __isFold: !0
7083
+ });
7084
+ $.on("clear", function(I, N) {
7085
+ r.signal(y, "unfold", y, I, N);
7086
+ }), r.signal(y, "fold", y, z.from, z.to);
7087
+ }
7088
+ }
7089
+ function u(y, m, k) {
7090
+ var S = p(y, m, "widget");
7091
+ if (typeof S == "function" && (S = S(k.from, k.to)), typeof S == "string") {
7092
+ var R = document.createTextNode(S);
7093
+ S = document.createElement("span"), S.appendChild(R), S.className = "CodeMirror-foldmarker";
7094
+ } else S && (S = S.cloneNode(!0));
7095
+ return S;
7096
+ }
7097
+ r.newFoldFunction = function(y, m) {
7098
+ return function(k, S) {
7099
+ o(k, S, { rangeFinder: y, widget: m });
7100
+ };
7101
+ }, r.defineExtension("foldCode", function(y, m, k) {
7102
+ o(this, y, m, k);
7103
+ }), r.defineExtension("isFolded", function(y) {
7104
+ for (var m = this.findMarksAt(y), k = 0; k < m.length; ++k)
7105
+ if (m[k].__isFold) return !0;
7106
+ }), r.commands.toggleFold = function(y) {
7107
+ y.foldCode(y.getCursor());
7108
+ }, r.commands.fold = function(y) {
7109
+ y.foldCode(y.getCursor(), null, "fold");
7110
+ }, r.commands.unfold = function(y) {
7111
+ y.foldCode(y.getCursor(), { scanUp: !1 }, "unfold");
7112
+ }, r.commands.foldAll = function(y) {
7113
+ y.operation(function() {
7114
+ for (var m = y.firstLine(), k = y.lastLine(); m <= k; m++)
7115
+ y.foldCode(r.Pos(m, 0), { scanUp: !1 }, "fold");
7077
7116
  });
7078
- var $ = y.markText(z.from, z.to, {
7079
- replacedWith: D,
7080
- clearOnEnter: p(y, k, "clearOnEnter"),
7081
- __isFold: !0
7117
+ }, r.commands.unfoldAll = function(y) {
7118
+ y.operation(function() {
7119
+ for (var m = y.firstLine(), k = y.lastLine(); m <= k; m++)
7120
+ y.foldCode(r.Pos(m, 0), { scanUp: !1 }, "unfold");
7082
7121
  });
7083
- $.on("clear", function(I, N) {
7084
- r.signal(y, "unfold", y, I, N);
7085
- }), r.signal(y, "fold", y, z.from, z.to);
7086
- }
7087
- }
7088
- function u(y, m, k) {
7089
- var S = p(y, m, "widget");
7090
- if (typeof S == "function" && (S = S(k.from, k.to)), typeof S == "string") {
7091
- var R = document.createTextNode(S);
7092
- S = document.createElement("span"), S.appendChild(R), S.className = "CodeMirror-foldmarker";
7093
- } else S && (S = S.cloneNode(!0));
7094
- return S;
7095
- }
7096
- r.newFoldFunction = function(y, m) {
7097
- return function(k, S) {
7098
- o(k, S, { rangeFinder: y, widget: m });
7099
- };
7100
- }, r.defineExtension("foldCode", function(y, m, k) {
7101
- o(this, y, m, k);
7102
- }), r.defineExtension("isFolded", function(y) {
7103
- for (var m = this.findMarksAt(y), k = 0; k < m.length; ++k)
7104
- if (m[k].__isFold) return !0;
7105
- }), r.commands.toggleFold = function(y) {
7106
- y.foldCode(y.getCursor());
7107
- }, r.commands.fold = function(y) {
7108
- y.foldCode(y.getCursor(), null, "fold");
7109
- }, r.commands.unfold = function(y) {
7110
- y.foldCode(y.getCursor(), { scanUp: !1 }, "unfold");
7111
- }, r.commands.foldAll = function(y) {
7112
- y.operation(function() {
7113
- for (var m = y.firstLine(), k = y.lastLine(); m <= k; m++)
7114
- y.foldCode(r.Pos(m, 0), { scanUp: !1 }, "fold");
7115
- });
7116
- }, r.commands.unfoldAll = function(y) {
7117
- y.operation(function() {
7118
- for (var m = y.firstLine(), k = y.lastLine(); m <= k; m++)
7119
- y.foldCode(r.Pos(m, 0), { scanUp: !1 }, "unfold");
7120
- });
7121
- }, r.registerHelper("fold", "combine", function() {
7122
- var y = Array.prototype.slice.call(arguments, 0);
7123
- return function(m, k) {
7124
- for (var S = 0; S < y.length; ++S) {
7125
- var R = y[S](m, k);
7122
+ }, r.registerHelper("fold", "combine", function() {
7123
+ var y = Array.prototype.slice.call(arguments, 0);
7124
+ return function(m, k) {
7125
+ for (var S = 0; S < y.length; ++S) {
7126
+ var R = y[S](m, k);
7127
+ if (R) return R;
7128
+ }
7129
+ };
7130
+ }), r.registerHelper("fold", "auto", function(y, m) {
7131
+ for (var k = y.getHelpers(m, "fold"), S = 0; S < k.length; S++) {
7132
+ var R = k[S](y, m);
7126
7133
  if (R) return R;
7127
7134
  }
7135
+ });
7136
+ var f = {
7137
+ rangeFinder: r.fold.auto,
7138
+ widget: "↔",
7139
+ minFoldSize: 0,
7140
+ scanUp: !1,
7141
+ clearOnEnter: !0
7128
7142
  };
7129
- }), r.registerHelper("fold", "auto", function(y, m) {
7130
- for (var k = y.getHelpers(m, "fold"), S = 0; S < k.length; S++) {
7131
- var R = k[S](y, m);
7132
- if (R) return R;
7133
- }
7134
- });
7135
- var f = {
7136
- rangeFinder: r.fold.auto,
7137
- widget: "↔",
7138
- minFoldSize: 0,
7139
- scanUp: !1,
7140
- clearOnEnter: !0
7141
- };
7142
- r.defineOption("foldOptions", null);
7143
- function p(y, m, k) {
7144
- if (m && m[k] !== void 0)
7145
- return m[k];
7146
- var S = y.options.foldOptions;
7147
- return S && S[k] !== void 0 ? S[k] : f[k];
7148
- }
7149
- r.defineExtension("foldOption", function(y, m) {
7150
- return p(this, y, m);
7143
+ r.defineOption("foldOptions", null);
7144
+ function p(y, m, k) {
7145
+ if (m && m[k] !== void 0)
7146
+ return m[k];
7147
+ var S = y.options.foldOptions;
7148
+ return S && S[k] !== void 0 ? S[k] : f[k];
7149
+ }
7150
+ r.defineExtension("foldOption", function(y, m) {
7151
+ return p(this, y, m);
7152
+ });
7151
7153
  });
7152
- });
7153
- })();
7154
- var Qd = Jd.exports;
7154
+ }()), uu.exports;
7155
+ }
7156
+ sc();
7155
7157
  (function(l, n) {
7156
7158
  (function(r) {
7157
- r(Vt(), Qd);
7159
+ r(Vt(), sc());
7158
7160
  })(function(r) {
7159
7161
  r.defineOption("foldGutter", !1, function($, I, N) {
7160
7162
  N && N != r.Init && ($.clearGutter($.state.foldGutter.options.gutter), $.state.foldGutter = null, $.off("gutterClick", R), $.off("changes", W), $.off("viewportChange", z), $.off("fold", D), $.off("unfold", D), $.off("swapDoc", W), $.off("optionChange", L)), I && ($.state.foldGutter = new u(f(I)), S($), $.on("gutterClick", R), $.on("changes", W), $.on("viewportChange", z), $.on("fold", D), $.on("unfold", D), $.on("swapDoc", W), $.on("optionChange", L));
@@ -7390,7 +7392,7 @@ var Qd = Jd.exports;
7390
7392
  }
7391
7393
  });
7392
7394
  })();
7393
- const Zd = Vd("trace", {
7395
+ const eh = Jd("trace", {
7394
7396
  state: () => ({
7395
7397
  traces: [],
7396
7398
  currentTrace: null
@@ -7407,15 +7409,15 @@ const Zd = Vd("trace", {
7407
7409
  this.currentTrace = l;
7408
7410
  }
7409
7411
  }
7410
- }), ic = () => {
7412
+ }), oc = () => {
7411
7413
  var l;
7412
7414
  return typeof window < "u" && ((l = window.GF_LOCAL_CONFIG) != null && l.TRACE_API_BASE_URL) ? window.GF_LOCAL_CONFIG.TRACE_API_BASE_URL : "/tracing";
7413
7415
  }, Ta = (l) => {
7414
7416
  if (!l || typeof l != "string") return "";
7415
- const n = ic(), r = typeof window < "u" && n.startsWith("/") ? window.location.origin : "";
7417
+ const n = oc(), r = typeof window < "u" && n.startsWith("/") ? window.location.origin : "";
7416
7418
  return `${n.startsWith("http") ? n : r + n}/v1/file/download?url=${encodeURIComponent(l)}`;
7417
- }, qt = Xd.create({
7418
- baseURL: ic(),
7419
+ }, qt = Qd.create({
7420
+ baseURL: oc(),
7419
7421
  timeout: 36e5
7420
7422
  }), _t = {
7421
7423
  getExperiments() {
@@ -7435,8 +7437,8 @@ const Zd = Vd("trace", {
7435
7437
  return qt.get(`/v1/trace/${l}`).then((n) => n.data);
7436
7438
  },
7437
7439
  getTraceSpans(l, n = {}) {
7438
- const { query: r = "", has_events: o, page_num: u = 1, page_size: f = 100, span_type: p } = n, y = { query: r || "", page_num: u, page_size: f };
7439
- return o === !0 && (y.has_events = !0), p && (y.span_type = p), qt.post(`/v1/trace/${l}/spans`, y).then((m) => m.data);
7440
+ const { query: r = "", has_events: o, page_num: u = 1, page_size: f = 100, span_type: p, status: y } = n, m = { query: r || "", page_num: u, page_size: f };
7441
+ return o && (m.has_events = 1), p && (m.span_type = p), y && (m.status = y), qt.post(`/v1/trace/${l}/spans`, m).then((k) => k.data);
7440
7442
  },
7441
7443
  getSpanContent(l, n) {
7442
7444
  return qt.get(`/v1/trace/${l}/span/${n}/content`).then((r) => r.data);
@@ -7466,7 +7468,7 @@ const Zd = Vd("trace", {
7466
7468
  return qt.post("/v1/trace/getPromptTokens", l).then((n) => n.data);
7467
7469
  }
7468
7470
  };
7469
- function eh(l) {
7471
+ function th(l) {
7470
7472
  const n = document.createElement("textarea");
7471
7473
  n.value = l, n.setAttribute("readonly", ""), n.style.position = "fixed", n.style.left = "-9999px", n.style.top = "0", document.body.appendChild(n), n.select();
7472
7474
  try {
@@ -7482,22 +7484,22 @@ function _a(l, n) {
7482
7484
  return;
7483
7485
  }
7484
7486
  const r = String(l);
7485
- eh(r) ? n.$message.success(n.$t("debug.copySuccess")) : n.$message.error(n.$t("debug.copyFailed"));
7487
+ th(r) ? n.$message.success(n.$t("debug.copySuccess")) : n.$message.error(n.$t("debug.copyFailed"));
7486
7488
  }
7487
- function ac(l) {
7489
+ function lc(l) {
7488
7490
  if (!l) return "-";
7489
7491
  const n = l / 1e6;
7490
7492
  return n < 1e3 ? `${n.toFixed(2)}ms` : n < 6e4 ? `${(n / 1e3).toFixed(2)}s` : `${(n / 6e4).toFixed(2)}min`;
7491
7493
  }
7492
- function uu(l) {
7494
+ function fu(l) {
7493
7495
  if (!l) return "-";
7494
7496
  const n = l / 1e6, r = new Date(n), o = r.getFullYear(), u = String(r.getMonth() + 1).padStart(2, "0"), f = String(r.getDate()).padStart(2, "0"), p = String(r.getHours()).padStart(2, "0"), y = String(r.getMinutes()).padStart(2, "0"), m = String(r.getSeconds()).padStart(2, "0");
7495
7497
  return `${o}/${u}/${f} ${p}:${y}:${m}`;
7496
7498
  }
7497
- function th(l, n, r = "-") {
7498
- return !l || !n ? "-" : `${uu(l)} ${r} ${uu(n)}`;
7499
+ function nh(l, n, r = "-") {
7500
+ return !l || !n ? "-" : `${fu(l)} ${r} ${fu(n)}`;
7499
7501
  }
7500
- function sc(l) {
7502
+ function uc(l) {
7501
7503
  const n = {
7502
7504
  SERVER: "primary",
7503
7505
  CHAT_MODEL: "success",
@@ -7513,16 +7515,16 @@ function sc(l) {
7513
7515
  };
7514
7516
  return n[l] !== void 0 ? n[l] : "info";
7515
7517
  }
7516
- function oc(l) {
7518
+ function cc(l) {
7517
7519
  return {
7518
7520
  CLIENT: "rgb(141 252 245)",
7519
7521
  EMBEDDING: "rgb(248 246 130)"
7520
7522
  }[l] || void 0;
7521
7523
  }
7522
- function lc(l) {
7524
+ function fc(l) {
7523
7525
  return l.status_description ? l.status_description : "";
7524
7526
  }
7525
- function uc(l, n, r) {
7527
+ function dc(l, n, r) {
7526
7528
  if (!n || !r || n === r)
7527
7529
  return { width: "100%" };
7528
7530
  const o = r - n, u = l.start_time_unix_nano - n, f = l.duration_ns, p = u / o * 100, y = f / o * 100;
@@ -7531,11 +7533,11 @@ function uc(l, n, r) {
7531
7533
  width: `${y}%`
7532
7534
  };
7533
7535
  }
7534
- var cc = { exports: {} };
7536
+ var hc = { exports: {} };
7535
7537
  (function(l, n) {
7536
7538
  (function(r, o) {
7537
7539
  l.exports = o(Vt());
7538
- })(rc, function(r) {
7540
+ })(ac, function(r) {
7539
7541
  return function(o) {
7540
7542
  function u(p) {
7541
7543
  if (f[p]) return f[p].exports;
@@ -7681,8 +7683,8 @@ var cc = { exports: {} };
7681
7683
  u.a = m;
7682
7684
  }]);
7683
7685
  });
7684
- })(cc);
7685
- var Ws = cc.exports;
7686
+ })(hc);
7687
+ var Ws = hc.exports;
7686
7688
  function js() {
7687
7689
  return {
7688
7690
  async: !1,
@@ -7698,42 +7700,42 @@ function js() {
7698
7700
  };
7699
7701
  }
7700
7702
  let lr = js();
7701
- function fc(l) {
7703
+ function pc(l) {
7702
7704
  lr = l;
7703
7705
  }
7704
- const dc = /[&<>"']/, nh = new RegExp(dc.source, "g"), hc = /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, rh = new RegExp(hc.source, "g"), ih = {
7706
+ const gc = /[&<>"']/, rh = new RegExp(gc.source, "g"), mc = /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, ih = new RegExp(mc.source, "g"), ah = {
7705
7707
  "&": "&amp;",
7706
7708
  "<": "&lt;",
7707
7709
  ">": "&gt;",
7708
7710
  '"': "&quot;",
7709
7711
  "'": "&#39;"
7710
- }, cu = (l) => ih[l];
7712
+ }, du = (l) => ah[l];
7711
7713
  function Gt(l, n) {
7712
7714
  if (n) {
7713
- if (dc.test(l))
7714
- return l.replace(nh, cu);
7715
- } else if (hc.test(l))
7716
- return l.replace(rh, cu);
7715
+ if (gc.test(l))
7716
+ return l.replace(rh, du);
7717
+ } else if (mc.test(l))
7718
+ return l.replace(ih, du);
7717
7719
  return l;
7718
7720
  }
7719
- const ah = /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;
7720
- function sh(l) {
7721
- return l.replace(ah, (n, r) => (r = r.toLowerCase(), r === "colon" ? ":" : r.charAt(0) === "#" ? r.charAt(1) === "x" ? String.fromCharCode(parseInt(r.substring(2), 16)) : String.fromCharCode(+r.substring(1)) : ""));
7721
+ const sh = /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;
7722
+ function oh(l) {
7723
+ return l.replace(sh, (n, r) => (r = r.toLowerCase(), r === "colon" ? ":" : r.charAt(0) === "#" ? r.charAt(1) === "x" ? String.fromCharCode(parseInt(r.substring(2), 16)) : String.fromCharCode(+r.substring(1)) : ""));
7722
7724
  }
7723
- const oh = /(^|[^\[])\^/g;
7725
+ const lh = /(^|[^\[])\^/g;
7724
7726
  function je(l, n) {
7725
7727
  let r = typeof l == "string" ? l : l.source;
7726
7728
  n = n || "";
7727
7729
  const o = {
7728
7730
  replace: (u, f) => {
7729
7731
  let p = typeof f == "string" ? f : f.source;
7730
- return p = p.replace(oh, "$1"), r = r.replace(u, p), o;
7732
+ return p = p.replace(lh, "$1"), r = r.replace(u, p), o;
7731
7733
  },
7732
7734
  getRegex: () => new RegExp(r, n)
7733
7735
  };
7734
7736
  return o;
7735
7737
  }
7736
- function fu(l) {
7738
+ function hu(l) {
7737
7739
  try {
7738
7740
  l = encodeURI(l).replace(/%25/g, "%");
7739
7741
  } catch {
@@ -7742,7 +7744,7 @@ function fu(l) {
7742
7744
  return l;
7743
7745
  }
7744
7746
  const Li = { exec: () => null };
7745
- function du(l, n) {
7747
+ function pu(l, n) {
7746
7748
  const r = l.replace(/\|/g, (f, p, y) => {
7747
7749
  let m = !1, k = p;
7748
7750
  for (; --k >= 0 && y[k] === "\\"; )
@@ -7769,7 +7771,7 @@ function ma(l, n, r) {
7769
7771
  u++;
7770
7772
  return l.slice(0, o - u);
7771
7773
  }
7772
- function lh(l, n) {
7774
+ function uh(l, n) {
7773
7775
  if (l.indexOf(n[1]) === -1)
7774
7776
  return -1;
7775
7777
  let r = 0;
@@ -7782,7 +7784,7 @@ function lh(l, n) {
7782
7784
  return o;
7783
7785
  return -1;
7784
7786
  }
7785
- function hu(l, n, r, o) {
7787
+ function gu(l, n, r, o) {
7786
7788
  const u = n.href, f = n.title ? Gt(n.title) : null, p = l[1].replace(/\\([\[\]])/g, "$1");
7787
7789
  if (l[0].charAt(0) !== "!") {
7788
7790
  o.state.inLink = !0;
@@ -7804,7 +7806,7 @@ function hu(l, n, r, o) {
7804
7806
  text: Gt(p)
7805
7807
  };
7806
7808
  }
7807
- function uh(l, n) {
7809
+ function ch(l, n) {
7808
7810
  const r = l.match(/^(\s+)(?:```)/);
7809
7811
  if (r === null)
7810
7812
  return n;
@@ -7852,7 +7854,7 @@ class La {
7852
7854
  fences(n) {
7853
7855
  const r = this.rules.block.fences.exec(n);
7854
7856
  if (r) {
7855
- const o = r[0], u = uh(o, r[3] || "");
7857
+ const o = r[0], u = ch(o, r[3] || "");
7856
7858
  return {
7857
7859
  type: "code",
7858
7860
  raw: o,
@@ -7999,7 +8001,7 @@ class La {
7999
8001
  const r = this.rules.block.table.exec(n);
8000
8002
  if (!r || !/[:|]/.test(r[2]))
8001
8003
  return;
8002
- const o = du(r[1]), u = r[2].replace(/^\||\| *$/g, "").split("|"), f = r[3] && r[3].trim() ? r[3].replace(/\n[ \t]*$/, "").split(`
8004
+ const o = pu(r[1]), u = r[2].replace(/^\||\| *$/g, "").split("|"), f = r[3] && r[3].trim() ? r[3].replace(/\n[ \t]*$/, "").split(`
8003
8005
  `) : [], p = {
8004
8006
  type: "table",
8005
8007
  raw: r[0],
@@ -8016,7 +8018,7 @@ class La {
8016
8018
  tokens: this.lexer.inline(y)
8017
8019
  });
8018
8020
  for (const y of f)
8019
- p.rows.push(du(y, p.header.length).map((m) => ({
8021
+ p.rows.push(pu(y, p.header.length).map((m) => ({
8020
8022
  text: m,
8021
8023
  tokens: this.lexer.inline(m)
8022
8024
  })));
@@ -8089,7 +8091,7 @@ class La {
8089
8091
  if ((o.length - p.length) % 2 === 0)
8090
8092
  return;
8091
8093
  } else {
8092
- const p = lh(r[2], "()");
8094
+ const p = uh(r[2], "()");
8093
8095
  if (p > -1) {
8094
8096
  const m = (r[0].indexOf("!") === 0 ? 5 : 4) + r[1].length + p;
8095
8097
  r[2] = r[2].substring(0, p), r[0] = r[0].substring(0, m).trim(), r[3] = "";
@@ -8101,7 +8103,7 @@ class La {
8101
8103
  p && (u = p[1], f = p[3]);
8102
8104
  } else
8103
8105
  f = r[3] ? r[3].slice(1, -1) : "";
8104
- return u = u.trim(), /^</.test(u) && (this.options.pedantic && !/>$/.test(o) ? u = u.slice(1) : u = u.slice(1, -1)), hu(r, {
8106
+ return u = u.trim(), /^</.test(u) && (this.options.pedantic && !/>$/.test(o) ? u = u.slice(1) : u = u.slice(1, -1)), gu(r, {
8105
8107
  href: u && u.replace(this.rules.inline.anyPunctuation, "$1"),
8106
8108
  title: f && f.replace(this.rules.inline.anyPunctuation, "$1")
8107
8109
  }, r[0], this.lexer);
@@ -8119,7 +8121,7 @@ class La {
8119
8121
  text: p
8120
8122
  };
8121
8123
  }
8122
- return hu(o, f, o[0], this.lexer);
8124
+ return gu(o, f, o[0], this.lexer);
8123
8125
  }
8124
8126
  }
8125
8127
  emStrong(n, r, o = "") {
@@ -8253,25 +8255,25 @@ class La {
8253
8255
  }
8254
8256
  }
8255
8257
  }
8256
- const ch = /^(?: *(?:\n|$))+/, fh = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, dh = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Fi = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, hh = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, pc = /(?:[*+-]|\d{1,9}[.)])/, gc = je(/^(?!bull )((?:.|\n(?!\s*?\n|bull ))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g, pc).getRegex(), Us = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, ph = /^[^\n]+/, qs = /(?!\s*\])(?:\\.|[^\[\]\\])+/, gh = je(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label", qs).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), mh = je(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, pc).getRegex(), Na = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", Gs = /<!--(?!-?>)[\s\S]*?(?:-->|$)/, vh = je("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))", "i").replace("comment", Gs).replace("tag", Na).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), mc = je(Us).replace("hr", Fi).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Na).getRegex(), yh = je(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", mc).getRegex(), Ks = {
8257
- blockquote: yh,
8258
- code: fh,
8259
- def: gh,
8260
- fences: dh,
8261
- heading: hh,
8258
+ const fh = /^(?: *(?:\n|$))+/, dh = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, hh = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Fi = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, ph = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, vc = /(?:[*+-]|\d{1,9}[.)])/, yc = je(/^(?!bull )((?:.|\n(?!\s*?\n|bull ))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g, vc).getRegex(), Us = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, gh = /^[^\n]+/, qs = /(?!\s*\])(?:\\.|[^\[\]\\])+/, mh = je(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label", qs).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), vh = je(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, vc).getRegex(), Na = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", Gs = /<!--(?!-?>)[\s\S]*?(?:-->|$)/, yh = je("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))", "i").replace("comment", Gs).replace("tag", Na).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), bc = je(Us).replace("hr", Fi).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Na).getRegex(), bh = je(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", bc).getRegex(), Ks = {
8259
+ blockquote: bh,
8260
+ code: dh,
8261
+ def: mh,
8262
+ fences: hh,
8263
+ heading: ph,
8262
8264
  hr: Fi,
8263
- html: vh,
8264
- lheading: gc,
8265
- list: mh,
8266
- newline: ch,
8267
- paragraph: mc,
8265
+ html: yh,
8266
+ lheading: yc,
8267
+ list: vh,
8268
+ newline: fh,
8269
+ paragraph: bc,
8268
8270
  table: Li,
8269
- text: ph
8270
- }, pu = je("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", Fi).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", " {4}[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Na).getRegex(), bh = {
8271
+ text: gh
8272
+ }, mu = je("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", Fi).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", " {4}[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Na).getRegex(), xh = {
8271
8273
  ...Ks,
8272
- table: pu,
8273
- paragraph: je(Us).replace("hr", Fi).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", pu).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Na).getRegex()
8274
- }, xh = {
8274
+ table: mu,
8275
+ paragraph: je(Us).replace("hr", Fi).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", mu).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Na).getRegex()
8276
+ }, wh = {
8275
8277
  ...Ks,
8276
8278
  html: je(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", Gs).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
8277
8279
  def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
@@ -8280,52 +8282,52 @@ const ch = /^(?: *(?:\n|$))+/, fh = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, dh =
8280
8282
  // fences not supported
8281
8283
  lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
8282
8284
  paragraph: je(Us).replace("hr", Fi).replace("heading", ` *#{1,6} *[^
8283
- ]`).replace("lheading", gc).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
8284
- }, vc = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, wh = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, yc = /^( {2,}|\\)\n(?!\s*$)/, kh = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Ri = "\\p{P}$+<=>`^|~", Sh = je(/^((?![*_])[\spunctuation])/, "u").replace(/punctuation/g, Ri).getRegex(), Ch = /\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g, Th = je(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/, "u").replace(/punct/g, Ri).getRegex(), _h = je("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])", "gu").replace(/punct/g, Ri).getRegex(), Lh = je("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])", "gu").replace(/punct/g, Ri).getRegex(), Eh = je(/\\([punct])/, "gu").replace(/punct/g, Ri).getRegex(), Ih = je(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), Ah = je(Gs).replace("(?:-->|$)", "-->").getRegex(), Dh = je("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", Ah).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Ea = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, Oh = je(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", Ea).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), bc = je(/^!?\[(label)\]\[(ref)\]/).replace("label", Ea).replace("ref", qs).getRegex(), xc = je(/^!?\[(ref)\](?:\[\])?/).replace("ref", qs).getRegex(), Nh = je("reflink|nolink(?!\\()", "g").replace("reflink", bc).replace("nolink", xc).getRegex(), Vs = {
8285
+ ]`).replace("lheading", yc).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
8286
+ }, xc = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, kh = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, wc = /^( {2,}|\\)\n(?!\s*$)/, Sh = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Ri = "\\p{P}$+<=>`^|~", Ch = je(/^((?![*_])[\spunctuation])/, "u").replace(/punctuation/g, Ri).getRegex(), Th = /\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g, _h = je(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/, "u").replace(/punct/g, Ri).getRegex(), Lh = je("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])", "gu").replace(/punct/g, Ri).getRegex(), Eh = je("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])", "gu").replace(/punct/g, Ri).getRegex(), Ih = je(/\\([punct])/, "gu").replace(/punct/g, Ri).getRegex(), Ah = je(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), Dh = je(Gs).replace("(?:-->|$)", "-->").getRegex(), Oh = je("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", Dh).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Ea = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, Nh = je(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", Ea).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), kc = je(/^!?\[(label)\]\[(ref)\]/).replace("label", Ea).replace("ref", qs).getRegex(), Sc = je(/^!?\[(ref)\](?:\[\])?/).replace("ref", qs).getRegex(), Fh = je("reflink|nolink(?!\\()", "g").replace("reflink", kc).replace("nolink", Sc).getRegex(), Vs = {
8285
8287
  _backpedal: Li,
8286
8288
  // only used for GFM url
8287
- anyPunctuation: Eh,
8288
- autolink: Ih,
8289
- blockSkip: Ch,
8290
- br: yc,
8291
- code: wh,
8289
+ anyPunctuation: Ih,
8290
+ autolink: Ah,
8291
+ blockSkip: Th,
8292
+ br: wc,
8293
+ code: kh,
8292
8294
  del: Li,
8293
- emStrongLDelim: Th,
8294
- emStrongRDelimAst: _h,
8295
- emStrongRDelimUnd: Lh,
8296
- escape: vc,
8297
- link: Oh,
8298
- nolink: xc,
8299
- punctuation: Sh,
8300
- reflink: bc,
8301
- reflinkSearch: Nh,
8302
- tag: Dh,
8303
- text: kh,
8295
+ emStrongLDelim: _h,
8296
+ emStrongRDelimAst: Lh,
8297
+ emStrongRDelimUnd: Eh,
8298
+ escape: xc,
8299
+ link: Nh,
8300
+ nolink: Sc,
8301
+ punctuation: Ch,
8302
+ reflink: kc,
8303
+ reflinkSearch: Fh,
8304
+ tag: Oh,
8305
+ text: Sh,
8304
8306
  url: Li
8305
- }, Fh = {
8307
+ }, Rh = {
8306
8308
  ...Vs,
8307
8309
  link: je(/^!?\[(label)\]\((.*?)\)/).replace("label", Ea).getRegex(),
8308
8310
  reflink: je(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", Ea).getRegex()
8309
8311
  }, Ms = {
8310
8312
  ...Vs,
8311
- escape: je(vc).replace("])", "~|])").getRegex(),
8313
+ escape: je(xc).replace("])", "~|])").getRegex(),
8312
8314
  url: je(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/, "i").replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
8313
8315
  _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
8314
8316
  del: /^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,
8315
8317
  text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/
8316
- }, Rh = {
8318
+ }, Mh = {
8317
8319
  ...Ms,
8318
- br: je(yc).replace("{2,}", "*").getRegex(),
8320
+ br: je(wc).replace("{2,}", "*").getRegex(),
8319
8321
  text: je(Ms.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
8320
8322
  }, va = {
8321
8323
  normal: Ks,
8322
- gfm: bh,
8323
- pedantic: xh
8324
+ gfm: xh,
8325
+ pedantic: wh
8324
8326
  }, Si = {
8325
8327
  normal: Vs,
8326
8328
  gfm: Ms,
8327
- breaks: Rh,
8328
- pedantic: Fh
8329
+ breaks: Mh,
8330
+ pedantic: Rh
8329
8331
  };
8330
8332
  class vn {
8331
8333
  constructor(n) {
@@ -8632,7 +8634,7 @@ ${n}</tr>
8632
8634
  return `<del>${n}</del>`;
8633
8635
  }
8634
8636
  link(n, r, o) {
8635
- const u = fu(n);
8637
+ const u = hu(n);
8636
8638
  if (u === null)
8637
8639
  return o;
8638
8640
  n = u;
@@ -8640,7 +8642,7 @@ ${n}</tr>
8640
8642
  return r && (f += ' title="' + r + '"'), f += ">" + o + "</a>", f;
8641
8643
  }
8642
8644
  image(n, r, o) {
8643
- const u = fu(n);
8645
+ const u = hu(n);
8644
8646
  if (u === null)
8645
8647
  return o;
8646
8648
  n = u;
@@ -8723,7 +8725,7 @@ class yn {
8723
8725
  }
8724
8726
  case "heading": {
8725
8727
  const p = f;
8726
- o += this.renderer.heading(this.parseInline(p.tokens), p.depth, sh(this.parseInline(p.tokens, this.textRenderer)));
8728
+ o += this.renderer.heading(this.parseInline(p.tokens), p.depth, oh(this.parseInline(p.tokens, this.textRenderer)));
8727
8729
  continue;
8728
8730
  }
8729
8731
  case "code": {
@@ -8904,8 +8906,8 @@ Xe(Ei, "passThroughHooks", /* @__PURE__ */ new Set([
8904
8906
  "postprocess",
8905
8907
  "processAllTokens"
8906
8908
  ]));
8907
- var or, $s, wc;
8908
- class Mh {
8909
+ var or, $s, Cc;
8910
+ class $h {
8909
8911
  constructor(...n) {
8910
8912
  ou(this, or);
8911
8913
  Xe(this, "defaults", js());
@@ -9047,7 +9049,7 @@ or = new WeakSet(), $s = function(n, r) {
9047
9049
  return (o, u) => {
9048
9050
  const f = { ...u }, p = { ...this.defaults, ...f };
9049
9051
  this.defaults.async === !0 && f.async === !1 && (p.silent || console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."), p.async = !0);
9050
- const y = ga(this, or, wc).call(this, !!p.silent, !!p.async);
9052
+ const y = ga(this, or, Cc).call(this, !!p.silent, !!p.async);
9051
9053
  if (typeof o > "u" || o === null)
9052
9054
  return y(new Error("marked(): input parameter is undefined or null"));
9053
9055
  if (typeof o != "string")
@@ -9064,7 +9066,7 @@ or = new WeakSet(), $s = function(n, r) {
9064
9066
  return y(m);
9065
9067
  }
9066
9068
  };
9067
- }, wc = function(n, r) {
9069
+ }, Cc = function(n, r) {
9068
9070
  return (o) => {
9069
9071
  if (o.message += `
9070
9072
  Please report this to https://github.com/markedjs/marked.`, n) {
@@ -9076,17 +9078,17 @@ Please report this to https://github.com/markedjs/marked.`, n) {
9076
9078
  throw o;
9077
9079
  };
9078
9080
  };
9079
- const sr = new Mh();
9081
+ const sr = new $h();
9080
9082
  function Se(l, n) {
9081
9083
  return sr.parse(l, n);
9082
9084
  }
9083
9085
  Se.options = Se.setOptions = function(l) {
9084
- return sr.setOptions(l), Se.defaults = sr.defaults, fc(Se.defaults), Se;
9086
+ return sr.setOptions(l), Se.defaults = sr.defaults, pc(Se.defaults), Se;
9085
9087
  };
9086
9088
  Se.getDefaults = js;
9087
9089
  Se.defaults = lr;
9088
9090
  Se.use = function(...l) {
9089
- return sr.use(...l), Se.defaults = sr.defaults, fc(Se.defaults), Se;
9091
+ return sr.use(...l), Se.defaults = sr.defaults, pc(Se.defaults), Se;
9090
9092
  };
9091
9093
  Se.walkTokens = function(l, n) {
9092
9094
  return sr.walkTokens(l, n);
@@ -9115,7 +9117,7 @@ function bn(l, n, r, o, u, f, p, y) {
9115
9117
  options: m
9116
9118
  };
9117
9119
  }
9118
- const $h = {
9120
+ const Ph = {
9119
9121
  name: "TimelineHeader",
9120
9122
  props: {
9121
9123
  timeRange: {
@@ -9140,18 +9142,18 @@ const $h = {
9140
9142
  }
9141
9143
  }
9142
9144
  };
9143
- var Ph = function() {
9145
+ var zh = function() {
9144
9146
  var n = this, r = n._self._c;
9145
9147
  return r("div", { staticClass: "timeline-header" }, [r("div", { staticClass: "time-scale" }, [r("span", { staticClass: "time-range" }, [n._v(n._s(n.timeRange))])]), r("div", { staticClass: "header-actions" }, [n.viewMode === "tree" ? r("el-tooltip", { attrs: { content: n.allExpanded ? "合上所有节点" : "展开所有节点", placement: "top" } }, [r("i", { staticClass: "action-icon", class: n.allExpanded ? "el-icon-arrow-down" : "el-icon-arrow-right", on: { click: n.handleToggleExpand } })]) : n._e(), r("el-tooltip", { attrs: { content: n.viewMode === "list" ? "切换到树形视图" : "切换到列表视图", placement: "top" } }, [r("i", { staticClass: "action-icon", class: n.viewMode === "list" ? "el-icon-menu" : "el-icon-s-operation", on: { click: n.handleToggleView } })])], 1)]);
9146
- }, zh = [], Bh = /* @__PURE__ */ bn(
9147
- $h,
9148
+ }, Bh = [], Hh = /* @__PURE__ */ bn(
9148
9149
  Ph,
9149
9150
  zh,
9151
+ Bh,
9150
9152
  !1,
9151
9153
  null,
9152
9154
  "a6b357e5"
9153
9155
  );
9154
- const Hh = Bh.exports, Wh = {
9156
+ const Wh = Hh.exports, jh = {
9155
9157
  name: "TimelineBar",
9156
9158
  props: {
9157
9159
  barStyle: {
@@ -9171,26 +9173,26 @@ const Hh = Bh.exports, Wh = {
9171
9173
  default: !1
9172
9174
  },
9173
9175
  hasEvents: {
9174
- type: Boolean,
9176
+ type: [Boolean, Number],
9175
9177
  default: !1
9176
9178
  }
9177
9179
  }
9178
9180
  };
9179
- var jh = function() {
9181
+ var Uh = function() {
9180
9182
  var n = this, r = n._self._c;
9181
9183
  return r("el-tooltip", { attrs: { content: n.statusDescription, disabled: !n.statusDescription, placement: "top", "popper-class": "span-status-tooltip" } }, [r("div", { staticClass: "timeline-bar-wrapper" }, [r("div", { staticClass: "timeline-bar", class: { selected: n.selected, error: n.error, "has-events": n.hasEvents }, style: n.barStyle })])]);
9182
- }, Uh = [], qh = /* @__PURE__ */ bn(
9183
- Wh,
9184
+ }, qh = [], Gh = /* @__PURE__ */ bn(
9184
9185
  jh,
9185
9186
  Uh,
9187
+ qh,
9186
9188
  !1,
9187
9189
  null,
9188
- "52995efa"
9190
+ "00a350c8"
9189
9191
  );
9190
- const kc = qh.exports, Gh = {
9192
+ const Tc = Gh.exports, Kh = {
9191
9193
  name: "SpanTreeNode",
9192
9194
  components: {
9193
- TimelineBar: kc
9195
+ TimelineBar: Tc
9194
9196
  },
9195
9197
  props: {
9196
9198
  node: {
@@ -9240,7 +9242,7 @@ const kc = qh.exports, Gh = {
9240
9242
  return this.isRootNode ? !0 : this.isExpanded;
9241
9243
  },
9242
9244
  duration() {
9243
- return ac(this.node.duration_ns);
9245
+ return lc(this.node.duration_ns);
9244
9246
  },
9245
9247
  typeLabel() {
9246
9248
  const l = this.node.type;
@@ -9249,22 +9251,22 @@ const kc = qh.exports, Gh = {
9249
9251
  return n ? n.label : l;
9250
9252
  },
9251
9253
  typeColor() {
9252
- return sc(this.node.type);
9254
+ return uc(this.node.type);
9253
9255
  },
9254
9256
  typeCustomColor() {
9255
- return oc(this.node.type);
9257
+ return cc(this.node.type);
9256
9258
  },
9257
9259
  statusDescription() {
9258
- return lc(this.node);
9260
+ return fc(this.node);
9259
9261
  },
9260
9262
  barStyle() {
9261
- return uc(this.node, this.traceStartTime, this.traceEndTime);
9263
+ return dc(this.node, this.traceStartTime, this.traceEndTime);
9262
9264
  },
9263
9265
  error() {
9264
9266
  return this.node.status === "ERROR";
9265
9267
  },
9266
9268
  hasEvents() {
9267
- return this.node.has_events === !0;
9269
+ return !!this.node.has_events;
9268
9270
  },
9269
9271
  isChild() {
9270
9272
  return this.depth > 0;
@@ -9279,7 +9281,7 @@ const kc = qh.exports, Gh = {
9279
9281
  }
9280
9282
  }
9281
9283
  };
9282
- var Kh = function() {
9284
+ var Vh = function() {
9283
9285
  var n = this, r = n._self._c;
9284
9286
  return r("div", [r("div", { staticClass: "timeline-node", class: { selected: n.selected, error: n.error, "child-node": n.isChild }, on: { click: n.handleClick } }, [r("div", { staticClass: "node-row" }, [r("div", { staticClass: "node-info" }, [n.hasChildren && !n.isRootNode ? r("i", { staticClass: "expand-icon", class: n.isExpanded ? "el-icon-arrow-down" : "el-icon-arrow-right", on: { click: function(o) {
9285
9287
  return o.stopPropagation(), n.handleToggleExpand.apply(null, arguments);
@@ -9290,18 +9292,18 @@ var Kh = function() {
9290
9292
  return n.$emit("toggle-expand", u);
9291
9293
  } } });
9292
9294
  }), 1) : n._e()]);
9293
- }, Vh = [], Xh = /* @__PURE__ */ bn(
9294
- Gh,
9295
+ }, Xh = [], Yh = /* @__PURE__ */ bn(
9295
9296
  Kh,
9296
9297
  Vh,
9298
+ Xh,
9297
9299
  !1,
9298
9300
  null,
9299
- "3dcb687d"
9301
+ "d10c241e"
9300
9302
  );
9301
- const Yh = Xh.exports, Jh = {
9303
+ const Jh = Yh.exports, Qh = {
9302
9304
  name: "SpanListNode",
9303
9305
  components: {
9304
- TimelineBar: kc
9306
+ TimelineBar: Tc
9305
9307
  },
9306
9308
  props: {
9307
9309
  node: {
@@ -9327,7 +9329,7 @@ const Yh = Xh.exports, Jh = {
9327
9329
  },
9328
9330
  computed: {
9329
9331
  duration() {
9330
- return ac(this.node.duration_ns);
9332
+ return lc(this.node.duration_ns);
9331
9333
  },
9332
9334
  typeLabel() {
9333
9335
  const l = this.node.type;
@@ -9336,22 +9338,22 @@ const Yh = Xh.exports, Jh = {
9336
9338
  return n ? n.label : l;
9337
9339
  },
9338
9340
  typeColor() {
9339
- return sc(this.node.type);
9341
+ return uc(this.node.type);
9340
9342
  },
9341
9343
  typeCustomColor() {
9342
- return oc(this.node.type);
9344
+ return cc(this.node.type);
9343
9345
  },
9344
9346
  statusDescription() {
9345
- return lc(this.node);
9347
+ return fc(this.node);
9346
9348
  },
9347
9349
  barStyle() {
9348
- return uc(this.node, this.traceStartTime, this.traceEndTime);
9350
+ return dc(this.node, this.traceStartTime, this.traceEndTime);
9349
9351
  },
9350
9352
  error() {
9351
9353
  return this.node.status === "ERROR";
9352
9354
  },
9353
9355
  hasEvents() {
9354
- return this.node.has_events === !0;
9356
+ return !!this.node.has_events;
9355
9357
  }
9356
9358
  },
9357
9359
  methods: {
@@ -9360,23 +9362,23 @@ const Yh = Xh.exports, Jh = {
9360
9362
  }
9361
9363
  }
9362
9364
  };
9363
- var Qh = function() {
9365
+ var Zh = function() {
9364
9366
  var n = this, r = n._self._c;
9365
9367
  return r("div", { staticClass: "timeline-node", class: { selected: n.selected, error: n.error }, on: { click: n.handleClick } }, [r("div", { staticClass: "node-row" }, [r("div", { staticClass: "node-info" }, [r("el-tag", { staticClass: "type-tag", attrs: { type: n.typeColor, color: n.typeCustomColor, size: "mini" } }, [n._v(" " + n._s(n.typeLabel) + " ")]), r("el-tooltip", { attrs: { content: n.node.name, placement: "top", "open-delay": 300 } }, [r("span", { staticClass: "node-name" }, [n._v(n._s(n.node.name))])])], 1), r("div", { staticClass: "node-duration" }, [n._v(" " + n._s(n.duration) + " ")])]), r("TimelineBar", { attrs: { "bar-style": n.barStyle, "status-description": n.statusDescription, selected: n.selected, error: n.error, "has-events": n.hasEvents } })], 1);
9366
- }, Zh = [], ep = /* @__PURE__ */ bn(
9367
- Jh,
9368
+ }, ep = [], tp = /* @__PURE__ */ bn(
9368
9369
  Qh,
9369
9370
  Zh,
9371
+ ep,
9370
9372
  !1,
9371
9373
  null,
9372
- "97dce313"
9374
+ "111b6031"
9373
9375
  );
9374
- const tp = ep.exports, np = {
9376
+ const np = tp.exports, rp = {
9375
9377
  name: "TraceSpanTree",
9376
9378
  components: {
9377
- TimelineHeader: Hh,
9378
- SpanTreeNode: Yh,
9379
- SpanListNode: tp
9379
+ TimelineHeader: Wh,
9380
+ SpanTreeNode: Jh,
9381
+ SpanListNode: np
9380
9382
  },
9381
9383
  props: {
9382
9384
  spans: {
@@ -9419,7 +9421,7 @@ const tp = ep.exports, np = {
9419
9421
  },
9420
9422
  timeRange() {
9421
9423
  const l = this.$t ? this.$t("trace.to") : "-";
9422
- return th(this.traceStartTime, this.traceEndTime, l);
9424
+ return nh(this.traceStartTime, this.traceEndTime, l);
9423
9425
  }
9424
9426
  },
9425
9427
  watch: {
@@ -9500,26 +9502,26 @@ const tp = ep.exports, np = {
9500
9502
  }
9501
9503
  }
9502
9504
  };
9503
- var rp = function() {
9505
+ var ip = function() {
9504
9506
  var n = this, r = n._self._c;
9505
9507
  return r("div", { staticClass: "span-tree-container" }, [n.treeData.length === 0 ? r("div", { staticClass: "empty-state" }, [r("el-empty", { attrs: { description: "暂无 Span 数据" } })], 1) : r("div", { staticClass: "timeline-wrapper" }, [r("TimelineHeader", { attrs: { "time-range": n.timeRange, "all-expanded": n.allExpanded, "view-mode": n.viewMode }, on: { "toggle-expand": n.toggleAllExpand, "toggle-view": n.toggleViewMode } }), r("div", { ref: "timelineContent", staticClass: "timeline-content" }, [n.viewMode === "tree" ? n._l(n.treeData, function(o) {
9506
9508
  return r("SpanTreeNode", { key: o.span_id, attrs: { node: o, selected: n.selectedSpanId === o.span_id, "selected-span-id": n.selectedSpanId, "expanded-nodes": n.expandedNodes, depth: 0, "trace-start-time": n.traceStartTime, "trace-end-time": n.traceEndTime, "span-type-list": n.spanTypeList }, on: { "node-click": n.handleNodeClick, "toggle-expand": n.toggleExpand } });
9507
9509
  }) : n._l(n.flatListData, function(o) {
9508
9510
  return r("SpanListNode", { key: o.span_id, attrs: { node: o, selected: n.selectedSpanId === o.span_id, "trace-start-time": n.traceStartTime, "trace-end-time": n.traceEndTime, "span-type-list": n.spanTypeList }, on: { "node-click": n.handleNodeClick } });
9509
9511
  })], 2)], 1)]);
9510
- }, ip = [], ap = /* @__PURE__ */ bn(
9511
- np,
9512
+ }, ap = [], sp = /* @__PURE__ */ bn(
9512
9513
  rp,
9513
9514
  ip,
9515
+ ap,
9514
9516
  !1,
9515
9517
  null,
9516
9518
  "0cf980e1"
9517
9519
  );
9518
- const Sc = ap.exports;
9519
- function sp() {
9520
+ const _c = sp.exports;
9521
+ function op() {
9520
9522
  return window.pdfjsLib;
9521
9523
  }
9522
- const op = {
9524
+ const lp = {
9523
9525
  name: "FilePdfViewer",
9524
9526
  props: {
9525
9527
  element: {
@@ -9574,7 +9576,7 @@ const op = {
9574
9576
  }
9575
9577
  this.loading = !0, this.error = null, this.cancelRender(), this.pdfDoc && (this.pdfDoc.destroy(), this.pdfDoc = null);
9576
9578
  try {
9577
- const o = sp();
9579
+ const o = op();
9578
9580
  if (!o) {
9579
9581
  this.error = "PDF.js not loaded";
9580
9582
  return;
@@ -9628,19 +9630,19 @@ const op = {
9628
9630
  }
9629
9631
  }
9630
9632
  };
9631
- var lp = function() {
9633
+ var up = function() {
9632
9634
  var o;
9633
9635
  var n = this, r = n._self._c;
9634
9636
  return r("div", { staticClass: "file-pdf-content" }, [n.element.label ? r("div", { staticClass: "image-label" }, [n._v(n._s(n.element.label))]) : n._e(), r("div", { staticClass: "file-pdf-toolbar" }, [r("el-button", { attrs: { size: "mini", disabled: n.currentPage <= 1 }, on: { click: n.prevPage } }, [n._v(n._s(n.$t("trace.pdfPrevPage")))]), r("span", { staticClass: "file-pdf-page-indicator" }, [n._v(n._s(n.formatPageIndicator))]), r("el-button", { attrs: { size: "mini", disabled: n.totalPages > 0 && n.currentPage >= n.totalPages }, on: { click: n.nextPage } }, [n._v(n._s(n.$t("trace.pdfNextPage")))]), r("div", { staticClass: "file-pdf-zoom" }, [r("span", { staticClass: "file-pdf-zoom-btn", class: { disabled: n.pdfScale <= n.scaleMin }, on: { click: n.zoomOut } }, [r("i", { staticClass: "el-icon-minus" })]), r("span", { staticClass: "file-pdf-zoom-btn", class: { disabled: n.pdfScale >= n.scaleMax }, on: { click: n.zoomIn } }, [r("i", { staticClass: "el-icon-plus" })])]), r("el-button", { attrs: { size: "mini", type: "primary", disabled: !((o = n.element) != null && o.downloadUrl) }, on: { click: n.downloadFile } }, [n._v(n._s(n.$t("trace.pdfDownload")))])], 1), r("div", { staticClass: "file-pdf-viewer" }, [n.loading ? r("div", { staticClass: "file-pdf-loading" }, [n._v(n._s(n.$t("trace.pdfLoading")))]) : n.error ? r("div", { staticClass: "file-pdf-error" }, [n._v(n._s(n.error))]) : r("canvas", { ref: "canvasRef", staticClass: "file-pdf-canvas" })])]);
9635
- }, up = [], cp = /* @__PURE__ */ bn(
9636
- op,
9637
+ }, cp = [], fp = /* @__PURE__ */ bn(
9637
9638
  lp,
9638
9639
  up,
9640
+ cp,
9639
9641
  !1,
9640
9642
  null,
9641
9643
  "fbe9d6b8"
9642
9644
  );
9643
- const Ys = cp.exports;
9645
+ const Ys = fp.exports;
9644
9646
  /*!
9645
9647
  * Viewer.js v1.11.7
9646
9648
  * https://fengyuanchen.github.io/viewerjs
@@ -9650,29 +9652,29 @@ const Ys = cp.exports;
9650
9652
  *
9651
9653
  * Date: 2024-11-24T04:32:19.116Z
9652
9654
  */
9653
- function fp(l, n) {
9655
+ function dp(l, n) {
9654
9656
  if (!(l instanceof n)) throw new TypeError("Cannot call a class as a function");
9655
9657
  }
9656
- function gu(l, n) {
9658
+ function vu(l, n) {
9657
9659
  for (var r = 0; r < n.length; r++) {
9658
9660
  var o = n[r];
9659
- o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(l, Cc(o.key), o);
9661
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(l, Lc(o.key), o);
9660
9662
  }
9661
9663
  }
9662
- function dp(l, n, r) {
9663
- return n && gu(l.prototype, n), r && gu(l, r), Object.defineProperty(l, "prototype", {
9664
+ function hp(l, n, r) {
9665
+ return n && vu(l.prototype, n), r && vu(l, r), Object.defineProperty(l, "prototype", {
9664
9666
  writable: !1
9665
9667
  }), l;
9666
9668
  }
9667
- function hp(l, n, r) {
9668
- return (n = Cc(n)) in l ? Object.defineProperty(l, n, {
9669
+ function pp(l, n, r) {
9670
+ return (n = Lc(n)) in l ? Object.defineProperty(l, n, {
9669
9671
  value: r,
9670
9672
  enumerable: !0,
9671
9673
  configurable: !0,
9672
9674
  writable: !0
9673
9675
  }) : l[n] = r, l;
9674
9676
  }
9675
- function mu(l, n) {
9677
+ function yu(l, n) {
9676
9678
  var r = Object.keys(l);
9677
9679
  if (Object.getOwnPropertySymbols) {
9678
9680
  var o = Object.getOwnPropertySymbols(l);
@@ -9685,15 +9687,15 @@ function mu(l, n) {
9685
9687
  function Js(l) {
9686
9688
  for (var n = 1; n < arguments.length; n++) {
9687
9689
  var r = arguments[n] != null ? arguments[n] : {};
9688
- n % 2 ? mu(Object(r), !0).forEach(function(o) {
9689
- hp(l, o, r[o]);
9690
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(l, Object.getOwnPropertyDescriptors(r)) : mu(Object(r)).forEach(function(o) {
9690
+ n % 2 ? yu(Object(r), !0).forEach(function(o) {
9691
+ pp(l, o, r[o]);
9692
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(l, Object.getOwnPropertyDescriptors(r)) : yu(Object(r)).forEach(function(o) {
9691
9693
  Object.defineProperty(l, o, Object.getOwnPropertyDescriptor(r, o));
9692
9694
  });
9693
9695
  }
9694
9696
  return l;
9695
9697
  }
9696
- function pp(l, n) {
9698
+ function gp(l, n) {
9697
9699
  if (typeof l != "object" || !l) return l;
9698
9700
  var r = l[Symbol.toPrimitive];
9699
9701
  if (r !== void 0) {
@@ -9703,8 +9705,8 @@ function pp(l, n) {
9703
9705
  }
9704
9706
  return String(l);
9705
9707
  }
9706
- function Cc(l) {
9707
- var n = pp(l, "string");
9708
+ function Lc(l) {
9709
+ var n = gp(l, "string");
9708
9710
  return typeof n == "symbol" ? n : n + "";
9709
9711
  }
9710
9712
  function Ps(l) {
@@ -9715,7 +9717,7 @@ function Ps(l) {
9715
9717
  return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
9716
9718
  }, Ps(l);
9717
9719
  }
9718
- var vu = {
9720
+ var bu = {
9719
9721
  /**
9720
9722
  * Enable a modal backdrop, specify `static` for a backdrop
9721
9723
  * which doesn't close the modal on click.
@@ -9920,13 +9922,13 @@ var vu = {
9920
9922
  zoomed: null,
9921
9923
  play: null,
9922
9924
  stop: null
9923
- }, gp = '<div class="viewer-container" tabindex="-1" touch-action="none"><div class="viewer-canvas"></div><div class="viewer-footer"><div class="viewer-title"></div><div class="viewer-toolbar"></div><div class="viewer-navbar"><ul class="viewer-list" role="navigation"></ul></div></div><div class="viewer-tooltip" role="alert" aria-hidden="true"></div><div class="viewer-button" data-viewer-action="mix" role="button"></div><div class="viewer-player"></div></div>', Fa = typeof window < "u" && typeof window.document < "u", En = Fa ? window : {}, Wr = Fa && En.document.documentElement ? "ontouchstart" in En.document.documentElement : !1, Qs = Fa ? "PointerEvent" in En : !1, Ne = "viewer", ka = "move", Tc = "switch", Ti = "zoom", ya = "".concat(Ne, "-active"), mp = "".concat(Ne, "-close"), Sa = "".concat(Ne, "-fade"), zs = "".concat(Ne, "-fixed"), vp = "".concat(Ne, "-fullscreen"), yu = "".concat(Ne, "-fullscreen-exit"), ir = "".concat(Ne, "-hide"), yp = "".concat(Ne, "-hide-md-down"), bp = "".concat(Ne, "-hide-sm-down"), xp = "".concat(Ne, "-hide-xs-down"), Qt = "".concat(Ne, "-in"), Ii = "".concat(Ne, "-invisible"), jr = "".concat(Ne, "-loading"), wp = "".concat(Ne, "-move"), bu = "".concat(Ne, "-open"), $r = "".concat(Ne, "-show"), it = "".concat(Ne, "-transition"), Ur = "click", Bs = "dblclick", xu = "dragstart", wu = "focusin", ku = "keydown", Zt = "load", ar = "error", kp = Wr ? "touchend touchcancel" : "mouseup", Sp = Wr ? "touchmove" : "mousemove", Cp = Wr ? "touchstart" : "mousedown", Su = Qs ? "pointerdown" : Cp, Cu = Qs ? "pointermove" : Sp, Tu = Qs ? "pointerup pointercancel" : kp, _u = "resize", cn = "transitionend", Lu = "wheel", Eu = "ready", Iu = "show", Au = "shown", Du = "hide", Ou = "hidden", Nu = "view", Di = "viewed", Fu = "move", Ru = "moved", Mu = "rotate", $u = "rotated", Pu = "scale", zu = "scaled", Bu = "zoom", Hu = "zoomed", Wu = "play", ju = "stop", Aa = "".concat(Ne, "Action"), Zs = /\s\s*/, ba = ["zoom-in", "zoom-out", "one-to-one", "reset", "prev", "play", "next", "rotate-left", "rotate-right", "flip-horizontal", "flip-vertical"];
9925
+ }, mp = '<div class="viewer-container" tabindex="-1" touch-action="none"><div class="viewer-canvas"></div><div class="viewer-footer"><div class="viewer-title"></div><div class="viewer-toolbar"></div><div class="viewer-navbar"><ul class="viewer-list" role="navigation"></ul></div></div><div class="viewer-tooltip" role="alert" aria-hidden="true"></div><div class="viewer-button" data-viewer-action="mix" role="button"></div><div class="viewer-player"></div></div>', Fa = typeof window < "u" && typeof window.document < "u", En = Fa ? window : {}, Wr = Fa && En.document.documentElement ? "ontouchstart" in En.document.documentElement : !1, Qs = Fa ? "PointerEvent" in En : !1, Ne = "viewer", ka = "move", Ec = "switch", Ti = "zoom", ya = "".concat(Ne, "-active"), vp = "".concat(Ne, "-close"), Sa = "".concat(Ne, "-fade"), zs = "".concat(Ne, "-fixed"), yp = "".concat(Ne, "-fullscreen"), xu = "".concat(Ne, "-fullscreen-exit"), ir = "".concat(Ne, "-hide"), bp = "".concat(Ne, "-hide-md-down"), xp = "".concat(Ne, "-hide-sm-down"), wp = "".concat(Ne, "-hide-xs-down"), Qt = "".concat(Ne, "-in"), Ii = "".concat(Ne, "-invisible"), jr = "".concat(Ne, "-loading"), kp = "".concat(Ne, "-move"), wu = "".concat(Ne, "-open"), $r = "".concat(Ne, "-show"), it = "".concat(Ne, "-transition"), Ur = "click", Bs = "dblclick", ku = "dragstart", Su = "focusin", Cu = "keydown", Zt = "load", ar = "error", Sp = Wr ? "touchend touchcancel" : "mouseup", Cp = Wr ? "touchmove" : "mousemove", Tp = Wr ? "touchstart" : "mousedown", Tu = Qs ? "pointerdown" : Tp, _u = Qs ? "pointermove" : Cp, Lu = Qs ? "pointerup pointercancel" : Sp, Eu = "resize", cn = "transitionend", Iu = "wheel", Au = "ready", Du = "show", Ou = "shown", Nu = "hide", Fu = "hidden", Ru = "view", Di = "viewed", Mu = "move", $u = "moved", Pu = "rotate", zu = "rotated", Bu = "scale", Hu = "scaled", Wu = "zoom", ju = "zoomed", Uu = "play", qu = "stop", Aa = "".concat(Ne, "Action"), Zs = /\s\s*/, ba = ["zoom-in", "zoom-out", "one-to-one", "reset", "prev", "play", "next", "rotate-left", "rotate-right", "flip-horizontal", "flip-vertical"];
9924
9926
  function Oi(l) {
9925
9927
  return typeof l == "string";
9926
9928
  }
9927
- var Tp = Number.isNaN || En.isNaN;
9929
+ var _p = Number.isNaN || En.isNaN;
9928
9930
  function nt(l) {
9929
- return typeof l == "number" && !Tp(l);
9931
+ return typeof l == "number" && !_p(l);
9930
9932
  }
9931
9933
  function zr(l) {
9932
9934
  return typeof l > "u";
@@ -9934,13 +9936,13 @@ function zr(l) {
9934
9936
  function qr(l) {
9935
9937
  return Ps(l) === "object" && l !== null;
9936
9938
  }
9937
- var _p = Object.prototype.hasOwnProperty;
9939
+ var Lp = Object.prototype.hasOwnProperty;
9938
9940
  function Br(l) {
9939
9941
  if (!qr(l))
9940
9942
  return !1;
9941
9943
  try {
9942
9944
  var n = l.constructor, r = n.prototype;
9943
- return n && r && _p.call(r, "isPrototypeOf");
9945
+ return n && r && Lp.call(r, "isPrototypeOf");
9944
9946
  } catch {
9945
9947
  return !1;
9946
9948
  }
@@ -9967,14 +9969,14 @@ var Kt = Object.assign || function(n) {
9967
9969
  n[p] = f[p];
9968
9970
  });
9969
9971
  }), n;
9970
- }, Lp = /^(?:width|height|left|top|marginLeft|marginTop)$/;
9972
+ }, Ep = /^(?:width|height|left|top|marginLeft|marginTop)$/;
9971
9973
  function fn(l, n) {
9972
9974
  var r = l.style;
9973
9975
  Ke(n, function(o, u) {
9974
- Lp.test(u) && nt(o) && (o += "px"), r[u] = o;
9976
+ Ep.test(u) && nt(o) && (o += "px"), r[u] = o;
9975
9977
  });
9976
9978
  }
9977
- function Ep(l) {
9979
+ function Ip(l) {
9978
9980
  return Oi(l) ? l.replace(/&(?!amp;|quot;|#39;|lt;|gt;)/g, "&amp;").replace(/"/g, "&quot;").replace(/'/g, "&#39;").replace(/</g, "&lt;").replace(/>/g, "&gt;") : l;
9979
9981
  }
9980
9982
  function Pr(l, n) {
@@ -10022,9 +10024,9 @@ function Ni(l, n, r) {
10022
10024
  r ? Le(l, n) : Be(l, n);
10023
10025
  }
10024
10026
  }
10025
- var Ip = /([a-z\d])([A-Z])/g;
10027
+ var Ap = /([a-z\d])([A-Z])/g;
10026
10028
  function eo(l) {
10027
- return l.replace(Ip, "$1-$2").toLowerCase();
10029
+ return l.replace(Ap, "$1-$2").toLowerCase();
10028
10030
  }
10029
10031
  function Hr(l, n) {
10030
10032
  return qr(l[n]) ? l[n] : l.dataset ? l.dataset[n] : l.getAttribute("data-".concat(eo(n)));
@@ -10032,7 +10034,7 @@ function Hr(l, n) {
10032
10034
  function Hs(l, n, r) {
10033
10035
  qr(r) ? l[n] = r : l.dataset ? l.dataset[n] = r : l.setAttribute("data-".concat(eo(n)), r);
10034
10036
  }
10035
- var _c = function() {
10037
+ var Ic = function() {
10036
10038
  var l = !1;
10037
10039
  if (Fa) {
10038
10040
  var n = !1, r = function() {
@@ -10056,7 +10058,7 @@ var _c = function() {
10056
10058
  function Ge(l, n, r) {
10057
10059
  var o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, u = r;
10058
10060
  n.trim().split(Zs).forEach(function(f) {
10059
- if (!_c) {
10061
+ if (!Ic) {
10060
10062
  var p = l.listeners;
10061
10063
  p && p[f] && p[f][r] && (u = p[f][r], delete p[f][r], Object.keys(p[f]).length === 0 && delete p[f], Object.keys(p).length === 0 && delete l.listeners);
10062
10064
  }
@@ -10066,7 +10068,7 @@ function Ge(l, n, r) {
10066
10068
  function Ee(l, n, r) {
10067
10069
  var o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, u = r;
10068
10070
  n.trim().split(Zs).forEach(function(f) {
10069
- if (o.once && !_c) {
10071
+ if (o.once && !Ic) {
10070
10072
  var p = l.listeners, y = p === void 0 ? {} : p;
10071
10073
  u = function() {
10072
10074
  delete y[f][r], l.removeEventListener(f, u, o);
@@ -10086,7 +10088,7 @@ function ot(l, n, r, o) {
10086
10088
  detail: r
10087
10089
  }, o)) : (u = document.createEvent("CustomEvent"), u.initCustomEvent(n, !0, !0, r)), l.dispatchEvent(u);
10088
10090
  }
10089
- function Ap(l) {
10091
+ function Dp(l) {
10090
10092
  var n = l.getBoundingClientRect();
10091
10093
  return {
10092
10094
  left: n.left + (window.pageXOffset - document.documentElement.clientLeft),
@@ -10103,11 +10105,11 @@ function Ca(l) {
10103
10105
  transform: y
10104
10106
  };
10105
10107
  }
10106
- function Dp(l) {
10108
+ function Op(l) {
10107
10109
  return Oi(l) ? decodeURIComponent(l.replace(/^.*\//, "").replace(/[?&#].*$/, "")) : "";
10108
10110
  }
10109
10111
  var Os = En.navigator && /Version\/\d+(\.\d+)+?\s+Safari/i.test(En.navigator.userAgent);
10110
- function Lc(l, n, r) {
10112
+ function Ac(l, n, r) {
10111
10113
  var o = document.createElement("img");
10112
10114
  if (l.naturalWidth && !Os)
10113
10115
  return r(l.naturalWidth, l.naturalHeight), o;
@@ -10122,16 +10124,16 @@ function Lc(l, n, r) {
10122
10124
  function xa(l) {
10123
10125
  switch (l) {
10124
10126
  case 2:
10125
- return xp;
10127
+ return wp;
10126
10128
  case 3:
10127
- return bp;
10129
+ return xp;
10128
10130
  case 4:
10129
- return yp;
10131
+ return bp;
10130
10132
  default:
10131
10133
  return "";
10132
10134
  }
10133
10135
  }
10134
- function Op(l) {
10136
+ function Np(l) {
10135
10137
  var n = Js({}, l), r = [];
10136
10138
  return Ke(l, function(o, u) {
10137
10139
  delete n[u], Ke(n, function(f) {
@@ -10153,7 +10155,7 @@ function wa(l, n) {
10153
10155
  startY: o
10154
10156
  }, u);
10155
10157
  }
10156
- function Np(l) {
10158
+ function Fp(l) {
10157
10159
  var n = 0, r = 0, o = 0;
10158
10160
  return Ke(l, function(u) {
10159
10161
  var f = u.startX, p = u.startY;
@@ -10163,7 +10165,7 @@ function Np(l) {
10163
10165
  pageY: r
10164
10166
  };
10165
10167
  }
10166
- var Fp = {
10168
+ var Rp = {
10167
10169
  render: function() {
10168
10170
  this.initContainer(), this.initViewer(), this.initList(), this.renderViewer();
10169
10171
  },
@@ -10190,7 +10192,7 @@ var Fp = {
10190
10192
  initList: function() {
10191
10193
  var n = this, r = this.element, o = this.options, u = this.list, f = [];
10192
10194
  u.innerHTML = "", Ke(this.images, function(p, y) {
10193
- var m = p.src, k = p.alt || Dp(m), S = n.getImageURL(p);
10195
+ var m = p.src, k = p.alt || Op(m), S = n.getImageURL(p);
10194
10196
  if (m || S) {
10195
10197
  var R = document.createElement("li"), L = document.createElement("img");
10196
10198
  Ke(o.inheritedAttributes, function(W) {
@@ -10238,7 +10240,7 @@ var Fp = {
10238
10240
  abort: function() {
10239
10241
  S.onload = null;
10240
10242
  }
10241
- }, S = Lc(u, o, function(R, L) {
10243
+ }, S = Ac(u, o, function(R, L) {
10242
10244
  var W = R / L, z = Math.max(0, Math.min(1, o.initialCoverage)), D = y, $ = m;
10243
10245
  r.imageInitializing = !1, m * W > y ? $ = y / W : D = m * W, z = nt(z) ? z : 0.9, D = Math.min(D * z, R), $ = Math.min($ * z, L);
10244
10246
  var I = (y - D) / 2, N = (m - $) / 2, H = {
@@ -10284,22 +10286,22 @@ var Fp = {
10284
10286
  var n = this.image;
10285
10287
  n && (this.viewing && this.viewing.abort(), n.parentNode.removeChild(n), this.image = null, this.title.innerHTML = "");
10286
10288
  }
10287
- }, Rp = {
10289
+ }, Mp = {
10288
10290
  bind: function() {
10289
10291
  var n = this.options, r = this.viewer, o = this.canvas, u = this.element.ownerDocument;
10290
- Ee(r, Ur, this.onClick = this.click.bind(this)), Ee(r, xu, this.onDragStart = this.dragstart.bind(this)), Ee(o, Su, this.onPointerDown = this.pointerdown.bind(this)), Ee(u, Cu, this.onPointerMove = this.pointermove.bind(this)), Ee(u, Tu, this.onPointerUp = this.pointerup.bind(this)), Ee(u, ku, this.onKeyDown = this.keydown.bind(this)), Ee(window, _u, this.onResize = this.resize.bind(this)), n.zoomable && n.zoomOnWheel && Ee(r, Lu, this.onWheel = this.wheel.bind(this), {
10292
+ Ee(r, Ur, this.onClick = this.click.bind(this)), Ee(r, ku, this.onDragStart = this.dragstart.bind(this)), Ee(o, Tu, this.onPointerDown = this.pointerdown.bind(this)), Ee(u, _u, this.onPointerMove = this.pointermove.bind(this)), Ee(u, Lu, this.onPointerUp = this.pointerup.bind(this)), Ee(u, Cu, this.onKeyDown = this.keydown.bind(this)), Ee(window, Eu, this.onResize = this.resize.bind(this)), n.zoomable && n.zoomOnWheel && Ee(r, Iu, this.onWheel = this.wheel.bind(this), {
10291
10293
  passive: !1,
10292
10294
  capture: !0
10293
10295
  }), n.toggleOnDblclick && Ee(o, Bs, this.onDblclick = this.dblclick.bind(this));
10294
10296
  },
10295
10297
  unbind: function() {
10296
10298
  var n = this.options, r = this.viewer, o = this.canvas, u = this.element.ownerDocument;
10297
- Ge(r, Ur, this.onClick), Ge(r, xu, this.onDragStart), Ge(o, Su, this.onPointerDown), Ge(u, Cu, this.onPointerMove), Ge(u, Tu, this.onPointerUp), Ge(u, ku, this.onKeyDown), Ge(window, _u, this.onResize), n.zoomable && n.zoomOnWheel && Ge(r, Lu, this.onWheel, {
10299
+ Ge(r, Ur, this.onClick), Ge(r, ku, this.onDragStart), Ge(o, Tu, this.onPointerDown), Ge(u, _u, this.onPointerMove), Ge(u, Lu, this.onPointerUp), Ge(u, Cu, this.onKeyDown), Ge(window, Eu, this.onResize), n.zoomable && n.zoomOnWheel && Ge(r, Iu, this.onWheel, {
10298
10300
  passive: !1,
10299
10301
  capture: !0
10300
10302
  }), n.toggleOnDblclick && Ge(o, Bs, this.onDblclick);
10301
10303
  }
10302
- }, Mp = {
10304
+ }, $p = {
10303
10305
  click: function(n) {
10304
10306
  var r = this.options, o = this.imageData, u = n.target, f = Hr(u, Aa);
10305
10307
  switch (!f && u.localName === "img" && u.parentElement.localName === "li" && (u = u.parentElement, f = Hr(u, Aa)), Wr && n.isTrusted && u === this.canvas && clearTimeout(this.clickCanvasTimeout), f) {
@@ -10357,7 +10359,7 @@ var Fp = {
10357
10359
  this.timeout && (clearTimeout(this.timeout), this.timeout = !1);
10358
10360
  var r = this.element, o = this.options, u = this.image, f = this.index, p = this.viewerData;
10359
10361
  Be(u, Ii), o.loading && Be(this.canvas, jr), u.style.cssText = "height:0;" + "margin-left:".concat(p.width / 2, "px;") + "margin-top:".concat(p.height / 2, "px;") + "max-width:none!important;position:relative;width:0;", this.initImage(function() {
10360
- Ni(u, wp, o.movable), Ni(u, it, o.transition), n.renderImage(function() {
10362
+ Ni(u, kp, o.movable), Ni(u, it, o.transition), n.renderImage(function() {
10361
10363
  n.viewed = !0, n.viewing = !1, qe(o.viewed) && Ee(r, Di, o.viewed, {
10362
10364
  once: !0
10363
10365
  }), ot(r, Di, {
@@ -10372,7 +10374,7 @@ var Fp = {
10372
10374
  },
10373
10375
  loadImage: function(n) {
10374
10376
  var r = n.target, o = r.parentNode, u = o.offsetWidth || 30, f = o.offsetHeight || 50, p = !!Hr(r, "filled");
10375
- Lc(r, this.options, function(y, m) {
10377
+ Ac(r, this.options, function(y, m) {
10376
10378
  var k = y / m, S = u, R = f;
10377
10379
  f * k > u ? p ? S = f * k : R = u / k : p ? R = u / k : S = f * k, fn(r, Kt({
10378
10380
  width: S,
@@ -10430,7 +10432,7 @@ var Fp = {
10430
10432
  o[y.identifier] = wa(y);
10431
10433
  }) : o[n.pointerId || 0] = wa(n);
10432
10434
  var p = r.movable ? ka : !1;
10433
- r.zoomOnTouch && r.zoomable && Object.keys(o).length > 1 ? p = Ti : r.slideOnTouch && (n.pointerType === "touch" || n.type === "touchstart") && this.isSwitchable() && (p = Tc), r.transition && (p === ka || p === Ti) && Be(this.image, it), this.action = p;
10435
+ r.zoomOnTouch && r.zoomable && Object.keys(o).length > 1 ? p = Ti : r.slideOnTouch && (n.pointerType === "touch" || n.type === "touchstart") && this.isSwitchable() && (p = Ec), r.transition && (p === ka || p === Ti) && Be(this.image, it), this.action = p;
10434
10436
  }
10435
10437
  },
10436
10438
  pointermove: function(n) {
@@ -10481,7 +10483,7 @@ var Fp = {
10481
10483
  n.deltaY ? u = n.deltaY > 0 ? 1 : -1 : n.wheelDelta ? u = -n.wheelDelta / 120 : n.detail && (u = n.detail > 0 ? 1 : -1), this.zoom(-u * o, !0, null, n);
10482
10484
  }
10483
10485
  }
10484
- }, $p = {
10486
+ }, Pp = {
10485
10487
  /** Show the viewer (only available in modal mode)
10486
10488
  * @param {boolean} [immediate=false] - Indicates if show the viewer immediately or not.
10487
10489
  * @returns {Viewer} this
@@ -10492,9 +10494,9 @@ var Fp = {
10492
10494
  return this;
10493
10495
  if (!this.ready)
10494
10496
  return this.build(), this.ready && this.show(n), this;
10495
- if (qe(o.show) && Ee(r, Iu, o.show, {
10497
+ if (qe(o.show) && Ee(r, Du, o.show, {
10496
10498
  once: !0
10497
- }), ot(r, Iu) === !1 || !this.ready)
10499
+ }), ot(r, Du) === !1 || !this.ready)
10498
10500
  return this;
10499
10501
  this.hiding && this.transitioning.abort(), this.showing = !0, this.open();
10500
10502
  var u = this.viewer;
@@ -10520,9 +10522,9 @@ var Fp = {
10520
10522
  var n = this, r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, o = this.element, u = this.options;
10521
10523
  if (u.inline || this.hiding || !(this.isShown || this.showing))
10522
10524
  return this;
10523
- if (qe(u.hide) && Ee(o, Du, u.hide, {
10525
+ if (qe(u.hide) && Ee(o, Nu, u.hide, {
10524
10526
  once: !0
10525
- }), ot(o, Du) === !1)
10527
+ }), ot(o, Nu) === !1)
10526
10528
  return this;
10527
10529
  this.showing && this.transitioning.abort(), this.hiding = !0, this.played ? this.stop() : this.viewing && this.viewing.abort();
10528
10530
  var f = this.viewer, p = this.image, y = function() {
@@ -10561,9 +10563,9 @@ var Fp = {
10561
10563
  if (Ke(u.inheritedAttributes, function($) {
10562
10564
  var I = m.getAttribute($);
10563
10565
  I !== null && R.setAttribute($, I);
10564
- }), R.src = k, R.alt = S, qe(u.view) && Ee(o, Nu, u.view, {
10566
+ }), R.src = k, R.alt = S, qe(u.view) && Ee(o, Ru, u.view, {
10565
10567
  once: !0
10566
- }), ot(o, Nu, {
10568
+ }), ot(o, Ru, {
10567
10569
  originalImage: this.images[r],
10568
10570
  index: r,
10569
10571
  image: R
@@ -10573,7 +10575,7 @@ var Fp = {
10573
10575
  L && (Be(L, ya), L.removeAttribute("aria-selected")), Le(y, ya), y.setAttribute("aria-selected", !0), u.focus && y.focus(), this.image = R, this.viewed = !1, this.index = r, this.imageData = {}, Le(R, Ii), u.loading && Le(p, jr), p.innerHTML = "", p.appendChild(R), this.renderList(), f.innerHTML = "";
10574
10576
  var W = function() {
10575
10577
  var I = n.imageData, N = Array.isArray(u.title) ? u.title[1] : u.title;
10576
- f.innerHTML = Ep(qe(N) ? N.call(n, R, I) : "".concat(S, " (").concat(I.naturalWidth, " × ").concat(I.naturalHeight, ")"));
10578
+ f.innerHTML = Ip(qe(N) ? N.call(n, R, I) : "".concat(S, " (").concat(I.naturalWidth, " × ").concat(I.naturalHeight, ")"));
10577
10579
  }, z, D;
10578
10580
  return Ee(o, Di, W, {
10579
10581
  once: !0
@@ -10635,9 +10637,9 @@ var Fp = {
10635
10637
  if (n = Number(n), o = Number(o), this.viewed && !this.played && p.movable) {
10636
10638
  var m = y.x, k = y.y, S = !1;
10637
10639
  if (nt(n) ? S = !0 : n = m, nt(o) ? S = !0 : o = k, S) {
10638
- if (qe(p.move) && Ee(f, Fu, p.move, {
10640
+ if (qe(p.move) && Ee(f, Mu, p.move, {
10639
10641
  once: !0
10640
- }), ot(f, Fu, {
10642
+ }), ot(f, Mu, {
10641
10643
  x: n,
10642
10644
  y: o,
10643
10645
  oldX: m,
@@ -10646,9 +10648,9 @@ var Fp = {
10646
10648
  }) === !1)
10647
10649
  return this;
10648
10650
  y.x = n, y.y = o, y.left = n, y.top = o, this.moving = !0, this.renderImage(function() {
10649
- r.moving = !1, qe(p.moved) && Ee(f, Ru, p.moved, {
10651
+ r.moving = !1, qe(p.moved) && Ee(f, $u, p.moved, {
10650
10652
  once: !0
10651
- }), ot(f, Ru, {
10653
+ }), ot(f, $u, {
10652
10654
  x: n,
10653
10655
  y: o,
10654
10656
  oldX: m,
@@ -10679,17 +10681,17 @@ var Fp = {
10679
10681
  var r = this, o = this.element, u = this.options, f = this.imageData;
10680
10682
  if (n = Number(n), nt(n) && this.viewed && !this.played && u.rotatable) {
10681
10683
  var p = f.rotate;
10682
- if (qe(u.rotate) && Ee(o, Mu, u.rotate, {
10684
+ if (qe(u.rotate) && Ee(o, Pu, u.rotate, {
10683
10685
  once: !0
10684
- }), ot(o, Mu, {
10686
+ }), ot(o, Pu, {
10685
10687
  degree: n,
10686
10688
  oldDegree: p
10687
10689
  }) === !1)
10688
10690
  return this;
10689
10691
  f.rotate = n, this.rotating = !0, this.renderImage(function() {
10690
- r.rotating = !1, qe(u.rotated) && Ee(o, $u, u.rotated, {
10692
+ r.rotating = !1, qe(u.rotated) && Ee(o, zu, u.rotated, {
10691
10693
  once: !0
10692
- }), ot(o, $u, {
10694
+ }), ot(o, zu, {
10693
10695
  degree: n,
10694
10696
  oldDegree: p
10695
10697
  }, {
@@ -10726,9 +10728,9 @@ var Fp = {
10726
10728
  if (n = Number(n), o = Number(o), this.viewed && !this.played && f.scalable) {
10727
10729
  var y = p.scaleX, m = p.scaleY, k = !1;
10728
10730
  if (nt(n) ? k = !0 : n = y, nt(o) ? k = !0 : o = m, k) {
10729
- if (qe(f.scale) && Ee(u, Pu, f.scale, {
10731
+ if (qe(f.scale) && Ee(u, Bu, f.scale, {
10730
10732
  once: !0
10731
- }), ot(u, Pu, {
10733
+ }), ot(u, Bu, {
10732
10734
  scaleX: n,
10733
10735
  scaleY: o,
10734
10736
  oldScaleX: y,
@@ -10736,9 +10738,9 @@ var Fp = {
10736
10738
  }) === !1)
10737
10739
  return this;
10738
10740
  p.scaleX = n, p.scaleY = o, this.scaling = !0, this.renderImage(function() {
10739
- r.scaling = !1, qe(f.scaled) && Ee(u, zu, f.scaled, {
10741
+ r.scaling = !1, qe(f.scaled) && Ee(u, Hu, f.scaled, {
10740
10742
  once: !0
10741
- }), ot(u, zu, {
10743
+ }), ot(u, Hu, {
10742
10744
  scaleX: n,
10743
10745
  scaleY: o,
10744
10746
  oldScaleX: y,
@@ -10791,25 +10793,25 @@ var Fp = {
10791
10793
  break;
10792
10794
  }
10793
10795
  var H = D * n, V = $ * n, ne = H - W, ue = V - z, se = S.ratio;
10794
- if (qe(m.zoom) && Ee(y, Bu, m.zoom, {
10796
+ if (qe(m.zoom) && Ee(y, Wu, m.zoom, {
10795
10797
  once: !0
10796
- }), ot(y, Bu, {
10798
+ }), ot(y, Wu, {
10797
10799
  ratio: n,
10798
10800
  oldRatio: se,
10799
10801
  originalEvent: f
10800
10802
  }) === !1)
10801
10803
  return this;
10802
10804
  if (this.zooming = !0, f) {
10803
- var de = Ap(this.viewer), De = k && Object.keys(k).length > 0 ? Np(k) : {
10805
+ var de = Dp(this.viewer), De = k && Object.keys(k).length > 0 ? Fp(k) : {
10804
10806
  pageX: f.pageX,
10805
10807
  pageY: f.pageY
10806
10808
  };
10807
10809
  S.x -= ne * ((De.pageX - de.left - R) / W), S.y -= ue * ((De.pageY - de.top - L) / z);
10808
10810
  } else Br(u) && nt(u.x) && nt(u.y) ? (S.x -= ne * ((u.x - R) / W), S.y -= ue * ((u.y - L) / z)) : (S.x -= ne / 2, S.y -= ue / 2);
10809
10811
  S.left = S.x, S.top = S.y, S.width = H, S.height = V, S.oldRatio = se, S.ratio = n, this.renderImage(function() {
10810
- r.zooming = !1, qe(m.zoomed) && Ee(y, Hu, m.zoomed, {
10812
+ r.zooming = !1, qe(m.zoomed) && Ee(y, ju, m.zoomed, {
10811
10813
  once: !0
10812
- }), ot(y, Hu, {
10814
+ }), ot(y, ju, {
10813
10815
  ratio: n,
10814
10816
  oldRatio: se,
10815
10817
  originalEvent: f
@@ -10830,9 +10832,9 @@ var Fp = {
10830
10832
  if (!this.isShown || this.played)
10831
10833
  return this;
10832
10834
  var o = this.element, u = this.options;
10833
- if (qe(u.play) && Ee(o, Wu, u.play, {
10835
+ if (qe(u.play) && Ee(o, Uu, u.play, {
10834
10836
  once: !0
10835
- }), ot(o, Wu) === !1)
10837
+ }), ot(o, Uu) === !1)
10836
10838
  return this;
10837
10839
  var f = this.player, p = this.loadImage.bind(this), y = [], m = 0, k = 0;
10838
10840
  if (this.played = !0, this.onLoadWhenPlay = p, r && this.requestFullscreen(r), Le(f, $r), Ke(this.items, function(L, W) {
@@ -10860,9 +10862,9 @@ var Fp = {
10860
10862
  if (!this.played)
10861
10863
  return this;
10862
10864
  var r = this.element, o = this.options;
10863
- if (qe(o.stop) && Ee(r, ju, o.stop, {
10865
+ if (qe(o.stop) && Ee(r, qu, o.stop, {
10864
10866
  once: !0
10865
- }), ot(r, ju) === !1)
10867
+ }), ot(r, qu) === !1)
10866
10868
  return this;
10867
10869
  var u = this.player;
10868
10870
  return clearTimeout(this.playing.timeout), this.playing = !1, this.played = !1, Ke(u.getElementsByTagName("img"), function(f) {
@@ -10872,7 +10874,7 @@ var Fp = {
10872
10874
  // Enter modal mode (only available in inline mode)
10873
10875
  full: function() {
10874
10876
  var n = this, r = this.options, o = this.viewer, u = this.image, f = this.list;
10875
- return !this.isShown || this.played || this.fulled || !r.inline ? this : (this.fulled = !0, this.open(), Le(this.button, yu), r.transition && (Be(f, it), this.viewed && Be(u, it)), Le(o, zs), o.setAttribute("role", "dialog"), o.setAttribute("aria-labelledby", this.title.id), o.setAttribute("aria-modal", !0), o.removeAttribute("style"), fn(o, {
10877
+ return !this.isShown || this.played || this.fulled || !r.inline ? this : (this.fulled = !0, this.open(), Le(this.button, xu), r.transition && (Be(f, it), this.viewed && Be(u, it)), Le(o, zs), o.setAttribute("role", "dialog"), o.setAttribute("aria-labelledby", this.title.id), o.setAttribute("aria-modal", !0), o.removeAttribute("style"), fn(o, {
10876
10878
  zIndex: r.zIndex
10877
10879
  }), r.focus && this.enforceFocus(), this.initContainer(), this.viewerData = Kt({}, this.containerData), this.renderList(), this.viewed && this.initImage(function() {
10878
10880
  n.renderImage(function() {
@@ -10885,7 +10887,7 @@ var Fp = {
10885
10887
  // Exit modal mode (only available in inline mode)
10886
10888
  exit: function() {
10887
10889
  var n = this, r = this.options, o = this.viewer, u = this.image, f = this.list;
10888
- return !this.isShown || this.played || !this.fulled || !r.inline ? this : (this.fulled = !1, this.close(), Be(this.button, yu), r.transition && (Be(f, it), this.viewed && Be(u, it)), r.focus && this.clearEnforceFocus(), o.removeAttribute("role"), o.removeAttribute("aria-labelledby"), o.removeAttribute("aria-modal"), Be(o, zs), fn(o, {
10890
+ return !this.isShown || this.played || !this.fulled || !r.inline ? this : (this.fulled = !1, this.close(), Be(this.button, xu), r.transition && (Be(f, it), this.viewed && Be(u, it)), r.focus && this.clearEnforceFocus(), o.removeAttribute("role"), o.removeAttribute("aria-labelledby"), o.removeAttribute("aria-modal"), Be(o, zs), fn(o, {
10889
10891
  zIndex: r.zIndexInline
10890
10892
  }), this.viewerData = Kt({}, this.parentData), this.renderViewer(), this.renderList(), this.viewed && this.initImage(function() {
10891
10893
  n.renderImage(function() {
@@ -10958,14 +10960,14 @@ var Fp = {
10958
10960
  var n = this.element, r = this.options;
10959
10961
  return n[Ne] ? (this.destroyed = !0, this.ready ? (this.played && this.stop(), r.inline ? (this.fulled && this.exit(), this.unbind()) : this.isShown ? (this.viewing && (this.imageRendering ? this.imageRendering.abort() : this.imageInitializing && this.imageInitializing.abort()), this.hiding && this.transitioning.abort(), this.hidden()) : this.showing && (this.transitioning.abort(), this.hidden()), this.ready = !1, this.viewer.parentNode.removeChild(this.viewer)) : r.inline && (this.delaying ? this.delaying.abort() : this.initializing && this.initializing.abort()), r.inline || Ge(n, Ur, this.onStart), n[Ne] = void 0, this) : this;
10960
10962
  }
10961
- }, Pp = {
10963
+ }, zp = {
10962
10964
  getImageURL: function(n) {
10963
10965
  var r = this.options.url;
10964
10966
  return Oi(r) ? r = n.getAttribute(r) : qe(r) ? r = r.call(this, n) : r = "", r;
10965
10967
  },
10966
10968
  enforceFocus: function() {
10967
10969
  var n = this;
10968
- this.clearEnforceFocus(), Ee(document, wu, this.onFocusin = function(r) {
10970
+ this.clearEnforceFocus(), Ee(document, Su, this.onFocusin = function(r) {
10969
10971
  var o = n.viewer, u = r.target;
10970
10972
  if (!(u === document || u === o || o.contains(u))) {
10971
10973
  for (; u; ) {
@@ -10978,27 +10980,27 @@ var Fp = {
10978
10980
  });
10979
10981
  },
10980
10982
  clearEnforceFocus: function() {
10981
- this.onFocusin && (Ge(document, wu, this.onFocusin), this.onFocusin = null);
10983
+ this.onFocusin && (Ge(document, Su, this.onFocusin), this.onFocusin = null);
10982
10984
  },
10983
10985
  open: function() {
10984
10986
  var n = this.body;
10985
- Le(n, bu), this.scrollbarWidth > 0 && (n.style.paddingRight = "".concat(this.scrollbarWidth + (parseFloat(this.initialBodyComputedPaddingRight) || 0), "px"));
10987
+ Le(n, wu), this.scrollbarWidth > 0 && (n.style.paddingRight = "".concat(this.scrollbarWidth + (parseFloat(this.initialBodyComputedPaddingRight) || 0), "px"));
10986
10988
  },
10987
10989
  close: function() {
10988
10990
  var n = this.body;
10989
- Be(n, bu), this.scrollbarWidth > 0 && (n.style.paddingRight = this.initialBodyPaddingRight);
10991
+ Be(n, wu), this.scrollbarWidth > 0 && (n.style.paddingRight = this.initialBodyPaddingRight);
10990
10992
  },
10991
10993
  shown: function() {
10992
10994
  var n = this.element, r = this.options, o = this.viewer;
10993
- this.fulled = !0, this.isShown = !0, this.render(), this.bind(), this.showing = !1, r.focus && (o.focus(), this.enforceFocus()), qe(r.shown) && Ee(n, Au, r.shown, {
10995
+ this.fulled = !0, this.isShown = !0, this.render(), this.bind(), this.showing = !1, r.focus && (o.focus(), this.enforceFocus()), qe(r.shown) && Ee(n, Ou, r.shown, {
10994
10996
  once: !0
10995
- }), ot(n, Au) !== !1 && this.ready && this.isShown && !this.hiding && this.view(this.index);
10997
+ }), ot(n, Ou) !== !1 && this.ready && this.isShown && !this.hiding && this.view(this.index);
10996
10998
  },
10997
10999
  hidden: function() {
10998
11000
  var n = this.element, r = this.options, o = this.viewer;
10999
- r.fucus && this.clearEnforceFocus(), this.close(), this.unbind(), Le(o, ir), o.removeAttribute("role"), o.removeAttribute("aria-labelledby"), o.removeAttribute("aria-modal"), o.setAttribute("aria-hidden", !0), this.resetList(), this.resetImage(), this.fulled = !1, this.viewed = !1, this.isShown = !1, this.hiding = !1, this.destroyed || (qe(r.hidden) && Ee(n, Ou, r.hidden, {
11001
+ r.fucus && this.clearEnforceFocus(), this.close(), this.unbind(), Le(o, ir), o.removeAttribute("role"), o.removeAttribute("aria-labelledby"), o.removeAttribute("aria-modal"), o.setAttribute("aria-hidden", !0), this.resetList(), this.resetImage(), this.fulled = !1, this.viewed = !1, this.isShown = !1, this.hiding = !1, this.destroyed || (qe(r.hidden) && Ee(n, Fu, r.hidden, {
11000
11002
  once: !0
11001
- }), ot(n, Ou, null, {
11003
+ }), ot(n, Fu, null, {
11002
11004
  cancelable: !1
11003
11005
  }));
11004
11006
  },
@@ -11022,9 +11024,9 @@ var Fp = {
11022
11024
  (f !== 0 || p !== 0) && (this.pointerMoved = !0, this.move(f, p, n));
11023
11025
  break;
11024
11026
  case Ti:
11025
- this.zoom(Op(o), !1, null, n);
11027
+ this.zoom(Np(o), !1, null, n);
11026
11028
  break;
11027
- case Tc: {
11029
+ case Ec: {
11028
11030
  this.action = "switched";
11029
11031
  var y = Math.abs(f);
11030
11032
  y > 1 && y > Math.abs(p) && (this.pointers = {}, f > 1 ? this.prev(r.loop) : f < -1 && this.next(r.loop));
@@ -11040,18 +11042,18 @@ var Fp = {
11040
11042
  var n = this.imageData, r = this.viewerData;
11041
11043
  return this.length > 1 && n.x >= 0 && n.y >= 0 && n.width <= r.width && n.height <= r.height;
11042
11044
  }
11043
- }, zp = En.Viewer, Bp = /* @__PURE__ */ function(l) {
11045
+ }, Bp = En.Viewer, Hp = /* @__PURE__ */ function(l) {
11044
11046
  return function() {
11045
11047
  return l += 1, l;
11046
11048
  };
11047
- }(-1), Ec = /* @__PURE__ */ function() {
11049
+ }(-1), Dc = /* @__PURE__ */ function() {
11048
11050
  function l(n) {
11049
11051
  var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
11050
- if (fp(this, l), !n || n.nodeType !== 1)
11052
+ if (dp(this, l), !n || n.nodeType !== 1)
11051
11053
  throw new Error("The first argument is required and must be an element.");
11052
- this.element = n, this.options = Kt({}, vu, Br(r) && r), this.action = !1, this.fading = !1, this.fulled = !1, this.hiding = !1, this.imageClicked = !1, this.imageData = {}, this.index = this.options.initialViewIndex, this.isImg = !1, this.isShown = !1, this.length = 0, this.moving = !1, this.played = !1, this.playing = !1, this.pointers = {}, this.ready = !1, this.rotating = !1, this.scaling = !1, this.showing = !1, this.timeout = !1, this.tooltipping = !1, this.viewed = !1, this.viewing = !1, this.wheeling = !1, this.zooming = !1, this.pointerMoved = !1, this.id = Bp(), this.init();
11054
+ this.element = n, this.options = Kt({}, bu, Br(r) && r), this.action = !1, this.fading = !1, this.fulled = !1, this.hiding = !1, this.imageClicked = !1, this.imageData = {}, this.index = this.options.initialViewIndex, this.isImg = !1, this.isShown = !1, this.length = 0, this.moving = !1, this.played = !1, this.playing = !1, this.pointers = {}, this.ready = !1, this.rotating = !1, this.scaling = !1, this.showing = !1, this.timeout = !1, this.tooltipping = !1, this.viewed = !1, this.viewing = !1, this.wheeling = !1, this.zooming = !1, this.pointerMoved = !1, this.id = Hp(), this.init();
11053
11055
  }
11054
- return dp(l, [{
11056
+ return hp(l, [{
11055
11057
  key: "init",
11056
11058
  value: function() {
11057
11059
  var r = this, o = this.element, u = this.options;
@@ -11107,7 +11109,7 @@ var Fp = {
11107
11109
  value: function() {
11108
11110
  if (!this.ready) {
11109
11111
  var r = this.element, o = this.options, u = r.parentNode, f = document.createElement("div");
11110
- f.innerHTML = gp;
11112
+ f.innerHTML = mp;
11111
11113
  var p = f.querySelector(".".concat(Ne, "-container")), y = p.querySelector(".".concat(Ne, "-title")), m = p.querySelector(".".concat(Ne, "-toolbar")), k = p.querySelector(".".concat(Ne, "-navbar")), S = p.querySelector(".".concat(Ne, "-button")), R = p.querySelector(".".concat(Ne, "-canvas"));
11112
11114
  if (this.parent = u, this.viewer = p, this.title = y, this.toolbar = m, this.navbar = k, this.button = S, this.canvas = R, this.footer = p.querySelector(".".concat(Ne, "-footer")), this.tooltipBox = p.querySelector(".".concat(Ne, "-tooltip")), this.player = p.querySelector(".".concat(Ne, "-player")), this.list = p.querySelector(".".concat(Ne, "-list")), p.id = "".concat(Ne).concat(this.id), y.id = "".concat(Ne, "Title").concat(this.id), Le(y, o.title ? xa(Array.isArray(o.title) ? o.title[0] : o.title) : ir), Le(k, o.navbar ? xa(o.navbar) : ir), Ni(S, ir, !o.button), o.keyboard && S.setAttribute("tabindex", 0), o.backdrop && (Le(p, "".concat(Ne, "-backdrop")), !o.inline && o.backdrop !== "static" && Hs(R, Aa, "hide")), Oi(o.className) && o.className && o.className.split(Zs).forEach(function(H) {
11113
11115
  Le(p, H);
@@ -11129,21 +11131,21 @@ var Fp = {
11129
11131
  });
11130
11132
  }
11131
11133
  if (o.inline)
11132
- Le(S, vp), fn(p, {
11134
+ Le(S, yp), fn(p, {
11133
11135
  zIndex: o.zIndexInline
11134
11136
  }), window.getComputedStyle(u).position === "static" && fn(u, {
11135
11137
  position: "relative"
11136
11138
  }), u.insertBefore(p, r.nextSibling);
11137
11139
  else {
11138
- Le(S, mp), Le(p, zs), Le(p, Sa), Le(p, ir), fn(p, {
11140
+ Le(S, vp), Le(p, zs), Le(p, Sa), Le(p, ir), fn(p, {
11139
11141
  zIndex: o.zIndex
11140
11142
  });
11141
11143
  var N = o.container;
11142
11144
  Oi(N) && (N = r.ownerDocument.querySelector(N)), N || (N = this.body), N.appendChild(p);
11143
11145
  }
11144
- if (o.inline && (this.render(), this.bind(), this.isShown = !0), this.ready = !0, qe(o.ready) && Ee(r, Eu, o.ready, {
11146
+ if (o.inline && (this.render(), this.bind(), this.isShown = !0), this.ready = !0, qe(o.ready) && Ee(r, Au, o.ready, {
11145
11147
  once: !0
11146
- }), ot(r, Eu) === !1) {
11148
+ }), ot(r, Au) === !1) {
11147
11149
  this.ready = !1;
11148
11150
  return;
11149
11151
  }
@@ -11157,7 +11159,7 @@ var Fp = {
11157
11159
  }], [{
11158
11160
  key: "noConflict",
11159
11161
  value: function() {
11160
- return window.Viewer = zp, l;
11162
+ return window.Viewer = Bp, l;
11161
11163
  }
11162
11164
  /**
11163
11165
  * Change the default options.
@@ -11166,60 +11168,60 @@ var Fp = {
11166
11168
  }, {
11167
11169
  key: "setDefaults",
11168
11170
  value: function(r) {
11169
- Kt(vu, Br(r) && r);
11171
+ Kt(bu, Br(r) && r);
11170
11172
  }
11171
11173
  }]);
11172
11174
  }();
11173
- Kt(Ec.prototype, Fp, Rp, Mp, $p, Pp);
11174
- var Hp = typeof global == "object" && global && global.Object === Object && global, Ic = Hp, Wp = typeof self == "object" && self && self.Object === Object && self, jp = Ic || Wp || Function("return this")(), to = jp, Up = to.Symbol, Da = Up, Ac = Object.prototype, qp = Ac.hasOwnProperty, Gp = Ac.toString, Ci = Da ? Da.toStringTag : void 0;
11175
- function Kp(l) {
11176
- var n = qp.call(l, Ci), r = l[Ci];
11175
+ Kt(Dc.prototype, Rp, Mp, $p, Pp, zp);
11176
+ var Wp = typeof global == "object" && global && global.Object === Object && global, Oc = Wp, jp = typeof self == "object" && self && self.Object === Object && self, Up = Oc || jp || Function("return this")(), to = Up, qp = to.Symbol, Da = qp, Nc = Object.prototype, Gp = Nc.hasOwnProperty, Kp = Nc.toString, Ci = Da ? Da.toStringTag : void 0;
11177
+ function Vp(l) {
11178
+ var n = Gp.call(l, Ci), r = l[Ci];
11177
11179
  try {
11178
11180
  l[Ci] = void 0;
11179
11181
  var o = !0;
11180
11182
  } catch {
11181
11183
  }
11182
- var u = Gp.call(l);
11184
+ var u = Kp.call(l);
11183
11185
  return o && (n ? l[Ci] = r : delete l[Ci]), u;
11184
11186
  }
11185
- var Vp = Object.prototype, Xp = Vp.toString;
11186
- function Yp(l) {
11187
- return Xp.call(l);
11187
+ var Xp = Object.prototype, Yp = Xp.toString;
11188
+ function Jp(l) {
11189
+ return Yp.call(l);
11188
11190
  }
11189
- var Jp = "[object Null]", Qp = "[object Undefined]", Uu = Da ? Da.toStringTag : void 0;
11191
+ var Qp = "[object Null]", Zp = "[object Undefined]", Gu = Da ? Da.toStringTag : void 0;
11190
11192
  function no(l) {
11191
- return l == null ? l === void 0 ? Qp : Jp : Uu && Uu in Object(l) ? Kp(l) : Yp(l);
11193
+ return l == null ? l === void 0 ? Zp : Qp : Gu && Gu in Object(l) ? Vp(l) : Jp(l);
11192
11194
  }
11193
11195
  function ro(l) {
11194
11196
  return l != null && typeof l == "object";
11195
11197
  }
11196
- var Zp = Array.isArray, eg = Zp;
11198
+ var eg = Array.isArray, tg = eg;
11197
11199
  function io(l) {
11198
11200
  var n = typeof l;
11199
11201
  return l != null && (n == "object" || n == "function");
11200
11202
  }
11201
- function Dc(l) {
11203
+ function Fc(l) {
11202
11204
  return l;
11203
11205
  }
11204
- var tg = "[object AsyncFunction]", ng = "[object Function]", rg = "[object GeneratorFunction]", ig = "[object Proxy]";
11205
- function Oc(l) {
11206
+ var ng = "[object AsyncFunction]", rg = "[object Function]", ig = "[object GeneratorFunction]", ag = "[object Proxy]";
11207
+ function Rc(l) {
11206
11208
  if (!io(l))
11207
11209
  return !1;
11208
11210
  var n = no(l);
11209
- return n == ng || n == rg || n == tg || n == ig;
11211
+ return n == rg || n == ig || n == ng || n == ag;
11210
11212
  }
11211
- var ag = to["__core-js_shared__"], Ns = ag, qu = function() {
11213
+ var sg = to["__core-js_shared__"], Ns = sg, Ku = function() {
11212
11214
  var l = /[^.]+$/.exec(Ns && Ns.keys && Ns.keys.IE_PROTO || "");
11213
11215
  return l ? "Symbol(src)_1." + l : "";
11214
11216
  }();
11215
- function sg(l) {
11216
- return !!qu && qu in l;
11217
+ function og(l) {
11218
+ return !!Ku && Ku in l;
11217
11219
  }
11218
- var og = Function.prototype, lg = og.toString;
11219
- function ug(l) {
11220
+ var lg = Function.prototype, ug = lg.toString;
11221
+ function cg(l) {
11220
11222
  if (l != null) {
11221
11223
  try {
11222
- return lg.call(l);
11224
+ return ug.call(l);
11223
11225
  } catch {
11224
11226
  }
11225
11227
  try {
@@ -11229,23 +11231,23 @@ function ug(l) {
11229
11231
  }
11230
11232
  return "";
11231
11233
  }
11232
- var cg = /[\\^$.*+?()[\]{}|]/g, fg = /^\[object .+?Constructor\]$/, dg = Function.prototype, hg = Object.prototype, pg = dg.toString, gg = hg.hasOwnProperty, mg = RegExp(
11233
- "^" + pg.call(gg).replace(cg, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
11234
+ var fg = /[\\^$.*+?()[\]{}|]/g, dg = /^\[object .+?Constructor\]$/, hg = Function.prototype, pg = Object.prototype, gg = hg.toString, mg = pg.hasOwnProperty, vg = RegExp(
11235
+ "^" + gg.call(mg).replace(fg, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
11234
11236
  );
11235
- function vg(l) {
11236
- if (!io(l) || sg(l))
11237
+ function yg(l) {
11238
+ if (!io(l) || og(l))
11237
11239
  return !1;
11238
- var n = Oc(l) ? mg : fg;
11239
- return n.test(ug(l));
11240
+ var n = Rc(l) ? vg : dg;
11241
+ return n.test(cg(l));
11240
11242
  }
11241
- function yg(l, n) {
11243
+ function bg(l, n) {
11242
11244
  return l == null ? void 0 : l[n];
11243
11245
  }
11244
- function bg(l, n) {
11245
- var r = yg(l, n);
11246
- return vg(r) ? r : void 0;
11246
+ function xg(l, n) {
11247
+ var r = bg(l, n);
11248
+ return yg(r) ? r : void 0;
11247
11249
  }
11248
- function xg(l, n, r) {
11250
+ function wg(l, n, r) {
11249
11251
  switch (r.length) {
11250
11252
  case 0:
11251
11253
  return l.call(n);
@@ -11258,43 +11260,43 @@ function xg(l, n, r) {
11258
11260
  }
11259
11261
  return l.apply(n, r);
11260
11262
  }
11261
- var wg = 800, kg = 16, Sg = Date.now;
11262
- function Cg(l) {
11263
+ var kg = 800, Sg = 16, Cg = Date.now;
11264
+ function Tg(l) {
11263
11265
  var n = 0, r = 0;
11264
11266
  return function() {
11265
- var o = Sg(), u = kg - (o - r);
11267
+ var o = Cg(), u = Sg - (o - r);
11266
11268
  if (r = o, u > 0) {
11267
- if (++n >= wg)
11269
+ if (++n >= kg)
11268
11270
  return arguments[0];
11269
11271
  } else
11270
11272
  n = 0;
11271
11273
  return l.apply(void 0, arguments);
11272
11274
  };
11273
11275
  }
11274
- function Tg(l) {
11276
+ function _g(l) {
11275
11277
  return function() {
11276
11278
  return l;
11277
11279
  };
11278
11280
  }
11279
- var _g = function() {
11281
+ var Lg = function() {
11280
11282
  try {
11281
- var l = bg(Object, "defineProperty");
11283
+ var l = xg(Object, "defineProperty");
11282
11284
  return l({}, "", {}), l;
11283
11285
  } catch {
11284
11286
  }
11285
- }(), Oa = _g, Lg = Oa ? function(l, n) {
11287
+ }(), Oa = Lg, Eg = Oa ? function(l, n) {
11286
11288
  return Oa(l, "toString", {
11287
11289
  configurable: !0,
11288
11290
  enumerable: !1,
11289
- value: Tg(n),
11291
+ value: _g(n),
11290
11292
  writable: !0
11291
11293
  });
11292
- } : Dc, Eg = Lg, Ig = Cg(Eg), Ag = Ig, Dg = 9007199254740991, Og = /^(?:0|[1-9]\d*)$/;
11293
- function Nc(l, n) {
11294
+ } : Fc, Ig = Eg, Ag = Tg(Ig), Dg = Ag, Og = 9007199254740991, Ng = /^(?:0|[1-9]\d*)$/;
11295
+ function Mc(l, n) {
11294
11296
  var r = typeof l;
11295
- return n = n ?? Dg, !!n && (r == "number" || r != "symbol" && Og.test(l)) && l > -1 && l % 1 == 0 && l < n;
11297
+ return n = n ?? Og, !!n && (r == "number" || r != "symbol" && Ng.test(l)) && l > -1 && l % 1 == 0 && l < n;
11296
11298
  }
11297
- function Fc(l, n, r) {
11299
+ function $c(l, n, r) {
11298
11300
  n == "__proto__" && Oa ? Oa(l, n, {
11299
11301
  configurable: !0,
11300
11302
  enumerable: !0,
@@ -11302,136 +11304,136 @@ function Fc(l, n, r) {
11302
11304
  writable: !0
11303
11305
  }) : l[n] = r;
11304
11306
  }
11305
- function Rc(l, n) {
11307
+ function Pc(l, n) {
11306
11308
  return l === n || l !== l && n !== n;
11307
11309
  }
11308
- var Ng = Object.prototype, Fg = Ng.hasOwnProperty;
11309
- function Mc(l, n, r) {
11310
+ var Fg = Object.prototype, Rg = Fg.hasOwnProperty;
11311
+ function zc(l, n, r) {
11310
11312
  var o = l[n];
11311
- (!(Fg.call(l, n) && Rc(o, r)) || r === void 0 && !(n in l)) && Fc(l, n, r);
11313
+ (!(Rg.call(l, n) && Pc(o, r)) || r === void 0 && !(n in l)) && $c(l, n, r);
11312
11314
  }
11313
- function Rg(l, n, r, o) {
11315
+ function Mg(l, n, r, o) {
11314
11316
  var u = !r;
11315
11317
  r || (r = {});
11316
11318
  for (var f = -1, p = n.length; ++f < p; ) {
11317
11319
  var y = n[f], m = void 0;
11318
- m === void 0 && (m = l[y]), u ? Fc(r, y, m) : Mc(r, y, m);
11320
+ m === void 0 && (m = l[y]), u ? $c(r, y, m) : zc(r, y, m);
11319
11321
  }
11320
11322
  return r;
11321
11323
  }
11322
- var Gu = Math.max;
11323
- function Mg(l, n, r) {
11324
- return n = Gu(n === void 0 ? l.length - 1 : n, 0), function() {
11325
- for (var o = arguments, u = -1, f = Gu(o.length - n, 0), p = Array(f); ++u < f; )
11324
+ var Vu = Math.max;
11325
+ function $g(l, n, r) {
11326
+ return n = Vu(n === void 0 ? l.length - 1 : n, 0), function() {
11327
+ for (var o = arguments, u = -1, f = Vu(o.length - n, 0), p = Array(f); ++u < f; )
11326
11328
  p[u] = o[n + u];
11327
11329
  u = -1;
11328
11330
  for (var y = Array(n + 1); ++u < n; )
11329
11331
  y[u] = o[u];
11330
- return y[n] = r(p), xg(l, this, y);
11332
+ return y[n] = r(p), wg(l, this, y);
11331
11333
  };
11332
11334
  }
11333
- function $g(l, n) {
11334
- return Ag(Mg(l, n, Dc), l + "");
11335
+ function Pg(l, n) {
11336
+ return Dg($g(l, n, Fc), l + "");
11335
11337
  }
11336
- var Pg = 9007199254740991;
11337
- function $c(l) {
11338
- return typeof l == "number" && l > -1 && l % 1 == 0 && l <= Pg;
11338
+ var zg = 9007199254740991;
11339
+ function Bc(l) {
11340
+ return typeof l == "number" && l > -1 && l % 1 == 0 && l <= zg;
11339
11341
  }
11340
11342
  function ao(l) {
11341
- return l != null && $c(l.length) && !Oc(l);
11343
+ return l != null && Bc(l.length) && !Rc(l);
11342
11344
  }
11343
- function zg(l, n, r) {
11345
+ function Bg(l, n, r) {
11344
11346
  if (!io(r))
11345
11347
  return !1;
11346
11348
  var o = typeof n;
11347
- return (o == "number" ? ao(r) && Nc(n, r.length) : o == "string" && n in r) ? Rc(r[n], l) : !1;
11349
+ return (o == "number" ? ao(r) && Mc(n, r.length) : o == "string" && n in r) ? Pc(r[n], l) : !1;
11348
11350
  }
11349
- function Bg(l) {
11350
- return $g(function(n, r) {
11351
+ function Hg(l) {
11352
+ return Pg(function(n, r) {
11351
11353
  var o = -1, u = r.length, f = u > 1 ? r[u - 1] : void 0, p = u > 2 ? r[2] : void 0;
11352
- for (f = l.length > 3 && typeof f == "function" ? (u--, f) : void 0, p && zg(r[0], r[1], p) && (f = u < 3 ? void 0 : f, u = 1), n = Object(n); ++o < u; ) {
11354
+ for (f = l.length > 3 && typeof f == "function" ? (u--, f) : void 0, p && Bg(r[0], r[1], p) && (f = u < 3 ? void 0 : f, u = 1), n = Object(n); ++o < u; ) {
11353
11355
  var y = r[o];
11354
11356
  y && l(n, y, o, f);
11355
11357
  }
11356
11358
  return n;
11357
11359
  });
11358
11360
  }
11359
- var Hg = Object.prototype;
11360
- function Pc(l) {
11361
- var n = l && l.constructor, r = typeof n == "function" && n.prototype || Hg;
11361
+ var Wg = Object.prototype;
11362
+ function Hc(l) {
11363
+ var n = l && l.constructor, r = typeof n == "function" && n.prototype || Wg;
11362
11364
  return l === r;
11363
11365
  }
11364
- function Wg(l, n) {
11366
+ function jg(l, n) {
11365
11367
  for (var r = -1, o = Array(l); ++r < l; )
11366
11368
  o[r] = n(r);
11367
11369
  return o;
11368
11370
  }
11369
- var jg = "[object Arguments]";
11370
- function Ku(l) {
11371
- return ro(l) && no(l) == jg;
11371
+ var Ug = "[object Arguments]";
11372
+ function Xu(l) {
11373
+ return ro(l) && no(l) == Ug;
11372
11374
  }
11373
- var zc = Object.prototype, Ug = zc.hasOwnProperty, qg = zc.propertyIsEnumerable, Gg = Ku(/* @__PURE__ */ function() {
11375
+ var Wc = Object.prototype, qg = Wc.hasOwnProperty, Gg = Wc.propertyIsEnumerable, Kg = Xu(/* @__PURE__ */ function() {
11374
11376
  return arguments;
11375
- }()) ? Ku : function(l) {
11376
- return ro(l) && Ug.call(l, "callee") && !qg.call(l, "callee");
11377
- }, Kg = Gg;
11378
- function Vg() {
11377
+ }()) ? Xu : function(l) {
11378
+ return ro(l) && qg.call(l, "callee") && !Gg.call(l, "callee");
11379
+ }, Vg = Kg;
11380
+ function Xg() {
11379
11381
  return !1;
11380
11382
  }
11381
- var Bc = typeof exports == "object" && exports && !exports.nodeType && exports, Vu = Bc && typeof module == "object" && module && !module.nodeType && module, Xg = Vu && Vu.exports === Bc, Xu = Xg ? to.Buffer : void 0, Yg = Xu ? Xu.isBuffer : void 0, Jg = Yg || Vg, Qg = Jg, Zg = "[object Arguments]", em = "[object Array]", tm = "[object Boolean]", nm = "[object Date]", rm = "[object Error]", im = "[object Function]", am = "[object Map]", sm = "[object Number]", om = "[object Object]", lm = "[object RegExp]", um = "[object Set]", cm = "[object String]", fm = "[object WeakMap]", dm = "[object ArrayBuffer]", hm = "[object DataView]", pm = "[object Float32Array]", gm = "[object Float64Array]", mm = "[object Int8Array]", vm = "[object Int16Array]", ym = "[object Int32Array]", bm = "[object Uint8Array]", xm = "[object Uint8ClampedArray]", wm = "[object Uint16Array]", km = "[object Uint32Array]", Ye = {};
11382
- Ye[pm] = Ye[gm] = Ye[mm] = Ye[vm] = Ye[ym] = Ye[bm] = Ye[xm] = Ye[wm] = Ye[km] = !0;
11383
- Ye[Zg] = Ye[em] = Ye[dm] = Ye[tm] = Ye[hm] = Ye[nm] = Ye[rm] = Ye[im] = Ye[am] = Ye[sm] = Ye[om] = Ye[lm] = Ye[um] = Ye[cm] = Ye[fm] = !1;
11384
- function Sm(l) {
11385
- return ro(l) && $c(l.length) && !!Ye[no(l)];
11386
- }
11383
+ var jc = typeof exports == "object" && exports && !exports.nodeType && exports, Yu = jc && typeof module == "object" && module && !module.nodeType && module, Yg = Yu && Yu.exports === jc, Ju = Yg ? to.Buffer : void 0, Jg = Ju ? Ju.isBuffer : void 0, Qg = Jg || Xg, Zg = Qg, em = "[object Arguments]", tm = "[object Array]", nm = "[object Boolean]", rm = "[object Date]", im = "[object Error]", am = "[object Function]", sm = "[object Map]", om = "[object Number]", lm = "[object Object]", um = "[object RegExp]", cm = "[object Set]", fm = "[object String]", dm = "[object WeakMap]", hm = "[object ArrayBuffer]", pm = "[object DataView]", gm = "[object Float32Array]", mm = "[object Float64Array]", vm = "[object Int8Array]", ym = "[object Int16Array]", bm = "[object Int32Array]", xm = "[object Uint8Array]", wm = "[object Uint8ClampedArray]", km = "[object Uint16Array]", Sm = "[object Uint32Array]", Ye = {};
11384
+ Ye[gm] = Ye[mm] = Ye[vm] = Ye[ym] = Ye[bm] = Ye[xm] = Ye[wm] = Ye[km] = Ye[Sm] = !0;
11385
+ Ye[em] = Ye[tm] = Ye[hm] = Ye[nm] = Ye[pm] = Ye[rm] = Ye[im] = Ye[am] = Ye[sm] = Ye[om] = Ye[lm] = Ye[um] = Ye[cm] = Ye[fm] = Ye[dm] = !1;
11387
11386
  function Cm(l) {
11387
+ return ro(l) && Bc(l.length) && !!Ye[no(l)];
11388
+ }
11389
+ function Tm(l) {
11388
11390
  return function(n) {
11389
11391
  return l(n);
11390
11392
  };
11391
11393
  }
11392
- var Hc = typeof exports == "object" && exports && !exports.nodeType && exports, Ai = Hc && typeof module == "object" && module && !module.nodeType && module, Tm = Ai && Ai.exports === Hc, Fs = Tm && Ic.process, _m = function() {
11394
+ var Uc = typeof exports == "object" && exports && !exports.nodeType && exports, Ai = Uc && typeof module == "object" && module && !module.nodeType && module, _m = Ai && Ai.exports === Uc, Fs = _m && Oc.process, Lm = function() {
11393
11395
  try {
11394
11396
  var l = Ai && Ai.require && Ai.require("util").types;
11395
11397
  return l || Fs && Fs.binding && Fs.binding("util");
11396
11398
  } catch {
11397
11399
  }
11398
- }(), Yu = _m, Ju = Yu && Yu.isTypedArray, Lm = Ju ? Cm(Ju) : Sm, Em = Lm, Im = Object.prototype, Am = Im.hasOwnProperty;
11399
- function Dm(l, n) {
11400
- var r = eg(l), o = !r && Kg(l), u = !r && !o && Qg(l), f = !r && !o && !u && Em(l), p = r || o || u || f, y = p ? Wg(l.length, String) : [], m = y.length;
11400
+ }(), Qu = Lm, Zu = Qu && Qu.isTypedArray, Em = Zu ? Tm(Zu) : Cm, Im = Em, Am = Object.prototype, Dm = Am.hasOwnProperty;
11401
+ function Om(l, n) {
11402
+ var r = tg(l), o = !r && Vg(l), u = !r && !o && Zg(l), f = !r && !o && !u && Im(l), p = r || o || u || f, y = p ? jg(l.length, String) : [], m = y.length;
11401
11403
  for (var k in l)
11402
- Am.call(l, k) && !(p && (k == "length" || u && (k == "offset" || k == "parent") || f && (k == "buffer" || k == "byteLength" || k == "byteOffset") || Nc(k, m))) && y.push(k);
11404
+ Dm.call(l, k) && !(p && (k == "length" || u && (k == "offset" || k == "parent") || f && (k == "buffer" || k == "byteLength" || k == "byteOffset") || Mc(k, m))) && y.push(k);
11403
11405
  return y;
11404
11406
  }
11405
- function Om(l, n) {
11407
+ function Nm(l, n) {
11406
11408
  return function(r) {
11407
11409
  return l(n(r));
11408
11410
  };
11409
11411
  }
11410
- var Nm = Om(Object.keys, Object), Fm = Nm, Rm = Object.prototype, Mm = Rm.hasOwnProperty;
11411
- function $m(l) {
11412
- if (!Pc(l))
11413
- return Fm(l);
11412
+ var Fm = Nm(Object.keys, Object), Rm = Fm, Mm = Object.prototype, $m = Mm.hasOwnProperty;
11413
+ function Pm(l) {
11414
+ if (!Hc(l))
11415
+ return Rm(l);
11414
11416
  var n = [];
11415
11417
  for (var r in Object(l))
11416
- Mm.call(l, r) && r != "constructor" && n.push(r);
11418
+ $m.call(l, r) && r != "constructor" && n.push(r);
11417
11419
  return n;
11418
11420
  }
11419
- function Pm(l) {
11420
- return ao(l) ? Dm(l) : $m(l);
11421
+ function zm(l) {
11422
+ return ao(l) ? Om(l) : Pm(l);
11421
11423
  }
11422
- var zm = Object.prototype, Bm = zm.hasOwnProperty, Hm = Bg(function(l, n) {
11423
- if (Pc(n) || ao(n)) {
11424
- Rg(n, Pm(n), l);
11424
+ var Bm = Object.prototype, Hm = Bm.hasOwnProperty, Wm = Hg(function(l, n) {
11425
+ if (Hc(n) || ao(n)) {
11426
+ Mg(n, zm(n), l);
11425
11427
  return;
11426
11428
  }
11427
11429
  for (var r in n)
11428
- Bm.call(n, r) && Mc(l, r, n[r]);
11429
- }), Wm = Hm;
11430
- const Wc = ({ images: l = [], options: n = {} } = {}) => {
11431
- n = Wm(n, {
11430
+ Hm.call(n, r) && zc(l, r, n[r]);
11431
+ }), jm = Wm;
11432
+ const qc = ({ images: l = [], options: n = {} } = {}) => {
11433
+ n = jm(n, {
11432
11434
  inline: !1
11433
11435
  });
11434
- const r = Yd.extend({
11436
+ const r = Zd.extend({
11435
11437
  render(p) {
11436
11438
  return p(
11437
11439
  "div",
@@ -11451,7 +11453,7 @@ const Wc = ({ images: l = [], options: n = {} } = {}) => {
11451
11453
  }
11452
11454
  }), o = new r();
11453
11455
  o.$mount(), document.body.appendChild(o.$el);
11454
- const u = new Ec(o.$el, n), f = u.destroy.bind(u);
11456
+ const u = new Dc(o.$el, n), f = u.destroy.bind(u);
11455
11457
  return u.destroy = function() {
11456
11458
  return f(), o.$destroy(), document.body.removeChild(o.$el), u;
11457
11459
  }, u.show(), o.$el.addEventListener("hidden", function() {
@@ -12013,7 +12015,7 @@ const Wc = ({ images: l = [], options: n = {} } = {}) => {
12013
12015
  Se.setOptions({
12014
12016
  breaks: !0
12015
12017
  });
12016
- const jm = {
12018
+ const Um = {
12017
12019
  name: "OutputViewer",
12018
12020
  components: {
12019
12021
  codemirror: Ws.codemirror,
@@ -12140,7 +12142,7 @@ const jm = {
12140
12142
  return n[l] ? this.$t(n[l]) : l;
12141
12143
  },
12142
12144
  handleImageClick(l) {
12143
- Wc({
12145
+ qc({
12144
12146
  options: this.viewerOptions,
12145
12147
  images: [l]
12146
12148
  });
@@ -12287,7 +12289,7 @@ const jm = {
12287
12289
  }
12288
12290
  }
12289
12291
  };
12290
- var Um = function() {
12292
+ var qm = function() {
12291
12293
  var n = this, r = n._self._c;
12292
12294
  return r("div", { staticClass: "output-viewer" }, [n.title || n.$slots.title ? r("div", { staticClass: "output-viewer-header" }, [r("div", { staticClass: "output-viewer-title-row" }, [r("span", { staticClass: "output-viewer-title" }, [n._t("title", function() {
12293
12295
  return [n._v(n._s(n.title))];
@@ -12324,18 +12326,18 @@ var Um = function() {
12324
12326
  return n.handleImageClick(o.downloadUrl);
12325
12327
  } } })]) : o.type === "file-pdf" ? r("div", [r("FilePdfViewer", { attrs: { element: o } })], 1) : o.type === "file-download" ? r("div", { staticClass: "file-download-content" }, [r("a", { staticClass: "file-download-link", attrs: { href: o.downloadUrl, target: "_blank", rel: "noopener noreferrer" } }, [n._v(n._s(o.filename))]), r("span", { staticClass: "file-download-hint" }, [n._v(n._s(n.$t("trace.clickToDownload")))])]) : n._e()]);
12326
12328
  }), 0) : n._e()])]);
12327
- }, qm = [], Gm = /* @__PURE__ */ bn(
12328
- jm,
12329
+ }, Gm = [], Km = /* @__PURE__ */ bn(
12329
12330
  Um,
12330
12331
  qm,
12332
+ Gm,
12331
12333
  !1,
12332
12334
  null,
12333
12335
  "a12c132d"
12334
12336
  );
12335
- const jc = Gm.exports;
12336
- var Qu = { exports: {} }, Zu;
12337
- function Km() {
12338
- return Zu || (Zu = 1, function(l, n) {
12337
+ const Gc = Km.exports;
12338
+ var ec = { exports: {} }, tc;
12339
+ function Vm() {
12340
+ return tc || (tc = 1, function(l, n) {
12339
12341
  (function(r) {
12340
12342
  r(Vt());
12341
12343
  })(function(r) {
@@ -12622,11 +12624,11 @@ function Km() {
12622
12624
  };
12623
12625
  }), r.defineMIME("text/xml", "xml"), r.defineMIME("application/xml", "xml"), r.mimeModes.hasOwnProperty("text/html") || r.defineMIME("text/html", { name: "xml", htmlMode: !0 });
12624
12626
  });
12625
- }()), Qu.exports;
12627
+ }()), ec.exports;
12626
12628
  }
12627
- var ec = { exports: {} }, tc;
12628
- function Vm() {
12629
- return tc || (tc = 1, function(l, n) {
12629
+ var nc = { exports: {} }, rc;
12630
+ function Xm() {
12631
+ return rc || (rc = 1, function(l, n) {
12630
12632
  (function(r) {
12631
12633
  r(Vt());
12632
12634
  })(function(r) {
@@ -12844,11 +12846,11 @@ function Vm() {
12844
12846
  }
12845
12847
  };
12846
12848
  });
12847
- }()), ec.exports;
12849
+ }()), nc.exports;
12848
12850
  }
12849
12851
  (function(l, n) {
12850
12852
  (function(r) {
12851
- r(Vt(), Km(), Vm());
12853
+ r(Vt(), Vm(), Xm());
12852
12854
  })(function(r) {
12853
12855
  r.defineMode("markdown", function(o, u) {
12854
12856
  var f = r.getMode(o, "text/html"), p = f.name == "null";
@@ -13226,12 +13228,12 @@ function Vm() {
13226
13228
  }, "xml"), r.defineMIME("text/markdown", "markdown"), r.defineMIME("text/x-markdown", "markdown");
13227
13229
  });
13228
13230
  })();
13229
- const Xm = {
13231
+ const Ym = {
13230
13232
  name: "DebugTab",
13231
13233
  components: {
13232
13234
  codemirror: Ws.codemirror,
13233
13235
  FilePdfViewer: Ys,
13234
- OutputViewer: jc
13236
+ OutputViewer: Gc
13235
13237
  },
13236
13238
  props: {
13237
13239
  selectedSpan: {
@@ -13567,7 +13569,7 @@ const Xm = {
13567
13569
  }
13568
13570
  }
13569
13571
  };
13570
- var Ym = function() {
13572
+ var Jm = function() {
13571
13573
  var n = this, r = n._self._c;
13572
13574
  return r("div", { staticClass: "debug-content" }, [n.selectedSpan.type === "CLIENT" || n.selectedSpan.type === "EMBEDDING" ? r("div", { staticClass: "debug-client-form" }, [r("el-form", { attrs: { model: n.debugForm, "label-width": "60px", size: "small" } }, [n._l(n.debugForm.params, function(o, u) {
13573
13575
  return r("div", { key: u, staticClass: "debug-form-row" }, [r("el-form-item", { attrs: { label: `${n.$t("debug.paramLabel")} ${u + 1}` } }, [r("el-row", { attrs: { gutter: 10, type: "flex", align: "middle" } }, [r("el-col", { attrs: { span: 8 } }, [r("el-input", { attrs: { placeholder: n.$t("debug.paramName") }, on: { input: n.handleDebugParamChange }, model: { value: o.key, callback: function(f) {
@@ -13602,26 +13604,26 @@ var Ym = function() {
13602
13604
  return n.removeDebugParam(u);
13603
13605
  } } })], 1)], 1)], 1)], 1);
13604
13606
  }), r("el-form-item", [r("el-button", { attrs: { type: "primary", icon: "el-icon-plus", size: "small" }, on: { click: n.addDebugParam } }, [n._v(n._s(n.$t("debug.addParam")))]), r("el-button", { attrs: { type: "warning", icon: "el-icon-refresh", size: "small" }, on: { click: n.resetDebugForm } }, [n._v(n._s(n.$t("debug.reset")))]), r("el-button", { attrs: { type: "success", icon: "el-icon-check", size: "small", loading: n.debugSubmitting }, on: { click: n.submitDebugChatModel } }, [n._v(n._s(n.$t("debug.submit")))]), n.tokenCounterEnabled ? r("el-tooltip", { attrs: { content: n.$t("debug.calculateTokensTooltip"), placement: "top" } }, [r("el-button", { attrs: { type: "info", icon: "el-icon-cpu", size: "small", loading: n.tokenCalculating }, on: { click: n.calculatePromptTokens } }, [n._v(n._s(n.$t("debug.calculateTokens")))])], 1) : n._e()], 1)], 2), n.promptTokensResult !== null ? r("div", { staticClass: "token-result-section" }, [r("div", { staticClass: "token-result-header" }, [n._v(n._s(n.$t("debug.tokenResultTitle")))]), r("el-table", { attrs: { data: n.promptTokensTableData, size: "small", border: "" } }, [r("el-table-column", { attrs: { prop: "name", label: n.$t("debug.tokenType"), width: "140" } }), r("el-table-column", { attrs: { prop: "value", label: n.$t("debug.tokenCount") } })], 1)], 1) : n._e(), n.debugResponse !== null ? r("div", { staticClass: "debug-response" }, [r("OutputViewer", { attrs: { value: n.debugResponse, "show-raw-toggle": !0, "is-error-response": n.debugResponseIsError, "support-file-elements": !0, title: n.$t("debug.responseResult"), "content-key": `${n.selectedSpanId}-${n.debugResponseKey}` }, on: { copy: n.handleOutputCopy } })], 1) : n._e()], 1) : n._e()]);
13605
- }, Jm = [], Qm = /* @__PURE__ */ bn(
13606
- Xm,
13607
+ }, Qm = [], Zm = /* @__PURE__ */ bn(
13607
13608
  Ym,
13608
13609
  Jm,
13610
+ Qm,
13609
13611
  !1,
13610
13612
  null,
13611
13613
  "8d08f36c"
13612
13614
  );
13613
- const Zm = Qm.exports;
13615
+ const ev = Zm.exports;
13614
13616
  Se.setOptions({
13615
13617
  breaks: !0
13616
13618
  });
13617
- const ev = {
13619
+ const tv = {
13618
13620
  name: "TraceDetailDrawer",
13619
13621
  components: {
13620
- TraceSpanTree: Sc,
13621
- DebugTab: Zm,
13622
+ TraceSpanTree: _c,
13623
+ DebugTab: ev,
13622
13624
  codemirror: Ws.codemirror,
13623
13625
  FilePdfViewer: Ys,
13624
- OutputViewer: jc
13626
+ OutputViewer: Gc
13625
13627
  },
13626
13628
  props: {
13627
13629
  visible: {
@@ -13665,7 +13667,7 @@ const ev = {
13665
13667
  default: !1
13666
13668
  },
13667
13669
  spanHasEvents: {
13668
- type: Boolean,
13670
+ type: [Boolean, Number],
13669
13671
  default: null
13670
13672
  },
13671
13673
  spanPageSize: {
@@ -13683,6 +13685,10 @@ const ev = {
13683
13685
  spanTypeFilter: {
13684
13686
  type: String,
13685
13687
  default: null
13688
+ },
13689
+ spanOnlyFailed: {
13690
+ type: Boolean,
13691
+ default: !1
13686
13692
  }
13687
13693
  },
13688
13694
  data() {
@@ -13821,7 +13827,7 @@ const ev = {
13821
13827
  hasEvents() {
13822
13828
  var n, r, o;
13823
13829
  if (((n = this.selectedSpan) == null ? void 0 : n.has_events) !== void 0)
13824
- return this.selectedSpan.has_events === !0;
13830
+ return !!this.selectedSpan.has_events;
13825
13831
  const l = (o = (r = this.selectedSpan) == null ? void 0 : r.parsedContent) == null ? void 0 : o.events;
13826
13832
  return l && Array.isArray(l) && l.length > 0;
13827
13833
  },
@@ -13854,7 +13860,7 @@ const ev = {
13854
13860
  selectedSpan() {
13855
13861
  var o;
13856
13862
  if (!this.selectedSpan) return;
13857
- const l = this.selectedSpan.has_events === !0 || ((o = this.selectedSpan.parsedContent) == null ? void 0 : o.events) && Array.isArray(this.selectedSpan.parsedContent.events) && this.selectedSpan.parsedContent.events.length > 0, n = [];
13863
+ const l = !!this.selectedSpan.has_events || ((o = this.selectedSpan.parsedContent) == null ? void 0 : o.events) && Array.isArray(this.selectedSpan.parsedContent.events) && this.selectedSpan.parsedContent.events.length > 0, n = [];
13858
13864
  this.showIOTab && n.push("io", "raw"), this.showDebugTab && n.push("debug"), n.push("attributes"), l && n.push("events");
13859
13865
  let r = "attributes";
13860
13866
  this.showIOTab && (r = "io"), n.includes(r) ? this.activeTab = r : this.activeTab = "attributes", this.$nextTick(() => {
@@ -13905,7 +13911,10 @@ const ev = {
13905
13911
  this.$emit("update:span-type-filter", l);
13906
13912
  },
13907
13913
  handleHasEventsChange(l) {
13908
- this.$emit("update:span-has-events", l ? !0 : null);
13914
+ this.$emit("update:span-has-events", l ? 1 : null);
13915
+ },
13916
+ handleOnlyFailedChange(l) {
13917
+ this.$emit("update:span-only-failed", !!l);
13909
13918
  },
13910
13919
  handleSpanSelect(l) {
13911
13920
  this.$emit("span-select", l), this.$nextTick(() => {
@@ -14209,14 +14218,14 @@ const ev = {
14209
14218
  return l ? l.startsWith("data:image") ? l : l.startsWith("/9j/") ? `data:image/jpeg;base64,${l}` : l.startsWith("iVBOR") ? `data:image/png;base64,${l}` : l.startsWith("R0lGOD") ? `data:image/gif;base64,${l}` : `data:image/jpeg;base64,${l}` : "";
14210
14219
  },
14211
14220
  handleImageClick(l) {
14212
- Wc({
14221
+ qc({
14213
14222
  options: this.viewerOptions,
14214
14223
  images: [l]
14215
14224
  });
14216
14225
  }
14217
14226
  }
14218
14227
  };
14219
- var tv = function() {
14228
+ var nv = function() {
14220
14229
  var o, u, f, p, y, m, k, S, R, L, W, z;
14221
14230
  var n = this, r = n._self._c;
14222
14231
  return r("el-drawer", { attrs: { visible: n.localVisible, "with-header": !0, title: n.drawerTitle, size: "90%", direction: "rtl", "before-close": n.handleClose }, on: { "update:visible": function(D) {
@@ -14225,7 +14234,7 @@ var tv = function() {
14225
14234
  n.spanSearchQuery = D;
14226
14235
  }, expression: "spanSearchQuery" } }), r("el-select", { staticClass: "span-type-select", attrs: { value: n.spanTypeFilter, size: "small", clearable: "", placeholder: n.$t("trace.traceType") }, on: { input: n.handleSpanTypeFilterChange } }, n._l(n.traceSpanTypeList, function(D) {
14227
14236
  return r("el-option", { key: D.value, attrs: { label: D.label, value: D.value } });
14228
- }), 1), r("el-checkbox", { attrs: { value: n.spanHasEvents === !0, size: "small" }, on: { change: n.handleHasEventsChange } }, [n._v(" " + n._s(n.$t("span.hasEvents")) + " ")])], 1), r("TraceSpanTree", { attrs: { spans: n.filteredSpans, "selected-span-id": n.selectedSpanId, "trace-start-time": n.traceStartTime, "trace-end-time": n.traceEndTime, "span-type-list": n.traceSpanTypeList }, on: { "span-select": n.handleSpanSelect } }), n.spanHasNextPage ? r("div", { staticClass: "span-load-more" }, [r("el-button", { attrs: { type: "primary", size: "mini", loading: n.spanLoadMoreLoading }, on: { click: function(D) {
14237
+ }), 1), r("el-checkbox", { attrs: { value: !!n.spanHasEvents, size: "small" }, on: { change: n.handleHasEventsChange } }, [n._v(" " + n._s(n.$t("span.hasEvents")) + " ")]), r("el-checkbox", { attrs: { value: !!n.spanOnlyFailed, size: "small" }, on: { change: n.handleOnlyFailedChange } }, [n._v(" " + n._s(n.$t("span.onlyFailed")) + " ")])], 1), r("TraceSpanTree", { attrs: { spans: n.filteredSpans, "selected-span-id": n.selectedSpanId, "trace-start-time": n.traceStartTime, "trace-end-time": n.traceEndTime, "span-type-list": n.traceSpanTypeList }, on: { "span-select": n.handleSpanSelect } }), n.spanHasNextPage ? r("div", { staticClass: "span-load-more" }, [r("el-button", { attrs: { type: "primary", size: "mini", loading: n.spanLoadMoreLoading }, on: { click: function(D) {
14229
14238
  return n.$emit("span-load-more");
14230
14239
  } } }, [n._v(" 加载更多 ")]), r("el-select", { staticClass: "span-page-size-select", attrs: { value: n.spanPageSize, size: "mini" }, on: { input: function(D) {
14231
14240
  return n.$emit("update:span-page-size", D);
@@ -14286,18 +14295,18 @@ var tv = function() {
14286
14295
  return [r("el-tooltip", { attrs: { placement: "top", "open-delay": 500, "popper-class": "attribute-tooltip" } }, [r("div", { staticClass: "attribute-tooltip-content", attrs: { slot: "content" }, slot: "content" }, [n._v(n._s(I.row.value))]), r("div", { staticClass: "attribute-value" }, [n._v(n._s(I.row.value))])])];
14287
14296
  } }], null, !0) })], 1)], 1)])], 2);
14288
14297
  }), 1), n.spanEvents.length === 0 ? r("div", { staticClass: "empty-events" }, [r("el-empty", { attrs: { description: n.$t("trace.noEvents") } })], 1) : n._e()], 1) : n._e()]) : n._e()], 1)], 1) : r("el-empty", { attrs: { description: n.$t("trace.selectSpan") } })], 1)], 1)], 1)], 1) : n._e()]);
14289
- }, nv = [], rv = /* @__PURE__ */ bn(
14290
- ev,
14298
+ }, rv = [], iv = /* @__PURE__ */ bn(
14291
14299
  tv,
14292
14300
  nv,
14301
+ rv,
14293
14302
  !1,
14294
14303
  null,
14295
- "c4c8862b"
14304
+ "c609a3c1"
14296
14305
  );
14297
- const iv = rv.exports, av = {
14306
+ const av = iv.exports, sv = {
14298
14307
  name: "Trace",
14299
14308
  components: {
14300
- TraceDetailDrawer: iv
14309
+ TraceDetailDrawer: av
14301
14310
  },
14302
14311
  data() {
14303
14312
  return {
@@ -14336,6 +14345,7 @@ const iv = rv.exports, av = {
14336
14345
  filteredSpans: [],
14337
14346
  spanSearchQuery: "",
14338
14347
  selectedSpanTypeFilter: null,
14348
+ spanOnlyFailed: !1,
14339
14349
  spanHasEvents: null,
14340
14350
  selectedSpanId: null,
14341
14351
  selectedSpan: null,
@@ -14400,6 +14410,9 @@ const iv = rv.exports, av = {
14400
14410
  },
14401
14411
  selectedSpanTypeFilter() {
14402
14412
  this.currentTraceId && this.handleSpanSearch(this.spanSearchQuery);
14413
+ },
14414
+ spanOnlyFailed() {
14415
+ this.currentTraceId && this.handleSpanSearch(this.spanSearchQuery);
14403
14416
  }
14404
14417
  },
14405
14418
  mounted() {
@@ -14440,7 +14453,7 @@ const iv = rv.exports, av = {
14440
14453
  },
14441
14454
  viewDetail(l) {
14442
14455
  const n = l == null ? void 0 : l.trace_id;
14443
- n && (this.currentTraceId = n, this.traceInfo = { ...l }, (l == null ? void 0 : l.status) === "WARN" && (this.spanHasEvents = !0), this.drawerVisible = !0, this.loadTraceSpans(n));
14456
+ n && (this.currentTraceId = n, this.traceInfo = { ...l }, (l == null ? void 0 : l.status) === "WARN" && (this.spanHasEvents = 1), this.drawerVisible = !0, this.loadTraceSpans(n));
14444
14457
  },
14445
14458
  async loadTraceSpans(l) {
14446
14459
  var n, r, o;
@@ -14448,14 +14461,15 @@ const iv = rv.exports, av = {
14448
14461
  try {
14449
14462
  const u = await _t.getTraceSpans(l, {
14450
14463
  query: this.spanSearchQuery || "",
14451
- has_events: this.spanHasEvents === !0 ? !0 : void 0,
14464
+ has_events: this.spanHasEvents,
14452
14465
  page_num: 1,
14453
14466
  page_size: this.spanPageSize,
14454
- span_type: this.selectedSpanTypeFilter || void 0
14467
+ span_type: this.selectedSpanTypeFilter || void 0,
14468
+ status: this.spanOnlyFailed ? "ERROR" : void 0
14455
14469
  }), f = Array.isArray(u == null ? void 0 : u.list) ? u.list : [];
14456
14470
  if (this.spans = f, this.filteredSpans = f, this.spanHasNextPage = (u == null ? void 0 : u.has_next_page) === !0, this.spans.length > 0) {
14457
14471
  this.selectedSpanId = this.spans[0].span_id, this.selectedSpan = this.spans[0], await this.loadSpanContent(this.spans[0]);
14458
- const p = this.spans[0].type === "CLIENT" || this.spans[0].type === "EMBEDDING" || this.spans[0].type === "CHAT_MODEL", y = this.selectedSpan.has_events === !0, m = [];
14472
+ const p = this.spans[0].type === "CLIENT" || this.spans[0].type === "EMBEDDING" || this.spans[0].type === "CHAT_MODEL", y = !!this.selectedSpan.has_events, m = [];
14459
14473
  p && m.push("io", "raw"), m.push("attributes"), y && m.push("events");
14460
14474
  let k = "attributes";
14461
14475
  p && (k = "io"), m.includes(k) ? this.activeTab = k : this.activeTab = "attributes", (r = (n = this.selectedSpan.parsedContent) == null ? void 0 : n.inputs) != null && r.messages ? this.messageCollapse = this.selectedSpan.parsedContent.inputs.messages.map((R, L) => `message-${L}`) : this.messageCollapse = [];
@@ -14474,10 +14488,11 @@ const iv = rv.exports, av = {
14474
14488
  try {
14475
14489
  const n = await _t.getTraceSpans(this.currentTraceId, {
14476
14490
  query: l || "",
14477
- has_events: this.spanHasEvents === !0 ? !0 : void 0,
14491
+ has_events: this.spanHasEvents,
14478
14492
  page_num: 1,
14479
14493
  page_size: this.spanPageSize,
14480
- span_type: this.selectedSpanTypeFilter || void 0
14494
+ span_type: this.selectedSpanTypeFilter || void 0,
14495
+ status: this.spanOnlyFailed ? "ERROR" : void 0
14481
14496
  }), r = Array.isArray(n == null ? void 0 : n.list) ? n.list : [];
14482
14497
  this.spans = r, this.filteredSpans = r, this.spanHasNextPage = (n == null ? void 0 : n.has_next_page) === !0, this.spans.length > 0 && !this.selectedSpanId && (this.selectedSpanId = this.spans[0].span_id, this.selectedSpan = this.spans[0], await this.loadSpanContent(this.spans[0]));
14483
14498
  } catch (n) {
@@ -14491,10 +14506,11 @@ const iv = rv.exports, av = {
14491
14506
  try {
14492
14507
  const l = this.spanPageNum + 1, n = await _t.getTraceSpans(this.currentTraceId, {
14493
14508
  query: this.spanSearchQuery || "",
14494
- has_events: this.spanHasEvents === !0 ? !0 : void 0,
14509
+ has_events: this.spanHasEvents,
14495
14510
  page_num: l,
14496
14511
  page_size: this.spanPageSize,
14497
- span_type: this.selectedSpanTypeFilter || void 0
14512
+ span_type: this.selectedSpanTypeFilter || void 0,
14513
+ status: this.spanOnlyFailed ? "ERROR" : void 0
14498
14514
  }), r = Array.isArray(n == null ? void 0 : n.list) ? n.list : [];
14499
14515
  this.spans = this.spans.concat(r), this.filteredSpans = this.spans, this.spanPageNum = l, this.spanHasNextPage = (n == null ? void 0 : n.has_next_page) === !0;
14500
14516
  } catch (l) {
@@ -14507,7 +14523,7 @@ const iv = rv.exports, av = {
14507
14523
  async handleSpanSelect(l) {
14508
14524
  var p, y, m;
14509
14525
  this.selectedSpanId = l.span_id, this.selectedSpan = l, await this.loadSpanContent(l);
14510
- const n = l.type === "CLIENT" || l.type === "EMBEDDING" || l.type === "CHAT_MODEL", r = l.has_events === !0, o = [];
14526
+ const n = l.type === "CLIENT" || l.type === "EMBEDDING" || l.type === "CHAT_MODEL", r = !!l.has_events, o = [];
14511
14527
  n && o.push("io", "raw"), o.push("attributes"), r && o.push("events");
14512
14528
  let u = "attributes";
14513
14529
  n && (u = "io"), this.$nextTick(() => {
@@ -14562,7 +14578,7 @@ const iv = rv.exports, av = {
14562
14578
  return n;
14563
14579
  },
14564
14580
  handleDrawerClose() {
14565
- this.currentTraceId = null, this.traceInfo = {}, this.spans = [], this.filteredSpans = [], this.selectedSpanId = null, this.selectedSpan = null, this.spanSearchQuery = "", this.selectedSpanTypeFilter = null, this.spanHasEvents = null, this.spanPageNum = 1, this.spanHasNextPage = !1, this.spanLoadMoreLoading = !1, this.eventsCollapse = [], this.drawerLoading = !1;
14581
+ this.currentTraceId = null, this.traceInfo = {}, this.spans = [], this.filteredSpans = [], this.selectedSpanId = null, this.selectedSpan = null, this.spanSearchQuery = "", this.selectedSpanTypeFilter = null, this.spanOnlyFailed = !1, this.spanHasEvents = null, this.spanPageNum = 1, this.spanHasNextPage = !1, this.spanLoadMoreLoading = !1, this.eventsCollapse = [], this.drawerLoading = !1;
14566
14582
  },
14567
14583
  async loadExperiments() {
14568
14584
  try {
@@ -14860,7 +14876,7 @@ const iv = rv.exports, av = {
14860
14876
  }
14861
14877
  }
14862
14878
  };
14863
- var sv = function() {
14879
+ var ov = function() {
14864
14880
  var n = this, r = n._self._c;
14865
14881
  return r("div", { staticClass: "trace-list-container" }, [r("el-card", [r("div", { staticClass: "trace-content-wrapper" }, [r("div", { staticClass: "trace-toolbar" }, [r("el-select", { staticClass: "toolbar-select", attrs: { placeholder: n.$t("trace.selectApplication"), clearable: "", size: "mini" }, on: { change: n.handleExperimentChange }, model: { value: n.selectedExperimentId, callback: function(o) {
14866
14882
  n.selectedExperimentId = o;
@@ -14920,7 +14936,7 @@ var sv = function() {
14920
14936
  n.selectedColumns = o;
14921
14937
  }, expression: "selectedColumns" } }, [r("el-checkbox", { attrs: { label: "trace_id" } }, [n._v(n._s(n.$t("trace.requestId")))]), r("el-checkbox", { attrs: { label: "timestamp_ms" } }, [n._v(n._s(n.$t("trace.timeCreated")))]), r("el-checkbox", { attrs: { label: "end_time_ms" } }, [n._v(n._s(n.$t("trace.timeEnded")))]), r("el-checkbox", { attrs: { label: "status" } }, [n._v(n._s(n.$t("trace.status")))]), r("el-checkbox", { attrs: { label: "execution_time_ms" } }, [n._v(n._s(n.$t("trace.executionTime")))]), r("el-checkbox", { attrs: { label: "trace_type" } }, [n._v(n._s(n.$t("trace.traceType")))]), r("el-checkbox", { attrs: { label: "trace_name" } }, [n._v(n._s(n.$t("trace.traceName")))]), r("el-checkbox", { attrs: { label: "experiment_name" } }, [n._v(n._s(n.$t("trace.experimentName")))])], 1), r("div", { staticClass: "dialog-footer", attrs: { slot: "footer" }, slot: "footer" }, [r("el-button", { attrs: { size: "mini" }, on: { click: function(o) {
14922
14938
  n.showColumnDialog = !1;
14923
- } } }, [n._v(n._s(n.$t("common.cancel")))]), r("el-button", { attrs: { size: "mini", type: "primary" }, on: { click: n.applyColumns } }, [n._v(n._s(n.$t("common.confirm")))])], 1)], 1), r("TraceDetailDrawer", { attrs: { visible: n.drawerVisible, "current-trace-id": n.currentTraceId, "trace-info": n.traceInfo, "trace-status-list": n.traceStatusList, "trace-span-type-list": n.traceSpanTypeList, spans: n.spans, "filtered-spans": n.filteredSpans, "selected-span-id": n.selectedSpanId, "selected-span": n.selectedSpan, loading: n.drawerLoading, "span-has-next-page": n.spanHasNextPage, "span-load-more-loading": n.spanLoadMoreLoading, "span-page-size": n.spanPageSize, "span-has-events": n.spanHasEvents, "span-type-filter": n.selectedSpanTypeFilter }, on: { "update:visible": [function(o) {
14939
+ } } }, [n._v(n._s(n.$t("common.cancel")))]), r("el-button", { attrs: { size: "mini", type: "primary" }, on: { click: n.applyColumns } }, [n._v(n._s(n.$t("common.confirm")))])], 1)], 1), r("TraceDetailDrawer", { attrs: { visible: n.drawerVisible, "current-trace-id": n.currentTraceId, "trace-info": n.traceInfo, "trace-status-list": n.traceStatusList, "trace-span-type-list": n.traceSpanTypeList, spans: n.spans, "filtered-spans": n.filteredSpans, "selected-span-id": n.selectedSpanId, "selected-span": n.selectedSpan, loading: n.drawerLoading, "span-has-next-page": n.spanHasNextPage, "span-load-more-loading": n.spanLoadMoreLoading, "span-page-size": n.spanPageSize, "span-has-events": n.spanHasEvents, "span-type-filter": n.selectedSpanTypeFilter, "span-only-failed": n.spanOnlyFailed }, on: { "update:visible": [function(o) {
14924
14940
  n.drawerVisible = o;
14925
14941
  }, function(o) {
14926
14942
  n.drawerVisible = o;
@@ -14936,27 +14952,31 @@ var sv = function() {
14936
14952
  n.selectedSpanTypeFilter = o;
14937
14953
  }, "update:span-type-filter": function(o) {
14938
14954
  n.selectedSpanTypeFilter = o;
14955
+ }, "update:spanOnlyFailed": function(o) {
14956
+ n.spanOnlyFailed = o;
14957
+ }, "update:span-only-failed": function(o) {
14958
+ n.spanOnlyFailed = o;
14939
14959
  }, close: n.handleDrawerClose, "span-search": n.handleSpanSearch, "span-select": n.handleSpanSelect, "span-load-more": n.loadMoreSpans } })], 1);
14940
- }, ov = [], lv = /* @__PURE__ */ bn(
14941
- av,
14960
+ }, lv = [], uv = /* @__PURE__ */ bn(
14942
14961
  sv,
14943
14962
  ov,
14963
+ lv,
14944
14964
  !1,
14945
14965
  null,
14946
- "63c9cc19"
14966
+ "9a4e0cea"
14947
14967
  );
14948
- const Uc = lv.exports, uv = {
14968
+ const Kc = uv.exports, cv = {
14949
14969
  routes: [
14950
14970
  {
14951
14971
  path: "/trace",
14952
14972
  name: "trace",
14953
- component: Uc
14973
+ component: Kc
14954
14974
  }
14955
14975
  ],
14956
14976
  beforeEach: (l, n, r) => {
14957
14977
  r();
14958
14978
  }
14959
- }, cv = {
14979
+ }, fv = {
14960
14980
  common: {
14961
14981
  home: "首页",
14962
14982
  todos: "待办事项",
@@ -14975,7 +14995,8 @@ const Uc = lv.exports, uv = {
14975
14995
  },
14976
14996
  span: {
14977
14997
  searchTree: "Span名称",
14978
- hasEvents: "只显示有事件"
14998
+ hasEvents: "只显示有事件",
14999
+ onlyFailed: "只显示失败"
14979
15000
  },
14980
15001
  trace: {
14981
15002
  title: "追踪列表",
@@ -15092,7 +15113,7 @@ const Uc = lv.exports, uv = {
15092
15113
  userRole: "用户",
15093
15114
  assistantRole: "助手"
15094
15115
  }
15095
- }, fv = {
15116
+ }, dv = {
15096
15117
  common: {
15097
15118
  home: "Home",
15098
15119
  todos: "Todos",
@@ -15111,7 +15132,8 @@ const Uc = lv.exports, uv = {
15111
15132
  },
15112
15133
  span: {
15113
15134
  searchTree: "Span Name",
15114
- hasEvents: "Has events"
15135
+ hasEvents: "Has events",
15136
+ onlyFailed: "Failed only"
15115
15137
  },
15116
15138
  trace: {
15117
15139
  title: "Traces",
@@ -15229,37 +15251,37 @@ This operation cannot be undone. Are you sure you want to continue?`,
15229
15251
  assistantRole: "Assistant"
15230
15252
  }
15231
15253
  }, _i = {
15232
- "zh-CN": cv,
15233
- "en-US": fv
15254
+ "zh-CN": fv,
15255
+ "en-US": dv
15234
15256
  };
15235
15257
  let Rs = !1;
15236
- const nc = (l) => {
15258
+ const ic = (l) => {
15237
15259
  !l || Rs || (l.mergeLocaleMessage ? (Object.keys(_i).forEach((n) => {
15238
15260
  l.mergeLocaleMessage(n, _i[n]);
15239
15261
  }), Rs = !0) : l.messages && (Object.keys(_i).forEach((n) => {
15240
15262
  l.messages[n] || (l.messages[n] = {}), Object.assign(l.messages[n], _i[n]);
15241
15263
  }), Rs = !0));
15242
- }, mv = {
15243
- store: Zd,
15244
- router: uv,
15264
+ }, vv = {
15265
+ store: eh,
15266
+ router: cv,
15245
15267
  components: {
15246
- Trace: Uc,
15247
- TraceSpanTree: Sc
15268
+ Trace: Kc,
15269
+ TraceSpanTree: _c
15248
15270
  },
15249
15271
  api: _t,
15250
15272
  locales: _i,
15251
15273
  setI18n(l) {
15252
- nc(l);
15274
+ ic(l);
15253
15275
  },
15254
- registerLocales: nc
15276
+ registerLocales: ic
15255
15277
  };
15256
15278
  export {
15257
- Uc as Trace,
15258
- Sc as TraceSpanTree,
15259
- mv as default,
15260
- fv as enUS,
15279
+ Kc as Trace,
15280
+ _c as TraceSpanTree,
15281
+ vv as default,
15282
+ dv as enUS,
15261
15283
  _t as traceApi,
15262
- uv as traceRouter,
15263
- Zd as traceStore,
15264
- cv as zhCN
15284
+ cv as traceRouter,
15285
+ eh as traceStore,
15286
+ fv as zhCN
15265
15287
  };