paas-component-library 0.9.92 → 0.9.93
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/paas-ui.js +204 -203
- package/dist/paas-ui.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/paas-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as n1, ref as Yt, onMounted as
|
|
2
|
-
import { Menu as Sl, Modal as
|
|
1
|
+
import { defineComponent as n1, ref as Yt, onMounted as Va, watch as Kr, markRaw as kl, unref as Nr, shallowRef as lH, getCurrentInstance as Gl, computed as Hi, createElementBlock as Cr, onBeforeUnmount as xx, openBlock as nt, normalizeStyle as Mi, normalizeClass as Cx, createBlock as mt, resolveDynamicComponent as Ax, mergeProps as Hx, nextTick as Ti, resolveComponent as Ee, onUnmounted as cH, withCtx as Fe, Fragment as r1, renderList as La, createVNode as O, createTextVNode as zr, toDisplayString as gn, renderSlot as $x, createCommentVNode as jn, createElementVNode as It, inject as oH, h as Nl, reactive as uH, withDirectives as mp, vShow as bp, withModifiers as Op, normalizeProps as fH } from "vue";
|
|
2
|
+
import { Menu as Sl, Modal as Aa, message as Ur } from "ant-design-vue";
|
|
3
3
|
var Rt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
4
4
|
function T1(r) {
|
|
5
5
|
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
@@ -1298,7 +1298,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
1298
1298
|
function Dd(i, l, o) {
|
|
1299
1299
|
this.line = l, this.rest = hr(l), this.size = this.rest ? tt(F(this.rest)) - o + 1 : 1, this.node = this.text = null, this.hidden = At(i, l);
|
|
1300
1300
|
}
|
|
1301
|
-
function
|
|
1301
|
+
function Ia(i, l, o) {
|
|
1302
1302
|
for (var c = [], u, b = l; b < o; b = u) {
|
|
1303
1303
|
var T = new Dd(i.doc, We(i.doc, b), b);
|
|
1304
1304
|
u = b + T.size, c.push(T);
|
|
@@ -1465,7 +1465,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
1465
1465
|
if (!o || o.nodeType == 1 && o.getAttribute("cm-ignore-events") == "true" || o.parentNode == i.sizer && o != i.mover)
|
|
1466
1466
|
return !0;
|
|
1467
1467
|
}
|
|
1468
|
-
function
|
|
1468
|
+
function Ra(i) {
|
|
1469
1469
|
return i.lineSpace.offsetTop;
|
|
1470
1470
|
}
|
|
1471
1471
|
function Di(i) {
|
|
@@ -1646,7 +1646,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
1646
1646
|
o[u].above && (c += ia(o[u]));
|
|
1647
1647
|
return c;
|
|
1648
1648
|
}
|
|
1649
|
-
function
|
|
1649
|
+
function qa(i, l, o, c, u) {
|
|
1650
1650
|
if (!u) {
|
|
1651
1651
|
var b = Ii(l);
|
|
1652
1652
|
o.top += b, o.bottom += b;
|
|
@@ -1655,7 +1655,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
1655
1655
|
return o;
|
|
1656
1656
|
c || (c = "local");
|
|
1657
1657
|
var T = pr(l);
|
|
1658
|
-
if (c == "local" ? T +=
|
|
1658
|
+
if (c == "local" ? T += Ra(i.display) : T -= i.display.viewOffset, c == "page" || c == "window") {
|
|
1659
1659
|
var H = i.display.lineSpace.getBoundingClientRect();
|
|
1660
1660
|
T += H.top + (c == "window" ? 0 : Jd(ne(i)));
|
|
1661
1661
|
var L = H.left + (c == "window" ? 0 : Xd(ne(i)));
|
|
@@ -1676,14 +1676,14 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
1676
1676
|
var T = i.display.lineSpace.getBoundingClientRect();
|
|
1677
1677
|
return { left: c - T.left, top: u - T.top };
|
|
1678
1678
|
}
|
|
1679
|
-
function
|
|
1680
|
-
return c || (c = We(i.doc, l.line)),
|
|
1679
|
+
function Ua(i, l, o, c, u) {
|
|
1680
|
+
return c || (c = We(i.doc, l.line)), qa(i, c, kd(i, c, l.ch, u), o);
|
|
1681
1681
|
}
|
|
1682
1682
|
function un(i, l, o, c, u, b) {
|
|
1683
1683
|
c = c || We(i.doc, l.line), u || (u = E1(i, c));
|
|
1684
1684
|
function T(we, xe) {
|
|
1685
1685
|
var Le = Pn(i, u, we, xe ? "right" : "left", b);
|
|
1686
|
-
return xe ? Le.left = Le.right : Le.right = Le.left,
|
|
1686
|
+
return xe ? Le.left = Le.right : Le.right = Le.left, qa(i, c, Le, o);
|
|
1687
1687
|
}
|
|
1688
1688
|
var H = ut(c, i.doc.direction), L = l.ch, B = l.sticky;
|
|
1689
1689
|
if (L >= c.text.length ? (L = c.text.length, B = "before") : L <= 0 && (L = 0, B = "after"), !H)
|
|
@@ -1698,7 +1698,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
1698
1698
|
function e9(i, l) {
|
|
1699
1699
|
var o = 0;
|
|
1700
1700
|
l = et(i.doc, l), i.options.lineWrapping || (o = V1(i.display) * l.ch);
|
|
1701
|
-
var c = We(i.doc, l.line), u = pr(c) +
|
|
1701
|
+
var c = We(i.doc, l.line), u = pr(c) + Ra(i.display);
|
|
1702
1702
|
return { left: o, right: o, top: u, bottom: u + c.height };
|
|
1703
1703
|
}
|
|
1704
1704
|
function Ri(i, l, o, c, u) {
|
|
@@ -1734,7 +1734,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
1734
1734
|
}
|
|
1735
1735
|
function r9(i, l, o, c) {
|
|
1736
1736
|
o || (o = E1(i, l));
|
|
1737
|
-
var u =
|
|
1737
|
+
var u = qa(i, l, Pn(i, o, c), "line").top;
|
|
1738
1738
|
return t9(i, l, o, u);
|
|
1739
1739
|
}
|
|
1740
1740
|
function Ui(i, l, o, c) {
|
|
@@ -1887,14 +1887,14 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
1887
1887
|
else if (l <= u.viewFrom && o >= u.viewTo)
|
|
1888
1888
|
Wn(i);
|
|
1889
1889
|
else if (l <= u.viewFrom) {
|
|
1890
|
-
var b =
|
|
1890
|
+
var b = Wa(i, o, o + c, 1);
|
|
1891
1891
|
b ? (u.view = u.view.slice(b.index), u.viewFrom = b.lineN, u.viewTo += c) : Wn(i);
|
|
1892
1892
|
} else if (o >= u.viewTo) {
|
|
1893
|
-
var T =
|
|
1893
|
+
var T = Wa(i, l, l, -1);
|
|
1894
1894
|
T ? (u.view = u.view.slice(0, T.index), u.viewTo = T.lineN) : Wn(i);
|
|
1895
1895
|
} else {
|
|
1896
|
-
var H =
|
|
1897
|
-
H && L ? (u.view = u.view.slice(0, H.index).concat(
|
|
1896
|
+
var H = Wa(i, l, l, -1), L = Wa(i, o, o + c, 1);
|
|
1897
|
+
H && L ? (u.view = u.view.slice(0, H.index).concat(Ia(i, H.lineN, L.lineN)).concat(u.view.slice(L.index)), u.viewTo += c) : Wn(i);
|
|
1898
1898
|
}
|
|
1899
1899
|
var B = u.externalMeasured;
|
|
1900
1900
|
B && (o < B.lineN ? B.lineN += c : l < B.lineN + B.size && (u.externalMeasured = null));
|
|
@@ -1913,7 +1913,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
1913
1913
|
function Wn(i) {
|
|
1914
1914
|
i.display.viewFrom = i.display.viewTo = i.doc.first, i.display.view = [], i.display.viewOffset = 0;
|
|
1915
1915
|
}
|
|
1916
|
-
function
|
|
1916
|
+
function Wa(i, l, o, c) {
|
|
1917
1917
|
var u = b1(i, l), b, T = i.display.view;
|
|
1918
1918
|
if (!gt || o == i.doc.first + i.doc.size)
|
|
1919
1919
|
return { index: u, lineN: o };
|
|
@@ -1937,7 +1937,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
1937
1937
|
}
|
|
1938
1938
|
function kC(i, l, o) {
|
|
1939
1939
|
var c = i.display, u = c.view;
|
|
1940
|
-
u.length == 0 || l >= c.viewTo || o <= c.viewFrom ? (c.view =
|
|
1940
|
+
u.length == 0 || l >= c.viewTo || o <= c.viewFrom ? (c.view = Ia(i, l, o), c.viewFrom = l) : (c.viewFrom > l ? c.view = Ia(i, l, c.viewFrom).concat(c.view) : c.viewFrom < l && (c.view = c.view.slice(b1(i, l))), c.viewFrom = l, c.viewTo < o ? c.view = c.view.concat(Ia(i, c.viewTo, o)) : c.viewTo > o && (c.view = c.view.slice(0, b1(i, o)))), c.viewTo = o;
|
|
1941
1941
|
}
|
|
1942
1942
|
function a9(i) {
|
|
1943
1943
|
for (var l = i.display.view, o = 0, c = 0; c < l.length; c++) {
|
|
@@ -1970,7 +1970,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
1970
1970
|
function Zi(i, l, o) {
|
|
1971
1971
|
var c = un(i, l, "div", null, null, !i.options.singleCursorHeightPerLine), u = o.appendChild(W("div", " ", "CodeMirror-cursor"));
|
|
1972
1972
|
if (u.style.left = c.left + "px", u.style.top = c.top + "px", u.style.height = Math.max(0, c.bottom - c.top) * i.options.cursorHeight + "px", /\bcm-fat-cursor\b/.test(i.getWrapperElement().className)) {
|
|
1973
|
-
var b =
|
|
1973
|
+
var b = Ua(i, l, "div", null, null), T = b.right - b.left;
|
|
1974
1974
|
u.style.width = (T > 0 ? T : i.defaultCharWidth()) + "px";
|
|
1975
1975
|
}
|
|
1976
1976
|
if (c.other) {
|
|
@@ -1978,7 +1978,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
1978
1978
|
H.style.display = "", H.style.left = c.other.left + "px", H.style.top = c.other.top + "px", H.style.height = (c.other.bottom - c.other.top) * 0.85 + "px";
|
|
1979
1979
|
}
|
|
1980
1980
|
}
|
|
1981
|
-
function
|
|
1981
|
+
function ka(i, l) {
|
|
1982
1982
|
return i.top - l.top || i.left - l.left;
|
|
1983
1983
|
}
|
|
1984
1984
|
function GC(i, l, o) {
|
|
@@ -1991,7 +1991,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
1991
1991
|
function ae(De, qe, Je) {
|
|
1992
1992
|
var Qe = We(u, De), ct = Qe.text.length, xt, ar;
|
|
1993
1993
|
function Et(Gt, Fr) {
|
|
1994
|
-
return
|
|
1994
|
+
return Ua(i, Ae(De, Gt), "div", Qe, Fr);
|
|
1995
1995
|
}
|
|
1996
1996
|
function Rr(Gt, Fr, vr) {
|
|
1997
1997
|
var Jt = r9(i, Qe, null, Gt), Zt = Fr == "ltr" == (vr == "after") ? "left" : "right", Vt = vr == "after" ? Jt.begin : Jt.end - (/\s/.test(Qe.text.charAt(Jt.end - 1)) ? 2 : 1);
|
|
@@ -2007,7 +2007,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
2007
2007
|
var z1, xr, X1, Pl;
|
|
2008
2008
|
Zt ? (z1 = B && Q1 && Pr ? H : Vt.left, xr = B ? L : Rr(Gt, vr, "before"), X1 = B ? H : Rr(Fr, vr, "after"), Pl = B && Xn && Sn ? L : Vr.right) : (z1 = B ? Rr(Gt, vr, "before") : H, xr = !B && Q1 && Pr ? L : Vt.right, X1 = !B && Xn && Sn ? H : Vr.left, Pl = B ? Rr(Fr, vr, "after") : L), re(z1, Vt.top, xr - z1, Vt.bottom), Vt.bottom < Vr.top && re(H, Vt.bottom, null, Vr.top), re(X1, Vr.top, Pl - X1, Vr.bottom);
|
|
2009
2009
|
}
|
|
2010
|
-
(!xt ||
|
|
2010
|
+
(!xt || ka(Vt, xt) < 0) && (xt = Vt), ka(Vr, xt) < 0 && (xt = Vr), (!ar || ka(Vt, ar) < 0) && (ar = Vt), ka(Vr, ar) < 0 && (ar = Vr);
|
|
2011
2011
|
}), { start: xt, end: ar };
|
|
2012
2012
|
}
|
|
2013
2013
|
var me = l.from(), pe = l.to();
|
|
@@ -2047,7 +2047,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
2047
2047
|
i.state.focused || (i.display.shift = !1);
|
|
2048
2048
|
}, 150));
|
|
2049
2049
|
}
|
|
2050
|
-
function
|
|
2050
|
+
function Ga(i) {
|
|
2051
2051
|
for (var l = i.display, o = l.lineDiv.offsetTop, c = Math.max(0, l.scroller.getBoundingClientRect().top), u = l.lineDiv.getBoundingClientRect().top, b = 0, T = 0; T < l.view.length; T++) {
|
|
2052
2052
|
var H = l.view[T], L = i.options.lineWrapping, B = void 0, re = 0;
|
|
2053
2053
|
if (!H.hidden) {
|
|
@@ -2077,9 +2077,9 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
2077
2077
|
c && (o.height = c.offsetHeight);
|
|
2078
2078
|
}
|
|
2079
2079
|
}
|
|
2080
|
-
function
|
|
2080
|
+
function Za(i, l, o) {
|
|
2081
2081
|
var c = o && o.top != null ? Math.max(0, o.top) : i.scroller.scrollTop;
|
|
2082
|
-
c = Math.floor(c -
|
|
2082
|
+
c = Math.floor(c - Ra(i));
|
|
2083
2083
|
var u = o && o.bottom != null ? o.bottom : c + i.wrapper.clientHeight, b = Gr(l, c), T = Gr(l, u);
|
|
2084
2084
|
if (o && o.ensure) {
|
|
2085
2085
|
var H = o.ensure.from.line, L = o.ensure.to.line;
|
|
@@ -2092,7 +2092,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
2092
2092
|
var o = i.display, c = o.sizer.getBoundingClientRect(), u = null, b = o.wrapper.ownerDocument;
|
|
2093
2093
|
if (l.top + c.top < 0 ? u = !0 : l.bottom + c.top > (b.defaultView.innerHeight || b.documentElement.clientHeight) && (u = !1), u != null && !S) {
|
|
2094
2094
|
var T = W("div", "", null, `position: absolute;
|
|
2095
|
-
top: ` + (l.top - o.viewOffset -
|
|
2095
|
+
top: ` + (l.top - o.viewOffset - Ra(i.display)) + `px;
|
|
2096
2096
|
height: ` + (l.bottom - l.top + wn(i) + o.barHeight) + `px;
|
|
2097
2097
|
left: ` + l.left + "px; width: " + Math.max(2, l.right - l.left) + "px;");
|
|
2098
2098
|
i.display.lineSpace.appendChild(T), T.scrollIntoView(u), i.display.lineSpace.removeChild(T);
|
|
@@ -2137,20 +2137,20 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
2137
2137
|
return we && (l.right = l.left + pe), l.left < 10 ? T.scrollLeft = 0 : l.left < me ? T.scrollLeft = Math.max(0, l.left + ae - (we ? 0 : 10)) : l.right > pe + me - 3 && (T.scrollLeft = l.right + (we ? 0 : 10) - pe), T;
|
|
2138
2138
|
}
|
|
2139
2139
|
function Ki(i, l) {
|
|
2140
|
-
l != null && (
|
|
2140
|
+
l != null && (Ya(i), i.curOp.scrollTop = (i.curOp.scrollTop == null ? i.doc.scrollTop : i.curOp.scrollTop) + l);
|
|
2141
2141
|
}
|
|
2142
2142
|
function N1(i) {
|
|
2143
|
-
|
|
2143
|
+
Ya(i);
|
|
2144
2144
|
var l = i.getCursor();
|
|
2145
2145
|
i.curOp.scrollToPos = { from: l, to: l, margin: i.options.cursorScrollMargin };
|
|
2146
2146
|
}
|
|
2147
2147
|
function oa(i, l, o) {
|
|
2148
|
-
(l != null || o != null) &&
|
|
2148
|
+
(l != null || o != null) && Ya(i), l != null && (i.curOp.scrollLeft = l), o != null && (i.curOp.scrollTop = o);
|
|
2149
2149
|
}
|
|
2150
2150
|
function XC(i, l) {
|
|
2151
|
-
|
|
2151
|
+
Ya(i), i.curOp.scrollToPos = l;
|
|
2152
2152
|
}
|
|
2153
|
-
function
|
|
2153
|
+
function Ya(i) {
|
|
2154
2154
|
var l = i.curOp.scrollToPos;
|
|
2155
2155
|
if (l) {
|
|
2156
2156
|
i.curOp.scrollToPos = null;
|
|
@@ -2246,7 +2246,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
2246
2246
|
var o = i.display.barWidth, c = i.display.barHeight;
|
|
2247
2247
|
f9(i, l);
|
|
2248
2248
|
for (var u = 0; u < 4 && o != i.display.barWidth || c != i.display.barHeight; u++)
|
|
2249
|
-
o != i.display.barWidth && i.options.lineWrapping &&
|
|
2249
|
+
o != i.display.barWidth && i.options.lineWrapping && Ga(i), f9(i, fa(i)), o = i.display.barWidth, c = i.display.barHeight;
|
|
2250
2250
|
}
|
|
2251
2251
|
function f9(i, l) {
|
|
2252
2252
|
var o = i.display, c = o.scrollbars.update(l);
|
|
@@ -2322,14 +2322,14 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
2322
2322
|
}
|
|
2323
2323
|
function eA(i) {
|
|
2324
2324
|
var l = i.cm, o = l.display;
|
|
2325
|
-
lA(l), i.updateMaxLine && on(l), i.mustUpdate = i.viewChanged || i.forceUpdate || i.scrollTop != null || i.scrollToPos && (i.scrollToPos.from.line < o.viewFrom || i.scrollToPos.to.line >= o.viewTo) || o.maxLineChanged && l.options.lineWrapping, i.update = i.mustUpdate && new
|
|
2325
|
+
lA(l), i.updateMaxLine && on(l), i.mustUpdate = i.viewChanged || i.forceUpdate || i.scrollTop != null || i.scrollToPos && (i.scrollToPos.from.line < o.viewFrom || i.scrollToPos.to.line >= o.viewTo) || o.maxLineChanged && l.options.lineWrapping, i.update = i.mustUpdate && new Qa(l, i.mustUpdate && { top: i.scrollTop, ensure: i.scrollToPos }, i.forceUpdate);
|
|
2326
2326
|
}
|
|
2327
2327
|
function tA(i) {
|
|
2328
2328
|
i.updatedDisplay = i.mustUpdate && el(i.cm, i.update);
|
|
2329
2329
|
}
|
|
2330
2330
|
function rA(i) {
|
|
2331
2331
|
var l = i.cm, o = l.display;
|
|
2332
|
-
i.updatedDisplay &&
|
|
2332
|
+
i.updatedDisplay && Ga(l), i.barMeasure = fa(l), o.maxLineChanged && !l.options.lineWrapping && (i.adjustWidthTo = kd(l, o.maxLine, o.maxLine.text.length).left + 3, l.display.sizerWidth = i.adjustWidthTo, i.barMeasure.scrollWidth = Math.max(o.scroller.clientWidth, o.sizer.offsetLeft + i.adjustWidthTo + wn(l) + l.display.barWidth), i.maxScrollLeft = Math.max(0, o.sizer.offsetLeft + i.adjustWidthTo - v1(l))), (i.updatedDisplay || i.selectionChanged) && (i.preparedSelection = o.input.prepareSelection());
|
|
2333
2333
|
}
|
|
2334
2334
|
function nA(i) {
|
|
2335
2335
|
var l = i.cm;
|
|
@@ -2430,13 +2430,13 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
2430
2430
|
});
|
|
2431
2431
|
}
|
|
2432
2432
|
}
|
|
2433
|
-
var
|
|
2433
|
+
var Qa = function(i, l, o) {
|
|
2434
2434
|
var c = i.display;
|
|
2435
|
-
this.viewport = l, this.visible =
|
|
2435
|
+
this.viewport = l, this.visible = Za(c, i.doc, l), this.editorIsHidden = !c.wrapper.offsetWidth, this.wrapperHeight = c.wrapper.clientHeight, this.wrapperWidth = c.wrapper.clientWidth, this.oldDisplayWidth = v1(i), this.force = o, this.dims = Wi(i), this.events = [];
|
|
2436
2436
|
};
|
|
2437
|
-
|
|
2437
|
+
Qa.prototype.signal = function(i, l) {
|
|
2438
2438
|
Ct(i, l) && this.events.push(arguments);
|
|
2439
|
-
},
|
|
2439
|
+
}, Qa.prototype.finish = function() {
|
|
2440
2440
|
for (var i = 0; i < this.events.length; i++)
|
|
2441
2441
|
dt.apply(null, this.events[i]);
|
|
2442
2442
|
};
|
|
@@ -2483,21 +2483,21 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
2483
2483
|
function d9(i, l) {
|
|
2484
2484
|
for (var o = l.viewport, c = !0; ; c = !1) {
|
|
2485
2485
|
if (!c || !i.options.lineWrapping || l.oldDisplayWidth == v1(i)) {
|
|
2486
|
-
if (o && o.top != null && (o = { top: Math.min(i.doc.height + Di(i.display) - Ni(i), o.top) }), l.visible =
|
|
2486
|
+
if (o && o.top != null && (o = { top: Math.min(i.doc.height + Di(i.display) - Ni(i), o.top) }), l.visible = Za(i.display, i.doc, o), l.visible.from >= i.display.viewFrom && l.visible.to <= i.display.viewTo)
|
|
2487
2487
|
break;
|
|
2488
|
-
} else c && (l.visible =
|
|
2488
|
+
} else c && (l.visible = Za(i.display, i.doc, o));
|
|
2489
2489
|
if (!el(i, l))
|
|
2490
2490
|
break;
|
|
2491
|
-
|
|
2491
|
+
Ga(i);
|
|
2492
2492
|
var u = fa(i);
|
|
2493
2493
|
ca(i), B1(i, u), nl(i, u), l.force = !1;
|
|
2494
2494
|
}
|
|
2495
2495
|
l.signal(i, "update", i), (i.display.viewFrom != i.display.reportedViewFrom || i.display.viewTo != i.display.reportedViewTo) && (l.signal(i, "viewportChange", i, i.display.viewFrom, i.display.viewTo), i.display.reportedViewFrom = i.display.viewFrom, i.display.reportedViewTo = i.display.viewTo);
|
|
2496
2496
|
}
|
|
2497
2497
|
function tl(i, l) {
|
|
2498
|
-
var o = new
|
|
2498
|
+
var o = new Qa(i, l);
|
|
2499
2499
|
if (el(i, o)) {
|
|
2500
|
-
|
|
2500
|
+
Ga(i), d9(i, o);
|
|
2501
2501
|
var c = fa(i);
|
|
2502
2502
|
ca(i), B1(i, c), nl(i, c), o.finish();
|
|
2503
2503
|
}
|
|
@@ -2594,7 +2594,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
2594
2594
|
var b = ie("div", [u.lineSpace], "CodeMirror-lines");
|
|
2595
2595
|
u.mover = W("div", [b], null, "position: relative"), u.sizer = W("div", [u.mover], "CodeMirror-sizer"), u.sizerWidth = null, u.heightForcer = W("div", null, null, "position: absolute; height: " + Ge + "px; width: 1px;"), u.gutters = W("div", null, "CodeMirror-gutters"), u.lineGutter = null, u.scroller = W("div", [u.sizer, u.heightForcer, u.gutters], "CodeMirror-scroll"), u.scroller.setAttribute("tabIndex", "-1"), u.wrapper = W("div", [u.scrollbarFiller, u.gutterFiller, u.scroller], "CodeMirror"), s && p >= 105 && (u.wrapper.style.clipPath = "inset(0px)"), u.wrapper.setAttribute("translate", "no"), v && y < 8 && (u.gutters.style.zIndex = -1, u.scroller.style.paddingRight = 0), !g && !(a && M) && (u.scroller.draggable = !0), i && (i.appendChild ? i.appendChild(u.wrapper) : i(u.wrapper)), u.viewFrom = u.viewTo = l.first, u.reportedViewFrom = u.reportedViewTo = l.first, u.view = [], u.renderedView = null, u.externalMeasured = null, u.viewOffset = 0, u.lastWrapHeight = u.lastWrapWidth = 0, u.updateLineNumbers = null, u.nativeBarWidth = u.barHeight = u.barWidth = 0, u.scrollbarsClipped = !1, u.lineNumWidth = u.lineNumInnerWidth = u.lineNumChars = null, u.alignWidgets = !1, u.cachedCharWidth = u.cachedTextHeight = u.cachedPaddingH = null, u.maxLine = null, u.maxLineLength = 0, u.maxLineChanged = !1, u.wheelDX = u.wheelDY = u.wheelStartX = u.wheelStartY = null, u.shift = !1, u.selForContextMenu = null, u.activeTouch = null, u.gutterSpecs = al(c.gutters, c.lineNumbers), g9(u), o.init(u);
|
|
2596
2596
|
}
|
|
2597
|
-
var
|
|
2597
|
+
var Xa = 0, En = null;
|
|
2598
2598
|
v ? En = -0.53 : a ? En = 15 : s ? En = -0.7 : z && (En = -1 / 3);
|
|
2599
2599
|
function m9(i) {
|
|
2600
2600
|
var l = i.wheelDeltaX, o = i.wheelDeltaY;
|
|
@@ -2628,10 +2628,10 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
2628
2628
|
var pe = u * b, we = i.doc.scrollTop, xe = we + T.wrapper.clientHeight;
|
|
2629
2629
|
pe < 0 ? we = Math.max(0, we + pe - 50) : xe = Math.min(i.doc.height, xe + pe + 50), tl(i, { top: we, bottom: xe });
|
|
2630
2630
|
}
|
|
2631
|
-
|
|
2631
|
+
Xa < 20 && l.deltaMode !== 0 && (T.wheelStartX == null ? (T.wheelStartX = H.scrollLeft, T.wheelStartY = H.scrollTop, T.wheelDX = c, T.wheelDY = u, setTimeout(function() {
|
|
2632
2632
|
if (T.wheelStartX != null) {
|
|
2633
2633
|
var Le = H.scrollLeft - T.wheelStartX, Ve = H.scrollTop - T.wheelStartY, Ie = Ve && T.wheelDY && Ve / T.wheelDY || Le && T.wheelDX && Le / T.wheelDX;
|
|
2634
|
-
T.wheelStartX = T.wheelStartY = null, Ie && (En = (En *
|
|
2634
|
+
T.wheelStartX = T.wheelStartY = null, Ie && (En = (En * Xa + Ie) / (Xa + 1), ++Xa);
|
|
2635
2635
|
}
|
|
2636
2636
|
}, 200)) : (T.wheelDX += c, T.wheelDY += u));
|
|
2637
2637
|
}
|
|
@@ -2806,7 +2806,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
2806
2806
|
S9(i), $r(i);
|
|
2807
2807
|
});
|
|
2808
2808
|
}
|
|
2809
|
-
function
|
|
2809
|
+
function Ja(i) {
|
|
2810
2810
|
this.done = [], this.undone = [], this.undoDepth = i ? i.undoDepth : 1 / 0, this.lastModTime = this.lastSelTime = 0, this.lastOp = this.lastSelOp = null, this.lastOrigin = this.lastSelOrigin = null, this.generation = this.maxGeneration = i ? i.maxGeneration : 1;
|
|
2811
2811
|
}
|
|
2812
2812
|
function ol(i, l) {
|
|
@@ -2840,7 +2840,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
2840
2840
|
H = F(T.changes), ke(l.from, l.to) == 0 && ke(l.from, H.to) == 0 ? H.to = Gn(l) : T.changes.push(ol(i, l));
|
|
2841
2841
|
else {
|
|
2842
2842
|
var L = F(u.done);
|
|
2843
|
-
for ((!L || !L.ranges) &&
|
|
2843
|
+
for ((!L || !L.ranges) && Ka(i.sel, u.done), T = {
|
|
2844
2844
|
changes: [ol(i, l)],
|
|
2845
2845
|
generation: u.generation
|
|
2846
2846
|
}, u.done.push(T); u.done.length > u.undoDepth; )
|
|
@@ -2854,9 +2854,9 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
2854
2854
|
}
|
|
2855
2855
|
function gA(i, l, o, c) {
|
|
2856
2856
|
var u = i.history, b = c && c.origin;
|
|
2857
|
-
o == u.lastSelOp || b && u.lastSelOrigin == b && (u.lastModTime == u.lastSelTime && u.lastOrigin == b || vA(i, b, F(u.done), l)) ? u.done[u.done.length - 1] = l :
|
|
2857
|
+
o == u.lastSelOp || b && u.lastSelOrigin == b && (u.lastModTime == u.lastSelTime && u.lastOrigin == b || vA(i, b, F(u.done), l)) ? u.done[u.done.length - 1] = l : Ka(l, u.done), u.lastSelTime = +/* @__PURE__ */ new Date(), u.lastSelOrigin = b, u.lastSelOp = o, c && c.clearRedo !== !1 && z9(u.undone);
|
|
2858
2858
|
}
|
|
2859
|
-
function
|
|
2859
|
+
function Ka(i, l) {
|
|
2860
2860
|
var o = F(l);
|
|
2861
2861
|
o && o.ranges && o.equals(i) || l.push(i);
|
|
2862
2862
|
}
|
|
@@ -2929,7 +2929,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
2929
2929
|
} else
|
|
2930
2930
|
return new wt(o || l, l);
|
|
2931
2931
|
}
|
|
2932
|
-
function
|
|
2932
|
+
function ei(i, l, o, c, u) {
|
|
2933
2933
|
u == null && (u = i.cm && (i.cm.display.shift || i.extend)), wr(i, new Qr([ul(i.sel.primary(), l, o, u)], 0), c);
|
|
2934
2934
|
}
|
|
2935
2935
|
function T9(i, l, o) {
|
|
@@ -2962,12 +2962,12 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
2962
2962
|
}
|
|
2963
2963
|
function C9(i, l, o) {
|
|
2964
2964
|
var c = i.history.done, u = F(c);
|
|
2965
|
-
u && u.ranges ? (c[c.length - 1] = l,
|
|
2965
|
+
u && u.ranges ? (c[c.length - 1] = l, ti(i, l, o)) : wr(i, l, o);
|
|
2966
2966
|
}
|
|
2967
2967
|
function wr(i, l, o) {
|
|
2968
|
-
|
|
2968
|
+
ti(i, l, o), gA(i, i.sel, i.cm ? i.cm.curOp.id : NaN, o);
|
|
2969
2969
|
}
|
|
2970
|
-
function
|
|
2970
|
+
function ti(i, l, o) {
|
|
2971
2971
|
(Ct(i, "beforeSelectionChange") || i.cm && Ct(i.cm, "beforeSelectionChange")) && (l = OA(i, l, o));
|
|
2972
2972
|
var c = o && o.bias || (ke(l.primary().head, i.sel.primary().head) < 0 ? -1 : 1);
|
|
2973
2973
|
A9(i, $9(i, l, c, !0)), !(o && o.scroll === !1) && i.cm && i.cm.getOption("readOnly") != "nocursor" && N1(i.cm);
|
|
@@ -2980,7 +2980,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
2980
2980
|
}
|
|
2981
2981
|
function $9(i, l, o, c) {
|
|
2982
2982
|
for (var u, b = 0; b < l.ranges.length; b++) {
|
|
2983
|
-
var T = l.ranges[b], H = l.ranges.length == i.sel.ranges.length && i.sel.ranges[b], L =
|
|
2983
|
+
var T = l.ranges[b], H = l.ranges.length == i.sel.ranges.length && i.sel.ranges[b], L = ri(i, T.anchor, H && H.anchor, o, c), B = T.head == T.anchor ? L : ri(i, T.head, H && H.head, o, c);
|
|
2984
2984
|
(u || L != T.anchor || B != T.head) && (u || (u = l.ranges.slice(0, b)), u[b] = new wt(L, B));
|
|
2985
2985
|
}
|
|
2986
2986
|
return u ? fn(i.cm, u, l.primIndex) : l;
|
|
@@ -3010,7 +3010,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
3010
3010
|
}
|
|
3011
3011
|
return l;
|
|
3012
3012
|
}
|
|
3013
|
-
function
|
|
3013
|
+
function ri(i, l, o, c, u) {
|
|
3014
3014
|
var b = c || 1, T = R1(i, l, o, b, u) || !u && R1(i, l, o, b, !0) || R1(i, l, o, -b, u) || !u && R1(i, l, o, -b, !0);
|
|
3015
3015
|
return T || (i.cantEdit = !0, Ae(i.first, 0));
|
|
3016
3016
|
}
|
|
@@ -3061,7 +3061,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
3061
3061
|
});
|
|
3062
3062
|
}
|
|
3063
3063
|
}
|
|
3064
|
-
function
|
|
3064
|
+
function ni(i, l, o) {
|
|
3065
3065
|
var c = i.cm && i.cm.state.suppressEdits;
|
|
3066
3066
|
if (!(c && !o)) {
|
|
3067
3067
|
for (var u = i.history, b, T = i.sel, H = l == "undo" ? u.done : u.undone, L = l == "undo" ? u.undone : u.done, B = 0; B < H.length && (b = H[B], !(o ? b.ranges && !b.equals(i.sel) : !b.ranges)); B++)
|
|
@@ -3069,7 +3069,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
3069
3069
|
if (B != H.length) {
|
|
3070
3070
|
for (u.lastOrigin = u.lastSelOrigin = null; ; )
|
|
3071
3071
|
if (b = H.pop(), b.ranges) {
|
|
3072
|
-
if (
|
|
3072
|
+
if (Ka(b, L), o && !b.equals(i.sel)) {
|
|
3073
3073
|
wr(i, b, { clearRedo: !1 });
|
|
3074
3074
|
return;
|
|
3075
3075
|
}
|
|
@@ -3080,7 +3080,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
3080
3080
|
} else
|
|
3081
3081
|
break;
|
|
3082
3082
|
var re = [];
|
|
3083
|
-
|
|
3083
|
+
Ka(T, L), L.push({ changes: re, generation: u.generation }), u.generation = b.generation || ++u.maxGeneration;
|
|
3084
3084
|
for (var ae = Ct(i, "beforeChange") || i.cm && Ct(i.cm, "beforeChange"), me = function(xe) {
|
|
3085
3085
|
var Le = b.changes[xe];
|
|
3086
3086
|
if (Le.origin = l, ae && !F9(i, Le, !1))
|
|
@@ -3134,7 +3134,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
3134
3134
|
to: Ae(b, We(i, b).text.length),
|
|
3135
3135
|
text: [l.text[0]],
|
|
3136
3136
|
origin: l.origin
|
|
3137
|
-
}), l.removed = _r(i, l.from, l.to), o || (o = il(i, l)), i.cm ? yA(i.cm, l, c) : cl(i, l, c),
|
|
3137
|
+
}), l.removed = _r(i, l.from, l.to), o || (o = il(i, l)), i.cm ? yA(i.cm, l, c) : cl(i, l, c), ti(i, o, Ke), i.cantEdit && ri(i, Ae(i.firstLine(), 0)) && (i.cantEdit = !1);
|
|
3138
3138
|
}
|
|
3139
3139
|
}
|
|
3140
3140
|
function yA(i, l, o) {
|
|
@@ -3503,7 +3503,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
3503
3503
|
return new Lr(i, l, o, c, u);
|
|
3504
3504
|
o == null && (o = 0), ba.call(this, [new ma([new $n("", null)])]), this.first = o, this.scrollTop = this.scrollLeft = 0, this.cantEdit = !1, this.cleanGeneration = 1, this.modeFrontier = this.highlightFrontier = o;
|
|
3505
3505
|
var b = Ae(o, 0);
|
|
3506
|
-
this.sel = kn(b), this.history = new
|
|
3506
|
+
this.sel = kn(b), this.history = new Ja(null), this.id = ++jA, this.modeOption = l, this.lineSep = c, this.direction = u == "rtl" ? "rtl" : "ltr", this.extend = !1, typeof i == "string" && (i = this.splitLines(i)), cl(this, { from: b, to: b, text: i }), wr(this, kn(b), Ke);
|
|
3507
3507
|
};
|
|
3508
3508
|
Lr.prototype = fe(ba.prototype, {
|
|
3509
3509
|
constructor: Lr,
|
|
@@ -3589,7 +3589,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
3589
3589
|
x9(this, et(this, i), et(this, l || i), o);
|
|
3590
3590
|
}),
|
|
3591
3591
|
extendSelection: nr(function(i, l, o) {
|
|
3592
|
-
|
|
3592
|
+
ei(this, et(this, i), l && et(this, l), o);
|
|
3593
3593
|
}),
|
|
3594
3594
|
extendSelections: nr(function(i, l) {
|
|
3595
3595
|
T9(this, Rn(this, i), l);
|
|
@@ -3641,16 +3641,16 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
3641
3641
|
H ? C9(this, H) : this.cm && N1(this.cm);
|
|
3642
3642
|
}),
|
|
3643
3643
|
undo: nr(function() {
|
|
3644
|
-
|
|
3644
|
+
ni(this, "undo");
|
|
3645
3645
|
}),
|
|
3646
3646
|
redo: nr(function() {
|
|
3647
|
-
|
|
3647
|
+
ni(this, "redo");
|
|
3648
3648
|
}),
|
|
3649
3649
|
undoSelection: nr(function() {
|
|
3650
|
-
|
|
3650
|
+
ni(this, "undo", !0);
|
|
3651
3651
|
}),
|
|
3652
3652
|
redoSelection: nr(function() {
|
|
3653
|
-
|
|
3653
|
+
ni(this, "redo", !0);
|
|
3654
3654
|
}),
|
|
3655
3655
|
setExtending: function(i) {
|
|
3656
3656
|
this.extend = i;
|
|
@@ -3667,7 +3667,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
3667
3667
|
},
|
|
3668
3668
|
clearHistory: function() {
|
|
3669
3669
|
var i = this;
|
|
3670
|
-
this.history = new
|
|
3670
|
+
this.history = new Ja(this.history), Zn(this, function(l) {
|
|
3671
3671
|
return l.history = i.history;
|
|
3672
3672
|
}, !0);
|
|
3673
3673
|
},
|
|
@@ -3687,7 +3687,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
3687
3687
|
};
|
|
3688
3688
|
},
|
|
3689
3689
|
setHistory: function(i) {
|
|
3690
|
-
var l = this.history = new
|
|
3690
|
+
var l = this.history = new Ja(this.history);
|
|
3691
3691
|
l.done = I1(i.done.slice(0), null, !0), l.undone = I1(i.undone.slice(0), null, !0);
|
|
3692
3692
|
},
|
|
3693
3693
|
setGutterMarker: nr(function(i, l, o) {
|
|
@@ -3852,7 +3852,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
3852
3852
|
var c = [i.id];
|
|
3853
3853
|
Zn(i, function(u) {
|
|
3854
3854
|
return c.push(u.id);
|
|
3855
|
-
}, !0), i.history = new
|
|
3855
|
+
}, !0), i.history = new Ja(null), i.history.done = I1(this.history.done, c), i.history.undone = I1(this.history.undone, c);
|
|
3856
3856
|
}
|
|
3857
3857
|
},
|
|
3858
3858
|
iterLinkedDocs: function(i) {
|
|
@@ -3929,7 +3929,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
3929
3929
|
var re = i.dataTransfer.getData("Text");
|
|
3930
3930
|
if (re) {
|
|
3931
3931
|
var ae;
|
|
3932
|
-
if (l.state.draggingText && !l.state.draggingText.copy && (ae = l.listSelections()),
|
|
3932
|
+
if (l.state.draggingText && !l.state.draggingText.copy && (ae = l.listSelections()), ti(l.doc, kn(o, o)), ae)
|
|
3933
3933
|
for (var me = 0; me < ae.length; ++me)
|
|
3934
3934
|
U1(l.doc, "", ae[me].anchor, ae[me].head, "drag");
|
|
3935
3935
|
l.replaceSelection(re, "around", "paste"), l.display.input.focus();
|
|
@@ -4048,8 +4048,8 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
4048
4048
|
63302: "Insert"
|
|
4049
4049
|
}, wa = 0; wa < 10; wa++)
|
|
4050
4050
|
Qn[wa + 48] = Qn[wa + 96] = String(wa);
|
|
4051
|
-
for (var
|
|
4052
|
-
Qn[
|
|
4051
|
+
for (var ai = 65; ai <= 90; ai++)
|
|
4052
|
+
Qn[ai] = String.fromCharCode(ai);
|
|
4053
4053
|
for (var Pa = 1; Pa <= 12; Pa++)
|
|
4054
4054
|
Qn[Pa + 111] = Qn[Pa + 63235] = "F" + Pa;
|
|
4055
4055
|
var Fn = {};
|
|
@@ -4191,7 +4191,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
4191
4191
|
return i;
|
|
4192
4192
|
}
|
|
4193
4193
|
function k1(i, l, o, c) {
|
|
4194
|
-
l =
|
|
4194
|
+
l = ii(l);
|
|
4195
4195
|
var u = l.call ? l.call(i, c) : l[i];
|
|
4196
4196
|
if (u === !1)
|
|
4197
4197
|
return "nothing";
|
|
@@ -4223,7 +4223,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
4223
4223
|
var o = Qn[i.keyCode];
|
|
4224
4224
|
return o == null || i.altGraphKey ? !1 : (i.keyCode == 3 && i.code && (o = i.code), Q9(o, i, l));
|
|
4225
4225
|
}
|
|
4226
|
-
function
|
|
4226
|
+
function ii(i) {
|
|
4227
4227
|
return typeof i == "string" ? Fn[i] : i;
|
|
4228
4228
|
}
|
|
4229
4229
|
function G1(i, l) {
|
|
@@ -4552,7 +4552,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
4552
4552
|
}
|
|
4553
4553
|
return o;
|
|
4554
4554
|
}
|
|
4555
|
-
function
|
|
4555
|
+
function li(i, l, o) {
|
|
4556
4556
|
if (typeof l == "string" && (l = Sa[l], !l))
|
|
4557
4557
|
return !1;
|
|
4558
4558
|
i.display.input.ensurePolled();
|
|
@@ -4592,17 +4592,17 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
4592
4592
|
function tp(i, l) {
|
|
4593
4593
|
var o = X9(l, !0);
|
|
4594
4594
|
return o ? l.shiftKey && !i.state.keySeq ? za(i, "Shift-" + o, l, function(c) {
|
|
4595
|
-
return
|
|
4595
|
+
return li(i, c, !0);
|
|
4596
4596
|
}) || za(i, o, l, function(c) {
|
|
4597
4597
|
if (typeof c == "string" ? /^go[A-Z]/.test(c) : c.motion)
|
|
4598
|
-
return
|
|
4598
|
+
return li(i, c);
|
|
4599
4599
|
}) : za(i, o, l, function(c) {
|
|
4600
|
-
return
|
|
4600
|
+
return li(i, c);
|
|
4601
4601
|
}) : !1;
|
|
4602
4602
|
}
|
|
4603
4603
|
function DA(i, l, o) {
|
|
4604
4604
|
return za(i, "'" + o + "'", l, function(c) {
|
|
4605
|
-
return
|
|
4605
|
+
return li(i, c, !0);
|
|
4606
4606
|
});
|
|
4607
4607
|
}
|
|
4608
4608
|
var pl = null;
|
|
@@ -4663,7 +4663,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
4663
4663
|
}
|
|
4664
4664
|
if (!gl(l, i)) {
|
|
4665
4665
|
var c = m1(l, i), u = Bn(i), b = c ? IA(c, u) : "single";
|
|
4666
|
-
te(l).focus(), u == 1 && l.state.selectingText && l.state.selectingText(i), !(c && RA(l, u, c, b, i)) && (u == 1 ? c ? UA(l, c, b, i) : _n(i) == o.scroller && Mt(i) : u == 2 ? (c &&
|
|
4666
|
+
te(l).focus(), u == 1 && l.state.selectingText && l.state.selectingText(i), !(c && RA(l, u, c, b, i)) && (u == 1 ? c ? UA(l, c, b, i) : _n(i) == o.scroller && Mt(i) : u == 2 ? (c && ei(l.doc, c), setTimeout(function() {
|
|
4667
4667
|
return o.input.focus();
|
|
4668
4668
|
}, 20)) : u == 3 && (D ? l.display.input.onContextMenu(i) : Qi(l)));
|
|
4669
4669
|
}
|
|
@@ -4698,7 +4698,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
4698
4698
|
}
|
|
4699
4699
|
function WA(i, l, o, c) {
|
|
4700
4700
|
var u = i.display, b = !1, T = rr(i, function(B) {
|
|
4701
|
-
g && (u.scroller.draggable = !1), i.state.draggingText = !1, i.state.delayingBlurEvent && (i.hasFocus() ? i.state.delayingBlurEvent = !1 : Qi(i)), $t(u.wrapper.ownerDocument, "mouseup", T), $t(u.wrapper.ownerDocument, "mousemove", H), $t(u.scroller, "dragstart", L), $t(u.scroller, "drop", T), b || (Mt(B), c.addNew ||
|
|
4701
|
+
g && (u.scroller.draggable = !1), i.state.draggingText = !1, i.state.delayingBlurEvent && (i.hasFocus() ? i.state.delayingBlurEvent = !1 : Qi(i)), $t(u.wrapper.ownerDocument, "mouseup", T), $t(u.wrapper.ownerDocument, "mousemove", H), $t(u.scroller, "dragstart", L), $t(u.scroller, "drop", T), b || (Mt(B), c.addNew || ei(i.doc, o, null, null, c.extend), g && !z || v && y == 9 ? setTimeout(function() {
|
|
4702
4702
|
u.wrapper.ownerDocument.body.focus({ preventScroll: !0 }), u.input.focus();
|
|
4703
4703
|
}, 20) : u.input.focus());
|
|
4704
4704
|
}), H = function(B) {
|
|
@@ -4766,7 +4766,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
4766
4766
|
if (Je)
|
|
4767
4767
|
if (ke(Je, ae) != 0) {
|
|
4768
4768
|
i.curOp.focus = le(ge(i)), me(Je);
|
|
4769
|
-
var Qe =
|
|
4769
|
+
var Qe = Za(u, b);
|
|
4770
4770
|
(Je.line >= Qe.to || Je.line < Qe.from) && setTimeout(rr(i, function() {
|
|
4771
4771
|
we == qe && xe(De);
|
|
4772
4772
|
}), 150);
|
|
@@ -4847,7 +4847,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
4847
4847
|
}
|
|
4848
4848
|
var Z1 = { toString: function() {
|
|
4849
4849
|
return "CodeMirror.Init";
|
|
4850
|
-
} }, fp = {},
|
|
4850
|
+
} }, fp = {}, ci = {};
|
|
4851
4851
|
function YA(i) {
|
|
4852
4852
|
var l = i.optionHandlers;
|
|
4853
4853
|
function o(c, u, b, T) {
|
|
@@ -4891,7 +4891,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
4891
4891
|
}, !0), o("rtlMoveVisually", !V), o("wholeLineUpdateBefore", !0), o("theme", "default", function(c) {
|
|
4892
4892
|
up(c), da(c);
|
|
4893
4893
|
}, !0), o("keyMap", "default", function(c, u, b) {
|
|
4894
|
-
var T =
|
|
4894
|
+
var T = ii(u), H = b != Z1 && ii(b);
|
|
4895
4895
|
H && H.detach && H.detach(c, T), T.attach && T.attach(c, H || null);
|
|
4896
4896
|
}), o("extraKeys", null), o("configureMouse", null), o("lineWrapping", !1, XA, !0), o("gutters", [], function(c, u) {
|
|
4897
4897
|
c.display.gutterSpecs = al(u, c.options.lineNumbers), da(c);
|
|
@@ -4970,14 +4970,14 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
4970
4970
|
}, 20), JA(this), xA(), w1(this), this.curOp.forceUpdate = !0, P9(this, c), l.autofocus && !M || this.hasFocus() ? setTimeout(function() {
|
|
4971
4971
|
o.hasFocus() && !o.state.focused && Xi(o);
|
|
4972
4972
|
}, 20) : D1(this);
|
|
4973
|
-
for (var T in
|
|
4974
|
-
|
|
4973
|
+
for (var T in ci)
|
|
4974
|
+
ci.hasOwnProperty(T) && ci[T](this, l[T], Z1);
|
|
4975
4975
|
v9(this), l.finishInit && l.finishInit(this);
|
|
4976
4976
|
for (var H = 0; H < ml.length; ++H)
|
|
4977
4977
|
ml[H](this);
|
|
4978
4978
|
P1(this), g && l.lineWrapping && getComputedStyle(b.lineDiv).textRendering == "optimizelegibility" && (b.lineDiv.style.textRendering = "auto");
|
|
4979
4979
|
}
|
|
4980
|
-
Ht.defaults = fp, Ht.optionHandlers =
|
|
4980
|
+
Ht.defaults = fp, Ht.optionHandlers = ci;
|
|
4981
4981
|
function JA(i) {
|
|
4982
4982
|
var l = i.display;
|
|
4983
4983
|
Ue(l.scroller, "mousedown", rr(i, ip)), v && y < 11 ? Ue(l.scroller, "dblclick", rr(i, function(L) {
|
|
@@ -4986,7 +4986,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
4986
4986
|
if (!(!B || gl(i, L) || Ln(i.display, L))) {
|
|
4987
4987
|
Mt(L);
|
|
4988
4988
|
var re = i.findWordAt(B);
|
|
4989
|
-
|
|
4989
|
+
ei(i.doc, re.anchor, re.head);
|
|
4990
4990
|
}
|
|
4991
4991
|
}
|
|
4992
4992
|
})) : Ue(l.scroller, "dblclick", function(L) {
|
|
@@ -5099,7 +5099,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
5099
5099
|
}
|
|
5100
5100
|
}
|
|
5101
5101
|
var sn = null;
|
|
5102
|
-
function
|
|
5102
|
+
function oi(i) {
|
|
5103
5103
|
sn = i;
|
|
5104
5104
|
}
|
|
5105
5105
|
function bl(i, l, o, c, u) {
|
|
@@ -5188,7 +5188,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
5188
5188
|
return this.doc;
|
|
5189
5189
|
},
|
|
5190
5190
|
addKeyMap: function(c, u) {
|
|
5191
|
-
this.state.keyMaps[u ? "push" : "unshift"](
|
|
5191
|
+
this.state.keyMaps[u ? "push" : "unshift"](ii(c));
|
|
5192
5192
|
},
|
|
5193
5193
|
removeKeyMap: function(c) {
|
|
5194
5194
|
for (var u = this.state.keyMaps, b = 0; b < u.length; ++b)
|
|
@@ -5302,7 +5302,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
5302
5302
|
return c == null ? b = T.head : typeof c == "object" ? b = et(this.doc, c) : b = c ? T.from() : T.to(), un(this, b, u || "page");
|
|
5303
5303
|
},
|
|
5304
5304
|
charCoords: function(c, u) {
|
|
5305
|
-
return
|
|
5305
|
+
return Ua(this, et(this.doc, c), u || "page");
|
|
5306
5306
|
},
|
|
5307
5307
|
coordsChar: function(c, u) {
|
|
5308
5308
|
return c = Kd(this, c, u || "page"), qi(this, c.left, c.top);
|
|
@@ -5317,7 +5317,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
5317
5317
|
c < this.doc.first ? c = this.doc.first : c > L && (c = L, T = !0), H = We(this.doc, c);
|
|
5318
5318
|
} else
|
|
5319
5319
|
H = c;
|
|
5320
|
-
return
|
|
5320
|
+
return qa(this, H, { top: 0, left: 0 }, u || "page", b || T).top + (T ? this.doc.height - pr(H) : 0);
|
|
5321
5321
|
},
|
|
5322
5322
|
defaultTextHeight: function() {
|
|
5323
5323
|
return F1(this.display);
|
|
@@ -5389,7 +5389,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
5389
5389
|
var ae = un(b, re.head, "div");
|
|
5390
5390
|
re.goalColumn != null && (ae.left = re.goalColumn), H.push(ae.left);
|
|
5391
5391
|
var me = vp(b, ae, c, u);
|
|
5392
|
-
return u == "page" && re == T.sel.primary() && Ki(b,
|
|
5392
|
+
return u == "page" && re == T.sel.primary() && Ki(b, Ua(b, me, "div").top - ae.top), me;
|
|
5393
5393
|
}, St), H.length)
|
|
5394
5394
|
for (var B = 0; B < T.sel.ranges.length; B++)
|
|
5395
5395
|
T.sel.ranges[B].goalColumn = H[B];
|
|
@@ -5537,7 +5537,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
5537
5537
|
if (Le && (ae = Le), o > 0 && !re(!we))
|
|
5538
5538
|
break;
|
|
5539
5539
|
}
|
|
5540
|
-
var Ve =
|
|
5540
|
+
var Ve = ri(i, l, b, T, !0);
|
|
5541
5541
|
return Tt(b, Ve) && (Ve.hitSide = !0), Ve;
|
|
5542
5542
|
}
|
|
5543
5543
|
function vp(i, l, o, c) {
|
|
@@ -5588,10 +5588,10 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
5588
5588
|
function T(H) {
|
|
5589
5589
|
if (!(!b(H) || Pt(c, H))) {
|
|
5590
5590
|
if (c.somethingSelected())
|
|
5591
|
-
|
|
5591
|
+
oi({ lineWise: !1, text: c.getSelections() }), H.type == "cut" && c.replaceSelection("", null, "cut");
|
|
5592
5592
|
else if (c.options.lineWiseCopyCut) {
|
|
5593
5593
|
var L = dp(c);
|
|
5594
|
-
|
|
5594
|
+
oi({ lineWise: !0, text: L.text }), H.type == "cut" && c.operation(function() {
|
|
5595
5595
|
c.setSelections(L.ranges, 0, Ke), c.replaceSelection("", null, "cut");
|
|
5596
5596
|
});
|
|
5597
5597
|
} else
|
|
@@ -5630,7 +5630,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
5630
5630
|
i.removeAllRanges();
|
|
5631
5631
|
return;
|
|
5632
5632
|
}
|
|
5633
|
-
var b =
|
|
5633
|
+
var b = ui(l, i.anchorNode, i.anchorOffset), T = ui(l, i.focusNode, i.focusOffset);
|
|
5634
5634
|
if (!(b && !b.bad && T && !T.bad && ke(Wt(b, T), c) == 0 && ke(tn(b, T), u) == 0)) {
|
|
5635
5635
|
var H = l.display.view, L = c.line >= l.display.viewFrom && gp(l, c) || { node: H[0].measure.map[2], offset: 0 }, B = u.line < l.display.viewTo && gp(l, u);
|
|
5636
5636
|
if (!B) {
|
|
@@ -5697,7 +5697,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
5697
5697
|
}
|
|
5698
5698
|
if (!this.composing) {
|
|
5699
5699
|
this.rememberSelection();
|
|
5700
|
-
var o =
|
|
5700
|
+
var o = ui(l, i.anchorNode, i.anchorOffset), c = ui(l, i.focusNode, i.focusOffset);
|
|
5701
5701
|
o && c && Ir(l, function() {
|
|
5702
5702
|
wr(l.doc, kn(o, c), Ke), (o.bad || c.bad) && (l.curOp.selectionChanged = !0);
|
|
5703
5703
|
});
|
|
@@ -5826,7 +5826,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
5826
5826
|
l = l.nextSibling, L = !1;
|
|
5827
5827
|
return b;
|
|
5828
5828
|
}
|
|
5829
|
-
function
|
|
5829
|
+
function ui(i, l, o) {
|
|
5830
5830
|
var c;
|
|
5831
5831
|
if (l == i.display.lineDiv) {
|
|
5832
5832
|
if (c = i.display.lineDiv.childNodes[o], !c)
|
|
@@ -5896,10 +5896,10 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
5896
5896
|
function b(T) {
|
|
5897
5897
|
if (!Pt(c, T)) {
|
|
5898
5898
|
if (c.somethingSelected())
|
|
5899
|
-
|
|
5899
|
+
oi({ lineWise: !1, text: c.getSelections() });
|
|
5900
5900
|
else if (c.options.lineWiseCopyCut) {
|
|
5901
5901
|
var H = dp(c);
|
|
5902
|
-
|
|
5902
|
+
oi({ lineWise: !0, text: H.text }), T.type == "cut" ? c.setSelections(H.ranges, null, Ke) : (o.prevInput = "", u.value = H.text.join(`
|
|
5903
5903
|
`), ee(u));
|
|
5904
5904
|
} else
|
|
5905
5905
|
return;
|
|
@@ -6102,12 +6102,12 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
6102
6102
|
}
|
|
6103
6103
|
YA(Ht), KA(Ht);
|
|
6104
6104
|
var iH = "iter insert remove copy getEditor constructor".split(" ");
|
|
6105
|
-
for (var
|
|
6106
|
-
Lr.prototype.hasOwnProperty(
|
|
6105
|
+
for (var fi in Lr.prototype)
|
|
6106
|
+
Lr.prototype.hasOwnProperty(fi) && He(iH, fi) < 0 && (Ht.prototype[fi] = /* @__PURE__ */ function(i) {
|
|
6107
6107
|
return function() {
|
|
6108
6108
|
return i.apply(this.doc, arguments);
|
|
6109
6109
|
};
|
|
6110
|
-
}(Lr.prototype[
|
|
6110
|
+
}(Lr.prototype[fi]));
|
|
6111
6111
|
return gr(Lr), Ht.inputStyles = { textarea: Bt, contenteditable: _t }, Ht.defineMode = function(i) {
|
|
6112
6112
|
!Ht.defaults.mode && i != "null" && (Ht.defaults.mode = i), u1.apply(this, arguments);
|
|
6113
6113
|
}, Ht.defineMIME = f1, Ht.defineMode("null", function() {
|
|
@@ -7911,7 +7911,7 @@ const dH = /* @__PURE__ */ T1(hH);
|
|
|
7911
7911
|
});
|
|
7912
7912
|
})();
|
|
7913
7913
|
!window.CodeMirror && (window.CodeMirror = Ex);
|
|
7914
|
-
const
|
|
7914
|
+
const Da = window.CodeMirror || Ex, pH = n1({
|
|
7915
7915
|
name: "DefaultMode",
|
|
7916
7916
|
props: {
|
|
7917
7917
|
name: {
|
|
@@ -7945,7 +7945,7 @@ const Na = window.CodeMirror || Ex, pH = n1({
|
|
|
7945
7945
|
},
|
|
7946
7946
|
setup(r, { emit: e }) {
|
|
7947
7947
|
const t = Yt(), n = Yt(null), a = () => {
|
|
7948
|
-
n.value = kl(
|
|
7948
|
+
n.value = kl(Da.fromTextArea(t.value, r.options)), e("update:cminstance", n.value);
|
|
7949
7949
|
const f = Kr(
|
|
7950
7950
|
() => r.cminstance,
|
|
7951
7951
|
(h) => {
|
|
@@ -7955,7 +7955,7 @@ const Na = window.CodeMirror || Ex, pH = n1({
|
|
|
7955
7955
|
{ deep: !0 }
|
|
7956
7956
|
);
|
|
7957
7957
|
};
|
|
7958
|
-
return
|
|
7958
|
+
return Va(() => {
|
|
7959
7959
|
a();
|
|
7960
7960
|
}), {
|
|
7961
7961
|
textarea: t,
|
|
@@ -7995,9 +7995,9 @@ const mH = n1({
|
|
|
7995
7995
|
emits: ["update:cminstance", "ready"],
|
|
7996
7996
|
setup(r, { emit: e }) {
|
|
7997
7997
|
const t = Yt(), n = Yt(), a = () => {
|
|
7998
|
-
t.value = kl(
|
|
7998
|
+
t.value = kl(Da.MergeView(n.value, r.options)), e("update:cminstance", t.value), e("ready", t);
|
|
7999
7999
|
};
|
|
8000
|
-
return
|
|
8000
|
+
return Va(() => {
|
|
8001
8001
|
a();
|
|
8002
8002
|
}), {
|
|
8003
8003
|
mergeView: n,
|
|
@@ -8050,7 +8050,7 @@ function PH(r) {
|
|
|
8050
8050
|
}
|
|
8051
8051
|
return t(), e;
|
|
8052
8052
|
}
|
|
8053
|
-
const
|
|
8053
|
+
const si = [
|
|
8054
8054
|
{
|
|
8055
8055
|
regex: /(\[.*?\])([ \t]*)(<error>[ \t])(.+)/,
|
|
8056
8056
|
token: ["tag", "", "error.strong", "error.strong"],
|
|
@@ -8070,37 +8070,37 @@ const hi = [
|
|
|
8070
8070
|
// next: "warning",
|
|
8071
8071
|
}
|
|
8072
8072
|
];
|
|
8073
|
-
|
|
8073
|
+
Da.defineSimpleMode("fclog", {
|
|
8074
8074
|
start: [
|
|
8075
|
-
...
|
|
8075
|
+
...si,
|
|
8076
8076
|
{
|
|
8077
8077
|
regex: /.*/,
|
|
8078
8078
|
token: "hr"
|
|
8079
8079
|
}
|
|
8080
8080
|
],
|
|
8081
8081
|
error: [
|
|
8082
|
-
...
|
|
8082
|
+
...si,
|
|
8083
8083
|
{
|
|
8084
8084
|
regex: /.*/,
|
|
8085
8085
|
token: "error.strong"
|
|
8086
8086
|
}
|
|
8087
8087
|
],
|
|
8088
8088
|
info: [
|
|
8089
|
-
...
|
|
8089
|
+
...si,
|
|
8090
8090
|
{
|
|
8091
8091
|
regex: /.*/,
|
|
8092
8092
|
token: "bracket"
|
|
8093
8093
|
}
|
|
8094
8094
|
],
|
|
8095
8095
|
warning: [
|
|
8096
|
-
...
|
|
8096
|
+
...si,
|
|
8097
8097
|
{
|
|
8098
8098
|
regex: /.*\[/,
|
|
8099
8099
|
token: "comment"
|
|
8100
8100
|
}
|
|
8101
8101
|
]
|
|
8102
8102
|
});
|
|
8103
|
-
|
|
8103
|
+
Da.defineSimpleMode("log", {
|
|
8104
8104
|
start: [
|
|
8105
8105
|
{
|
|
8106
8106
|
regex: /^[=]+[^=]*[=]+/,
|
|
@@ -8161,7 +8161,7 @@ const SH = n1({
|
|
|
8161
8161
|
}
|
|
8162
8162
|
}, f = () => {
|
|
8163
8163
|
var h;
|
|
8164
|
-
n.value = kl(
|
|
8164
|
+
n.value = kl(Da.fromTextArea(t.value, r.options)), e("update:cminstance", Nr(n)), (h = n.value) == null || h.on("change", a);
|
|
8165
8165
|
};
|
|
8166
8166
|
return Kr(
|
|
8167
8167
|
() => r.cminstance,
|
|
@@ -8170,7 +8170,7 @@ const SH = n1({
|
|
|
8170
8170
|
h && (a(r.cminstance), (m = r.cminstance) == null || m.setValue(r.value), e("ready", n));
|
|
8171
8171
|
},
|
|
8172
8172
|
{ deep: !0, immediate: !0 }
|
|
8173
|
-
),
|
|
8173
|
+
), Va(() => {
|
|
8174
8174
|
f();
|
|
8175
8175
|
}), {
|
|
8176
8176
|
initialize: f,
|
|
@@ -8465,7 +8465,7 @@ const $H = /* @__PURE__ */ n1({
|
|
|
8465
8465
|
bordered: C.$props.border || C.$props.merge && !h.originalStyle,
|
|
8466
8466
|
"original-style": h.originalStyle
|
|
8467
8467
|
}]),
|
|
8468
|
-
style:
|
|
8468
|
+
style: Mi({
|
|
8469
8469
|
height: Nr(x),
|
|
8470
8470
|
width: Nr(M)
|
|
8471
8471
|
})
|
|
@@ -8601,7 +8601,7 @@ const qt = (r, e) => {
|
|
|
8601
8601
|
}, f = (h) => {
|
|
8602
8602
|
e("input", h);
|
|
8603
8603
|
};
|
|
8604
|
-
return
|
|
8604
|
+
return Va(() => {
|
|
8605
8605
|
t.value && t.value.refresh();
|
|
8606
8606
|
}), cH(() => {
|
|
8607
8607
|
var h;
|
|
@@ -8800,7 +8800,7 @@ function RH(r, e, t, n, a, f) {
|
|
|
8800
8800
|
mode: "inline"
|
|
8801
8801
|
}, {
|
|
8802
8802
|
default: Fe(() => [
|
|
8803
|
-
(nt(!0), Cr(r1, null,
|
|
8803
|
+
(nt(!0), Cr(r1, null, La(f.data, (g) => (nt(), Cr(r1, {
|
|
8804
8804
|
key: g.id
|
|
8805
8805
|
}, [
|
|
8806
8806
|
g.children && g.children.length ? (nt(), mt(v, {
|
|
@@ -8813,7 +8813,7 @@ function RH(r, e, t, n, a, f) {
|
|
|
8813
8813
|
zr(" " + gn(g.title), 1)
|
|
8814
8814
|
]),
|
|
8815
8815
|
default: Fe(() => [
|
|
8816
|
-
(nt(!0), Cr(r1, null,
|
|
8816
|
+
(nt(!0), Cr(r1, null, La(g.children, (d) => (nt(), mt(m, {
|
|
8817
8817
|
key: d.key,
|
|
8818
8818
|
onClick: (s) => f.menuSelect(d)
|
|
8819
8819
|
}, {
|
|
@@ -8985,7 +8985,7 @@ const qH = /* @__PURE__ */ qt(IH, [["render", RH], ["__scopeId", "data-v-3025219
|
|
|
8985
8985
|
const r = this.getColumnId();
|
|
8986
8986
|
if (!r) return;
|
|
8987
8987
|
const e = this.module ? `${this.module}/${r}` : `${this.current}/${r}`;
|
|
8988
|
-
|
|
8988
|
+
Aa.confirm({
|
|
8989
8989
|
title: "确定删除?",
|
|
8990
8990
|
okText: "确定",
|
|
8991
8991
|
cancelText: "取消",
|
|
@@ -8999,12 +8999,13 @@ function GH(r, e, t, n, a, f) {
|
|
|
8999
8999
|
return nt(), Cr("div", WH, [
|
|
9000
9000
|
$x(r.$slots, "default"),
|
|
9001
9001
|
O(h, {
|
|
9002
|
-
style:
|
|
9002
|
+
style: Mi(f.dividerStyle)
|
|
9003
9003
|
}, null, 8, ["style"]),
|
|
9004
9004
|
O(y, null, {
|
|
9005
9005
|
default: Fe(() => [
|
|
9006
|
-
(nt(!0), Cr(r1, null,
|
|
9007
|
-
|
|
9006
|
+
(nt(!0), Cr(r1, null, La(f.primaryButtons, (s, p) => (nt(), mt(v, {
|
|
9007
|
+
type: "primary",
|
|
9008
|
+
ghost: "",
|
|
9008
9009
|
key: p,
|
|
9009
9010
|
onClick: (w) => f.handle(s.tag || s.click, s.title)
|
|
9010
9011
|
}, {
|
|
@@ -9015,12 +9016,12 @@ function GH(r, e, t, n, a, f) {
|
|
|
9015
9016
|
zr(gn(s.title), 1)
|
|
9016
9017
|
]),
|
|
9017
9018
|
_: 2
|
|
9018
|
-
}, 1032, ["
|
|
9019
|
+
}, 1032, ["onClick"]))), 128))
|
|
9019
9020
|
]),
|
|
9020
9021
|
_: 1
|
|
9021
9022
|
}),
|
|
9022
9023
|
O(h, {
|
|
9023
|
-
style:
|
|
9024
|
+
style: Mi(f.dividerStyleBottom)
|
|
9024
9025
|
}, null, 8, ["style"]),
|
|
9025
9026
|
O(d, { spinning: a.loading }, {
|
|
9026
9027
|
default: Fe(() => [
|
|
@@ -9043,7 +9044,7 @@ function GH(r, e, t, n, a, f) {
|
|
|
9043
9044
|
wrap: ""
|
|
9044
9045
|
}, {
|
|
9045
9046
|
default: Fe(() => [
|
|
9046
|
-
(nt(!0), Cr(r1, null,
|
|
9047
|
+
(nt(!0), Cr(r1, null, La(f.actionButtons, (w, z) => (nt(), Cr("a", {
|
|
9047
9048
|
type: "link",
|
|
9048
9049
|
key: z,
|
|
9049
9050
|
block: "",
|
|
@@ -9960,7 +9961,7 @@ function b$(r) {
|
|
|
9960
9961
|
function O$(r) {
|
|
9961
9962
|
return r = parseFloat(r), (isNaN(r) || r < 0 || r > 1) && (r = 1), r;
|
|
9962
9963
|
}
|
|
9963
|
-
function
|
|
9964
|
+
function hi(r) {
|
|
9964
9965
|
return r <= 1 ? "".concat(Number(r) * 100, "%") : r;
|
|
9965
9966
|
}
|
|
9966
9967
|
function _l(r) {
|
|
@@ -10178,7 +10179,7 @@ var jp = {
|
|
|
10178
10179
|
};
|
|
10179
10180
|
function Ta(r) {
|
|
10180
10181
|
var e = { r: 0, g: 0, b: 0 }, t = 1, n = null, a = null, f = null, h = !1, m = !1;
|
|
10181
|
-
return typeof r == "string" && (r = M$(r)), typeof r == "object" && (Dn(r.r) && Dn(r.g) && Dn(r.b) ? (e = y$(r.r, r.g, r.b), h = !0, m = String(r.r).substr(-1) === "%" ? "prgb" : "rgb") : Dn(r.h) && Dn(r.s) && Dn(r.v) ? (n =
|
|
10182
|
+
return typeof r == "string" && (r = M$(r)), typeof r == "object" && (Dn(r.r) && Dn(r.g) && Dn(r.b) ? (e = y$(r.r, r.g, r.b), h = !0, m = String(r.r).substr(-1) === "%" ? "prgb" : "rgb") : Dn(r.h) && Dn(r.s) && Dn(r.v) ? (n = hi(r.s), a = hi(r.v), e = S$(r.h, n, a), h = !0, m = "hsv") : Dn(r.h) && Dn(r.s) && Dn(r.l) && (n = hi(r.s), f = hi(r.l), e = w$(r.h, n, f), h = !0, m = "hsl"), Object.prototype.hasOwnProperty.call(r, "a") && (t = r.a)), t = O$(t), {
|
|
10182
10183
|
ok: h,
|
|
10183
10184
|
format: r.format || m,
|
|
10184
10185
|
r: Math.min(255, Math.max(e.r, 0)),
|
|
@@ -10236,7 +10237,7 @@ function M$(r) {
|
|
|
10236
10237
|
function Dn(r) {
|
|
10237
10238
|
return !!dn.CSS_UNIT.exec(String(r));
|
|
10238
10239
|
}
|
|
10239
|
-
var
|
|
10240
|
+
var di = 2, _p = 0.16, T$ = 0.05, x$ = 0.05, C$ = 0.15, qx = 5, Ux = 4, A$ = [{
|
|
10240
10241
|
index: 7,
|
|
10241
10242
|
opacity: 0.15
|
|
10242
10243
|
}, {
|
|
@@ -10275,7 +10276,7 @@ function Mp(r) {
|
|
|
10275
10276
|
v: a.v
|
|
10276
10277
|
};
|
|
10277
10278
|
}
|
|
10278
|
-
function
|
|
10279
|
+
function pi(r) {
|
|
10279
10280
|
var e = r.r, t = r.g, n = r.b;
|
|
10280
10281
|
return "#".concat(z$(e, t, n));
|
|
10281
10282
|
}
|
|
@@ -10289,7 +10290,7 @@ function H$(r, e, t) {
|
|
|
10289
10290
|
}
|
|
10290
10291
|
function Tp(r, e, t) {
|
|
10291
10292
|
var n;
|
|
10292
|
-
return Math.round(r.h) >= 60 && Math.round(r.h) <= 240 ? n = t ? Math.round(r.h) -
|
|
10293
|
+
return Math.round(r.h) >= 60 && Math.round(r.h) <= 240 ? n = t ? Math.round(r.h) - di * e : Math.round(r.h) + di * e : n = t ? Math.round(r.h) + di * e : Math.round(r.h) - di * e, n < 0 ? n += 360 : n >= 360 && (n -= 360), n;
|
|
10293
10294
|
}
|
|
10294
10295
|
function xp(r, e, t) {
|
|
10295
10296
|
if (r.h === 0 && r.s === 0)
|
|
@@ -10303,16 +10304,16 @@ function Cp(r, e, t) {
|
|
|
10303
10304
|
}
|
|
10304
10305
|
function Bl(r) {
|
|
10305
10306
|
for (var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = [], n = Ta(r), a = qx; a > 0; a -= 1) {
|
|
10306
|
-
var f = Mp(n), h =
|
|
10307
|
+
var f = Mp(n), h = pi(Ta({
|
|
10307
10308
|
h: Tp(f, a, !0),
|
|
10308
10309
|
s: xp(f, a, !0),
|
|
10309
10310
|
v: Cp(f, a, !0)
|
|
10310
10311
|
}));
|
|
10311
10312
|
t.push(h);
|
|
10312
10313
|
}
|
|
10313
|
-
t.push(
|
|
10314
|
+
t.push(pi(n));
|
|
10314
10315
|
for (var m = 1; m <= Ux; m += 1) {
|
|
10315
|
-
var v = Mp(n), y =
|
|
10316
|
+
var v = Mp(n), y = pi(Ta({
|
|
10316
10317
|
h: Tp(v, m),
|
|
10317
10318
|
s: xp(v, m),
|
|
10318
10319
|
v: Cp(v, m)
|
|
@@ -10320,7 +10321,7 @@ function Bl(r) {
|
|
|
10320
10321
|
t.push(y);
|
|
10321
10322
|
}
|
|
10322
10323
|
return e.theme === "dark" ? A$.map(function(g) {
|
|
10323
|
-
var d = g.index, s = g.opacity, p =
|
|
10324
|
+
var d = g.index, s = g.opacity, p = pi(H$(Ta(e.backgroundColor || "#141414"), Ta(t[d]), s * 100));
|
|
10324
10325
|
return p;
|
|
10325
10326
|
}) : t;
|
|
10326
10327
|
}
|
|
@@ -10338,14 +10339,14 @@ var Cl = {
|
|
|
10338
10339
|
purple: "#722ED1",
|
|
10339
10340
|
magenta: "#EB2F96",
|
|
10340
10341
|
grey: "#666666"
|
|
10341
|
-
},
|
|
10342
|
+
}, Si = {}, Al = {};
|
|
10342
10343
|
Object.keys(Cl).forEach(function(r) {
|
|
10343
|
-
|
|
10344
|
+
Si[r] = Bl(Cl[r]), Si[r].primary = Si[r][5], Al[r] = Bl(Cl[r], {
|
|
10344
10345
|
theme: "dark",
|
|
10345
10346
|
backgroundColor: "#141414"
|
|
10346
10347
|
}), Al[r].primary = Al[r][5];
|
|
10347
10348
|
});
|
|
10348
|
-
var $$ =
|
|
10349
|
+
var $$ = Si.blue, L$ = Symbol("iconContext"), Yl = function() {
|
|
10349
10350
|
return oH(L$, {
|
|
10350
10351
|
prefixCls: Yt("anticon"),
|
|
10351
10352
|
rootClassName: Yt(""),
|
|
@@ -10559,7 +10560,7 @@ function Q$(r, e) {
|
|
|
10559
10560
|
a = n[f], !(e.indexOf(a) >= 0) && (t[a] = r[a]);
|
|
10560
10561
|
return t;
|
|
10561
10562
|
}
|
|
10562
|
-
function
|
|
10563
|
+
function zi(r) {
|
|
10563
10564
|
for (var e = 1; e < arguments.length; e++) {
|
|
10564
10565
|
var t = arguments[e] != null ? Object(arguments[e]) : {}, n = Object.keys(t);
|
|
10565
10566
|
typeof Object.getOwnPropertySymbols == "function" && (n = n.concat(Object.getOwnPropertySymbols(t).filter(function(a) {
|
|
@@ -10573,29 +10574,29 @@ function ji(r) {
|
|
|
10573
10574
|
function X$(r, e, t) {
|
|
10574
10575
|
return e in r ? Object.defineProperty(r, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = t, r;
|
|
10575
10576
|
}
|
|
10576
|
-
var
|
|
10577
|
+
var Ha = uH({
|
|
10577
10578
|
primaryColor: "#333",
|
|
10578
10579
|
secondaryColor: "#E6E6E6",
|
|
10579
10580
|
calculated: !1
|
|
10580
10581
|
});
|
|
10581
10582
|
function J$(r) {
|
|
10582
10583
|
var e = r.primaryColor, t = r.secondaryColor;
|
|
10583
|
-
|
|
10584
|
+
Ha.primaryColor = e, Ha.secondaryColor = t || Zx(e), Ha.calculated = !!t;
|
|
10584
10585
|
}
|
|
10585
10586
|
function K$() {
|
|
10586
|
-
return
|
|
10587
|
+
return zi({}, Ha);
|
|
10587
10588
|
}
|
|
10588
10589
|
var a1 = function(e, t) {
|
|
10589
|
-
var n =
|
|
10590
|
+
var n = zi({}, e, t.attrs), a = n.icon, f = n.primaryColor, h = n.secondaryColor, m = Y$(n, Z$), v = Ha;
|
|
10590
10591
|
if (f && (v = {
|
|
10591
10592
|
primaryColor: f,
|
|
10592
10593
|
secondaryColor: h || Zx(f)
|
|
10593
10594
|
}), Rl($p(a), "icon should be icon definiton, but got ".concat(a)), !$p(a))
|
|
10594
10595
|
return null;
|
|
10595
10596
|
var y = a;
|
|
10596
|
-
return y && typeof y.icon == "function" && (y =
|
|
10597
|
+
return y && typeof y.icon == "function" && (y = zi({}, y, {
|
|
10597
10598
|
icon: y.icon(v.primaryColor, v.secondaryColor)
|
|
10598
|
-
})), ql(y.icon, "svg-".concat(y.name),
|
|
10599
|
+
})), ql(y.icon, "svg-".concat(y.name), zi({}, m, {
|
|
10599
10600
|
"data-icon": y.name,
|
|
10600
10601
|
width: "1em",
|
|
10601
10602
|
height: "1em",
|
|
@@ -29228,18 +29229,18 @@ var Ad = function(e, t) {
|
|
|
29228
29229
|
Ad.displayName = "ZoomOutOutlined";
|
|
29229
29230
|
Ad.inheritAttrs = !1;
|
|
29230
29231
|
var zce = ["class", "component", "viewBox", "spin", "rotate", "tabindex", "onClick"];
|
|
29231
|
-
function
|
|
29232
|
+
function vi(r) {
|
|
29232
29233
|
for (var e = 1; e < arguments.length; e++) {
|
|
29233
29234
|
var t = arguments[e] != null ? Object(arguments[e]) : {}, n = Object.keys(t);
|
|
29234
29235
|
typeof Object.getOwnPropertySymbols == "function" && (n = n.concat(Object.getOwnPropertySymbols(t).filter(function(a) {
|
|
29235
29236
|
return Object.getOwnPropertyDescriptor(t, a).enumerable;
|
|
29236
29237
|
}))), n.forEach(function(a) {
|
|
29237
|
-
|
|
29238
|
+
ji(r, a, t[a]);
|
|
29238
29239
|
});
|
|
29239
29240
|
}
|
|
29240
29241
|
return r;
|
|
29241
29242
|
}
|
|
29242
|
-
function
|
|
29243
|
+
function ji(r, e, t) {
|
|
29243
29244
|
return e in r ? Object.defineProperty(r, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = t, r;
|
|
29244
29245
|
}
|
|
29245
29246
|
function jce(r, e) {
|
|
@@ -29259,13 +29260,13 @@ function _ce(r, e) {
|
|
|
29259
29260
|
a = n[f], !(e.indexOf(a) >= 0) && (t[a] = r[a]);
|
|
29260
29261
|
return t;
|
|
29261
29262
|
}
|
|
29262
|
-
var
|
|
29263
|
-
var n, a = t.attrs, f = t.slots, h =
|
|
29263
|
+
var Na = function(e, t) {
|
|
29264
|
+
var n, a = t.attrs, f = t.slots, h = vi({}, e, a), m = h.class, v = h.component, y = h.viewBox, g = h.spin, d = h.rotate, s = h.tabindex, p = h.onClick, w = jce(h, zce), z = Yl(), _ = z.prefixCls, S = z.rootClassName, j = f.default && f.default(), x = j && j.length, M = f.component;
|
|
29264
29265
|
Rl(!!(v || x || M), "Should have `component` prop/slot or `children`.");
|
|
29265
|
-
var A = (n = {},
|
|
29266
|
+
var A = (n = {}, ji(n, S.value, !!S.value), ji(n, _.value, !0), n), I = ji({}, "".concat(_.value, "-spin"), g === "" || !!g), V = d ? {
|
|
29266
29267
|
msTransform: "rotate(".concat(d, "deg)"),
|
|
29267
29268
|
transform: "rotate(".concat(d, "deg)")
|
|
29268
|
-
} : void 0, N =
|
|
29269
|
+
} : void 0, N = vi({}, q$, {
|
|
29269
29270
|
viewBox: y,
|
|
29270
29271
|
class: I,
|
|
29271
29272
|
style: V
|
|
@@ -29276,25 +29277,25 @@ var Ba = function(e, t) {
|
|
|
29276
29277
|
default: function() {
|
|
29277
29278
|
return [j];
|
|
29278
29279
|
}
|
|
29279
|
-
}) : M ? M(N) : x ? (Rl(!!y || j.length === 1 && j[0] && j[0].type === "use", "Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."), O("svg",
|
|
29280
|
+
}) : M ? M(N) : x ? (Rl(!!y || j.length === 1 && j[0] && j[0].type === "use", "Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."), O("svg", vi({}, N, {
|
|
29280
29281
|
viewBox: y
|
|
29281
29282
|
}), [j])) : null;
|
|
29282
29283
|
}, D = s;
|
|
29283
|
-
return D === void 0 && p && (D = -1, w.tabindex = D), O("span",
|
|
29284
|
+
return D === void 0 && p && (D = -1, w.tabindex = D), O("span", vi({
|
|
29284
29285
|
role: "img"
|
|
29285
29286
|
}, w, {
|
|
29286
29287
|
onClick: p,
|
|
29287
29288
|
class: [A, m]
|
|
29288
29289
|
}), [Z(), O(Jx, null, null)]);
|
|
29289
29290
|
};
|
|
29290
|
-
|
|
29291
|
+
Na.props = {
|
|
29291
29292
|
spin: Boolean,
|
|
29292
29293
|
rotate: Number,
|
|
29293
29294
|
viewBox: String,
|
|
29294
29295
|
ariaLabel: String
|
|
29295
29296
|
};
|
|
29296
|
-
|
|
29297
|
-
|
|
29297
|
+
Na.inheritAttrs = !1;
|
|
29298
|
+
Na.displayName = "Icon";
|
|
29298
29299
|
var Mce = ["type"];
|
|
29299
29300
|
function gx(r) {
|
|
29300
29301
|
for (var e = 1; e < arguments.length; e++) {
|
|
@@ -29351,7 +29352,7 @@ function Hce() {
|
|
|
29351
29352
|
"xlink:href": "#".concat(d)
|
|
29352
29353
|
}, null)), p && p.length && (w = p);
|
|
29353
29354
|
var z = gx({}, n, s);
|
|
29354
|
-
return O(
|
|
29355
|
+
return O(Na, z, {
|
|
29355
29356
|
default: function() {
|
|
29356
29357
|
return [w];
|
|
29357
29358
|
}
|
|
@@ -30155,7 +30156,7 @@ const Ul = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
30155
30156
|
ZoomInOutlined: Cd,
|
|
30156
30157
|
ZoomOutOutlined: Ad,
|
|
30157
30158
|
createFromIconfontCN: Hce,
|
|
30158
|
-
default:
|
|
30159
|
+
default: Na,
|
|
30159
30160
|
getTwoToneColor: Xx,
|
|
30160
30161
|
setTwoToneColor: Jl
|
|
30161
30162
|
}, Symbol.toStringTag, { value: "Module" })), $ce = { style: { display: "flex", "justify-content": "flex-end", padding: "8px" } }, Lce = { class: "gray-color" }, Ece = {
|
|
@@ -30915,13 +30916,13 @@ const Yce = /* @__PURE__ */ qt(Gce, [["render", Zce]]), Qce = {
|
|
|
30915
30916
|
},
|
|
30916
30917
|
previewFile(r) {
|
|
30917
30918
|
this.isSecure && this.$get(this.showUrl, { mediaUrl: r.newName, originalName: r.originalName }).then((e) => {
|
|
30918
|
-
this.isImage(e.data) ?
|
|
30919
|
+
this.isImage(e.data) ? Aa.info({
|
|
30919
30920
|
content: `<img src="${e.data}" alt="Image Preview" style="width:100%" />`
|
|
30920
30921
|
}) : r.originalName.endsWith(".pdf") && e.data.includes(".pdf") ? window.open(e.data, "_blank") : Ur.warning("不支持该类型文件查看");
|
|
30921
30922
|
});
|
|
30922
30923
|
},
|
|
30923
30924
|
download(r) {
|
|
30924
|
-
|
|
30925
|
+
Aa.confirm({
|
|
30925
30926
|
content: "确定下载?",
|
|
30926
30927
|
onOk: () => {
|
|
30927
30928
|
if (this.isSecure)
|
|
@@ -30937,7 +30938,7 @@ const Yce = /* @__PURE__ */ qt(Gce, [["render", Zce]]), Qce = {
|
|
|
30937
30938
|
});
|
|
30938
30939
|
},
|
|
30939
30940
|
deleteFile(r) {
|
|
30940
|
-
|
|
30941
|
+
Aa.confirm({
|
|
30941
30942
|
content: "确定删除?",
|
|
30942
30943
|
onOk: () => {
|
|
30943
30944
|
this.$postForm(this.deleteUrl, { mediaUrl: r.newName }).then((e) => {
|
|
@@ -38446,7 +38447,7 @@ var eC = { exports: {} };
|
|
|
38446
38447
|
var l2e = eC.exports;
|
|
38447
38448
|
const Hl = /* @__PURE__ */ T1(l2e);
|
|
38448
38449
|
var zn = -1, pn = 1, qr = 0;
|
|
38449
|
-
function
|
|
38450
|
+
function Ea(r, e, t, n) {
|
|
38450
38451
|
if (r === e)
|
|
38451
38452
|
return r ? [[qr, r]] : [];
|
|
38452
38453
|
if (t != null) {
|
|
@@ -38478,7 +38479,7 @@ function c2e(r, e) {
|
|
|
38478
38479
|
return [[zn, r], [pn, e]];
|
|
38479
38480
|
var h = u2e(r, e);
|
|
38480
38481
|
if (h) {
|
|
38481
|
-
var m = h[0], v = h[1], y = h[2], g = h[3], d = h[4], s =
|
|
38482
|
+
var m = h[0], v = h[1], y = h[2], g = h[3], d = h[4], s = Ea(m, y), p = Ea(v, g);
|
|
38482
38483
|
return s.concat([[qr, d]], p);
|
|
38483
38484
|
}
|
|
38484
38485
|
return o2e(r, e);
|
|
@@ -38528,7 +38529,7 @@ function o2e(r, e) {
|
|
|
38528
38529
|
return [[zn, r], [pn, e]];
|
|
38529
38530
|
}
|
|
38530
38531
|
function mx(r, e, t, n) {
|
|
38531
|
-
var a = r.substring(0, t), f = e.substring(0, n), h = r.substring(t), m = e.substring(n), v =
|
|
38532
|
+
var a = r.substring(0, t), f = e.substring(0, n), h = r.substring(t), m = e.substring(n), v = Ea(a, f), y = Ea(h, m);
|
|
38532
38533
|
return v.concat(y);
|
|
38533
38534
|
}
|
|
38534
38535
|
function Hd(r, e) {
|
|
@@ -38698,7 +38699,7 @@ function s2e(r, e, t) {
|
|
|
38698
38699
|
return null;
|
|
38699
38700
|
}
|
|
38700
38701
|
function Ei(r, e, t) {
|
|
38701
|
-
return
|
|
38702
|
+
return Ea(r, e, t, !0);
|
|
38702
38703
|
}
|
|
38703
38704
|
Ei.INSERT = pn;
|
|
38704
38705
|
Ei.DELETE = zn;
|
|
@@ -39676,14 +39677,14 @@ var d2e = oC(lC), p2e = oC(cC), Wl;
|
|
|
39676
39677
|
r.transform = a;
|
|
39677
39678
|
})(Wl || (Wl = {}));
|
|
39678
39679
|
Ld.default = Wl;
|
|
39679
|
-
var
|
|
39680
|
+
var gi = {}, mi = {}, bx;
|
|
39680
39681
|
function v2e() {
|
|
39681
|
-
if (bx) return
|
|
39682
|
+
if (bx) return mi;
|
|
39682
39683
|
bx = 1;
|
|
39683
39684
|
var r = Rt && Rt.__importDefault || function(n) {
|
|
39684
39685
|
return n && n.__esModule ? n : { default: n };
|
|
39685
39686
|
};
|
|
39686
|
-
Object.defineProperty(
|
|
39687
|
+
Object.defineProperty(mi, "__esModule", { value: !0 });
|
|
39687
39688
|
var e = r(uC()), t = (
|
|
39688
39689
|
/** @class */
|
|
39689
39690
|
function() {
|
|
@@ -39719,16 +39720,16 @@ function v2e() {
|
|
|
39719
39720
|
}, n;
|
|
39720
39721
|
}()
|
|
39721
39722
|
);
|
|
39722
|
-
return
|
|
39723
|
+
return mi.default = t, mi;
|
|
39723
39724
|
}
|
|
39724
39725
|
var Ox;
|
|
39725
39726
|
function uC() {
|
|
39726
|
-
if (Ox) return
|
|
39727
|
+
if (Ox) return gi;
|
|
39727
39728
|
Ox = 1;
|
|
39728
39729
|
var r = Rt && Rt.__importDefault || function(n) {
|
|
39729
39730
|
return n && n.__esModule ? n : { default: n };
|
|
39730
39731
|
};
|
|
39731
|
-
Object.defineProperty(
|
|
39732
|
+
Object.defineProperty(gi, "__esModule", { value: !0 });
|
|
39732
39733
|
var e = r(v2e()), t;
|
|
39733
39734
|
return function(n) {
|
|
39734
39735
|
function a(h) {
|
|
@@ -39739,11 +39740,11 @@ function uC() {
|
|
|
39739
39740
|
return typeof h.delete == "number" ? h.delete : typeof h.retain == "number" ? h.retain : typeof h.insert == "string" ? h.insert.length : 1;
|
|
39740
39741
|
}
|
|
39741
39742
|
n.length = f;
|
|
39742
|
-
}(t || (t = {})),
|
|
39743
|
+
}(t || (t = {})), gi.default = t, gi;
|
|
39743
39744
|
}
|
|
39744
|
-
var
|
|
39745
|
+
var Ba = Rt && Rt.__importDefault || function(r) {
|
|
39745
39746
|
return r && r.__esModule ? r : { default: r };
|
|
39746
|
-
},
|
|
39747
|
+
}, bi = Ba(h2e), g2e = Ba(lC), Ll = Ba(cC), xa = Ba(Ld), Sr = Ba(uC()), m2e = "\0", b2e = (
|
|
39747
39748
|
/** @class */
|
|
39748
39749
|
function() {
|
|
39749
39750
|
function r(e) {
|
|
@@ -39844,18 +39845,18 @@ var Ia = Rt && Rt.__importDefault || function(r) {
|
|
|
39844
39845
|
var g = v === e ? "on" : "with";
|
|
39845
39846
|
throw new Error("diff() called " + g + " non-document");
|
|
39846
39847
|
}).join("");
|
|
39847
|
-
}), a = new r(), f =
|
|
39848
|
+
}), a = new r(), f = bi.default(n[0], n[1], t), h = Sr.default.iterator(this.ops), m = Sr.default.iterator(e.ops);
|
|
39848
39849
|
return f.forEach(function(v) {
|
|
39849
39850
|
for (var y = v[1].length; y > 0; ) {
|
|
39850
39851
|
var g = 0;
|
|
39851
39852
|
switch (v[0]) {
|
|
39852
|
-
case
|
|
39853
|
+
case bi.default.INSERT:
|
|
39853
39854
|
g = Math.min(m.peekLength(), y), a.push(m.next(g));
|
|
39854
39855
|
break;
|
|
39855
|
-
case
|
|
39856
|
+
case bi.default.DELETE:
|
|
39856
39857
|
g = Math.min(y, h.peekLength()), h.next(g), a.delete(g);
|
|
39857
39858
|
break;
|
|
39858
|
-
case
|
|
39859
|
+
case bi.default.EQUAL:
|
|
39859
39860
|
g = Math.min(h.peekLength(), m.peekLength(), y);
|
|
39860
39861
|
var d = h.next(g), s = m.next(g);
|
|
39861
39862
|
Ll.default(d.insert, s.insert) ? a.retain(g, xa.default.diff(d.attributes, s.attributes)) : a.push(s).delete(g);
|
|
@@ -40027,7 +40028,7 @@ const yx = {
|
|
|
40027
40028
|
"ready"
|
|
40028
40029
|
],
|
|
40029
40030
|
setup: (r, e) => {
|
|
40030
|
-
|
|
40031
|
+
Va(() => {
|
|
40031
40032
|
f();
|
|
40032
40033
|
}), xx(() => {
|
|
40033
40034
|
t = null;
|
|
@@ -40246,7 +40247,7 @@ function S2e(r, e, t, n, a, f) {
|
|
|
40246
40247
|
],
|
|
40247
40248
|
options: a.editorOption,
|
|
40248
40249
|
contentType: "html",
|
|
40249
|
-
style:
|
|
40250
|
+
style: Mi("height: " + this.height + "px;"),
|
|
40250
40251
|
readOnly: f.see || t.readonly,
|
|
40251
40252
|
placeholder: t.placeholder
|
|
40252
40253
|
}, null, 8, ["content", "options", "style", "readOnly", "placeholder"]);
|
|
@@ -41809,7 +41810,7 @@ function dC() {
|
|
|
41809
41810
|
return { curve: n, G: h, n: m };
|
|
41810
41811
|
}
|
|
41811
41812
|
function Q2e(r, e, t) {
|
|
41812
|
-
const a = (r ? new vn(r, e, t) : new vn(jx.bitLength(), G2e)).mod(jx.subtract(vn.ONE)).add(vn.ONE), f =
|
|
41813
|
+
const a = (r ? new vn(r, e, t) : new vn(jx.bitLength(), G2e)).mod(jx.subtract(vn.ONE)).add(vn.ONE), f = $a(a.toString(16), 64), h = Z2e.multiply(a), m = $a(h.getX().toBigInteger().toString(16), 64), v = $a(h.getY().toBigInteger().toString(16), 64), y = "04" + m + v;
|
|
41813
41814
|
return { privateKey: f, publicKey: y };
|
|
41814
41815
|
}
|
|
41815
41816
|
function X2e(r) {
|
|
@@ -41830,7 +41831,7 @@ function J2e(r) {
|
|
|
41830
41831
|
}
|
|
41831
41832
|
return n.join("");
|
|
41832
41833
|
}
|
|
41833
|
-
function
|
|
41834
|
+
function $a(r, e) {
|
|
41834
41835
|
return r.length >= e ? r : new Array(e - r.length + 1).join("0") + r;
|
|
41835
41836
|
}
|
|
41836
41837
|
function K2e(r) {
|
|
@@ -41855,7 +41856,7 @@ function eoe(r) {
|
|
|
41855
41856
|
function toe(r) {
|
|
41856
41857
|
const e = [];
|
|
41857
41858
|
let t = r.length;
|
|
41858
|
-
t % 2 !== 0 && (r =
|
|
41859
|
+
t % 2 !== 0 && (r = $a(r, t + 1)), t = r.length;
|
|
41859
41860
|
for (let n = 0; n < t; n += 2)
|
|
41860
41861
|
e.push(parseInt(r.substr(n, 2), 16));
|
|
41861
41862
|
return e;
|
|
@@ -41878,7 +41879,7 @@ var aoe = {
|
|
|
41878
41879
|
generateKeyPairHex: Q2e,
|
|
41879
41880
|
compressPublicKeyHex: X2e,
|
|
41880
41881
|
utf8ToHex: J2e,
|
|
41881
|
-
leftPad:
|
|
41882
|
+
leftPad: $a,
|
|
41882
41883
|
arrayToHex: K2e,
|
|
41883
41884
|
arrayToUtf8: eoe,
|
|
41884
41885
|
hexToArray: toe,
|
|
@@ -41901,7 +41902,7 @@ function ioe(r) {
|
|
|
41901
41902
|
function loe(r) {
|
|
41902
41903
|
return r ^ an(r, 15) ^ an(r, 23);
|
|
41903
41904
|
}
|
|
41904
|
-
function
|
|
41905
|
+
function _i(r) {
|
|
41905
41906
|
let e = r.length * 8, t = e % 512;
|
|
41906
41907
|
t = t >= 448 ? 512 - t % 448 - 1 : 448 - t - 1;
|
|
41907
41908
|
const n = new Array((t - 7) / 8), a = new Array(8);
|
|
@@ -41936,16 +41937,16 @@ function Mi(r) {
|
|
|
41936
41937
|
}
|
|
41937
41938
|
return y;
|
|
41938
41939
|
}
|
|
41939
|
-
const
|
|
41940
|
-
for (let r = 0; r <
|
|
41940
|
+
const Fa = 64, pC = new Uint8Array(Fa), vC = new Uint8Array(Fa);
|
|
41941
|
+
for (let r = 0; r < Fa; r++)
|
|
41941
41942
|
pC[r] = 54, vC[r] = 92;
|
|
41942
41943
|
function coe(r, e) {
|
|
41943
|
-
for (e.length >
|
|
41944
|
-
const t = _x(e, pC), n = _x(e, vC), a =
|
|
41945
|
-
return
|
|
41944
|
+
for (e.length > Fa && (e = _i(e)); e.length < Fa; ) e.push(0);
|
|
41945
|
+
const t = _x(e, pC), n = _x(e, vC), a = _i([...t, ...r]);
|
|
41946
|
+
return _i([...n, ...a]);
|
|
41946
41947
|
}
|
|
41947
41948
|
var gC = {
|
|
41948
|
-
sm3:
|
|
41949
|
+
sm3: _i,
|
|
41949
41950
|
hmac: coe
|
|
41950
41951
|
};
|
|
41951
41952
|
const { BigInteger: Jr } = Fi, { encodeDer: ooe, decodeDer: uoe } = R2e, ot = aoe, ra = gC.sm3, { G: _1, curve: mC, n: J1 } = ot.generateEcparam(), bC = 0;
|
|
@@ -42091,7 +42092,7 @@ var yoe = function(r, e) {
|
|
|
42091
42092
|
}
|
|
42092
42093
|
return Mx(voe(r));
|
|
42093
42094
|
};
|
|
42094
|
-
const Jn = 0, woe = 32, j1 = 16,
|
|
42095
|
+
const Jn = 0, woe = 32, j1 = 16, Oi = [
|
|
42095
42096
|
214,
|
|
42096
42097
|
144,
|
|
42097
42098
|
233,
|
|
@@ -42348,7 +42349,7 @@ const Jn = 0, woe = 32, j1 = 16, yi = [
|
|
|
42348
42349
|
203,
|
|
42349
42350
|
57,
|
|
42350
42351
|
72
|
|
42351
|
-
],
|
|
42352
|
+
], yi = [
|
|
42352
42353
|
462357,
|
|
42353
42354
|
472066609,
|
|
42354
42355
|
943670861,
|
|
@@ -42419,12 +42420,12 @@ function K1(r, e) {
|
|
|
42419
42420
|
return r << t | r >>> 32 - t;
|
|
42420
42421
|
}
|
|
42421
42422
|
function t1(r) {
|
|
42422
|
-
return (
|
|
42423
|
+
return (Oi[r >>> 24 & 255] & 255) << 24 | (Oi[r >>> 16 & 255] & 255) << 16 | (Oi[r >>> 8 & 255] & 255) << 8 | Oi[r & 255] & 255;
|
|
42423
42424
|
}
|
|
42424
|
-
function
|
|
42425
|
+
function wi(r) {
|
|
42425
42426
|
return r ^ K1(r, 2) ^ K1(r, 10) ^ K1(r, 18) ^ K1(r, 24);
|
|
42426
42427
|
}
|
|
42427
|
-
function
|
|
42428
|
+
function Pi(r) {
|
|
42428
42429
|
return r ^ K1(r, 13) ^ K1(r, 23);
|
|
42429
42430
|
}
|
|
42430
42431
|
function joe(r, e, t) {
|
|
@@ -42432,7 +42433,7 @@ function joe(r, e, t) {
|
|
|
42432
42433
|
for (let f = 0; f < 4; f++)
|
|
42433
42434
|
a[0] = r[4 * f] & 255, a[1] = r[4 * f + 1] & 255, a[2] = r[4 * f + 2] & 255, a[3] = r[4 * f + 3] & 255, n[f] = a[0] << 24 | a[1] << 16 | a[2] << 8 | a[3];
|
|
42434
42435
|
for (let f = 0, h; f < 32; f += 4)
|
|
42435
|
-
h = n[1] ^ n[2] ^ n[3] ^ t[f + 0], n[0] ^=
|
|
42436
|
+
h = n[1] ^ n[2] ^ n[3] ^ t[f + 0], n[0] ^= wi(t1(h)), h = n[2] ^ n[3] ^ n[0] ^ t[f + 1], n[1] ^= wi(t1(h)), h = n[3] ^ n[0] ^ n[1] ^ t[f + 2], n[2] ^= wi(t1(h)), h = n[0] ^ n[1] ^ n[2] ^ t[f + 3], n[3] ^= wi(t1(h));
|
|
42436
42437
|
for (let f = 0; f < 16; f += 4)
|
|
42437
42438
|
e[f] = n[3 - f / 4] >>> 24 & 255, e[f + 1] = n[3 - f / 4] >>> 16 & 255, e[f + 2] = n[3 - f / 4] >>> 8 & 255, e[f + 3] = n[3 - f / 4] & 255;
|
|
42438
42439
|
}
|
|
@@ -42442,7 +42443,7 @@ function _oe(r, e, t) {
|
|
|
42442
42443
|
a[0] = r[0 + 4 * f] & 255, a[1] = r[1 + 4 * f] & 255, a[2] = r[2 + 4 * f] & 255, a[3] = r[3 + 4 * f] & 255, n[f] = a[0] << 24 | a[1] << 16 | a[2] << 8 | a[3];
|
|
42443
42444
|
n[0] ^= 2746333894, n[1] ^= 1453994832, n[2] ^= 1736282519, n[3] ^= 2993693404;
|
|
42444
42445
|
for (let f = 0, h; f < 32; f += 4)
|
|
42445
|
-
h = n[1] ^ n[2] ^ n[3] ^
|
|
42446
|
+
h = n[1] ^ n[2] ^ n[3] ^ yi[f + 0], e[f + 0] = n[0] ^= Pi(t1(h)), h = n[2] ^ n[3] ^ n[0] ^ yi[f + 1], e[f + 1] = n[1] ^= Pi(t1(h)), h = n[3] ^ n[0] ^ n[1] ^ yi[f + 2], e[f + 2] = n[2] ^= Pi(t1(h)), h = n[0] ^ n[1] ^ n[2] ^ yi[f + 3], e[f + 3] = n[3] ^= Pi(t1(h));
|
|
42446
42447
|
if (t === Jn)
|
|
42447
42448
|
for (let f = 0, h; f < 16; f++)
|
|
42448
42449
|
h = e[f], e[f] = e[31 - f], e[31 - f] = h;
|
|
@@ -42543,7 +42544,7 @@ const Toe = {
|
|
|
42543
42544
|
},
|
|
42544
42545
|
logout() {
|
|
42545
42546
|
let r = this;
|
|
42546
|
-
|
|
42547
|
+
Aa.confirm({
|
|
42547
42548
|
title: "确定退出登录?",
|
|
42548
42549
|
okText: "确定",
|
|
42549
42550
|
cancelText: "取消",
|
|
@@ -42595,7 +42596,7 @@ function Foe(r, e, t, n, a, f) {
|
|
|
42595
42596
|
O(y, { placement: "bottomRight" }, {
|
|
42596
42597
|
content: Fe(() => [
|
|
42597
42598
|
It("div", Coe, [
|
|
42598
|
-
(nt(!0), Cr(r1, null,
|
|
42599
|
+
(nt(!0), Cr(r1, null, La(f.systems, (A, I) => (nt(), Cr("div", {
|
|
42599
42600
|
class: Cx(["card-container", { selected: a.selectedCard === I }]),
|
|
42600
42601
|
key: I,
|
|
42601
42602
|
onClick: (V) => f.handleClick(A, I)
|