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