@harbour-enterprises/superdoc 0.9.25 → 0.9.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{index-DjLrg1eZ.es.js → index-8ZIOYegI.es.js} +2 -2
- package/dist/chunks/{index-BXKGjuVW.cjs → index-C4-w9MLl.cjs} +1 -1
- package/dist/chunks/{index-CqRwYOdx.cjs → index-ChNh-3hE.cjs} +1 -1
- package/dist/chunks/{index-dZKHAFXF.es.js → index-DlBXCtmW.es.js} +1 -1
- package/dist/chunks/{super-editor.es-h2nZfGPP.cjs → super-editor.es-BmgYyGKY.cjs} +48 -48
- package/dist/chunks/{super-editor.es-CIN79FjT.es.js → super-editor.es-Bz5G8OfN.es.js} +741 -741
- package/dist/chunks/{url-BxDGAI6E.es.js → url-B0oWkmAx.es.js} +1 -1
- package/dist/chunks/{url-6Xu7gR4T.cjs → url-CzUL97Mg.cjs} +1 -1
- package/dist/chunks/{xml-js-BAML2_fM.es.js → xml-js-DLnxZypp.es.js} +303 -296
- package/dist/chunks/xml-js-zfoNze4t.cjs +10 -0
- package/dist/style.css +1 -1
- package/dist/super-editor/chunks/{converter-sW9TD9S-.js → converter-DEtWG6G4.js} +2 -2
- package/dist/super-editor/chunks/{docx-zipper-CtBfaHzU.js → docx-zipper-D9FasgZg.js} +1 -1
- package/dist/super-editor/chunks/{editor--8YB7Owp.js → editor-CahjULDe.js} +414 -414
- package/dist/super-editor/chunks/{toolbar-DxQCXy5M.js → toolbar-BVR5rTW2.js} +2 -2
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/docx-zipper.es.js +2 -2
- package/dist/super-editor/editor.es.js +3 -3
- package/dist/super-editor/file-zipper.es.js +1 -1
- package/dist/super-editor/style.css +1 -1
- package/dist/super-editor/super-editor.es.js +6 -6
- package/dist/super-editor/toolbar.es.js +2 -2
- package/dist/super-editor.cjs +1 -1
- package/dist/super-editor.es.js +1 -1
- package/dist/superdoc.cjs +3 -3
- package/dist/superdoc.es.js +6 -6
- package/dist/superdoc.umd.js +419 -419
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/xml-js-zhwNEV5e.cjs +0 -10
package/dist/superdoc.umd.js
CHANGED
|
@@ -8763,9 +8763,9 @@
|
|
|
8763
8763
|
return Li$2 || (Li$2 = 1, kr$1 = hi$2().EventEmitter), kr$1;
|
|
8764
8764
|
}
|
|
8765
8765
|
const xr$2 = /* @__PURE__ */ Tu$2(Zu$2);
|
|
8766
|
-
var Nr$1 = {}, Ir$1 = {}, Rr, _i$2;
|
|
8766
|
+
var Nr$1 = {}, Ir$1 = {}, Rr$1, _i$2;
|
|
8767
8767
|
function Ho$2() {
|
|
8768
|
-
return _i$2 || (_i$2 = 1, Rr = function() {
|
|
8768
|
+
return _i$2 || (_i$2 = 1, Rr$1 = function() {
|
|
8769
8769
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
8770
8770
|
return false;
|
|
8771
8771
|
if (typeof Symbol.iterator == "symbol")
|
|
@@ -8791,16 +8791,16 @@
|
|
|
8791
8791
|
return false;
|
|
8792
8792
|
}
|
|
8793
8793
|
return true;
|
|
8794
|
-
}), Rr;
|
|
8794
|
+
}), Rr$1;
|
|
8795
8795
|
}
|
|
8796
|
-
var Or
|
|
8796
|
+
var Or, qi$2;
|
|
8797
8797
|
function Ar$1() {
|
|
8798
|
-
if (qi$2) return Or
|
|
8798
|
+
if (qi$2) return Or;
|
|
8799
8799
|
qi$2 = 1;
|
|
8800
8800
|
var r22 = Ho$2();
|
|
8801
|
-
return Or
|
|
8801
|
+
return Or = function() {
|
|
8802
8802
|
return r22() && !!Symbol.toStringTag;
|
|
8803
|
-
}, Or
|
|
8803
|
+
}, Or;
|
|
8804
8804
|
}
|
|
8805
8805
|
var Pr$1, Mi$2;
|
|
8806
8806
|
function Vo$1() {
|
|
@@ -8818,13 +8818,13 @@
|
|
|
8818
8818
|
function ol$2() {
|
|
8819
8819
|
return Hi$2 || (Hi$2 = 1, qr$2 = RangeError), qr$2;
|
|
8820
8820
|
}
|
|
8821
|
-
var Mr$
|
|
8821
|
+
var Mr$2, Vi$2;
|
|
8822
8822
|
function al$2() {
|
|
8823
|
-
return Vi$2 || (Vi$2 = 1, Mr$
|
|
8823
|
+
return Vi$2 || (Vi$2 = 1, Mr$2 = ReferenceError), Mr$2;
|
|
8824
8824
|
}
|
|
8825
|
-
var Ur$
|
|
8825
|
+
var Ur$1, zi$2;
|
|
8826
8826
|
function zo$2() {
|
|
8827
|
-
return zi$2 || (zi$2 = 1, Ur$
|
|
8827
|
+
return zi$2 || (zi$2 = 1, Ur$1 = SyntaxError), Ur$1;
|
|
8828
8828
|
}
|
|
8829
8829
|
var jr, Gi$2;
|
|
8830
8830
|
function Wt$3() {
|
|
@@ -9479,9 +9479,9 @@
|
|
|
9479
9479
|
return v !== f3 && v !== c3 && !/^\[object HTML/.test(v) ? false : o(N3);
|
|
9480
9480
|
}, xn$3;
|
|
9481
9481
|
}
|
|
9482
|
-
var An$
|
|
9482
|
+
var An$1, vs$1;
|
|
9483
9483
|
function Tl$2() {
|
|
9484
|
-
if (vs$1) return An$
|
|
9484
|
+
if (vs$1) return An$1;
|
|
9485
9485
|
vs$1 = 1;
|
|
9486
9486
|
var r22 = Sl$2(), e = Object.prototype.toString, t = Object.prototype.hasOwnProperty, n = function(u, f3, c3) {
|
|
9487
9487
|
for (var h3 = 0, g = u.length; h3 < g; h3++)
|
|
@@ -9496,12 +9496,12 @@
|
|
|
9496
9496
|
function o(a) {
|
|
9497
9497
|
return e.call(a) === "[object Array]";
|
|
9498
9498
|
}
|
|
9499
|
-
return An$
|
|
9499
|
+
return An$1 = function(u, f3, c3) {
|
|
9500
9500
|
if (!r22(f3))
|
|
9501
9501
|
throw new TypeError("iterator must be a function");
|
|
9502
9502
|
var h3;
|
|
9503
9503
|
arguments.length >= 3 && (h3 = c3), o(u) ? n(u, f3, h3) : typeof u == "string" ? i3(u, f3, h3) : s(u, f3, h3);
|
|
9504
|
-
}, An$
|
|
9504
|
+
}, An$1;
|
|
9505
9505
|
}
|
|
9506
9506
|
var Dn$3, Cs$1;
|
|
9507
9507
|
function Fl$2() {
|
|
@@ -9531,12 +9531,12 @@
|
|
|
9531
9531
|
return n;
|
|
9532
9532
|
}, En$2;
|
|
9533
9533
|
}
|
|
9534
|
-
var vn$
|
|
9534
|
+
var vn$3 = { exports: {} }, Cn$2, Ts$1;
|
|
9535
9535
|
function kl$2() {
|
|
9536
|
-
if (Ts$1) return Cn$
|
|
9536
|
+
if (Ts$1) return Cn$2;
|
|
9537
9537
|
Ts$1 = 1;
|
|
9538
9538
|
var r22 = Dr$1(), e = zo$2(), t = Wt$3(), n = Nt$4();
|
|
9539
|
-
return Cn$
|
|
9539
|
+
return Cn$2 = function(s, o, a) {
|
|
9540
9540
|
if (!s || typeof s != "object" && typeof s != "function")
|
|
9541
9541
|
throw new t("`obj` must be an object or a function`");
|
|
9542
9542
|
if (typeof o != "string" && typeof o != "symbol")
|
|
@@ -9561,7 +9561,7 @@
|
|
|
9561
9561
|
s[o] = a;
|
|
9562
9562
|
else
|
|
9563
9563
|
throw new e("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
9564
|
-
}, Cn$
|
|
9564
|
+
}, Cn$2;
|
|
9565
9565
|
}
|
|
9566
9566
|
var Sn$3, Fs$1;
|
|
9567
9567
|
function Nl$2() {
|
|
@@ -9631,7 +9631,7 @@
|
|
|
9631
9631
|
true
|
|
9632
9632
|
);
|
|
9633
9633
|
}, t ? t(r22.exports, "apply", { value: i3 }) : r22.exports.apply = i3;
|
|
9634
|
-
}(vn$
|
|
9634
|
+
}(vn$3)), vn$3.exports;
|
|
9635
9635
|
}
|
|
9636
9636
|
var Bn$2, Is$1;
|
|
9637
9637
|
function Xo$1() {
|
|
@@ -10836,16 +10836,16 @@
|
|
|
10836
10836
|
p3(O3);
|
|
10837
10837
|
}, _n$3;
|
|
10838
10838
|
}
|
|
10839
|
-
var qn$
|
|
10839
|
+
var qn$2, Vs$1;
|
|
10840
10840
|
function St$2() {
|
|
10841
|
-
if (Vs$1) return qn$
|
|
10841
|
+
if (Vs$1) return qn$2;
|
|
10842
10842
|
Vs$1 = 1;
|
|
10843
10843
|
var r22 = Object.keys || function(f3) {
|
|
10844
10844
|
var c3 = [];
|
|
10845
10845
|
for (var h3 in f3) c3.push(h3);
|
|
10846
10846
|
return c3;
|
|
10847
10847
|
};
|
|
10848
|
-
qn$
|
|
10848
|
+
qn$2 = o;
|
|
10849
10849
|
var e = ta$1(), t = ea$1();
|
|
10850
10850
|
yt$2()(o, e);
|
|
10851
10851
|
for (var n = r22(t.prototype), i3 = 0; i3 < n.length; i3++) {
|
|
@@ -10898,9 +10898,9 @@
|
|
|
10898
10898
|
set: function(c3) {
|
|
10899
10899
|
this._readableState === void 0 || this._writableState === void 0 || (this._readableState.destroyed = c3, this._writableState.destroyed = c3);
|
|
10900
10900
|
}
|
|
10901
|
-
}), qn$
|
|
10901
|
+
}), qn$2;
|
|
10902
10902
|
}
|
|
10903
|
-
var Mn$
|
|
10903
|
+
var Mn$2 = {}, Qt$2 = { exports: {} }, zs$1;
|
|
10904
10904
|
function Ul$2() {
|
|
10905
10905
|
return zs$1 || (zs$1 = 1, function(r22, e) {
|
|
10906
10906
|
var t = xr$2, n = t.Buffer;
|
|
@@ -10934,7 +10934,7 @@
|
|
|
10934
10934
|
}
|
|
10935
10935
|
var Gs$1;
|
|
10936
10936
|
function si$2() {
|
|
10937
|
-
if (Gs$1) return Mn$
|
|
10937
|
+
if (Gs$1) return Mn$2;
|
|
10938
10938
|
Gs$1 = 1;
|
|
10939
10939
|
var r22 = Ul$2().Buffer, e = r22.isEncoding || function(w) {
|
|
10940
10940
|
switch (w = "" + w, w && w.toLowerCase()) {
|
|
@@ -10983,7 +10983,7 @@
|
|
|
10983
10983
|
if (typeof k != "string" && (r22.isEncoding === e || !e(w))) throw new Error("Unknown encoding: " + w);
|
|
10984
10984
|
return k || w;
|
|
10985
10985
|
}
|
|
10986
|
-
Mn$
|
|
10986
|
+
Mn$2.StringDecoder = i3;
|
|
10987
10987
|
function i3(w) {
|
|
10988
10988
|
this.encoding = n(w);
|
|
10989
10989
|
var k;
|
|
@@ -11088,7 +11088,7 @@
|
|
|
11088
11088
|
function B(w) {
|
|
11089
11089
|
return w && w.length ? this.write(w) : "";
|
|
11090
11090
|
}
|
|
11091
|
-
return Mn$
|
|
11091
|
+
return Mn$2;
|
|
11092
11092
|
}
|
|
11093
11093
|
var Un$2, Ws$1;
|
|
11094
11094
|
function xi$2() {
|
|
@@ -11269,10 +11269,10 @@
|
|
|
11269
11269
|
throw new Error("Readable.from is not available in the browser");
|
|
11270
11270
|
}), Hn$2;
|
|
11271
11271
|
}
|
|
11272
|
-
var Vn$
|
|
11272
|
+
var Vn$3, $s$1;
|
|
11273
11273
|
function ta$1() {
|
|
11274
|
-
if ($s$1) return Vn$
|
|
11275
|
-
$s$1 = 1, Vn$
|
|
11274
|
+
if ($s$1) return Vn$3;
|
|
11275
|
+
$s$1 = 1, Vn$3 = C;
|
|
11276
11276
|
var r22;
|
|
11277
11277
|
C.ReadableState = M, hi$2().EventEmitter;
|
|
11278
11278
|
var e = function(x, _) {
|
|
@@ -11605,12 +11605,12 @@
|
|
|
11605
11605
|
if (b[_] === x) return _;
|
|
11606
11606
|
return -1;
|
|
11607
11607
|
}
|
|
11608
|
-
return Vn$
|
|
11608
|
+
return Vn$3;
|
|
11609
11609
|
}
|
|
11610
|
-
var zn$
|
|
11610
|
+
var zn$3, Xs$1;
|
|
11611
11611
|
function ra$2() {
|
|
11612
|
-
if (Xs$1) return zn$
|
|
11613
|
-
Xs$1 = 1, zn$
|
|
11612
|
+
if (Xs$1) return zn$3;
|
|
11613
|
+
Xs$1 = 1, zn$3 = a;
|
|
11614
11614
|
var r22 = It$2().codes, e = r22.ERR_METHOD_NOT_IMPLEMENTED, t = r22.ERR_MULTIPLE_CALLBACK, n = r22.ERR_TRANSFORM_ALREADY_TRANSFORMING, i3 = r22.ERR_TRANSFORM_WITH_LENGTH_0, s = St$2();
|
|
11615
11615
|
yt$2()(a, s);
|
|
11616
11616
|
function o(c3, h3) {
|
|
@@ -11664,7 +11664,7 @@
|
|
|
11664
11664
|
if (c3._transformState.transforming) throw new n();
|
|
11665
11665
|
return c3.push(null);
|
|
11666
11666
|
}
|
|
11667
|
-
return zn$
|
|
11667
|
+
return zn$3;
|
|
11668
11668
|
}
|
|
11669
11669
|
var Gn$3, Ys;
|
|
11670
11670
|
function Vl$2() {
|
|
@@ -13038,9 +13038,9 @@ Actual: ` + p3.attribValue
|
|
|
13038
13038
|
var n = r22.random || (r22.rng || bc$2)();
|
|
13039
13039
|
return n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, Dc$2(n);
|
|
13040
13040
|
}
|
|
13041
|
-
var lr$
|
|
13041
|
+
var lr$2 = { exports: {} };
|
|
13042
13042
|
/*! https://mths.be/he v1.2.0 by @mathias | MIT license */
|
|
13043
|
-
lr$
|
|
13043
|
+
lr$2.exports;
|
|
13044
13044
|
(function(r22, e) {
|
|
13045
13045
|
(function(t) {
|
|
13046
13046
|
var n = e, i3 = r22 && r22.exports == n && r22, s = typeof We$2 == "object" && We$2;
|
|
@@ -13147,8 +13147,8 @@ Actual: ` + p3.attribValue
|
|
|
13147
13147
|
else
|
|
13148
13148
|
t.he = Q3;
|
|
13149
13149
|
})(We$2);
|
|
13150
|
-
})(lr$
|
|
13151
|
-
var Ec$2 = lr$
|
|
13150
|
+
})(lr$2, lr$2.exports);
|
|
13151
|
+
var Ec$2 = lr$2.exports;
|
|
13152
13152
|
const vc$2 = /* @__PURE__ */ Oo$2(Ec$2);
|
|
13153
13153
|
function Ne$3(r22) {
|
|
13154
13154
|
this.content = r22;
|
|
@@ -13552,9 +13552,9 @@ Actual: ` + p3.attribValue
|
|
|
13552
13552
|
}
|
|
13553
13553
|
}
|
|
13554
13554
|
Z.empty = new Z([], 0);
|
|
13555
|
-
const $n$
|
|
13555
|
+
const $n$2 = { index: 0, offset: 0 };
|
|
13556
13556
|
function er$2(r22, e) {
|
|
13557
|
-
return $n$
|
|
13557
|
+
return $n$2.index = r22, $n$2.offset = e, $n$2;
|
|
13558
13558
|
}
|
|
13559
13559
|
function cr$1(r22, e) {
|
|
13560
13560
|
if (r22 === e)
|
|
@@ -13807,7 +13807,7 @@ Actual: ` + p3.attribValue
|
|
|
13807
13807
|
let { start: o, end: a } = Sc$2(t, r22);
|
|
13808
13808
|
return ht$1(s, Ea$2(r22, o, a, e, n));
|
|
13809
13809
|
}
|
|
13810
|
-
else return ht$1(s, dr
|
|
13810
|
+
else return ht$1(s, dr(r22, e, n));
|
|
13811
13811
|
}
|
|
13812
13812
|
function Da$2(r22, e) {
|
|
13813
13813
|
if (!e.type.compatibleContent(r22.type))
|
|
@@ -13833,13 +13833,13 @@ Actual: ` + p3.attribValue
|
|
|
13833
13833
|
}
|
|
13834
13834
|
function Ea$2(r22, e, t, n, i3) {
|
|
13835
13835
|
let s = r22.depth > i3 && oi$2(r22, e, i3 + 1), o = n.depth > i3 && oi$2(t, n, i3 + 1), a = [];
|
|
13836
|
-
return Ht$3(null, r22, i3, a), s && o && e.index(i3) == t.index(i3) ? (Da$2(s, o), pt$1(ht$1(s, Ea$2(r22, e, t, n, i3 + 1)), a)) : (s && pt$1(ht$1(s, dr
|
|
13836
|
+
return Ht$3(null, r22, i3, a), s && o && e.index(i3) == t.index(i3) ? (Da$2(s, o), pt$1(ht$1(s, Ea$2(r22, e, t, n, i3 + 1)), a)) : (s && pt$1(ht$1(s, dr(r22, e, i3 + 1)), a), Ht$3(e, t, i3, a), o && pt$1(ht$1(o, dr(t, n, i3 + 1)), a)), Ht$3(n, null, i3, a), new Z(a);
|
|
13837
13837
|
}
|
|
13838
|
-
function dr
|
|
13838
|
+
function dr(r22, e, t) {
|
|
13839
13839
|
let n = [];
|
|
13840
13840
|
if (Ht$3(null, r22, t, n), r22.depth > t) {
|
|
13841
13841
|
let i3 = oi$2(r22, e, t + 1);
|
|
13842
|
-
pt$1(ht$1(i3, dr
|
|
13842
|
+
pt$1(ht$1(i3, dr(r22, e, t + 1)), n);
|
|
13843
13843
|
}
|
|
13844
13844
|
return Ht$3(e, null, t, n), new Z(n);
|
|
13845
13845
|
}
|
|
@@ -23452,7 +23452,7 @@ Actual: ` + p3.attribValue
|
|
|
23452
23452
|
return;
|
|
23453
23453
|
}
|
|
23454
23454
|
}
|
|
23455
|
-
static updateDocumentVersion(e = this.convertedXml, t = "0.9.
|
|
23455
|
+
static updateDocumentVersion(e = this.convertedXml, t = "0.9.26") {
|
|
23456
23456
|
const n = "docProps/custom.xml";
|
|
23457
23457
|
e[n] || (e[n] = Au$2());
|
|
23458
23458
|
const i3 = e["docProps/custom.xml"];
|
|
@@ -23677,7 +23677,7 @@ Actual: ` + p3.attribValue
|
|
|
23677
23677
|
function Au$2() {
|
|
23678
23678
|
return Nf$1;
|
|
23679
23679
|
}
|
|
23680
|
-
function Du$2(r22 = 2, e = "0.9.
|
|
23680
|
+
function Du$2(r22 = 2, e = "0.9.26") {
|
|
23681
23681
|
return {
|
|
23682
23682
|
type: "element",
|
|
23683
23683
|
name: "property",
|
|
@@ -26620,7 +26620,7 @@ Actual: ` + p3.attribValue
|
|
|
26620
26620
|
for (var e = 0; ; e++)
|
|
26621
26621
|
if (t = t.previousSibling, !t)
|
|
26622
26622
|
return e;
|
|
26623
|
-
},
|
|
26623
|
+
}, Tn$1 = function(t) {
|
|
26624
26624
|
let e = t.assignedSlot || t.parentNode;
|
|
26625
26625
|
return e && e.nodeType == 11 ? e.host : e;
|
|
26626
26626
|
};
|
|
@@ -26639,7 +26639,7 @@ Actual: ` + p3.attribValue
|
|
|
26639
26639
|
return true;
|
|
26640
26640
|
if (e == (o < 0 ? 0 : $e$2(t))) {
|
|
26641
26641
|
let i3 = t.parentNode;
|
|
26642
|
-
if (!i3 || i3.nodeType != 1 ||
|
|
26642
|
+
if (!i3 || i3.nodeType != 1 || Tr$1(t) || Wf$1.test(t.nodeName) || t.contentEditable == "false")
|
|
26643
26643
|
return false;
|
|
26644
26644
|
e = ge(t) + (o < 0 ? 0 : 1), t = i3;
|
|
26645
26645
|
} else if (t.nodeType == 1) {
|
|
@@ -26661,7 +26661,7 @@ Actual: ` + p3.attribValue
|
|
|
26661
26661
|
if (t.contentEditable == "false")
|
|
26662
26662
|
return null;
|
|
26663
26663
|
t = t.childNodes[e - 1], e = $e$2(t);
|
|
26664
|
-
} else if (t.parentNode && !
|
|
26664
|
+
} else if (t.parentNode && !Tr$1(t))
|
|
26665
26665
|
e = ge(t), t = t.parentNode;
|
|
26666
26666
|
else
|
|
26667
26667
|
return null;
|
|
@@ -26675,7 +26675,7 @@ Actual: ` + p3.attribValue
|
|
|
26675
26675
|
if (t.contentEditable == "false")
|
|
26676
26676
|
return null;
|
|
26677
26677
|
t = t.childNodes[e], e = 0;
|
|
26678
|
-
} else if (t.parentNode && !
|
|
26678
|
+
} else if (t.parentNode && !Tr$1(t))
|
|
26679
26679
|
e = ge(t) + 1, t = t.parentNode;
|
|
26680
26680
|
else
|
|
26681
26681
|
return null;
|
|
@@ -26691,7 +26691,7 @@ Actual: ` + p3.attribValue
|
|
|
26691
26691
|
r = r && i3 == 0, o = o && i3 == $e$2(t);
|
|
26692
26692
|
}
|
|
26693
26693
|
}
|
|
26694
|
-
function
|
|
26694
|
+
function Tr$1(t) {
|
|
26695
26695
|
let e;
|
|
26696
26696
|
for (let n = t; n && !(e = n.pmViewDesc); n = n.parentNode)
|
|
26697
26697
|
;
|
|
@@ -26726,7 +26726,7 @@ Actual: ` + p3.attribValue
|
|
|
26726
26726
|
}
|
|
26727
26727
|
const st$1 = typeof navigator < "u" ? navigator : null, sa$1 = typeof document < "u" ? document : null, Wt$2 = st$1 && st$1.userAgent || "", vi$1 = /Edge\/(\d+)/.exec(Wt$2), ic$1 = /MSIE \d/.exec(Wt$2), ki$1 = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Wt$2), Te$1 = !!(ic$1 || ki$1 || vi$1), Ft$1 = ic$1 ? document.documentMode : ki$1 ? +ki$1[1] : vi$1 ? +vi$1[1] : 0, Ge = !Te$1 && /gecko\/(\d+)/i.test(Wt$2);
|
|
26728
26728
|
Ge && +(/Firefox\/(\d+)/.exec(Wt$2) || [0, 0])[1];
|
|
26729
|
-
const Ci$1 = !Te$1 && /Chrome\/(\d+)/.exec(Wt$2), we$1 = !!Ci$1, sc$1 = Ci$1 ? +Ci$1[1] : 0, Me$1 = !Te$1 && !!st$1 && /Apple Computer/.test(st$1.vendor),
|
|
26729
|
+
const Ci$1 = !Te$1 && /Chrome\/(\d+)/.exec(Wt$2), we$1 = !!Ci$1, sc$1 = Ci$1 ? +Ci$1[1] : 0, Me$1 = !Te$1 && !!st$1 && /Apple Computer/.test(st$1.vendor), Dn$2 = Me$1 && (/Mobile\/\w+/.test(Wt$2) || !!st$1 && st$1.maxTouchPoints > 2), ze$2 = Dn$2 || (st$1 ? /Mac/.test(st$1.platform) : false), Yf$1 = st$1 ? /Win/.test(st$1.platform) : false, bt$1 = /Android \d/.test(Wt$2), Dr = !!sa$1 && "webkitFontSmoothing" in sa$1.documentElement.style, Gf$1 = Dr ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
|
|
26730
26730
|
function Zf$1(t) {
|
|
26731
26731
|
let e = t.defaultView && t.defaultView.visualViewport;
|
|
26732
26732
|
return e ? {
|
|
@@ -26757,7 +26757,7 @@ Actual: ` + p3.attribValue
|
|
|
26757
26757
|
let r = t.someProp("scrollThreshold") || 0, o = t.someProp("scrollMargin") || 5, i3 = t.dom.ownerDocument;
|
|
26758
26758
|
for (let s = n || t.dom; s; ) {
|
|
26759
26759
|
if (s.nodeType != 1) {
|
|
26760
|
-
s =
|
|
26760
|
+
s = Tn$1(s);
|
|
26761
26761
|
continue;
|
|
26762
26762
|
}
|
|
26763
26763
|
let a = s, l = a == i3.body, c3 = l ? Zf$1(i3) : Qf$1(a), d = 0, u = 0;
|
|
@@ -26773,7 +26773,7 @@ Actual: ` + p3.attribValue
|
|
|
26773
26773
|
let f3 = l ? "fixed" : getComputedStyle(s).position;
|
|
26774
26774
|
if (/^(fixed|sticky)$/.test(f3))
|
|
26775
26775
|
break;
|
|
26776
|
-
s = f3 == "absolute" ? s.offsetParent :
|
|
26776
|
+
s = f3 == "absolute" ? s.offsetParent : Tn$1(s);
|
|
26777
26777
|
}
|
|
26778
26778
|
}
|
|
26779
26779
|
function ep$1(t) {
|
|
@@ -26792,7 +26792,7 @@ Actual: ` + p3.attribValue
|
|
|
26792
26792
|
}
|
|
26793
26793
|
function ac$1(t) {
|
|
26794
26794
|
let e = [], n = t.ownerDocument;
|
|
26795
|
-
for (let r = t; r && (e.push({ dom: r, top: r.scrollTop, left: r.scrollLeft }), t != n); r =
|
|
26795
|
+
for (let r = t; r && (e.push({ dom: r, top: r.scrollTop, left: r.scrollLeft }), t != n); r = Tn$1(r))
|
|
26796
26796
|
;
|
|
26797
26797
|
return e;
|
|
26798
26798
|
}
|
|
@@ -26913,7 +26913,7 @@ Actual: ` + p3.attribValue
|
|
|
26913
26913
|
return null;
|
|
26914
26914
|
}
|
|
26915
26915
|
if (Me$1)
|
|
26916
|
-
for (let c3 = s; r && c3; c3 =
|
|
26916
|
+
for (let c3 = s; r && c3; c3 = Tn$1(c3))
|
|
26917
26917
|
c3.draggable && (r = void 0);
|
|
26918
26918
|
if (s = op$1(s, e), r) {
|
|
26919
26919
|
if (Ge && r.nodeType == 1 && (o = Math.min(o, r.childNodes.length), o < r.childNodes.length)) {
|
|
@@ -26921,7 +26921,7 @@ Actual: ` + p3.attribValue
|
|
|
26921
26921
|
d.nodeName == "IMG" && (u = d.getBoundingClientRect()).right <= e.left && u.bottom > e.top && o++;
|
|
26922
26922
|
}
|
|
26923
26923
|
let c3;
|
|
26924
|
-
|
|
26924
|
+
Dr && o && r.nodeType == 1 && (c3 = r.childNodes[o - 1]).nodeType == 1 && c3.contentEditable == "false" && c3.getBoundingClientRect().top >= e.top && o--, r == t.dom && o == r.childNodes.length - 1 && r.lastChild.nodeType == 1 && e.top > r.lastChild.getBoundingClientRect().bottom ? a = t.state.doc.content.size : (o == 0 || r.nodeType != 1 || r.childNodes[o - 1].nodeName != "BR") && (a = sp$1(t, r, o, e));
|
|
26925
26925
|
}
|
|
26926
26926
|
a == null && (a = ip$1(t, s, e));
|
|
26927
26927
|
let l = t.docView.nearestDesc(s, true);
|
|
@@ -26941,7 +26941,7 @@ Actual: ` + p3.attribValue
|
|
|
26941
26941
|
}
|
|
26942
26942
|
const lp$1 = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;
|
|
26943
26943
|
function uc$1(t, e, n) {
|
|
26944
|
-
let { node: r, offset: o, atom: i3 } = t.docView.domFromPos(e, n < 0 ? -1 : 1), s =
|
|
26944
|
+
let { node: r, offset: o, atom: i3 } = t.docView.domFromPos(e, n < 0 ? -1 : 1), s = Dr || Ge;
|
|
26945
26945
|
if (r.nodeType == 3)
|
|
26946
26946
|
if (s && (lp$1.test(r.nodeValue) || (n < 0 ? !o : o == r.nodeValue.length))) {
|
|
26947
26947
|
let l = Dt$1(mt$1(r, o, o), n);
|
|
@@ -26950,13 +26950,13 @@ Actual: ` + p3.attribValue
|
|
|
26950
26950
|
if (c3.top == l.top) {
|
|
26951
26951
|
let d = Dt$1(mt$1(r, o, o + 1), -1);
|
|
26952
26952
|
if (d.top != l.top)
|
|
26953
|
-
return
|
|
26953
|
+
return Kn$2(d, d.left < c3.left);
|
|
26954
26954
|
}
|
|
26955
26955
|
}
|
|
26956
26956
|
return l;
|
|
26957
26957
|
} else {
|
|
26958
26958
|
let l = o, c3 = o, d = n < 0 ? 1 : -1;
|
|
26959
|
-
return n < 0 && !o ? (c3++, d = -1) : n >= 0 && o == r.nodeValue.length ? (l--, d = 1) : n < 0 ? l-- : c3++,
|
|
26959
|
+
return n < 0 && !o ? (c3++, d = -1) : n >= 0 && o == r.nodeValue.length ? (l--, d = 1) : n < 0 ? l-- : c3++, Kn$2(Dt$1(mt$1(r, l, c3), d), d < 0);
|
|
26960
26960
|
}
|
|
26961
26961
|
if (!t.state.doc.resolve(e - (i3 || 0)).parent.inlineContent) {
|
|
26962
26962
|
if (i3 == null && o && (n < 0 || o == $e$2(r))) {
|
|
@@ -26974,7 +26974,7 @@ Actual: ` + p3.attribValue
|
|
|
26974
26974
|
if (i3 == null && o && (n < 0 || o == $e$2(r))) {
|
|
26975
26975
|
let l = r.childNodes[o - 1], c3 = l.nodeType == 3 ? mt$1(l, $e$2(l) - (s ? 0 : 1)) : l.nodeType == 1 && (l.nodeName != "BR" || !l.nextSibling) ? l : null;
|
|
26976
26976
|
if (c3)
|
|
26977
|
-
return
|
|
26977
|
+
return Kn$2(Dt$1(c3, 1), false);
|
|
26978
26978
|
}
|
|
26979
26979
|
if (i3 == null && o < $e$2(r)) {
|
|
26980
26980
|
let l = r.childNodes[o];
|
|
@@ -26982,11 +26982,11 @@ Actual: ` + p3.attribValue
|
|
|
26982
26982
|
l = l.nextSibling;
|
|
26983
26983
|
let c3 = l ? l.nodeType == 3 ? mt$1(l, 0, s ? 0 : 1) : l.nodeType == 1 ? l : null : null;
|
|
26984
26984
|
if (c3)
|
|
26985
|
-
return
|
|
26985
|
+
return Kn$2(Dt$1(c3, -1), true);
|
|
26986
26986
|
}
|
|
26987
|
-
return
|
|
26987
|
+
return Kn$2(Dt$1(r.nodeType == 3 ? mt$1(r) : r, -n), n >= 0);
|
|
26988
26988
|
}
|
|
26989
|
-
function
|
|
26989
|
+
function Kn$2(t, e) {
|
|
26990
26990
|
if (t.width == 0)
|
|
26991
26991
|
return t;
|
|
26992
26992
|
let n = e ? t.left : t.right;
|
|
@@ -27061,7 +27061,7 @@ Actual: ` + p3.attribValue
|
|
|
27061
27061
|
return ca$1 == e && da$1 == n ? ua$1 : (ca$1 = e, da$1 = n, ua$1 = n == "up" || n == "down" ? cp$1(t, e, n) : up$1(t, e, n));
|
|
27062
27062
|
}
|
|
27063
27063
|
const He$2 = 0, fa$1 = 1, Qt$1 = 2, at$2 = 3;
|
|
27064
|
-
class
|
|
27064
|
+
class Nr {
|
|
27065
27065
|
constructor(e, n, r, o) {
|
|
27066
27066
|
this.parent = e, this.children = n, this.dom = r, this.contentDOM = o, this.dirty = He$2, r.pmViewDesc = this;
|
|
27067
27067
|
}
|
|
@@ -27402,7 +27402,7 @@ Actual: ` + p3.attribValue
|
|
|
27402
27402
|
return false;
|
|
27403
27403
|
}
|
|
27404
27404
|
}
|
|
27405
|
-
let pc$1 = class pc extends
|
|
27405
|
+
let pc$1 = class pc extends Nr {
|
|
27406
27406
|
constructor(e, n, r, o) {
|
|
27407
27407
|
let i3, s = n.type.toDOM;
|
|
27408
27408
|
if (typeof s == "function" && (s = s(r, () => {
|
|
@@ -27442,7 +27442,7 @@ Actual: ` + p3.attribValue
|
|
|
27442
27442
|
return this.widget.type.side;
|
|
27443
27443
|
}
|
|
27444
27444
|
};
|
|
27445
|
-
let pp$1 = class pp extends
|
|
27445
|
+
let pp$1 = class pp extends Nr {
|
|
27446
27446
|
constructor(e, n, r, o) {
|
|
27447
27447
|
super(e, [], n, null), this.textDOM = r, this.text = o;
|
|
27448
27448
|
}
|
|
@@ -27459,7 +27459,7 @@ Actual: ` + p3.attribValue
|
|
|
27459
27459
|
return e.type === "characterData" && e.target.nodeValue == e.oldValue;
|
|
27460
27460
|
}
|
|
27461
27461
|
};
|
|
27462
|
-
let cn$2 = class cn2 extends
|
|
27462
|
+
let cn$2 = class cn2 extends Nr {
|
|
27463
27463
|
constructor(e, n, r, o, i3) {
|
|
27464
27464
|
super(e, [], r, o), this.mark = n, this.spec = i3;
|
|
27465
27465
|
}
|
|
@@ -27495,7 +27495,7 @@ Actual: ` + p3.attribValue
|
|
|
27495
27495
|
this.spec.destroy && this.spec.destroy(), super.destroy();
|
|
27496
27496
|
}
|
|
27497
27497
|
};
|
|
27498
|
-
let Bt$1 = class Bt2 extends
|
|
27498
|
+
let Bt$1 = class Bt2 extends Nr {
|
|
27499
27499
|
constructor(e, n, r, o, i3, s, a, l, c3) {
|
|
27500
27500
|
super(e, [], i3, s), this.node = n, this.outerDeco = r, this.innerDeco = o, this.nodeDOM = a;
|
|
27501
27501
|
}
|
|
@@ -27566,7 +27566,7 @@ Actual: ` + p3.attribValue
|
|
|
27566
27566
|
l.syncToMarks(c3.marks, r, e);
|
|
27567
27567
|
let p3;
|
|
27568
27568
|
l.findNodeMatch(c3, d, u, f3) || a && e.state.selection.from > o && e.state.selection.to < o + c3.nodeSize && (p3 = l.findIndexWithChild(i3.node)) > -1 && l.updateNodeAt(c3, d, u, p3, e) || l.updateNextNode(c3, d, u, e, f3, o) || l.addNode(c3, d, u, e, o), o += c3.nodeSize;
|
|
27569
|
-
}), l.syncToMarks([], r, e), this.node.isTextblock && l.addTextblockHacks(), l.destroyRest(), (l.changed || this.dirty == Qt$1) && (s && this.protectLocalComposition(e, s), mc$1(this.contentDOM, this.children, e),
|
|
27569
|
+
}), l.syncToMarks([], r, e), this.node.isTextblock && l.addTextblockHacks(), l.destroyRest(), (l.changed || this.dirty == Qt$1) && (s && this.protectLocalComposition(e, s), mc$1(this.contentDOM, this.children, e), Dn$2 && vp$1(this.dom));
|
|
27570
27570
|
}
|
|
27571
27571
|
localCompositionInfo(e, n) {
|
|
27572
27572
|
let { from: r, to: o } = e.state.selection;
|
|
@@ -27669,7 +27669,7 @@ Actual: ` + p3.attribValue
|
|
|
27669
27669
|
return this.node.text == e;
|
|
27670
27670
|
}
|
|
27671
27671
|
};
|
|
27672
|
-
let hc$1 = class hc extends
|
|
27672
|
+
let hc$1 = class hc extends Nr {
|
|
27673
27673
|
parseRule() {
|
|
27674
27674
|
return { ignore: true };
|
|
27675
27675
|
}
|
|
@@ -27736,22 +27736,22 @@ Actual: ` + p3.attribValue
|
|
|
27736
27736
|
r = ha$1(r), o = true;
|
|
27737
27737
|
o && n.trackWrites == t && (n.trackWrites = null);
|
|
27738
27738
|
}
|
|
27739
|
-
const
|
|
27739
|
+
const er$1 = function(t) {
|
|
27740
27740
|
t && (this.nodeName = t);
|
|
27741
27741
|
};
|
|
27742
|
-
|
|
27743
|
-
const en$1 = [new
|
|
27742
|
+
er$1.prototype = /* @__PURE__ */ Object.create(null);
|
|
27743
|
+
const en$1 = [new er$1()];
|
|
27744
27744
|
function Si$1(t, e, n) {
|
|
27745
27745
|
if (t.length == 0)
|
|
27746
27746
|
return en$1;
|
|
27747
|
-
let r = n ? en$1[0] : new
|
|
27747
|
+
let r = n ? en$1[0] : new er$1(), o = [r];
|
|
27748
27748
|
for (let i3 = 0; i3 < t.length; i3++) {
|
|
27749
27749
|
let s = t[i3].type.attrs;
|
|
27750
27750
|
if (s) {
|
|
27751
|
-
s.nodeName && o.push(r = new
|
|
27751
|
+
s.nodeName && o.push(r = new er$1(s.nodeName));
|
|
27752
27752
|
for (let a in s) {
|
|
27753
27753
|
let l = s[a];
|
|
27754
|
-
l != null && (n && o.length == 1 && o.push(r = new
|
|
27754
|
+
l != null && (n && o.length == 1 && o.push(r = new er$1(e.isInline ? "span" : "div")), a == "class" ? r.class = (r.class ? r.class + " " : "") + l : a == "style" ? r.style = (r.style ? r.style + ";" : "") + l : a != "nodeName" && (r[a] = l));
|
|
27755
27755
|
}
|
|
27756
27756
|
}
|
|
27757
27757
|
}
|
|
@@ -28224,7 +28224,7 @@ Actual: ` + p3.attribValue
|
|
|
28224
28224
|
if (!i3 || i3.isText)
|
|
28225
28225
|
return false;
|
|
28226
28226
|
let a = e < 0 ? o.pos - i3.nodeSize : o.pos;
|
|
28227
|
-
return i3.isAtom || (s = t.docView.descAt(a)) && !s.contentDOM ? Ge$1.isSelectable(i3) ? Et(t, new Ge$1(e < 0 ? t.state.doc.resolve(o.pos - i3.nodeSize) : o)) :
|
|
28227
|
+
return i3.isAtom || (s = t.docView.descAt(a)) && !s.contentDOM ? Ge$1.isSelectable(i3) ? Et(t, new Ge$1(e < 0 ? t.state.doc.resolve(o.pos - i3.nodeSize) : o)) : Dr ? Et(t, new tt$2(t.state.doc.resolve(e < 0 ? a : a + i3.nodeSize))) : false : false;
|
|
28228
28228
|
}
|
|
28229
28229
|
} else return false;
|
|
28230
28230
|
else {
|
|
@@ -28239,7 +28239,7 @@ Actual: ` + p3.attribValue
|
|
|
28239
28239
|
function ho$1(t) {
|
|
28240
28240
|
return t.nodeType == 3 ? t.nodeValue.length : t.childNodes.length;
|
|
28241
28241
|
}
|
|
28242
|
-
function
|
|
28242
|
+
function tr$1(t, e) {
|
|
28243
28243
|
let n = t.pmViewDesc;
|
|
28244
28244
|
return n && n.size == 0 && (e < 0 || t.nextSibling || t.nodeName != "BR");
|
|
28245
28245
|
}
|
|
@@ -28251,13 +28251,13 @@ Actual: ` + p3.attribValue
|
|
|
28251
28251
|
if (!n)
|
|
28252
28252
|
return;
|
|
28253
28253
|
let o, i3, s = false;
|
|
28254
|
-
for (Ge && n.nodeType == 1 && r < ho$1(n) &&
|
|
28254
|
+
for (Ge && n.nodeType == 1 && r < ho$1(n) && tr$1(n.childNodes[r], -1) && (s = true); ; )
|
|
28255
28255
|
if (r > 0) {
|
|
28256
28256
|
if (n.nodeType != 1)
|
|
28257
28257
|
break;
|
|
28258
28258
|
{
|
|
28259
28259
|
let a = n.childNodes[r - 1];
|
|
28260
|
-
if (
|
|
28260
|
+
if (tr$1(a, -1))
|
|
28261
28261
|
o = n, i3 = --r;
|
|
28262
28262
|
else if (a.nodeType == 3)
|
|
28263
28263
|
n = a, r = n.nodeValue.length;
|
|
@@ -28269,7 +28269,7 @@ Actual: ` + p3.attribValue
|
|
|
28269
28269
|
break;
|
|
28270
28270
|
{
|
|
28271
28271
|
let a = n.previousSibling;
|
|
28272
|
-
for (; a &&
|
|
28272
|
+
for (; a && tr$1(a, -1); )
|
|
28273
28273
|
o = n.parentNode, i3 = ge(a), a = a.previousSibling;
|
|
28274
28274
|
if (a)
|
|
28275
28275
|
n = a, r = ho$1(n);
|
|
@@ -28292,7 +28292,7 @@ Actual: ` + p3.attribValue
|
|
|
28292
28292
|
if (n.nodeType != 1)
|
|
28293
28293
|
break;
|
|
28294
28294
|
let a = n.childNodes[r];
|
|
28295
|
-
if (
|
|
28295
|
+
if (tr$1(a, 1))
|
|
28296
28296
|
i3 = n, s = ++r;
|
|
28297
28297
|
else
|
|
28298
28298
|
break;
|
|
@@ -28301,7 +28301,7 @@ Actual: ` + p3.attribValue
|
|
|
28301
28301
|
break;
|
|
28302
28302
|
{
|
|
28303
28303
|
let a = n.nextSibling;
|
|
28304
|
-
for (; a &&
|
|
28304
|
+
for (; a && tr$1(a, 1); )
|
|
28305
28305
|
i3 = a.parentNode, s = ge(a) + 1, a = a.nextSibling;
|
|
28306
28306
|
if (a)
|
|
28307
28307
|
n = a, r = 0, o = ho$1(n);
|
|
@@ -28319,7 +28319,7 @@ Actual: ` + p3.attribValue
|
|
|
28319
28319
|
return e && e.node && e.node.isBlock;
|
|
28320
28320
|
}
|
|
28321
28321
|
function Op(t, e) {
|
|
28322
|
-
for (; t && e == t.childNodes.length && !
|
|
28322
|
+
for (; t && e == t.childNodes.length && !Tr$1(t); )
|
|
28323
28323
|
e = ge(t) + 1, t = t.parentNode;
|
|
28324
28324
|
for (; t && e < t.childNodes.length; ) {
|
|
28325
28325
|
let n = t.childNodes[e];
|
|
@@ -28331,7 +28331,7 @@ Actual: ` + p3.attribValue
|
|
|
28331
28331
|
}
|
|
28332
28332
|
}
|
|
28333
28333
|
function Tp$1(t, e) {
|
|
28334
|
-
for (; t && !e && !
|
|
28334
|
+
for (; t && !e && !Tr$1(t); )
|
|
28335
28335
|
e = ge(t), t = t.parentNode;
|
|
28336
28336
|
for (; t && e; ) {
|
|
28337
28337
|
let n = t.childNodes[e - 1];
|
|
@@ -28503,7 +28503,7 @@ Actual: ` + p3.attribValue
|
|
|
28503
28503
|
} else
|
|
28504
28504
|
t.someProp("transformPastedHTML", (u) => {
|
|
28505
28505
|
n = u(n, t);
|
|
28506
|
-
}), s = Lp(n),
|
|
28506
|
+
}), s = Lp(n), Dr && Fp(s);
|
|
28507
28507
|
let c3 = s && s.querySelector("[data-pm-slice]"), d = c3 && /^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(c3.getAttribute("data-pm-slice") || "");
|
|
28508
28508
|
if (d && d[3])
|
|
28509
28509
|
for (let u = +d[3]; u > 0; u--) {
|
|
@@ -28691,7 +28691,7 @@ Actual: ` + p3.attribValue
|
|
|
28691
28691
|
Oe$1.keydown = (t, e) => {
|
|
28692
28692
|
let n = e;
|
|
28693
28693
|
if (t.input.shiftKey = n.keyCode == 16 || n.shiftKey, !Dc$1(t, n) && (t.input.lastKeyCode = n.keyCode, t.input.lastKeyCodeTime = Date.now(), !(bt$1 && we$1 && n.keyCode == 13)))
|
|
28694
|
-
if (n.keyCode != 229 && t.domObserver.forceFlush(),
|
|
28694
|
+
if (n.keyCode != 229 && t.domObserver.forceFlush(), Dn$2 && n.keyCode == 13 && !n.ctrlKey && !n.altKey && !n.metaKey) {
|
|
28695
28695
|
let r = Date.now();
|
|
28696
28696
|
t.input.lastIOSEnter = r, t.input.lastIOSEnterFallbackTimeout = setTimeout(() => {
|
|
28697
28697
|
t.input.lastIOSEnter == r && (t.someProp("handleKeyDown", (o) => o(t, Zt$1(13, "Enter"))), t.input.lastIOSEnter = 0);
|
|
@@ -28731,7 +28731,7 @@ Actual: ` + p3.attribValue
|
|
|
28731
28731
|
return true;
|
|
28732
28732
|
return false;
|
|
28733
28733
|
}
|
|
28734
|
-
function
|
|
28734
|
+
function On$2(t, e, n) {
|
|
28735
28735
|
if (t.focused || t.focus(), t.state.selection.eq(e))
|
|
28736
28736
|
return;
|
|
28737
28737
|
let r = t.state.tr.setSelection(e);
|
|
@@ -28741,7 +28741,7 @@ Actual: ` + p3.attribValue
|
|
|
28741
28741
|
if (e == -1)
|
|
28742
28742
|
return false;
|
|
28743
28743
|
let n = t.state.doc.resolve(e), r = n.nodeAfter;
|
|
28744
|
-
return r && r.isAtom && Ge$1.isSelectable(r) ? (
|
|
28744
|
+
return r && r.isAtom && Ge$1.isSelectable(r) ? (On$2(t, new Ge$1(n)), true) : false;
|
|
28745
28745
|
}
|
|
28746
28746
|
function qp(t, e) {
|
|
28747
28747
|
if (e == -1)
|
|
@@ -28756,7 +28756,7 @@ Actual: ` + p3.attribValue
|
|
|
28756
28756
|
break;
|
|
28757
28757
|
}
|
|
28758
28758
|
}
|
|
28759
|
-
return o != null ? (
|
|
28759
|
+
return o != null ? (On$2(t, Ge$1.create(t.state.doc, o)), true) : false;
|
|
28760
28760
|
}
|
|
28761
28761
|
function Kp(t, e, n, r, o) {
|
|
28762
28762
|
return ks(t, "handleClickOn", e, n, r) || t.someProp("handleClick", (i3) => i3(t, e, r)) || (o ? qp(t, n) : Up(t, n));
|
|
@@ -28772,14 +28772,14 @@ Actual: ` + p3.attribValue
|
|
|
28772
28772
|
return false;
|
|
28773
28773
|
let r = t.state.doc;
|
|
28774
28774
|
if (e == -1)
|
|
28775
|
-
return r.inlineContent ? (
|
|
28775
|
+
return r.inlineContent ? (On$2(t, tt$2.create(r, 0, r.content.size)), true) : false;
|
|
28776
28776
|
let o = r.resolve(e);
|
|
28777
28777
|
for (let i3 = o.depth + 1; i3 > 0; i3--) {
|
|
28778
28778
|
let s = i3 > o.depth ? o.nodeAfter : o.node(i3), a = o.before(i3);
|
|
28779
28779
|
if (s.inlineContent)
|
|
28780
|
-
|
|
28780
|
+
On$2(t, tt$2.create(r, a + 1, a + 1 + s.content.size));
|
|
28781
28781
|
else if (Ge$1.isSelectable(s))
|
|
28782
|
-
|
|
28782
|
+
On$2(t, Ge$1.create(r, a));
|
|
28783
28783
|
else
|
|
28784
28784
|
continue;
|
|
28785
28785
|
return true;
|
|
@@ -28834,7 +28834,7 @@ Actual: ` + p3.attribValue
|
|
|
28834
28834
|
// (hidden) cursor is doesn't change the selection, and
|
|
28835
28835
|
// thus doesn't get a reaction from ProseMirror. This
|
|
28836
28836
|
// works around that.
|
|
28837
|
-
we$1 && !this.view.state.selection.visible && Math.min(Math.abs(n.pos - this.view.state.selection.from), Math.abs(n.pos - this.view.state.selection.to)) <= 2) ? (
|
|
28837
|
+
we$1 && !this.view.state.selection.visible && Math.min(Math.abs(n.pos - this.view.state.selection.from), Math.abs(n.pos - this.view.state.selection.to)) <= 2) ? (On$2(this.view, ve$2.near(this.view.state.doc.resolve(n.pos))), e.preventDefault()) : Rt$2(this.view, "pointer");
|
|
28838
28838
|
}
|
|
28839
28839
|
move(e) {
|
|
28840
28840
|
this.updateAllowDefault(e), Rt$2(this.view, "pointer"), e.buttons == 0 && this.done();
|
|
@@ -28930,12 +28930,12 @@ Actual: ` + p3.attribValue
|
|
|
28930
28930
|
n.parentNode && n.parentNode.removeChild(n), t.focus();
|
|
28931
28931
|
}, 50);
|
|
28932
28932
|
}
|
|
28933
|
-
const
|
|
28933
|
+
const ur$1 = Te$1 && Ft$1 < 15 || Dn$2 && Gf$1 < 604;
|
|
28934
28934
|
Ae.copy = Oe$1.cut = (t, e) => {
|
|
28935
28935
|
let n = e, r = t.state.selection, o = n.type == "cut";
|
|
28936
28936
|
if (r.empty)
|
|
28937
28937
|
return;
|
|
28938
|
-
let i3 =
|
|
28938
|
+
let i3 = ur$1 ? null : n.clipboardData, s = r.content(), { dom: a, text: l } = ws(t, s);
|
|
28939
28939
|
i3 ? (n.preventDefault(), i3.clearData(), i3.setData("text/html", a.innerHTML), i3.setData("text/plain", l)) : th$1(t, a), o && t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent", "cut"));
|
|
28940
28940
|
};
|
|
28941
28941
|
function nh$1(t) {
|
|
@@ -28948,10 +28948,10 @@ Actual: ` + p3.attribValue
|
|
|
28948
28948
|
n || (r.contentEditable = "true"), r.style.cssText = "position: fixed; left: -10000px; top: 10px", r.focus();
|
|
28949
28949
|
let o = t.input.shiftKey && t.input.lastKeyCode != 45;
|
|
28950
28950
|
setTimeout(() => {
|
|
28951
|
-
t.focus(), r.parentNode && r.parentNode.removeChild(r), n ?
|
|
28951
|
+
t.focus(), r.parentNode && r.parentNode.removeChild(r), n ? fr(t, r.value, null, o, e) : fr(t, r.textContent, r.innerHTML, o, e);
|
|
28952
28952
|
}, 50);
|
|
28953
28953
|
}
|
|
28954
|
-
function
|
|
28954
|
+
function fr(t, e, n, r, o) {
|
|
28955
28955
|
let i3 = Cc$1(t, e, n, r, t.state.selection.$from);
|
|
28956
28956
|
if (t.someProp("handlePaste", (l) => l(t, o, i3 || oe$1.empty)))
|
|
28957
28957
|
return true;
|
|
@@ -28971,8 +28971,8 @@ Actual: ` + p3.attribValue
|
|
|
28971
28971
|
let n = e;
|
|
28972
28972
|
if (t.composing && !bt$1)
|
|
28973
28973
|
return;
|
|
28974
|
-
let r =
|
|
28975
|
-
r &&
|
|
28974
|
+
let r = ur$1 ? null : n.clipboardData, o = t.input.shiftKey && t.input.lastKeyCode != 45;
|
|
28975
|
+
r && fr(t, Ic$1(r), r.getData("text/html"), o, n) ? n.preventDefault() : rh$1(t, n);
|
|
28976
28976
|
};
|
|
28977
28977
|
let Pc$1 = class Pc {
|
|
28978
28978
|
constructor(e, n, r) {
|
|
@@ -28998,7 +28998,7 @@ Actual: ` + p3.attribValue
|
|
|
28998
28998
|
}
|
|
28999
28999
|
}
|
|
29000
29000
|
let a = (s || t.state.selection).content(), { dom: l, text: c3, slice: d } = ws(t, a);
|
|
29001
|
-
(!n.dataTransfer.files.length || !we$1 || sc$1 > 120) && n.dataTransfer.clearData(), n.dataTransfer.setData(
|
|
29001
|
+
(!n.dataTransfer.files.length || !we$1 || sc$1 > 120) && n.dataTransfer.clearData(), n.dataTransfer.setData(ur$1 ? "Text" : "text/html", l.innerHTML), n.dataTransfer.effectAllowed = "copyMove", ur$1 || n.dataTransfer.setData("text/plain", c3), t.dragging = new Pc$1(d, Rc$1(t, n), s);
|
|
29002
29002
|
};
|
|
29003
29003
|
Ae.dragend = (t) => {
|
|
29004
29004
|
let e = t.dragging;
|
|
@@ -29017,7 +29017,7 @@ Actual: ` + p3.attribValue
|
|
|
29017
29017
|
let i3 = t.state.doc.resolve(o.pos), s = r && r.slice;
|
|
29018
29018
|
s ? t.someProp("transformPasted", (h3) => {
|
|
29019
29019
|
s = h3(s, t);
|
|
29020
|
-
}) : s = Cc$1(t, Ic$1(n.dataTransfer),
|
|
29020
|
+
}) : s = Cc$1(t, Ic$1(n.dataTransfer), ur$1 ? null : n.dataTransfer.getData("text/html"), false, i3);
|
|
29021
29021
|
let a = !!(r && Rc$1(t, n));
|
|
29022
29022
|
if (t.someProp("handleDrop", (h3) => h3(t, n, s || oe$1.empty, a))) {
|
|
29023
29023
|
n.preventDefault();
|
|
@@ -29068,7 +29068,7 @@ Actual: ` + p3.attribValue
|
|
|
29068
29068
|
};
|
|
29069
29069
|
for (let t in Oe$1)
|
|
29070
29070
|
Ae[t] = Oe$1[t];
|
|
29071
|
-
function
|
|
29071
|
+
function pr$1(t, e) {
|
|
29072
29072
|
if (t == e)
|
|
29073
29073
|
return true;
|
|
29074
29074
|
for (let n in t)
|
|
@@ -29091,7 +29091,7 @@ Actual: ` + p3.attribValue
|
|
|
29091
29091
|
return true;
|
|
29092
29092
|
}
|
|
29093
29093
|
eq(e) {
|
|
29094
|
-
return this == e || e instanceof go2 && (this.spec.key && this.spec.key == e.spec.key || this.toDOM == e.toDOM &&
|
|
29094
|
+
return this == e || e instanceof go2 && (this.spec.key && this.spec.key == e.spec.key || this.toDOM == e.toDOM && pr$1(this.spec, e.spec));
|
|
29095
29095
|
}
|
|
29096
29096
|
destroy(e) {
|
|
29097
29097
|
this.spec.destroy && this.spec.destroy(e);
|
|
@@ -29109,7 +29109,7 @@ Actual: ` + p3.attribValue
|
|
|
29109
29109
|
return n.from < n.to;
|
|
29110
29110
|
}
|
|
29111
29111
|
eq(e) {
|
|
29112
|
-
return this == e || e instanceof _t &&
|
|
29112
|
+
return this == e || e instanceof _t && pr$1(this.attrs, e.attrs) && pr$1(this.spec, e.spec);
|
|
29113
29113
|
}
|
|
29114
29114
|
static is(e) {
|
|
29115
29115
|
return e.type instanceof _t;
|
|
@@ -29133,7 +29133,7 @@ Actual: ` + p3.attribValue
|
|
|
29133
29133
|
return o == n.from && !(i3 = e.child(r)).isText && o + i3.nodeSize == n.to;
|
|
29134
29134
|
}
|
|
29135
29135
|
eq(e) {
|
|
29136
|
-
return this == e || e instanceof Ss &&
|
|
29136
|
+
return this == e || e instanceof Ss && pr$1(this.attrs, e.attrs) && pr$1(this.spec, e.spec);
|
|
29137
29137
|
}
|
|
29138
29138
|
destroy() {
|
|
29139
29139
|
}
|
|
@@ -29209,13 +29209,13 @@ Actual: ` + p3.attribValue
|
|
|
29209
29209
|
return this.type instanceof go$1;
|
|
29210
29210
|
}
|
|
29211
29211
|
}
|
|
29212
|
-
const
|
|
29212
|
+
const Sn$2 = [], nn$2 = {};
|
|
29213
29213
|
class F {
|
|
29214
29214
|
/**
|
|
29215
29215
|
@internal
|
|
29216
29216
|
*/
|
|
29217
29217
|
constructor(e, n) {
|
|
29218
|
-
this.local = e.length ? e :
|
|
29218
|
+
this.local = e.length ? e : Sn$2, this.children = n.length ? n : Sn$2;
|
|
29219
29219
|
}
|
|
29220
29220
|
/**
|
|
29221
29221
|
Create a set of decorations, using the structure of the given
|
|
@@ -29264,7 +29264,7 @@ Actual: ` + p3.attribValue
|
|
|
29264
29264
|
let l = this.local[a].map(e, r, o);
|
|
29265
29265
|
l && l.type.valid(n, l) ? (s || (s = [])).push(l) : i3.onRemove && i3.onRemove(this.local[a].spec);
|
|
29266
29266
|
}
|
|
29267
|
-
return this.children.length ? ih$1(this.children, s || [], e, n, r, o, i3) : s ? new F(s.sort(rn$2),
|
|
29267
|
+
return this.children.length ? ih$1(this.children, s || [], e, n, r, o, i3) : s ? new F(s.sort(rn$2), Sn$2) : be$1;
|
|
29268
29268
|
}
|
|
29269
29269
|
/**
|
|
29270
29270
|
Add the given array of decorations to the ones in the set,
|
|
@@ -29337,7 +29337,7 @@ Actual: ` + p3.attribValue
|
|
|
29337
29337
|
}
|
|
29338
29338
|
}
|
|
29339
29339
|
if (o) {
|
|
29340
|
-
let a = new F(o.sort(rn$2),
|
|
29340
|
+
let a = new F(o.sort(rn$2), Sn$2);
|
|
29341
29341
|
return r ? new It$1([a, r]) : a;
|
|
29342
29342
|
}
|
|
29343
29343
|
return r || be$1;
|
|
@@ -29369,7 +29369,7 @@ Actual: ` + p3.attribValue
|
|
|
29369
29369
|
*/
|
|
29370
29370
|
localsInner(e) {
|
|
29371
29371
|
if (this == be$1)
|
|
29372
|
-
return
|
|
29372
|
+
return Sn$2;
|
|
29373
29373
|
if (e.inlineContent || !this.local.some(_t.is))
|
|
29374
29374
|
return this.local;
|
|
29375
29375
|
let n = [];
|
|
@@ -29423,7 +29423,7 @@ Actual: ` + p3.attribValue
|
|
|
29423
29423
|
n.push(i3[s]);
|
|
29424
29424
|
}
|
|
29425
29425
|
}
|
|
29426
|
-
return n ? xs(r ? n : n.sort(rn$2)) :
|
|
29426
|
+
return n ? xs(r ? n : n.sort(rn$2)) : Sn$2;
|
|
29427
29427
|
}
|
|
29428
29428
|
// Create a group for the given array of decoration sets, or return
|
|
29429
29429
|
// a single set when possible.
|
|
@@ -29659,9 +29659,9 @@ Actual: ` + p3.attribValue
|
|
|
29659
29659
|
if (!e.focusNode)
|
|
29660
29660
|
return true;
|
|
29661
29661
|
let n = /* @__PURE__ */ new Set(), r;
|
|
29662
|
-
for (let i3 = e.focusNode; i3; i3 =
|
|
29662
|
+
for (let i3 = e.focusNode; i3; i3 = Tn$1(i3))
|
|
29663
29663
|
n.add(i3);
|
|
29664
|
-
for (let i3 = e.anchorNode; i3; i3 =
|
|
29664
|
+
for (let i3 = e.anchorNode; i3; i3 = Tn$1(i3))
|
|
29665
29665
|
if (n.has(i3)) {
|
|
29666
29666
|
r = i3;
|
|
29667
29667
|
break;
|
|
@@ -29833,7 +29833,7 @@ Actual: ` + p3.attribValue
|
|
|
29833
29833
|
let l = t.state.selection, c3 = hh$1(t, e, n), d = t.state.doc, u = d.slice(c3.from, c3.to), f3, p3;
|
|
29834
29834
|
t.input.lastKeyCode === 8 && Date.now() - 100 < t.input.lastKeyCodeTime ? (f3 = t.state.selection.to, p3 = "end") : (f3 = t.state.selection.from, p3 = "start"), t.input.lastKeyCode = null;
|
|
29835
29835
|
let h3 = vh$1(u.content, c3.doc.content, c3.from, f3, p3);
|
|
29836
|
-
if (h3 && t.input.domChangeCount++, (
|
|
29836
|
+
if (h3 && t.input.domChangeCount++, (Dn$2 && t.input.lastIOSEnter > Date.now() - 225 || bt$1) && o.some((x) => x.nodeType == 1 && !gh$1.test(x.nodeName)) && (!h3 || h3.endA >= h3.endB) && t.someProp("handleKeyDown", (x) => x(t, Zt$1(13, "Enter")))) {
|
|
29837
29837
|
t.input.lastIOSEnter = 0;
|
|
29838
29838
|
return;
|
|
29839
29839
|
}
|
|
@@ -29852,7 +29852,7 @@ Actual: ` + p3.attribValue
|
|
|
29852
29852
|
}
|
|
29853
29853
|
t.state.selection.from < t.state.selection.to && h3.start == h3.endB && t.state.selection instanceof tt$2 && (h3.start > t.state.selection.from && h3.start <= t.state.selection.from + 2 && t.state.selection.from >= c3.from ? h3.start = t.state.selection.from : h3.endA < t.state.selection.to && h3.endA >= t.state.selection.to - 2 && t.state.selection.to <= c3.to && (h3.endB += t.state.selection.to - h3.endA, h3.endA = t.state.selection.to)), Te$1 && Ft$1 <= 11 && h3.endB == h3.start + 1 && h3.endA == h3.start && h3.start > c3.from && c3.doc.textBetween(h3.start - c3.from - 1, h3.start - c3.from + 1) == " " && (h3.start--, h3.endA--, h3.endB--);
|
|
29854
29854
|
let m = c3.doc.resolveNoCache(h3.start - c3.from), g = c3.doc.resolveNoCache(h3.endB - c3.from), b = d.resolve(h3.start), w = m.sameParent(g) && m.parent.inlineContent && b.end() >= h3.endA, C;
|
|
29855
|
-
if ((
|
|
29855
|
+
if ((Dn$2 && t.input.lastIOSEnter > Date.now() - 225 && (!w || o.some((x) => x.nodeName == "DIV" || x.nodeName == "P")) || !w && m.pos < c3.doc.content.size && (!m.sameParent(g) || !m.parent.inlineContent) && (C = ve$2.findFrom(c3.doc.resolve(m.pos + 1), 1, true)) && C.head > m.pos) && t.someProp("handleKeyDown", (x) => x(t, Zt$1(13, "Enter")))) {
|
|
29856
29856
|
t.input.lastIOSEnter = 0;
|
|
29857
29857
|
return;
|
|
29858
29858
|
}
|
|
@@ -30238,13 +30238,13 @@ Actual: ` + p3.attribValue
|
|
|
30238
30238
|
[`handlePaste`](https://prosemirror.net/docs/ref/#view.EditorProps.handlePaste) hook.
|
|
30239
30239
|
*/
|
|
30240
30240
|
pasteHTML(e, n) {
|
|
30241
|
-
return
|
|
30241
|
+
return fr(this, "", e, false, n || new ClipboardEvent("paste"));
|
|
30242
30242
|
}
|
|
30243
30243
|
/**
|
|
30244
30244
|
Run the editor's paste logic with the given plain-text input.
|
|
30245
30245
|
*/
|
|
30246
30246
|
pasteText(e, n) {
|
|
30247
|
-
return
|
|
30247
|
+
return fr(this, e, null, true, n || new ClipboardEvent("paste"));
|
|
30248
30248
|
}
|
|
30249
30249
|
/**
|
|
30250
30250
|
Serialize the given slice as it would be if it was copied from
|
|
@@ -30350,16 +30350,16 @@ Actual: ` + p3.attribValue
|
|
|
30350
30350
|
if (t.spec.state || t.spec.filterTransaction || t.spec.appendTransaction)
|
|
30351
30351
|
throw new RangeError("Plugins passed directly to the view must not have a state component");
|
|
30352
30352
|
}
|
|
30353
|
-
const
|
|
30353
|
+
const hr$1 = Math.floor, Sh$1 = Math.abs, zt$2 = (t, e) => t < e ? t : e, Nn$2 = (t, e) => t > e ? t : e, xh$1 = (t) => t !== 0 ? t < 0 : 1 / t < 0, Mh$1 = 64, mr$1 = 128, Ah$1 = 1 << 29, _a$1 = 63, nr$1 = 127, Oh$1 = 2147483647, Th$1 = Number.isInteger || ((t) => typeof t == "number" && isFinite(t) && hr$1(t) === t), Dh$1 = () => /* @__PURE__ */ new Set(), Nh$1 = Array.isArray, Eh$1 = String.fromCharCode, Ih$1 = (t) => t.toLowerCase(), Ph$1 = /^\s*/g, Rh$1 = (t) => t.replace(Ph$1, ""), Lh$1 = /([A-Z])/g, za$1 = (t, e) => Rh$1(t.replace(Lh$1, (n) => `${e}${Ih$1(n)}`)), Fh$1 = (t) => {
|
|
30354
30354
|
const e = unescape(encodeURIComponent(t)), n = e.length, r = new Uint8Array(n);
|
|
30355
30355
|
for (let o = 0; o < n; o++)
|
|
30356
30356
|
r[o] = /** @type {number} */
|
|
30357
30357
|
e.codePointAt(o);
|
|
30358
30358
|
return r;
|
|
30359
|
-
},
|
|
30359
|
+
}, gr$1 = (
|
|
30360
30360
|
/** @type {TextEncoder} */
|
|
30361
30361
|
typeof TextEncoder < "u" ? new TextEncoder() : null
|
|
30362
|
-
), Bh$1 = (t) =>
|
|
30362
|
+
), Bh$1 = (t) => gr$1.encode(t), _h$1 = gr$1 ? Bh$1 : Fh$1;
|
|
30363
30363
|
let ri = typeof TextDecoder > "u" ? null : new TextDecoder("utf-8", { fatal: true, ignoreBOM: true });
|
|
30364
30364
|
ri && ri.decode(new Uint8Array()).length === 1 && (ri = null);
|
|
30365
30365
|
let zh$1 = class zh {
|
|
@@ -30385,41 +30385,41 @@ Actual: ` + p3.attribValue
|
|
|
30385
30385
|
return e.set(new Uint8Array(t.cbuf.buffer, 0, t.cpos), n), e;
|
|
30386
30386
|
}, Wh$1 = (t, e) => {
|
|
30387
30387
|
const n = t.cbuf.length;
|
|
30388
|
-
n - t.cpos < e && (t.bufs.push(new Uint8Array(t.cbuf.buffer, 0, t.cpos)), t.cbuf = new Uint8Array(
|
|
30388
|
+
n - t.cpos < e && (t.bufs.push(new Uint8Array(t.cbuf.buffer, 0, t.cpos)), t.cbuf = new Uint8Array(Nn$2(n, e) * 2), t.cpos = 0);
|
|
30389
30389
|
}, he$1 = (t, e) => {
|
|
30390
30390
|
const n = t.cbuf.length;
|
|
30391
30391
|
t.cpos === n && (t.bufs.push(t.cbuf), t.cbuf = new Uint8Array(n * 2), t.cpos = 0), t.cbuf[t.cpos++] = e;
|
|
30392
|
-
},
|
|
30393
|
-
for (; e >
|
|
30394
|
-
he$1(t,
|
|
30395
|
-
he$1(t,
|
|
30392
|
+
}, yr$1 = (t, e) => {
|
|
30393
|
+
for (; e > nr$1; )
|
|
30394
|
+
he$1(t, mr$1 | nr$1 & e), e = hr$1(e / 128);
|
|
30395
|
+
he$1(t, nr$1 & e);
|
|
30396
30396
|
}, Uh$1 = (t, e) => {
|
|
30397
30397
|
const n = xh$1(e);
|
|
30398
|
-
for (n && (e = -e), he$1(t, (e > _a$1 ?
|
|
30399
|
-
he$1(t, (e >
|
|
30398
|
+
for (n && (e = -e), he$1(t, (e > _a$1 ? mr$1 : 0) | (n ? Mh$1 : 0) | _a$1 & e), e = hr$1(e / 64); e > 0; )
|
|
30399
|
+
he$1(t, (e > nr$1 ? mr$1 : 0) | nr$1 & e), e = hr$1(e / 128);
|
|
30400
30400
|
}, Di$1 = new Uint8Array(3e4), qh$1 = Di$1.length / 3, Kh$1 = (t, e) => {
|
|
30401
30401
|
if (e.length < qh$1) {
|
|
30402
|
-
const n =
|
|
30403
|
-
|
|
30402
|
+
const n = gr$1.encodeInto(e, Di$1).written || 0;
|
|
30403
|
+
yr$1(t, n);
|
|
30404
30404
|
for (let r = 0; r < n; r++)
|
|
30405
30405
|
he$1(t, Di$1[r]);
|
|
30406
30406
|
} else
|
|
30407
30407
|
zc$1(t, _h$1(e));
|
|
30408
30408
|
}, Xh$1 = (t, e) => {
|
|
30409
30409
|
const n = unescape(encodeURIComponent(e)), r = n.length;
|
|
30410
|
-
|
|
30410
|
+
yr$1(t, r);
|
|
30411
30411
|
for (let o = 0; o < r; o++)
|
|
30412
30412
|
he$1(
|
|
30413
30413
|
t,
|
|
30414
30414
|
/** @type {number} */
|
|
30415
30415
|
n.codePointAt(o)
|
|
30416
30416
|
);
|
|
30417
|
-
}, $a$1 =
|
|
30418
|
-
|
|
30417
|
+
}, $a$1 = gr$1 && /** @type {any} */
|
|
30418
|
+
gr$1.encodeInto ? Kh$1 : Xh$1, Jh$1 = (t, e) => {
|
|
30419
30419
|
const n = t.cbuf.length, r = t.cpos, o = zt$2(n - r, e.length), i3 = e.length - o;
|
|
30420
|
-
t.cbuf.set(e.subarray(0, o), r), t.cpos += o, i3 > 0 && (t.bufs.push(t.cbuf), t.cbuf = new Uint8Array(
|
|
30420
|
+
t.cbuf.set(e.subarray(0, o), r), t.cpos += o, i3 > 0 && (t.bufs.push(t.cbuf), t.cbuf = new Uint8Array(Nn$2(n * 2, i3)), t.cbuf.set(e.subarray(o)), t.cpos = i3);
|
|
30421
30421
|
}, zc$1 = (t, e) => {
|
|
30422
|
-
|
|
30422
|
+
yr$1(t, e.byteLength), Jh$1(t, e);
|
|
30423
30423
|
}, Ms = (t, e) => {
|
|
30424
30424
|
Wh$1(t, e);
|
|
30425
30425
|
const n = new DataView(t.cbuf.buffer, t.cpos, e);
|
|
@@ -30442,7 +30442,7 @@ Actual: ` + p3.attribValue
|
|
|
30442
30442
|
if (e === null)
|
|
30443
30443
|
he$1(t, 126);
|
|
30444
30444
|
else if (Nh$1(e)) {
|
|
30445
|
-
he$1(t, 117),
|
|
30445
|
+
he$1(t, 117), yr$1(t, e.length);
|
|
30446
30446
|
for (let n = 0; n < e.length; n++)
|
|
30447
30447
|
Ni$1(t, e[n]);
|
|
30448
30448
|
} else if (e instanceof Uint8Array)
|
|
@@ -30450,7 +30450,7 @@ Actual: ` + p3.attribValue
|
|
|
30450
30450
|
else {
|
|
30451
30451
|
he$1(t, 118);
|
|
30452
30452
|
const n = Object.keys(e);
|
|
30453
|
-
|
|
30453
|
+
yr$1(t, n.length);
|
|
30454
30454
|
for (let r = 0; r < n.length; r++) {
|
|
30455
30455
|
const o = n[r];
|
|
30456
30456
|
$a$1(t, o), Ni$1(t, e[o]);
|
|
@@ -30498,7 +30498,7 @@ Actual: ` + p3.attribValue
|
|
|
30498
30498
|
remove: t.length - n - r,
|
|
30499
30499
|
insert: e.slice(n, e.length - r)
|
|
30500
30500
|
};
|
|
30501
|
-
}, lm = am, te = new op$2("y-sync"), $t$1 = new op$2("y-undo"),
|
|
30501
|
+
}, lm = am, te = new op$2("y-sync"), $t$1 = new op$2("y-undo"), qr$1 = new op$2("yjs-cursor"), cm = Math.random, dm = (t) => t[hr$1(cm() * t.length)], Ha$1 = (t) => t === void 0 ? null : t;
|
|
30502
30502
|
class um {
|
|
30503
30503
|
constructor() {
|
|
30504
30504
|
this.map = /* @__PURE__ */ new Map();
|
|
@@ -30522,11 +30522,11 @@ Actual: ` + p3.attribValue
|
|
|
30522
30522
|
typeof localStorage < "u" && localStorage && (jc$1 = localStorage, fm = false);
|
|
30523
30523
|
} catch {
|
|
30524
30524
|
}
|
|
30525
|
-
const pm = jc$1,
|
|
30525
|
+
const pm = jc$1, En$1 = typeof me$1 < "u" && me$1.release && /node|io\.js/.test(me$1.release.name) && Object.prototype.toString.call(typeof me$1 < "u" ? me$1 : 0) === "[object process]", Wc$1 = typeof window < "u" && typeof document < "u" && !En$1;
|
|
30526
30526
|
let et$1;
|
|
30527
30527
|
const hm = () => {
|
|
30528
30528
|
if (et$1 === void 0)
|
|
30529
|
-
if (
|
|
30529
|
+
if (En$1) {
|
|
30530
30530
|
et$1 = oo$2();
|
|
30531
30531
|
const t = me$1.argv;
|
|
30532
30532
|
let e = null;
|
|
@@ -30542,11 +30542,11 @@ Actual: ` + p3.attribValue
|
|
|
30542
30542
|
}
|
|
30543
30543
|
})) : et$1 = oo$2();
|
|
30544
30544
|
return et$1;
|
|
30545
|
-
}, Ei$1 = (t) => hm().has(t), Ii$1 = (t) => Ha$1(
|
|
30545
|
+
}, Ei$1 = (t) => hm().has(t), Ii$1 = (t) => Ha$1(En$1 ? me$1.env[t.toUpperCase().replaceAll("-", "_")] : pm.getItem(t)), Uc$1 = (t) => Ei$1("--" + t) || Ii$1(t) !== null;
|
|
30546
30546
|
Uc$1("production");
|
|
30547
|
-
const mm =
|
|
30547
|
+
const mm = En$1 && rm(me$1.env.FORCE_COLOR, ["true", "1", "2"]);
|
|
30548
30548
|
mm || !Ei$1("--no-colors") && // @todo deprecate --no-colors
|
|
30549
|
-
!Uc$1("no-color") && (!
|
|
30549
|
+
!Uc$1("no-color") && (!En$1 || me$1.stdout.isTTY) && (!En$1 || Ei$1("--color") || Ii$1("COLORTERM") !== null || (Ii$1("TERM") || "").includes("color"));
|
|
30550
30550
|
const gm = (
|
|
30551
30551
|
/** @type {Document} */
|
|
30552
30552
|
typeof document < "u" ? document : {}
|
|
@@ -30665,7 +30665,7 @@ Actual: ` + p3.attribValue
|
|
|
30665
30665
|
if (n % 64 !== 0) {
|
|
30666
30666
|
for (this._W.fill(0, s, 16); n < e.length; )
|
|
30667
30667
|
this._W[s] |= e[n] << (3 - n % 4) * 8, n++;
|
|
30668
|
-
this._W[s] |=
|
|
30668
|
+
this._W[s] |= mr$1 << (3 - n % 4) * 8;
|
|
30669
30669
|
}
|
|
30670
30670
|
this._updateHash();
|
|
30671
30671
|
}
|
|
@@ -30675,7 +30675,7 @@ Actual: ` + p3.attribValue
|
|
|
30675
30675
|
for (; n < e.length; o++)
|
|
30676
30676
|
for (let s = 3; s >= 0 && n < e.length; s--)
|
|
30677
30677
|
this._W[o] |= e[n++] << s * 8;
|
|
30678
|
-
r || (this._W[o - (n % 4 === 0 ? 0 : 1)] |=
|
|
30678
|
+
r || (this._W[o - (n % 4 === 0 ? 0 : 1)] |= mr$1 << (3 - n % 4) * 8), this._W[14] = e.byteLength / Ah$1, this._W[15] = e.byteLength * 8, this._updateHash();
|
|
30679
30679
|
const i3 = new Uint8Array(32);
|
|
30680
30680
|
for (let s = 0; s < this._H.length; s++)
|
|
30681
30681
|
for (let a = 0; a < 4; a++)
|
|
@@ -30797,12 +30797,12 @@ Actual: ` + p3.attribValue
|
|
|
30797
30797
|
if (e.type === "all")
|
|
30798
30798
|
t.setSelection(new at$3(t.doc));
|
|
30799
30799
|
else {
|
|
30800
|
-
const r =
|
|
30800
|
+
const r = wr$1(
|
|
30801
30801
|
n.doc,
|
|
30802
30802
|
n.type,
|
|
30803
30803
|
e.anchor,
|
|
30804
30804
|
n.mapping
|
|
30805
|
-
), o =
|
|
30805
|
+
), o = wr$1(
|
|
30806
30806
|
n.doc,
|
|
30807
30807
|
n.type,
|
|
30808
30808
|
e.head,
|
|
@@ -30874,7 +30874,7 @@ Actual: ` + p3.attribValue
|
|
|
30874
30874
|
unrenderSnapshot() {
|
|
30875
30875
|
this.mapping.clear(), this.mux(() => {
|
|
30876
30876
|
const e = this.type.toArray().map(
|
|
30877
|
-
(r) =>
|
|
30877
|
+
(r) => rr$1(
|
|
30878
30878
|
/** @type {Y.XmlElement} */
|
|
30879
30879
|
r,
|
|
30880
30880
|
this.prosemirrorView.state.schema,
|
|
@@ -30891,7 +30891,7 @@ Actual: ` + p3.attribValue
|
|
|
30891
30891
|
_forceRerender() {
|
|
30892
30892
|
this.mapping.clear(), this.mux(() => {
|
|
30893
30893
|
const e = this.beforeTransactionSelection !== null ? null : this.prosemirrorView.state.selection, n = this.type.toArray().map(
|
|
30894
|
-
(o) =>
|
|
30894
|
+
(o) => rr$1(
|
|
30895
30895
|
/** @type {Y.XmlElement} */
|
|
30896
30896
|
o,
|
|
30897
30897
|
this.prosemirrorView.state.schema,
|
|
@@ -30903,7 +30903,7 @@ Actual: ` + p3.attribValue
|
|
|
30903
30903
|
new oe$1(Z.from(n), 0, 0)
|
|
30904
30904
|
);
|
|
30905
30905
|
if (e) {
|
|
30906
|
-
const o = zt$2(
|
|
30906
|
+
const o = zt$2(Nn$2(e.anchor, 0), r.doc.content.size), i3 = zt$2(Nn$2(e.head, 0), r.doc.content.size);
|
|
30907
30907
|
r.setSelection(tt$2.create(r.doc, o, i3));
|
|
30908
30908
|
}
|
|
30909
30909
|
this.prosemirrorView.dispatch(
|
|
@@ -30955,7 +30955,7 @@ Actual: ` + p3.attribValue
|
|
|
30955
30955
|
}, c3 = T__namespace.typeListToArraySnapshot(
|
|
30956
30956
|
i3,
|
|
30957
30957
|
new T__namespace.Snapshot(n.ds, e.sv)
|
|
30958
|
-
).map((u) => !u._item.deleted || bo$1(u._item, e) || bo$1(u._item, n) ?
|
|
30958
|
+
).map((u) => !u._item.deleted || bo$1(u._item, e) || bo$1(u._item, n) ? rr$1(
|
|
30959
30959
|
u,
|
|
30960
30960
|
this.prosemirrorView.state.schema,
|
|
30961
30961
|
{ mapping: /* @__PURE__ */ new Map(), isOMark: /* @__PURE__ */ new Map() },
|
|
@@ -31045,7 +31045,7 @@ Actual: ` + p3.attribValue
|
|
|
31045
31045
|
);
|
|
31046
31046
|
if (s === void 0) {
|
|
31047
31047
|
if (t instanceof T__namespace.XmlElement)
|
|
31048
|
-
return
|
|
31048
|
+
return rr$1(
|
|
31049
31049
|
t,
|
|
31050
31050
|
e,
|
|
31051
31051
|
n,
|
|
@@ -31056,7 +31056,7 @@ Actual: ` + p3.attribValue
|
|
|
31056
31056
|
throw em();
|
|
31057
31057
|
}
|
|
31058
31058
|
return s;
|
|
31059
|
-
},
|
|
31059
|
+
}, rr$1 = (t, e, n, r, o, i3) => {
|
|
31060
31060
|
const s = [], a = (l) => {
|
|
31061
31061
|
if (l instanceof T__namespace.XmlElement) {
|
|
31062
31062
|
const c3 = qc$1(
|
|
@@ -31185,11 +31185,11 @@ Actual: ` + p3.attribValue
|
|
|
31185
31185
|
)?.attrs);
|
|
31186
31186
|
})
|
|
31187
31187
|
);
|
|
31188
|
-
},
|
|
31188
|
+
}, br$1 = (t, e) => {
|
|
31189
31189
|
if (t instanceof T__namespace.XmlElement && !(e instanceof Array) && Fi$1(t, e)) {
|
|
31190
31190
|
const n = Lo$1(e);
|
|
31191
31191
|
return t._length === n.length && Os(t.getAttributes(), e.attrs) && t.toArray().every(
|
|
31192
|
-
(r, o) =>
|
|
31192
|
+
(r, o) => br$1(r, n[o])
|
|
31193
31193
|
);
|
|
31194
31194
|
}
|
|
31195
31195
|
return t instanceof T__namespace.XmlText && e instanceof Array && Kc$1(t, e);
|
|
@@ -31202,14 +31202,14 @@ Actual: ` + p3.attribValue
|
|
|
31202
31202
|
const u = r[l], f3 = o[l];
|
|
31203
31203
|
if (wo$1(n.mapping.get(u), f3))
|
|
31204
31204
|
d = true;
|
|
31205
|
-
else if (!
|
|
31205
|
+
else if (!br$1(u, f3))
|
|
31206
31206
|
break;
|
|
31207
31207
|
}
|
|
31208
31208
|
for (; l + c3 < a; c3++) {
|
|
31209
31209
|
const u = r[s - c3 - 1], f3 = o[i3 - c3 - 1];
|
|
31210
31210
|
if (wo$1(n.mapping.get(u), f3))
|
|
31211
31211
|
d = true;
|
|
31212
|
-
else if (!
|
|
31212
|
+
else if (!br$1(u, f3))
|
|
31213
31213
|
break;
|
|
31214
31214
|
}
|
|
31215
31215
|
return {
|
|
@@ -31268,7 +31268,7 @@ Actual: ` + p3.attribValue
|
|
|
31268
31268
|
for (; c3 < l; c3++) {
|
|
31269
31269
|
const u = s[c3], f3 = o[c3];
|
|
31270
31270
|
if (!wo$1(r.mapping.get(u), f3))
|
|
31271
|
-
if (
|
|
31271
|
+
if (br$1(u, f3))
|
|
31272
31272
|
r.mapping.set(u, f3);
|
|
31273
31273
|
else
|
|
31274
31274
|
break;
|
|
@@ -31276,7 +31276,7 @@ Actual: ` + p3.attribValue
|
|
|
31276
31276
|
for (; d + c3 + 1 < l; d++) {
|
|
31277
31277
|
const u = s[a - d - 1], f3 = o[i3 - d - 1];
|
|
31278
31278
|
if (!wo$1(r.mapping.get(u), f3))
|
|
31279
|
-
if (
|
|
31279
|
+
if (br$1(u, f3))
|
|
31280
31280
|
r.mapping.set(u, f3);
|
|
31281
31281
|
else
|
|
31282
31282
|
break;
|
|
@@ -31332,20 +31332,20 @@ Actual: ` + p3.attribValue
|
|
|
31332
31332
|
}
|
|
31333
31333
|
}, te);
|
|
31334
31334
|
}, Fi$1 = (t, e) => !(e instanceof Array) && t.nodeName === e.type.name;
|
|
31335
|
-
let
|
|
31335
|
+
let or$1 = null;
|
|
31336
31336
|
const qm = () => {
|
|
31337
31337
|
const t = (
|
|
31338
31338
|
/** @type {Map<EditorView, Map<any, any>>} */
|
|
31339
|
-
|
|
31339
|
+
or$1
|
|
31340
31340
|
);
|
|
31341
|
-
|
|
31341
|
+
or$1 = null, t.forEach((e, n) => {
|
|
31342
31342
|
const r = n.state.tr, o = te.getState(n.state);
|
|
31343
31343
|
o && o.binding && !o.binding.isDestroyed && (e.forEach((i3, s) => {
|
|
31344
31344
|
r.setMeta(s, i3);
|
|
31345
31345
|
}), n.dispatch(r));
|
|
31346
31346
|
});
|
|
31347
31347
|
}, Km = (t, e, n) => {
|
|
31348
|
-
|
|
31348
|
+
or$1 || (or$1 = /* @__PURE__ */ new Map(), As(0, qm)), Hc$1(or$1, t, oo$2).set(e, n);
|
|
31349
31349
|
}, vo$2 = (t, e, n) => {
|
|
31350
31350
|
if (t === 0)
|
|
31351
31351
|
return T__namespace.createRelativePositionFromTypeIndex(e, 0, -1);
|
|
@@ -31408,7 +31408,7 @@ Actual: ` + p3.attribValue
|
|
|
31408
31408
|
}, Xm = (t, e) => {
|
|
31409
31409
|
let n = null, r = null;
|
|
31410
31410
|
return t._item === null ? r = T__namespace.findRootTypeKey(t) : n = T__namespace.createID(t._item.id.client, t._item.id.clock), new T__namespace.RelativePosition(n, r, e.id);
|
|
31411
|
-
},
|
|
31411
|
+
}, wr$1 = (t, e, n, r) => {
|
|
31412
31412
|
const o = T__namespace.createAbsolutePositionFromRelativePosition(n, t);
|
|
31413
31413
|
if (o === null || o.type !== e && !T__namespace.isParentOf(e, o.type._item))
|
|
31414
31414
|
return null;
|
|
@@ -31456,7 +31456,7 @@ Actual: ` + p3.attribValue
|
|
|
31456
31456
|
return s - 1;
|
|
31457
31457
|
}, Jm = (t, e) => {
|
|
31458
31458
|
const n = t.toArray().map(
|
|
31459
|
-
(r) =>
|
|
31459
|
+
(r) => rr$1(
|
|
31460
31460
|
/** @type {Y.XmlElement} */
|
|
31461
31461
|
r,
|
|
31462
31462
|
e,
|
|
@@ -31480,26 +31480,26 @@ Actual: ` + p3.attribValue
|
|
|
31480
31480
|
if (n(s.clientID, c3, l) && l.cursor != null) {
|
|
31481
31481
|
const d = l.user || {};
|
|
31482
31482
|
d.color == null ? d.color = "#ffa500" : eg.test(d.color) || console.warn("A user uses an unsupported color format", d), d.name == null && (d.name = `User: ${c3}`);
|
|
31483
|
-
let u =
|
|
31483
|
+
let u = wr$1(
|
|
31484
31484
|
s,
|
|
31485
31485
|
i3.type,
|
|
31486
31486
|
T__namespace.createRelativePositionFromJSON(l.cursor.anchor),
|
|
31487
31487
|
i3.binding.mapping
|
|
31488
|
-
), f3 =
|
|
31488
|
+
), f3 = wr$1(
|
|
31489
31489
|
s,
|
|
31490
31490
|
i3.type,
|
|
31491
31491
|
T__namespace.createRelativePositionFromJSON(l.cursor.head),
|
|
31492
31492
|
i3.binding.mapping
|
|
31493
31493
|
);
|
|
31494
31494
|
if (u !== null && f3 !== null) {
|
|
31495
|
-
const p3 =
|
|
31495
|
+
const p3 = Nn$2(t.doc.content.size - 1, 0);
|
|
31496
31496
|
u = zt$2(u, p3), f3 = zt$2(f3, p3), a.push(
|
|
31497
31497
|
z.widget(f3, () => r(d, c3), {
|
|
31498
31498
|
key: c3 + "",
|
|
31499
31499
|
side: 10
|
|
31500
31500
|
})
|
|
31501
31501
|
);
|
|
31502
|
-
const h3 = zt$2(u, f3), m =
|
|
31502
|
+
const h3 = zt$2(u, f3), m = Nn$2(u, f3);
|
|
31503
31503
|
a.push(
|
|
31504
31504
|
z.inline(h3, m, o(d, c3), {
|
|
31505
31505
|
inclusiveEnd: true,
|
|
@@ -31515,7 +31515,7 @@ Actual: ` + p3.attribValue
|
|
|
31515
31515
|
selectionBuilder: r = Qm,
|
|
31516
31516
|
getSelection: o = (s) => s.selection
|
|
31517
31517
|
} = {}, i3 = "cursor") => new sp$2({
|
|
31518
|
-
key:
|
|
31518
|
+
key: qr$1,
|
|
31519
31519
|
state: {
|
|
31520
31520
|
init(s, a) {
|
|
31521
31521
|
return Ua$1(
|
|
@@ -31527,7 +31527,7 @@ Actual: ` + p3.attribValue
|
|
|
31527
31527
|
);
|
|
31528
31528
|
},
|
|
31529
31529
|
apply(s, a, l, c3) {
|
|
31530
|
-
const d = te.getState(c3), u = s.getMeta(
|
|
31530
|
+
const d = te.getState(c3), u = s.getMeta(qr$1);
|
|
31531
31531
|
return d && d.isChangeOrigin || u && u.awarenessUpdated ? Ua$1(
|
|
31532
31532
|
c3,
|
|
31533
31533
|
t,
|
|
@@ -31538,11 +31538,11 @@ Actual: ` + p3.attribValue
|
|
|
31538
31538
|
}
|
|
31539
31539
|
},
|
|
31540
31540
|
props: {
|
|
31541
|
-
decorations: (s) =>
|
|
31541
|
+
decorations: (s) => qr$1.getState(s)
|
|
31542
31542
|
},
|
|
31543
31543
|
view: (s) => {
|
|
31544
31544
|
const a = () => {
|
|
31545
|
-
s.docView && Km(s,
|
|
31545
|
+
s.docView && Km(s, qr$1, { awarenessUpdated: true });
|
|
31546
31546
|
}, l = () => {
|
|
31547
31547
|
const c3 = te.getState(s.state), d = t.getLocalState() || {};
|
|
31548
31548
|
if (s.hasFocus()) {
|
|
@@ -31565,7 +31565,7 @@ Actual: ` + p3.attribValue
|
|
|
31565
31565
|
anchor: f3,
|
|
31566
31566
|
head: p3
|
|
31567
31567
|
});
|
|
31568
|
-
} else d.cursor != null &&
|
|
31568
|
+
} else d.cursor != null && wr$1(
|
|
31569
31569
|
c3.doc,
|
|
31570
31570
|
c3.type,
|
|
31571
31571
|
T__namespace.createRelativePositionFromJSON(d.cursor.anchor),
|
|
@@ -31839,10 +31839,10 @@ Actual: ` + p3.attribValue
|
|
|
31839
31839
|
}
|
|
31840
31840
|
return t;
|
|
31841
31841
|
}
|
|
31842
|
-
function
|
|
31842
|
+
function Er$1(t, e) {
|
|
31843
31843
|
return e.nodes[t] ? "node" : e.marks[t] ? "mark" : null;
|
|
31844
31844
|
}
|
|
31845
|
-
var
|
|
31845
|
+
var Bn$1, Yc$1, Gc$1;
|
|
31846
31846
|
class N {
|
|
31847
31847
|
/**
|
|
31848
31848
|
* Get a list of all attributes defined in the extensions.
|
|
@@ -31856,7 +31856,7 @@ Actual: ` + p3.attribValue
|
|
|
31856
31856
|
renderDOM: null,
|
|
31857
31857
|
parseDOM: null,
|
|
31858
31858
|
keepOnSplit: true
|
|
31859
|
-
}, o = I$1(this,
|
|
31859
|
+
}, o = I$1(this, Bn$1, Yc$1).call(this, e, r), i3 = I$1(this, Bn$1, Gc$1).call(this, e, r);
|
|
31860
31860
|
return n.push(...o, ...i3), n;
|
|
31861
31861
|
}
|
|
31862
31862
|
/**
|
|
@@ -31964,14 +31964,14 @@ Actual: ` + p3.attribValue
|
|
|
31964
31964
|
* @returns The attrs of the node/mark or an empty object.
|
|
31965
31965
|
*/
|
|
31966
31966
|
static getAttributes(e, n) {
|
|
31967
|
-
const r =
|
|
31967
|
+
const r = Er$1(
|
|
31968
31968
|
typeof n == "string" ? n : n.name,
|
|
31969
31969
|
e.schema
|
|
31970
31970
|
);
|
|
31971
31971
|
return r === "node" ? this.getNodeAttributes(e, n) : r === "mark" ? this.getMarkAttributes(e, n) : {};
|
|
31972
31972
|
}
|
|
31973
31973
|
}
|
|
31974
|
-
|
|
31974
|
+
Bn$1 = /* @__PURE__ */ new WeakSet(), Yc$1 = function(e, n) {
|
|
31975
31975
|
const r = [], o = (i3) => {
|
|
31976
31976
|
for (const s of i3.types) {
|
|
31977
31977
|
const a = Object.entries(i3.attributes);
|
|
@@ -32021,7 +32021,7 @@ Actual: ` + p3.attribValue
|
|
|
32021
32021
|
}
|
|
32022
32022
|
}
|
|
32023
32023
|
return r;
|
|
32024
|
-
}, ft(N,
|
|
32024
|
+
}, ft(N, Bn$1);
|
|
32025
32025
|
function mg(t = {}) {
|
|
32026
32026
|
return Object.keys(t).length === 0 && t.constructor === Object;
|
|
32027
32027
|
}
|
|
@@ -32029,8 +32029,8 @@ Actual: ` + p3.attribValue
|
|
|
32029
32029
|
const e = Object.entries(t).filter(([n, r]) => n === "attrs" && mg(r) ? false : r != null);
|
|
32030
32030
|
return Object.fromEntries(e);
|
|
32031
32031
|
}
|
|
32032
|
-
var
|
|
32033
|
-
const
|
|
32032
|
+
var _n$2, Zc$1, Qc$1;
|
|
32033
|
+
const lr$1 = class lr2 {
|
|
32034
32034
|
/**
|
|
32035
32035
|
* Creates PM schema by resolved extensions.
|
|
32036
32036
|
* @param extensions List of extensions.
|
|
@@ -32039,11 +32039,11 @@ Actual: ` + p3.attribValue
|
|
|
32039
32039
|
*/
|
|
32040
32040
|
static createSchemaByExtensions(e, n) {
|
|
32041
32041
|
var c3, d;
|
|
32042
|
-
const r = e.filter((u) => u.type === "node"), o = e.filter((u) => u.type === "mark"), i3 = r.find((u) => D(u, "topNode"))?.name, s = N.getAttributesFromExtensions(e), a = I$1(c3 =
|
|
32042
|
+
const r = e.filter((u) => u.type === "node"), o = e.filter((u) => u.type === "mark"), i3 = r.find((u) => D(u, "topNode"))?.name, s = N.getAttributesFromExtensions(e), a = I$1(c3 = lr2, _n$2, Zc$1).call(c3, r, s, n), l = I$1(d = lr2, _n$2, Qc$1).call(d, o, s, n);
|
|
32043
32043
|
return new Ym$1({ topNode: i3, nodes: a, marks: l });
|
|
32044
32044
|
}
|
|
32045
32045
|
};
|
|
32046
|
-
|
|
32046
|
+
_n$2 = /* @__PURE__ */ new WeakSet(), Zc$1 = function(e, n, r) {
|
|
32047
32047
|
const o = e.map((i3) => {
|
|
32048
32048
|
const s = n.filter((h3) => h3.type === i3.name), a = {
|
|
32049
32049
|
name: i3.name,
|
|
@@ -32107,9 +32107,9 @@ Actual: ` + p3.attribValue
|
|
|
32107
32107
|
})), [i3.name, c3];
|
|
32108
32108
|
});
|
|
32109
32109
|
return Object.fromEntries(o);
|
|
32110
|
-
}, ft(
|
|
32111
|
-
let _i$1 =
|
|
32112
|
-
function
|
|
32110
|
+
}, ft(lr$1, _n$2);
|
|
32111
|
+
let _i$1 = lr$1;
|
|
32112
|
+
function Yn$2(t, e) {
|
|
32113
32113
|
return e.nodes[t] || e.marks[t] || null;
|
|
32114
32114
|
}
|
|
32115
32115
|
function gg(t, e) {
|
|
@@ -32373,23 +32373,23 @@ Actual: ` + p3.attribValue
|
|
|
32373
32373
|
});
|
|
32374
32374
|
return n;
|
|
32375
32375
|
};
|
|
32376
|
-
var
|
|
32377
|
-
const
|
|
32376
|
+
var zn$2, ed$1, td$1;
|
|
32377
|
+
const Mn$1 = class Mn2 {
|
|
32378
32378
|
constructor(e, n, r) {
|
|
32379
|
-
ft(this,
|
|
32379
|
+
ft(this, zn$2);
|
|
32380
32380
|
P(this, "editor");
|
|
32381
32381
|
P(this, "schema");
|
|
32382
32382
|
P(this, "extensions");
|
|
32383
32383
|
P(this, "externalExtensions", []);
|
|
32384
32384
|
P(this, "splittableMarks", []);
|
|
32385
|
-
this.editor = r, this.externalExtensions = n || [], this.extensions =
|
|
32385
|
+
this.editor = r, this.externalExtensions = n || [], this.extensions = Mn2.getResolvedExtensions([...e, ...this.externalExtensions]), this.schema = _i$1.createSchemaByExtensions(this.extensions, r), I$1(this, zn$2, ed$1).call(this);
|
|
32386
32386
|
}
|
|
32387
32387
|
/**
|
|
32388
32388
|
* Static method for creating ExtensionService.
|
|
32389
32389
|
* @param args Arguments for the constructor.
|
|
32390
32390
|
*/
|
|
32391
32391
|
static create(...e) {
|
|
32392
|
-
return new
|
|
32392
|
+
return new Mn2(...e);
|
|
32393
32393
|
}
|
|
32394
32394
|
/**
|
|
32395
32395
|
* Get an array of resolved extensions (e.g. sorted by priority).
|
|
@@ -32397,7 +32397,7 @@ Actual: ` + p3.attribValue
|
|
|
32397
32397
|
* @returns Array of resolved extensions.
|
|
32398
32398
|
*/
|
|
32399
32399
|
static getResolvedExtensions(e) {
|
|
32400
|
-
return
|
|
32400
|
+
return Mn2.sortByPriority(e);
|
|
32401
32401
|
}
|
|
32402
32402
|
/**
|
|
32403
32403
|
* Sort extensions by priority.
|
|
@@ -32429,7 +32429,7 @@ Actual: ` + p3.attribValue
|
|
|
32429
32429
|
options: n.options,
|
|
32430
32430
|
storage: n.storage,
|
|
32431
32431
|
editor: this.editor,
|
|
32432
|
-
type:
|
|
32432
|
+
type: Yn$2(n.name, this.schema)
|
|
32433
32433
|
}, o = D(n, "addCommands", r);
|
|
32434
32434
|
o && (e = {
|
|
32435
32435
|
...e,
|
|
@@ -32444,13 +32444,13 @@ Actual: ` + p3.attribValue
|
|
|
32444
32444
|
* @returns Array of PM plugins.
|
|
32445
32445
|
*/
|
|
32446
32446
|
get plugins() {
|
|
32447
|
-
const e = this.editor, n =
|
|
32447
|
+
const e = this.editor, n = Mn2.sortByPriority([...this.extensions].reverse()), r = [], o = n.map((i3) => {
|
|
32448
32448
|
const s = {
|
|
32449
32449
|
name: i3.name,
|
|
32450
32450
|
options: i3.options,
|
|
32451
32451
|
storage: i3.storage,
|
|
32452
32452
|
editor: e,
|
|
32453
|
-
type:
|
|
32453
|
+
type: Yn$2(i3.name, this.schema)
|
|
32454
32454
|
}, a = [], l = D(i3, "addShortcuts", s);
|
|
32455
32455
|
let c3 = {};
|
|
32456
32456
|
if (l) {
|
|
@@ -32505,7 +32505,7 @@ Actual: ` + p3.attribValue
|
|
|
32505
32505
|
return Object.fromEntries(r);
|
|
32506
32506
|
}
|
|
32507
32507
|
};
|
|
32508
|
-
|
|
32508
|
+
zn$2 = /* @__PURE__ */ new WeakSet(), /**
|
|
32509
32509
|
* Install all extensions.
|
|
32510
32510
|
* Create extension storage in the editor, attach editor events.
|
|
32511
32511
|
*/
|
|
@@ -32517,9 +32517,9 @@ Actual: ` + p3.attribValue
|
|
|
32517
32517
|
options: e.options,
|
|
32518
32518
|
storage: e.storage,
|
|
32519
32519
|
editor: this.editor,
|
|
32520
|
-
type:
|
|
32520
|
+
type: Yn$2(e.name, this.schema)
|
|
32521
32521
|
};
|
|
32522
|
-
e.type === "mark" && (K$1(D(e, "keepOnSplit", n)) ?? true) && this.splittableMarks.push(e.name), I$1(this,
|
|
32522
|
+
e.type === "mark" && (K$1(D(e, "keepOnSplit", n)) ?? true) && this.splittableMarks.push(e.name), I$1(this, zn$2, td$1).call(this, e);
|
|
32523
32523
|
}
|
|
32524
32524
|
}, /**
|
|
32525
32525
|
* Attach editor events to extension
|
|
@@ -32532,11 +32532,11 @@ Actual: ` + p3.attribValue
|
|
|
32532
32532
|
options: e.options,
|
|
32533
32533
|
storage: e.storage,
|
|
32534
32534
|
editor: this.editor,
|
|
32535
|
-
type:
|
|
32535
|
+
type: Yn$2(e.name, this.schema)
|
|
32536
32536
|
}, r = D(e, "onBeforeCreate", n), o = D(e, "onCreate", n), i3 = D(e, "onUpdate", n), s = D(e, "onSelectionUpdate", n), a = D(e, "onTransaction", n), l = D(e, "onFocus", n), c3 = D(e, "onBlur", n), d = D(e, "onDestroy", n);
|
|
32537
32537
|
r && this.editor.on("beforeCreate", r), o && this.editor.on("create", o), i3 && this.editor.on("update", i3), s && this.editor.on("selectionUpdate", s), a && this.editor.on("transaction", a), l && this.editor.on("focus", l), c3 && this.editor.on("blur", c3), d && this.editor.on("destroy", d);
|
|
32538
32538
|
};
|
|
32539
|
-
let zi$1 =
|
|
32539
|
+
let zi$1 = Mn$1;
|
|
32540
32540
|
const Cg = (t) => (e) => {
|
|
32541
32541
|
const n = typeof t == "function" ? t(e) : t;
|
|
32542
32542
|
for (let r = 0; r < n.length; r += 1)
|
|
@@ -32563,13 +32563,13 @@ Actual: ` + p3.attribValue
|
|
|
32563
32563
|
let i3 = o.nodeBefore;
|
|
32564
32564
|
if (ud$1(t, o, e, -1))
|
|
32565
32565
|
return true;
|
|
32566
|
-
if (r.parent.content.size == 0 && (
|
|
32566
|
+
if (r.parent.content.size == 0 && (In$2(i3, "end") || Ge$1.isSelectable(i3)))
|
|
32567
32567
|
for (let s = r.depth; ; s--) {
|
|
32568
32568
|
let a = df$1(t.doc, r.before(s), r.after(s), oe$1.empty);
|
|
32569
32569
|
if (a && a.slice.size < a.to - a.from) {
|
|
32570
32570
|
if (e) {
|
|
32571
32571
|
let l = t.tr.step(a);
|
|
32572
|
-
l.setSelection(
|
|
32572
|
+
l.setSelection(In$2(i3, "end") ? ve$2.findFrom(l.doc.resolve(l.mapping.map(o.pos, -1)), -1) : Ge$1.create(l.doc, o.pos - i3.nodeSize)), e(l.scrollIntoView());
|
|
32573
32573
|
}
|
|
32574
32574
|
return true;
|
|
32575
32575
|
}
|
|
@@ -32578,7 +32578,7 @@ Actual: ` + p3.attribValue
|
|
|
32578
32578
|
}
|
|
32579
32579
|
return i3.isAtom && o.depth == r.depth - 1 ? (e && e(t.tr.delete(o.pos - i3.nodeSize, o.pos).scrollIntoView()), true) : false;
|
|
32580
32580
|
};
|
|
32581
|
-
function
|
|
32581
|
+
function In$2(t, e, n = false) {
|
|
32582
32582
|
for (let r = t; r; r = e == "start" ? r.firstChild : r.lastChild) {
|
|
32583
32583
|
if (r.isTextblock)
|
|
32584
32584
|
return true;
|
|
@@ -32623,12 +32623,12 @@ Actual: ` + p3.attribValue
|
|
|
32623
32623
|
let i3 = o.nodeAfter;
|
|
32624
32624
|
if (ud$1(t, o, e, 1))
|
|
32625
32625
|
return true;
|
|
32626
|
-
if (r.parent.content.size == 0 && (
|
|
32626
|
+
if (r.parent.content.size == 0 && (In$2(i3, "start") || Ge$1.isSelectable(i3))) {
|
|
32627
32627
|
let s = df$1(t.doc, r.before(), r.after(), oe$1.empty);
|
|
32628
32628
|
if (s && s.slice.size < s.to - s.from) {
|
|
32629
32629
|
if (e) {
|
|
32630
32630
|
let a = t.tr.step(s);
|
|
32631
|
-
a.setSelection(
|
|
32631
|
+
a.setSelection(In$2(i3, "start") ? ve$2.findFrom(a.doc.resolve(a.mapping.map(o.pos)), 1) : Ge$1.create(a.doc, a.mapping.map(o.pos))), e(a.scrollIntoView());
|
|
32632
32632
|
}
|
|
32633
32633
|
return true;
|
|
32634
32634
|
}
|
|
@@ -32779,7 +32779,7 @@ Actual: ` + p3.attribValue
|
|
|
32779
32779
|
let d = i3.type.spec.isolating || r > 0 && l ? null : ve$2.findFrom(e, 1), u = d && d.$from.blockRange(d.$to), f3 = u && Zm$1(u);
|
|
32780
32780
|
if (f3 != null && f3 >= e.depth)
|
|
32781
32781
|
return n && n(t.tr.lift(u, f3).scrollIntoView()), true;
|
|
32782
|
-
if (c3 &&
|
|
32782
|
+
if (c3 && In$2(i3, "start", true) && In$2(o, "end")) {
|
|
32783
32783
|
let p3 = o, h3 = [];
|
|
32784
32784
|
for (; h3.push(p3), !p3.isTextblock; )
|
|
32785
32785
|
p3 = p3.lastChild;
|
|
@@ -33035,7 +33035,7 @@ Actual: ` + p3.attribValue
|
|
|
33035
33035
|
return So$1(r, i3, n) ? o.setNode(s) : o.setNode(i3, n);
|
|
33036
33036
|
}, Zg = () => ({ state: t, dispatch: e }) => Rg(t, e), Qg = () => ({ state: t, dispatch: e }) => Ns(t, e), ey = (t, e = {}) => ({ tr: n, state: r, dispatch: o }) => {
|
|
33037
33037
|
let i3 = null, s = null;
|
|
33038
|
-
const a =
|
|
33038
|
+
const a = Er$1(
|
|
33039
33039
|
typeof t == "string" ? t : t.name,
|
|
33040
33040
|
r.schema
|
|
33041
33041
|
);
|
|
@@ -33057,7 +33057,7 @@ Actual: ` + p3.attribValue
|
|
|
33057
33057
|
}
|
|
33058
33058
|
const ty = (t, e) => ({ tr: n, state: r, dispatch: o }) => {
|
|
33059
33059
|
let i3 = null, s = null;
|
|
33060
|
-
const a =
|
|
33060
|
+
const a = Er$1(
|
|
33061
33061
|
typeof t == "string" ? t : t.name,
|
|
33062
33062
|
r.schema
|
|
33063
33063
|
);
|
|
@@ -33076,7 +33076,7 @@ Actual: ` + p3.attribValue
|
|
|
33076
33076
|
}
|
|
33077
33077
|
return t;
|
|
33078
33078
|
};
|
|
33079
|
-
function
|
|
33079
|
+
function Kr$1(t) {
|
|
33080
33080
|
const e = `<body>${t}</body>`, n = new window.DOMParser().parseFromString(e, "text/html").body;
|
|
33081
33081
|
return md$1(n);
|
|
33082
33082
|
}
|
|
@@ -33119,13 +33119,13 @@ Actual: ` + p3.attribValue
|
|
|
33119
33119
|
}
|
|
33120
33120
|
})
|
|
33121
33121
|
});
|
|
33122
|
-
if (n.slice ? hr$2.fromSchema(l).parseSlice(
|
|
33122
|
+
if (n.slice ? hr$2.fromSchema(l).parseSlice(Kr$1(t), n.parseOptions) : hr$2.fromSchema(l).parse(Kr$1(t), n.parseOptions), n.errorOnInvalidContent && s)
|
|
33123
33123
|
throw new Error("[super-editor error]: Invalid HTML content", {
|
|
33124
33124
|
cause: new Error(`Invalid element found: ${a}`)
|
|
33125
33125
|
});
|
|
33126
33126
|
}
|
|
33127
33127
|
const i3 = hr$2.fromSchema(e);
|
|
33128
|
-
return n.slice ? i3.parseSlice(
|
|
33128
|
+
return n.slice ? i3.parseSlice(Kr$1(t), n.parseOptions).content : i3.parse(Kr$1(t), n.parseOptions);
|
|
33129
33129
|
}
|
|
33130
33130
|
return Vi$1("", e, n);
|
|
33131
33131
|
}
|
|
@@ -34617,7 +34617,7 @@ Actual: ` + p3.attribValue
|
|
|
34617
34617
|
() => e.liftEmptyBlock(),
|
|
34618
34618
|
() => e.splitBlock()
|
|
34619
34619
|
]);
|
|
34620
|
-
},
|
|
34620
|
+
}, Xn$2 = (t) => {
|
|
34621
34621
|
t.commands.first(({ commands: e, tr: n }) => [
|
|
34622
34622
|
() => e.undoInputRule(),
|
|
34623
34623
|
() => (n.setMeta("inputType", "deleteContentBackward"), false),
|
|
@@ -34637,9 +34637,9 @@ Actual: ` + p3.attribValue
|
|
|
34637
34637
|
const t = {
|
|
34638
34638
|
Enter: () => Ly(this.editor),
|
|
34639
34639
|
"Mod-Enter": () => this.editor.commands.exitCode(),
|
|
34640
|
-
Backspace: () =>
|
|
34641
|
-
"Mod-Backspace": () =>
|
|
34642
|
-
"Shift-Backspace": () =>
|
|
34640
|
+
Backspace: () => Xn$2(this.editor),
|
|
34641
|
+
"Mod-Backspace": () => Xn$2(this.editor),
|
|
34642
|
+
"Shift-Backspace": () => Xn$2(this.editor),
|
|
34643
34643
|
Delete: () => yn$2(this.editor),
|
|
34644
34644
|
"Mod-Delete": () => yn$2(this.editor),
|
|
34645
34645
|
"Mod-a": () => this.editor.commands.selectAll(),
|
|
@@ -34648,8 +34648,8 @@ Actual: ` + p3.attribValue
|
|
|
34648
34648
|
...t
|
|
34649
34649
|
}, n = {
|
|
34650
34650
|
...t,
|
|
34651
|
-
"Ctrl-h": () =>
|
|
34652
|
-
"Alt-Backspace": () =>
|
|
34651
|
+
"Ctrl-h": () => Xn$2(this.editor),
|
|
34652
|
+
"Alt-Backspace": () => Xn$2(this.editor),
|
|
34653
34653
|
"Ctrl-d": () => yn$2(this.editor),
|
|
34654
34654
|
"Ctrl-Alt-Backspace": () => yn$2(this.editor),
|
|
34655
34655
|
"Alt-Delete": () => yn$2(this.editor),
|
|
@@ -34704,7 +34704,7 @@ Actual: ` + p3.attribValue
|
|
|
34704
34704
|
function bd$1(t, e, n = {}) {
|
|
34705
34705
|
if (!e)
|
|
34706
34706
|
return So$1(t, null, n) || Co$1(t, null, n);
|
|
34707
|
-
const r =
|
|
34707
|
+
const r = Er$1(e, t.schema);
|
|
34708
34708
|
return r === "node" ? So$1(t, e, n) : r === "mark" ? Co$1(t, e, n) : false;
|
|
34709
34709
|
}
|
|
34710
34710
|
const Rs = ({
|
|
@@ -34906,8 +34906,8 @@ Actual: ` + p3.attribValue
|
|
|
34906
34906
|
getMarksBetween: $y,
|
|
34907
34907
|
getMarksFromSelection: No$1,
|
|
34908
34908
|
getNodeType: le$2,
|
|
34909
|
-
getSchemaTypeByName:
|
|
34910
|
-
getSchemaTypeNameByName:
|
|
34909
|
+
getSchemaTypeByName: Yn$2,
|
|
34910
|
+
getSchemaTypeNameByName: Er$1,
|
|
34911
34911
|
isActive: bd$1,
|
|
34912
34912
|
isInTable: Cd$1,
|
|
34913
34913
|
isList: Hi$1,
|
|
@@ -35793,7 +35793,7 @@ Actual: ` + p3.attribValue
|
|
|
35793
35793
|
}, Qa$1 = (t) => {
|
|
35794
35794
|
if (t === "initial" || t === "0.4.14") return Object.values(ib);
|
|
35795
35795
|
};
|
|
35796
|
-
var tn$1, ms, O$1, Id$1, Pd$1, Wi$1, Rd$1, Ui$1, qi$1, Ki$1, Xi$1, Ji$1, Yi$1, Gi$1, Zi$1, Qi$1, Ld$1,
|
|
35796
|
+
var tn$1, ms, O$1, Id$1, Pd$1, Wi$1, Rd$1, Ui$1, qi$1, Ki$1, Xi$1, Ji$1, Yi$1, Gi$1, Zi$1, Qi$1, Ld$1, Gn$2, Zn$2, Fd$1, Bd$1, _d$1, zd$1;
|
|
35797
35797
|
const Js = class Js2 extends ag {
|
|
35798
35798
|
constructor(n) {
|
|
35799
35799
|
super();
|
|
@@ -36157,7 +36157,7 @@ Actual: ` + p3.attribValue
|
|
|
36157
36157
|
* @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
|
|
36158
36158
|
*/
|
|
36159
36159
|
processCollaborationMigrations() {
|
|
36160
|
-
if (console.debug("[checkVersionMigrations] Current editor version", "0.9.
|
|
36160
|
+
if (console.debug("[checkVersionMigrations] Current editor version", "0.9.26"), !this.options.ydoc) return;
|
|
36161
36161
|
let r = this.options.ydoc.getMap("meta").get("version");
|
|
36162
36162
|
r || (r = "initial"), console.debug("[checkVersionMigrations] Document version", r);
|
|
36163
36163
|
const o = Qa$1(r) || [], s = this.state.plugins.find((c3) => c3.key.startsWith("y-sync"));
|
|
@@ -36179,11 +36179,11 @@ Actual: ` + p3.attribValue
|
|
|
36179
36179
|
isNewFile: true,
|
|
36180
36180
|
shouldLoadComments: true,
|
|
36181
36181
|
replacedFile: true
|
|
36182
|
-
}), I$1(this, O$1, Ji$1).call(this), I$1(this, O$1, Yi$1).call(this), this.initDefaultStyles(), this.initializeCollaborationData(true), this.options.ydoc || (I$1(this, O$1,
|
|
36182
|
+
}), I$1(this, O$1, Ji$1).call(this), I$1(this, O$1, Yi$1).call(this), this.initDefaultStyles(), this.initializeCollaborationData(true), this.options.ydoc || (I$1(this, O$1, Zn$2).call(this), I$1(this, O$1, Gn$2).call(this));
|
|
36183
36183
|
}
|
|
36184
36184
|
};
|
|
36185
36185
|
tn$1 = /* @__PURE__ */ new WeakMap(), ms = /* @__PURE__ */ new WeakMap(), O$1 = /* @__PURE__ */ new WeakSet(), Id$1 = function(n) {
|
|
36186
|
-
I$1(this, O$1, Ki$1).call(this), I$1(this, O$1, Xi$1).call(this), I$1(this, O$1, Gi$1).call(this), I$1(this, O$1, Ji$1).call(this), I$1(this, O$1, Yi$1).call(this), this.on("beforeCreate", this.options.onBeforeCreate), this.emit("beforeCreate", { editor: this }), this.on("contentError", this.options.onContentError), this.on("exception", this.options.onException), I$1(this, O$1, Qi$1).call(this), this.initDefaultStyles(), this.setDocumentMode(n.documentMode), !this.options.isHeadless && (this.on("create", this.options.onCreate), this.on("update", this.options.onUpdate), this.on("selectionUpdate", this.options.onSelectionUpdate), this.on("transaction", this.options.onTransaction), this.on("focus", I$1(this, O$1, Wi$1)), this.on("blur", this.options.onBlur), this.on("destroy", this.options.onDestroy), this.on("trackedChangesUpdate", this.options.onTrackedChangesUpdate), this.on("commentsLoaded", this.options.onCommentsLoaded), this.on("commentClick", this.options.onCommentClicked), this.on("commentsUpdate", this.options.onCommentsUpdate), this.on("locked", this.options.onDocumentLocked), this.on("collaborationReady", I$1(this, O$1, Ld$1)), this.on("paginationUpdate", this.options.onPaginationUpdate), this.on("comment-positions", this.options.onCommentLocationsUpdate), this.initializeCollaborationData(), this.options.ydoc || (I$1(this, O$1,
|
|
36186
|
+
I$1(this, O$1, Ki$1).call(this), I$1(this, O$1, Xi$1).call(this), I$1(this, O$1, Gi$1).call(this), I$1(this, O$1, Ji$1).call(this), I$1(this, O$1, Yi$1).call(this), this.on("beforeCreate", this.options.onBeforeCreate), this.emit("beforeCreate", { editor: this }), this.on("contentError", this.options.onContentError), this.on("exception", this.options.onException), I$1(this, O$1, Qi$1).call(this), this.initDefaultStyles(), this.setDocumentMode(n.documentMode), !this.options.isHeadless && (this.on("create", this.options.onCreate), this.on("update", this.options.onUpdate), this.on("selectionUpdate", this.options.onSelectionUpdate), this.on("transaction", this.options.onTransaction), this.on("focus", I$1(this, O$1, Wi$1)), this.on("blur", this.options.onBlur), this.on("destroy", this.options.onDestroy), this.on("trackedChangesUpdate", this.options.onTrackedChangesUpdate), this.on("commentsLoaded", this.options.onCommentsLoaded), this.on("commentClick", this.options.onCommentClicked), this.on("commentsUpdate", this.options.onCommentsUpdate), this.on("locked", this.options.onDocumentLocked), this.on("collaborationReady", I$1(this, O$1, Ld$1)), this.on("paginationUpdate", this.options.onPaginationUpdate), this.on("comment-positions", this.options.onCommentLocationsUpdate), this.initializeCollaborationData(), this.options.ydoc || (I$1(this, O$1, Zn$2).call(this), I$1(this, O$1, Gn$2).call(this)), window.setTimeout(() => {
|
|
36187
36187
|
this.isDestroyed || this.emit("create", { editor: this });
|
|
36188
36188
|
}, 0));
|
|
36189
36189
|
}, Pd$1 = function(n) {
|
|
@@ -36203,7 +36203,7 @@ Actual: ` + p3.attribValue
|
|
|
36203
36203
|
this.options.isNewFile = false;
|
|
36204
36204
|
const n = I$1(this, O$1, Zi$1).call(this), r = this.state.tr.replaceWith(0, this.state.doc.content.size, n);
|
|
36205
36205
|
this.view.dispatch(r), setTimeout(() => {
|
|
36206
|
-
I$1(this, O$1,
|
|
36206
|
+
I$1(this, O$1, Zn$2).call(this), I$1(this, O$1, Gn$2).call(this);
|
|
36207
36207
|
}, 50);
|
|
36208
36208
|
}, qi$1 = function(n) {
|
|
36209
36209
|
const r = this.extensionService?.plugins.find((i3) => i3.key.startsWith(n)), o = this.state.plugins.find((i3) => i3.key.startsWith(n));
|
|
@@ -36290,11 +36290,11 @@ Actual: ` + p3.attribValue
|
|
|
36290
36290
|
const i3 = this.view.dom;
|
|
36291
36291
|
i3.editor = this, this.options.telemetry?.sendReport();
|
|
36292
36292
|
}, Ld$1 = function({ editor: n, ydoc: r }) {
|
|
36293
|
-
this.options.collaborationIsReady || (console.debug("🔗 [super-editor] Collaboration ready"), this.options.onCollaborationReady({ editor: n, ydoc: r }), this.options.collaborationIsReady = true, this.options.isNewFile || (I$1(this, O$1,
|
|
36293
|
+
this.options.collaborationIsReady || (console.debug("🔗 [super-editor] Collaboration ready"), this.options.onCollaborationReady({ editor: n, ydoc: r }), this.options.collaborationIsReady = true, this.options.isNewFile || (I$1(this, O$1, Zn$2).call(this), I$1(this, O$1, Gn$2).call(this)));
|
|
36294
36294
|
}, /**
|
|
36295
36295
|
* Initialize comments plugin
|
|
36296
36296
|
*/
|
|
36297
|
-
|
|
36297
|
+
Gn$2 = function() {
|
|
36298
36298
|
if (!this.options.isCommentsEnabled || this.options.isHeadless || !this.options.shouldLoadComments) return;
|
|
36299
36299
|
const n = this.options.replacedFile;
|
|
36300
36300
|
this.emit("commentsLoaded", { editor: this, replacedFile: n, comments: this.converter.comments || [] }), setTimeout(() => {
|
|
@@ -36302,7 +36302,7 @@ Actual: ` + p3.attribValue
|
|
|
36302
36302
|
const { state: r, dispatch: o } = this.view, i3 = r.tr.setMeta(me, { type: "force" });
|
|
36303
36303
|
o(i3);
|
|
36304
36304
|
}, 50);
|
|
36305
|
-
},
|
|
36305
|
+
}, Zn$2 = async function() {
|
|
36306
36306
|
if (this.options.isHeadless || !this.extensionService) return;
|
|
36307
36307
|
if (this.options.extensions.find((r) => r.name === "pagination") && this.options.pagination) {
|
|
36308
36308
|
console.debug("🔗 [super-editor] Initializing pagination");
|
|
@@ -36975,12 +36975,12 @@ Actual: ` + p3.attribValue
|
|
|
36975
36975
|
});
|
|
36976
36976
|
}
|
|
36977
36977
|
const pb = Ts({
|
|
36978
|
-
ArrowLeft:
|
|
36979
|
-
ArrowRight:
|
|
36980
|
-
ArrowUp:
|
|
36981
|
-
ArrowDown:
|
|
36978
|
+
ArrowLeft: Xr$1("horiz", -1),
|
|
36979
|
+
ArrowRight: Xr$1("horiz", 1),
|
|
36980
|
+
ArrowUp: Xr$1("vert", -1),
|
|
36981
|
+
ArrowDown: Xr$1("vert", 1)
|
|
36982
36982
|
});
|
|
36983
|
-
function
|
|
36983
|
+
function Xr$1(t, e) {
|
|
36984
36984
|
const n = t == "vert" ? e > 0 ? "down" : "up" : e > 0 ? "right" : "left";
|
|
36985
36985
|
return function(r, o, i3) {
|
|
36986
36986
|
let s = r.selection, a = e > 0 ? s.$to : s.$from, l = s.empty;
|
|
@@ -38190,7 +38190,7 @@ Actual: ` + p3.attribValue
|
|
|
38190
38190
|
addOptions() {
|
|
38191
38191
|
return {
|
|
38192
38192
|
htmlAttributes: {
|
|
38193
|
-
class: "tab",
|
|
38193
|
+
class: "super-doc-tab",
|
|
38194
38194
|
// this works together with content prop:
|
|
38195
38195
|
// since tab can't have content inside but content prop is defined I have to manually add attribute
|
|
38196
38196
|
contentEditable: false
|
|
@@ -38198,7 +38198,7 @@ Actual: ` + p3.attribValue
|
|
|
38198
38198
|
};
|
|
38199
38199
|
},
|
|
38200
38200
|
parseDOM() {
|
|
38201
|
-
return [{ tag: "span.tab" }];
|
|
38201
|
+
return [{ tag: "span.super-doc-tab" }];
|
|
38202
38202
|
},
|
|
38203
38203
|
renderDOM({ htmlAttributes: t }) {
|
|
38204
38204
|
return ["span", N.mergeAttributes(this.options.htmlAttributes, t), 0];
|
|
@@ -38625,7 +38625,7 @@ Actual: ` + p3.attribValue
|
|
|
38625
38625
|
return e;
|
|
38626
38626
|
}
|
|
38627
38627
|
var Pt$1 = new op$2("selectingCells");
|
|
38628
|
-
function $
|
|
38628
|
+
function Vn$2(t) {
|
|
38629
38629
|
for (let e = t.depth - 1; e > 0; e--)
|
|
38630
38630
|
if (t.node(e).type.spec.tableRole == "row")
|
|
38631
38631
|
return t.node(0).resolve(t.before(e + 1));
|
|
@@ -38650,7 +38650,7 @@ Actual: ` + p3.attribValue
|
|
|
38650
38650
|
return e.$anchorCell.pos > e.$headCell.pos ? e.$anchorCell : e.$headCell;
|
|
38651
38651
|
if ("node" in e && e.node && e.node.type.spec.tableRole == "cell")
|
|
38652
38652
|
return e.$anchor;
|
|
38653
|
-
const n = $
|
|
38653
|
+
const n = Vn$2(e.$head) || p0(e.$head);
|
|
38654
38654
|
if (n)
|
|
38655
38655
|
return n;
|
|
38656
38656
|
throw new RangeError(`No cell found around position ${e.head}`);
|
|
@@ -39237,7 +39237,7 @@ Actual: ` + p3.attribValue
|
|
|
39237
39237
|
i3 = o.$anchorCell.nodeAfter, s = o.$anchorCell.pos;
|
|
39238
39238
|
} else {
|
|
39239
39239
|
if (i3 = f0(o.$from), !i3) return false;
|
|
39240
|
-
s = (r = $
|
|
39240
|
+
s = (r = Vn$2(o.$from)) == null ? void 0 : r.pos;
|
|
39241
39241
|
}
|
|
39242
39242
|
if (i3 == null || s == null || i3.attrs.colspan == 1 && i3.attrs.rowspan == 1)
|
|
39243
39243
|
return false;
|
|
@@ -39346,7 +39346,7 @@ Actual: ` + p3.attribValue
|
|
|
39346
39346
|
}
|
|
39347
39347
|
return true;
|
|
39348
39348
|
}
|
|
39349
|
-
function
|
|
39349
|
+
function vr$1(t, e) {
|
|
39350
39350
|
return e = e || { useDeprecatedLogic: false }, e.useDeprecatedLogic ? L0(t) : function(n, r) {
|
|
39351
39351
|
if (!Ze$2(n)) return false;
|
|
39352
39352
|
if (r) {
|
|
@@ -39373,13 +39373,13 @@ Actual: ` + p3.attribValue
|
|
|
39373
39373
|
return true;
|
|
39374
39374
|
};
|
|
39375
39375
|
}
|
|
39376
|
-
|
|
39376
|
+
vr$1("row", {
|
|
39377
39377
|
useDeprecatedLogic: true
|
|
39378
39378
|
});
|
|
39379
|
-
|
|
39379
|
+
vr$1("column", {
|
|
39380
39380
|
useDeprecatedLogic: true
|
|
39381
39381
|
});
|
|
39382
|
-
var F0 =
|
|
39382
|
+
var F0 = vr$1("cell", {
|
|
39383
39383
|
useDeprecatedLogic: true
|
|
39384
39384
|
});
|
|
39385
39385
|
function B0(t, e) {
|
|
@@ -39427,7 +39427,7 @@ Actual: ` + p3.attribValue
|
|
|
39427
39427
|
), true;
|
|
39428
39428
|
return false;
|
|
39429
39429
|
}
|
|
39430
|
-
function
|
|
39430
|
+
function Jr$1(t, e) {
|
|
39431
39431
|
const n = t.selection;
|
|
39432
39432
|
if (!(n instanceof X$1)) return false;
|
|
39433
39433
|
if (e) {
|
|
@@ -39639,23 +39639,23 @@ Actual: ` + p3.attribValue
|
|
|
39639
39639
|
), e(u);
|
|
39640
39640
|
}
|
|
39641
39641
|
var j0 = Ts({
|
|
39642
|
-
ArrowLeft:
|
|
39643
|
-
ArrowRight:
|
|
39644
|
-
ArrowUp:
|
|
39645
|
-
ArrowDown:
|
|
39646
|
-
"Shift-ArrowLeft":
|
|
39647
|
-
"Shift-ArrowRight":
|
|
39648
|
-
"Shift-ArrowUp":
|
|
39649
|
-
"Shift-ArrowDown":
|
|
39650
|
-
Backspace:
|
|
39651
|
-
"Mod-Backspace":
|
|
39652
|
-
Delete:
|
|
39653
|
-
"Mod-Delete":
|
|
39642
|
+
ArrowLeft: Yr$1("horiz", -1),
|
|
39643
|
+
ArrowRight: Yr$1("horiz", 1),
|
|
39644
|
+
ArrowUp: Yr$1("vert", -1),
|
|
39645
|
+
ArrowDown: Yr$1("vert", 1),
|
|
39646
|
+
"Shift-ArrowLeft": Gr$1("horiz", -1),
|
|
39647
|
+
"Shift-ArrowRight": Gr$1("horiz", 1),
|
|
39648
|
+
"Shift-ArrowUp": Gr$1("vert", -1),
|
|
39649
|
+
"Shift-ArrowDown": Gr$1("vert", 1),
|
|
39650
|
+
Backspace: Jr$1,
|
|
39651
|
+
"Mod-Backspace": Jr$1,
|
|
39652
|
+
Delete: Jr$1,
|
|
39653
|
+
"Mod-Delete": Jr$1
|
|
39654
39654
|
});
|
|
39655
39655
|
function so$2(t, e, n) {
|
|
39656
39656
|
return n.eq(t.selection) ? false : (e && e(t.tr.setSelection(n).scrollIntoView()), true);
|
|
39657
39657
|
}
|
|
39658
|
-
function
|
|
39658
|
+
function Yr$1(t, e) {
|
|
39659
39659
|
return (n, r, o) => {
|
|
39660
39660
|
if (!o) return false;
|
|
39661
39661
|
const i3 = n.selection;
|
|
@@ -39681,7 +39681,7 @@ Actual: ` + p3.attribValue
|
|
|
39681
39681
|
}
|
|
39682
39682
|
};
|
|
39683
39683
|
}
|
|
39684
|
-
function
|
|
39684
|
+
function Gr$1(t, e) {
|
|
39685
39685
|
return (n, r, o) => {
|
|
39686
39686
|
if (!o) return false;
|
|
39687
39687
|
const i3 = n.selection;
|
|
@@ -39702,7 +39702,7 @@ Actual: ` + p3.attribValue
|
|
|
39702
39702
|
};
|
|
39703
39703
|
}
|
|
39704
39704
|
function W0(t, e) {
|
|
39705
|
-
const n = t.state.doc, r = $
|
|
39705
|
+
const n = t.state.doc, r = Vn$2(n.resolve(e));
|
|
39706
39706
|
return r ? (t.dispatch(t.state.tr.setSelection(new X$1(r))), true) : false;
|
|
39707
39707
|
}
|
|
39708
39708
|
function U0(t, e, n) {
|
|
@@ -39743,7 +39743,7 @@ Actual: ` + p3.attribValue
|
|
|
39743
39743
|
let o;
|
|
39744
39744
|
if (e.shiftKey && t.state.selection instanceof X$1)
|
|
39745
39745
|
i3(t.state.selection.$anchorCell, e), e.preventDefault();
|
|
39746
|
-
else if (e.shiftKey && r && (o = $
|
|
39746
|
+
else if (e.shiftKey && r && (o = Vn$2(t.state.selection.$anchor)) != null && ((n = di$1(t, e)) == null ? void 0 : n.pos) != o.pos)
|
|
39747
39747
|
i3(o, e), e.preventDefault();
|
|
39748
39748
|
else if (!r)
|
|
39749
39749
|
return;
|
|
@@ -39797,7 +39797,7 @@ Actual: ` + p3.attribValue
|
|
|
39797
39797
|
left: e.clientX,
|
|
39798
39798
|
top: e.clientY
|
|
39799
39799
|
});
|
|
39800
|
-
return n && n ? $
|
|
39800
|
+
return n && n ? Vn$2(t.state.doc.resolve(n.pos)) : null;
|
|
39801
39801
|
}
|
|
39802
39802
|
var K0 = class {
|
|
39803
39803
|
constructor(t, e) {
|
|
@@ -39996,7 +39996,7 @@ Actual: ` + p3.attribValue
|
|
|
39996
39996
|
top: e.clientY
|
|
39997
39997
|
});
|
|
39998
39998
|
if (!i3) return -1;
|
|
39999
|
-
const { pos: s } = i3, a = $
|
|
39999
|
+
const { pos: s } = i3, a = Vn$2(t.state.doc.resolve(s));
|
|
40000
40000
|
if (!a) return -1;
|
|
40001
40001
|
if (n == "right") return a.pos;
|
|
40002
40002
|
const l = re$1.get(a.node(-1)), c3 = a.start(-1), d = l.map.indexOf(a.pos - c3);
|
|
@@ -40104,7 +40104,7 @@ Actual: ` + p3.attribValue
|
|
|
40104
40104
|
}
|
|
40105
40105
|
});
|
|
40106
40106
|
}
|
|
40107
|
-
const iw = (t) => t instanceof X$1,
|
|
40107
|
+
const iw = (t) => t instanceof X$1, Zr$1 = ({ editor: t }) => {
|
|
40108
40108
|
const { selection: e } = t.state;
|
|
40109
40109
|
if (!iw(e)) return false;
|
|
40110
40110
|
let n = 0;
|
|
@@ -40225,8 +40225,8 @@ Actual: ` + p3.attribValue
|
|
|
40225
40225
|
mergeCells: () => ({ state: t, dispatch: e }) => fl$1(t, e),
|
|
40226
40226
|
splitCell: () => ({ state: t, dispatch: e }) => pl$1(t, e),
|
|
40227
40227
|
mergeOrSplit: () => ({ state: t, dispatch: e }) => fl$1(t, e) ? true : pl$1(t, e),
|
|
40228
|
-
toggleHeaderColumn: () => ({ state: t, dispatch: e }) =>
|
|
40229
|
-
toggleHeaderRow: () => ({ state: t, dispatch: e }) =>
|
|
40228
|
+
toggleHeaderColumn: () => ({ state: t, dispatch: e }) => vr$1("column")(t, e),
|
|
40229
|
+
toggleHeaderRow: () => ({ state: t, dispatch: e }) => vr$1("row")(t, e),
|
|
40230
40230
|
toggleHeaderCell: () => ({ state: t, dispatch: e }) => F0(t, e),
|
|
40231
40231
|
setCellAttr: (t, e) => ({ state: n, dispatch: r }) => R0(t, e)(n, r),
|
|
40232
40232
|
goToNextCell: () => ({ state: t, dispatch: e }) => ml$1(1)(t, e),
|
|
@@ -40256,10 +40256,10 @@ Actual: ` + p3.attribValue
|
|
|
40256
40256
|
return {
|
|
40257
40257
|
Tab: () => this.editor.commands.goToNextCell() ? true : this.editor.can().addRowAfter() ? this.editor.chain().addRowAfter().goToNextCell().run() : false,
|
|
40258
40258
|
"Shift-Tab": () => this.editor.commands.goToPreviousCell(),
|
|
40259
|
-
Backspace:
|
|
40260
|
-
"Mod-Backspace":
|
|
40261
|
-
Delete:
|
|
40262
|
-
"Mod-Delete":
|
|
40259
|
+
Backspace: Zr$1,
|
|
40260
|
+
"Mod-Backspace": Zr$1,
|
|
40261
|
+
Delete: Zr$1,
|
|
40262
|
+
"Mod-Delete": Zr$1
|
|
40263
40263
|
};
|
|
40264
40264
|
},
|
|
40265
40265
|
addPmPlugins() {
|
|
@@ -40757,16 +40757,16 @@ Actual: ` + p3.attribValue
|
|
|
40757
40757
|
super(`Failed to parse color: "${e}"`);
|
|
40758
40758
|
}
|
|
40759
40759
|
}
|
|
40760
|
-
var
|
|
40760
|
+
var Qn$2 = mw;
|
|
40761
40761
|
function gw(t) {
|
|
40762
|
-
if (typeof t != "string") throw new
|
|
40762
|
+
if (typeof t != "string") throw new Qn$2(t);
|
|
40763
40763
|
if (t.trim().toLowerCase() === "transparent") return [0, 0, 0, 0];
|
|
40764
40764
|
let e = t.trim();
|
|
40765
40765
|
e = xw.test(t) ? ww(t) : t;
|
|
40766
40766
|
const n = vw.exec(e);
|
|
40767
40767
|
if (n) {
|
|
40768
40768
|
const s = Array.from(n).slice(1);
|
|
40769
|
-
return [...s.slice(0, 3).map((a) => parseInt(
|
|
40769
|
+
return [...s.slice(0, 3).map((a) => parseInt(kr(a, 2), 16)), parseInt(kr(s[3] || "f", 2), 16) / 255];
|
|
40770
40770
|
}
|
|
40771
40771
|
const r = kw.exec(e);
|
|
40772
40772
|
if (r) {
|
|
@@ -40781,11 +40781,11 @@ Actual: ` + p3.attribValue
|
|
|
40781
40781
|
const i3 = Sw.exec(e);
|
|
40782
40782
|
if (i3) {
|
|
40783
40783
|
const [s, a, l, c3] = Array.from(i3).slice(1).map(parseFloat);
|
|
40784
|
-
if (as$1(0, 100, a) !== a) throw new
|
|
40785
|
-
if (as$1(0, 100, l) !== l) throw new
|
|
40784
|
+
if (as$1(0, 100, a) !== a) throw new Qn$2(t);
|
|
40785
|
+
if (as$1(0, 100, l) !== l) throw new Qn$2(t);
|
|
40786
40786
|
return [...Mw(s, a, l), Number.isNaN(c3) ? 1 : c3];
|
|
40787
40787
|
}
|
|
40788
|
-
throw new
|
|
40788
|
+
throw new Qn$2(t);
|
|
40789
40789
|
}
|
|
40790
40790
|
function yw(t) {
|
|
40791
40791
|
let e = 5381, n = t.length;
|
|
@@ -40802,10 +40802,10 @@ Actual: ` + p3.attribValue
|
|
|
40802
40802
|
}, {});
|
|
40803
40803
|
function ww(t) {
|
|
40804
40804
|
const e = t.toLowerCase().trim(), n = bw[yw(e)];
|
|
40805
|
-
if (!n) throw new
|
|
40805
|
+
if (!n) throw new Qn$2(t);
|
|
40806
40806
|
return `#${n}`;
|
|
40807
40807
|
}
|
|
40808
|
-
const
|
|
40808
|
+
const kr = (t, e) => Array.from(Array(e)).map(() => t).join(""), vw = new RegExp(`^#${kr("([a-f0-9])", 3)}([a-f0-9])?$`, "i"), kw = new RegExp(`^#${kr("([a-f0-9]{2})", 3)}([a-f0-9]{2})?$`, "i"), Cw = new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${kr(",\\s*(\\d+)\\s*", 2)}(?:,\\s*([\\d.]+))?\\s*\\)$`, "i"), Sw = /^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i, xw = /^[a-z]+$/i, xl$1 = (t) => Math.round(t * 255), Mw = (t, e, n) => {
|
|
40809
40809
|
let r = n / 100;
|
|
40810
40810
|
if (e === 0)
|
|
40811
40811
|
return [r, r, r].map(xl$1);
|
|
@@ -42161,10 +42161,10 @@ Actual: ` + p3.attribValue
|
|
|
42161
42161
|
})];
|
|
42162
42162
|
}
|
|
42163
42163
|
});
|
|
42164
|
-
var De$1 = "top", Ue = "bottom", qe$1 = "right", Ne$2 = "left", Vs = "auto",
|
|
42165
|
-
return t.concat([e + "-" +
|
|
42166
|
-
}, []), _u$1 = /* @__PURE__ */ [].concat(
|
|
42167
|
-
return t.concat([e, e + "-" +
|
|
42164
|
+
var De$1 = "top", Ue = "bottom", qe$1 = "right", Ne$2 = "left", Vs = "auto", Ir = [De$1, Ue, qe$1, Ne$2], Pn$2 = "start", Cr$1 = "end", Bw = "clippingParents", Bu$1 = "viewport", Jn$2 = "popper", _w = "reference", Ol$1 = /* @__PURE__ */ Ir.reduce(function(t, e) {
|
|
42165
|
+
return t.concat([e + "-" + Pn$2, e + "-" + Cr$1]);
|
|
42166
|
+
}, []), _u$1 = /* @__PURE__ */ [].concat(Ir, [Vs]).reduce(function(t, e) {
|
|
42167
|
+
return t.concat([e, e + "-" + Pn$2, e + "-" + Cr$1]);
|
|
42168
42168
|
}, []), zw = "beforeRead", $w = "read", Vw = "afterRead", Hw = "beforeMain", jw = "main", Ww = "afterMain", Uw = "beforeWrite", qw = "write", Kw = "afterWrite", Xw = [zw, $w, Vw, Hw, jw, Ww, Uw, qw, Kw];
|
|
42169
42169
|
function lt$1(t) {
|
|
42170
42170
|
return t ? (t.nodeName || "").toLowerCase() : null;
|
|
@@ -42237,7 +42237,7 @@ Actual: ` + p3.attribValue
|
|
|
42237
42237
|
function it(t) {
|
|
42238
42238
|
return t.split("-")[0];
|
|
42239
42239
|
}
|
|
42240
|
-
var sn$2 = Math.max, Oo$1 = Math.min,
|
|
42240
|
+
var sn$2 = Math.max, Oo$1 = Math.min, Rn$2 = Math.round;
|
|
42241
42241
|
function ds$1() {
|
|
42242
42242
|
var t = navigator.userAgentData;
|
|
42243
42243
|
return t != null && t.brands && Array.isArray(t.brands) ? t.brands.map(function(e) {
|
|
@@ -42247,10 +42247,10 @@ Actual: ` + p3.attribValue
|
|
|
42247
42247
|
function $u$1() {
|
|
42248
42248
|
return !/^((?!chrome|android).)*safari/i.test(ds$1());
|
|
42249
42249
|
}
|
|
42250
|
-
function
|
|
42250
|
+
function Ln$2(t, e, n) {
|
|
42251
42251
|
e === void 0 && (e = false), n === void 0 && (n = false);
|
|
42252
42252
|
var r = t.getBoundingClientRect(), o = 1, i3 = 1;
|
|
42253
|
-
e && We$1(t) && (o = t.offsetWidth > 0 &&
|
|
42253
|
+
e && We$1(t) && (o = t.offsetWidth > 0 && Rn$2(r.width) / t.offsetWidth || 1, i3 = t.offsetHeight > 0 && Rn$2(r.height) / t.offsetHeight || 1);
|
|
42254
42254
|
var s = un$2(t) ? Le$2(t) : window, a = s.visualViewport, l = !$u$1() && n, c3 = (r.left + (l && a ? a.offsetLeft : 0)) / o, d = (r.top + (l && a ? a.offsetTop : 0)) / i3, u = r.width / o, f3 = r.height / i3;
|
|
42255
42255
|
return {
|
|
42256
42256
|
width: u,
|
|
@@ -42264,7 +42264,7 @@ Actual: ` + p3.attribValue
|
|
|
42264
42264
|
};
|
|
42265
42265
|
}
|
|
42266
42266
|
function js(t) {
|
|
42267
|
-
var e =
|
|
42267
|
+
var e = Ln$2(t), n = t.offsetWidth, r = t.offsetHeight;
|
|
42268
42268
|
return Math.abs(e.width - n) <= 1 && (n = e.width), Math.abs(e.height - r) <= 1 && (r = e.height), {
|
|
42269
42269
|
x: t.offsetLeft,
|
|
42270
42270
|
y: t.offsetTop,
|
|
@@ -42330,7 +42330,7 @@ Actual: ` + p3.attribValue
|
|
|
42330
42330
|
}
|
|
42331
42331
|
return null;
|
|
42332
42332
|
}
|
|
42333
|
-
function
|
|
42333
|
+
function Pr(t) {
|
|
42334
42334
|
for (var e = Le$2(t), n = Tl$1(t); n && Gw(n) && St$1(n).position === "static"; )
|
|
42335
42335
|
n = Tl$1(n);
|
|
42336
42336
|
return n && (lt$1(n) === "html" || lt$1(n) === "body" && St$1(n).position === "static") ? e : n || Zw(t) || e;
|
|
@@ -42338,11 +42338,11 @@ Actual: ` + p3.attribValue
|
|
|
42338
42338
|
function Ws(t) {
|
|
42339
42339
|
return ["top", "bottom"].indexOf(t) >= 0 ? "x" : "y";
|
|
42340
42340
|
}
|
|
42341
|
-
function
|
|
42341
|
+
function ir$1(t, e, n) {
|
|
42342
42342
|
return sn$2(t, Oo$1(e, n));
|
|
42343
42343
|
}
|
|
42344
42344
|
function Qw(t, e, n) {
|
|
42345
|
-
var r =
|
|
42345
|
+
var r = ir$1(t, e, n);
|
|
42346
42346
|
return r > n ? n : r;
|
|
42347
42347
|
}
|
|
42348
42348
|
function Hu$1() {
|
|
@@ -42364,12 +42364,12 @@ Actual: ` + p3.attribValue
|
|
|
42364
42364
|
var ev = function(e, n) {
|
|
42365
42365
|
return e = typeof e == "function" ? e(Object.assign({}, n.rects, {
|
|
42366
42366
|
placement: n.placement
|
|
42367
|
-
})) : e, ju$1(typeof e != "number" ? e : Wu$1(e,
|
|
42367
|
+
})) : e, ju$1(typeof e != "number" ? e : Wu$1(e, Ir));
|
|
42368
42368
|
};
|
|
42369
42369
|
function tv(t) {
|
|
42370
42370
|
var e, n = t.state, r = t.name, o = t.options, i3 = n.elements.arrow, s = n.modifiersData.popperOffsets, a = it(n.placement), l = Ws(a), c3 = [Ne$2, qe$1].indexOf(a) >= 0, d = c3 ? "height" : "width";
|
|
42371
42371
|
if (!(!i3 || !s)) {
|
|
42372
|
-
var u = ev(o.padding, n), f3 = js(i3), p3 = l === "y" ? De$1 : Ne$2, h3 = l === "y" ? Ue : qe$1, m = n.rects.reference[d] + n.rects.reference[l] - s[l] - n.rects.popper[d], g = s[l] - n.rects.reference[l], b =
|
|
42372
|
+
var u = ev(o.padding, n), f3 = js(i3), p3 = l === "y" ? De$1 : Ne$2, h3 = l === "y" ? Ue : qe$1, m = n.rects.reference[d] + n.rects.reference[l] - s[l] - n.rects.popper[d], g = s[l] - n.rects.reference[l], b = Pr(i3), w = b ? l === "y" ? b.clientHeight || 0 : b.clientWidth || 0 : 0, C = m / 2 - g / 2, y = u[p3], S = w - f3[d] - u[h3], k = w / 2 - f3[d] / 2 + C, M = ir$1(y, k, S), L3 = l;
|
|
42373
42373
|
n.modifiersData[r] = (e = {}, e[L3] = M, e.centerOffset = M - k, e);
|
|
42374
42374
|
}
|
|
42375
42375
|
}
|
|
@@ -42386,7 +42386,7 @@ Actual: ` + p3.attribValue
|
|
|
42386
42386
|
requires: ["popperOffsets"],
|
|
42387
42387
|
requiresIfExists: ["preventOverflow"]
|
|
42388
42388
|
};
|
|
42389
|
-
function
|
|
42389
|
+
function Fn$1(t) {
|
|
42390
42390
|
return t.split("-")[1];
|
|
42391
42391
|
}
|
|
42392
42392
|
var ov = {
|
|
@@ -42398,8 +42398,8 @@ Actual: ` + p3.attribValue
|
|
|
42398
42398
|
function iv(t, e) {
|
|
42399
42399
|
var n = t.x, r = t.y, o = e.devicePixelRatio || 1;
|
|
42400
42400
|
return {
|
|
42401
|
-
x:
|
|
42402
|
-
y:
|
|
42401
|
+
x: Rn$2(n * o) / o || 0,
|
|
42402
|
+
y: Rn$2(r * o) / o || 0
|
|
42403
42403
|
};
|
|
42404
42404
|
}
|
|
42405
42405
|
function Dl$1(t) {
|
|
@@ -42413,8 +42413,8 @@ Actual: ` + p3.attribValue
|
|
|
42413
42413
|
p3 = g.x, m = g.y;
|
|
42414
42414
|
var b = s.hasOwnProperty("x"), w = s.hasOwnProperty("y"), C = Ne$2, y = De$1, S = window;
|
|
42415
42415
|
if (c3) {
|
|
42416
|
-
var k =
|
|
42417
|
-
if (k === Le$2(n) && (k = Ut$2(n), St$1(k).position !== "static" && a === "absolute" && (M = "scrollHeight", L3 = "scrollWidth")), k = k, o === De$1 || (o === Ne$2 || o === qe$1) && i3 ===
|
|
42416
|
+
var k = Pr(n), M = "clientHeight", L3 = "clientWidth";
|
|
42417
|
+
if (k === Le$2(n) && (k = Ut$2(n), St$1(k).position !== "static" && a === "absolute" && (M = "scrollHeight", L3 = "scrollWidth")), k = k, o === De$1 || (o === Ne$2 || o === qe$1) && i3 === Cr$1) {
|
|
42418
42418
|
y = Ue;
|
|
42419
42419
|
var x = u && k === S && S.visualViewport ? S.visualViewport.height : (
|
|
42420
42420
|
// $FlowFixMe[prop-missing]
|
|
@@ -42422,7 +42422,7 @@ Actual: ` + p3.attribValue
|
|
|
42422
42422
|
);
|
|
42423
42423
|
m -= x - r.height, m *= l ? 1 : -1;
|
|
42424
42424
|
}
|
|
42425
|
-
if (o === Ne$2 || (o === De$1 || o === Ue) && i3 ===
|
|
42425
|
+
if (o === Ne$2 || (o === De$1 || o === Ue) && i3 === Cr$1) {
|
|
42426
42426
|
C = qe$1;
|
|
42427
42427
|
var $ = u && k === S && S.visualViewport ? S.visualViewport.width : (
|
|
42428
42428
|
// $FlowFixMe[prop-missing]
|
|
@@ -42449,7 +42449,7 @@ Actual: ` + p3.attribValue
|
|
|
42449
42449
|
function sv(t) {
|
|
42450
42450
|
var e = t.state, n = t.options, r = n.gpuAcceleration, o = r === void 0 ? true : r, i3 = n.adaptive, s = i3 === void 0 ? true : i3, a = n.roundOffsets, l = a === void 0 ? true : a, c3 = {
|
|
42451
42451
|
placement: it(e.placement),
|
|
42452
|
-
variation:
|
|
42452
|
+
variation: Fn$1(e.placement),
|
|
42453
42453
|
popper: e.elements.popper,
|
|
42454
42454
|
popperRect: e.rects.popper,
|
|
42455
42455
|
gpuAcceleration: o,
|
|
@@ -42476,17 +42476,17 @@ Actual: ` + p3.attribValue
|
|
|
42476
42476
|
fn: sv,
|
|
42477
42477
|
data: {}
|
|
42478
42478
|
};
|
|
42479
|
-
var
|
|
42479
|
+
var Qr$1 = {
|
|
42480
42480
|
passive: true
|
|
42481
42481
|
};
|
|
42482
42482
|
function lv(t) {
|
|
42483
42483
|
var e = t.state, n = t.instance, r = t.options, o = r.scroll, i3 = o === void 0 ? true : o, s = r.resize, a = s === void 0 ? true : s, l = Le$2(e.elements.popper), c3 = [].concat(e.scrollParents.reference, e.scrollParents.popper);
|
|
42484
42484
|
return i3 && c3.forEach(function(d) {
|
|
42485
|
-
d.addEventListener("scroll", n.update,
|
|
42486
|
-
}), a && l.addEventListener("resize", n.update,
|
|
42485
|
+
d.addEventListener("scroll", n.update, Qr$1);
|
|
42486
|
+
}), a && l.addEventListener("resize", n.update, Qr$1), function() {
|
|
42487
42487
|
i3 && c3.forEach(function(d) {
|
|
42488
|
-
d.removeEventListener("scroll", n.update,
|
|
42489
|
-
}), a && l.removeEventListener("resize", n.update,
|
|
42488
|
+
d.removeEventListener("scroll", n.update, Qr$1);
|
|
42489
|
+
}), a && l.removeEventListener("resize", n.update, Qr$1);
|
|
42490
42490
|
};
|
|
42491
42491
|
}
|
|
42492
42492
|
const cv = {
|
|
@@ -42526,7 +42526,7 @@ Actual: ` + p3.attribValue
|
|
|
42526
42526
|
};
|
|
42527
42527
|
}
|
|
42528
42528
|
function qs(t) {
|
|
42529
|
-
return
|
|
42529
|
+
return Ln$2(Ut$2(t)).left + Us(t).scrollLeft;
|
|
42530
42530
|
}
|
|
42531
42531
|
function fv(t, e) {
|
|
42532
42532
|
var n = Le$2(t), r = Ut$2(t), o = n.visualViewport, i3 = r.clientWidth, s = r.clientHeight, a = 0, l = 0;
|
|
@@ -42558,13 +42558,13 @@ Actual: ` + p3.attribValue
|
|
|
42558
42558
|
function Uu$1(t) {
|
|
42559
42559
|
return ["html", "body", "#document"].indexOf(lt$1(t)) >= 0 ? t.ownerDocument.body : We$1(t) && Ks(t) ? t : Uu$1(zo$1(t));
|
|
42560
42560
|
}
|
|
42561
|
-
function
|
|
42561
|
+
function sr$1(t, e) {
|
|
42562
42562
|
var n;
|
|
42563
42563
|
e === void 0 && (e = []);
|
|
42564
42564
|
var r = Uu$1(t), o = r === ((n = t.ownerDocument) == null ? void 0 : n.body), i3 = Le$2(r), s = o ? [i3].concat(i3.visualViewport || [], Ks(r) ? r : []) : r, a = e.concat(s);
|
|
42565
42565
|
return o ? a : (
|
|
42566
42566
|
// $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
42567
|
-
a.concat(
|
|
42567
|
+
a.concat(sr$1(zo$1(s)))
|
|
42568
42568
|
);
|
|
42569
42569
|
}
|
|
42570
42570
|
function us$1(t) {
|
|
@@ -42576,14 +42576,14 @@ Actual: ` + p3.attribValue
|
|
|
42576
42576
|
});
|
|
42577
42577
|
}
|
|
42578
42578
|
function hv(t, e) {
|
|
42579
|
-
var n =
|
|
42579
|
+
var n = Ln$2(t, false, e === "fixed");
|
|
42580
42580
|
return n.top = n.top + t.clientTop, n.left = n.left + t.clientLeft, n.bottom = n.top + t.clientHeight, n.right = n.left + t.clientWidth, n.width = t.clientWidth, n.height = t.clientHeight, n.x = n.left, n.y = n.top, n;
|
|
42581
42581
|
}
|
|
42582
42582
|
function El$1(t, e, n) {
|
|
42583
42583
|
return e === Bu$1 ? us$1(fv(t, n)) : un$2(e) ? hv(e, n) : us$1(pv(Ut$2(t)));
|
|
42584
42584
|
}
|
|
42585
42585
|
function mv(t) {
|
|
42586
|
-
var e =
|
|
42586
|
+
var e = sr$1(zo$1(t)), n = ["absolute", "fixed"].indexOf(St$1(t).position) >= 0, r = n && We$1(t) ? Pr(t) : t;
|
|
42587
42587
|
return un$2(r) ? e.filter(function(o) {
|
|
42588
42588
|
return un$2(o) && Vu$1(o, r) && lt$1(o) !== "body";
|
|
42589
42589
|
}) : [];
|
|
@@ -42596,7 +42596,7 @@ Actual: ` + p3.attribValue
|
|
|
42596
42596
|
return a.width = a.right - a.left, a.height = a.bottom - a.top, a.x = a.left, a.y = a.top, a;
|
|
42597
42597
|
}
|
|
42598
42598
|
function qu$1(t) {
|
|
42599
|
-
var e = t.reference, n = t.element, r = t.placement, o = r ? it(r) : null, i3 = r ?
|
|
42599
|
+
var e = t.reference, n = t.element, r = t.placement, o = r ? it(r) : null, i3 = r ? Fn$1(r) : null, s = e.x + e.width / 2 - n.width / 2, a = e.y + e.height / 2 - n.height / 2, l;
|
|
42600
42600
|
switch (o) {
|
|
42601
42601
|
case De$1:
|
|
42602
42602
|
l = {
|
|
@@ -42632,29 +42632,29 @@ Actual: ` + p3.attribValue
|
|
|
42632
42632
|
if (c3 != null) {
|
|
42633
42633
|
var d = c3 === "y" ? "height" : "width";
|
|
42634
42634
|
switch (i3) {
|
|
42635
|
-
case
|
|
42635
|
+
case Pn$2:
|
|
42636
42636
|
l[c3] = l[c3] - (e[d] / 2 - n[d] / 2);
|
|
42637
42637
|
break;
|
|
42638
|
-
case
|
|
42638
|
+
case Cr$1:
|
|
42639
42639
|
l[c3] = l[c3] + (e[d] / 2 - n[d] / 2);
|
|
42640
42640
|
break;
|
|
42641
42641
|
}
|
|
42642
42642
|
}
|
|
42643
42643
|
return l;
|
|
42644
42644
|
}
|
|
42645
|
-
function
|
|
42645
|
+
function Sr$1(t, e) {
|
|
42646
42646
|
e === void 0 && (e = {});
|
|
42647
|
-
var n = e, r = n.placement, o = r === void 0 ? t.placement : r, i3 = n.strategy, s = i3 === void 0 ? t.strategy : i3, a = n.boundary, l = a === void 0 ? Bw : a, c3 = n.rootBoundary, d = c3 === void 0 ? Bu$1 : c3, u = n.elementContext, f3 = u === void 0 ?
|
|
42647
|
+
var n = e, r = n.placement, o = r === void 0 ? t.placement : r, i3 = n.strategy, s = i3 === void 0 ? t.strategy : i3, a = n.boundary, l = a === void 0 ? Bw : a, c3 = n.rootBoundary, d = c3 === void 0 ? Bu$1 : c3, u = n.elementContext, f3 = u === void 0 ? Jn$2 : u, p3 = n.altBoundary, h3 = p3 === void 0 ? false : p3, m = n.padding, g = m === void 0 ? 0 : m, b = ju$1(typeof g != "number" ? g : Wu$1(g, Ir)), w = f3 === Jn$2 ? _w : Jn$2, C = t.rects.popper, y = t.elements[h3 ? w : f3], S = gv(un$2(y) ? y : y.contextElement || Ut$2(t.elements.popper), l, d, s), k = Ln$2(t.elements.reference), M = qu$1({
|
|
42648
42648
|
reference: k,
|
|
42649
42649
|
element: C,
|
|
42650
42650
|
placement: o
|
|
42651
|
-
}), L3 = us$1(Object.assign({}, C, M)), x = f3 ===
|
|
42651
|
+
}), L3 = us$1(Object.assign({}, C, M)), x = f3 === Jn$2 ? L3 : k, $ = {
|
|
42652
42652
|
top: S.top - x.top + b.top,
|
|
42653
42653
|
bottom: x.bottom - S.bottom + b.bottom,
|
|
42654
42654
|
left: S.left - x.left + b.left,
|
|
42655
42655
|
right: x.right - S.right + b.right
|
|
42656
42656
|
}, _ = t.modifiersData.offset;
|
|
42657
|
-
if (f3 ===
|
|
42657
|
+
if (f3 === Jn$2 && _) {
|
|
42658
42658
|
var U3 = _[o];
|
|
42659
42659
|
Object.keys($).forEach(function(W) {
|
|
42660
42660
|
var ee = [qe$1, Ue].indexOf(W) >= 0 ? 1 : -1, oe2 = [De$1, Ue].indexOf(W) >= 0 ? "y" : "x";
|
|
@@ -42665,14 +42665,14 @@ Actual: ` + p3.attribValue
|
|
|
42665
42665
|
}
|
|
42666
42666
|
function yv(t, e) {
|
|
42667
42667
|
e === void 0 && (e = {});
|
|
42668
|
-
var n = e, r = n.placement, o = n.boundary, i3 = n.rootBoundary, s = n.padding, a = n.flipVariations, l = n.allowedAutoPlacements, c3 = l === void 0 ? _u$1 : l, d =
|
|
42669
|
-
return
|
|
42670
|
-
}) :
|
|
42668
|
+
var n = e, r = n.placement, o = n.boundary, i3 = n.rootBoundary, s = n.padding, a = n.flipVariations, l = n.allowedAutoPlacements, c3 = l === void 0 ? _u$1 : l, d = Fn$1(r), u = d ? a ? Ol$1 : Ol$1.filter(function(h3) {
|
|
42669
|
+
return Fn$1(h3) === d;
|
|
42670
|
+
}) : Ir, f3 = u.filter(function(h3) {
|
|
42671
42671
|
return c3.indexOf(h3) >= 0;
|
|
42672
42672
|
});
|
|
42673
42673
|
f3.length === 0 && (f3 = u);
|
|
42674
42674
|
var p3 = f3.reduce(function(h3, m) {
|
|
42675
|
-
return h3[m] =
|
|
42675
|
+
return h3[m] = Sr$1(t, {
|
|
42676
42676
|
placement: m,
|
|
42677
42677
|
boundary: o,
|
|
42678
42678
|
rootBoundary: i3,
|
|
@@ -42702,7 +42702,7 @@ Actual: ` + p3.attribValue
|
|
|
42702
42702
|
allowedAutoPlacements: m
|
|
42703
42703
|
}) : Ee2);
|
|
42704
42704
|
}, []), S = e.rects.reference, k = e.rects.popper, M = /* @__PURE__ */ new Map(), L3 = true, x = y[0], $ = 0; $ < y.length; $++) {
|
|
42705
|
-
var _ = y[$], U3 = it(_), W =
|
|
42705
|
+
var _ = y[$], U3 = it(_), W = Fn$1(_) === Pn$2, ee = [De$1, Ue].indexOf(U3) >= 0, oe2 = ee ? "width" : "height", ae2 = Sr$1(e, {
|
|
42706
42706
|
placement: _,
|
|
42707
42707
|
boundary: d,
|
|
42708
42708
|
rootBoundary: u,
|
|
@@ -42764,9 +42764,9 @@ Actual: ` + p3.attribValue
|
|
|
42764
42764
|
});
|
|
42765
42765
|
}
|
|
42766
42766
|
function kv(t) {
|
|
42767
|
-
var e = t.state, n = t.name, r = e.rects.reference, o = e.rects.popper, i3 = e.modifiersData.preventOverflow, s =
|
|
42767
|
+
var e = t.state, n = t.name, r = e.rects.reference, o = e.rects.popper, i3 = e.modifiersData.preventOverflow, s = Sr$1(e, {
|
|
42768
42768
|
elementContext: "reference"
|
|
42769
|
-
}), a =
|
|
42769
|
+
}), a = Sr$1(e, {
|
|
42770
42770
|
altBoundary: true
|
|
42771
42771
|
}), l = Il$1(s, r), c3 = Il$1(a, o, i3), d = Pl$1(l), u = Pl$1(c3);
|
|
42772
42772
|
e.modifiersData[n] = {
|
|
@@ -42830,12 +42830,12 @@ Actual: ` + p3.attribValue
|
|
|
42830
42830
|
return t === "x" ? "y" : "x";
|
|
42831
42831
|
}
|
|
42832
42832
|
function Dv(t) {
|
|
42833
|
-
var e = t.state, n = t.options, r = t.name, o = n.mainAxis, i3 = o === void 0 ? true : o, s = n.altAxis, a = s === void 0 ? false : s, l = n.boundary, c3 = n.rootBoundary, d = n.altBoundary, u = n.padding, f3 = n.tether, p3 = f3 === void 0 ? true : f3, h3 = n.tetherOffset, m = h3 === void 0 ? 0 : h3, g =
|
|
42833
|
+
var e = t.state, n = t.options, r = t.name, o = n.mainAxis, i3 = o === void 0 ? true : o, s = n.altAxis, a = s === void 0 ? false : s, l = n.boundary, c3 = n.rootBoundary, d = n.altBoundary, u = n.padding, f3 = n.tether, p3 = f3 === void 0 ? true : f3, h3 = n.tetherOffset, m = h3 === void 0 ? 0 : h3, g = Sr$1(e, {
|
|
42834
42834
|
boundary: l,
|
|
42835
42835
|
rootBoundary: c3,
|
|
42836
42836
|
padding: u,
|
|
42837
42837
|
altBoundary: d
|
|
42838
|
-
}), b = it(e.placement), w =
|
|
42838
|
+
}), b = it(e.placement), w = Fn$1(e.placement), C = !w, y = Ws(b), S = Tv(y), k = e.modifiersData.popperOffsets, M = e.rects.reference, L3 = e.rects.popper, x = typeof m == "function" ? m(Object.assign({}, e.rects, {
|
|
42839
42839
|
placement: e.placement
|
|
42840
42840
|
})) : m, $ = typeof x == "number" ? {
|
|
42841
42841
|
mainAxis: x,
|
|
@@ -42849,15 +42849,15 @@ Actual: ` + p3.attribValue
|
|
|
42849
42849
|
};
|
|
42850
42850
|
if (k) {
|
|
42851
42851
|
if (i3) {
|
|
42852
|
-
var W, ee = y === "y" ? De$1 : Ne$2, oe2 = y === "y" ? Ue : qe$1, ae2 = y === "y" ? "height" : "width", ce2 = k[y], se = ce2 + g[ee], pe2 = ce2 - g[oe2], ke2 = p3 ? -L3[ae2] / 2 : 0, Be2 = w ===
|
|
42852
|
+
var W, ee = y === "y" ? De$1 : Ne$2, oe2 = y === "y" ? Ue : qe$1, ae2 = y === "y" ? "height" : "width", ce2 = k[y], se = ce2 + g[ee], pe2 = ce2 - g[oe2], ke2 = p3 ? -L3[ae2] / 2 : 0, Be2 = w === Pn$2 ? M[ae2] : L3[ae2], Ce2 = w === Pn$2 ? -L3[ae2] : -M[ae2], dt2 = e.elements.arrow, Ke2 = p3 && dt2 ? js(dt2) : {
|
|
42853
42853
|
width: 0,
|
|
42854
42854
|
height: 0
|
|
42855
|
-
}, Ee2 = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Hu$1(), Xe2 = Ee2[ee], Mt2 = Ee2[oe2], Je2 =
|
|
42856
|
-
k[y] =
|
|
42855
|
+
}, Ee2 = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Hu$1(), Xe2 = Ee2[ee], Mt2 = Ee2[oe2], Je2 = ir$1(0, M[ae2], Ke2[ae2]), At2 = C ? M[ae2] / 2 - ke2 - Je2 - Xe2 - $.mainAxis : Be2 - Je2 - Xe2 - $.mainAxis, Ot2 = C ? -M[ae2] / 2 + ke2 + Je2 + Mt2 + $.mainAxis : Ce2 + Je2 + Mt2 + $.mainAxis, fn2 = e.elements.arrow && Pr(e.elements.arrow), Lr2 = fn2 ? y === "y" ? fn2.clientTop || 0 : fn2.clientLeft || 0 : 0, Hn2 = (W = _?.[y]) != null ? W : 0, Fr2 = ce2 + At2 - Hn2 - Lr2, Br2 = ce2 + Ot2 - Hn2, jn2 = ir$1(p3 ? Oo$1(se, Fr2) : se, ce2, p3 ? sn$2(pe2, Br2) : pe2);
|
|
42856
|
+
k[y] = jn2, U3[y] = jn2 - ce2;
|
|
42857
42857
|
}
|
|
42858
42858
|
if (a) {
|
|
42859
|
-
var
|
|
42860
|
-
k[S] =
|
|
42859
|
+
var Wn2, _r2 = y === "x" ? De$1 : Ne$2, zr2 = y === "x" ? Ue : qe$1, ut2 = k[S], Tt2 = S === "y" ? "height" : "width", Un2 = ut2 + g[_r2], qt2 = ut2 - g[zr2], qn2 = [De$1, Ne$2].indexOf(b) !== -1, $r2 = (Wn2 = _?.[S]) != null ? Wn2 : 0, Vr2 = qn2 ? Un2 : ut2 - M[Tt2] - L3[Tt2] - $r2 + $.altAxis, Hr2 = qn2 ? ut2 + M[Tt2] + L3[Tt2] - $r2 - $.altAxis : qt2, jr2 = p3 && qn2 ? Qw(Vr2, ut2, Hr2) : ir$1(p3 ? Vr2 : Un2, ut2, p3 ? Hr2 : qt2);
|
|
42860
|
+
k[S] = jr2, U3[S] = jr2 - ut2;
|
|
42861
42861
|
}
|
|
42862
42862
|
e.modifiersData[r] = U3;
|
|
42863
42863
|
}
|
|
@@ -42879,12 +42879,12 @@ Actual: ` + p3.attribValue
|
|
|
42879
42879
|
return t === Le$2(t) || !We$1(t) ? Us(t) : Ev(t);
|
|
42880
42880
|
}
|
|
42881
42881
|
function Pv(t) {
|
|
42882
|
-
var e = t.getBoundingClientRect(), n =
|
|
42882
|
+
var e = t.getBoundingClientRect(), n = Rn$2(e.width) / t.offsetWidth || 1, r = Rn$2(e.height) / t.offsetHeight || 1;
|
|
42883
42883
|
return n !== 1 || r !== 1;
|
|
42884
42884
|
}
|
|
42885
42885
|
function Rv(t, e, n) {
|
|
42886
42886
|
n === void 0 && (n = false);
|
|
42887
|
-
var r = We$1(e), o = We$1(e) && Pv(e), i3 = Ut$2(e), s =
|
|
42887
|
+
var r = We$1(e), o = We$1(e) && Pv(e), i3 = Ut$2(e), s = Ln$2(t, o, n), a = {
|
|
42888
42888
|
scrollLeft: 0,
|
|
42889
42889
|
scrollTop: 0
|
|
42890
42890
|
}, l = {
|
|
@@ -42892,7 +42892,7 @@ Actual: ` + p3.attribValue
|
|
|
42892
42892
|
y: 0
|
|
42893
42893
|
};
|
|
42894
42894
|
return (r || !r && !n) && ((lt$1(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
|
42895
|
-
Ks(i3)) && (a = Iv(e)), We$1(e) ? (l =
|
|
42895
|
+
Ks(i3)) && (a = Iv(e)), We$1(e) ? (l = Ln$2(e, true), l.x += e.clientLeft, l.y += e.clientTop) : i3 && (l.x = qs(i3))), {
|
|
42896
42896
|
x: s.left + a.scrollLeft - l.x,
|
|
42897
42897
|
y: s.top + a.scrollTop - l.y,
|
|
42898
42898
|
width: s.width,
|
|
@@ -42981,8 +42981,8 @@ Actual: ` + p3.attribValue
|
|
|
42981
42981
|
setOptions: function(b) {
|
|
42982
42982
|
var w = typeof b == "function" ? b(d.options) : b;
|
|
42983
42983
|
m(), d.options = Object.assign({}, i3, d.options, w), d.scrollParents = {
|
|
42984
|
-
reference: un$2(a) ?
|
|
42985
|
-
popper:
|
|
42984
|
+
reference: un$2(a) ? sr$1(a) : a.contextElement ? sr$1(a.contextElement) : [],
|
|
42985
|
+
popper: sr$1(l)
|
|
42986
42986
|
};
|
|
42987
42987
|
var C = Fv(_v([].concat(r, d.options.modifiers)));
|
|
42988
42988
|
return d.orderedModifiers = C.filter(function(y) {
|
|
@@ -42999,7 +42999,7 @@ Actual: ` + p3.attribValue
|
|
|
42999
42999
|
var b = d.elements, w = b.reference, C = b.popper;
|
|
43000
43000
|
if (Ll$1(w, C)) {
|
|
43001
43001
|
d.rects = {
|
|
43002
|
-
reference: Rv(w,
|
|
43002
|
+
reference: Rv(w, Pr(C), d.options.strategy === "fixed"),
|
|
43003
43003
|
popper: js(C)
|
|
43004
43004
|
}, d.reset = false, d.placement = d.options.placement, d.orderedModifiers.forEach(function($) {
|
|
43005
43005
|
return d.modifiersData[$.name] = Object.assign({}, $.data);
|
|
@@ -43103,7 +43103,7 @@ Actual: ` + p3.attribValue
|
|
|
43103
43103
|
function qv(t) {
|
|
43104
43104
|
return t.split(/\s+/).filter(Boolean);
|
|
43105
43105
|
}
|
|
43106
|
-
function
|
|
43106
|
+
function xn$2(t) {
|
|
43107
43107
|
return [].concat(t);
|
|
43108
43108
|
}
|
|
43109
43109
|
function Bl$1(t, e) {
|
|
@@ -43125,10 +43125,10 @@ Actual: ` + p3.attribValue
|
|
|
43125
43125
|
return t[n] !== void 0 && (e[n] = t[n]), e;
|
|
43126
43126
|
}, {});
|
|
43127
43127
|
}
|
|
43128
|
-
function
|
|
43128
|
+
function ar$1() {
|
|
43129
43129
|
return document.createElement("div");
|
|
43130
43130
|
}
|
|
43131
|
-
function
|
|
43131
|
+
function xr$1(t) {
|
|
43132
43132
|
return ["Element", "Fragment"].some(function(e) {
|
|
43133
43133
|
return Xs(t, e);
|
|
43134
43134
|
});
|
|
@@ -43143,7 +43143,7 @@ Actual: ` + p3.attribValue
|
|
|
43143
43143
|
return !!(t && t._tippy && t._tippy.reference === t);
|
|
43144
43144
|
}
|
|
43145
43145
|
function Zv(t) {
|
|
43146
|
-
return
|
|
43146
|
+
return xr$1(t) ? [t] : Jv(t) ? To$1(t) : Array.isArray(t) ? t : To$1(document.querySelectorAll(t));
|
|
43147
43147
|
}
|
|
43148
43148
|
function fi$1(t, e) {
|
|
43149
43149
|
t.forEach(function(n) {
|
|
@@ -43156,7 +43156,7 @@ Actual: ` + p3.attribValue
|
|
|
43156
43156
|
});
|
|
43157
43157
|
}
|
|
43158
43158
|
function Qv(t) {
|
|
43159
|
-
var e, n =
|
|
43159
|
+
var e, n = xn$2(t), r = n[0];
|
|
43160
43160
|
return r != null && (e = r.ownerDocument) != null && e.body ? r.ownerDocument : document;
|
|
43161
43161
|
}
|
|
43162
43162
|
function ek(t, e) {
|
|
@@ -43236,21 +43236,21 @@ Actual: ` + p3.attribValue
|
|
|
43236
43236
|
"color: #a6a095;"
|
|
43237
43237
|
];
|
|
43238
43238
|
}
|
|
43239
|
-
var
|
|
43239
|
+
var Mr$1;
|
|
43240
43240
|
me$1.env.NODE_ENV !== "production" && ak();
|
|
43241
43241
|
function ak() {
|
|
43242
|
-
|
|
43242
|
+
Mr$1 = /* @__PURE__ */ new Set();
|
|
43243
43243
|
}
|
|
43244
43244
|
function gt$1(t, e) {
|
|
43245
|
-
if (t && !
|
|
43245
|
+
if (t && !Mr$1.has(e)) {
|
|
43246
43246
|
var n;
|
|
43247
|
-
|
|
43247
|
+
Mr$1.add(e), (n = console).warn.apply(n, Qu$1(e));
|
|
43248
43248
|
}
|
|
43249
43249
|
}
|
|
43250
43250
|
function fs$1(t, e) {
|
|
43251
|
-
if (t && !
|
|
43251
|
+
if (t && !Mr$1.has(e)) {
|
|
43252
43252
|
var n;
|
|
43253
|
-
|
|
43253
|
+
Mr$1.add(e), (n = console).error.apply(n, Qu$1(e));
|
|
43254
43254
|
}
|
|
43255
43255
|
}
|
|
43256
43256
|
function lk(t) {
|
|
@@ -43386,11 +43386,11 @@ Actual: ` + p3.attribValue
|
|
|
43386
43386
|
t[pk()] = e;
|
|
43387
43387
|
}
|
|
43388
43388
|
function Wl$1(t) {
|
|
43389
|
-
var e =
|
|
43390
|
-
return t === true ? e.className = Xu$1 : (e.className = Ju$1,
|
|
43389
|
+
var e = ar$1();
|
|
43390
|
+
return t === true ? e.className = Xu$1 : (e.className = Ju$1, xr$1(t) ? e.appendChild(t) : ps(e, t)), e;
|
|
43391
43391
|
}
|
|
43392
43392
|
function Ul$1(t, e) {
|
|
43393
|
-
|
|
43393
|
+
xr$1(e.content) ? (ps(t, ""), t.appendChild(e.content)) : typeof e.content != "function" && (e.allowHTML ? ps(t, e.content) : t.textContent = e.content);
|
|
43394
43394
|
}
|
|
43395
43395
|
function hs$1(t) {
|
|
43396
43396
|
var e = t.firstElementChild, n = To$1(e.children);
|
|
@@ -43408,9 +43408,9 @@ Actual: ` + p3.attribValue
|
|
|
43408
43408
|
};
|
|
43409
43409
|
}
|
|
43410
43410
|
function rf$1(t) {
|
|
43411
|
-
var e =
|
|
43411
|
+
var e = ar$1(), n = ar$1();
|
|
43412
43412
|
n.className = Hv, n.setAttribute("data-state", "hidden"), n.setAttribute("tabindex", "-1");
|
|
43413
|
-
var r =
|
|
43413
|
+
var r = ar$1();
|
|
43414
43414
|
r.className = Ku$1, r.setAttribute("data-state", "hidden"), Ul$1(r, t.props), e.appendChild(n), n.appendChild(r), o(t.props, t.props);
|
|
43415
43415
|
function o(i3, s) {
|
|
43416
43416
|
var a = hs$1(e), l = a.box, c3 = a.content, d = a.arrow;
|
|
@@ -43422,9 +43422,9 @@ Actual: ` + p3.attribValue
|
|
|
43422
43422
|
};
|
|
43423
43423
|
}
|
|
43424
43424
|
rf$1.$$tippy = true;
|
|
43425
|
-
var hk = 1,
|
|
43425
|
+
var hk = 1, eo$2 = [], hi$1 = [];
|
|
43426
43426
|
function mk(t, e) {
|
|
43427
|
-
var n = jl$1(t, Object.assign({}, Pe, tf$1(_l$1(e)))), r, o, i3, s = false, a = false, l = false, c3 = false, d, u, f3, p3 = [], h3 = Fl$1(
|
|
43427
|
+
var n = jl$1(t, Object.assign({}, Pe, tf$1(_l$1(e)))), r, o, i3, s = false, a = false, l = false, c3 = false, d, u, f3, p3 = [], h3 = Fl$1(Fr2, n.interactiveDebounce), m, g = hk++, b = null, w = Kv(n.plugins), C = {
|
|
43428
43428
|
// Is the instance currently enabled?
|
|
43429
43429
|
isEnabled: true,
|
|
43430
43430
|
// Is the tippy currently showing and not transitioning out?
|
|
@@ -43439,20 +43439,20 @@ Actual: ` + p3.attribValue
|
|
|
43439
43439
|
// properties
|
|
43440
43440
|
id: g,
|
|
43441
43441
|
reference: t,
|
|
43442
|
-
popper:
|
|
43442
|
+
popper: ar$1(),
|
|
43443
43443
|
popperInstance: b,
|
|
43444
43444
|
props: n,
|
|
43445
43445
|
state: C,
|
|
43446
43446
|
plugins: w,
|
|
43447
43447
|
// methods
|
|
43448
|
-
clearDelayTimeouts:
|
|
43449
|
-
setProps:
|
|
43450
|
-
setContent:
|
|
43448
|
+
clearDelayTimeouts: Vr2,
|
|
43449
|
+
setProps: Hr2,
|
|
43450
|
+
setContent: jr2,
|
|
43451
43451
|
show: of2,
|
|
43452
43452
|
hide: sf2,
|
|
43453
43453
|
hideWithInteractivity: af2,
|
|
43454
|
-
enable:
|
|
43455
|
-
disable:
|
|
43454
|
+
enable: qn2,
|
|
43455
|
+
disable: $r2,
|
|
43456
43456
|
unmount: lf2,
|
|
43457
43457
|
destroy: cf2
|
|
43458
43458
|
};
|
|
@@ -43463,7 +43463,7 @@ Actual: ` + p3.attribValue
|
|
|
43463
43463
|
var L3 = w.map(function(v) {
|
|
43464
43464
|
return v.fn(y);
|
|
43465
43465
|
}), x = t.hasAttribute("aria-expanded");
|
|
43466
|
-
return fn2(), ke2(), ce2(), se("onCreate", [y]), n.showOnCreate &&
|
|
43466
|
+
return fn2(), ke2(), ce2(), se("onCreate", [y]), n.showOnCreate && Un2(), k.addEventListener("mouseenter", function() {
|
|
43467
43467
|
y.props.interactive && y.state.isVisible && y.clearDelayTimeouts();
|
|
43468
43468
|
}), k.addEventListener("mouseleave", function() {
|
|
43469
43469
|
y.props.interactive && y.props.trigger.indexOf("mouseenter") >= 0 && ee().addEventListener("mousemove", h3);
|
|
@@ -43506,7 +43506,7 @@ Actual: ` + p3.attribValue
|
|
|
43506
43506
|
function pe2() {
|
|
43507
43507
|
var v = y.props.aria;
|
|
43508
43508
|
if (v.content) {
|
|
43509
|
-
var A = "aria-" + v.content, R = k.id, q =
|
|
43509
|
+
var A = "aria-" + v.content, R = k.id, q = xn$2(y.props.triggerTarget || t);
|
|
43510
43510
|
q.forEach(function(j) {
|
|
43511
43511
|
var Se2 = j.getAttribute(A);
|
|
43512
43512
|
if (y.state.isVisible)
|
|
@@ -43520,14 +43520,14 @@ Actual: ` + p3.attribValue
|
|
|
43520
43520
|
}
|
|
43521
43521
|
function ke2() {
|
|
43522
43522
|
if (!(x || !y.props.aria.expanded)) {
|
|
43523
|
-
var v =
|
|
43523
|
+
var v = xn$2(y.props.triggerTarget || t);
|
|
43524
43524
|
v.forEach(function(A) {
|
|
43525
43525
|
y.props.interactive ? A.setAttribute("aria-expanded", y.state.isVisible && A === W() ? "true" : "false") : A.removeAttribute("aria-expanded");
|
|
43526
43526
|
});
|
|
43527
43527
|
}
|
|
43528
43528
|
}
|
|
43529
43529
|
function Be2() {
|
|
43530
|
-
ee().removeEventListener("mousemove", h3),
|
|
43530
|
+
ee().removeEventListener("mousemove", h3), eo$2 = eo$2.filter(function(v) {
|
|
43531
43531
|
return v !== h3;
|
|
43532
43532
|
});
|
|
43533
43533
|
}
|
|
@@ -43535,7 +43535,7 @@ Actual: ` + p3.attribValue
|
|
|
43535
43535
|
if (!(rt$2.isTouch && (l || v.type === "mousedown"))) {
|
|
43536
43536
|
var A = v.composedPath && v.composedPath()[0] || v.target;
|
|
43537
43537
|
if (!(y.props.interactive && $l$1(k, A))) {
|
|
43538
|
-
if (
|
|
43538
|
+
if (xn$2(y.props.triggerTarget || t).some(function(R) {
|
|
43539
43539
|
return $l$1(R, A);
|
|
43540
43540
|
})) {
|
|
43541
43541
|
if (rt$2.isTouch || y.state.isVisible && y.props.trigger.indexOf("click") >= 0)
|
|
@@ -43581,7 +43581,7 @@ Actual: ` + p3.attribValue
|
|
|
43581
43581
|
}
|
|
43582
43582
|
function Ot2(v, A, R) {
|
|
43583
43583
|
R === void 0 && (R = false);
|
|
43584
|
-
var q =
|
|
43584
|
+
var q = xn$2(y.props.triggerTarget || t);
|
|
43585
43585
|
q.forEach(function(j) {
|
|
43586
43586
|
j.addEventListener(v, A, R), p3.push({
|
|
43587
43587
|
node: j,
|
|
@@ -43592,41 +43592,41 @@ Actual: ` + p3.attribValue
|
|
|
43592
43592
|
});
|
|
43593
43593
|
}
|
|
43594
43594
|
function fn2() {
|
|
43595
|
-
_() && (Ot2("touchstart",
|
|
43595
|
+
_() && (Ot2("touchstart", Hn2, {
|
|
43596
43596
|
passive: true
|
|
43597
|
-
}), Ot2("touchend",
|
|
43597
|
+
}), Ot2("touchend", Br2, {
|
|
43598
43598
|
passive: true
|
|
43599
43599
|
})), qv(y.props.trigger).forEach(function(v) {
|
|
43600
43600
|
if (v !== "manual")
|
|
43601
|
-
switch (Ot2(v,
|
|
43601
|
+
switch (Ot2(v, Hn2), v) {
|
|
43602
43602
|
case "mouseenter":
|
|
43603
|
-
Ot2("mouseleave",
|
|
43603
|
+
Ot2("mouseleave", Br2);
|
|
43604
43604
|
break;
|
|
43605
43605
|
case "focus":
|
|
43606
|
-
Ot2(ik ? "focusout" : "blur",
|
|
43606
|
+
Ot2(ik ? "focusout" : "blur", jn2);
|
|
43607
43607
|
break;
|
|
43608
43608
|
case "focusin":
|
|
43609
|
-
Ot2("focusout",
|
|
43609
|
+
Ot2("focusout", jn2);
|
|
43610
43610
|
break;
|
|
43611
43611
|
}
|
|
43612
43612
|
});
|
|
43613
43613
|
}
|
|
43614
|
-
function
|
|
43614
|
+
function Lr2() {
|
|
43615
43615
|
p3.forEach(function(v) {
|
|
43616
43616
|
var A = v.node, R = v.eventType, q = v.handler, j = v.options;
|
|
43617
43617
|
A.removeEventListener(R, q, j);
|
|
43618
43618
|
}), p3 = [];
|
|
43619
43619
|
}
|
|
43620
|
-
function
|
|
43620
|
+
function Hn2(v) {
|
|
43621
43621
|
var A, R = false;
|
|
43622
|
-
if (!(!y.state.isEnabled ||
|
|
43622
|
+
if (!(!y.state.isEnabled || Wn2(v) || a)) {
|
|
43623
43623
|
var q = ((A = d) == null ? void 0 : A.type) === "focus";
|
|
43624
|
-
d = v, m = v.currentTarget, ke2(), !y.state.isVisible && Yv(v) &&
|
|
43624
|
+
d = v, m = v.currentTarget, ke2(), !y.state.isVisible && Yv(v) && eo$2.forEach(function(j) {
|
|
43625
43625
|
return j(v);
|
|
43626
|
-
}), v.type === "click" && (y.props.trigger.indexOf("mouseenter") < 0 || s) && y.props.hideOnClick !== false && y.state.isVisible ? R = true :
|
|
43626
|
+
}), v.type === "click" && (y.props.trigger.indexOf("mouseenter") < 0 || s) && y.props.hideOnClick !== false && y.state.isVisible ? R = true : Un2(v), v.type === "click" && (s = !R), R && !q && qt2(v);
|
|
43627
43627
|
}
|
|
43628
43628
|
}
|
|
43629
|
-
function
|
|
43629
|
+
function Fr2(v) {
|
|
43630
43630
|
var A = v.target, R = W().contains(A) || k.contains(A);
|
|
43631
43631
|
if (!(v.type === "mousemove" && R)) {
|
|
43632
43632
|
var q = Tt2().concat(k).map(function(j) {
|
|
@@ -43640,8 +43640,8 @@ Actual: ` + p3.attribValue
|
|
|
43640
43640
|
ek(q, v) && (Be2(), qt2(v));
|
|
43641
43641
|
}
|
|
43642
43642
|
}
|
|
43643
|
-
function
|
|
43644
|
-
var A =
|
|
43643
|
+
function Br2(v) {
|
|
43644
|
+
var A = Wn2(v) || y.props.trigger.indexOf("click") >= 0 && s;
|
|
43645
43645
|
if (!A) {
|
|
43646
43646
|
if (y.props.interactive) {
|
|
43647
43647
|
y.hideWithInteractivity(v);
|
|
@@ -43650,14 +43650,14 @@ Actual: ` + p3.attribValue
|
|
|
43650
43650
|
qt2(v);
|
|
43651
43651
|
}
|
|
43652
43652
|
}
|
|
43653
|
-
function
|
|
43653
|
+
function jn2(v) {
|
|
43654
43654
|
y.props.trigger.indexOf("focusin") < 0 && v.target !== W() || y.props.interactive && v.relatedTarget && k.contains(v.relatedTarget) || qt2(v);
|
|
43655
43655
|
}
|
|
43656
|
-
function
|
|
43656
|
+
function Wn2(v) {
|
|
43657
43657
|
return rt$2.isTouch ? _() !== v.type.indexOf("touch") >= 0 : false;
|
|
43658
43658
|
}
|
|
43659
|
-
function
|
|
43660
|
-
|
|
43659
|
+
function _r2() {
|
|
43660
|
+
zr2();
|
|
43661
43661
|
var v = y.props, A = v.popperOptions, R = v.placement, q = v.offset, j = v.getReferenceClientRect, Se2 = v.moveTransition, _e = U3() ? hs$1(k).arrow : null, pn2 = j ? {
|
|
43662
43662
|
getBoundingClientRect: j,
|
|
43663
43663
|
contextElement: j.contextElement || W()
|
|
@@ -43666,12 +43666,12 @@ Actual: ` + p3.attribValue
|
|
|
43666
43666
|
enabled: true,
|
|
43667
43667
|
phase: "beforeWrite",
|
|
43668
43668
|
requires: ["computeStyles"],
|
|
43669
|
-
fn: function(
|
|
43670
|
-
var hn2 =
|
|
43669
|
+
fn: function(Wr2) {
|
|
43670
|
+
var hn2 = Wr2.state;
|
|
43671
43671
|
if (U3()) {
|
|
43672
43672
|
var df2 = oe2(), Vo2 = df2.box;
|
|
43673
|
-
["placement", "reference-hidden", "escaped"].forEach(function(
|
|
43674
|
-
|
|
43673
|
+
["placement", "reference-hidden", "escaped"].forEach(function(Ur2) {
|
|
43674
|
+
Ur2 === "placement" ? Vo2.setAttribute("data-placement", hn2.placement) : hn2.attributes.popper["data-popper-" + Ur2] ? Vo2.setAttribute("data-" + Ur2, "") : Vo2.removeAttribute("data-" + Ur2);
|
|
43675
43675
|
}), hn2.attributes.popper = {};
|
|
43676
43676
|
}
|
|
43677
43677
|
}
|
|
@@ -43713,12 +43713,12 @@ Actual: ` + p3.attribValue
|
|
|
43713
43713
|
modifiers: Kt2
|
|
43714
43714
|
}));
|
|
43715
43715
|
}
|
|
43716
|
-
function
|
|
43716
|
+
function zr2() {
|
|
43717
43717
|
y.popperInstance && (y.popperInstance.destroy(), y.popperInstance = null);
|
|
43718
43718
|
}
|
|
43719
43719
|
function ut2() {
|
|
43720
43720
|
var v = y.props.appendTo, A, R = W();
|
|
43721
|
-
y.props.interactive && v === Yu$1 || v === "parent" ? A = R.parentNode : A = Gu$1(v, [R]), A.contains(k) || A.appendChild(k), y.state.isMounted = true,
|
|
43721
|
+
y.props.interactive && v === Yu$1 || v === "parent" ? A = R.parentNode : A = Gu$1(v, [R]), A.contains(k) || A.appendChild(k), y.state.isMounted = true, _r2(), me$1.env.NODE_ENV !== "production" && gt$1(y.props.interactive && v === Pe.appendTo && R.nextElementSibling !== k, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
|
|
43722
43722
|
|
|
43723
43723
|
`, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `
|
|
43724
43724
|
|
|
@@ -43729,7 +43729,7 @@ Actual: ` + p3.attribValue
|
|
|
43729
43729
|
function Tt2() {
|
|
43730
43730
|
return To$1(k.querySelectorAll("[data-tippy-root]"));
|
|
43731
43731
|
}
|
|
43732
|
-
function
|
|
43732
|
+
function Un2(v) {
|
|
43733
43733
|
y.clearDelayTimeouts(), v && se("onTrigger", [y, v]), Ee2();
|
|
43734
43734
|
var A = ae2(true), R = $(), q = R[0], j = R[1];
|
|
43735
43735
|
rt$2.isTouch && q === "hold" && j && (A = j), A ? r = setTimeout(function() {
|
|
@@ -43750,29 +43750,29 @@ Actual: ` + p3.attribValue
|
|
|
43750
43750
|
});
|
|
43751
43751
|
}
|
|
43752
43752
|
}
|
|
43753
|
-
function
|
|
43753
|
+
function qn2() {
|
|
43754
43754
|
y.state.isEnabled = true;
|
|
43755
43755
|
}
|
|
43756
|
-
function
|
|
43756
|
+
function $r2() {
|
|
43757
43757
|
y.hide(), y.state.isEnabled = false;
|
|
43758
43758
|
}
|
|
43759
|
-
function
|
|
43759
|
+
function Vr2() {
|
|
43760
43760
|
clearTimeout(r), clearTimeout(o), cancelAnimationFrame(i3);
|
|
43761
43761
|
}
|
|
43762
|
-
function
|
|
43762
|
+
function Hr2(v) {
|
|
43763
43763
|
if (me$1.env.NODE_ENV !== "production" && gt$1(y.state.isDestroyed, wn$2("setProps")), !y.state.isDestroyed) {
|
|
43764
|
-
se("onBeforeUpdate", [y, v]),
|
|
43764
|
+
se("onBeforeUpdate", [y, v]), Lr2();
|
|
43765
43765
|
var A = y.props, R = jl$1(t, Object.assign({}, A, _l$1(v), {
|
|
43766
43766
|
ignoreAttributes: true
|
|
43767
43767
|
}));
|
|
43768
|
-
y.props = R, fn2(), A.interactiveDebounce !== R.interactiveDebounce && (Be2(), h3 = Fl$1(
|
|
43768
|
+
y.props = R, fn2(), A.interactiveDebounce !== R.interactiveDebounce && (Be2(), h3 = Fl$1(Fr2, R.interactiveDebounce)), A.triggerTarget && !R.triggerTarget ? xn$2(A.triggerTarget).forEach(function(q) {
|
|
43769
43769
|
q.removeAttribute("aria-expanded");
|
|
43770
|
-
}) : R.triggerTarget && t.removeAttribute("aria-expanded"), ke2(), ce2(), M && M(A, R), y.popperInstance && (
|
|
43770
|
+
}) : R.triggerTarget && t.removeAttribute("aria-expanded"), ke2(), ce2(), M && M(A, R), y.popperInstance && (_r2(), Tt2().forEach(function(q) {
|
|
43771
43771
|
requestAnimationFrame(q._tippy.popperInstance.forceUpdate);
|
|
43772
43772
|
})), se("onAfterUpdate", [y, v]);
|
|
43773
43773
|
}
|
|
43774
43774
|
}
|
|
43775
|
-
function
|
|
43775
|
+
function jr2(v) {
|
|
43776
43776
|
y.setProps({
|
|
43777
43777
|
content: v
|
|
43778
43778
|
});
|
|
@@ -43789,8 +43789,8 @@ Actual: ` + p3.attribValue
|
|
|
43789
43789
|
var Kt2;
|
|
43790
43790
|
if (!(!y.state.isVisible || c3)) {
|
|
43791
43791
|
if (c3 = true, k.offsetHeight, k.style.transition = y.props.moveTransition, U3() && y.props.animation) {
|
|
43792
|
-
var $o2 = oe2(),
|
|
43793
|
-
fi$1([
|
|
43792
|
+
var $o2 = oe2(), Wr2 = $o2.box, hn2 = $o2.content;
|
|
43793
|
+
fi$1([Wr2, hn2], j), zl$1([Wr2, hn2], "visible");
|
|
43794
43794
|
}
|
|
43795
43795
|
pe2(), ke2(), Bl$1(hi$1, y), (Kt2 = y.popperInstance) == null || Kt2.forceUpdate(), se("onMount", [y]), y.props.animation && U3() && Je2(j, function() {
|
|
43796
43796
|
y.state.isShown = true, se("onShown", [y]);
|
|
@@ -43811,20 +43811,20 @@ Actual: ` + p3.attribValue
|
|
|
43811
43811
|
}
|
|
43812
43812
|
}
|
|
43813
43813
|
function af2(v) {
|
|
43814
|
-
me$1.env.NODE_ENV !== "production" && gt$1(y.state.isDestroyed, wn$2("hideWithInteractivity")), ee().addEventListener("mousemove", h3), Bl$1(
|
|
43814
|
+
me$1.env.NODE_ENV !== "production" && gt$1(y.state.isDestroyed, wn$2("hideWithInteractivity")), ee().addEventListener("mousemove", h3), Bl$1(eo$2, h3), h3(v);
|
|
43815
43815
|
}
|
|
43816
43816
|
function lf2() {
|
|
43817
|
-
me$1.env.NODE_ENV !== "production" && gt$1(y.state.isDestroyed, wn$2("unmount")), y.state.isVisible && y.hide(), y.state.isMounted && (
|
|
43817
|
+
me$1.env.NODE_ENV !== "production" && gt$1(y.state.isDestroyed, wn$2("unmount")), y.state.isVisible && y.hide(), y.state.isMounted && (zr2(), Tt2().forEach(function(v) {
|
|
43818
43818
|
v._tippy.unmount();
|
|
43819
43819
|
}), k.parentNode && k.parentNode.removeChild(k), hi$1 = hi$1.filter(function(v) {
|
|
43820
43820
|
return v !== y;
|
|
43821
43821
|
}), y.state.isMounted = false, se("onHidden", [y]));
|
|
43822
43822
|
}
|
|
43823
43823
|
function cf2() {
|
|
43824
|
-
me$1.env.NODE_ENV !== "production" && gt$1(y.state.isDestroyed, wn$2("destroy")), !y.state.isDestroyed && (y.clearDelayTimeouts(), y.unmount(),
|
|
43824
|
+
me$1.env.NODE_ENV !== "production" && gt$1(y.state.isDestroyed, wn$2("destroy")), !y.state.isDestroyed && (y.clearDelayTimeouts(), y.unmount(), Lr2(), delete t._tippy, y.state.isDestroyed = true, se("onDestroy", [y]));
|
|
43825
43825
|
}
|
|
43826
43826
|
}
|
|
43827
|
-
function
|
|
43827
|
+
function Rr(t, e) {
|
|
43828
43828
|
e === void 0 && (e = {});
|
|
43829
43829
|
var n = Pe.plugins.concat(e.plugins || []);
|
|
43830
43830
|
me$1.env.NODE_ENV !== "production" && (lk(t), nf$1(e, n)), rk();
|
|
@@ -43832,7 +43832,7 @@ Actual: ` + p3.attribValue
|
|
|
43832
43832
|
plugins: n
|
|
43833
43833
|
}), o = Zv(t);
|
|
43834
43834
|
if (me$1.env.NODE_ENV !== "production") {
|
|
43835
|
-
var i3 =
|
|
43835
|
+
var i3 = xr$1(r.content), s = o.length > 1;
|
|
43836
43836
|
gt$1(i3 && s, ["tippy() was passed an Element as the `content` prop, but more than", "one tippy instance was created by this invocation. This means the", "content element will only be appended to the last tippy instance.", `
|
|
43837
43837
|
|
|
43838
43838
|
`, "Instead, pass the .innerHTML of the element, or use a function that", "returns a cloned version of the element instead.", `
|
|
@@ -43844,11 +43844,11 @@ Actual: ` + p3.attribValue
|
|
|
43844
43844
|
var d = c3 && mk(c3, r);
|
|
43845
43845
|
return d && l.push(d), l;
|
|
43846
43846
|
}, []);
|
|
43847
|
-
return
|
|
43847
|
+
return xr$1(t) ? a[0] : a;
|
|
43848
43848
|
}
|
|
43849
|
-
|
|
43850
|
-
|
|
43851
|
-
|
|
43849
|
+
Rr.defaultProps = Pe;
|
|
43850
|
+
Rr.setDefaultProps = uk;
|
|
43851
|
+
Rr.currentInput = rt$2;
|
|
43852
43852
|
Object.assign({}, zu$1, {
|
|
43853
43853
|
effect: function(e) {
|
|
43854
43854
|
var n = e.state, r = {
|
|
@@ -43866,7 +43866,7 @@ Actual: ` + p3.attribValue
|
|
|
43866
43866
|
Object.assign(n.elements.popper.style, r.popper), n.styles = r, n.elements.arrow && Object.assign(n.elements.arrow.style, r.arrow);
|
|
43867
43867
|
}
|
|
43868
43868
|
});
|
|
43869
|
-
|
|
43869
|
+
Rr.setDefaultProps({
|
|
43870
43870
|
render: rf$1
|
|
43871
43871
|
});
|
|
43872
43872
|
const gk = (t, e) => {
|
|
@@ -43967,7 +43967,7 @@ Actual: ` + p3.attribValue
|
|
|
43967
43967
|
const n22 = e22.key === "ArrowDown" || e22.key === "ArrowUp";
|
|
43968
43968
|
this.tippyInstance.state.isVisible && n22 && (e22.preventDefault(), this.popover.firstChild.focus());
|
|
43969
43969
|
});
|
|
43970
|
-
this.editor = n, this.view = e, this.popover = document.createElement("div"), this.popover.className = "popover", document.body.appendChild(this.popover), this.tippyInstance =
|
|
43970
|
+
this.editor = n, this.view = e, this.popover = document.createElement("div"), this.popover.className = "popover", document.body.appendChild(this.popover), this.tippyInstance = Rr(this.popover, {
|
|
43971
43971
|
trigger: "manual",
|
|
43972
43972
|
placement: "bottom-start",
|
|
43973
43973
|
interactive: true,
|
|
@@ -44120,7 +44120,7 @@ Actual: ` + p3.attribValue
|
|
|
44120
44120
|
}
|
|
44121
44121
|
})];
|
|
44122
44122
|
}
|
|
44123
|
-
}),
|
|
44123
|
+
}), vn$2 = (t, e, n) => {
|
|
44124
44124
|
const { alternateHeaders: r } = n.converter.pageStyles, o = n.converter[e];
|
|
44125
44125
|
if (n.headersIds?.titlePg && t === 0) return null;
|
|
44126
44126
|
const i3 = o.even, s = o.odd, a = o.first, l = o.default;
|
|
@@ -44162,9 +44162,9 @@ Actual: ` + p3.attribValue
|
|
|
44162
44162
|
const o = [], { pageSize: i3, pageMargins: s } = n.converter.pageStyles, a = i3.height * 96;
|
|
44163
44163
|
n.options.scale;
|
|
44164
44164
|
let l = 1, c3 = a, d = null, u = null;
|
|
44165
|
-
const { headerIds: f3, footerIds: p3 } = n.converter, h3 =
|
|
44165
|
+
const { headerIds: f3, footerIds: p3 } = n.converter, h3 = vn$2(l, "headerIds", n), m = mi$1(s, i3, r, h3), g = yi$1({ editor: n, header: m, isFirstHeader: true });
|
|
44166
44166
|
o.push(z.widget(0, g, { key: "stable-key" }));
|
|
44167
|
-
const b =
|
|
44167
|
+
const b = vn$2(l, "footerIds", n), w = gi$1(s, i3, r, b);
|
|
44168
44168
|
c3 -= m.headerHeight + w.footerHeight;
|
|
44169
44169
|
let C = e?.coordsAtPos(t.content.size);
|
|
44170
44170
|
if (!C) return [];
|
|
@@ -44189,7 +44189,7 @@ Actual: ` + p3.attribValue
|
|
|
44189
44189
|
pos: Ce2
|
|
44190
44190
|
} = Ek(e, oe2, c3);
|
|
44191
44191
|
l++;
|
|
44192
|
-
const dt2 =
|
|
44192
|
+
const dt2 = vn$2(l, "headerIds", n), Ke2 = vn$2(l, "footerIds", n);
|
|
44193
44193
|
u = mi$1(s, i3, r, dt2), d = gi$1(s, i3, r, Ke2, l - 1);
|
|
44194
44194
|
const Ee2 = c3 - Be2, { node: Xe2 } = Kl$1(Ee2), Mt2 = z.widget(Ce2, Xe2, { key: "stable-key" });
|
|
44195
44195
|
o.push(Mt2);
|
|
@@ -44198,7 +44198,7 @@ Actual: ` + p3.attribValue
|
|
|
44198
44198
|
}
|
|
44199
44199
|
});
|
|
44200
44200
|
let y = t.content.size;
|
|
44201
|
-
const S = e.coordsAtPos(y), k = (l
|
|
44201
|
+
const S = e.coordsAtPos(y), k = vn$2(l, "headerIds", n), M = vn$2(l, "footerIds", n);
|
|
44202
44202
|
u = mi$1(s, i3, r, k), d = gi$1(s, i3, r, M, l);
|
|
44203
44203
|
const L3 = c3 - S.bottom, { node: x } = Kl$1(L3), $ = z.widget(t.content.size, x, { key: "stable-key" });
|
|
44204
44204
|
o.push($);
|
|
@@ -68444,7 +68444,7 @@ ${style2}
|
|
|
68444
68444
|
this.config.colors = shuffleArray(this.config.colors);
|
|
68445
68445
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
68446
68446
|
this.colorIndex = 0;
|
|
68447
|
-
this.version = "0.9.
|
|
68447
|
+
this.version = "0.9.26";
|
|
68448
68448
|
console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
68449
68449
|
this.superdocId = config.superdocId || v4();
|
|
68450
68450
|
this.colors = this.config.colors;
|