@langsword/trace 0.1.6 → 0.1.7

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
@@ -185,7 +185,7 @@ function Gt() {
185
185
  }
186
186
  function Ln() {
187
187
  }
188
- function Un(e, t) {
188
+ function qn(e, t) {
189
189
  var i;
190
190
  return Object.create ? i = Object.create(e) : (Ln.prototype = e, i = new Ln()), t && ke(t, i), i;
191
191
  }
@@ -230,17 +230,17 @@ function Gt() {
230
230
  }
231
231
  s || r(t, i, "ltr");
232
232
  }
233
- var qn = null;
233
+ var Gn = null;
234
234
  function Dn(e, t, i) {
235
235
  var r;
236
- qn = null;
236
+ Gn = null;
237
237
  for (var s = 0; s < e.length; ++s) {
238
238
  var u = e[s];
239
239
  if (u.from < t && u.to > t)
240
240
  return s;
241
- u.to == t && (u.from != u.to && i == "before" ? r = s : qn = s), u.from == t && (u.from != u.to && i != "before" ? r = s : qn = s);
241
+ u.to == t && (u.from != u.to && i == "before" ? r = s : Gn = s), u.from == t && (u.from != u.to && i != "before" ? r = s : Gn = s);
242
242
  }
243
- return r ?? qn;
243
+ return r ?? Gn;
244
244
  }
245
245
  var Na = /* @__PURE__ */ function() {
246
246
  var e = "bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN", t = "nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";
@@ -295,28 +295,28 @@ function Gt() {
295
295
  I[Wn] = Rr;
296
296
  ht = st - 1;
297
297
  }
298
- for (var Tt = [], pn, bt = 0; bt < M; )
298
+ for (var Tt = [], gn, bt = 0; bt < M; )
299
299
  if (c.test(I[bt])) {
300
300
  var Ls = bt;
301
301
  for (++bt; bt < M && c.test(I[bt]); ++bt)
302
302
  ;
303
303
  Tt.push(new g(0, Ls, bt));
304
304
  } else {
305
- var Tn = bt, tr = Tt.length, nr = C == "rtl" ? 1 : 0;
305
+ var Tn = bt, nr = Tt.length, rr = C == "rtl" ? 1 : 0;
306
306
  for (++bt; bt < M && I[bt] != "L"; ++bt)
307
307
  ;
308
308
  for (var Lt = Tn; Lt < bt; )
309
309
  if (h.test(I[Lt])) {
310
- Tn < Lt && (Tt.splice(tr, 0, new g(1, Tn, Lt)), tr += nr);
310
+ Tn < Lt && (Tt.splice(nr, 0, new g(1, Tn, Lt)), nr += rr);
311
311
  var Fr = Lt;
312
312
  for (++Lt; Lt < bt && h.test(I[Lt]); ++Lt)
313
313
  ;
314
- Tt.splice(tr, 0, new g(2, Fr, Lt)), tr += nr, Tn = Lt;
314
+ Tt.splice(nr, 0, new g(2, Fr, Lt)), nr += rr, Tn = Lt;
315
315
  } else
316
316
  ++Lt;
317
- Tn < bt && Tt.splice(tr, 0, new g(1, Tn, bt));
317
+ Tn < bt && Tt.splice(nr, 0, new g(1, Tn, bt));
318
318
  }
319
- return C == "ltr" && (Tt[0].level == 1 && (pn = v.match(/^\s+/)) && (Tt[0].from = pn[0].length, Tt.unshift(new g(0, 0, pn[0].length))), be(Tt).level == 1 && (pn = v.match(/\s+$/)) && (be(Tt).to -= pn[0].length, Tt.push(new g(0, M - pn[0].length, M)))), C == "rtl" ? Tt.reverse() : Tt;
319
+ return C == "ltr" && (Tt[0].level == 1 && (gn = v.match(/^\s+/)) && (Tt[0].from = gn[0].length, Tt.unshift(new g(0, 0, gn[0].length))), be(Tt).level == 1 && (gn = v.match(/\s+$/)) && (be(Tt).to -= gn[0].length, Tt.push(new g(0, M - gn[0].length, M)))), C == "rtl" ? Tt.reverse() : Tt;
320
320
  };
321
321
  }();
322
322
  function Fe(e, t) {
@@ -456,7 +456,7 @@ b`.split(/\n/).length != 3 ? function(e) {
456
456
  function nn(e, t) {
457
457
  arguments.length > 2 && (t.dependencies = Array.prototype.slice.call(arguments, 2)), hr[e] = t;
458
458
  }
459
- function Gn(e, t) {
459
+ function Kn(e, t) {
460
460
  tn[e] = t;
461
461
  }
462
462
  function dr(e) {
@@ -464,7 +464,7 @@ b`.split(/\n/).length != 3 ? function(e) {
464
464
  e = tn[e];
465
465
  else if (e && typeof e.name == "string" && tn.hasOwnProperty(e.name)) {
466
466
  var t = tn[e.name];
467
- typeof t == "string" && (t = { name: t }), e = Un(t, e), e.name = t.name;
467
+ typeof t == "string" && (t = { name: t }), e = qn(t, e), e.name = t.name;
468
468
  } else {
469
469
  if (typeof e == "string" && /^[\w\-]+\/[\w\-]+\+xml$/.test(e))
470
470
  return dr("application/xml");
@@ -494,7 +494,7 @@ b`.split(/\n/).length != 3 ? function(e) {
494
494
  var i = Nn.hasOwnProperty(e) ? Nn[e] : Nn[e] = {};
495
495
  ke(t, i);
496
496
  }
497
- function fn(e, t) {
497
+ function cn(e, t) {
498
498
  if (t === !0)
499
499
  return t;
500
500
  if (e.copyState)
@@ -685,13 +685,13 @@ b`.split(/\n/).length != 3 ? function(e) {
685
685
  }
686
686
  var $i = function(e, t) {
687
687
  this.state = e, this.lookAhead = t;
688
- }, cn = function(e, t, i, r) {
688
+ }, hn = function(e, t, i, r) {
689
689
  this.state = t, this.doc = e, this.line = i, this.maxLookAhead = r || 0, this.baseTokens = null, this.baseTokenPos = 1;
690
690
  };
691
- cn.prototype.lookAhead = function(e) {
691
+ hn.prototype.lookAhead = function(e) {
692
692
  var t = this.doc.getLine(this.line + e);
693
693
  return t != null && e > this.maxLookAhead && (this.maxLookAhead = e), t;
694
- }, cn.prototype.baseToken = function(e) {
694
+ }, hn.prototype.baseToken = function(e) {
695
695
  if (!this.baseTokens)
696
696
  return null;
697
697
  for (; this.baseTokens[this.baseTokenPos] <= e; )
@@ -701,12 +701,12 @@ b`.split(/\n/).length != 3 ? function(e) {
701
701
  type: t && t.replace(/( |^)overlay .*/, ""),
702
702
  size: this.baseTokens[this.baseTokenPos] - e
703
703
  };
704
- }, cn.prototype.nextLine = function() {
704
+ }, hn.prototype.nextLine = function() {
705
705
  this.line++, this.maxLookAhead > 0 && this.maxLookAhead--;
706
- }, cn.fromSaved = function(e, t, i) {
707
- return t instanceof $i ? new cn(e, fn(e.mode, t.state), i, t.lookAhead) : new cn(e, fn(e.mode, t), i);
708
- }, cn.prototype.save = function(e) {
709
- var t = e !== !1 ? fn(this.doc.mode, this.state) : this.state;
706
+ }, hn.fromSaved = function(e, t, i) {
707
+ return t instanceof $i ? new hn(e, cn(e.mode, t.state), i, t.lookAhead) : new hn(e, cn(e.mode, t), i);
708
+ }, hn.prototype.save = function(e) {
709
+ var t = e !== !1 ? cn(this.doc.mode, this.state) : this.state;
710
710
  return this.maxLookAhead > 0 ? new $i(t, this.maxLookAhead) : t;
711
711
  };
712
712
  function io(e, t, i, r) {
@@ -744,7 +744,7 @@ b`.split(/\n/).length != 3 ? function(e) {
744
744
  }
745
745
  function ao(e, t, i) {
746
746
  if (!t.styles || t.styles[0] != e.state.modeGen) {
747
- var r = Vr(e, b(t)), s = t.text.length > e.options.maxHighlightLength && fn(e.doc.mode, r.state), u = io(e, t, r);
747
+ var r = Vr(e, b(t)), s = t.text.length > e.options.maxHighlightLength && cn(e.doc.mode, r.state), u = io(e, t, r);
748
748
  s && (r.state = s), t.stateAfter = r.save(!s), t.styles = u.styles, u.classes ? t.styleClasses = u.classes : t.styleClasses && (t.styleClasses = null), i === e.doc.highlightFrontier && (e.doc.modeFrontier = Math.max(e.doc.modeFrontier, ++e.doc.highlightFrontier));
749
749
  }
750
750
  return t.styles;
@@ -752,8 +752,8 @@ b`.split(/\n/).length != 3 ? function(e) {
752
752
  function Vr(e, t, i) {
753
753
  var r = e.doc, s = e.display;
754
754
  if (!r.mode.startState)
755
- return new cn(r, !0, t);
756
- var u = Wf(e, t, i), c = u > r.first && fe(r, u - 1).stateAfter, h = c ? cn.fromSaved(r, c, u) : new cn(r, mr(r.mode), u);
755
+ return new hn(r, !0, t);
756
+ var u = Wf(e, t, i), c = u > r.first && fe(r, u - 1).stateAfter, h = c ? hn.fromSaved(r, c, u) : new hn(r, mr(r.mode), u);
757
757
  return r.iter(u, t, function(g) {
758
758
  Fa(e, g.text, h);
759
759
  var v = h.line;
@@ -791,7 +791,7 @@ b`.split(/\n/).length != 3 ? function(e) {
791
791
  t = Se(s, t);
792
792
  var h = fe(s, t.line), g = Vr(e, t.line, i), v = new et(h.text, e.options.tabSize, g), C;
793
793
  for (r && (C = []); (r || v.pos < t.ch) && !v.eol(); )
794
- v.start = v.pos, c = Pa(u, v, g.state), r && C.push(new oo(v, c, fn(s.mode, g.state)));
794
+ v.start = v.pos, c = Pa(u, v, g.state), r && C.push(new oo(v, c, cn(s.mode, g.state)));
795
795
  return r ? C : new oo(v, c, g.state);
796
796
  }
797
797
  function uo(e, t) {
@@ -1482,17 +1482,17 @@ b`.split(/\n/).length != 3 ? function(e) {
1482
1482
  var t = Q(e.measure, k("pre", "x", "CodeMirror-line-like")), i = window.getComputedStyle ? window.getComputedStyle(t) : t.currentStyle, r = { left: parseInt(i.paddingLeft), right: parseInt(i.paddingRight) };
1483
1483
  return !isNaN(r.left) && !isNaN(r.right) && (e.cachedPaddingH = r), r;
1484
1484
  }
1485
- function hn(e) {
1485
+ function dn(e) {
1486
1486
  return Oe - e.display.nativeBarWidth;
1487
1487
  }
1488
- function Kn(e) {
1489
- return e.display.scroller.clientWidth - hn(e) - e.display.barWidth;
1488
+ function Xn(e) {
1489
+ return e.display.scroller.clientWidth - dn(e) - e.display.barWidth;
1490
1490
  }
1491
1491
  function qa(e) {
1492
- return e.display.scroller.clientHeight - hn(e) - e.display.barHeight;
1492
+ return e.display.scroller.clientHeight - dn(e) - e.display.barHeight;
1493
1493
  }
1494
1494
  function yc(e, t, i) {
1495
- var r = e.options.lineWrapping, s = r && Kn(e);
1495
+ var r = e.options.lineWrapping, s = r && Xn(e);
1496
1496
  if (!t.measure.heights || r && t.measure.width != s) {
1497
1497
  var u = t.measure.heights = [];
1498
1498
  if (r) {
@@ -1525,11 +1525,11 @@ b`.split(/\n/).length != 3 ? function(e) {
1525
1525
  return r.text = s.pre, Q(e.display.lineMeasure, s.pre), r;
1526
1526
  }
1527
1527
  function Io(e, t, i, r) {
1528
- return dn(e, xr(e, t), i, r);
1528
+ return pn(e, xr(e, t), i, r);
1529
1529
  }
1530
1530
  function Ga(e, t) {
1531
1531
  if (t >= e.display.viewFrom && t < e.display.viewTo)
1532
- return e.display.view[Vn(e, t)];
1532
+ return e.display.view[Jn(e, t)];
1533
1533
  var i = e.display.externalMeasured;
1534
1534
  if (i && t >= i.lineN && t < i.lineN + i.size)
1535
1535
  return i;
@@ -1548,7 +1548,7 @@ b`.split(/\n/).length != 3 ? function(e) {
1548
1548
  hasHeights: !1
1549
1549
  };
1550
1550
  }
1551
- function dn(e, t, i, r, s) {
1551
+ function pn(e, t, i, r, s) {
1552
1552
  t.before && (i = -1);
1553
1553
  var u = i + (r || ""), c;
1554
1554
  return t.cache.hasOwnProperty(u) ? c = t.cache[u] : (t.rect || (t.rect = t.view.text.getBoundingClientRect()), t.hasHeights || (yc(e, t.view, t.rect), t.hasHeights = !0), c = wc(e, t, i, r), c.bogus || (t.cache[u] = c)), {
@@ -1687,7 +1687,7 @@ b`.split(/\n/).length != 3 ? function(e) {
1687
1687
  function an(e, t, i, r, s, u) {
1688
1688
  r = r || fe(e.doc, t.line), s || (s = xr(e, r));
1689
1689
  function c(z, U) {
1690
- var V = dn(e, s, z, U ? "right" : "left", u);
1690
+ var V = pn(e, s, z, U ? "right" : "left", u);
1691
1691
  return U ? V.left = V.right : V.right = V.left, Ki(e, r, V, i);
1692
1692
  }
1693
1693
  var h = Fe(r, e.doc.direction), g = t.ch, v = t.sticky;
@@ -1697,7 +1697,7 @@ b`.split(/\n/).length != 3 ? function(e) {
1697
1697
  var ee = h[U], ae = ee.level == 1;
1698
1698
  return c(V ? z - 1 : z, ae != V);
1699
1699
  }
1700
- var _ = Dn(h, g, v), M = qn, I = C(g, _, v == "before");
1700
+ var _ = Dn(h, g, v), M = Gn, I = C(g, _, v == "before");
1701
1701
  return M != null && (I.other = C(g, M, v != "before")), I;
1702
1702
  }
1703
1703
  function $o(e, t) {
@@ -1731,15 +1731,15 @@ b`.split(/\n/).length != 3 ? function(e) {
1731
1731
  function Bo(e, t, i, r) {
1732
1732
  r -= Ka(t);
1733
1733
  var s = t.text.length, u = Kt(function(c) {
1734
- return dn(e, i, c - 1).bottom <= r;
1734
+ return pn(e, i, c - 1).bottom <= r;
1735
1735
  }, s, 0);
1736
1736
  return s = Kt(function(c) {
1737
- return dn(e, i, c).top > r;
1737
+ return pn(e, i, c).top > r;
1738
1738
  }, u, s), { begin: u, end: s };
1739
1739
  }
1740
1740
  function Ho(e, t, i, r) {
1741
1741
  i || (i = xr(e, t));
1742
- var s = Ki(e, t, dn(e, i, r), "line").top;
1742
+ var s = Ki(e, t, pn(e, i, r), "line").top;
1743
1743
  return Bo(e, t, i, s);
1744
1744
  }
1745
1745
  function Va(e, t, i, r) {
@@ -1753,14 +1753,14 @@ b`.split(/\n/).length != 3 ? function(e) {
1753
1753
  v = _.level != 1, h = v ? _.from : _.to - 1, g = v ? _.to : _.from - 1;
1754
1754
  }
1755
1755
  var M = null, I = null, z = Kt(function(ve) {
1756
- var ge = dn(e, u, ve);
1756
+ var ge = pn(e, u, ve);
1757
1757
  return ge.top += c, ge.bottom += c, Va(ge, r, s, !1) ? (ge.top <= s && ge.left <= r && (M = ve, I = ge), !0) : !1;
1758
1758
  }, h, g), U, V, ee = !1;
1759
1759
  if (I) {
1760
1760
  var ae = r - I.left < I.right - r, te = ae == v;
1761
1761
  z = M + (te ? 0 : 1), V = te ? "after" : "before", U = ae ? I.left : I.right;
1762
1762
  } else {
1763
- !v && (z == g || z == h) && z++, V = z == 0 ? "after" : z == t.text.length ? "before" : dn(e, u, z - (v ? 1 : 0)).bottom + c <= s == v ? "after" : "before";
1763
+ !v && (z == g || z == h) && z++, V = z == 0 ? "after" : z == t.text.length ? "before" : pn(e, u, z - (v ? 1 : 0)).bottom + c <= s == v ? "after" : "before";
1764
1764
  var le = an(e, P(i, z, V), "line", t, u);
1765
1765
  U = le.left, ee = s < le.top ? -1 : s >= le.bottom ? 1 : 0;
1766
1766
  }
@@ -1795,24 +1795,24 @@ b`.split(/\n/).length != 3 ? function(e) {
1795
1795
  for (var C = null, _ = null, M = 0; M < s.length; M++) {
1796
1796
  var I = s[M];
1797
1797
  if (!(I.from >= v || I.to <= g)) {
1798
- var z = I.level != 1, U = dn(e, r, z ? Math.min(v, I.to) - 1 : Math.max(g, I.from)).right, V = U < u ? u - U + 1e9 : U - u;
1798
+ var z = I.level != 1, U = pn(e, r, z ? Math.min(v, I.to) - 1 : Math.max(g, I.from)).right, V = U < u ? u - U + 1e9 : U - u;
1799
1799
  (!C || _ > V) && (C = I, _ = V);
1800
1800
  }
1801
1801
  }
1802
1802
  return C || (C = s[s.length - 1]), C.from < g && (C = { from: g, to: C.to, level: C.level }), C.to > v && (C = { from: C.from, to: v, level: C.level }), C;
1803
1803
  }
1804
- var Xn;
1804
+ var Yn;
1805
1805
  function wr(e) {
1806
1806
  if (e.cachedTextHeight != null)
1807
1807
  return e.cachedTextHeight;
1808
- if (Xn == null) {
1809
- Xn = k("pre", null, "CodeMirror-line-like");
1808
+ if (Yn == null) {
1809
+ Yn = k("pre", null, "CodeMirror-line-like");
1810
1810
  for (var t = 0; t < 49; ++t)
1811
- Xn.appendChild(document.createTextNode("x")), Xn.appendChild(k("br"));
1812
- Xn.appendChild(document.createTextNode("x"));
1811
+ Yn.appendChild(document.createTextNode("x")), Yn.appendChild(k("br"));
1812
+ Yn.appendChild(document.createTextNode("x"));
1813
1813
  }
1814
- Q(e.measure, Xn);
1815
- var i = Xn.offsetHeight / 50;
1814
+ Q(e.measure, Yn);
1815
+ var i = Yn.offsetHeight / 50;
1816
1816
  return i > 3 && (e.cachedTextHeight = i), W(e.measure), i || 1;
1817
1817
  }
1818
1818
  function kr(e) {
@@ -1858,7 +1858,7 @@ b`.split(/\n/).length != 3 ? function(e) {
1858
1858
  s != r.height && Wt(r, s);
1859
1859
  });
1860
1860
  }
1861
- function Yn(e, t, i, r) {
1861
+ function Vn(e, t, i, r) {
1862
1862
  var s = e.display;
1863
1863
  if (!i && Gr(t).getAttribute("cm-not-content") == "true")
1864
1864
  return null;
@@ -1875,7 +1875,7 @@ b`.split(/\n/).length != 3 ? function(e) {
1875
1875
  }
1876
1876
  return g;
1877
1877
  }
1878
- function Vn(e, t) {
1878
+ function Jn(e, t) {
1879
1879
  if (t >= e.display.viewTo || (t -= e.display.viewFrom, t < 0))
1880
1880
  return null;
1881
1881
  for (var i = e.display.view, r = 0; r < i.length; r++)
@@ -1908,7 +1908,7 @@ b`.split(/\n/).length != 3 ? function(e) {
1908
1908
  e.curOp.viewChanged = !0;
1909
1909
  var r = e.display, s = e.display.externalMeasured;
1910
1910
  if (s && t >= s.lineN && t < s.lineN + s.size && (r.externalMeasured = null), !(t < r.viewFrom || t >= r.viewTo)) {
1911
- var u = r.view[Vn(e, t)];
1911
+ var u = r.view[Jn(e, t)];
1912
1912
  if (u.node != null) {
1913
1913
  var c = u.changes || (u.changes = []);
1914
1914
  we(c, i) == -1 && c.push(i);
@@ -1919,7 +1919,7 @@ b`.split(/\n/).length != 3 ? function(e) {
1919
1919
  e.display.viewFrom = e.display.viewTo = e.doc.first, e.display.view = [], e.display.viewOffset = 0;
1920
1920
  }
1921
1921
  function Yi(e, t, i, r) {
1922
- var s = Vn(e, t), u, c = e.display.view;
1922
+ var s = Jn(e, t), u, c = e.display.view;
1923
1923
  if (!xn || i == e.doc.first + e.doc.size)
1924
1924
  return { index: s, lineN: i };
1925
1925
  for (var h = e.display.viewFrom, g = 0; g < s; g++)
@@ -1942,7 +1942,7 @@ b`.split(/\n/).length != 3 ? function(e) {
1942
1942
  }
1943
1943
  function _c(e, t, i) {
1944
1944
  var r = e.display, s = r.view;
1945
- s.length == 0 || t >= r.viewTo || i <= r.viewFrom ? (r.view = qi(e, t, i), r.viewFrom = t) : (r.viewFrom > t ? r.view = qi(e, t, r.viewFrom).concat(r.view) : r.viewFrom < t && (r.view = r.view.slice(Vn(e, t))), r.viewFrom = t, r.viewTo < i ? r.view = r.view.concat(qi(e, r.viewTo, i)) : r.viewTo > i && (r.view = r.view.slice(0, Vn(e, i)))), r.viewTo = i;
1945
+ s.length == 0 || t >= r.viewTo || i <= r.viewFrom ? (r.view = qi(e, t, i), r.viewFrom = t) : (r.viewFrom > t ? r.view = qi(e, t, r.viewFrom).concat(r.view) : r.viewFrom < t && (r.view = r.view.slice(Jn(e, t))), r.viewFrom = t, r.viewTo < i ? r.view = r.view.concat(qi(e, r.viewTo, i)) : r.viewTo > i && (r.view = r.view.slice(0, Jn(e, i)))), r.viewTo = i;
1946
1946
  }
1947
1947
  function jo(e) {
1948
1948
  for (var t = e.display.view, i = 0, r = 0; r < t.length; r++) {
@@ -1987,7 +1987,7 @@ b`.split(/\n/).length != 3 ? function(e) {
1987
1987
  return e.top - t.top || e.left - t.left;
1988
1988
  }
1989
1989
  function Lc(e, t, i) {
1990
- var r = e.display, s = e.doc, u = document.createDocumentFragment(), c = Do(e.display), h = c.left, g = Math.max(r.sizerWidth, Kn(e) - r.sizer.offsetLeft) - c.right, v = s.direction == "ltr";
1990
+ var r = e.display, s = e.doc, u = document.createDocumentFragment(), c = Do(e.display), h = c.left, g = Math.max(r.sizerWidth, Xn(e) - r.sizer.offsetLeft) - c.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), u.appendChild(k("div", null, "CodeMirror-selected", "position: absolute; left: " + te + `px;
1993
1993
  top: ` + le + "px; width: " + (ve ?? g - te) + `px;
@@ -2004,13 +2004,13 @@ b`.split(/\n/).length != 3 ? function(e) {
2004
2004
  }
2005
2005
  var Ot = Fe(ge, s.direction);
2006
2006
  return En(Ot, le || 0, ve ?? Ae, function(at, Nt, wt, ht) {
2007
- var st = wt == "ltr", tt = Je(at, st ? "left" : "right"), Mt = Je(Nt - 1, st ? "right" : "left"), Rr = le == null && at == 0, Wn = ve == null && Nt == Ae, Tt = ht == 0, pn = !Ot || ht == Ot.length - 1;
2007
+ var st = wt == "ltr", tt = Je(at, st ? "left" : "right"), Mt = Je(Nt - 1, st ? "right" : "left"), Rr = le == null && at == 0, Wn = ve == null && Nt == Ae, Tt = ht == 0, gn = !Ot || ht == Ot.length - 1;
2008
2008
  if (Mt.top - tt.top <= 3) {
2009
- var bt = (v ? Rr : Wn) && Tt, Ls = (v ? Wn : Rr) && pn, Tn = bt ? h : (st ? tt : Mt).left, tr = Ls ? g : (st ? Mt : tt).right;
2010
- C(Tn, tt.top, tr - Tn, tt.bottom);
2009
+ var bt = (v ? Rr : Wn) && Tt, Ls = (v ? Wn : Rr) && gn, Tn = bt ? h : (st ? tt : Mt).left, nr = Ls ? g : (st ? Mt : tt).right;
2010
+ C(Tn, tt.top, nr - Tn, tt.bottom);
2011
2011
  } else {
2012
- var nr, Lt, Fr, Es;
2013
- st ? (nr = v && Rr && Tt ? h : tt.left, Lt = v ? g : $t(at, wt, "before"), Fr = v ? h : $t(Nt, wt, "after"), Es = v && Wn && pn ? g : Mt.right) : (nr = v ? $t(at, wt, "before") : h, Lt = !v && Rr && Tt ? g : tt.right, Fr = !v && Wn && pn ? h : Mt.left, Es = v ? $t(Nt, wt, "after") : g), C(nr, tt.top, Lt - nr, tt.bottom), tt.bottom < Mt.top && C(h, tt.bottom, null, Mt.top), C(Fr, Mt.top, Es - Fr, Mt.bottom);
2012
+ var rr, Lt, Fr, Es;
2013
+ st ? (rr = v && Rr && Tt ? h : tt.left, Lt = v ? g : $t(at, wt, "before"), Fr = v ? h : $t(Nt, wt, "after"), Es = v && Wn && gn ? g : Mt.right) : (rr = v ? $t(at, wt, "before") : h, Lt = !v && Rr && Tt ? g : tt.right, Fr = !v && Wn && gn ? h : Mt.left, Es = v ? $t(Nt, wt, "after") : g), C(rr, tt.top, Lt - rr, tt.bottom), tt.bottom < Mt.top && C(h, tt.bottom, null, Mt.top), C(Fr, Mt.top, Es - Fr, Mt.bottom);
2014
2014
  }
2015
2015
  (!We || Vi(tt, We) < 0) && (We = tt), Vi(Mt, We) < 0 && (We = Mt), (!yt || Vi(tt, yt) < 0) && (yt = tt), Vi(Mt, yt) < 0 && (yt = Mt);
2016
2016
  }), { start: We, end: yt };
@@ -2098,7 +2098,7 @@ b`.split(/\n/).length != 3 ? function(e) {
2098
2098
  if (t.top + r.top < 0 ? s = !0 : t.bottom + r.top > (u.defaultView.innerHeight || u.documentElement.clientHeight) && (s = !1), s != null && !N) {
2099
2099
  var c = k("div", "​", null, `position: absolute;
2100
2100
  top: ` + (t.top - i.viewOffset - Gi(e.display)) + `px;
2101
- height: ` + (t.bottom - t.top + hn(e) + i.barHeight) + `px;
2101
+ height: ` + (t.bottom - t.top + dn(e) + i.barHeight) + `px;
2102
2102
  left: ` + t.left + "px; width: " + Math.max(2, t.right - t.left) + "px;");
2103
2103
  e.display.lineSpace.appendChild(c), c.scrollIntoView(s), e.display.lineSpace.removeChild(c);
2104
2104
  }
@@ -2117,14 +2117,14 @@ b`.split(/\n/).length != 3 ? function(e) {
2117
2117
  bottom: Math.max(h.bottom, g.bottom) + r
2118
2118
  };
2119
2119
  var v = is(e, s), C = e.doc.scrollTop, _ = e.doc.scrollLeft;
2120
- if (v.scrollTop != null && (ii(e, v.scrollTop), Math.abs(e.doc.scrollTop - C) > 1 && (c = !0)), v.scrollLeft != null && (Jn(e, v.scrollLeft), Math.abs(e.doc.scrollLeft - _) > 1 && (c = !0)), !c)
2120
+ if (v.scrollTop != null && (ii(e, v.scrollTop), Math.abs(e.doc.scrollTop - C) > 1 && (c = !0)), v.scrollLeft != null && (Qn(e, v.scrollLeft), Math.abs(e.doc.scrollLeft - _) > 1 && (c = !0)), !c)
2121
2121
  break;
2122
2122
  }
2123
2123
  return s;
2124
2124
  }
2125
2125
  function Ac(e, t) {
2126
2126
  var i = is(e, t);
2127
- i.scrollTop != null && ii(e, i.scrollTop), i.scrollLeft != null && Jn(e, i.scrollLeft);
2127
+ i.scrollTop != null && ii(e, i.scrollTop), i.scrollLeft != null && Qn(e, i.scrollLeft);
2128
2128
  }
2129
2129
  function is(e, t) {
2130
2130
  var i = e.display, r = wr(e.display);
@@ -2138,7 +2138,7 @@ b`.split(/\n/).length != 3 ? function(e) {
2138
2138
  var C = Math.min(t.top, (v ? h : t.bottom) - u);
2139
2139
  C != s && (c.scrollTop = C);
2140
2140
  }
2141
- var _ = e.options.fixedGutter ? 0 : i.gutters.offsetWidth, M = e.curOp && e.curOp.scrollLeft != null ? e.curOp.scrollLeft : i.scroller.scrollLeft - _, I = Kn(e) - i.gutters.offsetWidth, z = t.right - t.left > I;
2141
+ var _ = e.options.fixedGutter ? 0 : i.gutters.offsetWidth, M = e.curOp && e.curOp.scrollLeft != null ? e.curOp.scrollLeft : i.scroller.scrollLeft - _, I = Xn(e) - i.gutters.offsetWidth, z = t.right - t.left > I;
2142
2142
  return z && (t.right = t.left + I), t.left < 10 ? c.scrollLeft = 0 : t.left < M ? c.scrollLeft = Math.max(0, t.left + _ - (z ? 0 : 10)) : t.right > I + M - 3 && (c.scrollLeft = t.right + (z ? 0 : 10) - I), c;
2143
2143
  }
2144
2144
  function as(e, t) {
@@ -2178,7 +2178,7 @@ b`.split(/\n/).length != 3 ? function(e) {
2178
2178
  function Xo(e, t, i) {
2179
2179
  t = Math.max(0, Math.min(e.display.scroller.scrollHeight - e.display.scroller.clientHeight, t)), !(e.display.scroller.scrollTop == t && !i) && (e.doc.scrollTop = t, e.display.scrollbars.setScrollTop(t), e.display.scroller.scrollTop != t && (e.display.scroller.scrollTop = t));
2180
2180
  }
2181
- function Jn(e, t, i, r) {
2181
+ function Qn(e, t, i, r) {
2182
2182
  t = Math.max(0, Math.min(t, e.display.scroller.scrollWidth - e.display.scroller.clientWidth)), !((i ? t == e.doc.scrollLeft : Math.abs(e.doc.scrollLeft - t) < 2) && !r) && (e.doc.scrollLeft = t, Zo(e), e.display.scroller.scrollLeft != t && (e.display.scroller.scrollLeft = t), e.display.scrollbars.setScrollLeft(t));
2183
2183
  }
2184
2184
  function ai(e) {
@@ -2191,12 +2191,12 @@ b`.split(/\n/).length != 3 ? function(e) {
2191
2191
  viewWidth: t.wrapper.clientWidth,
2192
2192
  barLeft: e.options.fixedGutter ? i : 0,
2193
2193
  docHeight: r,
2194
- scrollHeight: r + hn(e) + t.barHeight,
2194
+ scrollHeight: r + dn(e) + t.barHeight,
2195
2195
  nativeBarWidth: t.nativeBarWidth,
2196
2196
  gutterWidth: i
2197
2197
  };
2198
2198
  }
2199
- var Qn = function(e, t, i) {
2199
+ var Zn = function(e, t, i) {
2200
2200
  this.cm = i;
2201
2201
  var r = this.vert = k("div", [k("div", null, null, "min-width: 1px")], "CodeMirror-vscrollbar"), s = this.horiz = k("div", [k("div", null, null, "height: 100%; min-height: 1px")], "CodeMirror-hscrollbar");
2202
2202
  r.tabIndex = s.tabIndex = -1, e(r), e(s), me(r, "scroll", function() {
@@ -2205,7 +2205,7 @@ b`.split(/\n/).length != 3 ? function(e) {
2205
2205
  s.clientWidth && t(s.scrollLeft, "horizontal");
2206
2206
  }), this.checkedZeroWidth = !1, m && x < 8 && (this.horiz.style.minHeight = this.vert.style.minWidth = "18px");
2207
2207
  };
2208
- Qn.prototype.update = function(e) {
2208
+ Zn.prototype.update = function(e) {
2209
2209
  var t = e.scrollWidth > e.clientWidth + 1, i = e.scrollHeight > e.clientHeight + 1, r = e.nativeBarWidth;
2210
2210
  if (i) {
2211
2211
  this.vert.style.display = "block", this.vert.style.bottom = t ? r + "px" : "0";
@@ -2220,21 +2220,21 @@ b`.split(/\n/).length != 3 ? function(e) {
2220
2220
  } else
2221
2221
  this.horiz.style.display = "", this.horiz.firstChild.style.width = "0";
2222
2222
  return !this.checkedZeroWidth && e.clientHeight > 0 && (r == 0 && this.zeroWidthHack(), this.checkedZeroWidth = !0), { right: i ? r : 0, bottom: t ? r : 0 };
2223
- }, Qn.prototype.setScrollLeft = function(e) {
2223
+ }, Zn.prototype.setScrollLeft = function(e) {
2224
2224
  this.horiz.scrollLeft != e && (this.horiz.scrollLeft = e), this.disableHoriz && this.enableZeroWidthBar(this.horiz, this.disableHoriz, "horiz");
2225
- }, Qn.prototype.setScrollTop = function(e) {
2225
+ }, Zn.prototype.setScrollTop = function(e) {
2226
2226
  this.vert.scrollTop != e && (this.vert.scrollTop = e), this.disableVert && this.enableZeroWidthBar(this.vert, this.disableVert, "vert");
2227
- }, Qn.prototype.zeroWidthHack = function() {
2227
+ }, Zn.prototype.zeroWidthHack = function() {
2228
2228
  var e = ne && !F ? "12px" : "18px";
2229
2229
  this.horiz.style.height = this.vert.style.width = e, this.horiz.style.visibility = this.vert.style.visibility = "hidden", this.disableHoriz = new lt(), this.disableVert = new lt();
2230
- }, Qn.prototype.enableZeroWidthBar = function(e, t, i) {
2230
+ }, Zn.prototype.enableZeroWidthBar = function(e, t, i) {
2231
2231
  e.style.visibility = "";
2232
2232
  function r() {
2233
2233
  var s = e.getBoundingClientRect(), u = i == "vert" ? document.elementFromPoint(s.right - 1, (s.top + s.bottom) / 2) : document.elementFromPoint((s.right + s.left) / 2, s.bottom - 1);
2234
2234
  u != e ? e.style.visibility = "hidden" : t.set(1e3, r);
2235
2235
  }
2236
2236
  t.set(1e3, r);
2237
- }, Qn.prototype.clear = function() {
2237
+ }, Zn.prototype.clear = function() {
2238
2238
  var e = this.horiz.parentNode;
2239
2239
  e.removeChild(this.horiz), e.removeChild(this.vert);
2240
2240
  };
@@ -2257,7 +2257,7 @@ b`.split(/\n/).length != 3 ? function(e) {
2257
2257
  var i = e.display, r = i.scrollbars.update(t);
2258
2258
  i.sizer.style.paddingRight = (i.barWidth = r.right) + "px", i.sizer.style.paddingBottom = (i.barHeight = r.bottom) + "px", i.heightForcer.style.borderBottom = r.bottom + "px solid transparent", r.right && r.bottom ? (i.scrollbarFiller.style.display = "block", i.scrollbarFiller.style.height = r.bottom + "px", i.scrollbarFiller.style.width = r.right + "px") : i.scrollbarFiller.style.display = "", r.bottom && e.options.coverGutterNextToScrollbar && e.options.fixedGutter ? (i.gutterFiller.style.display = "block", i.gutterFiller.style.height = r.bottom + "px", i.gutterFiller.style.width = t.gutterWidth + "px") : i.gutterFiller.style.display = "";
2259
2259
  }
2260
- var Vo = { native: Qn, null: si };
2260
+ var Vo = { native: Zn, null: si };
2261
2261
  function Jo(e) {
2262
2262
  e.display.scrollbars && (e.display.scrollbars.clear(), e.display.scrollbars.addClass && Pe(e.display.wrapper, e.display.scrollbars.addClass)), e.display.scrollbars = new Vo[e.options.scrollbarStyle](function(t) {
2263
2263
  e.display.wrapper.insertBefore(t, e.display.scrollbarFiller), me(t, "mousedown", function() {
@@ -2266,11 +2266,11 @@ b`.split(/\n/).length != 3 ? function(e) {
2266
2266
  }, 0);
2267
2267
  }), t.setAttribute("cm-not-content", "true");
2268
2268
  }, function(t, i) {
2269
- i == "horizontal" ? Jn(e, t) : ii(e, t);
2269
+ i == "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
2272
  var Oc = 0;
2273
- function Zn(e) {
2273
+ function er(e) {
2274
2274
  e.curOp = {
2275
2275
  cm: e,
2276
2276
  viewChanged: !1,
@@ -2305,7 +2305,7 @@ b`.split(/\n/).length != 3 ? function(e) {
2305
2305
  // Used by addMarkedSpan
2306
2306
  }, uc(e.curOp);
2307
2307
  }
2308
- function er(e) {
2308
+ function tr(e) {
2309
2309
  var t = e.curOp;
2310
2310
  t && cc(t, function(i) {
2311
2311
  for (var r = 0; r < i.ops.length; r++)
@@ -2334,17 +2334,17 @@ b`.split(/\n/).length != 3 ? function(e) {
2334
2334
  }
2335
2335
  function Fc(e) {
2336
2336
  var t = e.cm, i = t.display;
2337
- e.updatedDisplay && Ji(t), e.barMeasure = ai(t), i.maxLineChanged && !t.options.lineWrapping && (e.adjustWidthTo = Io(t, i.maxLine, i.maxLine.text.length).left + 3, t.display.sizerWidth = e.adjustWidthTo, e.barMeasure.scrollWidth = Math.max(i.scroller.clientWidth, i.sizer.offsetLeft + e.adjustWidthTo + hn(t) + t.display.barWidth), e.maxScrollLeft = Math.max(0, i.sizer.offsetLeft + e.adjustWidthTo - Kn(t))), (e.updatedDisplay || e.selectionChanged) && (e.preparedSelection = i.input.prepareSelection());
2337
+ e.updatedDisplay && Ji(t), e.barMeasure = ai(t), i.maxLineChanged && !t.options.lineWrapping && (e.adjustWidthTo = Io(t, i.maxLine, i.maxLine.text.length).left + 3, t.display.sizerWidth = e.adjustWidthTo, e.barMeasure.scrollWidth = Math.max(i.scroller.clientWidth, i.sizer.offsetLeft + e.adjustWidthTo + dn(t) + t.display.barWidth), e.maxScrollLeft = Math.max(0, i.sizer.offsetLeft + e.adjustWidthTo - Xn(t))), (e.updatedDisplay || e.selectionChanged) && (e.preparedSelection = i.input.prepareSelection());
2338
2338
  }
2339
2339
  function Pc(e) {
2340
2340
  var t = e.cm;
2341
- e.adjustWidthTo != null && (t.display.sizer.style.minWidth = e.adjustWidthTo + "px", e.maxScrollLeft < t.doc.scrollLeft && Jn(t, Math.min(t.display.scroller.scrollLeft, e.maxScrollLeft), !0), t.display.maxLineChanged = !1);
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 i = e.focus && e.focus == R(oe(t));
2343
2343
  e.preparedSelection && t.display.input.showSelection(e.preparedSelection, i), (e.updatedDisplay || e.startHeight != t.doc.height) && Tr(t, e.barMeasure), e.updatedDisplay && us(t, e.barMeasure), e.selectionChanged && ts(t), t.state.focused && e.updateInput && t.display.input.reset(e.typing), i && qo(e.cm);
2344
2344
  }
2345
2345
  function zc(e) {
2346
2346
  var t = e.cm, i = t.display, r = t.doc;
2347
- if (e.updatedDisplay && Qo(t, e.update), i.wheelStartX != null && (e.scrollTop != null || e.scrollLeft != null || e.scrollToPos) && (i.wheelStartX = i.wheelStartY = null), e.scrollTop != null && Xo(t, e.scrollTop, e.forceScroll), e.scrollLeft != null && Jn(t, e.scrollLeft, !0, !0), e.scrollToPos) {
2347
+ if (e.updatedDisplay && Qo(t, e.update), i.wheelStartX != null && (e.scrollTop != null || e.scrollLeft != null || e.scrollToPos) && (i.wheelStartX = i.wheelStartY = null), e.scrollTop != null && Xo(t, e.scrollTop, e.forceScroll), e.scrollLeft != null && Qn(t, e.scrollLeft, !0, !0), e.scrollToPos) {
2348
2348
  var s = Dc(
2349
2349
  t,
2350
2350
  Se(r, e.scrollToPos.from),
@@ -2365,22 +2365,22 @@ b`.split(/\n/).length != 3 ? function(e) {
2365
2365
  function zt(e, t) {
2366
2366
  if (e.curOp)
2367
2367
  return t();
2368
- Zn(e);
2368
+ er(e);
2369
2369
  try {
2370
2370
  return t();
2371
2371
  } finally {
2372
- er(e);
2372
+ tr(e);
2373
2373
  }
2374
2374
  }
2375
2375
  function mt(e, t) {
2376
2376
  return function() {
2377
2377
  if (e.curOp)
2378
2378
  return t.apply(e, arguments);
2379
- Zn(e);
2379
+ er(e);
2380
2380
  try {
2381
2381
  return t.apply(e, arguments);
2382
2382
  } finally {
2383
- er(e);
2383
+ tr(e);
2384
2384
  }
2385
2385
  };
2386
2386
  }
@@ -2388,11 +2388,11 @@ b`.split(/\n/).length != 3 ? function(e) {
2388
2388
  return function() {
2389
2389
  if (this.curOp)
2390
2390
  return e.apply(this, arguments);
2391
- Zn(this);
2391
+ er(this);
2392
2392
  try {
2393
2393
  return e.apply(this, arguments);
2394
2394
  } finally {
2395
- er(this);
2395
+ tr(this);
2396
2396
  }
2397
2397
  };
2398
2398
  }
@@ -2401,11 +2401,11 @@ b`.split(/\n/).length != 3 ? function(e) {
2401
2401
  var t = this.cm;
2402
2402
  if (!t || t.curOp)
2403
2403
  return e.apply(this, arguments);
2404
- Zn(t);
2404
+ er(t);
2405
2405
  try {
2406
2406
  return e.apply(this, arguments);
2407
2407
  } finally {
2408
- er(t);
2408
+ tr(t);
2409
2409
  }
2410
2410
  };
2411
2411
  }
@@ -2418,7 +2418,7 @@ b`.split(/\n/).length != 3 ? function(e) {
2418
2418
  var i = +/* @__PURE__ */ new Date() + e.options.workTime, r = Vr(e, t.highlightFrontier), s = [];
2419
2419
  t.iter(r.line, Math.min(t.first + t.size, e.display.viewTo + 500), function(u) {
2420
2420
  if (r.line >= e.display.viewFrom) {
2421
- var c = u.styles, h = u.text.length > e.options.maxHighlightLength ? fn(t.mode, r.state) : null, g = io(e, u, r, !0);
2421
+ var c = u.styles, h = u.text.length > e.options.maxHighlightLength ? cn(t.mode, r.state) : null, g = io(e, u, r, !0);
2422
2422
  h && (r.state = h), u.styles = g.styles;
2423
2423
  var v = u.styleClasses, C = g.classes;
2424
2424
  C ? u.styleClasses = C : v && (u.styleClasses = null);
@@ -2437,7 +2437,7 @@ b`.split(/\n/).length != 3 ? function(e) {
2437
2437
  }
2438
2438
  var ea = function(e, t, i) {
2439
2439
  var r = e.display;
2440
- this.viewport = t, this.visible = Qi(r, e.doc, t), this.editorIsHidden = !r.wrapper.offsetWidth, this.wrapperHeight = r.wrapper.clientHeight, this.wrapperWidth = r.wrapper.clientWidth, this.oldDisplayWidth = Kn(e), this.force = i, this.dims = Ja(e), this.events = [];
2440
+ this.viewport = t, this.visible = Qi(r, e.doc, t), this.editorIsHidden = !r.wrapper.offsetWidth, this.wrapperHeight = r.wrapper.clientHeight, this.wrapperWidth = r.wrapper.clientWidth, this.oldDisplayWidth = Xn(e), this.force = i, this.dims = Ja(e), this.events = [];
2441
2441
  };
2442
2442
  ea.prototype.signal = function(e, t) {
2443
2443
  Pt(e, t) && this.events.push(arguments);
@@ -2447,7 +2447,7 @@ b`.split(/\n/).length != 3 ? function(e) {
2447
2447
  };
2448
2448
  function Bc(e) {
2449
2449
  var t = e.display;
2450
- !t.scrollbarsClipped && t.scroller.offsetWidth && (t.nativeBarWidth = t.scroller.offsetWidth - t.scroller.clientWidth, t.heightForcer.style.height = hn(e) + "px", t.sizer.style.marginBottom = -t.nativeBarWidth + "px", t.sizer.style.borderRightWidth = hn(e) + "px", t.scrollbarsClipped = !0);
2450
+ !t.scrollbarsClipped && t.scroller.offsetWidth && (t.nativeBarWidth = t.scroller.offsetWidth - t.scroller.clientWidth, t.heightForcer.style.height = dn(e) + "px", t.sizer.style.marginBottom = -t.nativeBarWidth + "px", t.sizer.style.borderRightWidth = dn(e) + "px", t.scrollbarsClipped = !0);
2451
2451
  }
2452
2452
  function Hc(e) {
2453
2453
  if (e.hasFocus())
@@ -2487,7 +2487,7 @@ b`.split(/\n/).length != 3 ? function(e) {
2487
2487
  }
2488
2488
  function Qo(e, t) {
2489
2489
  for (var i = t.viewport, r = !0; ; r = !1) {
2490
- if (!r || !e.options.lineWrapping || t.oldDisplayWidth == Kn(e)) {
2490
+ if (!r || !e.options.lineWrapping || t.oldDisplayWidth == Xn(e)) {
2491
2491
  if (i && i.top != null && (i = { top: Math.min(e.doc.height + Ua(e.display) - qa(e), i.top) }), t.visible = Qi(e.display, e.doc, i), t.visible.from >= e.display.viewFrom && t.visible.to <= e.display.viewTo)
2492
2492
  break;
2493
2493
  } else r && (t.visible = Qi(e.display, e.doc, i));
@@ -2534,7 +2534,7 @@ b`.split(/\n/).length != 3 ? function(e) {
2534
2534
  e.sizer.style.marginLeft = t + "px", gt(e, "gutterChanged", e);
2535
2535
  }
2536
2536
  function us(e, t) {
2537
- e.display.sizer.style.minHeight = t.docHeight + "px", e.display.heightForcer.style.top = t.docHeight + "px", e.display.gutters.style.height = t.docHeight + e.display.barHeight + hn(e) + "px";
2537
+ e.display.sizer.style.minHeight = t.docHeight + "px", e.display.heightForcer.style.top = t.docHeight + "px", e.display.gutters.style.height = t.docHeight + e.display.barHeight + dn(e) + "px";
2538
2538
  }
2539
2539
  function Zo(e) {
2540
2540
  var t = e.display, i = t.view;
@@ -2626,7 +2626,7 @@ b`.split(/\n/).length != 3 ? function(e) {
2626
2626
  }
2627
2627
  }
2628
2628
  if (r && !f && !B && u != null) {
2629
- s && v && ii(e, Math.max(0, h.scrollTop + s * u)), Jn(e, Math.max(0, h.scrollLeft + r * u)), (!s || s && v) && St(t), c.wheelStartX = null;
2629
+ s && v && ii(e, Math.max(0, h.scrollTop + s * u)), Qn(e, Math.max(0, h.scrollLeft + r * u)), (!s || s && v) && St(t), c.wheelStartX = null;
2630
2630
  return;
2631
2631
  }
2632
2632
  if (s && u != null) {
@@ -3367,7 +3367,7 @@ b`.split(/\n/).length != 3 ? function(e) {
3367
3367
  Bn.prototype.clear = function() {
3368
3368
  if (!this.explicitlyCleared) {
3369
3369
  var e = this.doc.cm, t = e && !e.curOp;
3370
- if (t && Zn(e), Pt(this, "clear")) {
3370
+ if (t && er(e), Pt(this, "clear")) {
3371
3371
  var i = this.find();
3372
3372
  i && gt(this, "clear", i.from, i.to);
3373
3373
  }
@@ -3380,7 +3380,7 @@ b`.split(/\n/).length != 3 ? function(e) {
3380
3380
  var v = rn(this.lines[g]), C = Ui(v);
3381
3381
  C > e.display.maxLineLength && (e.display.maxLine = v, e.display.maxLineLength = C, e.display.maxLineChanged = !0);
3382
3382
  }
3383
- r != null && e && this.collapsed && At(e, r, s + 1), this.lines.length = 0, this.explicitlyCleared = !0, this.atomic && this.doc.cantEdit && (this.doc.cantEdit = !1, e && vl(e.doc)), e && gt(e, "markerCleared", e, this, r, s), t && er(e), this.parent && this.parent.clear();
3383
+ r != null && e && this.collapsed && At(e, r, s + 1), this.lines.length = 0, this.explicitlyCleared = !0, this.atomic && this.doc.cantEdit && (this.doc.cantEdit = !1, e && vl(e.doc)), e && gt(e, "markerCleared", e, this, r, s), t && tr(e), this.parent && this.parent.clear();
3384
3384
  }
3385
3385
  }, Bn.prototype.find = function(e, t) {
3386
3386
  e == null && this.type == "bookmark" && (e = 1);
@@ -3510,7 +3510,7 @@ b`.split(/\n/).length != 3 ? function(e) {
3510
3510
  var u = P(i, 0);
3511
3511
  this.sel = Pn(u), this.history = new na(null), this.id = ++ah, this.modeOption = t, this.lineSep = r, this.direction = s == "rtl" ? "rtl" : "ltr", this.extend = !1, typeof e == "string" && (e = this.splitLines(e)), ds(this, { from: u, to: u, text: e }), Ct(this, Pn(u), ut);
3512
3512
  };
3513
- It.prototype = Un(di.prototype, {
3513
+ It.prototype = qn(di.prototype, {
3514
3514
  constructor: It,
3515
3515
  // Iterate over the document. Supports two forms -- with only one
3516
3516
  // argument, it calls that for each line in the document. With
@@ -3887,7 +3887,7 @@ b`.split(/\n/).length != 3 ? function(e) {
3887
3887
  var t = this;
3888
3888
  if (Il(t), !(Ze(t, e) || kn(t.display, e))) {
3889
3889
  St(e), m && (Al = +/* @__PURE__ */ new Date());
3890
- var i = Yn(t, e, !0), r = e.dataTransfer.files;
3890
+ var i = Vn(t, e, !0), r = e.dataTransfer.files;
3891
3891
  if (!(!i || t.isReadOnly()))
3892
3892
  if (r && r.length && window.FileReader && window.File)
3893
3893
  for (var s = r.length, u = Array(s), c = 0, h = function() {
@@ -3955,7 +3955,7 @@ b`.split(/\n/).length != 3 ? function(e) {
3955
3955
  }
3956
3956
  }
3957
3957
  function lh(e, t) {
3958
- var i = Yn(e, t);
3958
+ var i = Vn(e, t);
3959
3959
  if (i) {
3960
3960
  var r = document.createDocumentFragment();
3961
3961
  es(e, i, r), e.display.dragCursor || (e.display.dragCursor = k("div", null, "CodeMirror-cursors CodeMirror-dragcursors"), e.display.lineSpace.insertBefore(e.display.dragCursor, e.display.cursorDiv)), Q(e.display.dragCursor, r);
@@ -4265,9 +4265,9 @@ b`.split(/\n/).length != 3 ? function(e) {
4265
4265
  if (c.level > 0 || t.doc.direction == "rtl") {
4266
4266
  var C = xr(t, i);
4267
4267
  v = s < 0 ? i.text.length - 1 : 0;
4268
- var _ = dn(t, C, v).top;
4268
+ var _ = pn(t, C, v).top;
4269
4269
  v = Kt(function(M) {
4270
- return dn(t, C, M).top == _;
4270
+ return pn(t, C, M).top == _;
4271
4271
  }, s < 0 == (c.level == 1) ? c.from : c.to - 1, v), g == "before" && (v = vs(i, v, 1));
4272
4272
  } else
4273
4273
  v = s < 0 ? c.to : c.from;
@@ -4667,7 +4667,7 @@ b`.split(/\n/).length != 3 ? function(e) {
4667
4667
  return;
4668
4668
  }
4669
4669
  if (!ks(t, e)) {
4670
- var r = Yn(t, e), s = Zt(e), u = r ? wh(r, s) : "single";
4670
+ var r = Vn(t, e), s = Zt(e), u = r ? wh(r, s) : "single";
4671
4671
  Z(t).focus(), s == 1 && t.state.selectingText && t.state.selectingText(e), !(r && kh(t, s, r, u, e)) && (s == 1 ? r ? Ch(t, r, u, e) : Gr(e) == i.scroller && St(e) : s == 2 ? (r && ia(t.doc, r), setTimeout(function() {
4672
4672
  return i.input.focus();
4673
4673
  }, 20)) : s == 3 && (Me ? t.display.input.onContextMenu(e) : ns(t)));
@@ -4731,7 +4731,7 @@ b`.split(/\n/).length != 3 ? function(e) {
4731
4731
  St(t);
4732
4732
  var c, h, g = u.sel, v = g.ranges;
4733
4733
  if (r.addNew && !r.extend ? (h = u.sel.contains(i), h > -1 ? c = v[h] : c = new $e(i, i)) : (c = u.sel.primary(), h = u.sel.primIndex), r.unit == "rectangle")
4734
- r.addNew || (c = new $e(i, i)), i = Yn(e, t, !0, !0), h = -1;
4734
+ r.addNew || (c = new $e(i, i)), i = Vn(e, t, !0, !0), h = -1;
4735
4735
  else {
4736
4736
  var C = ql(e, i, r.unit);
4737
4737
  r.extend ? c = gs(c, C.anchor, C.head, r.extend) : c = C;
@@ -4767,7 +4767,7 @@ b`.split(/\n/).length != 3 ? function(e) {
4767
4767
  }
4768
4768
  var I = s.wrapper.getBoundingClientRect(), z = 0;
4769
4769
  function U(te) {
4770
- var le = ++z, ve = Yn(e, te, !0, r.unit == "rectangle");
4770
+ var le = ++z, ve = Vn(e, te, !0, r.unit == "rectangle");
4771
4771
  if (ve)
4772
4772
  if (re(ve, _) != 0) {
4773
4773
  e.curOp.focus = R(oe(e)), M(ve);
@@ -4972,7 +4972,7 @@ b`.split(/\n/).length != 3 ? function(e) {
4972
4972
  specialChars: null
4973
4973
  }, t.autofocus && !X && u.input.focus(), m && x < 11 && setTimeout(function() {
4974
4974
  return i.display.input.reset(!0);
4975
- }, 20), Oh(this), uh(), Zn(this), this.curOp.forceUpdate = !0, ol(this, r), t.autofocus && !X || this.hasFocus() ? setTimeout(function() {
4975
+ }, 20), Oh(this), uh(), er(this), this.curOp.forceUpdate = !0, ol(this, r), t.autofocus && !X || this.hasFocus() ? setTimeout(function() {
4976
4976
  i.hasFocus() && !i.state.focused && rs(i);
4977
4977
  }, 20) : Sr(this);
4978
4978
  for (var c in ca)
@@ -4980,14 +4980,14 @@ b`.split(/\n/).length != 3 ? function(e) {
4980
4980
  el(this), t.finishInit && t.finishInit(this);
4981
4981
  for (var h = 0; h < Ss.length; ++h)
4982
4982
  Ss[h](this);
4983
- er(this), S && t.lineWrapping && getComputedStyle(u.lineDiv).textRendering == "optimizelegibility" && (u.lineDiv.style.textRendering = "auto");
4983
+ tr(this), S && t.lineWrapping && getComputedStyle(u.lineDiv).textRendering == "optimizelegibility" && (u.lineDiv.style.textRendering = "auto");
4984
4984
  }
4985
4985
  Xe.defaults = Yl, Xe.optionHandlers = ca;
4986
4986
  function Oh(e) {
4987
4987
  var t = e.display;
4988
4988
  me(t.scroller, "mousedown", mt(e, Ul)), m && x < 11 ? me(t.scroller, "dblclick", mt(e, function(g) {
4989
4989
  if (!Ze(e, g)) {
4990
- var v = Yn(e, g);
4990
+ var v = Vn(e, g);
4991
4991
  if (!(!v || ks(e, g) || kn(e.display, g))) {
4992
4992
  St(g);
4993
4993
  var C = e.findWordAt(v);
@@ -5039,7 +5039,7 @@ b`.split(/\n/).length != 3 ? function(e) {
5039
5039
  }
5040
5040
  s();
5041
5041
  }), me(t.scroller, "touchcancel", s), me(t.scroller, "scroll", function() {
5042
- t.scroller.clientHeight && (ii(e, t.scroller.scrollTop), Jn(e, t.scroller.scrollLeft, !0), Qe(e, "scroll", e));
5042
+ t.scroller.clientHeight && (ii(e, t.scroller.scrollTop), Qn(e, t.scroller.scrollLeft, !0), Qe(e, "scroll", e));
5043
5043
  }), me(t.scroller, "mousewheel", function(g) {
5044
5044
  return rl(e, g);
5045
5045
  }), me(t.scroller, "DOMMouseScroll", function(g) {
@@ -5435,10 +5435,10 @@ b`.split(/\n/).length != 3 ? function(e) {
5435
5435
  return {
5436
5436
  left: r.scrollLeft,
5437
5437
  top: r.scrollTop,
5438
- height: r.scrollHeight - hn(this) - this.display.barHeight,
5439
- width: r.scrollWidth - hn(this) - this.display.barWidth,
5438
+ height: r.scrollHeight - dn(this) - this.display.barHeight,
5439
+ width: r.scrollWidth - dn(this) - this.display.barWidth,
5440
5440
  clientHeight: qa(this),
5441
- clientWidth: Kn(this)
5441
+ clientWidth: Xn(this)
5442
5442
  };
5443
5443
  },
5444
5444
  scrollIntoView: _t(function(r, s) {
@@ -5465,10 +5465,10 @@ b`.split(/\n/).length != 3 ? function(e) {
5465
5465
  return zt(this, r);
5466
5466
  },
5467
5467
  startOperation: function() {
5468
- return Zn(this);
5468
+ return er(this);
5469
5469
  },
5470
5470
  endOperation: function() {
5471
- return er(this);
5471
+ return tr(this);
5472
5472
  },
5473
5473
  refresh: _t(function() {
5474
5474
  var r = this.display.cachedTextHeight;
@@ -5714,8 +5714,8 @@ b`.split(/\n/).length != 3 ? function(e) {
5714
5714
  if (r.ch == 0 && r.line > e.firstLine() && (r = P(r.line - 1, fe(e.doc, r.line - 1).length)), s.ch == fe(e.doc, s.line).text.length && s.line < e.lastLine() && (s = P(s.line + 1, 0)), r.line < t.viewFrom || s.line > t.viewTo - 1)
5715
5715
  return !1;
5716
5716
  var u, c, h;
5717
- r.line == t.viewFrom || (u = Vn(e, r.line)) == 0 ? (c = b(t.view[0].line), h = t.view[0].node) : (c = b(t.view[u].line), h = t.view[u - 1].node.nextSibling);
5718
- var g = Vn(e, s.line), v, C;
5717
+ r.line == t.viewFrom || (u = Jn(e, r.line)) == 0 ? (c = b(t.view[0].line), h = t.view[0].node) : (c = b(t.view[u].line), h = t.view[u - 1].node.nextSibling);
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
5721
  for (var _ = e.doc.splitLines(Rh(e, h, C, c, v)), M = bn(e.doc, P(c, 0), P(v, fe(e.doc, v).text.length)); _.length > 1 && M.length > 1; )
@@ -6029,7 +6029,7 @@ b`.split(/\n/).length != 3 ? function(e) {
6029
6029
  }, rt.prototype.onContextMenu = function(e) {
6030
6030
  var t = this, i = t.cm, r = i.display, s = t.textarea;
6031
6031
  t.contextMenuPending && t.contextMenuPending();
6032
- var u = Yn(i, e), c = r.scroller.scrollTop;
6032
+ var u = Vn(i, e), c = r.scroller.scrollTop;
6033
6033
  if (!u || B)
6034
6034
  return;
6035
6035
  var h = i.options.resetSelectionOnContextMenu;
@@ -6103,7 +6103,7 @@ b`.split(/\n/).length != 3 ? function(e) {
6103
6103
  return h;
6104
6104
  }
6105
6105
  function zh(e) {
6106
- e.off = kt, e.on = me, e.wheelEventPixels = qc, e.Doc = It, e.splitLines = Yt, e.countColumn = Te, e.findColumn = ct, e.isWordChar = ye, e.Pass = Ue, e.signal = Qe, e.Line = yr, e.changeEnd = zn, e.scrollbarModel = Vo, e.Pos = P, e.cmpPos = re, e.modes = hr, e.mimeModes = tn, e.resolveMode = dr, e.getMode = pr, e.modeExtensions = Nn, e.extendMode = gr, e.copyState = fn, e.startState = mr, e.innerMode = Xr, e.commands = yi, e.keyMap = Cn, e.keyName = Fl, e.isModifierKey = Ml, e.lookupKey = Ir, e.normalizeKeyMap = dh, e.StringStream = et, e.SharedTextMarker = gi, e.TextMarker = Bn, e.LineWidget = pi, e.e_preventDefault = St, e.e_stopPropagation = fr, e.e_stop = An, e.addClass = K, e.contains = D, e.rmClass = Pe, e.keyNames = Hn;
6106
+ e.off = kt, e.on = me, e.wheelEventPixels = qc, e.Doc = It, e.splitLines = Yt, e.countColumn = Te, e.findColumn = ct, e.isWordChar = ye, e.Pass = Ue, e.signal = Qe, e.Line = yr, e.changeEnd = zn, e.scrollbarModel = Vo, e.Pos = P, e.cmpPos = re, e.modes = hr, e.mimeModes = tn, e.resolveMode = dr, e.getMode = pr, e.modeExtensions = Nn, e.extendMode = gr, e.copyState = cn, e.startState = mr, e.innerMode = Xr, e.commands = yi, e.keyMap = Cn, e.keyName = Fl, e.isModifierKey = Ml, e.lookupKey = Ir, e.normalizeKeyMap = dh, e.StringStream = et, e.SharedTextMarker = gi, e.TextMarker = Bn, e.LineWidget = pi, e.e_preventDefault = St, e.e_stopPropagation = fr, e.e_stop = An, e.addClass = K, e.contains = D, e.rmClass = Pe, e.keyNames = Hn;
6107
6107
  }
6108
6108
  Dh(Xe), Nh(Xe);
6109
6109
  var $h = "iter insert remove copy getEditor constructor".split(" ");
@@ -6115,7 +6115,7 @@ b`.split(/\n/).length != 3 ? function(e) {
6115
6115
  }(It.prototype[pa]));
6116
6116
  return Qt(It), Xe.inputStyles = { textarea: rt, contenteditable: He }, Xe.defineMode = function(e) {
6117
6117
  !Xe.defaults.mode && e != "null" && (Xe.defaults.mode = e), nn.apply(this, arguments);
6118
- }, Xe.defineMIME = Gn, Xe.defineMode("null", function() {
6118
+ }, Xe.defineMIME = Kn, Xe.defineMode("null", function() {
6119
6119
  return { token: function(e) {
6120
6120
  return e.skipToEnd();
6121
6121
  } };
@@ -6490,14 +6490,14 @@ b`.split(/\n/).length != 3 ? function(e) {
6490
6490
  }
6491
6491
  function Ht(b) {
6492
6492
  return function(T) {
6493
- return T == "." ? k(b ? Un : Ln) : T == "variable" && S ? k(Pt, b ? ct : ft) : Q(b ? Oe : we);
6493
+ return T == "." ? k(b ? qn : Ln) : T == "variable" && S ? k(Pt, b ? ct : ft) : Q(b ? Oe : we);
6494
6494
  };
6495
6495
  }
6496
6496
  function Ln(b, T) {
6497
6497
  if (T == "target")
6498
6498
  return W.marked = "keyword", k(ft);
6499
6499
  }
6500
- function Un(b, T) {
6500
+ function qn(b, T) {
6501
6501
  if (T == "target")
6502
6502
  return W.marked = "keyword", k(ct);
6503
6503
  }
@@ -6567,7 +6567,7 @@ b`.split(/\n/).length != 3 ? function(e) {
6567
6567
  if (T == "?") return k(En);
6568
6568
  }
6569
6569
  }
6570
- function qn(b, T) {
6570
+ function Gn(b, T) {
6571
6571
  if (S && (b == ":" || T == "in")) return k(Fe);
6572
6572
  }
6573
6573
  function Dn(b) {
@@ -6606,7 +6606,7 @@ b`.split(/\n/).length != 3 ? function(e) {
6606
6606
  if (b == ":")
6607
6607
  return k(Fe);
6608
6608
  if (b == "[")
6609
- return k(ke("variable"), qn, ke("]"), yn);
6609
+ return k(ke("variable"), Gn, ke("]"), yn);
6610
6610
  if (b == "(")
6611
6611
  return Q(On, yn);
6612
6612
  if (!b.match(/[;\}\)\],]/))
@@ -6718,10 +6718,10 @@ b`.split(/\n/).length != 3 ? function(e) {
6718
6718
  if (b == "async" || b == "variable" && (T == "static" || T == "get" || T == "set" || S && R(T)) && W.stream.match(/^\s+#?[\w$\xa1-\uffff]/, !1))
6719
6719
  return W.marked = "keyword", k(nn);
6720
6720
  if (b == "variable" || W.style == "keyword")
6721
- return W.marked = "property", k(Gn, nn);
6722
- if (b == "number" || b == "string") return k(Gn, nn);
6721
+ return W.marked = "property", k(Kn, nn);
6722
+ if (b == "number" || b == "string") return k(Kn, nn);
6723
6723
  if (b == "[")
6724
- return k(we, En, ke("]"), Gn, nn);
6724
+ return k(we, En, ke("]"), Kn, nn);
6725
6725
  if (T == "*")
6726
6726
  return W.marked = "keyword", k(nn);
6727
6727
  if (S && b == "(") return Q(On, nn);
@@ -6729,8 +6729,8 @@ b`.split(/\n/).length != 3 ? function(e) {
6729
6729
  if (b == "}") return k();
6730
6730
  if (T == "@") return k(we, nn);
6731
6731
  }
6732
- function Gn(b, T) {
6733
- if (T == "!" || T == "?") return k(Gn);
6732
+ function Kn(b, T) {
6733
+ if (T == "!" || T == "?") return k(Kn);
6734
6734
  if (b == ":") return k(Fe, Zt);
6735
6735
  if (T == "=") return k(Oe);
6736
6736
  var j = W.state.lexical.prev, Y = j && j.info == "interface";
@@ -6745,13 +6745,13 @@ b`.split(/\n/).length != 3 ? function(e) {
6745
6745
  if (b == "variable") return Q(Oe, pr);
6746
6746
  }
6747
6747
  function Nn(b) {
6748
- return b == "string" ? k() : b == "(" ? Q(we) : b == "." ? Q(ft) : Q(gr, fn, mr);
6748
+ return b == "string" ? k() : b == "(" ? Q(we) : b == "." ? Q(ft) : Q(gr, cn, mr);
6749
6749
  }
6750
6750
  function gr(b, T) {
6751
6751
  return b == "{" ? Ft(gr, "}") : (b == "variable" && G(T), T == "*" && (W.marked = "keyword"), k(Xr));
6752
6752
  }
6753
- function fn(b) {
6754
- if (b == ",") return k(gr, fn);
6753
+ function cn(b) {
6754
+ if (b == ",") return k(gr, cn);
6755
6755
  }
6756
6756
  function Xr(b, T) {
6757
6757
  if (T == "as")
@@ -7407,33 +7407,36 @@ const Xh = jh("trace", {
7407
7407
  this.currentTrace = l;
7408
7408
  }
7409
7409
  }
7410
- }), Yh = () => typeof __TRACE_API_BASE_URL__ < "u" ? __TRACE_API_BASE_URL__ : typeof window < "u" && window.__TRACE_API_BASE_URL__ ? window.__TRACE_API_BASE_URL__ : typeof process < "u" && process.env && process.env.TRACE_API_BASE_URL ? process.env.TRACE_API_BASE_URL : "/tracing", rr = Uh.create({
7410
+ }), Yh = () => typeof __TRACE_API_BASE_URL__ < "u" ? __TRACE_API_BASE_URL__ : typeof window < "u" && window.__TRACE_API_BASE_URL__ ? window.__TRACE_API_BASE_URL__ : typeof process < "u" && process.env && process.env.TRACE_API_BASE_URL ? process.env.TRACE_API_BASE_URL : "/tracing", jn = Uh.create({
7411
7411
  baseURL: Yh(),
7412
7412
  timeout: 36e5
7413
- }), gn = {
7413
+ }), ln = {
7414
7414
  getExperiments() {
7415
- return rr.post("/experiments/search").then((l) => l.data);
7415
+ return jn.post("/experiments/search").then((l) => l.data);
7416
7416
  },
7417
- getTraceList(l, n, a, o, f, d) {
7418
- const p = {};
7419
- return l && (p.query = l), n && (p.startTime = n), a && (p.endTime = a), o && (p.pageNum = o), f && (p.pageSize = f), d && (p.experimentId = d), rr.get("/v1/trace", { params: p }).then((y) => y.data);
7417
+ getTraceStatus() {
7418
+ return jn.get("/v1/dict/traceStatus").then((l) => l.data);
7419
+ },
7420
+ getTraceList(l, n, a, o, f, d, p) {
7421
+ const y = {};
7422
+ return l && (y.query = l), n && (y.startTime = n), a && (y.endTime = a), o && (y.pageNum = o), f && (y.pageSize = f), d && (y.experimentId = d), p && (y.status = p), jn.get("/v1/trace", { params: y }).then((m) => m.data);
7420
7423
  },
7421
7424
  getTraceDetail(l) {
7422
- return rr.get(`/v1/trace/${l}`).then((n) => n.data);
7425
+ return jn.get(`/v1/trace/${l}`).then((n) => n.data);
7423
7426
  },
7424
7427
  getTraceSpans(l, n = {}) {
7425
7428
  const { query: a = "", has_events: o, page_num: f = 1, page_size: d = 100 } = n, p = { query: a || "", page_num: f, page_size: d };
7426
- return o === !0 && (p.has_events = !0), rr.post(`/v1/trace/${l}/spans`, p).then((y) => y.data);
7429
+ return o === !0 && (p.has_events = !0), jn.post(`/v1/trace/${l}/spans`, p).then((y) => y.data);
7427
7430
  },
7428
7431
  getSpanContent(l, n) {
7429
- return rr.get(`/v1/trace/${l}/span/${n}/content`).then((a) => a.data);
7432
+ return jn.get(`/v1/trace/${l}/span/${n}/content`).then((a) => a.data);
7430
7433
  },
7431
- deleteTraces(l, n, a, o) {
7432
- const f = {};
7433
- return l && (f.query = l), n && (f.startTime = n), a && (f.endTime = a), o && (f.experimentId = o), rr.delete("/v1/trace", { params: f }).then((d) => d.data);
7434
+ deleteTraces(l, n, a, o, f) {
7435
+ const d = {};
7436
+ return l && (d.query = l), n && (d.startTime = n), a && (d.endTime = a), o && (d.experimentId = o), f && (d.status = f), jn.delete("/v1/trace", { params: d }).then((p) => p.data);
7434
7437
  },
7435
7438
  debugTrace(l, n = {}) {
7436
- return rr.post("/debug", l, { headers: n }).then((a) => a.data);
7439
+ return jn.post("/debug", l, { headers: n }).then((a) => a.data);
7437
7440
  }
7438
7441
  };
7439
7442
  var ef = { exports: {} };
@@ -9013,7 +9016,7 @@ Le.walkTokens;
9013
9016
  Le.parseInline;
9014
9017
  vn.parse;
9015
9018
  mn.lex;
9016
- function jn(l, n, a, o, f, d, p, y) {
9019
+ function Un(l, n, a, o, f, d, p, y) {
9017
9020
  var m = typeof l == "function" ? l.options : l;
9018
9021
  return n && (m.render = n, m.staticRenderFns = a, m._compiled = !0), d && (m._scopeId = "data-v-" + d), {
9019
9022
  exports: l,
@@ -9048,7 +9051,7 @@ const Id = {
9048
9051
  var Od = function() {
9049
9052
  var n = this, a = n._self._c;
9050
9053
  return a("div", { staticClass: "timeline-header" }, [a("div", { staticClass: "time-scale" }, [a("span", { staticClass: "time-range" }, [n._v(n._s(n.timeRange))])]), a("div", { staticClass: "header-actions" }, [n.viewMode === "tree" ? a("el-tooltip", { attrs: { content: n.allExpanded ? "合上所有节点" : "展开所有节点", placement: "top" } }, [a("i", { staticClass: "action-icon", class: n.allExpanded ? "el-icon-arrow-down" : "el-icon-arrow-right", on: { click: n.handleToggleExpand } })]) : n._e(), a("el-tooltip", { attrs: { content: n.viewMode === "list" ? "切换到树形视图" : "切换到列表视图", placement: "top" } }, [a("i", { staticClass: "action-icon", class: n.viewMode === "list" ? "el-icon-menu" : "el-icon-s-operation", on: { click: n.handleToggleView } })])], 1)]);
9051
- }, Nd = [], Md = /* @__PURE__ */ jn(
9054
+ }, Nd = [], Md = /* @__PURE__ */ Un(
9052
9055
  Id,
9053
9056
  Od,
9054
9057
  Nd,
@@ -9084,7 +9087,7 @@ const Rd = Md.exports, Fd = {
9084
9087
  var Pd = function() {
9085
9088
  var n = this, a = n._self._c;
9086
9089
  return a("el-tooltip", { attrs: { content: n.statusDescription, disabled: !n.statusDescription, placement: "top", "popper-class": "span-status-tooltip" } }, [a("div", { staticClass: "timeline-bar-wrapper" }, [a("div", { staticClass: "timeline-bar", class: { selected: n.selected, error: n.error, "has-events": n.hasEvents }, style: n.barStyle })])]);
9087
- }, zd = [], $d = /* @__PURE__ */ jn(
9090
+ }, zd = [], $d = /* @__PURE__ */ Un(
9088
9091
  Fd,
9089
9092
  Pd,
9090
9093
  zd,
@@ -9233,7 +9236,7 @@ var Wd = function() {
9233
9236
  return n.$emit("toggle-expand", f);
9234
9237
  } } });
9235
9238
  }), 1) : n._e()]);
9236
- }, jd = [], Ud = /* @__PURE__ */ jn(
9239
+ }, jd = [], Ud = /* @__PURE__ */ Un(
9237
9240
  Hd,
9238
9241
  Wd,
9239
9242
  jd,
@@ -9296,7 +9299,7 @@ const qd = Ud.exports, Gd = {
9296
9299
  var Kd = function() {
9297
9300
  var n = this, a = n._self._c;
9298
9301
  return a("div", { staticClass: "timeline-node", class: { selected: n.selected, error: n.error }, on: { click: n.handleClick } }, [a("div", { staticClass: "node-row" }, [a("div", { staticClass: "node-info" }, [a("el-tag", { staticClass: "type-tag", attrs: { type: n.typeColor, color: n.typeCustomColor, size: "mini" } }, [n._v(" " + n._s(n.node.type) + " ")]), a("el-tooltip", { attrs: { content: n.node.name, placement: "top", "open-delay": 300 } }, [a("span", { staticClass: "node-name" }, [n._v(n._s(n.node.name))])])], 1), a("div", { staticClass: "node-duration" }, [n._v(" " + n._s(n.duration) + " ")])]), a("TimelineBar", { attrs: { "bar-style": n.barStyle, "status-description": n.statusDescription, selected: n.selected, error: n.error, "has-events": n.hasEvents } })], 1);
9299
- }, Xd = [], Yd = /* @__PURE__ */ jn(
9302
+ }, Xd = [], Yd = /* @__PURE__ */ Un(
9300
9303
  Gd,
9301
9304
  Kd,
9302
9305
  Xd,
@@ -9436,7 +9439,7 @@ var Qd = function() {
9436
9439
  }) : n._l(n.flatListData, function(o) {
9437
9440
  return a("SpanListNode", { key: o.span_id, attrs: { node: o, selected: n.selectedSpanId === o.span_id, "trace-start-time": n.traceStartTime, "trace-end-time": n.traceEndTime }, on: { "node-click": n.handleNodeClick } });
9438
9441
  })], 2)], 1)]);
9439
- }, Zd = [], ep = /* @__PURE__ */ jn(
9442
+ }, Zd = [], ep = /* @__PURE__ */ Un(
9440
9443
  Jd,
9441
9444
  Qd,
9442
9445
  Zd,
@@ -9724,7 +9727,7 @@ var du = {
9724
9727
  zoomed: null,
9725
9728
  play: null,
9726
9729
  stop: null
9727
- }, ap = '<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>', Oa = typeof window < "u" && typeof window.document < "u", _n = Oa ? window : {}, Wr = Oa && _n.document.documentElement ? "ontouchstart" in _n.document.documentElement : !1, Xs = Oa ? "PointerEvent" in _n : !1, Ne = "viewer", ka = "move", kf = "switch", Ti = "zoom", ya = "".concat(Ne, "-active"), sp = "".concat(Ne, "-close"), Sa = "".concat(Ne, "-fade"), Ps = "".concat(Ne, "-fixed"), op = "".concat(Ne, "-fullscreen"), pu = "".concat(Ne, "-fullscreen-exit"), ir = "".concat(Ne, "-hide"), lp = "".concat(Ne, "-hide-md-down"), up = "".concat(Ne, "-hide-sm-down"), fp = "".concat(Ne, "-hide-xs-down"), Vt = "".concat(Ne, "-in"), Di = "".concat(Ne, "-invisible"), jr = "".concat(Ne, "-loading"), cp = "".concat(Ne, "-move"), gu = "".concat(Ne, "-open"), Pr = "".concat(Ne, "-show"), it = "".concat(Ne, "-transition"), Ur = "click", zs = "dblclick", mu = "dragstart", vu = "focusin", yu = "keydown", Jt = "load", ar = "error", hp = Wr ? "touchend touchcancel" : "mouseup", dp = Wr ? "touchmove" : "mousemove", pp = Wr ? "touchstart" : "mousedown", bu = Xs ? "pointerdown" : pp, xu = Xs ? "pointermove" : dp, wu = Xs ? "pointerup pointercancel" : hp, ku = "resize", ln = "transitionend", Su = "wheel", Cu = "ready", Tu = "show", _u = "shown", Lu = "hide", Eu = "hidden", Du = "view", Ii = "viewed", Au = "move", Iu = "moved", Ou = "rotate", Nu = "rotated", Mu = "scale", Ru = "scaled", Fu = "zoom", Pu = "zoomed", zu = "play", $u = "stop", Ea = "".concat(Ne, "Action"), Ys = /\s\s*/, ba = ["zoom-in", "zoom-out", "one-to-one", "reset", "prev", "play", "next", "rotate-left", "rotate-right", "flip-horizontal", "flip-vertical"];
9730
+ }, ap = '<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>', Oa = typeof window < "u" && typeof window.document < "u", _n = Oa ? window : {}, Wr = Oa && _n.document.documentElement ? "ontouchstart" in _n.document.documentElement : !1, Xs = Oa ? "PointerEvent" in _n : !1, Ne = "viewer", ka = "move", kf = "switch", Ti = "zoom", ya = "".concat(Ne, "-active"), sp = "".concat(Ne, "-close"), Sa = "".concat(Ne, "-fade"), Ps = "".concat(Ne, "-fixed"), op = "".concat(Ne, "-fullscreen"), pu = "".concat(Ne, "-fullscreen-exit"), ir = "".concat(Ne, "-hide"), lp = "".concat(Ne, "-hide-md-down"), up = "".concat(Ne, "-hide-sm-down"), fp = "".concat(Ne, "-hide-xs-down"), Vt = "".concat(Ne, "-in"), Di = "".concat(Ne, "-invisible"), jr = "".concat(Ne, "-loading"), cp = "".concat(Ne, "-move"), gu = "".concat(Ne, "-open"), Pr = "".concat(Ne, "-show"), it = "".concat(Ne, "-transition"), Ur = "click", zs = "dblclick", mu = "dragstart", vu = "focusin", yu = "keydown", Jt = "load", ar = "error", hp = Wr ? "touchend touchcancel" : "mouseup", dp = Wr ? "touchmove" : "mousemove", pp = Wr ? "touchstart" : "mousedown", bu = Xs ? "pointerdown" : pp, xu = Xs ? "pointermove" : dp, wu = Xs ? "pointerup pointercancel" : hp, ku = "resize", un = "transitionend", Su = "wheel", Cu = "ready", Tu = "show", _u = "shown", Lu = "hide", Eu = "hidden", Du = "view", Ii = "viewed", Au = "move", Iu = "moved", Ou = "rotate", Nu = "rotated", Mu = "scale", Ru = "scaled", Fu = "zoom", Pu = "zoomed", zu = "play", $u = "stop", Ea = "".concat(Ne, "Action"), Ys = /\s\s*/, ba = ["zoom-in", "zoom-out", "one-to-one", "reset", "prev", "play", "next", "rotate-left", "rotate-right", "flip-horizontal", "flip-vertical"];
9728
9731
  function Oi(l) {
9729
9732
  return typeof l == "string";
9730
9733
  }
@@ -9772,7 +9775,7 @@ var qt = Object.assign || function(n) {
9772
9775
  });
9773
9776
  }), n;
9774
9777
  }, vp = /^(?:width|height|left|top|marginLeft|marginTop)$/;
9775
- function un(l, n) {
9778
+ function fn(l, n) {
9776
9779
  var a = l.style;
9777
9780
  Ke(n, function(o, f) {
9778
9781
  vp.test(f) && nt(o) && (o += "px"), a[f] = o;
@@ -9989,7 +9992,7 @@ var Cp = {
9989
9992
  }, this.parentData = o), (this.fulled || !o) && (o = this.containerData), this.viewerData = qt({}, o);
9990
9993
  },
9991
9994
  renderViewer: function() {
9992
- this.options.inline && !this.fulled && un(this.viewer, this.viewerData);
9995
+ this.options.inline && !this.fulled && fn(this.viewer, this.viewerData);
9993
9996
  },
9994
9997
  initList: function() {
9995
9998
  var n = this, a = this.element, o = this.options, f = this.list, d = [];
@@ -10023,7 +10026,7 @@ var Cp = {
10023
10026
  var n = this.index, a = this.items[n];
10024
10027
  if (a) {
10025
10028
  var o = a.nextElementSibling, f = parseInt(window.getComputedStyle(o || a).marginLeft, 10), d = a.offsetWidth, p = d + f;
10026
- un(this.list, qt({
10029
+ fn(this.list, qt({
10027
10030
  width: p * this.length - f
10028
10031
  }, Ca({
10029
10032
  translateX: (this.viewerData.width - d) / 2 - p * n
@@ -10032,7 +10035,7 @@ var Cp = {
10032
10035
  },
10033
10036
  resetList: function() {
10034
10037
  var n = this.list;
10035
- n.innerHTML = "", Be(n, it), un(n, Ca({
10038
+ n.innerHTML = "", Be(n, it), fn(n, Ca({
10036
10039
  translateX: 0
10037
10040
  }));
10038
10041
  },
@@ -10063,7 +10066,7 @@ var Cp = {
10063
10066
  },
10064
10067
  renderImage: function(n) {
10065
10068
  var a = this, o = this.image, f = this.imageData;
10066
- if (un(o, qt({
10069
+ if (fn(o, qt({
10067
10070
  width: f.width,
10068
10071
  height: f.height,
10069
10072
  // XXX: Not to use translateX/Y to avoid image shaking when zooming
@@ -10076,9 +10079,9 @@ var Cp = {
10076
10079
  };
10077
10080
  this.imageRendering = {
10078
10081
  abort: function() {
10079
- Ge(o, ln, d);
10082
+ Ge(o, un, d);
10080
10083
  }
10081
- }, Ee(o, ln, d, {
10084
+ }, Ee(o, un, d, {
10082
10085
  once: !0
10083
10086
  });
10084
10087
  } else
@@ -10178,7 +10181,7 @@ var Cp = {
10178
10181
  var a = n.target, o = a.parentNode, f = o.offsetWidth || 30, d = o.offsetHeight || 50, p = !!Hr(a, "filled");
10179
10182
  Cf(a, this.options, function(y, m) {
10180
10183
  var x = y / m, S = f, A = d;
10181
- d * x > f ? p ? S = d * x : A = f / x : p ? A = f / x : S = d * x, un(a, qt({
10184
+ d * x > f ? p ? S = d * x : A = f / x : p ? A = f / x : S = d * x, fn(a, qt({
10182
10185
  width: S,
10183
10186
  height: A
10184
10187
  }, Ca({
@@ -10306,9 +10309,9 @@ var Cp = {
10306
10309
  var d = this.shown.bind(this);
10307
10310
  this.transitioning = {
10308
10311
  abort: function() {
10309
- Ge(f, ln, d), Be(f, Vt);
10312
+ Ge(f, un, d), Be(f, Vt);
10310
10313
  }
10311
- }, _e(f, it), f.initialOffsetWidth = f.offsetWidth, Ee(f, ln, d, {
10314
+ }, _e(f, it), f.initialOffsetWidth = f.offsetWidth, Ee(f, un, d, {
10312
10315
  once: !0
10313
10316
  }), _e(f, Vt);
10314
10317
  } else
@@ -10334,15 +10337,15 @@ var Cp = {
10334
10337
  };
10335
10338
  if (f.transition && !a) {
10336
10339
  var m = function(A) {
10337
- A && A.target === d && (Ge(d, ln, m), n.hidden());
10340
+ A && A.target === d && (Ge(d, un, m), n.hidden());
10338
10341
  }, x = function() {
10339
- zr(d, it) ? (Ee(d, ln, m), Be(d, Vt)) : y();
10342
+ zr(d, it) ? (Ee(d, un, m), Be(d, Vt)) : y();
10340
10343
  };
10341
10344
  this.transitioning = {
10342
10345
  abort: function() {
10343
- n.viewed && zr(p, it) ? Ge(p, ln, x) : zr(d, it) && Ge(d, ln, m);
10346
+ n.viewed && zr(p, it) ? Ge(p, un, x) : zr(d, it) && Ge(d, un, m);
10344
10347
  }
10345
- }, this.viewed && zr(p, it) ? (Ee(p, ln, x, {
10348
+ }, this.viewed && zr(p, it) ? (Ee(p, un, x, {
10346
10349
  once: !0
10347
10350
  }), this.zoomTo(0, !1, null, null, !0)) : x();
10348
10351
  } else
@@ -10676,7 +10679,7 @@ var Cp = {
10676
10679
  // Enter modal mode (only available in inline mode)
10677
10680
  full: function() {
10678
10681
  var n = this, a = this.options, o = this.viewer, f = this.image, d = this.list;
10679
- return !this.isShown || this.played || this.fulled || !a.inline ? this : (this.fulled = !0, this.open(), _e(this.button, pu), a.transition && (Be(d, it), this.viewed && Be(f, it)), _e(o, Ps), o.setAttribute("role", "dialog"), o.setAttribute("aria-labelledby", this.title.id), o.setAttribute("aria-modal", !0), o.removeAttribute("style"), un(o, {
10682
+ return !this.isShown || this.played || this.fulled || !a.inline ? this : (this.fulled = !0, this.open(), _e(this.button, pu), a.transition && (Be(d, it), this.viewed && Be(f, it)), _e(o, Ps), o.setAttribute("role", "dialog"), o.setAttribute("aria-labelledby", this.title.id), o.setAttribute("aria-modal", !0), o.removeAttribute("style"), fn(o, {
10680
10683
  zIndex: a.zIndex
10681
10684
  }), a.focus && this.enforceFocus(), this.initContainer(), this.viewerData = qt({}, this.containerData), this.renderList(), this.viewed && this.initImage(function() {
10682
10685
  n.renderImage(function() {
@@ -10689,7 +10692,7 @@ var Cp = {
10689
10692
  // Exit modal mode (only available in inline mode)
10690
10693
  exit: function() {
10691
10694
  var n = this, a = this.options, o = this.viewer, f = this.image, d = this.list;
10692
- return !this.isShown || this.played || !this.fulled || !a.inline ? this : (this.fulled = !1, this.close(), Be(this.button, pu), a.transition && (Be(d, it), this.viewed && Be(f, it)), a.focus && this.clearEnforceFocus(), o.removeAttribute("role"), o.removeAttribute("aria-labelledby"), o.removeAttribute("aria-modal"), Be(o, Ps), un(o, {
10695
+ return !this.isShown || this.played || !this.fulled || !a.inline ? this : (this.fulled = !1, this.close(), Be(this.button, pu), a.transition && (Be(d, it), this.viewed && Be(f, it)), a.focus && this.clearEnforceFocus(), o.removeAttribute("role"), o.removeAttribute("aria-labelledby"), o.removeAttribute("aria-modal"), Be(o, Ps), fn(o, {
10693
10696
  zIndex: a.zIndexInline
10694
10697
  }), this.viewerData = qt({}, this.parentData), this.renderViewer(), this.renderList(), this.viewed && this.initImage(function() {
10695
10698
  n.renderImage(function() {
@@ -10702,8 +10705,8 @@ var Cp = {
10702
10705
  // Show the current ratio of the image with percentage
10703
10706
  tooltip: function() {
10704
10707
  var n = this, a = this.options, o = this.tooltipBox, f = this.imageData;
10705
- return !this.viewed || this.played || !a.tooltip ? this : (o.textContent = "".concat(Math.round(f.ratio * 100), "%"), this.tooltipping ? clearTimeout(this.tooltipping) : a.transition ? (this.fading && ot(o, ln), _e(o, Pr), _e(o, Sa), _e(o, it), o.removeAttribute("aria-hidden"), o.initialOffsetWidth = o.offsetWidth, _e(o, Vt)) : (_e(o, Pr), o.removeAttribute("aria-hidden")), this.tooltipping = setTimeout(function() {
10706
- a.transition ? (Ee(o, ln, function() {
10708
+ return !this.viewed || this.played || !a.tooltip ? this : (o.textContent = "".concat(Math.round(f.ratio * 100), "%"), this.tooltipping ? clearTimeout(this.tooltipping) : a.transition ? (this.fading && ot(o, un), _e(o, Pr), _e(o, Sa), _e(o, it), o.removeAttribute("aria-hidden"), o.initialOffsetWidth = o.offsetWidth, _e(o, Vt)) : (_e(o, Pr), o.removeAttribute("aria-hidden")), this.tooltipping = setTimeout(function() {
10709
+ a.transition ? (Ee(o, un, function() {
10707
10710
  Be(o, Pr), Be(o, Sa), Be(o, it), o.setAttribute("aria-hidden", !0), n.fading = !1;
10708
10711
  }, {
10709
10712
  once: !0
@@ -10738,7 +10741,7 @@ var Cp = {
10738
10741
  if (Ke(this.items, function(x, S) {
10739
10742
  var A = x.querySelector("img"), E = d[S];
10740
10743
  E && A ? (E.src !== A.src || E.alt !== A.alt) && p.push(S) : p.push(S);
10741
- }), un(this.list, {
10744
+ }), fn(this.list, {
10742
10745
  width: "auto"
10743
10746
  }), this.initList(), this.isShown)
10744
10747
  if (this.length) {
@@ -10933,13 +10936,13 @@ var Cp = {
10933
10936
  });
10934
10937
  }
10935
10938
  if (o.inline)
10936
- _e(S, op), un(p, {
10939
+ _e(S, op), fn(p, {
10937
10940
  zIndex: o.zIndexInline
10938
- }), window.getComputedStyle(f).position === "static" && un(f, {
10941
+ }), window.getComputedStyle(f).position === "static" && fn(f, {
10939
10942
  position: "relative"
10940
10943
  }), f.insertBefore(p, a.nextSibling);
10941
10944
  else {
10942
- _e(S, sp), _e(p, Ps), _e(p, Sa), _e(p, ir), un(p, {
10945
+ _e(S, sp), _e(p, Ps), _e(p, Sa), _e(p, ir), fn(p, {
10943
10946
  zIndex: o.zIndex
10944
10947
  });
10945
10948
  var O = o.container;
@@ -12381,7 +12384,7 @@ const Rm = {
12381
12384
  this.$message.error("调试请求失败: " + n);
12382
12385
  },
12383
12386
  async submitDebugRequest(l) {
12384
- const n = this.buildRequestHeaders(l), a = await gn.debugTrace(l, n);
12387
+ const n = this.buildRequestHeaders(l), a = await ln.debugTrace(l, n);
12385
12388
  this.handleDebugResponse(a);
12386
12389
  },
12387
12390
  async submitDebugClient() {
@@ -12621,7 +12624,7 @@ var Fm = function() {
12621
12624
  return n.handleImageClick(f.url);
12622
12625
  } } })]) : n._e()]);
12623
12626
  }), 0)])]) : n._e()], 1) : n._e()]);
12624
- }, Pm = [], zm = /* @__PURE__ */ jn(
12627
+ }, Pm = [], zm = /* @__PURE__ */ Un(
12625
12628
  Rm,
12626
12629
  Fm,
12627
12630
  Pm,
@@ -12673,7 +12676,7 @@ const $m = zm.exports;
12673
12676
  return be = pe, null;
12674
12677
  if (pe == "/") {
12675
12678
  if (ye.eat("*"))
12676
- return xe.tokenize = Un, Un(ye, xe);
12679
+ return xe.tokenize = qn, qn(ye, xe);
12677
12680
  if (ye.eat("/"))
12678
12681
  return ye.skipToEnd(), "comment";
12679
12682
  }
@@ -12699,7 +12702,7 @@ const $m = zm.exports;
12699
12702
  return (Ft || !(Re || lt)) && (pe.tokenize = null), "string";
12700
12703
  };
12701
12704
  }
12702
- function Un(ye, xe) {
12705
+ function qn(ye, xe) {
12703
12706
  for (var pe = !1, Re; Re = ye.next(); ) {
12704
12707
  if (Re == "/" && pe) {
12705
12708
  xe.tokenize = null;
@@ -13240,6 +13243,10 @@ const Bm = {
13240
13243
  spanPageSize: {
13241
13244
  type: Number,
13242
13245
  default: 100
13246
+ },
13247
+ traceStatusList: {
13248
+ type: Array,
13249
+ default: () => []
13243
13250
  }
13244
13251
  },
13245
13252
  data() {
@@ -13486,6 +13493,11 @@ const Bm = {
13486
13493
  const n = l.toUpperCase();
13487
13494
  return n === "OK" || n === "SUCCESS" ? "success" : n === "ERROR" || n === "FAILED" ? "danger" : n === "WARNING" || n === "WARN" ? "warning" : "info";
13488
13495
  },
13496
+ getStatusLabel(l) {
13497
+ if (!l) return "-";
13498
+ const n = this.traceStatusList.find((a) => a.value === l);
13499
+ return n ? n.label : l;
13500
+ },
13489
13501
  formatNanoDuration(l) {
13490
13502
  if (!l) return "-";
13491
13503
  const n = l / 1e6;
@@ -13661,7 +13673,7 @@ var Hm = function() {
13661
13673
  var n = this, a = n._self._c;
13662
13674
  return a("el-drawer", { attrs: { visible: n.localVisible, "with-header": !0, title: n.drawerTitle, size: "90%", direction: "rtl", "before-close": n.handleClose }, on: { "update:visible": function(x) {
13663
13675
  n.localVisible = x;
13664
- } } }, [n.currentTraceId ? a("div", { directives: [{ name: "loading", rawName: "v-loading", value: n.loading, expression: "loading" }], staticClass: "trace-detail-content", attrs: { "element-loading-text": "加载中..." } }, [a("div", { staticClass: "trace-info-section" }, [a("el-descriptions", { attrs: { column: 3, border: "" } }, [a("el-descriptions-item", { attrs: { label: n.$t("trace.traceId") } }, [n._v(n._s(n.traceInfo.trace_id))]), a("el-descriptions-item", { attrs: { label: n.$t("trace.status") } }, [a("el-tag", { attrs: { type: n.getStatusType(n.traceInfo.status), size: "mini" } }, [n._v(" " + n._s(n.traceInfo.status) + " ")])], 1), a("el-descriptions-item", { attrs: { label: n.$t("trace.executionTime") } }, [n._v(" " + n._s(n.formatNanoDuration(n.traceInfo.execution_time_ms)) + " ")]), a("el-descriptions-item", { attrs: { label: n.$t("trace.timeCreated") } }, [n._v(" " + n._s(n.formatTimestamp(n.traceInfo.timestamp_ms)) + " ")]), a("el-descriptions-item", { attrs: { label: n.$t("trace.experimentId") } }, [n._v(n._s(n.traceInfo.experiment_id))]), a("el-descriptions-item", { attrs: { label: n.$t("trace.traceType") } }, [a("el-tag", { attrs: { size: "mini", type: "info" } }, [n._v(n._s(n.traceInfo.trace_type || "-"))])], 1), a("el-descriptions-item", { attrs: { label: n.$t("trace.traceName"), span: 2 } }, [n._v(" " + n._s(n.traceInfo.trace_name || "-") + " ")])], 1)], 1), a("el-divider"), a("el-row", { attrs: { gutter: 20 } }, [a("el-col", { staticClass: "span-tree-col", attrs: { span: 8 } }, [a("el-card", [a("div", { staticClass: "span-search-header", attrs: { slot: "header" }, slot: "header" }, [a("el-input", { staticClass: "span-search-input", attrs: { placeholder: n.$t("span.searchTree"), "prefix-icon": "el-icon-search", size: "small", clearable: "" }, on: { input: n.handleSpanSearch }, model: { value: n.spanSearchQuery, callback: function(x) {
13676
+ } } }, [n.currentTraceId ? a("div", { directives: [{ name: "loading", rawName: "v-loading", value: n.loading, expression: "loading" }], staticClass: "trace-detail-content", attrs: { "element-loading-text": "加载中..." } }, [a("div", { staticClass: "trace-info-section" }, [a("el-descriptions", { attrs: { column: 3, border: "" } }, [a("el-descriptions-item", { attrs: { label: n.$t("trace.traceId") } }, [n._v(n._s(n.traceInfo.trace_id))]), a("el-descriptions-item", { attrs: { label: n.$t("trace.status") } }, [a("el-tag", { attrs: { type: n.getStatusType(n.traceInfo.status), size: "mini" } }, [n._v(" " + n._s(n.getStatusLabel(n.traceInfo.status)) + " ")])], 1), a("el-descriptions-item", { attrs: { label: n.$t("trace.executionTime") } }, [n._v(" " + n._s(n.formatNanoDuration(n.traceInfo.execution_time_ms)) + " ")]), a("el-descriptions-item", { attrs: { label: n.$t("trace.timeCreated") } }, [n._v(" " + n._s(n.formatTimestamp(n.traceInfo.timestamp_ms)) + " ")]), a("el-descriptions-item", { attrs: { label: n.$t("trace.experimentId") } }, [n._v(n._s(n.traceInfo.experiment_id))]), a("el-descriptions-item", { attrs: { label: n.$t("trace.traceType") } }, [a("el-tag", { attrs: { size: "mini", type: "info" } }, [n._v(n._s(n.traceInfo.trace_type || "-"))])], 1), a("el-descriptions-item", { attrs: { label: n.$t("trace.traceName"), span: 2 } }, [n._v(" " + n._s(n.traceInfo.trace_name || "-") + " ")])], 1)], 1), a("el-divider"), a("el-row", { attrs: { gutter: 20 } }, [a("el-col", { staticClass: "span-tree-col", attrs: { span: 8 } }, [a("el-card", [a("div", { staticClass: "span-search-header", attrs: { slot: "header" }, slot: "header" }, [a("el-input", { staticClass: "span-search-input", attrs: { placeholder: n.$t("span.searchTree"), "prefix-icon": "el-icon-search", size: "small", clearable: "" }, on: { input: n.handleSpanSearch }, model: { value: n.spanSearchQuery, callback: function(x) {
13665
13677
  n.spanSearchQuery = x;
13666
13678
  }, expression: "spanSearchQuery" } }), a("el-checkbox", { attrs: { value: n.spanHasEvents === !0, size: "small" }, on: { change: n.handleHasEventsChange } }, [n._v(" " + n._s(n.$t("span.hasEvents")) + " ")])], 1), a("TraceSpanTree", { attrs: { spans: n.filteredSpans, "selected-span-id": n.selectedSpanId, "trace-start-time": n.traceStartTime, "trace-end-time": n.traceEndTime }, on: { "span-select": n.handleSpanSelect } }), n.spanHasNextPage ? a("div", { staticClass: "span-load-more" }, [a("el-button", { attrs: { type: "primary", size: "mini", loading: n.spanLoadMoreLoading }, on: { click: function(x) {
13667
13679
  return n.$emit("span-load-more");
@@ -13716,13 +13728,13 @@ var Hm = function() {
13716
13728
  return [a("el-tooltip", { attrs: { placement: "top", "open-delay": 500, "popper-class": "attribute-tooltip" } }, [a("div", { staticClass: "attribute-tooltip-content", attrs: { slot: "content" }, slot: "content" }, [n._v(n._s(A.row.value))]), a("div", { staticClass: "attribute-value" }, [n._v(n._s(A.row.value))])])];
13717
13729
  } }], null, !0) })], 1)], 1)])], 2);
13718
13730
  }), 1), n.spanEvents.length === 0 ? a("div", { staticClass: "empty-events" }, [a("el-empty", { attrs: { description: n.$t("trace.noEvents") } })], 1) : n._e()], 1) : n._e()]) : n._e()], 1)], 1) : a("el-empty", { attrs: { description: n.$t("trace.selectSpan") } })], 1)], 1)], 1)], 1) : n._e()]);
13719
- }, Wm = [], jm = /* @__PURE__ */ jn(
13731
+ }, Wm = [], jm = /* @__PURE__ */ Un(
13720
13732
  Bm,
13721
13733
  Hm,
13722
13734
  Wm,
13723
13735
  !1,
13724
13736
  null,
13725
- "9dc0e01b"
13737
+ "a3b616bf"
13726
13738
  );
13727
13739
  const Um = jm.exports, qm = {
13728
13740
  name: "Trace",
@@ -13735,6 +13747,8 @@ const Um = jm.exports, qm = {
13735
13747
  filteredTraceList: [],
13736
13748
  searchQuery: "",
13737
13749
  dateRange: null,
13750
+ selectedStatus: null,
13751
+ traceStatusList: [],
13738
13752
  experimentList: [],
13739
13753
  selectedExperimentId: null,
13740
13754
  loading: !1,
@@ -13818,7 +13832,7 @@ const Um = jm.exports, qm = {
13818
13832
  }
13819
13833
  },
13820
13834
  mounted() {
13821
- this.loadExperiments(), this.loadTraceList();
13835
+ this.loadTraceStatus(), this.loadExperiments(), this.loadTraceList();
13822
13836
  },
13823
13837
  beforeDestroy() {
13824
13838
  this.stopAutoRefresh();
@@ -13829,7 +13843,7 @@ const Um = jm.exports, qm = {
13829
13843
  try {
13830
13844
  let l = null, n = null;
13831
13845
  this.dateRange && Array.isArray(this.dateRange) && (this.dateRange.length === 2 ? (this.dateRange[0] !== null && this.dateRange[0] !== void 0 && this.dateRange[0] !== "" && (l = typeof this.dateRange[0] == "number" ? this.dateRange[0] : parseInt(this.dateRange[0], 10)), this.dateRange[1] !== null && this.dateRange[1] !== void 0 && this.dateRange[1] !== "" && (n = typeof this.dateRange[1] == "number" ? this.dateRange[1] : parseInt(this.dateRange[1], 10))) : this.dateRange.length === 1 && this.dateRange[0] !== null && (n = typeof this.dateRange[0] == "number" ? this.dateRange[0] : parseInt(this.dateRange[0], 10)));
13832
- const a = await gn.getTraceList(this.searchQuery, l, n, this.pageNum, this.pageSize, this.selectedExperimentId), o = Array.isArray(a == null ? void 0 : a.list) ? a.list : [];
13846
+ const a = await ln.getTraceList(this.searchQuery, l, n, this.pageNum, this.pageSize, this.selectedExperimentId, this.selectedStatus), o = Array.isArray(a == null ? void 0 : a.list) ? a.list : [];
13833
13847
  this.traceList = o, this.filteredTraceList = o, this.total = parseInt((a == null ? void 0 : a.total) || 0, 10);
13834
13848
  } catch (l) {
13835
13849
  console.error("Failed to load trace list:", l), this.$message.error("加载 trace 列表失败"), this.traceList = [], this.filteredTraceList = [], this.total = 0;
@@ -13864,8 +13878,8 @@ const Um = jm.exports, qm = {
13864
13878
  this.drawerLoading = !0, this.spanPageNum = 1;
13865
13879
  try {
13866
13880
  const [f, d] = await Promise.all([
13867
- gn.getTraceDetail(l),
13868
- gn.getTraceSpans(l, {
13881
+ ln.getTraceDetail(l),
13882
+ ln.getTraceSpans(l, {
13869
13883
  query: this.spanSearchQuery || "",
13870
13884
  has_events: this.spanHasEvents === !0 ? !0 : void 0,
13871
13885
  page_num: 1,
@@ -13893,7 +13907,7 @@ const Um = jm.exports, qm = {
13893
13907
  if (this.spanSearchQuery = l, !!this.currentTraceId) {
13894
13908
  this.spanPageNum = 1;
13895
13909
  try {
13896
- const n = await gn.getTraceSpans(this.currentTraceId, {
13910
+ const n = await ln.getTraceSpans(this.currentTraceId, {
13897
13911
  query: l || "",
13898
13912
  has_events: this.spanHasEvents === !0 ? !0 : void 0,
13899
13913
  page_num: 1,
@@ -13909,7 +13923,7 @@ const Um = jm.exports, qm = {
13909
13923
  if (!(!this.currentTraceId || !this.spanHasNextPage || this.spanLoadMoreLoading)) {
13910
13924
  this.spanLoadMoreLoading = !0;
13911
13925
  try {
13912
- const l = this.spanPageNum + 1, n = await gn.getTraceSpans(this.currentTraceId, {
13926
+ const l = this.spanPageNum + 1, n = await ln.getTraceSpans(this.currentTraceId, {
13913
13927
  query: this.spanSearchQuery || "",
13914
13928
  has_events: this.spanHasEvents === !0 ? !0 : void 0,
13915
13929
  page_num: l,
@@ -13938,7 +13952,7 @@ const Um = jm.exports, qm = {
13938
13952
  async loadSpanContent(l) {
13939
13953
  if (!(!this.currentTraceId || !l.span_id || l.parsedContent))
13940
13954
  try {
13941
- const n = await gn.getSpanContent(this.currentTraceId, l.span_id);
13955
+ const n = await ln.getSpanContent(this.currentTraceId, l.span_id);
13942
13956
  if (n) {
13943
13957
  const a = this.parseContentData(n);
13944
13958
  this.$set(l, "parsedContent", a);
@@ -13985,7 +13999,7 @@ const Um = jm.exports, qm = {
13985
13999
  },
13986
14000
  async loadExperiments() {
13987
14001
  try {
13988
- const l = await gn.getExperiments();
14002
+ const l = await ln.getExperiments();
13989
14003
  this.experimentList = Array.isArray(l) ? l : [];
13990
14004
  } catch (l) {
13991
14005
  console.error("Failed to load experiments:", l), this.experimentList = [];
@@ -14010,57 +14024,75 @@ const Um = jm.exports, qm = {
14010
14024
  this.pageNum = l, this.loadTraceList();
14011
14025
  },
14012
14026
  async handleBatchDelete() {
14013
- var d, p;
14014
- const l = this.searchQuery && this.searchQuery.trim(), n = this.dateRange && Array.isArray(this.dateRange) && (this.dateRange.length === 2 && this.dateRange[1] !== null || this.dateRange.length === 1 && this.dateRange[0] !== null), a = this.selectedExperimentId;
14015
- let o = "", f = "warning";
14016
- if (!l && !n && !a)
14017
- o = this.$t("trace.deleteAllWarning"), f = "error";
14027
+ var p, y;
14028
+ const l = this.searchQuery && this.searchQuery.trim(), n = this.dateRange && Array.isArray(this.dateRange) && (this.dateRange.length === 2 && this.dateRange[1] !== null || this.dateRange.length === 1 && this.dateRange[0] !== null), a = this.selectedExperimentId, o = this.selectedStatus;
14029
+ let f = "", d = "warning";
14030
+ if (!l && !n && !a && !o)
14031
+ f = this.$t("trace.deleteAllWarning"), d = "error";
14018
14032
  else {
14019
- if (o = this.$t("trace.deleteConfirmMessage") + `
14033
+ if (f = this.$t("trace.deleteConfirmMessage") + `
14020
14034
  `, a) {
14021
- const y = this.experimentList.find((x) => x.experiment_id === this.selectedExperimentId), m = y ? y.name : this.selectedExperimentId;
14022
- o += `${this.$t("trace.application")}: ${m}
14035
+ const m = this.experimentList.find((S) => S.experiment_id === this.selectedExperimentId), x = m ? m.name : this.selectedExperimentId;
14036
+ f += `${this.$t("trace.application")}: ${x}
14023
14037
  `;
14024
14038
  }
14025
- if (l && (o += `${this.$t("trace.searchCondition")}: ${this.searchQuery}
14039
+ if (l && (f += `${this.$t("trace.searchCondition")}: ${this.searchQuery}
14040
+ `), o && (f += `${this.$t("trace.status")}: ${this.getStatusLabel(this.selectedStatus)}
14026
14041
  `), n) {
14027
- const y = this.$i18n.locale === "zh-CN" ? "zh-CN" : "en-US";
14028
- let m = "";
14029
- if (this.dateRange.length === 2 && this.dateRange[1] !== null ? m = new Date(this.dateRange[1]).toLocaleString(y) : this.dateRange.length === 1 && this.dateRange[0] !== null && (m = new Date(this.dateRange[0]).toLocaleString(y)), this.dateRange.length === 2 && this.dateRange[0] !== null && this.dateRange[0] !== void 0 && this.dateRange[0] !== "") {
14030
- const x = new Date(this.dateRange[0]).toLocaleString(y);
14031
- o += `${this.$t("trace.timeRange")}: ${x} ${this.$t("trace.to")} ${m}
14042
+ const m = this.$i18n.locale === "zh-CN" ? "zh-CN" : "en-US";
14043
+ let x = "";
14044
+ if (this.dateRange.length === 2 && this.dateRange[1] !== null ? x = new Date(this.dateRange[1]).toLocaleString(m) : this.dateRange.length === 1 && this.dateRange[0] !== null && (x = new Date(this.dateRange[0]).toLocaleString(m)), this.dateRange.length === 2 && this.dateRange[0] !== null && this.dateRange[0] !== void 0 && this.dateRange[0] !== "") {
14045
+ const S = new Date(this.dateRange[0]).toLocaleString(m);
14046
+ f += `${this.$t("trace.timeRange")}: ${S} ${this.$t("trace.to")} ${x}
14032
14047
  `;
14033
14048
  } else
14034
- this.$i18n.locale === "zh-CN" ? o += `${this.$t("trace.timeRange")}: ${this.$t("trace.before")} ${m} 之前
14035
- ` : o += `${this.$t("trace.timeRange")}: ${this.$t("trace.before")} ${m}
14049
+ this.$i18n.locale === "zh-CN" ? f += `${this.$t("trace.timeRange")}: ${this.$t("trace.before")} ${x} 之前
14050
+ ` : f += `${this.$t("trace.timeRange")}: ${this.$t("trace.before")} ${x}
14036
14051
  `;
14037
14052
  }
14038
- o += this.$t("trace.deleteConfirmFooter");
14053
+ f += this.$t("trace.deleteConfirmFooter");
14039
14054
  }
14040
14055
  try {
14041
- await this.$confirm(o, this.$t("trace.confirmDelete"), {
14056
+ await this.$confirm(f, this.$t("trace.confirmDelete"), {
14042
14057
  confirmButtonText: this.$t("trace.confirmDeleteButton"),
14043
14058
  cancelButtonText: this.$t("common.cancel"),
14044
- type: f,
14059
+ type: d,
14045
14060
  dangerouslyUseHTMLString: !1
14046
14061
  }), this.deleteLoading = !0;
14047
- let y = null, m = null;
14048
- this.dateRange && Array.isArray(this.dateRange) && (this.dateRange.length === 2 ? (this.dateRange[0] !== null && this.dateRange[0] !== void 0 && this.dateRange[0] !== "" && (y = typeof this.dateRange[0] == "number" ? this.dateRange[0] : parseInt(this.dateRange[0], 10)), this.dateRange[1] !== null && this.dateRange[1] !== void 0 && this.dateRange[1] !== "" && (m = typeof this.dateRange[1] == "number" ? this.dateRange[1] : parseInt(this.dateRange[1], 10))) : this.dateRange.length === 1 && this.dateRange[0] !== null && (m = typeof this.dateRange[0] == "number" ? this.dateRange[0] : parseInt(this.dateRange[0], 10))), await gn.deleteTraces(
14062
+ let m = null, x = null;
14063
+ this.dateRange && Array.isArray(this.dateRange) && (this.dateRange.length === 2 ? (this.dateRange[0] !== null && this.dateRange[0] !== void 0 && this.dateRange[0] !== "" && (m = typeof this.dateRange[0] == "number" ? this.dateRange[0] : parseInt(this.dateRange[0], 10)), this.dateRange[1] !== null && this.dateRange[1] !== void 0 && this.dateRange[1] !== "" && (x = typeof this.dateRange[1] == "number" ? this.dateRange[1] : parseInt(this.dateRange[1], 10))) : this.dateRange.length === 1 && this.dateRange[0] !== null && (x = typeof this.dateRange[0] == "number" ? this.dateRange[0] : parseInt(this.dateRange[0], 10))), await ln.deleteTraces(
14049
14064
  l ? this.searchQuery : null,
14050
- y,
14051
14065
  m,
14052
- this.selectedExperimentId
14066
+ x,
14067
+ this.selectedExperimentId,
14068
+ this.selectedStatus
14053
14069
  ), this.$message.success(this.$t("trace.deleteSuccess")), await this.loadTraceList();
14054
- } catch (y) {
14055
- if (y !== "cancel") {
14056
- console.error("Failed to delete traces:", y);
14057
- const m = ((p = (d = y.response) == null ? void 0 : d.data) == null ? void 0 : p.message) || y.message || this.$t("trace.unknownError");
14058
- this.$message.error(`${this.$t("trace.deleteFailed")}: ${m}`);
14070
+ } catch (m) {
14071
+ if (m !== "cancel") {
14072
+ console.error("Failed to delete traces:", m);
14073
+ const x = ((y = (p = m.response) == null ? void 0 : p.data) == null ? void 0 : y.message) || m.message || this.$t("trace.unknownError");
14074
+ this.$message.error(`${this.$t("trace.deleteFailed")}: ${x}`);
14059
14075
  }
14060
14076
  } finally {
14061
14077
  this.deleteLoading = !1;
14062
14078
  }
14063
14079
  },
14080
+ async loadTraceStatus() {
14081
+ try {
14082
+ const l = await ln.getTraceStatus();
14083
+ this.traceStatusList = Array.isArray(l) ? l : [];
14084
+ } catch (l) {
14085
+ console.error("Failed to load trace status:", l), this.traceStatusList = [];
14086
+ }
14087
+ },
14088
+ handleStatusChange() {
14089
+ this.pageNum = 1, this.loadTraceList();
14090
+ },
14091
+ getStatusLabel(l) {
14092
+ if (!l) return "-";
14093
+ const n = this.traceStatusList.find((a) => a.value === l);
14094
+ return n ? n.label : l;
14095
+ },
14064
14096
  getStatusType(l) {
14065
14097
  return {
14066
14098
  OK: "success",
@@ -14155,7 +14187,11 @@ var Gm = function() {
14155
14187
  return a("el-option", { key: o.experiment_id, attrs: { label: o.name, value: o.experiment_id } });
14156
14188
  }), 1), a("el-input", { staticClass: "toolbar-input", attrs: { placeholder: n.$t("trace.searchPlaceholder"), "prefix-icon": "el-icon-search", clearable: "", size: "mini" }, on: { clear: n.handleSearchClear, input: n.handleSearch }, model: { value: n.searchQuery, callback: function(o) {
14157
14189
  n.searchQuery = o;
14158
- }, expression: "searchQuery" } }), a("el-date-picker", { staticClass: "toolbar-date-picker", attrs: { type: "datetimerange", "range-separator": n.$t("trace.to"), "start-placeholder": n.$t("trace.startTime"), "end-placeholder": n.$t("trace.endTime"), "value-format": "timestamp", format: "yyyy-MM-dd HH:mm:ss", size: "mini", "picker-options": n.pickerOptions, clearable: "" }, on: { change: n.handleDateRangeChange }, model: { value: n.dateRange, callback: function(o) {
14190
+ }, expression: "searchQuery" } }), a("el-select", { staticClass: "toolbar-select", attrs: { placeholder: n.$t("trace.status"), clearable: "", size: "mini" }, on: { change: n.handleStatusChange }, model: { value: n.selectedStatus, callback: function(o) {
14191
+ n.selectedStatus = o;
14192
+ }, expression: "selectedStatus" } }, n._l(n.traceStatusList, function(o) {
14193
+ return a("el-option", { key: o.value, attrs: { label: o.label, value: o.value } });
14194
+ }), 1), a("el-date-picker", { staticClass: "toolbar-date-picker", attrs: { type: "datetimerange", "range-separator": n.$t("trace.to"), "start-placeholder": n.$t("trace.startTime"), "end-placeholder": n.$t("trace.endTime"), "value-format": "timestamp", format: "yyyy-MM-dd HH:mm:ss", size: "mini", "picker-options": n.pickerOptions, clearable: "" }, on: { change: n.handleDateRangeChange }, model: { value: n.dateRange, callback: function(o) {
14159
14195
  n.dateRange = o;
14160
14196
  }, expression: "dateRange" } }), a("el-button", { attrs: { type: "danger", icon: "el-icon-delete", size: "mini", disabled: n.deleteLoading }, on: { click: n.handleBatchDelete } }, [n._v(" " + n._s(n.$t("trace.batchDelete")) + " ")]), a("el-checkbox", { staticClass: "toolbar-auto-refresh", attrs: { size: "mini" }, model: { value: n.autoRefreshEnabled, callback: function(o) {
14161
14197
  n.autoRefreshEnabled = o;
@@ -14174,8 +14210,8 @@ var Gm = function() {
14174
14210
  } }], null, !1, 1175446173) }) : n._e(), n.visibleColumns.execution_time_ms ? a("el-table-column", { attrs: { prop: "execution_time_ms", label: n.$t("trace.executionTime"), width: "120" }, scopedSlots: n._u([{ key: "default", fn: function(o) {
14175
14211
  return [n._v(" " + n._s(n.formatNanoDuration(o.row.execution_time_ms)) + " ")];
14176
14212
  } }], null, !1, 1733254102) }) : n._e(), n.visibleColumns.status ? a("el-table-column", { attrs: { prop: "status", label: n.$t("trace.status"), width: "100" }, scopedSlots: n._u([{ key: "default", fn: function(o) {
14177
- return [a("el-tag", { attrs: { type: n.getStatusType(o.row.status), size: "mini" } }, [o.row.status === "OK" ? a("i", { staticClass: "el-icon-success" }) : n._e(), n._v(" " + n._s(o.row.status) + " ")])];
14178
- } }], null, !1, 3672547022) }) : n._e(), n.visibleColumns.timestamp_ms ? a("el-table-column", { attrs: { prop: "timestamp_ms", label: n.$t("trace.timeCreated"), width: "180" }, scopedSlots: n._u([{ key: "default", fn: function(o) {
14213
+ return [a("el-tag", { attrs: { type: n.getStatusType(o.row.status), size: "mini" } }, [o.row.status === "OK" ? a("i", { staticClass: "el-icon-success" }) : n._e(), n._v(" " + n._s(n.getStatusLabel(o.row.status)) + " ")])];
14214
+ } }], null, !1, 4220190539) }) : n._e(), n.visibleColumns.timestamp_ms ? a("el-table-column", { attrs: { prop: "timestamp_ms", label: n.$t("trace.timeCreated"), width: "180" }, scopedSlots: n._u([{ key: "default", fn: function(o) {
14179
14215
  return [n._v(" " + n._s(n.formatDateTime(o.row.timestamp_ms)) + " ")];
14180
14216
  } }], null, !1, 1082702673) }) : n._e(), a("el-table-column", { attrs: { label: n.$t("common.operation"), width: "100", fixed: "right" }, scopedSlots: n._u([{ key: "default", fn: function(o) {
14181
14217
  return [a("el-button", { attrs: { type: "text", size: "mini" }, on: { click: function(f) {
@@ -14187,7 +14223,7 @@ var Gm = function() {
14187
14223
  n.selectedColumns = o;
14188
14224
  }, expression: "selectedColumns" } }, [a("el-checkbox", { attrs: { label: "trace_id" } }, [n._v(n._s(n.$t("trace.requestId")))]), a("el-checkbox", { attrs: { label: "timestamp_ms" } }, [n._v(n._s(n.$t("trace.timeCreated")))]), a("el-checkbox", { attrs: { label: "status" } }, [n._v(n._s(n.$t("trace.status")))]), a("el-checkbox", { attrs: { label: "execution_time_ms" } }, [n._v(n._s(n.$t("trace.executionTime")))]), a("el-checkbox", { attrs: { label: "trace_type" } }, [n._v(n._s(n.$t("trace.traceType")))]), a("el-checkbox", { attrs: { label: "trace_name" } }, [n._v(n._s(n.$t("trace.traceName")))])], 1), a("div", { staticClass: "dialog-footer", attrs: { slot: "footer" }, slot: "footer" }, [a("el-button", { attrs: { size: "mini" }, on: { click: function(o) {
14189
14225
  n.showColumnDialog = !1;
14190
- } } }, [n._v(n._s(n.$t("common.cancel")))]), a("el-button", { attrs: { size: "mini", type: "primary" }, on: { click: n.applyColumns } }, [n._v(n._s(n.$t("common.confirm")))])], 1)], 1), a("TraceDetailDrawer", { attrs: { visible: n.drawerVisible, "current-trace-id": n.currentTraceId, "trace-info": n.traceInfo, 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 }, on: { "update:visible": [function(o) {
14226
+ } } }, [n._v(n._s(n.$t("common.cancel")))]), a("el-button", { attrs: { size: "mini", type: "primary" }, on: { click: n.applyColumns } }, [n._v(n._s(n.$t("common.confirm")))])], 1)], 1), a("TraceDetailDrawer", { attrs: { visible: n.drawerVisible, "current-trace-id": n.currentTraceId, "trace-info": n.traceInfo, "trace-status-list": n.traceStatusList, 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 }, on: { "update:visible": [function(o) {
14191
14227
  n.drawerVisible = o;
14192
14228
  }, function(o) {
14193
14229
  n.drawerVisible = o;
@@ -14200,13 +14236,13 @@ var Gm = function() {
14200
14236
  }, "update:span-has-events": function(o) {
14201
14237
  n.spanHasEvents = o;
14202
14238
  }, close: n.handleDrawerClose, "span-search": n.handleSpanSearch, "span-select": n.handleSpanSelect, "span-load-more": n.loadMoreSpans } })], 1);
14203
- }, Km = [], Xm = /* @__PURE__ */ jn(
14239
+ }, Km = [], Xm = /* @__PURE__ */ Un(
14204
14240
  qm,
14205
14241
  Gm,
14206
14242
  Km,
14207
14243
  !1,
14208
14244
  null,
14209
- "7e495dc1"
14245
+ "2536a877"
14210
14246
  );
14211
14247
  const Bf = Xm.exports, Ym = {
14212
14248
  routes: [
@@ -14427,7 +14463,7 @@ const Qu = (l) => {
14427
14463
  Trace: Bf,
14428
14464
  TraceSpanTree: xf
14429
14465
  },
14430
- api: gn,
14466
+ api: ln,
14431
14467
  locales: _i,
14432
14468
  setI18n(l) {
14433
14469
  Qu(l);
@@ -14439,7 +14475,7 @@ export {
14439
14475
  xf as TraceSpanTree,
14440
14476
  nv as default,
14441
14477
  Jm as enUS,
14442
- gn as traceApi,
14478
+ ln as traceApi,
14443
14479
  Ym as traceRouter,
14444
14480
  Xh as traceStore,
14445
14481
  Vm as zhCN