sykpcomposer 1.19.79 → 1.19.80
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/{ImageComponent-16bda209.js → ImageComponent-ab673021.js} +3 -3
- package/dist/{ImageComponent-16bda209.js.map → ImageComponent-ab673021.js.map} +1 -1
- package/dist/{InlineImageComponent-5656f011.js → InlineImageComponent-0c629a95.js} +3 -3
- package/dist/{InlineImageComponent-5656f011.js.map → InlineImageComponent-0c629a95.js.map} +1 -1
- package/dist/{LexicalNestedComposer.prod-ad2829c0.js → LexicalNestedComposer.prod-0cf0c291.js} +2 -2
- package/dist/{LexicalNestedComposer.prod-ad2829c0.js.map → LexicalNestedComposer.prod-0cf0c291.js.map} +1 -1
- package/dist/{PollComponent-e54def31.js → PollComponent-8900bdf7.js} +2 -2
- package/dist/{PollComponent-e54def31.js.map → PollComponent-8900bdf7.js.map} +1 -1
- package/dist/{index-bbfc5e64.js → index-559cce1f.js} +640 -667
- package/dist/index-559cce1f.js.map +1 -0
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +29 -29
- package/dist/index.umd.js.map +1 -1
- package/dist/src/lexical/nodes/EndNoteNode.d.ts +19 -15
- package/package.json +1 -1
- package/dist/index-bbfc5e64.js.map +0 -1
|
@@ -2,23 +2,23 @@ var B2 = Object.defineProperty;
|
|
|
2
2
|
var z2 = (c, t, n) => t in c ? B2(c, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : c[t] = n;
|
|
3
3
|
var qn = (c, t, n) => (z2(c, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
4
|
import * as sr from "react";
|
|
5
|
-
import Pi, { createContext as
|
|
6
|
-
import * as
|
|
5
|
+
import Pi, { createContext as yh, useContext as qy, useMemo as Rr, useLayoutEffect as as, useEffect as Wt, useState as It, useCallback as mn, useRef as ir, Suspense as Dd } from "react";
|
|
6
|
+
import * as bh from "react-dom";
|
|
7
7
|
import { flushSync as Bx, createPortal as ka } from "react-dom";
|
|
8
8
|
var Bs = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
9
9
|
function Fd(c) {
|
|
10
10
|
return c && c.__esModule && Object.prototype.hasOwnProperty.call(c, "default") ? c.default : c;
|
|
11
11
|
}
|
|
12
|
-
var
|
|
12
|
+
var Hm = { exports: {} }, yc = {};
|
|
13
13
|
/*
|
|
14
14
|
object-assign
|
|
15
15
|
(c) Sindre Sorhus
|
|
16
16
|
@license MIT
|
|
17
17
|
*/
|
|
18
|
-
var
|
|
19
|
-
function
|
|
18
|
+
var Xg, gv;
|
|
19
|
+
function vh() {
|
|
20
20
|
if (gv)
|
|
21
|
-
return
|
|
21
|
+
return Xg;
|
|
22
22
|
gv = 1;
|
|
23
23
|
var c = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, n = Object.prototype.propertyIsEnumerable;
|
|
24
24
|
function e(o) {
|
|
@@ -48,7 +48,7 @@ function _h() {
|
|
|
48
48
|
return !1;
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
return
|
|
51
|
+
return Xg = s() ? Object.assign : function(o, r) {
|
|
52
52
|
for (var a, l = e(o), i, u = 1; u < arguments.length; u++) {
|
|
53
53
|
a = Object(arguments[u]);
|
|
54
54
|
for (var d in a)
|
|
@@ -60,7 +60,7 @@ function _h() {
|
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
return l;
|
|
63
|
-
},
|
|
63
|
+
}, Xg;
|
|
64
64
|
}
|
|
65
65
|
/** @license React v17.0.2
|
|
66
66
|
* react-jsx-runtime.production.min.js
|
|
@@ -74,7 +74,7 @@ var mv;
|
|
|
74
74
|
function $2() {
|
|
75
75
|
if (mv)
|
|
76
76
|
return yc;
|
|
77
|
-
mv = 1,
|
|
77
|
+
mv = 1, vh();
|
|
78
78
|
var c = Pi, t = 60103;
|
|
79
79
|
if (yc.Fragment = 60107, typeof Symbol == "function" && Symbol.for) {
|
|
80
80
|
var n = Symbol.for;
|
|
@@ -93,7 +93,7 @@ function $2() {
|
|
|
93
93
|
}
|
|
94
94
|
return yc.jsx = r, yc.jsxs = r, yc;
|
|
95
95
|
}
|
|
96
|
-
var
|
|
96
|
+
var em = {};
|
|
97
97
|
/** @license React v17.0.2
|
|
98
98
|
* react-jsx-runtime.development.js
|
|
99
99
|
*
|
|
@@ -106,7 +106,7 @@ var yv;
|
|
|
106
106
|
function U2() {
|
|
107
107
|
return yv || (yv = 1, function(c) {
|
|
108
108
|
process.env.NODE_ENV !== "production" && function() {
|
|
109
|
-
var t = Pi, n =
|
|
109
|
+
var t = Pi, n = vh(), e = 60103, s = 60106;
|
|
110
110
|
c.Fragment = 60107;
|
|
111
111
|
var o = 60108, r = 60114, a = 60109, l = 60110, i = 60112, u = 60113, d = 60120, p = 60115, f = 60116, h = 60121, m = 60122, g = 60117, v = 60129, b = 60131;
|
|
112
112
|
if (typeof Symbol == "function" && Symbol.for) {
|
|
@@ -667,10 +667,10 @@ Check the top-level render call using <` + he + ">.");
|
|
|
667
667
|
var Dt = un, sn = Ot;
|
|
668
668
|
c.jsx = Dt, c.jsxs = sn;
|
|
669
669
|
}();
|
|
670
|
-
}(
|
|
670
|
+
}(em)), em;
|
|
671
671
|
}
|
|
672
|
-
process.env.NODE_ENV === "production" ?
|
|
673
|
-
var ge =
|
|
672
|
+
process.env.NODE_ENV === "production" ? Hm.exports = $2() : Hm.exports = U2();
|
|
673
|
+
var ge = Hm.exports;
|
|
674
674
|
function H2(c) {
|
|
675
675
|
return c && c.__esModule && Object.prototype.hasOwnProperty.call(c, "default") ? c.default : c;
|
|
676
676
|
}
|
|
@@ -681,7 +681,7 @@ var q2 = H2(function(c) {
|
|
|
681
681
|
t.append("v", arguments[n]);
|
|
682
682
|
throw Error(`Minified Lexical error #${c}; visit https://lexical.dev/docs/error?${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`);
|
|
683
683
|
});
|
|
684
|
-
const Wy =
|
|
684
|
+
const Wy = yh(null);
|
|
685
685
|
function W2(c, t) {
|
|
686
686
|
let n = null;
|
|
687
687
|
return c != null && (n = c[1]), { getTheme: function() {
|
|
@@ -695,9 +695,9 @@ function In() {
|
|
|
695
695
|
function Ao(c) {
|
|
696
696
|
return {};
|
|
697
697
|
}
|
|
698
|
-
const Ca = {}, zx = {}, Bd = {}, sa = {}, Ws = {}, Rl = {}, Js = {}, Xs = {}, Lp = {}, Ll = {}, Ks = {}, ei = {}, zd = {}, $d = {}, $x = {},
|
|
698
|
+
const Ca = {}, zx = {}, Bd = {}, sa = {}, Ws = {}, Rl = {}, Js = {}, Xs = {}, Lp = {}, Ll = {}, Ks = {}, ei = {}, zd = {}, $d = {}, $x = {}, _h = {}, J2 = {}, xh = {}, V2 = {}, Ud = {}, Hd = {}, Dl = {}, K2 = {}, el = {}, Jl = {}, tl = {}, wh = {}, G2 = {}, Ux = {}, bv = {}, Sh = {}, Tl = {}, Eh = {}, Jy = {}, Y2 = {}, qd = {}, Wd = {}, Dp = {}, Ch = {}, Z2 = {}, zc = {}, $c = {}, Vy = {}, Q2 = {}, Hx = {}, fa = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, X2 = fa && "documentMode" in document ? document.documentMode : null, ta = fa && /Mac|iPod|iPhone|iPad/.test(navigator.platform), Vs = fa && /^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent), Fp = !(!fa || !("InputEvent" in window) || X2) && "getTargetRanges" in new window.InputEvent("input"), Ky = fa && /Version\/[\d.]+.*Safari/.test(navigator.userAgent), Th = fa && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, eT = fa && /Android/.test(navigator.userAgent), qx = fa && /^(?=.*Chrome).*/i.test(navigator.userAgent), tT = fa && eT && qx, Gy = fa && /AppleWebKit\/[\d.]+/.test(navigator.userAgent) && !qx, Jd = 1, nl = 3, Fl = 0, Wx = 1, Yc = 2, nT = 0, rT = 1, oT = 2, Bp = 4, zp = 8, Yy = 128, iT = 112 | (3 | Bp | zp) | Yy, Zy = 1, Qy = 2, Xy = 3, e0 = 4, t0 = 5, n0 = 6, kh = Ky || Th || Gy ? " " : "", rs = `
|
|
699
699
|
|
|
700
|
-
`, aT = Vs ? " " :
|
|
700
|
+
`, aT = Vs ? " " : kh, Jx = "֑-߿יִ-﷽ﹰ-ﻼ", Vx = "A-Za-zÀ-ÖØ-öø-ʸ̀-ࠀ-Ⰰ-︀--", sT = new RegExp("^[^" + Vx + "]*[" + Jx + "]"), lT = new RegExp("^[^" + Jx + "]*[" + Vx + "]"), ts = { bold: 1, code: 16, highlight: Yy, italic: 2, strikethrough: Bp, subscript: 32, superscript: 64, underline: zp }, cT = { directionless: 1, unmergeable: 2 }, vv = { center: Qy, end: n0, justify: e0, left: Zy, right: Xy, start: t0 }, uT = { [Qy]: "center", [n0]: "end", [e0]: "justify", [Zy]: "left", [Xy]: "right", [t0]: "start" }, dT = { normal: 0, segmented: 2, token: 1 }, fT = { [nT]: "normal", [oT]: "segmented", [rT]: "token" };
|
|
701
701
|
function pT(c) {
|
|
702
702
|
return c && c.__esModule && Object.prototype.hasOwnProperty.call(c, "default") ? c.default : c;
|
|
703
703
|
}
|
|
@@ -717,11 +717,11 @@ function $p(...c) {
|
|
|
717
717
|
return t;
|
|
718
718
|
}
|
|
719
719
|
const hT = 100;
|
|
720
|
-
let
|
|
720
|
+
let qm = !1, r0 = 0;
|
|
721
721
|
function gT(c) {
|
|
722
722
|
r0 = c.timeStamp;
|
|
723
723
|
}
|
|
724
|
-
function
|
|
724
|
+
function tm(c, t, n) {
|
|
725
725
|
return t.__lexicalLineBreak === c || c[`__lexicalKey_${n._key}`] !== void 0;
|
|
726
726
|
}
|
|
727
727
|
function mT(c, t, n) {
|
|
@@ -740,7 +740,7 @@ function yT(c, t, n) {
|
|
|
740
740
|
return t.nodeType === nl && n.isAttached();
|
|
741
741
|
}
|
|
742
742
|
function Kx(c, t, n) {
|
|
743
|
-
|
|
743
|
+
qm = !0;
|
|
744
744
|
const e = performance.now() - r0 > hT;
|
|
745
745
|
try {
|
|
746
746
|
Ai(c, () => {
|
|
@@ -762,7 +762,7 @@ function Kx(c, t, n) {
|
|
|
762
762
|
const v = f.addedNodes;
|
|
763
763
|
for (let w = 0; w < v.length; w++) {
|
|
764
764
|
const E = v[w], x = Xx(E), y = E.parentNode;
|
|
765
|
-
if (y != null && E !== l && x === null && (E.nodeName !== "BR" || !
|
|
765
|
+
if (y != null && E !== l && x === null && (E.nodeName !== "BR" || !tm(E, y, c))) {
|
|
766
766
|
if (Vs) {
|
|
767
767
|
const S = E.innerText || E.nodeValue;
|
|
768
768
|
S && (u += S);
|
|
@@ -775,7 +775,7 @@ function Kx(c, t, n) {
|
|
|
775
775
|
let w = 0;
|
|
776
776
|
for (let E = 0; E < _; E++) {
|
|
777
777
|
const x = b[E];
|
|
778
|
-
(x.nodeName === "BR" &&
|
|
778
|
+
(x.nodeName === "BR" && tm(x, m, c) || l === x) && (m.appendChild(x), w++);
|
|
779
779
|
}
|
|
780
780
|
_ !== w && (m === r && (g = tw(a)), o.set(m, g));
|
|
781
781
|
}
|
|
@@ -799,7 +799,7 @@ function Kx(c, t, n) {
|
|
|
799
799
|
const f = d[p], h = f.addedNodes, m = f.target;
|
|
800
800
|
for (let g = 0; g < h.length; g++) {
|
|
801
801
|
const v = h[g], b = v.parentNode;
|
|
802
|
-
b == null || v.nodeName !== "BR" ||
|
|
802
|
+
b == null || v.nodeName !== "BR" || tm(v, m, c) || b.removeChild(v);
|
|
803
803
|
}
|
|
804
804
|
}
|
|
805
805
|
n.takeRecords();
|
|
@@ -807,7 +807,7 @@ function Kx(c, t, n) {
|
|
|
807
807
|
s !== null && (i && (s.dirty = !0, $r(s)), Vs && sw(c) && s.insertRawText(u));
|
|
808
808
|
});
|
|
809
809
|
} finally {
|
|
810
|
-
|
|
810
|
+
qm = !1;
|
|
811
811
|
}
|
|
812
812
|
}
|
|
813
813
|
function Gx(c) {
|
|
@@ -816,7 +816,7 @@ function Gx(c) {
|
|
|
816
816
|
}
|
|
817
817
|
function Yx(c) {
|
|
818
818
|
(function(t) {
|
|
819
|
-
r0 === 0 &&
|
|
819
|
+
r0 === 0 && Ah(t).addEventListener("textInput", gT, !0);
|
|
820
820
|
})(c), c._observer = new MutationObserver((t, n) => {
|
|
821
821
|
Kx(c, t, n);
|
|
822
822
|
});
|
|
@@ -896,7 +896,7 @@ function Zx(c) {
|
|
|
896
896
|
const n = t.__lexicalEditor;
|
|
897
897
|
if (n != null)
|
|
898
898
|
return n;
|
|
899
|
-
t =
|
|
899
|
+
t = Nh(t);
|
|
900
900
|
}
|
|
901
901
|
return null;
|
|
902
902
|
}
|
|
@@ -915,7 +915,7 @@ function Up(c) {
|
|
|
915
915
|
}
|
|
916
916
|
return null;
|
|
917
917
|
}
|
|
918
|
-
function
|
|
918
|
+
function Wm(c, t, n) {
|
|
919
919
|
const e = ts[t];
|
|
920
920
|
if (n !== null && (c & e) == (n & e))
|
|
921
921
|
return c;
|
|
@@ -1017,7 +1017,7 @@ function yo(c, t) {
|
|
|
1017
1017
|
const e = Xx(n, t);
|
|
1018
1018
|
if (e !== null)
|
|
1019
1019
|
return e;
|
|
1020
|
-
n =
|
|
1020
|
+
n = Nh(n);
|
|
1021
1021
|
}
|
|
1022
1022
|
return null;
|
|
1023
1023
|
}
|
|
@@ -1046,7 +1046,7 @@ function Uc(c) {
|
|
|
1046
1046
|
const r = o[`__lexicalKey_${s._key}`];
|
|
1047
1047
|
if (r !== void 0)
|
|
1048
1048
|
return r;
|
|
1049
|
-
o =
|
|
1049
|
+
o = Nh(o);
|
|
1050
1050
|
}
|
|
1051
1051
|
return null;
|
|
1052
1052
|
}(c, t);
|
|
@@ -1081,7 +1081,7 @@ function l0(c, t, n) {
|
|
|
1081
1081
|
let a = ow(s);
|
|
1082
1082
|
const l = yo(s);
|
|
1083
1083
|
if (a !== null && Jt(l)) {
|
|
1084
|
-
if (a ===
|
|
1084
|
+
if (a === kh && n) {
|
|
1085
1085
|
const i = n.length;
|
|
1086
1086
|
a = n, o = i, r = i;
|
|
1087
1087
|
}
|
|
@@ -1094,11 +1094,11 @@ function c0(c, t, n, e, s) {
|
|
|
1094
1094
|
if (o.isAttached() && (s || !o.isDirty())) {
|
|
1095
1095
|
const r = o.isComposing();
|
|
1096
1096
|
let a = t;
|
|
1097
|
-
(r || s) && t[t.length - 1] ===
|
|
1097
|
+
(r || s) && t[t.length - 1] === kh && (a = t.slice(0, -1));
|
|
1098
1098
|
const l = o.getTextContent();
|
|
1099
1099
|
if (s || a !== l) {
|
|
1100
1100
|
if (a === "") {
|
|
1101
|
-
if (Do(null), Ky ||
|
|
1101
|
+
if (Do(null), Ky || Th || Gy)
|
|
1102
1102
|
o.remove();
|
|
1103
1103
|
else {
|
|
1104
1104
|
const m = Vr();
|
|
@@ -1208,20 +1208,20 @@ function xd(c, t) {
|
|
|
1208
1208
|
return null;
|
|
1209
1209
|
}
|
|
1210
1210
|
function sw(c) {
|
|
1211
|
-
const t =
|
|
1211
|
+
const t = Ah(c).event, n = t && t.inputType;
|
|
1212
1212
|
return n === "insertFromPaste" || n === "insertFromPasteAsQuotation";
|
|
1213
1213
|
}
|
|
1214
1214
|
function bn(c, t, n) {
|
|
1215
1215
|
return Ow(c, t, n);
|
|
1216
1216
|
}
|
|
1217
|
-
function
|
|
1217
|
+
function Oh(c) {
|
|
1218
1218
|
return !Vo(c) && !c.isLastChild() && !c.isInline();
|
|
1219
1219
|
}
|
|
1220
1220
|
function qp(c, t) {
|
|
1221
1221
|
const n = c._keyToDOMMap.get(t);
|
|
1222
1222
|
return n === void 0 && fn(75, t), n;
|
|
1223
1223
|
}
|
|
1224
|
-
function
|
|
1224
|
+
function Nh(c) {
|
|
1225
1225
|
const t = c.assignedSlot || c.parentElement;
|
|
1226
1226
|
return t !== null && t.nodeType === 11 ? t.host : t;
|
|
1227
1227
|
}
|
|
@@ -1237,7 +1237,7 @@ function Wp(c, t) {
|
|
|
1237
1237
|
}
|
|
1238
1238
|
return !1;
|
|
1239
1239
|
}
|
|
1240
|
-
function
|
|
1240
|
+
function Ah(c) {
|
|
1241
1241
|
const t = c._window;
|
|
1242
1242
|
return t === null && fn(78), t;
|
|
1243
1243
|
}
|
|
@@ -1267,10 +1267,10 @@ function Kr(c) {
|
|
|
1267
1267
|
}
|
|
1268
1268
|
return c;
|
|
1269
1269
|
}
|
|
1270
|
-
function
|
|
1270
|
+
function nm(c, t) {
|
|
1271
1271
|
!Vo(c.getParent()) || Ct(t) || Er(t) || fn(99);
|
|
1272
1272
|
}
|
|
1273
|
-
function
|
|
1273
|
+
function rm(c) {
|
|
1274
1274
|
return (Er(c) || Ct(c) && !c.canBeEmpty()) && !c.isInline();
|
|
1275
1275
|
}
|
|
1276
1276
|
function d0(c, t, n) {
|
|
@@ -1284,12 +1284,12 @@ function CT(c, t, n) {
|
|
|
1284
1284
|
const s = n.anchor, o = s.getNode(), r = s.offset;
|
|
1285
1285
|
let a = !1, l = null;
|
|
1286
1286
|
if (r === o.getChildrenSize())
|
|
1287
|
-
|
|
1287
|
+
rm(o.getChildAtIndex(r - 1)) && (a = !0);
|
|
1288
1288
|
else {
|
|
1289
1289
|
const i = o.getChildAtIndex(r);
|
|
1290
|
-
if (
|
|
1290
|
+
if (rm(i)) {
|
|
1291
1291
|
const u = i.getPreviousSibling();
|
|
1292
|
-
(u === null ||
|
|
1292
|
+
(u === null || rm(u)) && (a = !0, l = c.getElementByKey(i.__key));
|
|
1293
1293
|
}
|
|
1294
1294
|
}
|
|
1295
1295
|
if (a) {
|
|
@@ -1350,7 +1350,7 @@ function Cc(c) {
|
|
|
1350
1350
|
const t = c.getFirstChild(), n = t === null || Oa(t) || Jt(t) || t.isInline();
|
|
1351
1351
|
return !c.isInline() && c.canBeEmpty() !== !1 && n;
|
|
1352
1352
|
}
|
|
1353
|
-
function
|
|
1353
|
+
function om(c, t) {
|
|
1354
1354
|
let n = c;
|
|
1355
1355
|
for (; n !== null && n.getParent() !== null && !t(n); )
|
|
1356
1356
|
n = n.getParentOrThrow();
|
|
@@ -1366,20 +1366,20 @@ function lw(c, t, n, e, s, o) {
|
|
|
1366
1366
|
r.__parent === t && (Ct(r) && lw(r, a, n, e, s, o), n.has(a) || o.delete(a), s.push(a)), r = r.getNextSibling();
|
|
1367
1367
|
}
|
|
1368
1368
|
}
|
|
1369
|
-
let Gs, ri, wd,
|
|
1369
|
+
let Gs, ri, wd, jh, Jm, Vm, Bl, la, Km, Sd, mo = "", ni = "", na = null, Za = "", cw = !1, Ph = !1, gp = null;
|
|
1370
1370
|
function Jp(c, t) {
|
|
1371
1371
|
const n = Bl.get(c);
|
|
1372
1372
|
if (t !== null) {
|
|
1373
|
-
const e =
|
|
1373
|
+
const e = Zm(c);
|
|
1374
1374
|
e.parentNode === t && t.removeChild(e);
|
|
1375
1375
|
}
|
|
1376
1376
|
if (la.has(c) || ri._keyToDOMMap.delete(c), Ct(n)) {
|
|
1377
1377
|
const e = Kp(n, Bl);
|
|
1378
|
-
|
|
1378
|
+
Gm(e, 0, e.length - 1, null);
|
|
1379
1379
|
}
|
|
1380
|
-
n !== void 0 && u0(Sd, wd,
|
|
1380
|
+
n !== void 0 && u0(Sd, wd, jh, n, "destroyed");
|
|
1381
1381
|
}
|
|
1382
|
-
function
|
|
1382
|
+
function Gm(c, t, n, e) {
|
|
1383
1383
|
let s = t;
|
|
1384
1384
|
for (; s <= n; ++s) {
|
|
1385
1385
|
const o = c[s];
|
|
@@ -1416,11 +1416,11 @@ function Vp(c, t, n) {
|
|
|
1416
1416
|
const l = r - 1;
|
|
1417
1417
|
(function(i, u, d, p) {
|
|
1418
1418
|
const f = ni;
|
|
1419
|
-
ni = "",
|
|
1419
|
+
ni = "", Ym(i, d, 0, u, p, null), pw(d, p), ni = f;
|
|
1420
1420
|
})(Kp(e, la), l, e, s);
|
|
1421
1421
|
}
|
|
1422
1422
|
const a = e.__format;
|
|
1423
|
-
a !== 0 && dw(s, a), e.isInline() || fw(null, e, s),
|
|
1423
|
+
a !== 0 && dw(s, a), e.isInline() || fw(null, e, s), Oh(e) && (mo += rs, Za += rs);
|
|
1424
1424
|
} else {
|
|
1425
1425
|
const o = e.getTextContent();
|
|
1426
1426
|
if (Er(e)) {
|
|
@@ -1437,9 +1437,9 @@ function Vp(c, t, n) {
|
|
|
1437
1437
|
const o = t.__lexicalLineBreak;
|
|
1438
1438
|
o != null ? t.insertBefore(s, o) : t.appendChild(s);
|
|
1439
1439
|
}
|
|
1440
|
-
return u0(Sd, wd,
|
|
1440
|
+
return u0(Sd, wd, jh, e, "created"), s;
|
|
1441
1441
|
}
|
|
1442
|
-
function
|
|
1442
|
+
function Ym(c, t, n, e, s, o) {
|
|
1443
1443
|
const r = mo;
|
|
1444
1444
|
mo = "";
|
|
1445
1445
|
let a = n;
|
|
@@ -1448,7 +1448,7 @@ function Zm(c, t, n, e, s, o) {
|
|
|
1448
1448
|
const l = la.get(c[a]);
|
|
1449
1449
|
l !== null && na === null && Jt(l) && (na = l.getFormat());
|
|
1450
1450
|
}
|
|
1451
|
-
|
|
1451
|
+
Oh(t) && (mo += rs), s.__lexicalTextContent = mo, mo = r + mo;
|
|
1452
1452
|
}
|
|
1453
1453
|
function jv(c, t) {
|
|
1454
1454
|
const n = t.get(c);
|
|
@@ -1492,7 +1492,7 @@ function pw(c, t) {
|
|
|
1492
1492
|
}
|
|
1493
1493
|
t.dir = r;
|
|
1494
1494
|
}
|
|
1495
|
-
|
|
1495
|
+
Ph || (c.getWritable().__dir = r);
|
|
1496
1496
|
}
|
|
1497
1497
|
gp = r, t.__lexicalDirTextContent = ni, t.__lexicalDir = r;
|
|
1498
1498
|
}
|
|
@@ -1508,7 +1508,7 @@ function PT(c, t, n) {
|
|
|
1508
1508
|
if (d === p)
|
|
1509
1509
|
rd(d, a);
|
|
1510
1510
|
else {
|
|
1511
|
-
const h =
|
|
1511
|
+
const h = Zm(d), m = Vp(p, null, null);
|
|
1512
1512
|
a.replaceChild(m, h), Jp(d, null);
|
|
1513
1513
|
}
|
|
1514
1514
|
const f = la.get(p);
|
|
@@ -1516,11 +1516,11 @@ function PT(c, t, n) {
|
|
|
1516
1516
|
} else {
|
|
1517
1517
|
const d = Kp(o, Bl), p = Kp(r, la);
|
|
1518
1518
|
if (i === 0)
|
|
1519
|
-
u !== 0 &&
|
|
1519
|
+
u !== 0 && Ym(p, r, 0, u - 1, a, null);
|
|
1520
1520
|
else if (u === 0) {
|
|
1521
1521
|
if (i !== 0) {
|
|
1522
1522
|
const f = a.__lexicalLineBreak == null;
|
|
1523
|
-
|
|
1523
|
+
Gm(d, 0, i - 1, f ? null : a), f && (a.textContent = "");
|
|
1524
1524
|
}
|
|
1525
1525
|
} else
|
|
1526
1526
|
(function(f, h, m, g, v, b) {
|
|
@@ -1529,18 +1529,18 @@ function PT(c, t, n) {
|
|
|
1529
1529
|
for (var O; S <= _ && C <= w; ) {
|
|
1530
1530
|
const M = h[S], L = m[C];
|
|
1531
1531
|
if (M === L)
|
|
1532
|
-
y =
|
|
1532
|
+
y = im(rd(L, b)), S++, C++;
|
|
1533
1533
|
else {
|
|
1534
1534
|
E === void 0 && (E = new Set(h)), x === void 0 && (x = new Set(m));
|
|
1535
1535
|
const T = x.has(M), I = E.has(L);
|
|
1536
1536
|
if (T)
|
|
1537
1537
|
if (I) {
|
|
1538
1538
|
const D = qp(ri, L);
|
|
1539
|
-
D === y ? y =
|
|
1539
|
+
D === y ? y = im(rd(L, b)) : (y != null ? b.insertBefore(D, y) : b.appendChild(D), rd(L, b)), S++, C++;
|
|
1540
1540
|
} else
|
|
1541
1541
|
Vp(L, b, y), C++;
|
|
1542
1542
|
else
|
|
1543
|
-
y =
|
|
1543
|
+
y = im(Zm(M)), Jp(M, b), S++;
|
|
1544
1544
|
}
|
|
1545
1545
|
const P = la.get(L);
|
|
1546
1546
|
P !== null && na === null && Jt(P) && (na = P.getFormat());
|
|
@@ -1548,13 +1548,13 @@ function PT(c, t, n) {
|
|
|
1548
1548
|
const F = S > _, z = C > w;
|
|
1549
1549
|
if (F && !z) {
|
|
1550
1550
|
const M = m[w + 1];
|
|
1551
|
-
|
|
1551
|
+
Ym(m, f, C, w, b, M === void 0 ? null : ri.getElementByKey(M));
|
|
1552
1552
|
} else
|
|
1553
|
-
z && !F &&
|
|
1553
|
+
z && !F && Gm(h, S, _, b);
|
|
1554
1554
|
})(r, d, p, i, u, a);
|
|
1555
1555
|
}
|
|
1556
|
-
|
|
1557
|
-
}(c, t, n), pw(t, n), Jr(s = t) && na != null && na !== s.__textFormat && !
|
|
1556
|
+
Oh(r) && (mo += rs), a.__lexicalTextContent = mo, mo = l + mo;
|
|
1557
|
+
}(c, t, n), pw(t, n), Jr(s = t) && na != null && na !== s.__textFormat && !Ph && s.setTextFormat(na), ni = e, na = null;
|
|
1558
1558
|
}
|
|
1559
1559
|
function Kp(c, t) {
|
|
1560
1560
|
const n = [];
|
|
@@ -1569,7 +1569,7 @@ function rd(c, t) {
|
|
|
1569
1569
|
const n = Bl.get(c);
|
|
1570
1570
|
let e = la.get(c);
|
|
1571
1571
|
n !== void 0 && e !== void 0 || fn(61);
|
|
1572
|
-
const s = cw ||
|
|
1572
|
+
const s = cw || Vm.has(c) || Jm.has(c), o = qp(ri, c);
|
|
1573
1573
|
if (n === e && !s) {
|
|
1574
1574
|
if (Ct(n)) {
|
|
1575
1575
|
const r = o.__lexicalTextContent;
|
|
@@ -1582,7 +1582,7 @@ function rd(c, t) {
|
|
|
1582
1582
|
}
|
|
1583
1583
|
return o;
|
|
1584
1584
|
}
|
|
1585
|
-
if (n !== e && s && u0(Sd, wd,
|
|
1585
|
+
if (n !== e && s && u0(Sd, wd, jh, e, "updated"), e.updateDOM(n, o, Gs)) {
|
|
1586
1586
|
const r = Vp(c, null, null);
|
|
1587
1587
|
return t === null && fn(62), t.replaceChild(r, o), Jp(c, null), r;
|
|
1588
1588
|
}
|
|
@@ -1590,7 +1590,7 @@ function rd(c, t) {
|
|
|
1590
1590
|
const r = e.__indent;
|
|
1591
1591
|
r !== n.__indent && uw(o, r);
|
|
1592
1592
|
const a = e.__format;
|
|
1593
|
-
a !== n.__format && dw(o, a), s && (PT(n, e, o), Vo(e) || e.isInline() || fw(n, e, o)),
|
|
1593
|
+
a !== n.__format && dw(o, a), s && (PT(n, e, o), Vo(e) || e.isInline() || fw(n, e, o)), Oh(e) && (mo += rs, Za += rs);
|
|
1594
1594
|
} else {
|
|
1595
1595
|
const r = e.getTextContent();
|
|
1596
1596
|
if (Er(e)) {
|
|
@@ -1600,7 +1600,7 @@ function rd(c, t) {
|
|
|
1600
1600
|
Jt(e) && !e.isDirectionless() && (ni += r);
|
|
1601
1601
|
mo += r, Za += r;
|
|
1602
1602
|
}
|
|
1603
|
-
if (!
|
|
1603
|
+
if (!Ph && Vo(e) && e.__cachedText !== Za) {
|
|
1604
1604
|
const r = e.getWritable();
|
|
1605
1605
|
r.__cachedText = Za, e = r;
|
|
1606
1606
|
}
|
|
@@ -1616,30 +1616,30 @@ function hw(c, t) {
|
|
|
1616
1616
|
}
|
|
1617
1617
|
n[c] = t;
|
|
1618
1618
|
}
|
|
1619
|
-
function
|
|
1619
|
+
function im(c) {
|
|
1620
1620
|
let t = c.nextSibling;
|
|
1621
1621
|
return t !== null && t === ri._blockCursorElement && (t = t.nextSibling), t;
|
|
1622
1622
|
}
|
|
1623
1623
|
function IT(c, t, n, e, s, o) {
|
|
1624
|
-
mo = "", Za = "", ni = "", cw = e === Yc, gp = null, ri = n, Gs = n._config, wd = n._nodes,
|
|
1624
|
+
mo = "", Za = "", ni = "", cw = e === Yc, gp = null, ri = n, Gs = n._config, wd = n._nodes, jh = ri._listeners.mutation, Jm = s, Vm = o, Bl = c._nodeMap, la = t._nodeMap, Ph = t._readOnly, Km = new Map(n._keyToDOMMap);
|
|
1625
1625
|
const r = /* @__PURE__ */ new Map();
|
|
1626
|
-
return Sd = r, rd("root", null), ri = void 0, wd = void 0,
|
|
1626
|
+
return Sd = r, rd("root", null), ri = void 0, wd = void 0, Jm = void 0, Vm = void 0, Bl = void 0, la = void 0, Gs = void 0, Km = void 0, Sd = void 0, r;
|
|
1627
1627
|
}
|
|
1628
|
-
function
|
|
1629
|
-
const t =
|
|
1628
|
+
function Zm(c) {
|
|
1629
|
+
const t = Km.get(c);
|
|
1630
1630
|
return t === void 0 && fn(75, c), t;
|
|
1631
1631
|
}
|
|
1632
|
-
const Va = Object.freeze({}),
|
|
1632
|
+
const Va = Object.freeze({}), Qm = 30, Xm = [["keydown", function(c, t) {
|
|
1633
1633
|
if (ud = c.timeStamp, gw = c.key, t.isComposing())
|
|
1634
1634
|
return;
|
|
1635
1635
|
const { key: n, shiftKey: e, ctrlKey: s, metaKey: o, altKey: r } = c;
|
|
1636
1636
|
bn(t, $x, c) || n != null && (function(a, l, i, u) {
|
|
1637
1637
|
return kv(a) && !l && !u && !i;
|
|
1638
|
-
}(n, s, r, o) ? bn(t,
|
|
1638
|
+
}(n, s, r, o) ? bn(t, _h, c) : function(a, l, i, u, d) {
|
|
1639
1639
|
return kv(a) && !u && !i && (l || d);
|
|
1640
1640
|
}(n, s, e, r, o) ? bn(t, J2, c) : function(a, l, i, u) {
|
|
1641
1641
|
return Tv(a) && !l && !u && !i;
|
|
1642
|
-
}(n, s, r, o) ? bn(t,
|
|
1642
|
+
}(n, s, r, o) ? bn(t, xh, c) : function(a, l, i, u, d) {
|
|
1643
1643
|
return Tv(a) && !u && !i && (l || d);
|
|
1644
1644
|
}(n, s, e, r, o) ? bn(t, V2, c) : function(a, l, i) {
|
|
1645
1645
|
return function(u) {
|
|
@@ -1679,7 +1679,7 @@ const Va = Object.freeze({}), Xm = 30, ey = [["keydown", function(c, t) {
|
|
|
1679
1679
|
return a.toLowerCase() === "i" && !l && nd(i, u);
|
|
1680
1680
|
}(n, r, o, s) ? (c.preventDefault(), bn(t, ei, "italic")) : function(a, l, i, u) {
|
|
1681
1681
|
return a === "Tab" && !l && !i && !u;
|
|
1682
|
-
}(n, r, s, o) ? bn(t,
|
|
1682
|
+
}(n, r, s, o) ? bn(t, wh, c) : function(a, l, i, u) {
|
|
1683
1683
|
return a.toLowerCase() === "z" && !l && nd(i, u);
|
|
1684
1684
|
}(n, e, o, s) ? (c.preventDefault(), bn(t, zd, void 0)) : function(a, l, i, u) {
|
|
1685
1685
|
return ta ? a.toLowerCase() === "z" && i && l : a.toLowerCase() === "y" && u || a.toLowerCase() === "z" && u && l;
|
|
@@ -1693,34 +1693,34 @@ const Va = Object.freeze({}), Xm = 30, ey = [["keydown", function(c, t) {
|
|
|
1693
1693
|
}], ["pointerdown", function(c, t) {
|
|
1694
1694
|
const n = c.target, e = c.pointerType;
|
|
1695
1695
|
n instanceof Node && e !== "touch" && Ai(t, () => {
|
|
1696
|
-
Er(yo(n)) || (
|
|
1696
|
+
Er(yo(n)) || (ty = !0);
|
|
1697
1697
|
});
|
|
1698
1698
|
}], ["compositionstart", function(c, t) {
|
|
1699
1699
|
Ai(t, () => {
|
|
1700
1700
|
const n = At();
|
|
1701
1701
|
if (Et(n) && !t.isComposing()) {
|
|
1702
1702
|
const e = n.anchor, s = n.anchor.getNode();
|
|
1703
|
-
Do(e.key), (c.timeStamp < ud +
|
|
1703
|
+
Do(e.key), (c.timeStamp < ud + Qm || e.type === "element" || !n.isCollapsed() || s.getFormat() !== n.format || Jt(s) && s.getStyle() !== n.style) && bn(t, Js, aT);
|
|
1704
1704
|
}
|
|
1705
1705
|
});
|
|
1706
1706
|
}], ["compositionend", function(c, t) {
|
|
1707
1707
|
Vs ? Yu = !0 : Ai(t, () => {
|
|
1708
|
-
|
|
1708
|
+
am(t, c.data);
|
|
1709
1709
|
});
|
|
1710
1710
|
}], ["input", function(c, t) {
|
|
1711
1711
|
c.stopPropagation(), Ai(t, () => {
|
|
1712
1712
|
const n = At(), e = c.data, s = vw(c);
|
|
1713
1713
|
if (e != null && Et(n) && bw(n, s, e, c.timeStamp, !1)) {
|
|
1714
|
-
Yu && (
|
|
1714
|
+
Yu && (am(t, e), Yu = !1);
|
|
1715
1715
|
const o = n.anchor.getNode(), r = Pa(t._window);
|
|
1716
1716
|
if (r === null)
|
|
1717
1717
|
return;
|
|
1718
1718
|
const a = n.isBackward(), l = a ? n.anchor.offset : n.focus.offset, i = a ? n.focus.offset : n.anchor.offset;
|
|
1719
1719
|
Fp && !n.isCollapsed() && Jt(o) && r.anchorNode !== null && o.getTextContent().slice(0, l) + e + o.getTextContent().slice(l + i) === ow(r.anchorNode) || bn(t, Js, e);
|
|
1720
1720
|
const u = e.length;
|
|
1721
|
-
Vs && u > 1 && c.inputType === "insertCompositionText" && !t.isComposing() && (n.anchor.offset -= u), Ky ||
|
|
1721
|
+
Vs && u > 1 && c.inputType === "insertCompositionText" && !t.isComposing() && (n.anchor.offset -= u), Ky || Th || Gy || !t.isComposing() || (ud = 0, Do(null));
|
|
1722
1722
|
} else
|
|
1723
|
-
l0(!1, t, e !== null ? e : void 0), Yu && (
|
|
1723
|
+
l0(!1, t, e !== null ? e : void 0), Yu && (am(t, e || void 0), Yu = !1);
|
|
1724
1724
|
ti(), Gx(Vr());
|
|
1725
1725
|
}), Tc = null;
|
|
1726
1726
|
}], ["click", function(c, t) {
|
|
@@ -1734,14 +1734,14 @@ const Va = Object.freeze({}), Xm = 30, ey = [["keydown", function(c, t) {
|
|
|
1734
1734
|
const o = e.anchorNode;
|
|
1735
1735
|
if (o !== null) {
|
|
1736
1736
|
const r = o.nodeType;
|
|
1737
|
-
(r === Jd || r === nl) && $r(
|
|
1737
|
+
(r === Jd || r === nl) && $r(Rh(s, e, t, c));
|
|
1738
1738
|
}
|
|
1739
1739
|
}
|
|
1740
1740
|
}
|
|
1741
1741
|
bn(t, Bd, c);
|
|
1742
1742
|
});
|
|
1743
1743
|
}], ["cut", Va], ["copy", Va], ["dragstart", Va], ["dragover", Va], ["dragend", Va], ["paste", Va], ["focus", Va], ["blur", Va], ["drop", Va]];
|
|
1744
|
-
Fp &&
|
|
1744
|
+
Fp && Xm.push(["beforeinput", (c, t) => function(n, e) {
|
|
1745
1745
|
const s = n.inputType, o = vw(n);
|
|
1746
1746
|
s === "deleteCompositionText" || Vs && sw(e) || s !== "insertCompositionText" && Ai(e, () => {
|
|
1747
1747
|
const r = At();
|
|
@@ -1754,12 +1754,12 @@ Fp && ey.push(["beforeinput", (c, t) => function(n, e) {
|
|
|
1754
1754
|
}
|
|
1755
1755
|
if (Et(r)) {
|
|
1756
1756
|
const f = r.anchor.key === r.focus.key;
|
|
1757
|
-
if (a = n.timeStamp, gw === "MediaLast" && a < ud +
|
|
1757
|
+
if (a = n.timeStamp, gw === "MediaLast" && a < ud + Qm && e.isComposing() && f) {
|
|
1758
1758
|
if (Do(null), ud = 0, setTimeout(() => {
|
|
1759
1759
|
Ai(e, () => {
|
|
1760
1760
|
Do(null);
|
|
1761
1761
|
});
|
|
1762
|
-
},
|
|
1762
|
+
}, Qm), Et(r)) {
|
|
1763
1763
|
const h = r.anchor.getNode();
|
|
1764
1764
|
h.markDirty(), r.format = h.getFormat(), Jt(h) || fn(142), r.style = h.getStyle();
|
|
1765
1765
|
}
|
|
@@ -1791,7 +1791,7 @@ Fp && ey.push(["beforeinput", (c, t) => function(n, e) {
|
|
|
1791
1791
|
Do(null), bn(e, Ws, !1);
|
|
1792
1792
|
break;
|
|
1793
1793
|
case "insertParagraph":
|
|
1794
|
-
Do(null), dd && !
|
|
1794
|
+
Do(null), dd && !Th ? (dd = !1, bn(e, Ws, !1)) : bn(e, Rl, void 0);
|
|
1795
1795
|
break;
|
|
1796
1796
|
case "insertFromPaste":
|
|
1797
1797
|
case "insertFromPasteAsQuotation":
|
|
@@ -1859,7 +1859,7 @@ Fp && ey.push(["beforeinput", (c, t) => function(n, e) {
|
|
|
1859
1859
|
}(c, t)]);
|
|
1860
1860
|
let ud = 0, gw = null, mw = 0, Tc = null;
|
|
1861
1861
|
const Gp = /* @__PURE__ */ new WeakMap();
|
|
1862
|
-
let
|
|
1862
|
+
let ey = !1, ty = !1, dd = !1, Yu = !1, yw = [0, "", 0, "root", 0];
|
|
1863
1863
|
function bw(c, t, n, e, s) {
|
|
1864
1864
|
const o = c.anchor, r = c.focus, a = o.getNode(), l = Vr(), i = Pa(l._window), u = i !== null ? i.anchorNode : null, d = o.key, p = l.getElementByKey(d), f = n.length;
|
|
1865
1865
|
return d !== r.key || !Jt(a) || (!s && (!Fp || mw < e + 50) || a.isDirty() && f < 2 || nw(n)) && o.offset !== r.offset && !a.isComposing() || Ec(a) || a.isDirty() && f > 1 || (s || !Fp) && p !== null && !a.isComposing() && u !== Up(p) || i !== null && t !== null && (!t.collapsed || t.startContainer !== i.anchorNode || t.startOffset !== i.anchorOffset) || a.getFormat() !== c.format || a.getStyle() !== c.style || xT(c, a);
|
|
@@ -1869,7 +1869,7 @@ function Pv(c, t) {
|
|
|
1869
1869
|
}
|
|
1870
1870
|
function Iv(c, t, n) {
|
|
1871
1871
|
const { anchorNode: e, anchorOffset: s, focusNode: o, focusOffset: r } = c;
|
|
1872
|
-
|
|
1872
|
+
ey && (ey = !1, Pv(e, s) && Pv(o, r)) || Ai(t, () => {
|
|
1873
1873
|
if (!n)
|
|
1874
1874
|
return void $r(null);
|
|
1875
1875
|
if (!Vd(t, e, o))
|
|
@@ -1879,7 +1879,7 @@ function Iv(c, t, n) {
|
|
|
1879
1879
|
const l = a.anchor, i = l.getNode();
|
|
1880
1880
|
if (a.isCollapsed()) {
|
|
1881
1881
|
c.type === "Range" && c.anchorNode === c.focusNode && (a.dirty = !0);
|
|
1882
|
-
const u =
|
|
1882
|
+
const u = Ah(t).event, d = u ? u.timeStamp : performance.now(), [p, f, h, m, g] = yw, v = Wn(), b = t.isComposing() === !1 && v.getTextContent() === "";
|
|
1883
1883
|
if (d < g + 200 && l.offset === h && l.key === m)
|
|
1884
1884
|
a.format = p, a.style = f;
|
|
1885
1885
|
else if (l.type === "text")
|
|
@@ -1908,7 +1908,7 @@ function vw(c) {
|
|
|
1908
1908
|
const t = c.getTargetRanges();
|
|
1909
1909
|
return t.length === 0 ? null : t[0];
|
|
1910
1910
|
}
|
|
1911
|
-
function
|
|
1911
|
+
function am(c, t) {
|
|
1912
1912
|
const n = c._compositionKey;
|
|
1913
1913
|
if (Do(null), n !== null && t != null) {
|
|
1914
1914
|
if (t === "") {
|
|
@@ -1938,12 +1938,12 @@ function xw(c) {
|
|
|
1938
1938
|
const e = Zx(n.anchorNode);
|
|
1939
1939
|
if (e === null)
|
|
1940
1940
|
return;
|
|
1941
|
-
|
|
1941
|
+
ty && (ty = !1, Ai(e, () => {
|
|
1942
1942
|
const i = ol(), u = n.anchorNode;
|
|
1943
1943
|
if (u === null)
|
|
1944
1944
|
return;
|
|
1945
1945
|
const d = u.nodeType;
|
|
1946
|
-
d !== Jd && d !== nl || $r(
|
|
1946
|
+
d !== Jd && d !== nl || $r(Rh(i, n, e, c));
|
|
1947
1947
|
}));
|
|
1948
1948
|
const s = s0(e), o = s[s.length - 1], r = o._key, a = Wc.get(r), l = a || o;
|
|
1949
1949
|
l !== e && Iv(n, l, !1), Iv(n, e, !0), e !== o ? Wc.set(r, e) : a && Wc.delete(r);
|
|
@@ -1972,7 +1972,7 @@ function MT(c) {
|
|
|
1972
1972
|
o[r]();
|
|
1973
1973
|
c.__lexicalEventHandles = [];
|
|
1974
1974
|
}
|
|
1975
|
-
function
|
|
1975
|
+
function ny(c, t, n) {
|
|
1976
1976
|
ti();
|
|
1977
1977
|
const e = c.__key, s = c.getParent();
|
|
1978
1978
|
if (s === null)
|
|
@@ -1995,9 +1995,9 @@ function ry(c, t, n) {
|
|
|
1995
1995
|
Nl(c), Zp(o, s, a, -1);
|
|
1996
1996
|
} else
|
|
1997
1997
|
Nl(c);
|
|
1998
|
-
n || ao(s) || s.canBeEmpty() || !s.isEmpty() ||
|
|
1998
|
+
n || ao(s) || s.canBeEmpty() || !s.isEmpty() || ny(s, t), t && Vo(s) && s.isEmpty() && s.selectEnd();
|
|
1999
1999
|
}
|
|
2000
|
-
class
|
|
2000
|
+
class Ih {
|
|
2001
2001
|
static getType() {
|
|
2002
2002
|
fn(64, this.name);
|
|
2003
2003
|
}
|
|
@@ -2234,16 +2234,16 @@ class Mh {
|
|
|
2234
2234
|
return null;
|
|
2235
2235
|
}
|
|
2236
2236
|
remove(t) {
|
|
2237
|
-
|
|
2237
|
+
ny(this, !0, t);
|
|
2238
2238
|
}
|
|
2239
2239
|
replace(t, n) {
|
|
2240
2240
|
ti();
|
|
2241
2241
|
let e = At();
|
|
2242
|
-
e !== null && (e = e.clone()),
|
|
2242
|
+
e !== null && (e = e.clone()), nm(this, t);
|
|
2243
2243
|
const s = this.getLatest(), o = this.__key, r = t.__key, a = t.getWritable(), l = this.getParentOrThrow().getWritable(), i = l.__size;
|
|
2244
2244
|
Nl(a);
|
|
2245
2245
|
const u = s.getPreviousSibling(), d = s.getNextSibling(), p = s.__prev, f = s.__next, h = s.__parent;
|
|
2246
|
-
if (
|
|
2246
|
+
if (ny(s, !1, !0), u === null ? l.__first = r : u.getWritable().__next = r, a.__prev = p, d === null ? l.__last = r : d.getWritable().__prev = r, a.__next = f, a.__parent = h, l.__size = i, n && (Ct(this) && Ct(a) || fn(139), this.getChildren().forEach((m) => {
|
|
2247
2247
|
a.append(m);
|
|
2248
2248
|
})), Et(e)) {
|
|
2249
2249
|
$r(e);
|
|
@@ -2253,7 +2253,7 @@ class Mh {
|
|
|
2253
2253
|
return Us() === o && Do(r), a;
|
|
2254
2254
|
}
|
|
2255
2255
|
insertAfter(t, n = !0) {
|
|
2256
|
-
ti(),
|
|
2256
|
+
ti(), nm(this, t);
|
|
2257
2257
|
const e = this.getWritable(), s = t.getWritable(), o = s.getParent(), r = At();
|
|
2258
2258
|
let a = !1, l = !1;
|
|
2259
2259
|
if (o !== null) {
|
|
@@ -2273,7 +2273,7 @@ class Mh {
|
|
|
2273
2273
|
return t;
|
|
2274
2274
|
}
|
|
2275
2275
|
insertBefore(t, n = !0) {
|
|
2276
|
-
ti(),
|
|
2276
|
+
ti(), nm(this, t);
|
|
2277
2277
|
const e = this.getWritable(), s = t.getWritable(), o = s.__key;
|
|
2278
2278
|
Nl(s);
|
|
2279
2279
|
const r = this.getPreviousSibling(), a = this.getParentOrThrow().getWritable(), l = e.__prev, i = this.getIndexWithinParent();
|
|
@@ -2323,7 +2323,7 @@ class Mh {
|
|
|
2323
2323
|
this.getWritable();
|
|
2324
2324
|
}
|
|
2325
2325
|
}
|
|
2326
|
-
class su extends
|
|
2326
|
+
class su extends Ih {
|
|
2327
2327
|
static getType() {
|
|
2328
2328
|
return "linebreak";
|
|
2329
2329
|
}
|
|
@@ -2376,10 +2376,10 @@ function Oa(c) {
|
|
|
2376
2376
|
function Lv(c) {
|
|
2377
2377
|
return c.nodeType === nl && /^( |\t|\r?\n)+$/.test(c.textContent || "");
|
|
2378
2378
|
}
|
|
2379
|
-
function
|
|
2379
|
+
function sm(c, t) {
|
|
2380
2380
|
return 16 & t ? "code" : t & Yy ? "mark" : 32 & t ? "sub" : 64 & t ? "sup" : null;
|
|
2381
2381
|
}
|
|
2382
|
-
function
|
|
2382
|
+
function lm(c, t) {
|
|
2383
2383
|
return 1 & t ? "strong" : 2 & t ? "em" : "span";
|
|
2384
2384
|
}
|
|
2385
2385
|
function ww(c, t, n, e, s) {
|
|
@@ -2403,7 +2403,7 @@ function ww(c, t, n, e, s) {
|
|
|
2403
2403
|
}
|
|
2404
2404
|
}
|
|
2405
2405
|
function Sw(c, t, n) {
|
|
2406
|
-
const e = t.firstChild, s = n.isComposing(), o = c + (s ?
|
|
2406
|
+
const e = t.firstChild, s = n.isComposing(), o = c + (s ? kh : "");
|
|
2407
2407
|
if (e == null)
|
|
2408
2408
|
t.textContent = o;
|
|
2409
2409
|
else {
|
|
@@ -2433,7 +2433,7 @@ function Kf(c, t) {
|
|
|
2433
2433
|
const n = document.createElement(t);
|
|
2434
2434
|
return n.appendChild(c), n;
|
|
2435
2435
|
}
|
|
2436
|
-
class oo extends
|
|
2436
|
+
class oo extends Ih {
|
|
2437
2437
|
static getType() {
|
|
2438
2438
|
return "text";
|
|
2439
2439
|
}
|
|
@@ -2482,20 +2482,20 @@ class oo extends Mh {
|
|
|
2482
2482
|
return this.getLatest().__text;
|
|
2483
2483
|
}
|
|
2484
2484
|
getFormatFlags(t, n) {
|
|
2485
|
-
return
|
|
2485
|
+
return Wm(this.getLatest().__format, t, n);
|
|
2486
2486
|
}
|
|
2487
2487
|
canHaveFormat() {
|
|
2488
2488
|
return !0;
|
|
2489
2489
|
}
|
|
2490
2490
|
createDOM(t, n) {
|
|
2491
|
-
const e = this.__format, s =
|
|
2491
|
+
const e = this.__format, s = sm(0, e), o = lm(0, e), r = s === null ? o : s, a = document.createElement(r);
|
|
2492
2492
|
let l = a;
|
|
2493
2493
|
this.hasFormat("code") && a.setAttribute("spellcheck", "false"), s !== null && (l = document.createElement(o), a.appendChild(l)), Dv(l, this, 0, e, this.__text, t);
|
|
2494
2494
|
const i = this.__style;
|
|
2495
2495
|
return i !== "" && (a.style.cssText = i), a;
|
|
2496
2496
|
}
|
|
2497
2497
|
updateDOM(t, n, e) {
|
|
2498
|
-
const s = this.__text, o = t.__format, r = this.__format, a =
|
|
2498
|
+
const s = this.__text, o = t.__format, r = this.__format, a = sm(0, o), l = sm(0, r), i = lm(0, o), u = lm(0, r);
|
|
2499
2499
|
if ((a === null ? i : a) !== (l === null ? u : l))
|
|
2500
2500
|
return !0;
|
|
2501
2501
|
if (a === l && i !== u) {
|
|
@@ -2540,7 +2540,7 @@ class oo extends Mh {
|
|
|
2540
2540
|
return n.__style = t, n;
|
|
2541
2541
|
}
|
|
2542
2542
|
toggleFormat(t) {
|
|
2543
|
-
const n =
|
|
2543
|
+
const n = Wm(this.getFormat(), t, null);
|
|
2544
2544
|
return this.setFormat(n);
|
|
2545
2545
|
}
|
|
2546
2546
|
toggleDirectionless() {
|
|
@@ -2833,7 +2833,7 @@ class $T {
|
|
|
2833
2833
|
function Ji(c, t, n) {
|
|
2834
2834
|
return new $T(c, t, n);
|
|
2835
2835
|
}
|
|
2836
|
-
function
|
|
2836
|
+
function cm(c, t) {
|
|
2837
2837
|
let n = t.__key, e = c.offset, s = "element";
|
|
2838
2838
|
if (Jt(t)) {
|
|
2839
2839
|
s = "text";
|
|
@@ -2853,14 +2853,14 @@ function um(c, t) {
|
|
|
2853
2853
|
function zv(c, t) {
|
|
2854
2854
|
if (Ct(t)) {
|
|
2855
2855
|
const n = t.getLastDescendant();
|
|
2856
|
-
Ct(n) || Jt(n) ?
|
|
2856
|
+
Ct(n) || Jt(n) ? cm(c, n) : cm(c, t);
|
|
2857
2857
|
} else
|
|
2858
|
-
|
|
2858
|
+
cm(c, t);
|
|
2859
2859
|
}
|
|
2860
2860
|
function Fs(c, t, n, e) {
|
|
2861
2861
|
c.key = t, c.offset = n, c.type = e;
|
|
2862
2862
|
}
|
|
2863
|
-
class
|
|
2863
|
+
class Mh {
|
|
2864
2864
|
constructor(t) {
|
|
2865
2865
|
this._cachedNodes = null, this._nodes = t, this.dirty = !1;
|
|
2866
2866
|
}
|
|
@@ -2898,7 +2898,7 @@ class Rh {
|
|
|
2898
2898
|
return this._nodes.has(t);
|
|
2899
2899
|
}
|
|
2900
2900
|
clone() {
|
|
2901
|
-
return new
|
|
2901
|
+
return new Mh(new Set(this._nodes));
|
|
2902
2902
|
}
|
|
2903
2903
|
extract() {
|
|
2904
2904
|
return this.getNodes();
|
|
@@ -2983,7 +2983,7 @@ class rl {
|
|
|
2983
2983
|
const t = this.getNodes();
|
|
2984
2984
|
if (t.length === 0)
|
|
2985
2985
|
return "";
|
|
2986
|
-
const n = t[0], e = t[t.length - 1], s = this.anchor, o = this.focus, r = s.isBefore(o), [a, l] =
|
|
2986
|
+
const n = t[0], e = t[t.length - 1], s = this.anchor, o = this.focus, r = s.isBefore(o), [a, l] = ry(this);
|
|
2987
2987
|
let i = "", u = !0;
|
|
2988
2988
|
for (let d = 0; d < t.length; d++) {
|
|
2989
2989
|
const p = t[d];
|
|
@@ -3010,7 +3010,7 @@ class rl {
|
|
|
3010
3010
|
return new rl(Ji(t.key, t.offset, t.type), Ji(n.key, n.offset, n.type), this.format, this.style);
|
|
3011
3011
|
}
|
|
3012
3012
|
toggleFormat(t) {
|
|
3013
|
-
this.format =
|
|
3013
|
+
this.format = Wm(this.format, t, null), this.dirty = !0;
|
|
3014
3014
|
}
|
|
3015
3015
|
setStyle(t) {
|
|
3016
3016
|
this.style = t, this.dirty = !0;
|
|
@@ -3181,19 +3181,19 @@ class rl {
|
|
|
3181
3181
|
const h = At();
|
|
3182
3182
|
return Et(h) || fn(134), h.insertNodes(t);
|
|
3183
3183
|
}
|
|
3184
|
-
const n =
|
|
3184
|
+
const n = om((this.isBackward() ? this.focus : this.anchor).getNode(), Cc), e = t[t.length - 1];
|
|
3185
3185
|
if ("__language" in n && Ct(n)) {
|
|
3186
3186
|
if ("__language" in t[0])
|
|
3187
3187
|
this.insertText(t[0].getTextContent());
|
|
3188
3188
|
else {
|
|
3189
|
-
const h =
|
|
3189
|
+
const h = um(this);
|
|
3190
3190
|
n.splice(h, 0, t), e.selectEnd();
|
|
3191
3191
|
}
|
|
3192
3192
|
return;
|
|
3193
3193
|
}
|
|
3194
3194
|
if (!t.some((h) => (Ct(h) || Er(h)) && !h.isInline())) {
|
|
3195
3195
|
Ct(n) || fn(135);
|
|
3196
|
-
const h =
|
|
3196
|
+
const h = um(this);
|
|
3197
3197
|
return n.splice(h, 0, t), void e.selectEnd();
|
|
3198
3198
|
}
|
|
3199
3199
|
const s = function(h) {
|
|
@@ -3222,7 +3222,7 @@ class rl {
|
|
|
3222
3222
|
for (const E of _)
|
|
3223
3223
|
w = w.insertAfter(E);
|
|
3224
3224
|
}(n, u);
|
|
3225
|
-
const p =
|
|
3225
|
+
const p = om(o, Cc);
|
|
3226
3226
|
l && Ct(p) && (a(l) || Cc(i)) && (p.append(...l.getChildren()), l.remove()), Ct(n) && n.isEmpty() && n.remove(), o.selectEnd();
|
|
3227
3227
|
const f = Ct(n) ? n.getLastChild() : null;
|
|
3228
3228
|
Oa(f) && p !== n && f.remove();
|
|
@@ -3232,7 +3232,7 @@ class rl {
|
|
|
3232
3232
|
const r = Ln();
|
|
3233
3233
|
return Wn().splice(this.anchor.offset, 0, [r]), r.select(), r;
|
|
3234
3234
|
}
|
|
3235
|
-
const t =
|
|
3235
|
+
const t = um(this), n = om(this.anchor.getNode(), Cc);
|
|
3236
3236
|
Ct(n) || fn(136);
|
|
3237
3237
|
const e = n.getChildAtIndex(t), s = e ? [e, ...e.getNextSiblings()] : [], o = n.insertNewAfter(this, !1);
|
|
3238
3238
|
return o ? (o.append(...s), o.selectStart(), o) : null;
|
|
@@ -3247,7 +3247,7 @@ class rl {
|
|
|
3247
3247
|
extract() {
|
|
3248
3248
|
const t = this.getNodes(), n = t.length, e = n - 1, s = this.anchor, o = this.focus;
|
|
3249
3249
|
let r = t[0], a = t[e];
|
|
3250
|
-
const [l, i] =
|
|
3250
|
+
const [l, i] = ry(this);
|
|
3251
3251
|
if (n === 0)
|
|
3252
3252
|
return [];
|
|
3253
3253
|
if (n === 1) {
|
|
@@ -3398,7 +3398,7 @@ class rl {
|
|
|
3398
3398
|
}
|
|
3399
3399
|
}
|
|
3400
3400
|
function ro(c) {
|
|
3401
|
-
return c instanceof
|
|
3401
|
+
return c instanceof Mh;
|
|
3402
3402
|
}
|
|
3403
3403
|
function $v(c) {
|
|
3404
3404
|
const t = c.offset;
|
|
@@ -3407,7 +3407,7 @@ function $v(c) {
|
|
|
3407
3407
|
const n = c.getNode();
|
|
3408
3408
|
return t === n.getChildrenSize() ? n.getTextContent().length : 0;
|
|
3409
3409
|
}
|
|
3410
|
-
function
|
|
3410
|
+
function ry(c) {
|
|
3411
3411
|
const t = c.getStartEndPoints();
|
|
3412
3412
|
if (t === null)
|
|
3413
3413
|
return [0, 0];
|
|
@@ -3516,7 +3516,7 @@ function Cw(c, t, n, e, s, o) {
|
|
|
3516
3516
|
}
|
|
3517
3517
|
return Ew(r, a, o), [r, a];
|
|
3518
3518
|
}
|
|
3519
|
-
function
|
|
3519
|
+
function oy(c) {
|
|
3520
3520
|
return Ct(c) && !c.isInline();
|
|
3521
3521
|
}
|
|
3522
3522
|
function Tw(c, t, n, e, s, o) {
|
|
@@ -3528,16 +3528,16 @@ function Gd() {
|
|
|
3528
3528
|
return new rl(c, t, 0, "");
|
|
3529
3529
|
}
|
|
3530
3530
|
function Yp() {
|
|
3531
|
-
return new
|
|
3531
|
+
return new Mh(/* @__PURE__ */ new Set());
|
|
3532
3532
|
}
|
|
3533
3533
|
function UT(c, t) {
|
|
3534
|
-
return
|
|
3534
|
+
return Rh(null, c, t, null);
|
|
3535
3535
|
}
|
|
3536
|
-
function
|
|
3536
|
+
function Rh(c, t, n, e) {
|
|
3537
3537
|
const s = n._window;
|
|
3538
3538
|
if (s === null)
|
|
3539
3539
|
return null;
|
|
3540
|
-
const o = e || s.event, r = o ? o.type : void 0, a = r === "selectionchange", l = !
|
|
3540
|
+
const o = e || s.event, r = o ? o.type : void 0, a = r === "selectionchange", l = !qm && (a || r === "beforeinput" || r === "compositionstart" || r === "compositionend" || r === "click" && o && o.detail === 3 || r === "drop" || r === void 0);
|
|
3541
3541
|
let i, u, d, p;
|
|
3542
3542
|
if (Et(c) && !l)
|
|
3543
3543
|
return c.clone();
|
|
@@ -3652,7 +3652,7 @@ function HT(c, t, n, e, s, o, r) {
|
|
|
3652
3652
|
for (; q !== null; ) {
|
|
3653
3653
|
const W = q === B.body;
|
|
3654
3654
|
if (W)
|
|
3655
|
-
K = 0, R =
|
|
3655
|
+
K = 0, R = Ah(I).innerHeight;
|
|
3656
3656
|
else {
|
|
3657
3657
|
const Z = q.getBoundingClientRect();
|
|
3658
3658
|
K = Z.top, R = Z.bottom;
|
|
@@ -3669,19 +3669,19 @@ function HT(c, t, n, e, s, o, r) {
|
|
|
3669
3669
|
}
|
|
3670
3670
|
if (W)
|
|
3671
3671
|
break;
|
|
3672
|
-
q =
|
|
3672
|
+
q = Nh(q);
|
|
3673
3673
|
}
|
|
3674
3674
|
})(n, T, o);
|
|
3675
3675
|
}
|
|
3676
3676
|
}
|
|
3677
|
-
|
|
3677
|
+
ey = !0;
|
|
3678
3678
|
}
|
|
3679
3679
|
}
|
|
3680
3680
|
function ua(c) {
|
|
3681
3681
|
let t = At() || ol();
|
|
3682
3682
|
t === null && (t = Wn().selectEnd()), t.insertNodes(c);
|
|
3683
3683
|
}
|
|
3684
|
-
function
|
|
3684
|
+
function um(c) {
|
|
3685
3685
|
let t = c;
|
|
3686
3686
|
c.isCollapsed() || t.removeText();
|
|
3687
3687
|
const n = At();
|
|
@@ -3714,7 +3714,7 @@ function qT(c, t) {
|
|
|
3714
3714
|
}
|
|
3715
3715
|
return [n, c.getIndexWithinParent() + 1];
|
|
3716
3716
|
}
|
|
3717
|
-
let ko = null, Oo = null, mi = !1,
|
|
3717
|
+
let ko = null, Oo = null, mi = !1, dm = !1, mp = 0;
|
|
3718
3718
|
const Vv = { characterData: !0, childList: !0, subtree: !0 };
|
|
3719
3719
|
function cu() {
|
|
3720
3720
|
return mi || ko !== null && ko._readOnly;
|
|
@@ -3785,9 +3785,9 @@ function Al(c, t) {
|
|
|
3785
3785
|
const x = c._dirtyType, y = c._dirtyElements, S = c._dirtyLeaves;
|
|
3786
3786
|
f.disconnect(), h = IT(o, n, c, x, y, S);
|
|
3787
3787
|
} catch (x) {
|
|
3788
|
-
if (x instanceof Error && c._onError(x),
|
|
3788
|
+
if (x instanceof Error && c._onError(x), dm)
|
|
3789
3789
|
throw x;
|
|
3790
|
-
return jw(c, null, e, n), Yx(c), c._dirtyType = Yc,
|
|
3790
|
+
return jw(c, null, e, n), Yx(c), c._dirtyType = Yc, dm = !0, Al(c, o), void (dm = !1);
|
|
3791
3791
|
} finally {
|
|
3792
3792
|
f.observe(e, Vv), c._updating = p, ko = i, mi = u, Oo = d;
|
|
3793
3793
|
}
|
|
@@ -3901,13 +3901,13 @@ function Nw(c, t, n) {
|
|
|
3901
3901
|
n !== void 0 && (s = n.onUpdate, o = n.tag, o != null && e.add(o), r = n.skipTransforms || !1, a = n.discrete || !1), s && c._deferred.push(s);
|
|
3902
3902
|
const l = c._editorState;
|
|
3903
3903
|
let i = c._pendingEditorState, u = !1;
|
|
3904
|
-
(i === null || i._readOnly) && (i = c._pendingEditorState = new
|
|
3904
|
+
(i === null || i._readOnly) && (i = c._pendingEditorState = new Lh(new Map((i || l)._nodeMap)), u = !0), i._flushSync = a;
|
|
3905
3905
|
const d = ko, p = mi, f = Oo, h = c._updating;
|
|
3906
3906
|
ko = i, mi = !1, c._updating = !0, Oo = c;
|
|
3907
3907
|
try {
|
|
3908
3908
|
u && (c._headless ? l._selection !== null && (i._selection = l._selection.clone()) : i._selection = function(b) {
|
|
3909
3909
|
const _ = b.getEditorState()._selection, w = Pa(b._window);
|
|
3910
|
-
return Et(_) || _ == null ?
|
|
3910
|
+
return Et(_) || _ == null ? Rh(_, w, b, null) : _.clone();
|
|
3911
3911
|
}(c));
|
|
3912
3912
|
const g = c._compositionKey;
|
|
3913
3913
|
t(), r = Zv(c, r), function(b, _) {
|
|
@@ -3991,7 +3991,7 @@ function Nw(c, t, n) {
|
|
|
3991
3991
|
function Ai(c, t, n) {
|
|
3992
3992
|
c._updating ? c._updates.push([t, n]) : Nw(c, t, n);
|
|
3993
3993
|
}
|
|
3994
|
-
class so extends
|
|
3994
|
+
class so extends Ih {
|
|
3995
3995
|
constructor(t) {
|
|
3996
3996
|
super(t), this.__first = null, this.__last = null, this.__size = 0, this.__format = 0, this.__indent = 0, this.__dir = null;
|
|
3997
3997
|
}
|
|
@@ -4289,7 +4289,7 @@ function Qv(c, t, n) {
|
|
|
4289
4289
|
}
|
|
4290
4290
|
return !1;
|
|
4291
4291
|
}
|
|
4292
|
-
class ss extends
|
|
4292
|
+
class ss extends Ih {
|
|
4293
4293
|
constructor(t) {
|
|
4294
4294
|
super(t);
|
|
4295
4295
|
}
|
|
@@ -4363,7 +4363,7 @@ function Vo(c) {
|
|
|
4363
4363
|
return c instanceof uu;
|
|
4364
4364
|
}
|
|
4365
4365
|
function g0() {
|
|
4366
|
-
return new
|
|
4366
|
+
return new Lh(/* @__PURE__ */ new Map([["root", new uu()]]));
|
|
4367
4367
|
}
|
|
4368
4368
|
function Aw(c) {
|
|
4369
4369
|
const t = c.exportJSON(), n = c.constructor;
|
|
@@ -4378,7 +4378,7 @@ function Aw(c) {
|
|
|
4378
4378
|
}
|
|
4379
4379
|
return t;
|
|
4380
4380
|
}
|
|
4381
|
-
class
|
|
4381
|
+
class Lh {
|
|
4382
4382
|
constructor(t, n) {
|
|
4383
4383
|
this._nodeMap = t, this._selection = n || null, this._flushSync = !1, this._readOnly = !1;
|
|
4384
4384
|
}
|
|
@@ -4389,7 +4389,7 @@ class Dh {
|
|
|
4389
4389
|
return Yv(this, t);
|
|
4390
4390
|
}
|
|
4391
4391
|
clone(t) {
|
|
4392
|
-
const n = new
|
|
4392
|
+
const n = new Lh(this._nodeMap, t === void 0 ? this._selection : t);
|
|
4393
4393
|
return n._readOnly = !0, n;
|
|
4394
4394
|
}
|
|
4395
4395
|
toJSON() {
|
|
@@ -4494,7 +4494,7 @@ function jw(c, t, n, e) {
|
|
|
4494
4494
|
const o = c._observer;
|
|
4495
4495
|
o !== null && (o.disconnect(), c._observer = null), t !== null && (t.textContent = ""), n !== null && (n.textContent = "", s.set("root", n));
|
|
4496
4496
|
}
|
|
4497
|
-
function
|
|
4497
|
+
function Dh(c) {
|
|
4498
4498
|
const t = c || {}, n = WT(), e = t.theme || {}, s = c === void 0 ? n : t.parentEditor || null, o = t.disableEvents || !1, r = g0(), a = t.namespace || (s !== null ? s._config.namespace : rw()), l = t.editorState, i = [uu, oo, su, Kd, il, m0, ...t.nodes || []], { onError: u, html: d } = t, p = t.editable === void 0 || t.editable;
|
|
4499
4499
|
let f;
|
|
4500
4500
|
if (c === void 0 && n !== null)
|
|
@@ -4643,8 +4643,8 @@ class GT {
|
|
|
4643
4643
|
const i = a.ownerDocument, u = Gp.get(i);
|
|
4644
4644
|
(u === void 0 || u < 1) && i.addEventListener("selectionchange", xw), Gp.set(i, (u || 0) + 1), a.__lexicalEditor = l;
|
|
4645
4645
|
const d = _w(a);
|
|
4646
|
-
for (let p = 0; p <
|
|
4647
|
-
const [f, h] =
|
|
4646
|
+
for (let p = 0; p < Xm.length; p++) {
|
|
4647
|
+
const [f, h] = Xm[p], m = typeof h == "function" ? (g) => {
|
|
4648
4648
|
Rv(g) || (Mv(g), (l.isEditable() || f === "click") && h(g, l));
|
|
4649
4649
|
} : (g) => {
|
|
4650
4650
|
if (Rv(g))
|
|
@@ -4659,7 +4659,7 @@ class GT {
|
|
|
4659
4659
|
case "paste":
|
|
4660
4660
|
return v && bn(l, Xs, g);
|
|
4661
4661
|
case "dragstart":
|
|
4662
|
-
return v && bn(l,
|
|
4662
|
+
return v && bn(l, Eh, g);
|
|
4663
4663
|
case "dragover":
|
|
4664
4664
|
return v && bn(l, Jy, g);
|
|
4665
4665
|
case "dragend":
|
|
@@ -4669,7 +4669,7 @@ class GT {
|
|
|
4669
4669
|
case "blur":
|
|
4670
4670
|
return v && bn(l, Q2, g);
|
|
4671
4671
|
case "drop":
|
|
4672
|
-
return v && bn(l,
|
|
4672
|
+
return v && bn(l, Sh, g);
|
|
4673
4673
|
}
|
|
4674
4674
|
};
|
|
4675
4675
|
a.addEventListener(f, m), d.push(() => {
|
|
@@ -4737,12 +4737,12 @@ class GT {
|
|
|
4737
4737
|
}
|
|
4738
4738
|
}
|
|
4739
4739
|
const Pw = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, YT = Pw ? as : Wt, Gf = { tag: "history-merge" };
|
|
4740
|
-
function
|
|
4740
|
+
function Fh({ initialConfig: c, children: t }) {
|
|
4741
4741
|
const n = Rr(() => {
|
|
4742
4742
|
const { theme: e, namespace: s, editor__DEPRECATED: o, nodes: r, onError: a, editorState: l, html: i } = c, u = W2(null, e);
|
|
4743
4743
|
let d = o || null;
|
|
4744
4744
|
if (d === null) {
|
|
4745
|
-
const p =
|
|
4745
|
+
const p = Dh({ editable: c.editable, html: i, namespace: s, nodes: r, onError: (f) => a(f, p), theme: e });
|
|
4746
4746
|
(function(f, h) {
|
|
4747
4747
|
if (h !== null) {
|
|
4748
4748
|
if (h === void 0)
|
|
@@ -4864,7 +4864,7 @@ function Fw(c, t) {
|
|
|
4864
4864
|
if (t.isSelected(c) && !t.isSegmented() && !t.isToken() && n !== null) {
|
|
4865
4865
|
const [e, s] = n, o = c.isBackward(), r = e.getNode(), a = s.getNode(), l = t.is(r), i = t.is(a);
|
|
4866
4866
|
if (l || i) {
|
|
4867
|
-
const [u, d] =
|
|
4867
|
+
const [u, d] = ry(c), p = r.is(a), f = t.is(o ? a : r), h = t.is(o ? r : a);
|
|
4868
4868
|
let m, g = 0;
|
|
4869
4869
|
return p ? (g = u > d ? d : u, m = u > d ? u : d) : f ? (g = o ? d : u, m = void 0) : h && (g = 0, m = o ? u : d), t.__text = t.__text.slice(g, m), t;
|
|
4870
4870
|
}
|
|
@@ -4949,11 +4949,11 @@ function ek(c, t, n = null) {
|
|
|
4949
4949
|
let a = null, l = [];
|
|
4950
4950
|
for (let i = 0; i < r; i++) {
|
|
4951
4951
|
const u = o[i];
|
|
4952
|
-
ao(u) ? (
|
|
4952
|
+
ao(u) ? (fm(c, l, l.length, t, n), l = [], a = u) : a === null || a !== null && Wp(u, a) ? l.push(u) : (fm(c, l, l.length, t, n), l = [u]);
|
|
4953
4953
|
}
|
|
4954
|
-
|
|
4954
|
+
fm(c, l, l.length, t, n);
|
|
4955
4955
|
}
|
|
4956
|
-
function
|
|
4956
|
+
function fm(c, t, n, e, s = null) {
|
|
4957
4957
|
if (t.length === 0)
|
|
4958
4958
|
return;
|
|
4959
4959
|
const o = t[0], r = /* @__PURE__ */ new Map(), a = [];
|
|
@@ -5211,7 +5211,7 @@ function El(c) {
|
|
|
5211
5211
|
}
|
|
5212
5212
|
return c.getLatest();
|
|
5213
5213
|
}
|
|
5214
|
-
function
|
|
5214
|
+
function iy(c, t) {
|
|
5215
5215
|
const n = t();
|
|
5216
5216
|
return c.replace(n), n.append(c), n;
|
|
5217
5217
|
}
|
|
@@ -5222,7 +5222,7 @@ function r1(c, t) {
|
|
|
5222
5222
|
const n = c.getFirstChild();
|
|
5223
5223
|
n !== null ? n.insertBefore(t) : c.append(t);
|
|
5224
5224
|
}
|
|
5225
|
-
const Yf = 0,
|
|
5225
|
+
const Yf = 0, ay = 1, sy = 2, ra = 0, sk = 1, o1 = 2, lk = 3, ck = 4;
|
|
5226
5226
|
function uk(c, t, n, e, s) {
|
|
5227
5227
|
if (c === null || n.size === 0 && e.size === 0 && !s)
|
|
5228
5228
|
return ra;
|
|
@@ -5268,19 +5268,19 @@ function dk(c, t) {
|
|
|
5268
5268
|
return (s, o, r, a, l, i) => {
|
|
5269
5269
|
const u = Date.now();
|
|
5270
5270
|
if (i.has("historic"))
|
|
5271
|
-
return e = ra, n = u,
|
|
5271
|
+
return e = ra, n = u, sy;
|
|
5272
5272
|
const d = uk(s, o, a, l, c.isComposing()), p = (() => {
|
|
5273
5273
|
const f = r === null || r.editor === c, h = i.has("history-push");
|
|
5274
5274
|
if (!h && f && i.has("history-merge"))
|
|
5275
5275
|
return Yf;
|
|
5276
5276
|
if (s === null)
|
|
5277
|
-
return
|
|
5277
|
+
return ay;
|
|
5278
5278
|
const m = o._selection;
|
|
5279
5279
|
return a.size > 0 || l.size > 0 ? h === !1 && d !== ra && d === e && u < n + t && f || a.size === 1 && function(g, v, b) {
|
|
5280
5280
|
const _ = v._nodeMap.get(g), w = b._nodeMap.get(g), E = v._selection, x = b._selection;
|
|
5281
5281
|
let y = !1;
|
|
5282
5282
|
return Et(E) && Et(x) && (y = E.anchor.type === "element" && E.focus.type === "element" && x.anchor.type === "text" && x.focus.type === "text"), !(y || !Jt(_) || !Jt(w)) && _.__type === w.__type && _.__text === w.__text && _.__mode === w.__mode && _.__detail === w.__detail && _.__style === w.__style && _.__format === w.__format && _.__parent === w.__parent;
|
|
5283
|
-
}(Array.from(a)[0], s, o) ? Yf :
|
|
5283
|
+
}(Array.from(a)[0], s, o) ? Yf : ay : m !== null ? Yf : sy;
|
|
5284
5284
|
})();
|
|
5285
5285
|
return n = u, e = d, p;
|
|
5286
5286
|
};
|
|
@@ -5304,14 +5304,14 @@ function fk(c, t, n) {
|
|
|
5304
5304
|
const u = a.pop();
|
|
5305
5305
|
a.length === 0 && o.dispatchCommand(zc, !1), r.current = u || null, u && u.editor.setEditorState(u.editorState, { tag: "historic" });
|
|
5306
5306
|
}
|
|
5307
|
-
}(c, t), !0), Nn), c.registerCommand(
|
|
5307
|
+
}(c, t), !0), Nn), c.registerCommand(Ch, () => (i1(t), !1), Nn), c.registerCommand(Z2, () => (i1(t), c.dispatchCommand(zc, !1), c.dispatchCommand($c, !1), !0), Nn), c.registerUpdateListener(({ editorState: o, prevEditorState: r, dirtyLeaves: a, dirtyElements: l, tags: i }) => {
|
|
5308
5308
|
const u = t.current, d = t.redoStack, p = t.undoStack, f = u === null ? null : u.editorState;
|
|
5309
5309
|
if (u !== null && o === f)
|
|
5310
5310
|
return;
|
|
5311
5311
|
const h = e(r, o, u, a, l, i);
|
|
5312
|
-
if (h ===
|
|
5312
|
+
if (h === ay)
|
|
5313
5313
|
d.length !== 0 && (t.redoStack = [], c.dispatchCommand(zc, !1)), u !== null && (p.push({ ...u }), c.dispatchCommand($c, !0));
|
|
5314
|
-
else if (h ===
|
|
5314
|
+
else if (h === sy)
|
|
5315
5315
|
return;
|
|
5316
5316
|
t.current = { editor: c, editorState: o };
|
|
5317
5317
|
}));
|
|
@@ -5319,14 +5319,14 @@ function fk(c, t, n) {
|
|
|
5319
5319
|
function Ww() {
|
|
5320
5320
|
return { current: null, redoStack: [], undoStack: [] };
|
|
5321
5321
|
}
|
|
5322
|
-
function
|
|
5322
|
+
function Bh({ externalHistoryState: c }) {
|
|
5323
5323
|
const [t] = In();
|
|
5324
5324
|
return function(n, e, s = 1e3) {
|
|
5325
5325
|
const o = Rr(() => e || Ww(), [e]);
|
|
5326
5326
|
Wt(() => fk(n, o, s), [s, n, o]);
|
|
5327
5327
|
}(t, c), null;
|
|
5328
5328
|
}
|
|
5329
|
-
const Jw =
|
|
5329
|
+
const Jw = yh({}), Vw = ({
|
|
5330
5330
|
children: c
|
|
5331
5331
|
}) => {
|
|
5332
5332
|
const t = Rr(
|
|
@@ -7951,12 +7951,12 @@ let _0 = class Yw extends so {
|
|
|
7951
7951
|
return e && (n.setAttribute(id, e), this.getIsSyntaxHighlightSupported() && n.setAttribute(Zf, e)), { element: n };
|
|
7952
7952
|
}
|
|
7953
7953
|
static importDOM() {
|
|
7954
|
-
return { code: (t) => t.textContent != null && (/\r?\n/.test(t.textContent) || Gw(t, "BR")) ? { conversion: s1, priority: 1 } : null, div: () => ({ conversion: gk, priority: 1 }), pre: () => ({ conversion: s1, priority: 0 }), table: (t) =>
|
|
7954
|
+
return { code: (t) => t.textContent != null && (/\r?\n/.test(t.textContent) || Gw(t, "BR")) ? { conversion: s1, priority: 1 } : null, div: () => ({ conversion: gk, priority: 1 }), pre: () => ({ conversion: s1, priority: 0 }), table: (t) => pm(t) ? { conversion: mk, priority: 3 } : null, td: (t) => {
|
|
7955
7955
|
const n = t, e = n.closest("table");
|
|
7956
|
-
return n.classList.contains("js-file-line") || e &&
|
|
7956
|
+
return n.classList.contains("js-file-line") || e && pm(e) ? { conversion: l1, priority: 3 } : null;
|
|
7957
7957
|
}, tr: (t) => {
|
|
7958
7958
|
const n = t.closest("table");
|
|
7959
|
-
return n &&
|
|
7959
|
+
return n && pm(n) ? { conversion: l1, priority: 3 } : null;
|
|
7960
7960
|
} };
|
|
7961
7961
|
}
|
|
7962
7962
|
static importJSON(t) {
|
|
@@ -8000,7 +8000,7 @@ let _0 = class Yw extends so {
|
|
|
8000
8000
|
const m = i[i.length - 1];
|
|
8001
8001
|
m ? m.select() : o.offset === 0 ? u.selectPrevious() : u.getNextSibling().selectNext(0, 0);
|
|
8002
8002
|
}
|
|
8003
|
-
if (
|
|
8003
|
+
if (ly(a)) {
|
|
8004
8004
|
const { offset: l } = t.anchor;
|
|
8005
8005
|
a.splice(l, 0, [Mi()]), a.select(l + 1, l + 1);
|
|
8006
8006
|
}
|
|
@@ -8027,7 +8027,7 @@ let _0 = class Yw extends so {
|
|
|
8027
8027
|
function Yd(c) {
|
|
8028
8028
|
return Kr(new _0(c));
|
|
8029
8029
|
}
|
|
8030
|
-
function
|
|
8030
|
+
function ly(c) {
|
|
8031
8031
|
return c instanceof _0;
|
|
8032
8032
|
}
|
|
8033
8033
|
function s1(c) {
|
|
@@ -8054,7 +8054,7 @@ function l1() {
|
|
|
8054
8054
|
function c1(c) {
|
|
8055
8055
|
return c.style.fontFamily.match("monospace") !== null;
|
|
8056
8056
|
}
|
|
8057
|
-
function
|
|
8057
|
+
function pm(c) {
|
|
8058
8058
|
return c.classList.contains("js-file-line-container");
|
|
8059
8059
|
}
|
|
8060
8060
|
const Zw = { c: "C", clike: "C-like", cpp: "C++", css: "CSS", html: "HTML", java: "Java", js: "JavaScript", markdown: "Markdown", objc: "Objective-C", plain: "Plain Text", powershell: "PowerShell", py: "Python", rust: "Rust", sql: "SQL", swift: "Swift", typescript: "TypeScript", xml: "XML" }, Qw = { cpp: "cpp", java: "java", javascript: "js", md: "markdown", plaintext: "plain", python: "py", text: "plain", ts: "typescript" };
|
|
@@ -8082,11 +8082,11 @@ class Zd extends oo {
|
|
|
8082
8082
|
return !1;
|
|
8083
8083
|
}
|
|
8084
8084
|
createDOM(t) {
|
|
8085
|
-
const n = super.createDOM(t), e =
|
|
8085
|
+
const n = super.createDOM(t), e = hm(t.theme, this.__highlightType);
|
|
8086
8086
|
return io(n, e), n;
|
|
8087
8087
|
}
|
|
8088
8088
|
updateDOM(t, n, e) {
|
|
8089
|
-
const s = super.updateDOM(t, n, e), o =
|
|
8089
|
+
const s = super.updateDOM(t, n, e), o = hm(e.theme, t.__highlightType), r = hm(e.theme, this.__highlightType);
|
|
8090
8090
|
return o !== r && (o && du(n, o), r && io(n, r)), s;
|
|
8091
8091
|
}
|
|
8092
8092
|
static importJSON(t) {
|
|
@@ -8106,7 +8106,7 @@ class Zd extends oo {
|
|
|
8106
8106
|
return Yd();
|
|
8107
8107
|
}
|
|
8108
8108
|
}
|
|
8109
|
-
function
|
|
8109
|
+
function hm(c, t) {
|
|
8110
8110
|
return t && c && c.codeHighlight && c.codeHighlight[t];
|
|
8111
8111
|
}
|
|
8112
8112
|
function Xw(c, t) {
|
|
@@ -8281,7 +8281,7 @@ let Qd = class oS extends fu {
|
|
|
8281
8281
|
return super.updateDOM(t, n, e) || t.__isUnlinked !== this.__isUnlinked;
|
|
8282
8282
|
}
|
|
8283
8283
|
static importJSON(t) {
|
|
8284
|
-
const n =
|
|
8284
|
+
const n = cy(t.url, { isUnlinked: t.isUnlinked, rel: t.rel, target: t.target, title: t.title });
|
|
8285
8285
|
return n.setFormat(t.format), n.setIndent(t.indent), n.setDirection(t.direction), n;
|
|
8286
8286
|
}
|
|
8287
8287
|
static importDOM() {
|
|
@@ -8293,20 +8293,20 @@ let Qd = class oS extends fu {
|
|
|
8293
8293
|
insertNewAfter(t, n = !0) {
|
|
8294
8294
|
const e = this.getParentOrThrow().insertNewAfter(t, n);
|
|
8295
8295
|
if (Ct(e)) {
|
|
8296
|
-
const s =
|
|
8296
|
+
const s = cy(this.__url, { isUnlinked: this.__isUnlinked, rel: this.__rel, target: this.__target, title: this.__title });
|
|
8297
8297
|
return e.append(s), s;
|
|
8298
8298
|
}
|
|
8299
8299
|
return null;
|
|
8300
8300
|
}
|
|
8301
8301
|
};
|
|
8302
|
-
function
|
|
8302
|
+
function cy(c, t) {
|
|
8303
8303
|
return Kr(new Qd(c, t));
|
|
8304
8304
|
}
|
|
8305
8305
|
function kc(c) {
|
|
8306
8306
|
return c instanceof Qd;
|
|
8307
8307
|
}
|
|
8308
8308
|
const Jc = Ao();
|
|
8309
|
-
function
|
|
8309
|
+
function gm(c, t = {}) {
|
|
8310
8310
|
const { target: n, title: e } = t, s = t.rel === void 0 ? "noreferrer" : t.rel, o = At();
|
|
8311
8311
|
if (!Et(o))
|
|
8312
8312
|
return;
|
|
@@ -8363,7 +8363,7 @@ var Xa = wk(function(c) {
|
|
|
8363
8363
|
t.append("v", arguments[n]);
|
|
8364
8364
|
throw Error(`Minified Lexical error #${c}; visit https://lexical.dev/docs/error?${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`);
|
|
8365
8365
|
});
|
|
8366
|
-
function
|
|
8366
|
+
function uy(c) {
|
|
8367
8367
|
let t = 1, n = c.getParent();
|
|
8368
8368
|
for (; n != null; ) {
|
|
8369
8369
|
if (Wr(n)) {
|
|
@@ -8378,7 +8378,7 @@ function dy(c) {
|
|
|
8378
8378
|
}
|
|
8379
8379
|
return t;
|
|
8380
8380
|
}
|
|
8381
|
-
function
|
|
8381
|
+
function dy(c) {
|
|
8382
8382
|
let t = c.getParent();
|
|
8383
8383
|
ur(t) || Xa(40);
|
|
8384
8384
|
let n = t;
|
|
@@ -8485,13 +8485,13 @@ function Sk(c) {
|
|
|
8485
8485
|
if (Et(t)) {
|
|
8486
8486
|
const n = /* @__PURE__ */ new Set(), e = t.getNodes(), s = t.anchor.getNode();
|
|
8487
8487
|
if (aS(s, e))
|
|
8488
|
-
n.add(
|
|
8488
|
+
n.add(dy(s));
|
|
8489
8489
|
else
|
|
8490
8490
|
for (let o = 0; o < e.length; o++) {
|
|
8491
8491
|
const r = e[o];
|
|
8492
8492
|
if (a0(r)) {
|
|
8493
8493
|
const a = Hw(r, Xd);
|
|
8494
|
-
a != null && n.add(
|
|
8494
|
+
a != null && n.add(dy(a));
|
|
8495
8495
|
}
|
|
8496
8496
|
}
|
|
8497
8497
|
for (const o of n) {
|
|
@@ -8557,7 +8557,7 @@ function Tk() {
|
|
|
8557
8557
|
const t = c.anchor.getNode();
|
|
8558
8558
|
if (!Wr(t) || t.getChildrenSize() !== 0)
|
|
8559
8559
|
return !1;
|
|
8560
|
-
const n =
|
|
8560
|
+
const n = dy(t), e = t.getParent();
|
|
8561
8561
|
ur(e) || Xa(40);
|
|
8562
8562
|
const s = e.getParent();
|
|
8563
8563
|
let o;
|
|
@@ -8890,7 +8890,7 @@ let ef = class lS extends so {
|
|
|
8890
8890
|
function g1(c, t, n) {
|
|
8891
8891
|
const e = [], s = [], o = t.list;
|
|
8892
8892
|
if (o !== void 0) {
|
|
8893
|
-
const r = o[`${n.__tag}Depth`] || [], a =
|
|
8893
|
+
const r = o[`${n.__tag}Depth`] || [], a = uy(n) - 1, l = a % r.length, i = r[l], u = o[n.__tag];
|
|
8894
8894
|
let d;
|
|
8895
8895
|
const p = o.nested, f = o.checklist;
|
|
8896
8896
|
if (p !== void 0 && p.list && (d = p.list), u !== void 0 && e.push(u), f !== void 0 && n.__listType === "check" && e.push(f), i !== void 0) {
|
|
@@ -9301,7 +9301,7 @@ function SS(c, t, n, e, s = /* @__PURE__ */ new Map(), o) {
|
|
|
9301
9301
|
}
|
|
9302
9302
|
const d = c.childNodes;
|
|
9303
9303
|
let p = [];
|
|
9304
|
-
const f = (a == null || !ao(a)) && (a != null &&
|
|
9304
|
+
const f = (a == null || !ao(a)) && (a != null && oy(a) || e);
|
|
9305
9305
|
for (let h = 0; h < d.length; h++)
|
|
9306
9306
|
p.push(...SS(d[h], t, n, f, new Map(s), a));
|
|
9307
9307
|
return u != null && (p = u(p)), NT(c) && (p = Mk(c, p, f ? () => {
|
|
@@ -9314,9 +9314,9 @@ function Mk(c, t, n) {
|
|
|
9314
9314
|
let o = [];
|
|
9315
9315
|
for (let r = 0; r < t.length; r++) {
|
|
9316
9316
|
const a = t[r];
|
|
9317
|
-
if (
|
|
9317
|
+
if (oy(a))
|
|
9318
9318
|
e && !a.getFormat() && a.setFormat(e), s.push(a);
|
|
9319
|
-
else if (o.push(a), r === t.length - 1 || r < t.length - 1 &&
|
|
9319
|
+
else if (o.push(a), r === t.length - 1 || r < t.length - 1 && oy(t[r + 1])) {
|
|
9320
9320
|
const l = n();
|
|
9321
9321
|
l.setFormat(e), l.append(...o), s.push(l), o = [];
|
|
9322
9322
|
}
|
|
@@ -9478,7 +9478,7 @@ function E1(c, t) {
|
|
|
9478
9478
|
}
|
|
9479
9479
|
return null;
|
|
9480
9480
|
}
|
|
9481
|
-
const pu = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, zk = pu && "documentMode" in document ? document.documentMode : null, $k = !(!pu || !("InputEvent" in window) || zk) && "getTargetRanges" in new window.InputEvent("input"), Uk = pu && /Version\/[\d.]+.*Safari/.test(navigator.userAgent), Hk = pu && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, qk = pu && /^(?=.*Chrome).*/i.test(navigator.userAgent), Wk = pu && /AppleWebKit\/[\d.]+/.test(navigator.userAgent) && !qk,
|
|
9481
|
+
const pu = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, zk = pu && "documentMode" in document ? document.documentMode : null, $k = !(!pu || !("InputEvent" in window) || zk) && "getTargetRanges" in new window.InputEvent("input"), Uk = pu && /Version\/[\d.]+.*Safari/.test(navigator.userAgent), Hk = pu && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, qk = pu && /^(?=.*Chrome).*/i.test(navigator.userAgent), Wk = pu && /AppleWebKit\/[\d.]+/.test(navigator.userAgent) && !qk, fy = Ao();
|
|
9482
9482
|
class tf extends so {
|
|
9483
9483
|
static getType() {
|
|
9484
9484
|
return "quote";
|
|
@@ -9728,7 +9728,7 @@ function Kk(c) {
|
|
|
9728
9728
|
return e.selectNext(), t.preventDefault(), !0;
|
|
9729
9729
|
}
|
|
9730
9730
|
return !1;
|
|
9731
|
-
}, Nn), c.registerCommand(
|
|
9731
|
+
}, Nn), c.registerCommand(xh, (t) => {
|
|
9732
9732
|
const n = At();
|
|
9733
9733
|
if (ro(n)) {
|
|
9734
9734
|
const e = n.getNodes();
|
|
@@ -9742,7 +9742,7 @@ function Kk(c) {
|
|
|
9742
9742
|
return t.preventDefault(), th(n, e, !0), !0;
|
|
9743
9743
|
}
|
|
9744
9744
|
return !1;
|
|
9745
|
-
}, Nn), c.registerCommand(
|
|
9745
|
+
}, Nn), c.registerCommand(_h, (t) => {
|
|
9746
9746
|
const n = At();
|
|
9747
9747
|
if (ro(n) && !Xf(t.target)) {
|
|
9748
9748
|
const s = n.getNodes();
|
|
@@ -9781,7 +9781,7 @@ function Kk(c) {
|
|
|
9781
9781
|
}, Nn), c.registerCommand(Jl, () => {
|
|
9782
9782
|
const t = At();
|
|
9783
9783
|
return !!Et(t) && (c.blur(), !0);
|
|
9784
|
-
}, Nn), c.registerCommand(
|
|
9784
|
+
}, Nn), c.registerCommand(Sh, (t) => {
|
|
9785
9785
|
const [, n] = Qf(t);
|
|
9786
9786
|
if (n.length > 0) {
|
|
9787
9787
|
const s = E1(t.clientX, t.clientY);
|
|
@@ -9798,13 +9798,13 @@ function Kk(c) {
|
|
|
9798
9798
|
const i = o0(l);
|
|
9799
9799
|
$r(i);
|
|
9800
9800
|
}
|
|
9801
|
-
c.dispatchCommand(
|
|
9801
|
+
c.dispatchCommand(fy, n);
|
|
9802
9802
|
}
|
|
9803
9803
|
return t.preventDefault(), !0;
|
|
9804
9804
|
}
|
|
9805
9805
|
const e = At();
|
|
9806
9806
|
return !!Et(e);
|
|
9807
|
-
}, Nn), c.registerCommand(
|
|
9807
|
+
}, Nn), c.registerCommand(Eh, (t) => {
|
|
9808
9808
|
const [n] = Qf(t), e = At();
|
|
9809
9809
|
return !(n && !Et(e));
|
|
9810
9810
|
}, Nn), c.registerCommand(Jy, (t) => {
|
|
@@ -9824,7 +9824,7 @@ function Kk(c) {
|
|
|
9824
9824
|
});
|
|
9825
9825
|
}(t, c), !0), Nn), c.registerCommand(Xs, (t) => {
|
|
9826
9826
|
const [, n, e] = Qf(t);
|
|
9827
|
-
return n.length > 0 && !e ? (c.dispatchCommand(
|
|
9827
|
+
return n.length > 0 && !e ? (c.dispatchCommand(fy, n), !0) : i0(t.target) ? !1 : At() !== null && (function(s, o) {
|
|
9828
9828
|
s.preventDefault(), o.update(() => {
|
|
9829
9829
|
const r = At(), a = Qa(s, InputEvent) || Qa(s, KeyboardEvent) ? null : s.clipboardData;
|
|
9830
9830
|
a != null && r !== null && _1(a, r, o);
|
|
@@ -10017,7 +10017,7 @@ var ar = Zk(function(c) {
|
|
|
10017
10017
|
});
|
|
10018
10018
|
const Qk = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
|
|
10019
10019
|
function NS(c, t, n = !0) {
|
|
10020
|
-
const e =
|
|
10020
|
+
const e = $h();
|
|
10021
10021
|
for (let s = 0; s < c; s++) {
|
|
10022
10022
|
const o = $l();
|
|
10023
10023
|
for (let r = 0; r < t; r++) {
|
|
@@ -10053,7 +10053,7 @@ function jS(c) {
|
|
|
10053
10053
|
function C0(c) {
|
|
10054
10054
|
return AS(c).getChildren().findIndex((t) => t.is(c));
|
|
10055
10055
|
}
|
|
10056
|
-
const
|
|
10056
|
+
const py = (c, t) => c === zr.BOTH || c === t ? t : zr.NO_STATUS;
|
|
10057
10057
|
function eO(c = !0) {
|
|
10058
10058
|
const t = At();
|
|
10059
10059
|
Et(t) || fr(t) || ar(118);
|
|
@@ -10063,7 +10063,7 @@ function eO(c = !0) {
|
|
|
10063
10063
|
for (let f = 0; f < a; f++) {
|
|
10064
10064
|
const { cell: h, startRow: m } = u[f];
|
|
10065
10065
|
if (m + h.__rowSpan - 1 <= i) {
|
|
10066
|
-
const g = u[f].cell.__headerState, v =
|
|
10066
|
+
const g = u[f].cell.__headerState, v = py(g, zr.COLUMN);
|
|
10067
10067
|
d.append(Ii(v).append(Ln()));
|
|
10068
10068
|
} else
|
|
10069
10069
|
h.setRowSpan(h.__rowSpan + 1);
|
|
@@ -10075,7 +10075,7 @@ function eO(c = !0) {
|
|
|
10075
10075
|
for (let p = 0; p < a; p++) {
|
|
10076
10076
|
const { cell: f, startRow: h } = i[p];
|
|
10077
10077
|
if (h === l) {
|
|
10078
|
-
const m = i[p].cell.__headerState, g =
|
|
10078
|
+
const m = i[p].cell.__headerState, g = py(m, zr.COLUMN);
|
|
10079
10079
|
u.append(Ii(g).append(Ln()));
|
|
10080
10080
|
} else
|
|
10081
10081
|
f.setRowSpan(f.__rowSpan + 1);
|
|
@@ -10101,7 +10101,7 @@ function tO(c = !0) {
|
|
|
10101
10101
|
const S = g.getNextSibling();
|
|
10102
10102
|
Mr(S) || ar(121), g = S;
|
|
10103
10103
|
}
|
|
10104
|
-
const b = a[v], _ = b[p < 0 ? 0 : p].cell.__headerState, w =
|
|
10104
|
+
const b = a[v], _ = b[p < 0 ? 0 : p].cell.__headerState, w = py(_, zr.ROW);
|
|
10105
10105
|
if (p < 0) {
|
|
10106
10106
|
T0(g, m(w));
|
|
10107
10107
|
continue;
|
|
@@ -10294,7 +10294,7 @@ function O1(c) {
|
|
|
10294
10294
|
}
|
|
10295
10295
|
return null;
|
|
10296
10296
|
}
|
|
10297
|
-
class
|
|
10297
|
+
class zh {
|
|
10298
10298
|
constructor(t, n, e) {
|
|
10299
10299
|
this.anchor = n, this.focus = e, n._selection = this, e._selection = this, this._cachedNodes = null, this.dirty = !1, this.tableKey = t;
|
|
10300
10300
|
}
|
|
@@ -10317,7 +10317,7 @@ class $h {
|
|
|
10317
10317
|
this.dirty = !0, this.tableKey = t, this.anchor.key = n, this.focus.key = e, this._cachedNodes = null;
|
|
10318
10318
|
}
|
|
10319
10319
|
clone() {
|
|
10320
|
-
return new
|
|
10320
|
+
return new zh(this.tableKey, this.anchor, this.focus);
|
|
10321
10321
|
}
|
|
10322
10322
|
isCollapsed() {
|
|
10323
10323
|
return !1;
|
|
@@ -10416,11 +10416,11 @@ class $h {
|
|
|
10416
10416
|
}
|
|
10417
10417
|
}
|
|
10418
10418
|
function fr(c) {
|
|
10419
|
-
return c instanceof
|
|
10419
|
+
return c instanceof zh;
|
|
10420
10420
|
}
|
|
10421
10421
|
function sh() {
|
|
10422
10422
|
const c = Ji("root", 0, "element"), t = Ji("root", 0, "element");
|
|
10423
|
-
return new
|
|
10423
|
+
return new zh("root", c, t);
|
|
10424
10424
|
}
|
|
10425
10425
|
function iO(c) {
|
|
10426
10426
|
const t = [], n = [c];
|
|
@@ -10585,7 +10585,7 @@ function sO(c, t, n, e) {
|
|
|
10585
10585
|
setTimeout(() => {
|
|
10586
10586
|
if (1 & ~f.buttons && o.isSelecting)
|
|
10587
10587
|
return o.isSelecting = !1, r.removeEventListener("mouseup", d), void r.removeEventListener("mousemove", p);
|
|
10588
|
-
const h =
|
|
10588
|
+
const h = hy(f.target);
|
|
10589
10589
|
h === null || o.anchorX === h.x && o.anchorY === h.y || (f.preventDefault(), o.setFocusCellForSelection(h));
|
|
10590
10590
|
}, 0);
|
|
10591
10591
|
};
|
|
@@ -10595,7 +10595,7 @@ function sO(c, t, n, e) {
|
|
|
10595
10595
|
setTimeout(() => {
|
|
10596
10596
|
if (d.button !== 0 || !r)
|
|
10597
10597
|
return;
|
|
10598
|
-
const p =
|
|
10598
|
+
const p = hy(d.target);
|
|
10599
10599
|
p !== null && (Ol(d), o.setAnchorCellForSelection(p));
|
|
10600
10600
|
const { onMouseUp: f, onMouseMove: h } = a();
|
|
10601
10601
|
o.isSelecting = !0, r.addEventListener("mouseup", f), r.addEventListener("mousemove", h);
|
|
@@ -10607,7 +10607,7 @@ function sO(c, t, n, e) {
|
|
|
10607
10607
|
fr(p) && p.tableKey === o.tableNodeKey && s.contains(f) && o.clearHighlight();
|
|
10608
10608
|
});
|
|
10609
10609
|
};
|
|
10610
|
-
r.addEventListener("mousedown", l), o.listenersToRemove.add(() => r.removeEventListener("mousedown", l)), o.listenersToRemove.add(n.registerCommand(Hd, (d) => ad(n, d, "down", c, o), oa)), o.listenersToRemove.add(n.registerCommand(Ud, (d) => ad(n, d, "up", c, o), oa)), o.listenersToRemove.add(n.registerCommand(
|
|
10610
|
+
r.addEventListener("mousedown", l), o.listenersToRemove.add(() => r.removeEventListener("mousedown", l)), o.listenersToRemove.add(n.registerCommand(Hd, (d) => ad(n, d, "down", c, o), oa)), o.listenersToRemove.add(n.registerCommand(Ud, (d) => ad(n, d, "up", c, o), oa)), o.listenersToRemove.add(n.registerCommand(xh, (d) => ad(n, d, "backward", c, o), oa)), o.listenersToRemove.add(n.registerCommand(_h, (d) => ad(n, d, "forward", c, o), oa)), o.listenersToRemove.add(n.registerCommand(Jl, (d) => {
|
|
10611
10611
|
const p = At();
|
|
10612
10612
|
if (fr(p)) {
|
|
10613
10613
|
const f = rr(p.focus.getNode(), xn);
|
|
@@ -10715,11 +10715,11 @@ function sO(c, t, n, e) {
|
|
|
10715
10715
|
}
|
|
10716
10716
|
}
|
|
10717
10717
|
return !1;
|
|
10718
|
-
}, Jo)), e && o.listenersToRemove.add(n.registerCommand(
|
|
10718
|
+
}, Jo)), e && o.listenersToRemove.add(n.registerCommand(wh, (d) => {
|
|
10719
10719
|
const p = At();
|
|
10720
10720
|
if (!Et(p) || !p.isCollapsed() || !Ds(p, c))
|
|
10721
10721
|
return !1;
|
|
10722
|
-
const f =
|
|
10722
|
+
const f = ym(p.anchor.getNode());
|
|
10723
10723
|
if (f === null)
|
|
10724
10724
|
return !1;
|
|
10725
10725
|
Ol(d);
|
|
@@ -10766,7 +10766,7 @@ function sO(c, t, n, e) {
|
|
|
10766
10766
|
}, Jo)), o.listenersToRemove.add(n.registerCommand(Ca, () => {
|
|
10767
10767
|
const d = At(), p = ol();
|
|
10768
10768
|
if (Et(d)) {
|
|
10769
|
-
const { anchor: f, focus: h } = d, m = f.getNode(), g = h.getNode(), v =
|
|
10769
|
+
const { anchor: f, focus: h } = d, m = f.getNode(), g = h.getNode(), v = ym(m), b = ym(g), _ = !(!v || !c.is(Hc(v))), w = !(!b || !c.is(Hc(b))), E = _ !== w, x = _ && w, y = d.isBackward();
|
|
10770
10770
|
if (E) {
|
|
10771
10771
|
const S = d.clone();
|
|
10772
10772
|
if (w) {
|
|
@@ -10807,7 +10807,7 @@ function sO(c, t, n, e) {
|
|
|
10807
10807
|
function lO(c) {
|
|
10808
10808
|
return c[IS];
|
|
10809
10809
|
}
|
|
10810
|
-
function
|
|
10810
|
+
function hy(c) {
|
|
10811
10811
|
let t = c;
|
|
10812
10812
|
for (; t != null; ) {
|
|
10813
10813
|
const n = t.nodeName;
|
|
@@ -10914,16 +10914,16 @@ function Ds(c, t) {
|
|
|
10914
10914
|
function tp(c, t) {
|
|
10915
10915
|
t ? c.selectStart() : c.selectEnd();
|
|
10916
10916
|
}
|
|
10917
|
-
const
|
|
10917
|
+
const mm = "172,206,247";
|
|
10918
10918
|
function LS(c, t) {
|
|
10919
10919
|
const n = t.elem, e = yo(n);
|
|
10920
|
-
xn(e) || ar(131), e.getBackgroundColor() === null ? n.style.setProperty("background-color", `rgb(${
|
|
10920
|
+
xn(e) || ar(131), e.getBackgroundColor() === null ? n.style.setProperty("background-color", `rgb(${mm})`) : n.style.setProperty("background-image", `linear-gradient(to right, rgba(${mm},0.85), rgba(${mm},0.85))`), n.style.setProperty("caret-color", "transparent");
|
|
10921
10921
|
}
|
|
10922
10922
|
function DS(c, t) {
|
|
10923
10923
|
const n = t.elem, e = yo(n);
|
|
10924
10924
|
xn(e) || ar(131), e.getBackgroundColor() === null && n.style.removeProperty("background-color"), n.style.removeProperty("background-image"), n.style.removeProperty("caret-color");
|
|
10925
10925
|
}
|
|
10926
|
-
function
|
|
10926
|
+
function ym(c) {
|
|
10927
10927
|
const t = rr(c, xn);
|
|
10928
10928
|
return xn(t) ? t : null;
|
|
10929
10929
|
}
|
|
@@ -11112,7 +11112,7 @@ class Ta extends so {
|
|
|
11112
11112
|
return { table: (t) => ({ conversion: uO, priority: 1 }) };
|
|
11113
11113
|
}
|
|
11114
11114
|
static importJSON(t) {
|
|
11115
|
-
return
|
|
11115
|
+
return $h();
|
|
11116
11116
|
}
|
|
11117
11117
|
constructor(t) {
|
|
11118
11118
|
super(t);
|
|
@@ -11201,9 +11201,9 @@ class Ta extends so {
|
|
|
11201
11201
|
}
|
|
11202
11202
|
}
|
|
11203
11203
|
function uO(c) {
|
|
11204
|
-
return { node:
|
|
11204
|
+
return { node: $h() };
|
|
11205
11205
|
}
|
|
11206
|
-
function
|
|
11206
|
+
function $h() {
|
|
11207
11207
|
return Kr(new Ta());
|
|
11208
11208
|
}
|
|
11209
11209
|
function kr(c) {
|
|
@@ -11332,12 +11332,12 @@ function gO(c) {
|
|
|
11332
11332
|
node: zS()
|
|
11333
11333
|
};
|
|
11334
11334
|
}
|
|
11335
|
-
class
|
|
11335
|
+
class Uh extends so {
|
|
11336
11336
|
static getType() {
|
|
11337
11337
|
return "collapsible-title";
|
|
11338
11338
|
}
|
|
11339
11339
|
static clone(t) {
|
|
11340
|
-
return new
|
|
11340
|
+
return new Uh(t.__key);
|
|
11341
11341
|
}
|
|
11342
11342
|
createDOM(t, n) {
|
|
11343
11343
|
const e = document.createElement("summary");
|
|
@@ -11396,7 +11396,7 @@ class Hh extends so {
|
|
|
11396
11396
|
}
|
|
11397
11397
|
}
|
|
11398
11398
|
function zS() {
|
|
11399
|
-
return new
|
|
11399
|
+
return new Uh();
|
|
11400
11400
|
}
|
|
11401
11401
|
class af extends oo {
|
|
11402
11402
|
constructor(n, e, s) {
|
|
@@ -11463,7 +11463,7 @@ let O0 = class extends ss {
|
|
|
11463
11463
|
return !1;
|
|
11464
11464
|
}
|
|
11465
11465
|
};
|
|
11466
|
-
function
|
|
11466
|
+
function gy(c) {
|
|
11467
11467
|
return c instanceof O0;
|
|
11468
11468
|
}
|
|
11469
11469
|
function US({ children: c, format: t, nodeKey: n, className: e }) {
|
|
@@ -11481,11 +11481,11 @@ function US({ children: c, format: t, nodeKey: n, className: e }) {
|
|
|
11481
11481
|
const d = At();
|
|
11482
11482
|
if (ro(d)) {
|
|
11483
11483
|
const p = or(n);
|
|
11484
|
-
|
|
11484
|
+
gy(p) && p.setFormat(u);
|
|
11485
11485
|
} else if (Et(d)) {
|
|
11486
11486
|
const p = d.getNodes();
|
|
11487
11487
|
for (const f of p)
|
|
11488
|
-
|
|
11488
|
+
gy(f) ? f.setFormat(u) : v0(f).setFormat(u);
|
|
11489
11489
|
}
|
|
11490
11490
|
return !0;
|
|
11491
11491
|
}
|
|
@@ -11516,7 +11516,7 @@ function mO({
|
|
|
11516
11516
|
}
|
|
11517
11517
|
);
|
|
11518
11518
|
}
|
|
11519
|
-
class
|
|
11519
|
+
class Hh extends O0 {
|
|
11520
11520
|
constructor(n, e, s) {
|
|
11521
11521
|
super(e, s);
|
|
11522
11522
|
qn(this, "__id");
|
|
@@ -11526,7 +11526,7 @@ class qh extends O0 {
|
|
|
11526
11526
|
return "figma";
|
|
11527
11527
|
}
|
|
11528
11528
|
static clone(n) {
|
|
11529
|
-
return new
|
|
11529
|
+
return new Hh(n.__id, n.__format, n.__key);
|
|
11530
11530
|
}
|
|
11531
11531
|
static importJSON(n) {
|
|
11532
11532
|
const e = yO(n.documentID);
|
|
@@ -11566,9 +11566,9 @@ class qh extends O0 {
|
|
|
11566
11566
|
}
|
|
11567
11567
|
}
|
|
11568
11568
|
function yO(c) {
|
|
11569
|
-
return new
|
|
11569
|
+
return new Hh(c);
|
|
11570
11570
|
}
|
|
11571
|
-
const bO = sr.lazy(() => import("./ImageComponent-
|
|
11571
|
+
const bO = sr.lazy(() => import("./ImageComponent-ab673021.js"));
|
|
11572
11572
|
function vO(c) {
|
|
11573
11573
|
const t = c;
|
|
11574
11574
|
if (t.src.startsWith("file:///"))
|
|
@@ -11588,7 +11588,7 @@ class hu extends ss {
|
|
|
11588
11588
|
qn(this, "__caption");
|
|
11589
11589
|
// Captions cannot yet be used within editor cells
|
|
11590
11590
|
qn(this, "__captionsEnabled");
|
|
11591
|
-
this.__src = n, this.__altText = e, this.__maxWidth = s, this.__width = o || "inherit", this.__height = r || "inherit", this.__showCaption = a || !1, this.__caption = l ||
|
|
11591
|
+
this.__src = n, this.__altText = e, this.__maxWidth = s, this.__width = o || "inherit", this.__height = r || "inherit", this.__showCaption = a || !1, this.__caption = l || Dh(), this.__captionsEnabled = i || i === void 0;
|
|
11592
11592
|
}
|
|
11593
11593
|
static getType() {
|
|
11594
11594
|
return "image";
|
|
@@ -11714,7 +11714,7 @@ function Qc({
|
|
|
11714
11714
|
function _O(c) {
|
|
11715
11715
|
return c instanceof hu;
|
|
11716
11716
|
}
|
|
11717
|
-
const xO = sr.lazy(() => import("./InlineImageComponent-
|
|
11717
|
+
const xO = sr.lazy(() => import("./InlineImageComponent-0c629a95.js"));
|
|
11718
11718
|
function wO(c) {
|
|
11719
11719
|
if (c instanceof HTMLImageElement) {
|
|
11720
11720
|
const { alt: t, src: n, width: e, height: s } = c;
|
|
@@ -11732,7 +11732,7 @@ class sf extends ss {
|
|
|
11732
11732
|
qn(this, "__showCaption");
|
|
11733
11733
|
qn(this, "__caption");
|
|
11734
11734
|
qn(this, "__position");
|
|
11735
|
-
this.__src = n, this.__altText = e, this.__width = o || "inherit", this.__height = r || "inherit", this.__showCaption = a || !1, this.__caption = l ||
|
|
11735
|
+
this.__src = n, this.__altText = e, this.__width = o || "inherit", this.__height = r || "inherit", this.__showCaption = a || !1, this.__caption = l || Dh(), this.__position = s;
|
|
11736
11736
|
}
|
|
11737
11737
|
static getType() {
|
|
11738
11738
|
return "inline-image";
|
|
@@ -11913,7 +11913,7 @@ function SO(c) {
|
|
|
11913
11913
|
);
|
|
11914
11914
|
return n ? { node: WS(n) } : null;
|
|
11915
11915
|
}
|
|
11916
|
-
class
|
|
11916
|
+
class qh extends so {
|
|
11917
11917
|
constructor(n, e) {
|
|
11918
11918
|
super(e);
|
|
11919
11919
|
qn(this, "__templateColumns");
|
|
@@ -11923,7 +11923,7 @@ class Wh extends so {
|
|
|
11923
11923
|
return "layout-container";
|
|
11924
11924
|
}
|
|
11925
11925
|
static clone(n) {
|
|
11926
|
-
return new
|
|
11926
|
+
return new qh(n.__templateColumns, n.__key);
|
|
11927
11927
|
}
|
|
11928
11928
|
createDOM(n) {
|
|
11929
11929
|
const e = document.createElement("div");
|
|
@@ -11969,14 +11969,14 @@ class Wh extends so {
|
|
|
11969
11969
|
}
|
|
11970
11970
|
}
|
|
11971
11971
|
function WS(c) {
|
|
11972
|
-
return new
|
|
11972
|
+
return new qh(c);
|
|
11973
11973
|
}
|
|
11974
|
-
class
|
|
11974
|
+
class Wh extends so {
|
|
11975
11975
|
static getType() {
|
|
11976
11976
|
return "layout-item";
|
|
11977
11977
|
}
|
|
11978
11978
|
static clone(t) {
|
|
11979
|
-
return new
|
|
11979
|
+
return new Wh(t.__key);
|
|
11980
11980
|
}
|
|
11981
11981
|
createDOM(t) {
|
|
11982
11982
|
const n = document.createElement("div");
|
|
@@ -12003,7 +12003,7 @@ class Jh extends so {
|
|
|
12003
12003
|
}
|
|
12004
12004
|
}
|
|
12005
12005
|
function EO() {
|
|
12006
|
-
return new
|
|
12006
|
+
return new Wh();
|
|
12007
12007
|
}
|
|
12008
12008
|
function CO(c) {
|
|
12009
12009
|
const t = c.textContent;
|
|
@@ -12153,7 +12153,7 @@ function JS() {
|
|
|
12153
12153
|
function NO(c) {
|
|
12154
12154
|
return c instanceof cf;
|
|
12155
12155
|
}
|
|
12156
|
-
const AO = sr.lazy(() => import("./PollComponent-
|
|
12156
|
+
const AO = sr.lazy(() => import("./PollComponent-8900bdf7.js"));
|
|
12157
12157
|
function jO() {
|
|
12158
12158
|
return Math.random().toString(36).replace(/[^a-z]+/g, "").substr(0, 5);
|
|
12159
12159
|
}
|
|
@@ -12311,7 +12311,7 @@ function RO({
|
|
|
12311
12311
|
}
|
|
12312
12312
|
);
|
|
12313
12313
|
}
|
|
12314
|
-
class
|
|
12314
|
+
class Jh extends O0 {
|
|
12315
12315
|
constructor(n, e, s) {
|
|
12316
12316
|
super(e, s);
|
|
12317
12317
|
qn(this, "__id");
|
|
@@ -12321,7 +12321,7 @@ class Vh extends O0 {
|
|
|
12321
12321
|
return "tweet";
|
|
12322
12322
|
}
|
|
12323
12323
|
static clone(n) {
|
|
12324
|
-
return new
|
|
12324
|
+
return new Jh(n.__id, n.__format, n.__key);
|
|
12325
12325
|
}
|
|
12326
12326
|
static importJSON(n) {
|
|
12327
12327
|
const e = KS(n.id);
|
|
@@ -12373,7 +12373,7 @@ class Vh extends O0 {
|
|
|
12373
12373
|
}
|
|
12374
12374
|
}
|
|
12375
12375
|
function KS(c) {
|
|
12376
|
-
return new
|
|
12376
|
+
return new Jh(c);
|
|
12377
12377
|
}
|
|
12378
12378
|
class Td extends ss {
|
|
12379
12379
|
constructor(n, e, s) {
|
|
@@ -12568,7 +12568,7 @@ class jl extends oo {
|
|
|
12568
12568
|
type: "text",
|
|
12569
12569
|
// type property must be one of core or playground node types
|
|
12570
12570
|
// preserve default text node attributes
|
|
12571
|
-
text: t.text || "
|
|
12571
|
+
text: t.text || "_______________________________",
|
|
12572
12572
|
format: t.format,
|
|
12573
12573
|
style: `color:${t.color || ""};background-color:${t.backgroundColor || ""};`,
|
|
12574
12574
|
detail: t.detail,
|
|
@@ -12622,11 +12622,11 @@ class jl extends oo {
|
|
|
12622
12622
|
function M1() {
|
|
12623
12623
|
return new jl();
|
|
12624
12624
|
}
|
|
12625
|
-
function
|
|
12625
|
+
function bm(c) {
|
|
12626
12626
|
return c instanceof jl;
|
|
12627
12627
|
}
|
|
12628
12628
|
const YS = Ao();
|
|
12629
|
-
function
|
|
12629
|
+
function my(c) {
|
|
12630
12630
|
const t = {
|
|
12631
12631
|
m: 1e3,
|
|
12632
12632
|
cm: 900,
|
|
@@ -12655,7 +12655,7 @@ function ZS() {
|
|
|
12655
12655
|
c.update(() => {
|
|
12656
12656
|
const s = Wn(), o = [];
|
|
12657
12657
|
t(s, (a) => {
|
|
12658
|
-
|
|
12658
|
+
vm(a) && o.push(a);
|
|
12659
12659
|
});
|
|
12660
12660
|
let r = !1;
|
|
12661
12661
|
for (let a = 0; a < o.length; a++)
|
|
@@ -12670,7 +12670,7 @@ function ZS() {
|
|
|
12670
12670
|
if (Jr(d)) {
|
|
12671
12671
|
const p = d.getFirstChild();
|
|
12672
12672
|
if (Jt(p)) {
|
|
12673
|
-
const f = p.getTextContent(), h = f.replace(/^\[[^\]]*\]/, `[${
|
|
12673
|
+
const f = p.getTextContent(), h = f.replace(/^\[[^\]]*\]/, `[${my(i)}]`);
|
|
12674
12674
|
h !== f && p.setTextContent(h);
|
|
12675
12675
|
}
|
|
12676
12676
|
}
|
|
@@ -12679,13 +12679,13 @@ function ZS() {
|
|
|
12679
12679
|
}, e = () => {
|
|
12680
12680
|
c.update(() => {
|
|
12681
12681
|
var v;
|
|
12682
|
-
const s = Wn(), o = At(), r =
|
|
12682
|
+
const s = Wn(), o = At(), r = DO(0);
|
|
12683
12683
|
o && o.insertNodes([r]);
|
|
12684
12684
|
const a = Ln(), l = er("[?] ");
|
|
12685
12685
|
a.append(l), s.append(a), r.setContentKey(a.getKey());
|
|
12686
12686
|
const i = [];
|
|
12687
12687
|
t(s, (b) => {
|
|
12688
|
-
|
|
12688
|
+
vm(b) && i.push(b);
|
|
12689
12689
|
});
|
|
12690
12690
|
const d = i.map((b) => b.getContentKey()).map((b) => or(b)).filter((b) => b !== null);
|
|
12691
12691
|
d == null || d.forEach((b) => {
|
|
@@ -12695,7 +12695,7 @@ function ZS() {
|
|
|
12695
12695
|
if (s.getChildren().forEach((b) => {
|
|
12696
12696
|
if (Jr(b)) {
|
|
12697
12697
|
const _ = b.getFirstChild();
|
|
12698
|
-
if ((_ &&
|
|
12698
|
+
if ((_ && bm(_) || _ && Jt(_) && _.getTextContent().includes("_______________________________")) && (p = !0, !bm(_) && _.getTextContent().includes("_______________________________"))) {
|
|
12699
12699
|
const w = M1();
|
|
12700
12700
|
_.replace(w);
|
|
12701
12701
|
}
|
|
@@ -12708,14 +12708,14 @@ function ZS() {
|
|
|
12708
12708
|
if (s.getChildren().forEach((b) => {
|
|
12709
12709
|
if (Jr(b)) {
|
|
12710
12710
|
const _ = b.getFirstChild();
|
|
12711
|
-
(_ &&
|
|
12711
|
+
(_ && bm(_) || _ && Jt(_) && _.getTextContent().includes("_______________________________")) && f.push(b);
|
|
12712
12712
|
}
|
|
12713
12713
|
}), f.length > 1)
|
|
12714
12714
|
for (let b = 1; b < f.length; b++)
|
|
12715
12715
|
f[b].remove();
|
|
12716
12716
|
const h = [];
|
|
12717
12717
|
t(s, (b) => {
|
|
12718
|
-
|
|
12718
|
+
vm(b) && h.push(b);
|
|
12719
12719
|
}), h.forEach((b, _) => {
|
|
12720
12720
|
const w = _ + 1;
|
|
12721
12721
|
b.setNumber(w);
|
|
@@ -12723,7 +12723,7 @@ function ZS() {
|
|
|
12723
12723
|
if (Jr(x)) {
|
|
12724
12724
|
const y = x.getFirstChild();
|
|
12725
12725
|
if (Jt(y)) {
|
|
12726
|
-
const S = y.getTextContent(), C = S.replace(/^\[[^\]]*\]/, `[${
|
|
12726
|
+
const S = y.getTextContent(), C = S.replace(/^\[[^\]]*\]/, `[${my(w)}]`);
|
|
12727
12727
|
C !== S && y.setTextContent(C);
|
|
12728
12728
|
}
|
|
12729
12729
|
}
|
|
@@ -12748,10 +12748,10 @@ function ZS() {
|
|
|
12748
12748
|
}
|
|
12749
12749
|
class Ul extends oo {
|
|
12750
12750
|
constructor(n, e, s, o) {
|
|
12751
|
-
super(s || `[${n
|
|
12751
|
+
super(s || `[${n}]`, o);
|
|
12752
12752
|
qn(this, "__number");
|
|
12753
12753
|
qn(this, "__contentKey");
|
|
12754
|
-
this.__number = n
|
|
12754
|
+
this.__number = n, this.__contentKey = e;
|
|
12755
12755
|
}
|
|
12756
12756
|
static getType() {
|
|
12757
12757
|
return "endnote";
|
|
@@ -12779,17 +12779,13 @@ class Ul extends oo {
|
|
|
12779
12779
|
contentKey: this.__contentKey,
|
|
12780
12780
|
type: "endnote",
|
|
12781
12781
|
version: 1,
|
|
12782
|
-
color: "",
|
|
12783
|
-
// Add default color property
|
|
12784
|
-
backgroundColor: "",
|
|
12785
|
-
// Add default backgroundColor property
|
|
12786
12782
|
id: ""
|
|
12787
12783
|
// Add default id property
|
|
12788
12784
|
};
|
|
12789
12785
|
}
|
|
12790
12786
|
setNumber(n) {
|
|
12791
12787
|
const e = this.getWritable();
|
|
12792
|
-
e.__number = n, this.setTextContent(`[${
|
|
12788
|
+
e.__number = n, this.setTextContent(`[${my(n)}]`);
|
|
12793
12789
|
}
|
|
12794
12790
|
setContentKey(n) {
|
|
12795
12791
|
const e = this.getWritable();
|
|
@@ -12800,20 +12796,17 @@ class Ul extends oo {
|
|
|
12800
12796
|
}
|
|
12801
12797
|
createDOM(n) {
|
|
12802
12798
|
const e = super.createDOM(n);
|
|
12803
|
-
return e.style.cssText = "cursor: pointer; vertical-align: super; font-size: 0.8em;", e.dataset.endnote = "true", e
|
|
12804
|
-
}
|
|
12805
|
-
updateDOM(n, e, s) {
|
|
12806
|
-
return e.dataset.endnoteNumber = String(this.__number), super.updateDOM(n, e, s);
|
|
12799
|
+
return e.style.cssText = "cursor: pointer; vertical-align: super; font-size: 0.8em;", e.dataset.endnote = "true", e;
|
|
12807
12800
|
}
|
|
12808
12801
|
exportDOM() {
|
|
12809
12802
|
const n = document.createElement("span");
|
|
12810
|
-
return n.dataset.lexicalEndnote = "true", n.
|
|
12803
|
+
return n.dataset.lexicalEndnote = "true", n.textContent = this.__text, { element: n };
|
|
12811
12804
|
}
|
|
12812
12805
|
static importDOM() {
|
|
12813
12806
|
return {
|
|
12814
|
-
span: (n) => n.dataset.lexicalEndnote === "true"
|
|
12815
|
-
conversion:
|
|
12816
|
-
priority:
|
|
12807
|
+
span: (n) => n.dataset.lexicalEndnote === "true" ? {
|
|
12808
|
+
conversion: LO,
|
|
12809
|
+
priority: 1
|
|
12817
12810
|
} : null
|
|
12818
12811
|
};
|
|
12819
12812
|
}
|
|
@@ -12826,21 +12819,19 @@ class Ul extends oo {
|
|
|
12826
12819
|
canInsertTextAfter() {
|
|
12827
12820
|
return !1;
|
|
12828
12821
|
}
|
|
12829
|
-
/**
|
|
12830
|
-
* Convert the EndNoteNode to a Codox-compatible node
|
|
12831
|
-
*/
|
|
12832
12822
|
toCodoxNode() {
|
|
12833
12823
|
const n = this.exportJSON(), e = {
|
|
12834
|
-
type: "
|
|
12824
|
+
type: "quote",
|
|
12835
12825
|
// type property must be one of core or playground node types
|
|
12836
12826
|
// preserve default text node attributes
|
|
12837
|
-
text: n.text
|
|
12827
|
+
text: n.text,
|
|
12838
12828
|
format: n.format,
|
|
12839
12829
|
mode: n.mode,
|
|
12840
12830
|
detail: n.detail,
|
|
12841
12831
|
version: n.version,
|
|
12842
|
-
|
|
12832
|
+
// extension: all mutable style properties should be serialized as a style string, as per TextNode definition
|
|
12843
12833
|
// assumption is the lexical node style is empty, if not, concat the styles.
|
|
12834
|
+
// style: `color:${originalJsonNode.color};background-color:${originalJsonNode.backgroundColor};`,
|
|
12844
12835
|
/**
|
|
12845
12836
|
* extension: codox_metadata should hold immutables:
|
|
12846
12837
|
* - required: your extended node type, e.g. 'warning'
|
|
@@ -12855,17 +12846,8 @@ class Ul extends oo {
|
|
|
12855
12846
|
};
|
|
12856
12847
|
return console.log("[DEMO DEBUG][WarningNode][toCodoxNode]: ", { convertedNode: e, originalJsonNode: n }), e;
|
|
12857
12848
|
}
|
|
12858
|
-
/**
|
|
12859
|
-
* Implement the following API methods to interoperate with Codox
|
|
12860
|
-
* Codox -> Lexical Node
|
|
12861
|
-
* Converts synchronized codox json node to lexical json node
|
|
12862
|
-
* must be class 'static' method
|
|
12863
|
-
*/
|
|
12864
12849
|
static fromCodoxNode(n) {
|
|
12865
12850
|
let e = "", s = "";
|
|
12866
|
-
n.style.split(";").forEach((r) => {
|
|
12867
|
-
r.startsWith("color:") && (e = r.split(":")[1]), r.startsWith("background-color:") && (s = r.split(":")[1]);
|
|
12868
|
-
});
|
|
12869
12851
|
const o = {
|
|
12870
12852
|
// set original type - in this example it will be "warning"
|
|
12871
12853
|
type: n.codox_metadata.type,
|
|
@@ -12887,26 +12869,17 @@ class Ul extends oo {
|
|
|
12887
12869
|
return console.log("[DEMO DEBUG][WarningNode][fromCodoxNode]: ", { codoxNode: n, originalJsonNode: o }), o;
|
|
12888
12870
|
}
|
|
12889
12871
|
}
|
|
12890
|
-
function LO(c
|
|
12872
|
+
function LO(c) {
|
|
12873
|
+
var e;
|
|
12874
|
+
const t = (e = c.textContent) == null ? void 0 : e.match(/\[(\d+)\]/), n = t ? parseInt(t[1], 10) : 1;
|
|
12875
|
+
return { node: new Ul(n) };
|
|
12876
|
+
}
|
|
12877
|
+
function DO(c, t) {
|
|
12891
12878
|
return new Ul(c, t || "");
|
|
12892
12879
|
}
|
|
12893
|
-
function
|
|
12880
|
+
function vm(c) {
|
|
12894
12881
|
return c instanceof Ul;
|
|
12895
12882
|
}
|
|
12896
|
-
function DO(c) {
|
|
12897
|
-
var n;
|
|
12898
|
-
let t = 0;
|
|
12899
|
-
if (c.dataset.endnoteNumber)
|
|
12900
|
-
t = parseInt(c.dataset.endnoteNumber, 10);
|
|
12901
|
-
else {
|
|
12902
|
-
const e = (n = c.textContent) == null ? void 0 : n.match(/\[(\w+)\]/);
|
|
12903
|
-
if (e) {
|
|
12904
|
-
const s = e[1];
|
|
12905
|
-
/^[0-9]+$/.test(s) ? t = parseInt(s, 10) : t = 0;
|
|
12906
|
-
}
|
|
12907
|
-
}
|
|
12908
|
-
return { node: new Ul(t) };
|
|
12909
|
-
}
|
|
12910
12883
|
class ns extends oo {
|
|
12911
12884
|
constructor(n, e, s, o) {
|
|
12912
12885
|
super(n, o);
|
|
@@ -13028,14 +13001,14 @@ const QS = [
|
|
|
13028
13001
|
af,
|
|
13029
13002
|
Xc,
|
|
13030
13003
|
S0,
|
|
13031
|
-
|
|
13032
|
-
|
|
13004
|
+
Jh,
|
|
13005
|
+
Hh,
|
|
13033
13006
|
rf,
|
|
13034
13007
|
of,
|
|
13035
|
-
|
|
13008
|
+
Uh,
|
|
13036
13009
|
cf,
|
|
13010
|
+
qh,
|
|
13037
13011
|
Wh,
|
|
13038
|
-
Jh,
|
|
13039
13012
|
Td,
|
|
13040
13013
|
Ul,
|
|
13041
13014
|
ns,
|
|
@@ -13103,7 +13076,7 @@ function hd({
|
|
|
13103
13076
|
)
|
|
13104
13077
|
] });
|
|
13105
13078
|
}
|
|
13106
|
-
const BO =
|
|
13079
|
+
const BO = yh({
|
|
13107
13080
|
cellEditorConfig: null,
|
|
13108
13081
|
cellEditorPlugins: null,
|
|
13109
13082
|
set: () => {
|
|
@@ -13825,7 +13798,7 @@ function XO({ close: c, editor: t, anchorElementRef: n, resolution: e, options:
|
|
|
13825
13798
|
}, l), t.registerCommand(Jl, (h) => {
|
|
13826
13799
|
const m = h;
|
|
13827
13800
|
return m.preventDefault(), m.stopImmediatePropagation(), c(), !0;
|
|
13828
|
-
}, l), t.registerCommand(
|
|
13801
|
+
}, l), t.registerCommand(wh, (h) => {
|
|
13829
13802
|
const m = h;
|
|
13830
13803
|
return s !== null && i !== null && s[i] != null && (m.preventDefault(), m.stopImmediatePropagation(), p(s[i]), !0);
|
|
13831
13804
|
}, l), t.registerCommand(Dl, (h) => s !== null && i !== null && s[i] != null && (h !== null && (h.preventDefault(), h.stopImmediatePropagation()), p(s[i]), !0), l)), [p, c, t, s, i, f, l]), o(n, Rr(() => ({ options: s, selectOptionAndCleanUp: p, selectedIndex: i, setHighlightedIndex: u }), [p, i, s]), e.match ? e.match.matchingString : "");
|
|
@@ -14183,7 +14156,7 @@ function sE() {
|
|
|
14183
14156
|
embedConfigs: fN,
|
|
14184
14157
|
onOpenEmbedModalForConfig: n,
|
|
14185
14158
|
getMenuOptions: e,
|
|
14186
|
-
menuRenderFn: (s, { selectedIndex: o, options: r, selectOptionAndCleanUp: a, setHighlightedIndex: l }) => s.current ?
|
|
14159
|
+
menuRenderFn: (s, { selectedIndex: o, options: r, selectOptionAndCleanUp: a, setHighlightedIndex: l }) => s.current ? bh.createPortal(
|
|
14187
14160
|
/* @__PURE__ */ ge.jsx(
|
|
14188
14161
|
"div",
|
|
14189
14162
|
{
|
|
@@ -14238,14 +14211,14 @@ function lE(c, t) {
|
|
|
14238
14211
|
return null;
|
|
14239
14212
|
}
|
|
14240
14213
|
const vN = /[.,;\s]/;
|
|
14241
|
-
function
|
|
14214
|
+
function lh(c) {
|
|
14242
14215
|
return vN.test(c);
|
|
14243
14216
|
}
|
|
14244
14217
|
function cE(c) {
|
|
14245
|
-
return
|
|
14218
|
+
return lh(c[c.length - 1]);
|
|
14246
14219
|
}
|
|
14247
14220
|
function by(c) {
|
|
14248
|
-
return
|
|
14221
|
+
return lh(c[0]);
|
|
14249
14222
|
}
|
|
14250
14223
|
function uE(c) {
|
|
14251
14224
|
let t = c.getPreviousSibling();
|
|
@@ -14256,7 +14229,7 @@ function dE(c) {
|
|
|
14256
14229
|
return Ct(t) && (t = t.getFirstDescendant()), t === null || Oa(t) || Jt(t) && by(t.getTextContent());
|
|
14257
14230
|
}
|
|
14258
14231
|
function _N(c, t, n, e) {
|
|
14259
|
-
return (c > 0 ?
|
|
14232
|
+
return (c > 0 ? lh(n[c - 1]) : uE(e[0])) ? t < n.length ? lh(n[t]) : dE(e[e.length - 1]) : !1;
|
|
14260
14233
|
}
|
|
14261
14234
|
function xN(c, t, n) {
|
|
14262
14235
|
const e = [], s = [], o = [];
|
|
@@ -14269,7 +14242,7 @@ function xN(c, t, n) {
|
|
|
14269
14242
|
return [r, e, s, o];
|
|
14270
14243
|
}
|
|
14271
14244
|
function wN(c, t, n, e) {
|
|
14272
|
-
const s =
|
|
14245
|
+
const s = cy(e.url, e.attributes);
|
|
14273
14246
|
if (c.length === 1) {
|
|
14274
14247
|
let o, r = c[0];
|
|
14275
14248
|
t === 0 ? [o, r] = r.splitText(n) : [, o, r] = r.splitText(t, n);
|
|
@@ -14297,7 +14270,7 @@ function wN(c, t, n, e) {
|
|
|
14297
14270
|
return p.setFormat(r.getFormat()), p.setDetail(r.getDetail()), p.setStyle(r.getStyle()), s.append(p, ...l), d && d === r && (Et(u) ? p.select(u.anchor.offset, u.focus.offset) : ro(u) && p.select(0, p.getTextContent().length)), r.replace(s), i;
|
|
14298
14271
|
}
|
|
14299
14272
|
}
|
|
14300
|
-
function
|
|
14273
|
+
function _m(c, t, n) {
|
|
14301
14274
|
const e = c.getChildren(), s = e.length;
|
|
14302
14275
|
for (let l = 0; l < s; l++) {
|
|
14303
14276
|
const i = e[l];
|
|
@@ -14330,7 +14303,7 @@ function SN(c, t, n) {
|
|
|
14330
14303
|
return Ur(c.registerNodeTransform(oo, (s) => {
|
|
14331
14304
|
const o = s.getParentOrThrow(), r = s.getPreviousSibling();
|
|
14332
14305
|
if (kc(o) && !o.getIsUnlinked())
|
|
14333
|
-
|
|
14306
|
+
_m(o, t, e);
|
|
14334
14307
|
else if (!ji(o)) {
|
|
14335
14308
|
if (s.isSimpleText() && (by(s.getTextContent()) || !kc(r))) {
|
|
14336
14309
|
const a = function(l) {
|
|
@@ -14357,7 +14330,7 @@ function SN(c, t, n) {
|
|
|
14357
14330
|
}
|
|
14358
14331
|
(function(a, l, i) {
|
|
14359
14332
|
const u = a.getPreviousSibling(), d = a.getNextSibling(), p = a.getTextContent();
|
|
14360
|
-
!kc(u) || u.getIsUnlinked() || by(p) && !/^\.[a-zA-Z0-9]{1,}/.test(p) || (u.append(a),
|
|
14333
|
+
!kc(u) || u.getIsUnlinked() || by(p) && !/^\.[a-zA-Z0-9]{1,}/.test(p) || (u.append(a), _m(u, l, i), i(null, u.getURL())), !kc(d) || d.getIsUnlinked() || cE(p) || (yp(d), _m(d, l, i), i(null, d.getURL()));
|
|
14361
14334
|
})(s, t, e);
|
|
14362
14335
|
}
|
|
14363
14336
|
}), c.registerCommand(Jc, (s) => {
|
|
@@ -14401,7 +14374,7 @@ function ON({
|
|
|
14401
14374
|
)
|
|
14402
14375
|
] });
|
|
14403
14376
|
}
|
|
14404
|
-
const gu = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", NN = (c) => gu ? (c || window).getSelection() : null,
|
|
14377
|
+
const gu = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", NN = (c) => gu ? (c || window).getSelection() : null, Vh = Ao();
|
|
14405
14378
|
function AN({
|
|
14406
14379
|
onClick: c
|
|
14407
14380
|
}) {
|
|
@@ -14458,7 +14431,7 @@ function jN({
|
|
|
14458
14431
|
};
|
|
14459
14432
|
}, [c]);
|
|
14460
14433
|
const r = (a) => {
|
|
14461
|
-
c.dispatchCommand(
|
|
14434
|
+
c.dispatchCommand(Vh, a), console.log("line 202 imageplugin insert image"), t();
|
|
14462
14435
|
};
|
|
14463
14436
|
return /* @__PURE__ */ ge.jsx(ge.Fragment, { children: e === "file" && /* @__PURE__ */ ge.jsx(AN, { onClick: r }) });
|
|
14464
14437
|
}
|
|
@@ -14506,7 +14479,7 @@ function $1(c, t) {
|
|
|
14506
14479
|
const d = Qc({ ...o, figureLabel: i }), p = Ln();
|
|
14507
14480
|
p.setFormat("left"), Mi(), er(".").setStyle(
|
|
14508
14481
|
"color: black; font-style: italic; font-weight: bold;"
|
|
14509
|
-
), p.append(d), ua([p]), ao(d.getParentOrThrow()) &&
|
|
14482
|
+
), p.append(d), ua([p]), ao(d.getParentOrThrow()) && iy(d, Ln).selectEnd(), t.update(() => {
|
|
14510
14483
|
const g = Wn().getChildren().filter((b) => Jr(b));
|
|
14511
14484
|
let v = 1;
|
|
14512
14485
|
g.forEach((b) => {
|
|
@@ -14564,7 +14537,7 @@ function pE({
|
|
|
14564
14537
|
let s = 0;
|
|
14565
14538
|
return Ur(
|
|
14566
14539
|
t.registerCommand(
|
|
14567
|
-
|
|
14540
|
+
Vh,
|
|
14568
14541
|
(o) => {
|
|
14569
14542
|
if (s += 1, c) {
|
|
14570
14543
|
er(`Figure ${s}:`).setStyle(
|
|
@@ -14575,12 +14548,12 @@ function pE({
|
|
|
14575
14548
|
const i = n.trim() === "" ? "." : n;
|
|
14576
14549
|
er(i).setStyle(
|
|
14577
14550
|
i ? "color: black; font-style: italic; font-weight: bold;" : "color: gray; font-style: italic; font-weight: normal;"
|
|
14578
|
-
), l.append(a), ua([l]), ao(a.getParentOrThrow()) &&
|
|
14551
|
+
), l.append(a), ua([l]), ao(a.getParentOrThrow()) && iy(a, Ln).selectEnd();
|
|
14579
14552
|
} else {
|
|
14580
14553
|
const r = Qc(o), a = Ln();
|
|
14581
14554
|
a.setFormat("left");
|
|
14582
14555
|
const l = Mi();
|
|
14583
|
-
a.append(r, l), ua([a]), ao(r.getParentOrThrow()) &&
|
|
14556
|
+
a.append(r, l), ua([a]), ao(r.getParentOrThrow()) && iy(r, Ln).selectEnd();
|
|
14584
14557
|
}
|
|
14585
14558
|
return t.update(() => {
|
|
14586
14559
|
const a = Wn().getChildren().filter((i) => Jr(i));
|
|
@@ -14603,7 +14576,7 @@ function pE({
|
|
|
14603
14576
|
Nn
|
|
14604
14577
|
),
|
|
14605
14578
|
t.registerCommand(
|
|
14606
|
-
|
|
14579
|
+
Eh,
|
|
14607
14580
|
(o) => RN(o),
|
|
14608
14581
|
oa
|
|
14609
14582
|
),
|
|
@@ -14613,7 +14586,7 @@ function pE({
|
|
|
14613
14586
|
Ir
|
|
14614
14587
|
),
|
|
14615
14588
|
t.registerCommand(
|
|
14616
|
-
|
|
14589
|
+
Sh,
|
|
14617
14590
|
(o) => DN(o, t),
|
|
14618
14591
|
oa
|
|
14619
14592
|
),
|
|
@@ -14663,7 +14636,7 @@ function DN(c, t) {
|
|
|
14663
14636
|
const s = BN(c);
|
|
14664
14637
|
n.remove();
|
|
14665
14638
|
const o = Gd();
|
|
14666
|
-
s != null && o.applyDOMRange(s), $r(o), t.dispatchCommand(
|
|
14639
|
+
s != null && o.applyDOMRange(s), $r(o), t.dispatchCommand(Vh, e);
|
|
14667
14640
|
}
|
|
14668
14641
|
return !0;
|
|
14669
14642
|
}
|
|
@@ -14707,14 +14680,14 @@ const U1 = [
|
|
|
14707
14680
|
function mE() {
|
|
14708
14681
|
const [c] = In();
|
|
14709
14682
|
return Wt(() => c.registerCommand(
|
|
14710
|
-
|
|
14683
|
+
fy,
|
|
14711
14684
|
(t) => ((async () => {
|
|
14712
14685
|
const n = await ak(
|
|
14713
14686
|
t,
|
|
14714
14687
|
[U1].flatMap((e) => e)
|
|
14715
14688
|
);
|
|
14716
14689
|
for (const { file: e, result: s } of n)
|
|
14717
|
-
Uw(e, U1) && c.dispatchCommand(
|
|
14690
|
+
Uw(e, U1) && c.dispatchCommand(Vh, {
|
|
14718
14691
|
altText: e.name,
|
|
14719
14692
|
src: s
|
|
14720
14693
|
});
|
|
@@ -14831,7 +14804,7 @@ function UN({ close: c, editor: t, anchorElementRef: n, resolution: e, options:
|
|
|
14831
14804
|
}, l), t.registerCommand(Jl, (h) => {
|
|
14832
14805
|
const m = h;
|
|
14833
14806
|
return m.preventDefault(), m.stopImmediatePropagation(), c(), !0;
|
|
14834
|
-
}, l), t.registerCommand(
|
|
14807
|
+
}, l), t.registerCommand(wh, (h) => {
|
|
14835
14808
|
const m = h;
|
|
14836
14809
|
return s !== null && i !== null && s[i] != null && (m.preventDefault(), m.stopImmediatePropagation(), p(s[i]), !0);
|
|
14837
14810
|
}, l), t.registerCommand(Dl, (h) => s !== null && i !== null && s[i] != null && (h !== null && (h.preventDefault(), h.stopImmediatePropagation()), p(s[i]), !0), l)), [p, c, t, s, i, f, l]), o(n, Rr(() => ({ options: s, selectOptionAndCleanUp: p, selectedIndex: i, setHighlightedIndex: u }), [p, i, s]), e.match ? e.match.matchingString : "");
|
|
@@ -15006,7 +14979,7 @@ function _E() {
|
|
|
15006
14979
|
onSelectOption: l,
|
|
15007
14980
|
triggerFn: r,
|
|
15008
14981
|
options: a,
|
|
15009
|
-
menuRenderFn: (i, { selectedIndex: u, selectOptionAndCleanUp: d, setHighlightedIndex: p }) => i.current == null || a.length === 0 ? null : i.current && a.length ?
|
|
14982
|
+
menuRenderFn: (i, { selectedIndex: u, selectOptionAndCleanUp: d, setHighlightedIndex: p }) => i.current == null || a.length === 0 ? null : i.current && a.length ? bh.createPortal(
|
|
15010
14983
|
/* @__PURE__ */ ge.jsx("div", { className: "typeahead-popover emoji-menu", children: /* @__PURE__ */ ge.jsx("ul", { children: a.map((f, h) => /* @__PURE__ */ ge.jsx("div", { children: /* @__PURE__ */ ge.jsx(
|
|
15011
14984
|
WN,
|
|
15012
14985
|
{
|
|
@@ -15099,12 +15072,12 @@ function ZN({ validateUrl: c }) {
|
|
|
15099
15072
|
throw new Error("LinkPlugin: LinkNode not registered on editor");
|
|
15100
15073
|
return Ur(t.registerCommand(Jc, (n) => {
|
|
15101
15074
|
if (n === null)
|
|
15102
|
-
return
|
|
15075
|
+
return gm(n), !0;
|
|
15103
15076
|
if (typeof n == "string")
|
|
15104
|
-
return !(c !== void 0 && !c(n)) && (
|
|
15077
|
+
return !(c !== void 0 && !c(n)) && (gm(n), !0);
|
|
15105
15078
|
{
|
|
15106
15079
|
const { url: e, target: s, rel: o, title: r } = n;
|
|
15107
|
-
return
|
|
15080
|
+
return gm(e, { rel: o, target: s, title: r }), !0;
|
|
15108
15081
|
}
|
|
15109
15082
|
}, Ir), c !== void 0 ? t.registerCommand(Xs, (n) => {
|
|
15110
15083
|
const e = At();
|
|
@@ -15162,14 +15135,14 @@ function nA(c) {
|
|
|
15162
15135
|
let e = 0;
|
|
15163
15136
|
for (const s of n)
|
|
15164
15137
|
if (ur(s))
|
|
15165
|
-
e = Math.max(
|
|
15138
|
+
e = Math.max(uy(s) + 1, e);
|
|
15166
15139
|
else if (Wr(s)) {
|
|
15167
15140
|
const o = s.getParent();
|
|
15168
15141
|
if (!ur(o))
|
|
15169
15142
|
throw new Error(
|
|
15170
15143
|
"ListMaxIndentLevelPlugin: A ListItemNode must have a ListNode for a parent."
|
|
15171
15144
|
);
|
|
15172
|
-
e = Math.max(
|
|
15145
|
+
e = Math.max(uy(o) + 1, e);
|
|
15173
15146
|
}
|
|
15174
15147
|
return e <= c;
|
|
15175
15148
|
}
|
|
@@ -15374,7 +15347,7 @@ function X1(c) {
|
|
|
15374
15347
|
r: t[0]
|
|
15375
15348
|
};
|
|
15376
15349
|
}
|
|
15377
|
-
function
|
|
15350
|
+
function xm({ r: c, g: t, b: n }) {
|
|
15378
15351
|
c /= 255, t /= 255, n /= 255;
|
|
15379
15352
|
const e = Math.max(c, t, n), s = e - Math.min(c, t, n), o = s ? (e === c ? (t - n) / s + (t < n ? 6 : 0) : e === t ? 2 + (n - c) / s : 4 + (c - t) / s) * 60 : 0, r = e ? s / e * 100 : 0, a = e * 100;
|
|
15380
15353
|
return { h: o, s: r, v: a };
|
|
@@ -15388,8 +15361,8 @@ function e_({ b: c, g: t, r: n }) {
|
|
|
15388
15361
|
return "#" + [n, t, c].map((e) => e.toString(16).padStart(2, "0")).join("");
|
|
15389
15362
|
}
|
|
15390
15363
|
function xc(c, t) {
|
|
15391
|
-
let n = Q1("#121212"), e = X1(n), s =
|
|
15392
|
-
return c === "hex" ? (n = Q1(t), e = X1(n), s =
|
|
15364
|
+
let n = Q1("#121212"), e = X1(n), s = xm(e);
|
|
15365
|
+
return c === "hex" ? (n = Q1(t), e = X1(n), s = xm(e)) : c === "rgb" ? (e = t, n = e_(e), s = xm(e)) : c === "hsv" && (s = t, e = lA(s), n = e_(e)), { hex: n, hsv: s, rgb: e };
|
|
15393
15366
|
}
|
|
15394
15367
|
function cA(c, t, ...n) {
|
|
15395
15368
|
if (!c)
|
|
@@ -15397,7 +15370,7 @@ function cA(c, t, ...n) {
|
|
|
15397
15370
|
"Internal Lexical error: invariant() is meant to be replaced at compile time. There is no runtime version. Error: " + t
|
|
15398
15371
|
);
|
|
15399
15372
|
}
|
|
15400
|
-
function
|
|
15373
|
+
function wm(c) {
|
|
15401
15374
|
const t = c.getShape();
|
|
15402
15375
|
return {
|
|
15403
15376
|
columns: t.toX - t.fromX + 1,
|
|
@@ -15477,8 +15450,8 @@ function pA({
|
|
|
15477
15450
|
r.getEditorState().read(() => {
|
|
15478
15451
|
const L = At();
|
|
15479
15452
|
if (fr(L)) {
|
|
15480
|
-
const P =
|
|
15481
|
-
d(
|
|
15453
|
+
const P = wm(L);
|
|
15454
|
+
d(wm(L)), f(
|
|
15482
15455
|
uA(L) && (P.columns > 1 || P.rows > 1)
|
|
15483
15456
|
);
|
|
15484
15457
|
}
|
|
@@ -15526,7 +15499,7 @@ function pA({
|
|
|
15526
15499
|
r.update(() => {
|
|
15527
15500
|
const L = At();
|
|
15528
15501
|
if (fr(L)) {
|
|
15529
|
-
const { columns: P, rows: T } =
|
|
15502
|
+
const { columns: P, rows: T } = wm(L), I = L.getNodes();
|
|
15530
15503
|
let D = null;
|
|
15531
15504
|
for (let N = 0; N < I.length; N++) {
|
|
15532
15505
|
const B = I[N];
|
|
@@ -15924,7 +15897,7 @@ function yA({ editor: c }) {
|
|
|
15924
15897
|
}
|
|
15925
15898
|
if (!(n.current && n.current.contains(y)) && t.current !== y) {
|
|
15926
15899
|
t.current = y;
|
|
15927
|
-
const S =
|
|
15900
|
+
const S = hy(y);
|
|
15928
15901
|
S && a !== S ? c.update(() => {
|
|
15929
15902
|
const C = yo(S.elem);
|
|
15930
15903
|
if (!C)
|
|
@@ -16994,7 +16967,7 @@ var PE = { exports: {} };
|
|
|
16994
16967
|
return C(ot, "input") && ot.type === He;
|
|
16995
16968
|
};
|
|
16996
16969
|
}
|
|
16997
|
-
function
|
|
16970
|
+
function eg(He) {
|
|
16998
16971
|
return function(ot) {
|
|
16999
16972
|
return (C(ot, "input") || C(ot, "button")) && ot.type === He;
|
|
17000
16973
|
};
|
|
@@ -17327,7 +17300,7 @@ var PE = { exports: {} };
|
|
|
17327
17300
|
for ($ in { radio: !0, checkbox: !0, file: !0, password: !0, image: !0 })
|
|
17328
17301
|
Q.pseudos[$] = li($);
|
|
17329
17302
|
for ($ in { submit: !0, reset: !0 })
|
|
17330
|
-
Q.pseudos[$] =
|
|
17303
|
+
Q.pseudos[$] = eg($);
|
|
17331
17304
|
function Ql() {
|
|
17332
17305
|
}
|
|
17333
17306
|
Ql.prototype = Q.filters = Q.pseudos, Q.setFilters = new Ql();
|
|
@@ -20364,7 +20337,7 @@ const kd = /* @__PURE__ */ Fd(TA), kA = (c, t, n) => {
|
|
|
20364
20337
|
const F = Array.from(C.querySelectorAll("tr")), L = C.getAttribute("id").split("_")[1] * 2;
|
|
20365
20338
|
setTimeout(() => {
|
|
20366
20339
|
O.update(() => {
|
|
20367
|
-
const P =
|
|
20340
|
+
const P = $h();
|
|
20368
20341
|
F.forEach((I) => {
|
|
20369
20342
|
const D = $l();
|
|
20370
20343
|
Array.from(I.querySelectorAll("td")).forEach((B) => {
|
|
@@ -20670,7 +20643,7 @@ function IE({
|
|
|
20670
20643
|
p(Ot);
|
|
20671
20644
|
} else {
|
|
20672
20645
|
const yt = ah(Ze) ? Ze.getTag() : Ze.getType();
|
|
20673
|
-
if (yt in PA && p(yt),
|
|
20646
|
+
if (yt in PA && p(yt), ly(Ze)) {
|
|
20674
20647
|
const Ot = Ze.getLanguage();
|
|
20675
20648
|
ue(
|
|
20676
20649
|
Ot ? Qw[Ot] || Ot : ""
|
|
@@ -20760,7 +20733,7 @@ function IE({
|
|
|
20760
20733
|
let $t = Ye;
|
|
20761
20734
|
qt === 0 && nt.offset !== 0 && ($t = $t.splitText(nt.offset)[1] || $t), qt === Ft.length - 1 && ($t = $t.splitText(Ze.offset)[0] || $t), $t.__style !== "" && $t.setStyle(""), $t.__format !== 0 && ($t.setFormat(0), v0($t).setFormat("")), Ye = $t;
|
|
20762
20735
|
} else
|
|
20763
|
-
ah(Ye) || Jk(Ye) ? Ye.replace(Ln(), !0) :
|
|
20736
|
+
ah(Ye) || Jk(Ye) ? Ye.replace(Ln(), !0) : gy(Ye) && Ye.setFormat("");
|
|
20764
20737
|
});
|
|
20765
20738
|
}
|
|
20766
20739
|
});
|
|
@@ -20782,7 +20755,7 @@ function IE({
|
|
|
20782
20755
|
i.update(() => {
|
|
20783
20756
|
if (m !== null) {
|
|
20784
20757
|
const nt = or(m);
|
|
20785
|
-
|
|
20758
|
+
ly(nt) && nt.setLanguage(Je);
|
|
20786
20759
|
}
|
|
20787
20760
|
});
|
|
20788
20761
|
},
|
|
@@ -21131,7 +21104,7 @@ function F0({
|
|
|
21131
21104
|
}) {
|
|
21132
21105
|
return /* @__PURE__ */ ge.jsx("div", { className: t || "Placeholder__root", children: c });
|
|
21133
21106
|
}
|
|
21134
|
-
const a_ = [["Cat", "rgb(125, 50, 0)"], ["Dog", "rgb(100, 0, 0)"], ["Rabbit", "rgb(150, 0, 0)"], ["Frog", "rgb(200, 0, 0)"], ["Fox", "rgb(200, 75, 0)"], ["Hedgehog", "rgb(0, 75, 0)"], ["Pigeon", "rgb(0, 125, 0)"], ["Squirrel", "rgb(75, 100, 0)"], ["Bear", "rgb(125, 100, 0)"], ["Tiger", "rgb(0, 0, 150)"], ["Leopard", "rgb(0, 0, 200)"], ["Zebra", "rgb(0, 0, 250)"], ["Wolf", "rgb(0, 100, 150)"], ["Owl", "rgb(0, 100, 100)"], ["Gull", "rgb(100, 0, 100)"], ["Squid", "rgb(150, 0, 150)"]], s_ = a_[Math.floor(Math.random() * a_.length)], FA =
|
|
21107
|
+
const a_ = [["Cat", "rgb(125, 50, 0)"], ["Dog", "rgb(100, 0, 0)"], ["Rabbit", "rgb(150, 0, 0)"], ["Frog", "rgb(200, 0, 0)"], ["Fox", "rgb(200, 75, 0)"], ["Hedgehog", "rgb(0, 75, 0)"], ["Pigeon", "rgb(0, 125, 0)"], ["Squirrel", "rgb(75, 100, 0)"], ["Bear", "rgb(125, 100, 0)"], ["Tiger", "rgb(0, 0, 150)"], ["Leopard", "rgb(0, 0, 200)"], ["Zebra", "rgb(0, 0, 250)"], ["Wolf", "rgb(0, 100, 150)"], ["Owl", "rgb(0, 100, 100)"], ["Gull", "rgb(100, 0, 100)"], ["Squid", "rgb(150, 0, 150)"]], s_ = a_[Math.floor(Math.random() * a_.length)], FA = yh({ clientID: 0, color: s_[1], isCollabActive: !1, name: s_[0], yjsDocMap: /* @__PURE__ */ new Map() });
|
|
21135
21108
|
function B0(c, t) {
|
|
21136
21109
|
const n = qy(FA);
|
|
21137
21110
|
return c != null && (n.name = c), t != null && (n.color = t), n;
|
|
@@ -21139,7 +21112,7 @@ function B0(c, t) {
|
|
|
21139
21112
|
const BA = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? as : Wt;
|
|
21140
21113
|
function RE({ onClear: c }) {
|
|
21141
21114
|
const [t] = In();
|
|
21142
|
-
return BA(() => t.registerCommand(
|
|
21115
|
+
return BA(() => t.registerCommand(Ch, (n) => (t.update(() => {
|
|
21143
21116
|
if (c == null) {
|
|
21144
21117
|
const e = Wn(), s = At(), o = Ln();
|
|
21145
21118
|
e.clear(), e.append(o), s !== null && o.select(), Et(s) && (s.format = 0);
|
|
@@ -21257,13 +21230,13 @@ function GA(c) {
|
|
|
21257
21230
|
}, Nn), c.registerCommand(Rl, () => {
|
|
21258
21231
|
const t = At();
|
|
21259
21232
|
return !!Et(t) && (t.insertLineBreak(), !0);
|
|
21260
|
-
}, Nn), c.registerCommand(
|
|
21233
|
+
}, Nn), c.registerCommand(xh, (t) => {
|
|
21261
21234
|
const n = At();
|
|
21262
21235
|
if (!Et(n))
|
|
21263
21236
|
return !1;
|
|
21264
21237
|
const e = t, s = e.shiftKey;
|
|
21265
21238
|
return !!eh(n, !0) && (e.preventDefault(), th(n, s, !0), !0);
|
|
21266
|
-
}, Nn), c.registerCommand(
|
|
21239
|
+
}, Nn), c.registerCommand(_h, (t) => {
|
|
21267
21240
|
const n = At();
|
|
21268
21241
|
if (!Et(n))
|
|
21269
21242
|
return !1;
|
|
@@ -21304,10 +21277,10 @@ function GA(c) {
|
|
|
21304
21277
|
r != null && Et(o) && v1(r, o);
|
|
21305
21278
|
}, { tag: "paste" });
|
|
21306
21279
|
}(t, c), !0);
|
|
21307
|
-
}, Nn), c.registerCommand(
|
|
21280
|
+
}, Nn), c.registerCommand(Sh, (t) => {
|
|
21308
21281
|
const n = At();
|
|
21309
21282
|
return !!Et(n) && (t.preventDefault(), !0);
|
|
21310
|
-
}, Nn), c.registerCommand(
|
|
21283
|
+
}, Nn), c.registerCommand(Eh, (t) => {
|
|
21311
21284
|
const n = At();
|
|
21312
21285
|
return !!Et(n) && (t.preventDefault(), !0);
|
|
21313
21286
|
}, Nn));
|
|
@@ -36079,7 +36052,7 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " "));
|
|
|
36079
36052
|
e && (mr = e && ((Qe = "oninput" in document) || ((Q = document.createElement("div")).setAttribute("oninput", "return;"), Qe = typeof Q.oninput == "function"), Qe), pf = mr && (!document.documentMode || 9 < document.documentMode));
|
|
36080
36053
|
var li = typeof Object.is == "function" ? Object.is : function(k, j) {
|
|
36081
36054
|
return k === j && (k !== 0 || 1 / k == 1 / j) || k != k && j != j;
|
|
36082
|
-
},
|
|
36055
|
+
}, eg = Object.prototype.hasOwnProperty;
|
|
36083
36056
|
function ms(k, j) {
|
|
36084
36057
|
if (!li(k, j)) {
|
|
36085
36058
|
if (typeof k != "object" || k === null || typeof j != "object" || j === null)
|
|
@@ -36088,7 +36061,7 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " "));
|
|
|
36088
36061
|
if (V.length !== oe.length)
|
|
36089
36062
|
return !1;
|
|
36090
36063
|
for (oe = 0; oe < V.length; oe++)
|
|
36091
|
-
if (!
|
|
36064
|
+
if (!eg.call(j, V[oe]) || !li(k[V[oe]], j[V[oe]]))
|
|
36092
36065
|
return !1;
|
|
36093
36066
|
}
|
|
36094
36067
|
return !0;
|
|
@@ -36508,7 +36481,7 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " "));
|
|
|
36508
36481
|
}
|
|
36509
36482
|
return null;
|
|
36510
36483
|
}
|
|
36511
|
-
var
|
|
36484
|
+
var tg = 0, bs = "__reactFiber$" + (Q = Math.random().toString(36).slice(2)), mf = "__reactProps$" + Q, tc = "__reactContainer$" + Q, eb = "__reactEvents$" + Q;
|
|
36512
36485
|
function hl(k) {
|
|
36513
36486
|
var j = k[bs];
|
|
36514
36487
|
if (j)
|
|
@@ -36542,15 +36515,15 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " "));
|
|
|
36542
36515
|
var j = k[eb];
|
|
36543
36516
|
return j === void 0 ? k[eb] = /* @__PURE__ */ new Set() : j;
|
|
36544
36517
|
}
|
|
36545
|
-
var
|
|
36518
|
+
var ng = [], ku = -1;
|
|
36546
36519
|
function vs(k) {
|
|
36547
36520
|
return { current: k };
|
|
36548
36521
|
}
|
|
36549
36522
|
function Dr(k) {
|
|
36550
|
-
ku < 0 || (k.current =
|
|
36523
|
+
ku < 0 || (k.current = ng[ku], ng[ku] = null, ku--);
|
|
36551
36524
|
}
|
|
36552
36525
|
function Zr(k, j) {
|
|
36553
|
-
|
|
36526
|
+
ng[++ku] = k.current, k.current = j;
|
|
36554
36527
|
}
|
|
36555
36528
|
var _s = {}, Ho = vs(_s), di = vs(!1), gl = _s;
|
|
36556
36529
|
function rc(k, j) {
|
|
@@ -36568,7 +36541,7 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " "));
|
|
|
36568
36541
|
function Ci(k) {
|
|
36569
36542
|
return k.childContextTypes != null;
|
|
36570
36543
|
}
|
|
36571
|
-
function
|
|
36544
|
+
function rg() {
|
|
36572
36545
|
Dr(di), Dr(Ho);
|
|
36573
36546
|
}
|
|
36574
36547
|
function nb(k, j, V) {
|
|
@@ -36594,9 +36567,9 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " "));
|
|
|
36594
36567
|
throw Error(i(169));
|
|
36595
36568
|
V ? (k = rb(k, j, gl), oe.__reactInternalMemoizedMergedChildContext = k, Dr(di), Dr(Ho), Zr(Ho, k)) : Dr(di), Zr(di, V);
|
|
36596
36569
|
}
|
|
36597
|
-
var
|
|
36598
|
-
}, $a = null, _f = null,
|
|
36599
|
-
return
|
|
36570
|
+
var og = null, ml = null, v2 = l.unstable_runWithPriority, ig = l.unstable_scheduleCallback, ag = l.unstable_cancelCallback, _2 = l.unstable_shouldYield, sg = (Qe = l.unstable_requestPaint, l.unstable_now), x2 = l.unstable_getCurrentPriorityLevel, vf = l.unstable_ImmediatePriority, ib = l.unstable_UserBlockingPriority, ab = l.unstable_NormalPriority, sb = l.unstable_LowPriority, lb = l.unstable_IdlePriority, lg = {}, w2 = Qe !== void 0 ? Qe : function() {
|
|
36571
|
+
}, $a = null, _f = null, cg = !1, cb = sg(), qo = cb < 1e4 ? sg : function() {
|
|
36572
|
+
return sg() - cb;
|
|
36600
36573
|
};
|
|
36601
36574
|
function oc() {
|
|
36602
36575
|
switch (x2()) {
|
|
@@ -36634,15 +36607,15 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " "));
|
|
|
36634
36607
|
return k = ub(k), v2(k, j);
|
|
36635
36608
|
}
|
|
36636
36609
|
function Ou(k, j, V) {
|
|
36637
|
-
return k = ub(k),
|
|
36610
|
+
return k = ub(k), ig(k, j, V);
|
|
36638
36611
|
}
|
|
36639
36612
|
function ya() {
|
|
36640
36613
|
var k;
|
|
36641
|
-
_f !== null && (k = _f, _f = null,
|
|
36614
|
+
_f !== null && (k = _f, _f = null, ag(k)), db();
|
|
36642
36615
|
}
|
|
36643
36616
|
function db() {
|
|
36644
|
-
if (!
|
|
36645
|
-
|
|
36617
|
+
if (!cg && $a !== null) {
|
|
36618
|
+
cg = !0;
|
|
36646
36619
|
var k = 0;
|
|
36647
36620
|
try {
|
|
36648
36621
|
var j = $a;
|
|
@@ -36652,9 +36625,9 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " "));
|
|
|
36652
36625
|
;
|
|
36653
36626
|
}), $a = null;
|
|
36654
36627
|
} catch (V) {
|
|
36655
|
-
throw $a !== null && ($a = $a.slice(k + 1)),
|
|
36628
|
+
throw $a !== null && ($a = $a.slice(k + 1)), ig(vf, ya), V;
|
|
36656
36629
|
} finally {
|
|
36657
|
-
|
|
36630
|
+
cg = !1;
|
|
36658
36631
|
}
|
|
36659
36632
|
}
|
|
36660
36633
|
}
|
|
@@ -36666,10 +36639,10 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " "));
|
|
|
36666
36639
|
return j;
|
|
36667
36640
|
}
|
|
36668
36641
|
var xf = vs(null), wf = null, ic = null, Sf = null;
|
|
36669
|
-
function
|
|
36642
|
+
function ug() {
|
|
36670
36643
|
Sf = ic = wf = null;
|
|
36671
36644
|
}
|
|
36672
|
-
function
|
|
36645
|
+
function dg(k) {
|
|
36673
36646
|
var j = xf.current;
|
|
36674
36647
|
Dr(xf), k.type._context._currentValue = j;
|
|
36675
36648
|
}
|
|
@@ -36699,7 +36672,7 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " "));
|
|
|
36699
36672
|
return k._currentValue;
|
|
36700
36673
|
}
|
|
36701
36674
|
var xs = !1;
|
|
36702
|
-
function
|
|
36675
|
+
function fg(k) {
|
|
36703
36676
|
k.updateQueue = { baseState: k.memoizedState, firstBaseUpdate: null, lastBaseUpdate: null, shared: { pending: null }, effects: null };
|
|
36704
36677
|
}
|
|
36705
36678
|
function pb(k, j) {
|
|
@@ -36808,8 +36781,8 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " "));
|
|
|
36808
36781
|
function vb(k, j, V, oe) {
|
|
36809
36782
|
k = j.state, typeof j.componentWillReceiveProps == "function" && j.componentWillReceiveProps(V, oe), typeof j.UNSAFE_componentWillReceiveProps == "function" && j.UNSAFE_componentWillReceiveProps(V, oe), j.state !== k && Cf.enqueueReplaceState(j, j.state, null);
|
|
36810
36783
|
}
|
|
36811
|
-
function
|
|
36812
|
-
var ae = k.stateNode, pe = (ae.props = V, ae.state = k.memoizedState, ae.refs = mb,
|
|
36784
|
+
function pg(k, j, V, oe) {
|
|
36785
|
+
var ae = k.stateNode, pe = (ae.props = V, ae.state = k.memoizedState, ae.refs = mb, fg(k), j.contextType);
|
|
36813
36786
|
typeof pe == "object" && pe !== null ? ae.context = zi(pe) : (pe = Ci(j) ? gl : Ho.current, ae.context = rc(k, pe)), Nu(k, V, ae, oe), ae.state = k.memoizedState, typeof (pe = j.getDerivedStateFromProps) == "function" && (Ef(k, 0, pe, V), ae.state = k.memoizedState), typeof j.getDerivedStateFromProps == "function" || typeof ae.getSnapshotBeforeUpdate == "function" || typeof ae.UNSAFE_componentWillMount != "function" && typeof ae.componentWillMount != "function" || (j = ae.state, typeof ae.componentWillMount == "function" && ae.componentWillMount(), typeof ae.UNSAFE_componentWillMount == "function" && ae.UNSAFE_componentWillMount(), j !== ae.state && Cf.enqueueReplaceState(ae, ae.state, null), Nu(k, V, ae, oe), ae.state = k.memoizedState), typeof ae.componentDidMount == "function" && (k.flags |= 4);
|
|
36814
36787
|
}
|
|
36815
36788
|
var Tf = Array.isArray;
|
|
@@ -36871,26 +36844,26 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " "));
|
|
|
36871
36844
|
return k && mt.alternate === null && (mt.flags = 2), mt;
|
|
36872
36845
|
}
|
|
36873
36846
|
function De(mt, St, jt, yn) {
|
|
36874
|
-
return St === null || St.tag !== 6 ? (St =
|
|
36847
|
+
return St === null || St.tag !== 6 ? (St = Jg(jt, mt.mode, yn)).return = mt : (St = ae(St, jt)).return = mt, St;
|
|
36875
36848
|
}
|
|
36876
36849
|
function Le(mt, St, jt, yn) {
|
|
36877
36850
|
return St !== null && St.elementType === jt.type ? ((yn = ae(St, jt.props)).ref = Au(0, St, jt), yn.return = mt) : ((yn = qf(jt.type, jt.key, jt.props, null, mt.mode, yn)).ref = Au(0, St, jt), yn.return = mt), yn;
|
|
36878
36851
|
}
|
|
36879
36852
|
function at(mt, St, jt, yn) {
|
|
36880
|
-
return St === null || St.tag !== 4 || St.stateNode.containerInfo !== jt.containerInfo || St.stateNode.implementation !== jt.implementation ? (St =
|
|
36853
|
+
return St === null || St.tag !== 4 || St.stateNode.containerInfo !== jt.containerInfo || St.stateNode.implementation !== jt.implementation ? (St = Vg(jt, mt.mode, yn)).return = mt : (St = ae(St, jt.children || [])).return = mt, St;
|
|
36881
36854
|
}
|
|
36882
36855
|
function Ht(mt, St, jt, yn, tn) {
|
|
36883
36856
|
return St === null || St.tag !== 7 ? (St = gc(jt, mt.mode, yn, tn)).return = mt : (St = ae(St, jt)).return = mt, St;
|
|
36884
36857
|
}
|
|
36885
36858
|
function zt(mt, St, jt) {
|
|
36886
36859
|
if (typeof St == "string" || typeof St == "number")
|
|
36887
|
-
return (St =
|
|
36860
|
+
return (St = Jg("" + St, mt.mode, jt)).return = mt, St;
|
|
36888
36861
|
if (typeof St == "object" && St !== null) {
|
|
36889
36862
|
switch (St.$$typeof) {
|
|
36890
36863
|
case C:
|
|
36891
36864
|
return (jt = qf(St.type, St.key, St.props, null, mt.mode, jt)).ref = Au(0, null, St), jt.return = mt, jt;
|
|
36892
36865
|
case O:
|
|
36893
|
-
return (St =
|
|
36866
|
+
return (St = Vg(St, mt.mode, jt)).return = mt, St;
|
|
36894
36867
|
}
|
|
36895
36868
|
if (Tf(St) || W(St))
|
|
36896
36869
|
return (St = gc(St, mt.mode, jt, null)).return = mt, St;
|
|
@@ -36972,12 +36945,12 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " "));
|
|
|
36972
36945
|
}
|
|
36973
36946
|
j(mt, St), St = St.sibling;
|
|
36974
36947
|
}
|
|
36975
|
-
(St =
|
|
36948
|
+
(St = Vg(jt, mt.mode, yn)).return = mt, mt = St;
|
|
36976
36949
|
}
|
|
36977
36950
|
return ve(mt);
|
|
36978
36951
|
}
|
|
36979
36952
|
if (typeof jt == "string" || typeof jt == "number")
|
|
36980
|
-
return jt = "" + jt, (St = St !== null && St.tag === 6 ? (V(mt, St.sibling), ae(St, jt)) : (V(mt, St),
|
|
36953
|
+
return jt = "" + jt, (St = St !== null && St.tag === 6 ? (V(mt, St.sibling), ae(St, jt)) : (V(mt, St), Jg(jt, mt.mode, yn))).return = mt, ve(mt = St);
|
|
36981
36954
|
if (Tf(jt)) {
|
|
36982
36955
|
for (var En = mt, jn = St, Pn = jt, nr = yn, jr = null, wr = null, Jn = jn, Vn = jn = 0, cr = null; Jn !== null && Vn < Pn.length; Vn++) {
|
|
36983
36956
|
Jn.index > Vn ? (cr = Jn, Jn = null) : cr = Jn.sibling;
|
|
@@ -36996,21 +36969,21 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " "));
|
|
|
36996
36969
|
else {
|
|
36997
36970
|
for (Jn = oe(En, Jn); Vn < Pn.length; Vn++)
|
|
36998
36971
|
(cr = Qn(Jn, En, Vn, Pn[Vn], nr)) !== null && (k && cr.alternate !== null && Jn.delete(cr.key === null ? Vn : cr.key), jn = pe(cr, jn, Vn), wr === null ? jr = cr : wr.sibling = cr, wr = cr);
|
|
36999
|
-
k && Jn.forEach(function(
|
|
37000
|
-
return j(En,
|
|
36972
|
+
k && Jn.forEach(function(Qg) {
|
|
36973
|
+
return j(En, Qg);
|
|
37001
36974
|
});
|
|
37002
36975
|
}
|
|
37003
36976
|
return jr;
|
|
37004
36977
|
}
|
|
37005
36978
|
if (W(jt)) {
|
|
37006
|
-
var Qr = mt, qi = St, wa = jt,
|
|
36979
|
+
var Qr = mt, qi = St, wa = jt, Zg = yn, wl = W(wa);
|
|
37007
36980
|
if (typeof wl != "function")
|
|
37008
36981
|
throw Error(i(150));
|
|
37009
36982
|
if ((wa = wl.call(wa)) == null)
|
|
37010
36983
|
throw Error(i(151));
|
|
37011
36984
|
for (var Wa = wl = null, So = qi, Ja = qi = 0, Vf = null, Hr = wa.next(); So !== null && !Hr.done; Ja++, Hr = wa.next()) {
|
|
37012
36985
|
So.index > Ja ? (Vf = So, So = null) : Vf = So.sibling;
|
|
37013
|
-
var mc = ln(Qr, So, Hr.value,
|
|
36986
|
+
var mc = ln(Qr, So, Hr.value, Zg);
|
|
37014
36987
|
if (mc === null) {
|
|
37015
36988
|
So === null && (So = Vf);
|
|
37016
36989
|
break;
|
|
@@ -37021,12 +36994,12 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " "));
|
|
|
37021
36994
|
V(Qr, So);
|
|
37022
36995
|
else if (So === null)
|
|
37023
36996
|
for (; !Hr.done; Ja++, Hr = wa.next())
|
|
37024
|
-
(Hr = zt(Qr, Hr.value,
|
|
36997
|
+
(Hr = zt(Qr, Hr.value, Zg)) !== null && (qi = pe(Hr, qi, Ja), Wa === null ? wl = Hr : Wa.sibling = Hr, Wa = Hr);
|
|
37025
36998
|
else {
|
|
37026
36999
|
for (So = oe(Qr, So); !Hr.done; Ja++, Hr = wa.next())
|
|
37027
|
-
(Hr = Qn(So, Qr, Ja, Hr.value,
|
|
37028
|
-
k && So.forEach(function(
|
|
37029
|
-
return j(Qr,
|
|
37000
|
+
(Hr = Qn(So, Qr, Ja, Hr.value, Zg)) !== null && (k && Hr.alternate !== null && So.delete(Hr.key === null ? Ja : Hr.key), qi = pe(Hr, qi, Ja), Wa === null ? wl = Hr : Wa.sibling = Hr, Wa = Hr);
|
|
37001
|
+
k && So.forEach(function(Qg) {
|
|
37002
|
+
return j(Qr, Qg);
|
|
37030
37003
|
});
|
|
37031
37004
|
}
|
|
37032
37005
|
return wl;
|
|
@@ -37049,7 +37022,7 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " "));
|
|
|
37049
37022
|
throw Error(i(174));
|
|
37050
37023
|
return k;
|
|
37051
37024
|
}
|
|
37052
|
-
function
|
|
37025
|
+
function hg(k, j) {
|
|
37053
37026
|
switch (Zr(Iu, j), Zr(Pu, k), Zr(ba, ju), k = j.nodeType) {
|
|
37054
37027
|
case 9:
|
|
37055
37028
|
case 11:
|
|
@@ -37068,7 +37041,7 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " "));
|
|
|
37068
37041
|
var j = bl(ba.current), V = Fe(j, k.type);
|
|
37069
37042
|
j !== V && (Zr(Pu, k), Zr(ba, V));
|
|
37070
37043
|
}
|
|
37071
|
-
function
|
|
37044
|
+
function gg(k) {
|
|
37072
37045
|
Pu.current === k && (Dr(ba), Dr(Pu));
|
|
37073
37046
|
}
|
|
37074
37047
|
var to = vs(0);
|
|
@@ -37112,7 +37085,7 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " "));
|
|
|
37112
37085
|
return;
|
|
37113
37086
|
}
|
|
37114
37087
|
}
|
|
37115
|
-
function
|
|
37088
|
+
function mg(k) {
|
|
37116
37089
|
if (va) {
|
|
37117
37090
|
var j = Es;
|
|
37118
37091
|
if (j) {
|
|
@@ -37165,11 +37138,11 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " "));
|
|
|
37165
37138
|
return 1;
|
|
37166
37139
|
}
|
|
37167
37140
|
}
|
|
37168
|
-
function
|
|
37141
|
+
function yg() {
|
|
37169
37142
|
Es = Ua = null, va = !1;
|
|
37170
37143
|
}
|
|
37171
37144
|
var lc = [];
|
|
37172
|
-
function
|
|
37145
|
+
function bg() {
|
|
37173
37146
|
for (var k = 0; k < lc.length; k++)
|
|
37174
37147
|
lc[k]._workInProgressVersionPrimary = null;
|
|
37175
37148
|
lc.length = 0;
|
|
@@ -37178,7 +37151,7 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " "));
|
|
|
37178
37151
|
function fi() {
|
|
37179
37152
|
throw Error(i(321));
|
|
37180
37153
|
}
|
|
37181
|
-
function
|
|
37154
|
+
function vg(k, j) {
|
|
37182
37155
|
if (j !== null) {
|
|
37183
37156
|
for (var V = 0; V < j.length && V < k.length; V++)
|
|
37184
37157
|
if (!li(k[V], j[V]))
|
|
@@ -37186,7 +37159,7 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " "));
|
|
|
37186
37159
|
return 1;
|
|
37187
37160
|
}
|
|
37188
37161
|
}
|
|
37189
|
-
function
|
|
37162
|
+
function _g(k, j, V, oe, ae, pe) {
|
|
37190
37163
|
if (Ru = pe, (no = j).memoizedState = null, j.updateQueue = null, j.lanes = 0, Mu.current = k === null || k.memoizedState === null ? E2 : C2, k = V(oe, ae), Lu) {
|
|
37191
37164
|
pe = 0;
|
|
37192
37165
|
do
|
|
@@ -37283,14 +37256,14 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " "));
|
|
|
37283
37256
|
});
|
|
37284
37257
|
}
|
|
37285
37258
|
});
|
|
37286
|
-
}, [j, oe]), li(ln, V) && li(Qn, j) && li(mt, oe) || ((k = { pending: null, dispatch: null, lastRenderedReducer: _a, lastRenderedState: at }).dispatch = Le =
|
|
37259
|
+
}, [j, oe]), li(ln, V) && li(Qn, j) && li(mt, oe) || ((k = { pending: null, dispatch: null, lastRenderedReducer: _a, lastRenderedState: at }).dispatch = Le = Eg.bind(null, no, k), Ht.queue = k, Ht.baseQueue = null, at = Tb(ae, j, V), Ht.memoizedState = Ht.baseState = at), at;
|
|
37287
37260
|
}
|
|
37288
37261
|
function Ob(k, j, V) {
|
|
37289
37262
|
return kb(_l(), k, j, V);
|
|
37290
37263
|
}
|
|
37291
37264
|
function Bu(k) {
|
|
37292
37265
|
var j = vl();
|
|
37293
|
-
return typeof k == "function" && (k = k()), j.memoizedState = j.baseState = k, k = (k = j.queue = { pending: null, dispatch: null, lastRenderedReducer: _a, lastRenderedState: k }).dispatch =
|
|
37266
|
+
return typeof k == "function" && (k = k()), j.memoizedState = j.baseState = k, k = (k = j.queue = { pending: null, dispatch: null, lastRenderedReducer: _a, lastRenderedState: k }).dispatch = Eg.bind(null, no, k), [j.memoizedState, k];
|
|
37294
37267
|
}
|
|
37295
37268
|
function Pf(k, j, V, oe) {
|
|
37296
37269
|
return k = { tag: k, create: j, destroy: V, deps: oe, next: null }, (j = no.updateQueue) === null ? (no.updateQueue = j = { lastEffect: null }).lastEffect = k.next = k : (V = j.lastEffect) === null ? j.lastEffect = k.next = k : (oe = V.next, (V.next = k).next = oe, j.lastEffect = k), k;
|
|
@@ -37301,27 +37274,27 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " "));
|
|
|
37301
37274
|
function If() {
|
|
37302
37275
|
return _l().memoizedState;
|
|
37303
37276
|
}
|
|
37304
|
-
function
|
|
37277
|
+
function xg(k, j, V, oe) {
|
|
37305
37278
|
var ae = vl();
|
|
37306
37279
|
no.flags |= k, ae.memoizedState = Pf(1 | j, V, void 0, oe === void 0 ? null : oe);
|
|
37307
37280
|
}
|
|
37308
|
-
function
|
|
37281
|
+
function wg(k, j, V, oe) {
|
|
37309
37282
|
var ae = _l(), pe = void (oe = oe === void 0 ? null : oe);
|
|
37310
37283
|
if (Qo !== null) {
|
|
37311
37284
|
var ve = Qo.memoizedState;
|
|
37312
|
-
if (pe = ve.destroy, oe !== null &&
|
|
37285
|
+
if (pe = ve.destroy, oe !== null && vg(oe, ve.deps))
|
|
37313
37286
|
return void Pf(j, V, pe, oe);
|
|
37314
37287
|
}
|
|
37315
37288
|
no.flags |= k, ae.memoizedState = Pf(1 | j, V, pe, oe);
|
|
37316
37289
|
}
|
|
37317
37290
|
function Ab(k, j) {
|
|
37318
|
-
return
|
|
37291
|
+
return xg(516, 4, k, j);
|
|
37319
37292
|
}
|
|
37320
37293
|
function Mf(k, j) {
|
|
37321
|
-
return
|
|
37294
|
+
return wg(516, 4, k, j);
|
|
37322
37295
|
}
|
|
37323
37296
|
function jb(k, j) {
|
|
37324
|
-
return
|
|
37297
|
+
return wg(4, 2, k, j);
|
|
37325
37298
|
}
|
|
37326
37299
|
function Pb(k, j) {
|
|
37327
37300
|
return typeof j == "function" ? (k = k(), j(k), function() {
|
|
@@ -37331,19 +37304,19 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " "));
|
|
|
37331
37304
|
}) : void 0;
|
|
37332
37305
|
}
|
|
37333
37306
|
function Ib(k, j, V) {
|
|
37334
|
-
return V = V != null ? V.concat([k]) : null,
|
|
37307
|
+
return V = V != null ? V.concat([k]) : null, wg(4, 2, Pb.bind(null, j, k), V);
|
|
37335
37308
|
}
|
|
37336
|
-
function
|
|
37309
|
+
function Sg() {
|
|
37337
37310
|
}
|
|
37338
37311
|
function Mb(k, j) {
|
|
37339
37312
|
var V = _l(), oe = (j = j === void 0 ? null : j, V.memoizedState);
|
|
37340
|
-
return oe !== null && j !== null &&
|
|
37313
|
+
return oe !== null && j !== null && vg(j, oe[1]) ? oe[0] : (V.memoizedState = [k, j], k);
|
|
37341
37314
|
}
|
|
37342
37315
|
function Rb(k, j) {
|
|
37343
37316
|
var V = _l(), oe = (j = j === void 0 ? null : j, V.memoizedState);
|
|
37344
|
-
return oe !== null && j !== null &&
|
|
37317
|
+
return oe !== null && j !== null && vg(j, oe[1]) ? oe[0] : (k = k(), V.memoizedState = [k, j], k);
|
|
37345
37318
|
}
|
|
37346
|
-
function
|
|
37319
|
+
function Eg(k, j, V) {
|
|
37347
37320
|
var oe = ki(), ae = ks(k), pe = { lane: ae, action: V, eagerReducer: null, eagerState: null, next: null }, ve = j.pending;
|
|
37348
37321
|
if (ve === null ? pe.next = pe : (pe.next = ve.next, ve.next = pe), j.pending = pe, ve = k.alternate, k === no || ve !== null && ve === no)
|
|
37349
37322
|
Lu = jf = !0;
|
|
@@ -37361,16 +37334,16 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " "));
|
|
|
37361
37334
|
var Rf = { readContext: zi, useCallback: fi, useContext: fi, useEffect: fi, useImperativeHandle: fi, useLayoutEffect: fi, useMemo: fi, useReducer: fi, useRef: fi, useState: fi, useDebugValue: fi, useDeferredValue: fi, useTransition: fi, useMutableSource: fi, useOpaqueIdentifier: fi, unstable_isNewReconciler: !1 }, E2 = { readContext: zi, useCallback: function(k, j) {
|
|
37362
37335
|
return vl().memoizedState = [k, j === void 0 ? null : j], k;
|
|
37363
37336
|
}, useContext: zi, useEffect: Ab, useImperativeHandle: function(k, j, V) {
|
|
37364
|
-
return V = V != null ? V.concat([k]) : null,
|
|
37337
|
+
return V = V != null ? V.concat([k]) : null, xg(4, 2, Pb.bind(null, j, k), V);
|
|
37365
37338
|
}, useLayoutEffect: function(k, j) {
|
|
37366
|
-
return
|
|
37339
|
+
return xg(4, 2, k, j);
|
|
37367
37340
|
}, useMemo: function(k, j) {
|
|
37368
37341
|
var V = vl();
|
|
37369
37342
|
return j = j === void 0 ? null : j, k = k(), V.memoizedState = [k, j], k;
|
|
37370
37343
|
}, useReducer: function(k, j, V) {
|
|
37371
37344
|
var oe = vl();
|
|
37372
|
-
return j = V !== void 0 ? V(j) : j, oe.memoizedState = oe.baseState = j, k = (k = oe.queue = { pending: null, dispatch: null, lastRenderedReducer: k, lastRenderedState: j }).dispatch =
|
|
37373
|
-
}, useRef: Nb, useState: Bu, useDebugValue:
|
|
37345
|
+
return j = V !== void 0 ? V(j) : j, oe.memoizedState = oe.baseState = j, k = (k = oe.queue = { pending: null, dispatch: null, lastRenderedReducer: k, lastRenderedState: j }).dispatch = Eg.bind(null, no, k), [oe.memoizedState, k];
|
|
37346
|
+
}, useRef: Nb, useState: Bu, useDebugValue: Sg, useDeferredValue: function(k) {
|
|
37374
37347
|
var j = Bu(k), V = j[0], oe = j[1];
|
|
37375
37348
|
return Ab(function() {
|
|
37376
37349
|
var ae = $i.transition;
|
|
@@ -37403,13 +37376,13 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " "));
|
|
|
37403
37376
|
}, useOpaqueIdentifier: function() {
|
|
37404
37377
|
var k, j, V;
|
|
37405
37378
|
return va ? (k = !1, V = { $$typeof: H, toString: V = function() {
|
|
37406
|
-
throw k || (k = !0, j("r:" + (
|
|
37379
|
+
throw k || (k = !0, j("r:" + (tg++).toString(36))), Error(i(355));
|
|
37407
37380
|
}, valueOf: V }, j = Bu(V)[1], !(2 & no.mode) && (no.flags |= 516, Pf(5, function() {
|
|
37408
|
-
j("r:" + (
|
|
37409
|
-
}, void 0, null))) : Bu(V = "r:" + (
|
|
37381
|
+
j("r:" + (tg++).toString(36));
|
|
37382
|
+
}, void 0, null))) : Bu(V = "r:" + (tg++).toString(36)), V;
|
|
37410
37383
|
}, unstable_isNewReconciler: !1 }, C2 = { readContext: zi, useCallback: Mb, useContext: zi, useEffect: Mf, useImperativeHandle: Ib, useLayoutEffect: jb, useMemo: Rb, useReducer: Du, useRef: If, useState: function() {
|
|
37411
37384
|
return Du(_a);
|
|
37412
|
-
}, useDebugValue:
|
|
37385
|
+
}, useDebugValue: Sg, useDeferredValue: function(k) {
|
|
37413
37386
|
var j = Du(_a), V = j[0], oe = j[1];
|
|
37414
37387
|
return Mf(function() {
|
|
37415
37388
|
var ae = $i.transition;
|
|
@@ -37427,7 +37400,7 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " "));
|
|
|
37427
37400
|
return Du(_a)[0];
|
|
37428
37401
|
}, unstable_isNewReconciler: !1 }, T2 = { readContext: zi, useCallback: Mb, useContext: zi, useEffect: Mf, useImperativeHandle: Ib, useLayoutEffect: jb, useMemo: Rb, useReducer: Fu, useRef: If, useState: function() {
|
|
37429
37402
|
return Fu(_a);
|
|
37430
|
-
}, useDebugValue:
|
|
37403
|
+
}, useDebugValue: Sg, useDeferredValue: function(k) {
|
|
37431
37404
|
var j = Fu(_a), V = j[0], oe = j[1];
|
|
37432
37405
|
return Mf(function() {
|
|
37433
37406
|
var ae = $i.transition;
|
|
@@ -37450,11 +37423,11 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " "));
|
|
|
37450
37423
|
function Lb(k, j, V, oe, ae) {
|
|
37451
37424
|
V = V.render;
|
|
37452
37425
|
var pe = j.ref;
|
|
37453
|
-
return ac(j, ae), oe =
|
|
37426
|
+
return ac(j, ae), oe = _g(k, j, V, oe, pe, ae), k === null || ea ? (j.flags |= 1, Ti(k, j, oe, ae), j.child) : (j.updateQueue = k.updateQueue, j.flags &= -517, k.lanes &= ~ae, Ha(k, j, ae));
|
|
37454
37427
|
}
|
|
37455
37428
|
function Db(k, j, V, oe, ae, pe) {
|
|
37456
37429
|
var ve;
|
|
37457
|
-
return k === null ? typeof (ve = V.type) != "function" ||
|
|
37430
|
+
return k === null ? typeof (ve = V.type) != "function" || qg(ve) || ve.defaultProps !== void 0 || V.compare !== null || V.defaultProps !== void 0 ? ((k = qf(V.type, null, oe, j, j.mode, pe)).ref = j.ref, (k.return = j).child = k) : (j.tag = 15, j.type = ve, Fb(k, j, ve, oe, ae, pe)) : (ve = k.child, ae & pe || (ae = ve.memoizedProps, !(V = (V = V.compare) !== null ? V : ms)(ae, oe)) || k.ref !== j.ref ? (j.flags |= 1, (k = js(ve, oe)).ref = j.ref, (k.return = j).child = k) : Ha(k, j, pe));
|
|
37458
37431
|
}
|
|
37459
37432
|
function Fb(k, j, V, oe, ae, pe) {
|
|
37460
37433
|
if (k !== null && ms(k.memoizedProps, oe) && k.ref === j.ref) {
|
|
@@ -37462,7 +37435,7 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " "));
|
|
|
37462
37435
|
return j.lanes = k.lanes, Ha(k, j, pe);
|
|
37463
37436
|
16384 & k.flags && (ea = !0);
|
|
37464
37437
|
}
|
|
37465
|
-
return
|
|
37438
|
+
return Cg(k, j, V, oe, pe);
|
|
37466
37439
|
}
|
|
37467
37440
|
function Bb(k, j, V) {
|
|
37468
37441
|
var oe = j.pendingProps, ae = oe.children, pe = k !== null ? k.memoizedState : null;
|
|
@@ -37481,15 +37454,15 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " "));
|
|
|
37481
37454
|
var V = j.ref;
|
|
37482
37455
|
(k === null && V !== null || k !== null && k.ref !== V) && (j.flags |= 128);
|
|
37483
37456
|
}
|
|
37484
|
-
function
|
|
37457
|
+
function Cg(k, j, V, oe, ae) {
|
|
37485
37458
|
var pe = rc(j, Ci(V) ? gl : Ho.current);
|
|
37486
|
-
return ac(j, ae), V =
|
|
37459
|
+
return ac(j, ae), V = _g(k, j, V, oe, pe, ae), k === null || ea ? (j.flags |= 1, Ti(k, j, V, ae), j.child) : (j.updateQueue = k.updateQueue, j.flags &= -517, k.lanes &= ~ae, Ha(k, j, ae));
|
|
37487
37460
|
}
|
|
37488
37461
|
function $b(k, j, V, oe, ae) {
|
|
37489
37462
|
var pe, ve, De, Le, at, Ht, zt, ln, Qn, mt;
|
|
37490
|
-
return Ci(V) ? (pe = !0, bf(j)) : pe = !1, ac(j, ae), oe = j.stateNode === null ? (k !== null && (k.alternate = null, j.alternate = null, j.flags |= 2), bb(j, V, oe),
|
|
37463
|
+
return Ci(V) ? (pe = !0, bf(j)) : pe = !1, ac(j, ae), oe = j.stateNode === null ? (k !== null && (k.alternate = null, j.alternate = null, j.flags |= 2), bb(j, V, oe), pg(j, V, oe, ae), !0) : k === null ? ((ve = j.stateNode).props = De = j.memoizedProps, ln = ve.context, Le = typeof (Le = V.contextType) == "object" && Le !== null ? zi(Le) : rc(j, Le = Ci(V) ? gl : Ho.current), (Ht = typeof (at = V.getDerivedStateFromProps) == "function" || typeof ve.getSnapshotBeforeUpdate == "function") || typeof ve.UNSAFE_componentWillReceiveProps != "function" && typeof ve.componentWillReceiveProps != "function" || De === oe && ln === Le || vb(0, ve, oe, Le), xs = !1, ve.state = zt = j.memoizedState, Nu(j, oe, ve, ae), ln = j.memoizedState, De !== oe || zt !== ln || di.current || xs ? (typeof at == "function" && (Ef(j, 0, at, oe), ln = j.memoizedState), (De = xs || yb(j, V, De, oe, zt, ln, Le)) ? (Ht || typeof ve.UNSAFE_componentWillMount != "function" && typeof ve.componentWillMount != "function" || (typeof ve.componentWillMount == "function" && ve.componentWillMount(), typeof ve.UNSAFE_componentWillMount == "function" && ve.UNSAFE_componentWillMount()), typeof ve.componentDidMount == "function" && (j.flags |= 4)) : (typeof ve.componentDidMount == "function" && (j.flags |= 4), j.memoizedProps = oe, j.memoizedState = ln), ve.props = oe, ve.state = ln, ve.context = Le, De) : (typeof ve.componentDidMount == "function" && (j.flags |= 4), !1)) : (ve = j.stateNode, pb(k, j), De = j.memoizedProps, Le = j.type === j.elementType ? De : Xi(j.type, De), ve.props = Le, Ht = j.pendingProps, zt = ve.context, ln = typeof (ln = V.contextType) == "object" && ln !== null ? zi(ln) : rc(j, ln = Ci(V) ? gl : Ho.current), (at = typeof (Qn = V.getDerivedStateFromProps) == "function" || typeof ve.getSnapshotBeforeUpdate == "function") || typeof ve.UNSAFE_componentWillReceiveProps != "function" && typeof ve.componentWillReceiveProps != "function" || De === Ht && zt === ln || vb(0, ve, oe, ln), xs = !1, ve.state = zt = j.memoizedState, Nu(j, oe, ve, ae), mt = j.memoizedState, De !== Ht || zt !== mt || di.current || xs ? (typeof Qn == "function" && (Ef(j, 0, Qn, oe), mt = j.memoizedState), (Le = xs || yb(j, V, Le, oe, zt, mt, ln)) ? (at || typeof ve.UNSAFE_componentWillUpdate != "function" && typeof ve.componentWillUpdate != "function" || (typeof ve.componentWillUpdate == "function" && ve.componentWillUpdate(oe, mt, ln), typeof ve.UNSAFE_componentWillUpdate == "function" && ve.UNSAFE_componentWillUpdate(oe, mt, ln)), typeof ve.componentDidUpdate == "function" && (j.flags |= 4), typeof ve.getSnapshotBeforeUpdate == "function" && (j.flags |= 256)) : (typeof ve.componentDidUpdate != "function" || De === k.memoizedProps && zt === k.memoizedState || (j.flags |= 4), typeof ve.getSnapshotBeforeUpdate != "function" || De === k.memoizedProps && zt === k.memoizedState || (j.flags |= 256), j.memoizedProps = oe, j.memoizedState = mt), ve.props = oe, ve.state = mt, ve.context = ln, Le) : (typeof ve.componentDidUpdate != "function" || De === k.memoizedProps && zt === k.memoizedState || (j.flags |= 4), typeof ve.getSnapshotBeforeUpdate != "function" || De === k.memoizedProps && zt === k.memoizedState || (j.flags |= 256), !1)), Tg(k, j, V, oe, pe, ae);
|
|
37491
37464
|
}
|
|
37492
|
-
function
|
|
37465
|
+
function Tg(k, j, V, oe, ae, pe) {
|
|
37493
37466
|
zb(k, j);
|
|
37494
37467
|
var ve = !!(64 & j.flags);
|
|
37495
37468
|
if (!oe && !ve)
|
|
@@ -37500,29 +37473,29 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " "));
|
|
|
37500
37473
|
}
|
|
37501
37474
|
function Ub(k) {
|
|
37502
37475
|
var j = k.stateNode;
|
|
37503
|
-
j.pendingContext ? nb(0, j.pendingContext, j.pendingContext !== j.context) : j.context && nb(0, j.context, !1),
|
|
37476
|
+
j.pendingContext ? nb(0, j.pendingContext, j.pendingContext !== j.context) : j.context && nb(0, j.context, !1), hg(k, j.containerInfo);
|
|
37504
37477
|
}
|
|
37505
|
-
var
|
|
37478
|
+
var kg = { dehydrated: null, retryLane: 0 };
|
|
37506
37479
|
function Hb(k, j, V) {
|
|
37507
37480
|
var oe = j.pendingProps, ae = to.current, pe = !1;
|
|
37508
|
-
return 64 & j.flags || (k === null || k.memoizedState !== null) && 2 & ae ? (pe = !0, j.flags &= -65) : k !== null && k.memoizedState === null || oe.fallback === void 0 || oe.unstable_avoidThisFallback === !0 || (ae |= 1), Zr(to, 1 & ae), k === null ? (oe.fallback !== void 0 &&
|
|
37481
|
+
return 64 & j.flags || (k === null || k.memoizedState !== null) && 2 & ae ? (pe = !0, j.flags &= -65) : k !== null && k.memoizedState === null || oe.fallback === void 0 || oe.unstable_avoidThisFallback === !0 || (ae |= 1), Zr(to, 1 & ae), k === null ? (oe.fallback !== void 0 && mg(j), k = oe.children, ae = oe.fallback, pe ? (k = qb(j, k, ae, V), j.child.memoizedState = { baseLanes: V }, j.memoizedState = kg, k) : typeof oe.unstable_expectedLoadTime == "number" ? (k = qb(j, k, ae, V), j.child.memoizedState = { baseLanes: V }, j.memoizedState = kg, j.lanes = 33554432, k) : ((V = Wg({ mode: "visible", children: k }, j.mode, V, null)).return = j).child = V) : (k.memoizedState, pe ? (oe = function(ve, De, Le, at, Ht) {
|
|
37509
37482
|
var zt = De.mode, ln = ve.child, Qn = (ve = ln.sibling, { mode: "hidden", children: Le });
|
|
37510
37483
|
return 2 & zt || De.child === ln ? Le = js(ln, Qn) : ((Le = De.child).childLanes = 0, Le.pendingProps = Qn, (ln = Le.lastEffect) !== null ? (De.firstEffect = Le.firstEffect, (De.lastEffect = ln).nextEffect = null) : De.firstEffect = De.lastEffect = null), ve !== null ? at = js(ve, at) : (at = gc(at, zt, Ht, null)).flags |= 2, at.return = De, Le.return = De, Le.sibling = at, De.child = Le, at;
|
|
37511
|
-
}(k, j, oe.children, oe.fallback, V), pe = j.child, ae = k.child.memoizedState, pe.memoizedState = ae === null ? { baseLanes: V } : { baseLanes: ae.baseLanes | V }, pe.childLanes = k.childLanes & ~V, j.memoizedState =
|
|
37484
|
+
}(k, j, oe.children, oe.fallback, V), pe = j.child, ae = k.child.memoizedState, pe.memoizedState = ae === null ? { baseLanes: V } : { baseLanes: ae.baseLanes | V }, pe.childLanes = k.childLanes & ~V, j.memoizedState = kg, oe) : (V = function(ve, De, Le, at) {
|
|
37512
37485
|
var Ht = ve.child;
|
|
37513
37486
|
return ve = Ht.sibling, Le = js(Ht, { mode: "visible", children: Le }), !(2 & De.mode) && (Le.lanes = at), Le.return = De, (Le.sibling = null) !== ve && (ve.nextEffect = null, ve.flags = 8, De.firstEffect = De.lastEffect = ve), De.child = Le;
|
|
37514
37487
|
}(k, j, oe.children, V), j.memoizedState = null, V));
|
|
37515
37488
|
}
|
|
37516
37489
|
function qb(k, j, V, oe) {
|
|
37517
37490
|
var ae = k.mode, pe = k.child;
|
|
37518
|
-
return j = { mode: "hidden", children: j }, 2 & ae || pe === null ? pe =
|
|
37491
|
+
return j = { mode: "hidden", children: j }, 2 & ae || pe === null ? pe = Wg(j, ae, 0, null) : (pe.childLanes = 0, pe.pendingProps = j), V = gc(V, ae, oe, null), pe.return = k, V.return = k, pe.sibling = V, k.child = pe, V;
|
|
37519
37492
|
}
|
|
37520
37493
|
function Wb(k, j) {
|
|
37521
37494
|
k.lanes |= j;
|
|
37522
37495
|
var V = k.alternate;
|
|
37523
37496
|
V !== null && (V.lanes |= j), fb(k.return, j);
|
|
37524
37497
|
}
|
|
37525
|
-
function
|
|
37498
|
+
function Og(k, j, V, oe, ae, pe) {
|
|
37526
37499
|
var ve = k.memoizedState;
|
|
37527
37500
|
ve === null ? k.memoizedState = { isBackwards: j, rendering: null, renderingStartTime: 0, last: oe, tail: V, tailMode: ae, lastEffect: pe } : (ve.isBackwards = j, ve.rendering = null, ve.renderingStartTime = 0, ve.last = oe, ve.tail = V, ve.tailMode = ae, ve.lastEffect = pe);
|
|
37528
37501
|
}
|
|
@@ -37558,7 +37531,7 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " "));
|
|
|
37558
37531
|
case "forwards":
|
|
37559
37532
|
for (V = j.child, ae = null; V !== null; )
|
|
37560
37533
|
(k = V.alternate) !== null && Nf(k) === null && (ae = V), V = V.sibling;
|
|
37561
|
-
(V = ae) === null ? (ae = j.child, j.child = null) : (ae = V.sibling, V.sibling = null),
|
|
37534
|
+
(V = ae) === null ? (ae = j.child, j.child = null) : (ae = V.sibling, V.sibling = null), Og(j, !1, ae, V, pe, j.lastEffect);
|
|
37562
37535
|
break;
|
|
37563
37536
|
case "backwards":
|
|
37564
37537
|
for (ae = j.child, j.child = V = null; ae !== null; ) {
|
|
@@ -37568,10 +37541,10 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " "));
|
|
|
37568
37541
|
}
|
|
37569
37542
|
k = ae.sibling, ae.sibling = V, V = ae, ae = k;
|
|
37570
37543
|
}
|
|
37571
|
-
|
|
37544
|
+
Og(j, !0, V, null, pe, j.lastEffect);
|
|
37572
37545
|
break;
|
|
37573
37546
|
case "together":
|
|
37574
|
-
|
|
37547
|
+
Og(j, !1, null, null, void 0, j.lastEffect);
|
|
37575
37548
|
break;
|
|
37576
37549
|
default:
|
|
37577
37550
|
j.memoizedState = null;
|
|
@@ -37608,7 +37581,7 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " "));
|
|
|
37608
37581
|
oe === null ? j || k.tail === null ? k.tail = null : k.tail.sibling = null : oe.sibling = null;
|
|
37609
37582
|
}
|
|
37610
37583
|
}
|
|
37611
|
-
function
|
|
37584
|
+
function Ng(k, j) {
|
|
37612
37585
|
try {
|
|
37613
37586
|
for (var V = "", oe = j; V += ((pe) => {
|
|
37614
37587
|
switch (pe.tag) {
|
|
@@ -37643,7 +37616,7 @@ Error generating stack: ` + pe.message + `
|
|
|
37643
37616
|
}
|
|
37644
37617
|
return { value: k, source: j, stack: ae };
|
|
37645
37618
|
}
|
|
37646
|
-
function
|
|
37619
|
+
function Ag(k, j) {
|
|
37647
37620
|
try {
|
|
37648
37621
|
console.error(j.value);
|
|
37649
37622
|
} catch (V) {
|
|
@@ -37723,16 +37696,16 @@ Error generating stack: ` + pe.message + `
|
|
|
37723
37696
|
(V = ws(-1, V)).tag = 3, V.payload = { element: null };
|
|
37724
37697
|
var oe = j.value;
|
|
37725
37698
|
return V.callback = function() {
|
|
37726
|
-
Ff || (Ff = !0,
|
|
37699
|
+
Ff || (Ff = !0, Fg = oe), Ag(0, j);
|
|
37727
37700
|
}, V;
|
|
37728
37701
|
}
|
|
37729
37702
|
function Kb(k, j, V) {
|
|
37730
37703
|
(V = ws(-1, V)).tag = 3;
|
|
37731
37704
|
var oe, ae = k.type.getDerivedStateFromError;
|
|
37732
37705
|
return typeof ae == "function" && (oe = j.value, V.payload = function() {
|
|
37733
|
-
return
|
|
37706
|
+
return Ag(0, j), ae(oe);
|
|
37734
37707
|
}), (k = k.stateNode) !== null && typeof k.componentDidCatch == "function" && (V.callback = function() {
|
|
37735
|
-
typeof ae != "function" && (xa === null ? xa = /* @__PURE__ */ new Set([this]) : xa.add(this),
|
|
37708
|
+
typeof ae != "function" && (xa === null ? xa = /* @__PURE__ */ new Set([this]) : xa.add(this), Ag(0, j));
|
|
37736
37709
|
var pe = j.stack;
|
|
37737
37710
|
this.componentDidCatch(j.value, { componentStack: pe !== null ? pe : "" });
|
|
37738
37711
|
}), V;
|
|
@@ -37766,7 +37739,7 @@ Error generating stack: ` + pe.message + `
|
|
|
37766
37739
|
k = j = j.next;
|
|
37767
37740
|
do {
|
|
37768
37741
|
var oe = k, ae = oe.next;
|
|
37769
|
-
4 & (oe = oe.tag) && 1 & oe && (dv(V, k), oe = V, pe = k,
|
|
37742
|
+
4 & (oe = oe.tag) && 1 & oe && (dv(V, k), oe = V, pe = k, Bg.push(pe, oe), Cs || (Cs = !0, Ou(97, function() {
|
|
37770
37743
|
return Ns(), null;
|
|
37771
37744
|
}))), k = ae;
|
|
37772
37745
|
} while (k !== j);
|
|
@@ -37827,7 +37800,7 @@ Error generating stack: ` + pe.message + `
|
|
|
37827
37800
|
function Zb(k, j) {
|
|
37828
37801
|
if (ml && typeof ml.onCommitFiberUnmount == "function")
|
|
37829
37802
|
try {
|
|
37830
|
-
ml.onCommitFiberUnmount(
|
|
37803
|
+
ml.onCommitFiberUnmount(og, j);
|
|
37831
37804
|
} catch {
|
|
37832
37805
|
}
|
|
37833
37806
|
switch (j.tag) {
|
|
@@ -37989,7 +37962,7 @@ Error generating stack: ` + pe.message + `
|
|
|
37989
37962
|
ae.sibling.return = ae.return, ae = ae.sibling;
|
|
37990
37963
|
}
|
|
37991
37964
|
}
|
|
37992
|
-
function
|
|
37965
|
+
function jg(k, j) {
|
|
37993
37966
|
switch (j.tag) {
|
|
37994
37967
|
case 0:
|
|
37995
37968
|
case 11:
|
|
@@ -38034,7 +38007,7 @@ Error generating stack: ` + pe.message + `
|
|
|
38034
38007
|
case 3:
|
|
38035
38008
|
return void ((V = j.stateNode).hydrate && (V.hydrate = !1, zo(V.containerInfo)));
|
|
38036
38009
|
case 13:
|
|
38037
|
-
return j.memoizedState !== null && (
|
|
38010
|
+
return j.memoizedState !== null && (Lg = qo(), Yb(j.child, !0)), void nv(j);
|
|
38038
38011
|
case 19:
|
|
38039
38012
|
return void nv(j);
|
|
38040
38013
|
case 23:
|
|
@@ -38053,17 +38026,17 @@ Error generating stack: ` + pe.message + `
|
|
|
38053
38026
|
j.has(oe) || (j.add(oe), oe.then(ae, ae));
|
|
38054
38027
|
}));
|
|
38055
38028
|
}
|
|
38056
|
-
var M2 = Math.ceil, Lf = S.ReactCurrentDispatcher,
|
|
38029
|
+
var M2 = Math.ceil, Lf = S.ReactCurrentDispatcher, Pg = S.ReactCurrentOwner, Zn = 0, Xo = null, go = null, Wo = 0, xl = 0, Ig = vs(0), Ro = 0, Df = null, cc = 0, $u = 0, uc = 0, Mg = 0, Rg = null, Lg = 0, Dg = 1 / 0;
|
|
38057
38030
|
function dc() {
|
|
38058
|
-
|
|
38031
|
+
Dg = qo() + 500;
|
|
38059
38032
|
}
|
|
38060
|
-
var rv, wn = null, Ff = !1,
|
|
38033
|
+
var rv, wn = null, Ff = !1, Fg = null, xa = null, Cs = !1, Uu = null, Hu = 90, Bg = [], zg = [], qa = null, qu = 0, $g = null, Bf = -1, Ts = 0, zf = 0, Wu = null, $f = !1;
|
|
38061
38034
|
function ki() {
|
|
38062
38035
|
return 48 & Zn ? qo() : Bf !== -1 ? Bf : Bf = qo();
|
|
38063
38036
|
}
|
|
38064
38037
|
function ks(k) {
|
|
38065
38038
|
var j;
|
|
38066
|
-
return 2 & (k = k.mode) ? 4 & k ? (Ts === 0 && (Ts = cc), S2.transition !== 0 ? (zf !== 0 && (zf =
|
|
38039
|
+
return 2 & (k = k.mode) ? 4 & k ? (Ts === 0 && (Ts = cc), S2.transition !== 0 ? (zf !== 0 && (zf = Rg !== null ? Rg.pendingLanes : 0), k = Ts, j = 4186112 & ~zf, (j &= -j) == 0 && (j = (k = 4186112 & ~k) & -k) == 0 ? 8192 : j) : (k = oc(), bi(4 & Zn && k === 98 ? 12 : k = ((V) => {
|
|
38067
38040
|
switch (V) {
|
|
38068
38041
|
case 99:
|
|
38069
38042
|
return 15;
|
|
@@ -38081,9 +38054,9 @@ Error generating stack: ` + pe.message + `
|
|
|
38081
38054
|
}
|
|
38082
38055
|
function Os(k, j, V) {
|
|
38083
38056
|
if (50 < qu)
|
|
38084
|
-
throw qu = 0,
|
|
38057
|
+
throw qu = 0, $g = null, Error(i(185));
|
|
38085
38058
|
var oe;
|
|
38086
|
-
(k = Uf(k, j)) !== null && (pa(k, j, V), k === Xo && (uc |= j, Ro === 4) && fc(k, Wo), oe = oc(), j === 1 ? 8 & Zn && !(48 & Zn) ?
|
|
38059
|
+
(k = Uf(k, j)) !== null && (pa(k, j, V), k === Xo && (uc |= j, Ro === 4) && fc(k, Wo), oe = oc(), j === 1 ? 8 & Zn && !(48 & Zn) ? Ug(k) : (Ui(k, V), Zn === 0 && (dc(), ya())) : (!(4 & Zn) || oe !== 98 && oe !== 99 || (qa === null ? qa = /* @__PURE__ */ new Set([k]) : qa.add(k)), Ui(k, V)), Rg = k);
|
|
38087
38060
|
}
|
|
38088
38061
|
function Uf(k, j) {
|
|
38089
38062
|
k.lanes |= j;
|
|
@@ -38098,14 +38071,14 @@ Error generating stack: ` + pe.message + `
|
|
|
38098
38071
|
Ht === -1 ? at & oe && !(at & ae) || (Ht = j, zn(at), De = Bn, pe[Le] = 10 <= De ? Ht + 250 : 6 <= De ? Ht + 5e3 : -1) : Ht <= j && (k.expiredLanes |= at), ve &= ~at;
|
|
38099
38072
|
}
|
|
38100
38073
|
if (oe = Zo(k, k === Xo ? Wo : 0), j = Bn, oe === 0)
|
|
38101
|
-
V !== null && (V !==
|
|
38074
|
+
V !== null && (V !== lg && ag(V), k.callbackNode = null, k.callbackPriority = 0);
|
|
38102
38075
|
else {
|
|
38103
38076
|
if (V !== null) {
|
|
38104
38077
|
if (k.callbackPriority === j)
|
|
38105
38078
|
return;
|
|
38106
|
-
V !==
|
|
38079
|
+
V !== lg && ag(V);
|
|
38107
38080
|
}
|
|
38108
|
-
V = j === 15 ? (V =
|
|
38081
|
+
V = j === 15 ? (V = Ug.bind(null, k), $a === null ? ($a = [V], _f = ig(vf, db)) : $a.push(V), lg) : j === 14 ? Ou(99, Ug.bind(null, k)) : Ou(V = ((zt) => {
|
|
38109
38082
|
switch (zt) {
|
|
38110
38083
|
case 15:
|
|
38111
38084
|
case 14:
|
|
@@ -38152,7 +38125,7 @@ Error generating stack: ` + pe.message + `
|
|
|
38152
38125
|
} catch (De) {
|
|
38153
38126
|
sv(k, De);
|
|
38154
38127
|
}
|
|
38155
|
-
if (
|
|
38128
|
+
if (ug(), Lf.current = pe, Zn = ae, oe = go !== null ? 0 : (Xo = null, Wo = 0, Ro), cc & uc)
|
|
38156
38129
|
pc(k, 0);
|
|
38157
38130
|
else if (oe !== 0) {
|
|
38158
38131
|
if ((oe = oe === 2 && (Zn |= 64, k.hydrate && (k.hydrate = !1, ui(k.containerInfo)), (V = $o(k)) !== 0) ? Ju(k, V) : oe) === 1)
|
|
@@ -38166,7 +38139,7 @@ Error generating stack: ` + pe.message + `
|
|
|
38166
38139
|
hc(k);
|
|
38167
38140
|
break;
|
|
38168
38141
|
case 3:
|
|
38169
|
-
if (fc(k, V), (62914560 & V) === V && 10 < (oe =
|
|
38142
|
+
if (fc(k, V), (62914560 & V) === V && 10 < (oe = Lg + 500 - qo())) {
|
|
38170
38143
|
if (Zo(k, 0) !== 0)
|
|
38171
38144
|
break;
|
|
38172
38145
|
if (((ae = k.suspendedLanes) & V) !== V) {
|
|
@@ -38193,12 +38166,12 @@ Error generating stack: ` + pe.message + `
|
|
|
38193
38166
|
return Ui(k, qo()), k.callbackNode === j ? ov.bind(null, k) : null;
|
|
38194
38167
|
}
|
|
38195
38168
|
function fc(k, j) {
|
|
38196
|
-
for (j = j & ~
|
|
38169
|
+
for (j = j & ~Mg & ~uc, k.suspendedLanes |= j, k.pingedLanes &= ~j, k = k.expirationTimes; 0 < j; ) {
|
|
38197
38170
|
var V = 31 - jo(j), oe = 1 << V;
|
|
38198
38171
|
k[V] = -1, j &= ~oe;
|
|
38199
38172
|
}
|
|
38200
38173
|
}
|
|
38201
|
-
function
|
|
38174
|
+
function Ug(k) {
|
|
38202
38175
|
if (48 & Zn)
|
|
38203
38176
|
throw Error(i(327));
|
|
38204
38177
|
var j, V;
|
|
@@ -38225,10 +38198,10 @@ Error generating stack: ` + pe.message + `
|
|
|
38225
38198
|
}
|
|
38226
38199
|
}
|
|
38227
38200
|
function Hf(k, j) {
|
|
38228
|
-
Zr(
|
|
38201
|
+
Zr(Ig, xl), xl |= j, cc |= j;
|
|
38229
38202
|
}
|
|
38230
|
-
function
|
|
38231
|
-
xl =
|
|
38203
|
+
function Hg() {
|
|
38204
|
+
xl = Ig.current, Dr(Ig);
|
|
38232
38205
|
}
|
|
38233
38206
|
function pc(k, j) {
|
|
38234
38207
|
k.finishedWork = null, k.finishedLanes = 0;
|
|
@@ -38238,13 +38211,13 @@ Error generating stack: ` + pe.message + `
|
|
|
38238
38211
|
var oe = V;
|
|
38239
38212
|
switch (oe.tag) {
|
|
38240
38213
|
case 1:
|
|
38241
|
-
(oe = oe.type.childContextTypes) != null &&
|
|
38214
|
+
(oe = oe.type.childContextTypes) != null && rg();
|
|
38242
38215
|
break;
|
|
38243
38216
|
case 3:
|
|
38244
|
-
sc(), Dr(di), Dr(Ho),
|
|
38217
|
+
sc(), Dr(di), Dr(Ho), bg();
|
|
38245
38218
|
break;
|
|
38246
38219
|
case 5:
|
|
38247
|
-
|
|
38220
|
+
gg(oe);
|
|
38248
38221
|
break;
|
|
38249
38222
|
case 4:
|
|
38250
38223
|
sc();
|
|
@@ -38254,28 +38227,28 @@ Error generating stack: ` + pe.message + `
|
|
|
38254
38227
|
Dr(to);
|
|
38255
38228
|
break;
|
|
38256
38229
|
case 10:
|
|
38257
|
-
|
|
38230
|
+
dg(oe);
|
|
38258
38231
|
break;
|
|
38259
38232
|
case 23:
|
|
38260
38233
|
case 24:
|
|
38261
|
-
|
|
38234
|
+
Hg();
|
|
38262
38235
|
}
|
|
38263
38236
|
V = V.return;
|
|
38264
38237
|
}
|
|
38265
|
-
go = js((Xo = k).current, null), Wo = xl = cc = j, Df = null,
|
|
38238
|
+
go = js((Xo = k).current, null), Wo = xl = cc = j, Df = null, Mg = uc = $u = Ro = 0;
|
|
38266
38239
|
}
|
|
38267
38240
|
function sv(k, j) {
|
|
38268
38241
|
for (; ; ) {
|
|
38269
38242
|
var V = go;
|
|
38270
38243
|
try {
|
|
38271
|
-
if (
|
|
38244
|
+
if (ug(), Mu.current = Rf, jf) {
|
|
38272
38245
|
for (var oe = no.memoizedState; oe !== null; ) {
|
|
38273
38246
|
var ae = oe.queue;
|
|
38274
38247
|
ae !== null && (ae.pending = null), oe = oe.next;
|
|
38275
38248
|
}
|
|
38276
38249
|
jf = !1;
|
|
38277
38250
|
}
|
|
38278
|
-
if (Ru = 0, Mo = Qo = no = null, Lu = !1, (
|
|
38251
|
+
if (Ru = 0, Mo = Qo = no = null, Lu = !1, (Pg.current = null) === V || V.return === null) {
|
|
38279
38252
|
Ro = 1, Df = j, go = null;
|
|
38280
38253
|
break;
|
|
38281
38254
|
}
|
|
@@ -38300,7 +38273,7 @@ Error generating stack: ` + pe.message + `
|
|
|
38300
38273
|
|
|
38301
38274
|
Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`);
|
|
38302
38275
|
}
|
|
38303
|
-
Ro !== 5 && (Ro = 2), De =
|
|
38276
|
+
Ro !== 5 && (Ro = 2), De = Ng(De, hn), mt = ve;
|
|
38304
38277
|
do
|
|
38305
38278
|
switch (mt.tag) {
|
|
38306
38279
|
case 3:
|
|
@@ -38338,13 +38311,13 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
38338
38311
|
} catch (ae) {
|
|
38339
38312
|
sv(k, ae);
|
|
38340
38313
|
}
|
|
38341
|
-
if (
|
|
38314
|
+
if (ug(), Zn = V, Lf.current = oe, go !== null)
|
|
38342
38315
|
throw Error(i(261));
|
|
38343
38316
|
return Xo = null, Wo = 0, Ro;
|
|
38344
38317
|
}
|
|
38345
38318
|
function cv(k) {
|
|
38346
38319
|
var j = rv(k.alternate, k, xl);
|
|
38347
|
-
k.memoizedProps = k.pendingProps, j === null ? uv(k) : go = j,
|
|
38320
|
+
k.memoizedProps = k.pendingProps, j === null ? uv(k) : go = j, Pg.current = null;
|
|
38348
38321
|
}
|
|
38349
38322
|
function uv(k) {
|
|
38350
38323
|
var j = k;
|
|
@@ -38354,15 +38327,15 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
38354
38327
|
if ((V = ((pe) => {
|
|
38355
38328
|
switch (pe.tag) {
|
|
38356
38329
|
case 1:
|
|
38357
|
-
Ci(pe.type) &&
|
|
38330
|
+
Ci(pe.type) && rg();
|
|
38358
38331
|
var ve = pe.flags;
|
|
38359
38332
|
return 4096 & ve ? (pe.flags = -4097 & ve | 64, pe) : null;
|
|
38360
38333
|
case 3:
|
|
38361
|
-
if (sc(), Dr(di), Dr(Ho),
|
|
38334
|
+
if (sc(), Dr(di), Dr(Ho), bg(), 64 & (ve = pe.flags))
|
|
38362
38335
|
throw Error(i(285));
|
|
38363
38336
|
return pe.flags = -4097 & ve | 64, pe;
|
|
38364
38337
|
case 5:
|
|
38365
|
-
return
|
|
38338
|
+
return gg(pe), null;
|
|
38366
38339
|
case 13:
|
|
38367
38340
|
return Dr(to), 4096 & (ve = pe.flags) ? (pe.flags = -4097 & ve | 64, pe) : null;
|
|
38368
38341
|
case 19:
|
|
@@ -38370,10 +38343,10 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
38370
38343
|
case 4:
|
|
38371
38344
|
return sc(), null;
|
|
38372
38345
|
case 10:
|
|
38373
|
-
return
|
|
38346
|
+
return dg(pe), null;
|
|
38374
38347
|
case 23:
|
|
38375
38348
|
case 24:
|
|
38376
|
-
return
|
|
38349
|
+
return Hg(), null;
|
|
38377
38350
|
default:
|
|
38378
38351
|
return null;
|
|
38379
38352
|
}
|
|
@@ -38397,11 +38370,11 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
38397
38370
|
return null;
|
|
38398
38371
|
case 1:
|
|
38399
38372
|
case 17:
|
|
38400
|
-
return Ci(ve.type) &&
|
|
38373
|
+
return Ci(ve.type) && rg(), null;
|
|
38401
38374
|
case 3:
|
|
38402
|
-
return sc(), Dr(di), Dr(Ho),
|
|
38375
|
+
return sc(), Dr(di), Dr(Ho), bg(), (Le = ve.stateNode).pendingContext && (Le.context = Le.pendingContext, Le.pendingContext = null), pe !== null && pe.child !== null || (Af(ve) ? ve.flags |= 4 : Le.hydrate || (ve.flags |= 256)), null;
|
|
38403
38376
|
case 5:
|
|
38404
|
-
|
|
38377
|
+
gg(ve);
|
|
38405
38378
|
var at = bl(Iu.current);
|
|
38406
38379
|
if (De = ve.type, pe !== null && ve.stateNode != null)
|
|
38407
38380
|
N2(pe, ve, De, Le), pe.ref !== ve.ref && (ve.flags |= 128);
|
|
@@ -38545,7 +38518,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
38545
38518
|
case 4:
|
|
38546
38519
|
return sc(), pe === null && Tt(ve.stateNode.containerInfo), null;
|
|
38547
38520
|
case 10:
|
|
38548
|
-
return
|
|
38521
|
+
return dg(ve), null;
|
|
38549
38522
|
case 19:
|
|
38550
38523
|
if (Dr(to), (Le = ve.memoizedState) === null)
|
|
38551
38524
|
return null;
|
|
@@ -38562,7 +38535,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
38562
38535
|
}
|
|
38563
38536
|
pe = pe.sibling;
|
|
38564
38537
|
}
|
|
38565
|
-
Le.tail !== null && qo() >
|
|
38538
|
+
Le.tail !== null && qo() > Dg && (ve.flags |= 64, zu(Le, !(zt = !0)), ve.lanes = 33554432);
|
|
38566
38539
|
}
|
|
38567
38540
|
else {
|
|
38568
38541
|
if (!zt)
|
|
@@ -38570,13 +38543,13 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
38570
38543
|
if (ve.flags |= 64, zt = !0, (De = pe.updateQueue) !== null && (ve.updateQueue = De, ve.flags |= 4), zu(Le, !0), Le.tail === null && Le.tailMode === "hidden" && !Ht.alternate && !va)
|
|
38571
38544
|
return (ve = ve.lastEffect = Le.lastEffect) !== null && (ve.nextEffect = null), null;
|
|
38572
38545
|
} else
|
|
38573
|
-
2 * qo() - Le.renderingStartTime >
|
|
38546
|
+
2 * qo() - Le.renderingStartTime > Dg && De !== 1073741824 && (ve.flags |= 64, zu(Le, !(zt = !0)), ve.lanes = 33554432);
|
|
38574
38547
|
Le.isBackwards ? (Ht.sibling = ve.child, ve.child = Ht) : ((De = Le.last) !== null ? De.sibling = Ht : ve.child = Ht, Le.last = Ht);
|
|
38575
38548
|
}
|
|
38576
38549
|
return Le.tail !== null ? (De = Le.tail, Le.rendering = De, Le.tail = De.sibling, Le.lastEffect = ve.lastEffect, Le.renderingStartTime = qo(), De.sibling = null, ve = to.current, Zr(to, zt ? 1 & ve | 2 : 1 & ve), De) : null;
|
|
38577
38550
|
case 23:
|
|
38578
38551
|
case 24:
|
|
38579
|
-
return
|
|
38552
|
+
return Hg(), pe !== null && pe.memoizedState !== null != (ve.memoizedState !== null) && Le.mode !== "unstable-defer-without-hiding" && (ve.flags |= 4), null;
|
|
38580
38553
|
}
|
|
38581
38554
|
throw Error(i(156, ve.tag));
|
|
38582
38555
|
})(V, j, xl)) !== null)
|
|
@@ -38612,7 +38585,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
38612
38585
|
ve[Ht] = 0, Le[Ht] = -1, at[Ht] = -1, De &= ~zt;
|
|
38613
38586
|
}
|
|
38614
38587
|
if (qa !== null && !(24 & pe) && qa.has(V) && qa.delete(V), V === Xo && (go = Xo = null, Wo = 0), (pe = 1 < ae.flags ? ae.lastEffect !== null ? (ae.lastEffect.nextEffect = ae).firstEffect : ae : ae.firstEffect) !== null) {
|
|
38615
|
-
if (ve = Zn, Zn |= 32,
|
|
38588
|
+
if (ve = Zn, Zn |= 32, Pg.current = null, Xn = Da, Ql(Le = Zi())) {
|
|
38616
38589
|
if ("selectionStart" in Le)
|
|
38617
38590
|
at = { start: Le.selectionStart, end: Le.selectionEnd };
|
|
38618
38591
|
else
|
|
@@ -38690,16 +38663,16 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
38690
38663
|
ev(wn), wn.flags &= -3;
|
|
38691
38664
|
break;
|
|
38692
38665
|
case 6:
|
|
38693
|
-
ev(wn), wn.flags &= -3,
|
|
38666
|
+
ev(wn), wn.flags &= -3, jg(wn.alternate, wn);
|
|
38694
38667
|
break;
|
|
38695
38668
|
case 1024:
|
|
38696
38669
|
wn.flags &= -1025;
|
|
38697
38670
|
break;
|
|
38698
38671
|
case 1028:
|
|
38699
|
-
wn.flags &= -1025,
|
|
38672
|
+
wn.flags &= -1025, jg(wn.alternate, wn);
|
|
38700
38673
|
break;
|
|
38701
38674
|
case 4:
|
|
38702
|
-
|
|
38675
|
+
jg(wn.alternate, wn);
|
|
38703
38676
|
break;
|
|
38704
38677
|
case 8:
|
|
38705
38678
|
tv(Le, at = wn);
|
|
@@ -38743,13 +38716,13 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
38743
38716
|
else
|
|
38744
38717
|
for (wn = pe; wn !== null; )
|
|
38745
38718
|
oe = wn.nextEffect, wn.nextEffect = null, 8 & wn.flags && ((Jn = wn).sibling = null, Jn.stateNode = null), wn = oe;
|
|
38746
|
-
if ((pe = V.pendingLanes) === 0 && (xa = null), pe === 1 ? V ===
|
|
38719
|
+
if ((pe = V.pendingLanes) === 0 && (xa = null), pe === 1 ? V === $g ? qu++ : (qu = 0, $g = V) : qu = 0, ae = ae.stateNode, ml && typeof ml.onCommitFiberRoot == "function")
|
|
38747
38720
|
try {
|
|
38748
|
-
ml.onCommitFiberRoot(
|
|
38721
|
+
ml.onCommitFiberRoot(og, ae, void 0, !(64 & ~ae.current.flags));
|
|
38749
38722
|
} catch {
|
|
38750
38723
|
}
|
|
38751
38724
|
if (Ui(V, qo()), Ff)
|
|
38752
|
-
throw Ff = !1, V =
|
|
38725
|
+
throw Ff = !1, V = Fg, Fg = null, V;
|
|
38753
38726
|
!(8 & Zn) && ya();
|
|
38754
38727
|
}
|
|
38755
38728
|
return null;
|
|
@@ -38760,7 +38733,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
38760
38733
|
return Hu !== 90 && (k = 97 < Hu ? 97 : Hu, Hu = 90, yl(k, R2));
|
|
38761
38734
|
}
|
|
38762
38735
|
function dv(k, j) {
|
|
38763
|
-
|
|
38736
|
+
zg.push(j, k), Cs || (Cs = !0, Ou(97, function() {
|
|
38764
38737
|
return Ns(), null;
|
|
38765
38738
|
}));
|
|
38766
38739
|
}
|
|
@@ -38770,8 +38743,8 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
38770
38743
|
var k = Uu;
|
|
38771
38744
|
if (Uu = null, 48 & Zn)
|
|
38772
38745
|
throw Error(i(331));
|
|
38773
|
-
var j = Zn, V = (Zn |= 32,
|
|
38774
|
-
|
|
38746
|
+
var j = Zn, V = (Zn |= 32, zg);
|
|
38747
|
+
zg = [];
|
|
38775
38748
|
for (var oe = 0; oe < V.length; oe += 2) {
|
|
38776
38749
|
var ae = V[oe], pe = V[oe + 1], ve = ae.destroy;
|
|
38777
38750
|
if (ae.destroy = void 0, typeof ve == "function")
|
|
@@ -38783,7 +38756,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
38783
38756
|
As(pe, Le);
|
|
38784
38757
|
}
|
|
38785
38758
|
}
|
|
38786
|
-
for (V =
|
|
38759
|
+
for (V = Bg, Bg = [], oe = 0; oe < V.length; oe += 2) {
|
|
38787
38760
|
ae = V[oe], pe = V[oe + 1];
|
|
38788
38761
|
try {
|
|
38789
38762
|
var De = ae.create;
|
|
@@ -38799,7 +38772,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
38799
38772
|
return Zn = j, ya(), !0;
|
|
38800
38773
|
}
|
|
38801
38774
|
function fv(k, j, V) {
|
|
38802
|
-
Ss(k, j = Vb(0, j =
|
|
38775
|
+
Ss(k, j = Vb(0, j = Ng(V, j), 1)), j = ki(), (k = Uf(k, 1)) !== null && (pa(k, 1, j), Ui(k, j));
|
|
38803
38776
|
}
|
|
38804
38777
|
function As(k, j) {
|
|
38805
38778
|
if (k.tag === 3)
|
|
@@ -38813,7 +38786,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
38813
38786
|
if (V.tag === 1) {
|
|
38814
38787
|
var oe, ae = V.stateNode;
|
|
38815
38788
|
if (typeof V.type.getDerivedStateFromError == "function" || typeof ae.componentDidCatch == "function" && (xa === null || !xa.has(ae))) {
|
|
38816
|
-
if (Ss(V, Kb(V, k =
|
|
38789
|
+
if (Ss(V, Kb(V, k = Ng(j, k), 1)), oe = ki(), (V = Uf(V, 1)) !== null)
|
|
38817
38790
|
pa(V, 1, oe), Ui(V, oe);
|
|
38818
38791
|
else if (typeof ae.componentDidCatch == "function" && (xa === null || !xa.has(ae)))
|
|
38819
38792
|
try {
|
|
@@ -38828,7 +38801,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
38828
38801
|
}
|
|
38829
38802
|
function L2(k, j, V) {
|
|
38830
38803
|
var oe = k.pingCache;
|
|
38831
|
-
oe !== null && oe.delete(j), j = ki(), k.pingedLanes |= k.suspendedLanes & V, Xo === k && (Wo & V) === V && (Ro === 4 || Ro === 3 && (62914560 & Wo) === Wo && qo() -
|
|
38804
|
+
oe !== null && oe.delete(j), j = ki(), k.pingedLanes |= k.suspendedLanes & V, Xo === k && (Wo & V) === V && (Ro === 4 || Ro === 3 && (62914560 & Wo) === Wo && qo() - Lg < 500 ? pc(k, 0) : Mg |= V), Ui(k, j);
|
|
38832
38805
|
}
|
|
38833
38806
|
function D2(k, j, V, oe) {
|
|
38834
38807
|
this.tag = k, this.key = V, this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null, this.index = 0, this.ref = null, this.pendingProps = j, this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null, this.mode = oe, this.flags = 0, this.lastEffect = this.firstEffect = this.nextEffect = null, this.childLanes = this.lanes = 0, this.alternate = null;
|
|
@@ -38836,7 +38809,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
38836
38809
|
function Hi(k, j, V, oe) {
|
|
38837
38810
|
return new D2(k, j, V, oe);
|
|
38838
38811
|
}
|
|
38839
|
-
function
|
|
38812
|
+
function qg(k) {
|
|
38840
38813
|
return (k = k.prototype) && k.isReactComponent;
|
|
38841
38814
|
}
|
|
38842
38815
|
function js(k, j) {
|
|
@@ -38846,7 +38819,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
38846
38819
|
function qf(k, j, V, oe, ae, pe) {
|
|
38847
38820
|
var ve = 2;
|
|
38848
38821
|
if (typeof (oe = k) == "function")
|
|
38849
|
-
|
|
38822
|
+
qg(k) && (ve = 1);
|
|
38850
38823
|
else if (typeof k == "string")
|
|
38851
38824
|
ve = 5;
|
|
38852
38825
|
else
|
|
@@ -38867,7 +38840,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
38867
38840
|
case D:
|
|
38868
38841
|
return (k = Hi(19, V, j, ae)).elementType = D, k.lanes = pe, k;
|
|
38869
38842
|
case K:
|
|
38870
|
-
return
|
|
38843
|
+
return Wg(V, ae, pe, j);
|
|
38871
38844
|
case R:
|
|
38872
38845
|
return (k = Hi(24, V, j, ae)).elementType = R, k.lanes = pe, k;
|
|
38873
38846
|
default:
|
|
@@ -38899,13 +38872,13 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
38899
38872
|
function gc(k, j, V, oe) {
|
|
38900
38873
|
return (k = Hi(7, k, oe, j)).lanes = V, k;
|
|
38901
38874
|
}
|
|
38902
|
-
function
|
|
38875
|
+
function Wg(k, j, V, oe) {
|
|
38903
38876
|
return (k = Hi(23, k, oe, j)).elementType = K, k.lanes = V, k;
|
|
38904
38877
|
}
|
|
38905
|
-
function
|
|
38878
|
+
function Jg(k, j, V) {
|
|
38906
38879
|
return (k = Hi(6, k, null, j)).lanes = V, k;
|
|
38907
38880
|
}
|
|
38908
|
-
function
|
|
38881
|
+
function Vg(k, j, V) {
|
|
38909
38882
|
return (j = Hi(4, k.children !== null ? k.children : [], k.key, j)).lanes = V, j.stateNode = { containerInfo: k.containerInfo, pendingChildren: null, implementation: k.implementation }, j;
|
|
38910
38883
|
}
|
|
38911
38884
|
function F2(k, j, V) {
|
|
@@ -38945,19 +38918,19 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
38945
38918
|
V = _s;
|
|
38946
38919
|
j.context === null ? j.context = V : j.pendingContext = V, (j = ws(pe, ve)).payload = { element: k }, (oe = oe === void 0 ? null : oe) !== null && (j.callback = oe), Ss(ae, j), Os(ae, ve, pe);
|
|
38947
38920
|
}
|
|
38948
|
-
function
|
|
38921
|
+
function Kg(k) {
|
|
38949
38922
|
return (k = k.current).child ? (k.child.tag, k.child.stateNode) : null;
|
|
38950
38923
|
}
|
|
38951
38924
|
function pv(k, j) {
|
|
38952
38925
|
var V;
|
|
38953
38926
|
(k = k.memoizedState) !== null && k.dehydrated !== null && (V = k.retryLane, k.retryLane = V !== 0 && V < j ? V : j);
|
|
38954
38927
|
}
|
|
38955
|
-
function
|
|
38928
|
+
function Gg(k, j) {
|
|
38956
38929
|
pv(k, j), (k = k.alternate) && pv(k, j);
|
|
38957
38930
|
}
|
|
38958
|
-
function
|
|
38931
|
+
function Yg(k, j, V) {
|
|
38959
38932
|
var oe = V != null && V.hydrationOptions != null && V.hydrationOptions.mutableSources || null;
|
|
38960
|
-
if (V = new F2(k, j, V != null && V.hydrate === !0), j = Hi(3, null, null, j === 2 ? 7 : j === 1 ? 3 : 0), (V.current = j).stateNode = V,
|
|
38933
|
+
if (V = new F2(k, j, V != null && V.hydrate === !0), j = Hi(3, null, null, j === 2 ? 7 : j === 1 ? 3 : 0), (V.current = j).stateNode = V, fg(j), k[tc] = V.current, Tt(k.nodeType === 8 ? k.parentNode : k), oe)
|
|
38961
38934
|
for (k = 0; k < oe.length; k++) {
|
|
38962
38935
|
var ae = (ae = (j = oe[k])._getVersion)(j._source);
|
|
38963
38936
|
V.mutableSourceEagerHydrationData == null ? V.mutableSourceEagerHydrationData = [j, ae] : V.mutableSourceEagerHydrationData.push(j, ae);
|
|
@@ -38970,19 +38943,19 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
38970
38943
|
function Jf(k, j, V, oe, ae) {
|
|
38971
38944
|
var pe, ve, De, Le = V._reactRootContainer;
|
|
38972
38945
|
return Le ? (De = Le._internalRoot, typeof ae == "function" && (pe = ae, ae = function() {
|
|
38973
|
-
var at =
|
|
38946
|
+
var at = Kg(De);
|
|
38974
38947
|
pe.call(at);
|
|
38975
38948
|
}), Wf(j, De, k, ae)) : (De = (V._reactRootContainer = ((at, Ht) => {
|
|
38976
38949
|
if (!(Ht = Ht || !(!(Ht = at ? at.nodeType === 9 ? at.documentElement : at.firstChild : null) || Ht.nodeType !== 1 || !Ht.hasAttribute("data-reactroot"))))
|
|
38977
38950
|
for (var zt; zt = at.lastChild; )
|
|
38978
38951
|
at.removeChild(zt);
|
|
38979
|
-
return new
|
|
38952
|
+
return new Yg(at, 0, Ht ? { hydrate: !0 } : void 0);
|
|
38980
38953
|
})(V, oe))._internalRoot, typeof ae == "function" && (ve = ae, ae = function() {
|
|
38981
|
-
var at =
|
|
38954
|
+
var at = Kg(De);
|
|
38982
38955
|
ve.call(at);
|
|
38983
38956
|
}), av(function() {
|
|
38984
38957
|
Wf(j, De, k, ae);
|
|
38985
|
-
})),
|
|
38958
|
+
})), Kg(De);
|
|
38986
38959
|
}
|
|
38987
38960
|
function hv(k, j) {
|
|
38988
38961
|
if (Vu(j))
|
|
@@ -39000,7 +38973,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
39000
38973
|
if (!(V & oe)) {
|
|
39001
38974
|
switch (ea = !1, j.tag) {
|
|
39002
38975
|
case 3:
|
|
39003
|
-
Ub(j),
|
|
38976
|
+
Ub(j), yg();
|
|
39004
38977
|
break;
|
|
39005
38978
|
case 5:
|
|
39006
38979
|
wb(j);
|
|
@@ -39009,7 +38982,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
39009
38982
|
Ci(j.type) && bf(j);
|
|
39010
38983
|
break;
|
|
39011
38984
|
case 4:
|
|
39012
|
-
|
|
38985
|
+
hg(j, j.stateNode.containerInfo);
|
|
39013
38986
|
break;
|
|
39014
38987
|
case 10:
|
|
39015
38988
|
oe = j.memoizedProps.value;
|
|
@@ -39042,13 +39015,13 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
39042
39015
|
ea = !1;
|
|
39043
39016
|
switch (j.lanes = 0, j.tag) {
|
|
39044
39017
|
case 2:
|
|
39045
|
-
return oe = j.type, k !== null && (k.alternate = null, j.alternate = null, j.flags |= 2), k = j.pendingProps, ae = rc(j, Ho.current), ac(j, V), ae =
|
|
39018
|
+
return oe = j.type, k !== null && (k.alternate = null, j.alternate = null, j.flags |= 2), k = j.pendingProps, ae = rc(j, Ho.current), ac(j, V), ae = _g(null, j, oe, k, ae, V), j.flags |= 1, typeof ae == "object" && ae !== null && typeof ae.render == "function" && ae.$$typeof === void 0 ? (j.tag = 1, j.memoizedState = null, j.updateQueue = null, Ci(oe) ? (pe = !0, bf(j)) : pe = !1, j.memoizedState = ae.state != null ? ae.state : null, fg(j), typeof (Le = oe.getDerivedStateFromProps) == "function" && Ef(j, 0, Le, k), ae.updater = Cf, pg((j.stateNode = ae)._reactInternals = j, oe, k, V), Tg(null, j, oe, !0, pe, V)) : (j.tag = 0, Ti(null, j, ae, V), j.child);
|
|
39046
39019
|
case 16:
|
|
39047
39020
|
ae = j.elementType;
|
|
39048
39021
|
e: {
|
|
39049
39022
|
switch (k !== null && (k.alternate = null, j.alternate = null, j.flags |= 2), k = j.pendingProps, ae = (pe = ae._init)(ae._payload), j.type = ae, pe = j.tag = ((Ht) => {
|
|
39050
39023
|
if (typeof Ht == "function")
|
|
39051
|
-
return
|
|
39024
|
+
return qg(Ht) ? 1 : 0;
|
|
39052
39025
|
if (Ht != null) {
|
|
39053
39026
|
if ((Ht = Ht.$$typeof) === T)
|
|
39054
39027
|
return 11;
|
|
@@ -39058,7 +39031,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
39058
39031
|
return 2;
|
|
39059
39032
|
})(ae), k = Xi(ae, k), pe) {
|
|
39060
39033
|
case 0:
|
|
39061
|
-
j =
|
|
39034
|
+
j = Cg(null, j, ae, k, V);
|
|
39062
39035
|
break e;
|
|
39063
39036
|
case 1:
|
|
39064
39037
|
j = $b(null, j, ae, k, V);
|
|
@@ -39074,14 +39047,14 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
39074
39047
|
}
|
|
39075
39048
|
return j;
|
|
39076
39049
|
case 0:
|
|
39077
|
-
return oe = j.type, ae = j.pendingProps,
|
|
39050
|
+
return oe = j.type, ae = j.pendingProps, Cg(k, j, oe, ae = j.elementType === oe ? ae : Xi(oe, ae), V);
|
|
39078
39051
|
case 1:
|
|
39079
39052
|
return oe = j.type, ae = j.pendingProps, $b(k, j, oe, ae = j.elementType === oe ? ae : Xi(oe, ae), V);
|
|
39080
39053
|
case 3:
|
|
39081
39054
|
if (Ub(j), oe = j.updateQueue, k === null || oe === null)
|
|
39082
39055
|
throw Error(i(282));
|
|
39083
39056
|
if (oe = j.pendingProps, ae = (ae = j.memoizedState) !== null ? ae.element : null, pb(k, j), Nu(j, oe, null, V), (oe = j.memoizedState.element) === ae)
|
|
39084
|
-
|
|
39057
|
+
yg(), j = Ha(k, j, V);
|
|
39085
39058
|
else {
|
|
39086
39059
|
if ((pe = (ae = j.stateNode).hydrate) && (Es = Ei(j.stateNode.containerInfo.firstChild), Ua = j, pe = va = !0), pe) {
|
|
39087
39060
|
if ((k = ae.mutableSourceEagerHydrationData) != null)
|
|
@@ -39090,18 +39063,18 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
39090
39063
|
for (V = xb(j, null, oe, V), j.child = V; V; )
|
|
39091
39064
|
V.flags = -3 & V.flags | 1024, V = V.sibling;
|
|
39092
39065
|
} else
|
|
39093
|
-
Ti(k, j, oe, V),
|
|
39066
|
+
Ti(k, j, oe, V), yg();
|
|
39094
39067
|
j = j.child;
|
|
39095
39068
|
}
|
|
39096
39069
|
return j;
|
|
39097
39070
|
case 5:
|
|
39098
|
-
return wb(j), k === null &&
|
|
39071
|
+
return wb(j), k === null && mg(j), oe = j.type, ae = j.pendingProps, pe = k !== null ? k.memoizedProps : null, Le = ae.children, xo(oe, ae) ? Le = null : pe !== null && xo(oe, pe) && (j.flags |= 16), zb(k, j), Ti(k, j, Le, V), j.child;
|
|
39099
39072
|
case 6:
|
|
39100
|
-
return k === null &&
|
|
39073
|
+
return k === null && mg(j), null;
|
|
39101
39074
|
case 13:
|
|
39102
39075
|
return Hb(k, j, V);
|
|
39103
39076
|
case 4:
|
|
39104
|
-
return
|
|
39077
|
+
return hg(j, j.stateNode.containerInfo), oe = j.pendingProps, k === null ? j.child = Of(j, null, oe, V) : Ti(k, j, oe, V), j.child;
|
|
39105
39078
|
case 11:
|
|
39106
39079
|
return oe = j.type, ae = j.pendingProps, Lb(k, j, oe, ae = j.elementType === oe ? ae : Xi(oe, ae), V);
|
|
39107
39080
|
case 7:
|
|
@@ -39158,7 +39131,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
39158
39131
|
case 15:
|
|
39159
39132
|
return Fb(k, j, j.type, j.pendingProps, oe, V);
|
|
39160
39133
|
case 17:
|
|
39161
|
-
return oe = j.type, ae = j.pendingProps, ae = j.elementType === oe ? ae : Xi(oe, ae), k !== null && (k.alternate = null, j.alternate = null, j.flags |= 2), j.tag = 1, Ci(oe) ? (k = !0, bf(j)) : k = !1, ac(j, V), bb(j, oe, ae),
|
|
39134
|
+
return oe = j.type, ae = j.pendingProps, ae = j.elementType === oe ? ae : Xi(oe, ae), k !== null && (k.alternate = null, j.alternate = null, j.flags |= 2), j.tag = 1, Ci(oe) ? (k = !0, bf(j)) : k = !1, ac(j, V), bb(j, oe, ae), pg(j, oe, ae, V), Tg(null, j, oe, !0, k, V);
|
|
39162
39135
|
case 19:
|
|
39163
39136
|
return Jb(k, j, V);
|
|
39164
39137
|
case 23:
|
|
@@ -39166,20 +39139,20 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
39166
39139
|
return Bb(k, j, V);
|
|
39167
39140
|
}
|
|
39168
39141
|
throw Error(i(156, j.tag));
|
|
39169
|
-
},
|
|
39142
|
+
}, Yg.prototype.render = function(k) {
|
|
39170
39143
|
Wf(k, this._internalRoot, null, null);
|
|
39171
|
-
},
|
|
39144
|
+
}, Yg.prototype.unmount = function() {
|
|
39172
39145
|
var k = this._internalRoot, j = k.containerInfo;
|
|
39173
39146
|
Wf(null, k, null, function() {
|
|
39174
39147
|
j[tc] = null;
|
|
39175
39148
|
});
|
|
39176
39149
|
}, et = function(k) {
|
|
39177
|
-
k.tag === 13 && (Os(k, 4, ki()),
|
|
39150
|
+
k.tag === 13 && (Os(k, 4, ki()), Gg(k, 4));
|
|
39178
39151
|
}, gt = function(k) {
|
|
39179
|
-
k.tag === 13 && (Os(k, 67108864, ki()),
|
|
39152
|
+
k.tag === 13 && (Os(k, 67108864, ki()), Gg(k, 67108864));
|
|
39180
39153
|
}, pt = function(k) {
|
|
39181
39154
|
var j, V;
|
|
39182
|
-
k.tag === 13 && (j = ki(), Os(k, V = ks(k), j),
|
|
39155
|
+
k.tag === 13 && (j = ki(), Os(k, V = ks(k), j), Gg(k, V));
|
|
39183
39156
|
}, Ee = function(k, j) {
|
|
39184
39157
|
return j();
|
|
39185
39158
|
}, an = function(k, j, V) {
|
|
@@ -39232,7 +39205,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
39232
39205
|
return null;
|
|
39233
39206
|
}, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null }, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && !(Q = __REACT_DEVTOOLS_GLOBAL_HOOK__).isDisabled && Q.supportsFiber)
|
|
39234
39207
|
try {
|
|
39235
|
-
|
|
39208
|
+
og = Q.inject(dr), ml = Q;
|
|
39236
39209
|
} catch {
|
|
39237
39210
|
}
|
|
39238
39211
|
o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = mr, o.createPortal = hv, o.findDOMNode = function(k) {
|
|
@@ -54627,7 +54600,7 @@ var QA = (c) => {
|
|
|
54627
54600
|
var t = {};
|
|
54628
54601
|
return An.d(t, c), t;
|
|
54629
54602
|
};
|
|
54630
|
-
const Mt = QA({ $addUpdateTag: () => wT, $createNodeSelection: () => Yp, $createParagraphNode: () => Ln, $createRangeSelection: () => Gd, $getEditor: () => AT, $getNodeByKey: () => or, $getRoot: () => Wn, $getSelection: () => At, $isDecoratorNode: () => Er, $isElementNode: () => Ct, $isLineBreakNode: () => Oa, $isNodeSelection: () => ro, $isParagraphNode: () => Jr, $isRangeSelection: () => Et, $isTextNode: () => Jt, $nodesOfType: () => aw, $setSelection: () => $r, CAN_REDO_COMMAND: () => zc, CAN_UNDO_COMMAND: () => $c, CLEAR_EDITOR_COMMAND: () =>
|
|
54603
|
+
const Mt = QA({ $addUpdateTag: () => wT, $createNodeSelection: () => Yp, $createParagraphNode: () => Ln, $createRangeSelection: () => Gd, $getEditor: () => AT, $getNodeByKey: () => or, $getRoot: () => Wn, $getSelection: () => At, $isDecoratorNode: () => Er, $isElementNode: () => Ct, $isLineBreakNode: () => Oa, $isNodeSelection: () => ro, $isParagraphNode: () => Jr, $isRangeSelection: () => Et, $isTextNode: () => Jt, $nodesOfType: () => aw, $setSelection: () => $r, CAN_REDO_COMMAND: () => zc, CAN_UNDO_COMMAND: () => $c, CLEAR_EDITOR_COMMAND: () => Ch, COMMAND_PRIORITY_CRITICAL: () => Jo, COMMAND_PRIORITY_EDITOR: () => Nn, CUT_COMMAND: () => Wd, DecoratorNode: () => ss, ElementNode: () => so, KEY_BACKSPACE_COMMAND: () => el, KEY_DELETE_COMMAND: () => tl, KEY_ESCAPE_COMMAND: () => Jl, LineBreakNode: () => su, PASTE_COMMAND: () => Xs, ParagraphNode: () => il, REDO_COMMAND: () => $d, RootNode: () => uu, TextNode: () => oo, UNDO_COMMAND: () => zd, createCommand: () => Ao, createEditor: () => Dh });
|
|
54631
54604
|
var XA = (c) => {
|
|
54632
54605
|
var t = {};
|
|
54633
54606
|
return An.d(t, c), t;
|
|
@@ -54697,7 +54670,7 @@ function sd(c) {
|
|
|
54697
54670
|
function wy(c) {
|
|
54698
54671
|
return c.split("__")[1] || "";
|
|
54699
54672
|
}
|
|
54700
|
-
const ia = { historic: "historic", historyMerge: "history-merge", historyPush: "history-push" }, ld = "codox_comments_change", h_ = "codox_content_revert", hj = { paste: "application/x-lexical-editor", drag: "application/x-lexical-drag", dragBlock: "application/x-lexical-drag-block", plainText: "text/plain" }, Ni = { created: "created", updated: "updated", destroyed: "destroyed" }, Rs = { text: "text", element: "element", whitelist: ["text", "element"] }, Eo = { mouseover: "mouseover", mouseout: "mouseout", mousemove: "mousemove", keypress: "keypress", keyup: "keyup", resize: "resize", scroll: "scroll" }, g_ = [Eo.mousemove, Eo.mouseover, Eo.mouseout],
|
|
54673
|
+
const ia = { historic: "historic", historyMerge: "history-merge", historyPush: "history-push" }, ld = "codox_comments_change", h_ = "codox_content_revert", hj = { paste: "application/x-lexical-editor", drag: "application/x-lexical-drag", dragBlock: "application/x-lexical-drag-block", plainText: "text/plain" }, Ni = { created: "created", updated: "updated", destroyed: "destroyed" }, Rs = { text: "text", element: "element", whitelist: ["text", "element"] }, Eo = { mouseover: "mouseover", mouseout: "mouseout", mousemove: "mousemove", keypress: "keypress", keyup: "keyup", resize: "resize", scroll: "scroll" }, g_ = [Eo.mousemove, Eo.mouseover, Eo.mouseout], ch = { text: "text", linebreak: "linebreak", horizontalrule: "horizontalrule" }, md = { local: "local", remote: "remote" }, Cl = { editorState: "editorState", root: "root" }, Ls = { BOTH: 3, COLUMN: 2, NO_STATUS: 0, ROW: 1 }, m_ = { horizontalrule: ["table", "image", "inline-image", "sticky"], "page-break": ["image", "inline-image", "table", "sticky"], "collapsible-container": ["table", "image", "inline-image", "collapsible-container", "sticky"], "layout-container": ["table", "image", "inline-image", "layout-container", "sticky"], image: ["image", "inline-image", "sticky"], "inline-image": ["image", "inline-image", "sticky"], table: ["image", "inline-image", "table", "sticky"], poll: ["image", "inline-image", "sticky"], excalidraw: ["image", "inline-image", "sticky"] }, gj = "Invalid state - forbidden content nesting found", y_ = { local: "local", remote: "remote" }, mj = { init: "init", syncRCS: "syncRCS", syncRemote: "syncRemote" }, Sy = { text: "text", paragraph: "paragraph", linebreak: "linebreak", heading: "heading", quote: "quote", table: "table", tablerow: "tablerow", tablecell: "tablecell", list: "list", listitem: "listitem", mark: "mark", link: "link", autolink: "autolink", code: "code", "code-highlight": "code-highlight", hashtag: "hashtag", horizontalrule: "horizontalrule", "collapsible-container": "collapsible-container", "collapsible-title": "collapsible-title", "collapsible-content": "collapsible-content", "layout-container": "layout-container", "layout-item": "layout-item", "page-break": "page-break", image: "image", "inline-image": "inline-image", poll: "poll", sticky: "sticky", emoji: "emoji", excalidraw: "excalidraw", equation: "equation", keyword: "keyword", tweet: "tweet", figma: "figma", youtube: "youtube", mention: "mention" }, yj = ["docId", "username", "apiKey", "domain", "hooks", "editorInstanceHooks", "appServer", "demo"];
|
|
54701
54674
|
function b_(c, t) {
|
|
54702
54675
|
var n = Object.keys(c);
|
|
54703
54676
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -54708,7 +54681,7 @@ function b_(c, t) {
|
|
|
54708
54681
|
}
|
|
54709
54682
|
return n;
|
|
54710
54683
|
}
|
|
54711
|
-
function
|
|
54684
|
+
function Sm(c) {
|
|
54712
54685
|
for (var t = 1; t < arguments.length; t++) {
|
|
54713
54686
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
54714
54687
|
t % 2 ? b_(Object(n), !0).forEach(function(e) {
|
|
@@ -54798,7 +54771,7 @@ class Sj {
|
|
|
54798
54771
|
}
|
|
54799
54772
|
createConfig(t) {
|
|
54800
54773
|
let { docId: n, username: e, apiKey: s, domain: o, hooks: r, editorInstanceHooks: a, appServer: l = {}, demo: i = !1 } = t;
|
|
54801
|
-
return
|
|
54774
|
+
return Sm(Sm({}, xj(t, yj)), {}, { docId: n, username: e, apiKey: s, autoStart: !0, demo: i, domain: o, hooks: r, editorInstance: Sm({ type: "lexical" }, a), app: "json", json: { keyNames: { default: "codoxId" }, filters: { version: !0 }, appServer: l, semantics: { paths: { "state.root.children.children.text": "MERGE", "state.root.children.children.children.text": "MERGE" }, string: "MERGE" } } });
|
|
54802
54775
|
}
|
|
54803
54776
|
}
|
|
54804
54777
|
var Ej = (c) => {
|
|
@@ -55196,12 +55169,12 @@ function N_(c) {
|
|
|
55196
55169
|
}
|
|
55197
55170
|
return n.reverse(), n;
|
|
55198
55171
|
}
|
|
55199
|
-
function
|
|
55172
|
+
function Kh(c) {
|
|
55200
55173
|
return c && typeof c == "object" && !!c.setEditorState;
|
|
55201
55174
|
}
|
|
55202
55175
|
function A_(c) {
|
|
55203
55176
|
for (let t in c)
|
|
55204
|
-
if (
|
|
55177
|
+
if (Kh(c[t]))
|
|
55205
55178
|
return t;
|
|
55206
55179
|
return "";
|
|
55207
55180
|
}
|
|
@@ -55309,7 +55282,7 @@ class gn {
|
|
|
55309
55282
|
if (!d)
|
|
55310
55283
|
return ct.default.debug("[getNestedSelectionJSONFromMainSelectionJSON]: Lexical node with nested editor not found in codox nodes map - selection will be dropped", { jsonSelection: t, targetNodeCodoxId: u }), e;
|
|
55311
55284
|
let p = sd(i), f = d[p];
|
|
55312
|
-
return
|
|
55285
|
+
return Kh(f) ? (e.nestedSelectionJSON = P_(P_({}, t), {}, { anchor: { codoxId: o, offset: t.anchor.offset }, focus: { codoxId: a, offset: t.focus.offset } }), e.nestedEditor = f, e) : (ct.default.debug("[getNestedSelectionJSONFromMainSelectionJSON]: Found nested editor is not LexicalEditor instance", { jsonSelection: t, targetLexicalNode: d, targetLexicalNodeAttrName: p, nestedEditorCandidate: f }), e);
|
|
55313
55286
|
}
|
|
55314
55287
|
static getNodeAncestorsCodoxIds(t) {
|
|
55315
55288
|
let n = [], e = gn.getNodeAncestorsList(t);
|
|
@@ -55708,7 +55681,7 @@ function M_(c) {
|
|
|
55708
55681
|
c.__parent = null, c.__next = null, c.__prev = null;
|
|
55709
55682
|
}
|
|
55710
55683
|
function R_(c, t) {
|
|
55711
|
-
return !!
|
|
55684
|
+
return !!Kh(c) && !(typeof t != "object" || !t.editorState || (c.update(() => {
|
|
55712
55685
|
try {
|
|
55713
55686
|
let n = (0, Mt.$getSelection)();
|
|
55714
55687
|
const e = c.parseEditorState(t.editorState);
|
|
@@ -55819,7 +55792,7 @@ function fP() {
|
|
|
55819
55792
|
}
|
|
55820
55793
|
for (let M in z)
|
|
55821
55794
|
if (z.hasOwnProperty(M) && !w.includes(M))
|
|
55822
|
-
if (
|
|
55795
|
+
if (Kh(z[M])) {
|
|
55823
55796
|
let L = { editorState: z[M].getEditorState().toJSON() };
|
|
55824
55797
|
R_(F[M], L);
|
|
55825
55798
|
} else {
|
|
@@ -56412,7 +56385,7 @@ function B_(c, t) {
|
|
|
56412
56385
|
}
|
|
56413
56386
|
return n;
|
|
56414
56387
|
}
|
|
56415
|
-
function
|
|
56388
|
+
function Em(c) {
|
|
56416
56389
|
for (var t = 1; t < arguments.length; t++) {
|
|
56417
56390
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
56418
56391
|
t % 2 ? B_(Object(n), !0).forEach(function(e) {
|
|
@@ -56582,10 +56555,10 @@ class DP extends BE {
|
|
|
56582
56555
|
}
|
|
56583
56556
|
extractStateAndCommentsFromSynced(t) {
|
|
56584
56557
|
let { state: { comments: n }, selection: e, stateReplace: s } = t;
|
|
56585
|
-
return { stateFromSync: { state:
|
|
56558
|
+
return { stateFromSync: { state: Em({}, RP(t.state, jP)), selection: e, stateReplace: s }, commentsFromSync: n };
|
|
56586
56559
|
}
|
|
56587
56560
|
composeFullStateForSync(t) {
|
|
56588
|
-
return { state:
|
|
56561
|
+
return { state: Em(Em({}, this.getMainEditorState().toJSON()), {}, { comments: t.getAllComments() }) };
|
|
56589
56562
|
}
|
|
56590
56563
|
isValidJSONState(t) {
|
|
56591
56564
|
let n = !1;
|
|
@@ -57221,7 +57194,7 @@ function z_(c, t) {
|
|
|
57221
57194
|
}
|
|
57222
57195
|
return n;
|
|
57223
57196
|
}
|
|
57224
|
-
function
|
|
57197
|
+
function Cm(c) {
|
|
57225
57198
|
for (var t = 1; t < arguments.length; t++) {
|
|
57226
57199
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
57227
57200
|
t % 2 ? z_(Object(n), !0).forEach(function(e) {
|
|
@@ -57293,7 +57266,7 @@ class iI {
|
|
|
57293
57266
|
if (!i)
|
|
57294
57267
|
continue;
|
|
57295
57268
|
if (i.type === "beautifulMention") {
|
|
57296
|
-
i.codox_metadata = { originalNodeTransformedByCodox:
|
|
57269
|
+
i.codox_metadata = { originalNodeTransformedByCodox: Cm({}, i) }, i.equation = `${i.trigger}${i.value}`, i.inline = !0, i.type = "equation", i.version = 1, delete i.trigger, delete i.value;
|
|
57297
57270
|
continue;
|
|
57298
57271
|
}
|
|
57299
57272
|
if (i.type === "overflow") {
|
|
@@ -57314,7 +57287,7 @@ class iI {
|
|
|
57314
57287
|
throw new Error(`${f}codox_metadata property must contain original custom node type`);
|
|
57315
57288
|
s.update(() => {
|
|
57316
57289
|
let { klass: w } = s._nodes.get(l.type);
|
|
57317
|
-
u = w.importJSON(
|
|
57290
|
+
u = w.importJSON(Cm(Cm({}, l), {}, { ___ignoreCodox: !0 })), d = u.exportJSON();
|
|
57318
57291
|
});
|
|
57319
57292
|
const h = eI(l, XP);
|
|
57320
57293
|
let m = Object.keys(h), g = Object.keys(d), v = [.../* @__PURE__ */ new Set([...m, ...g])];
|
|
@@ -57820,7 +57793,7 @@ function bu(c) {
|
|
|
57820
57793
|
};
|
|
57821
57794
|
return Object.defineProperty(n, "name", { value: t, writable: !0 }), n;
|
|
57822
57795
|
}
|
|
57823
|
-
const Pl = (c) => c.__type === "root" || c.type === "root", H_ = (c) => Pl(c.getParent()), qr = (c) => c.__type ===
|
|
57796
|
+
const Pl = (c) => c.__type === "root" || c.type === "root", H_ = (c) => Pl(c.getParent()), qr = (c) => c.__type === ch.text || c.type === ch.text || c.hasOwnProperty("__text") || c.hasOwnProperty("text"), Nc = (c) => (0, Mt.$isElementNode)(c), Ac = (c) => (0, Tr.$isTableNode)(c) || (0, Tr.$isTableRowNode)(c) || (0, Tr.$isTableCellNode)(c), _I = (c) => !c.getChildren, q_ = (c) => !!c.getChildren, Sr = (c) => (0, Mt.$isDecoratorNode)(c), yd = (c) => (0, ej.$isLinkNode)(c), bd = (c) => c.__type === "mark" || c.type === "mark", U0 = (c) => (0, Mt.$isLineBreakNode)(c), zs = (c) => qr(c) || U0(c), Ty = (c) => c.__type === ch.horizontalrule || c.type === ch.horizontalrule, VE = (c) => {
|
|
57824
57797
|
if (zs(c) || yd(c) || bd(c))
|
|
57825
57798
|
return !1;
|
|
57826
57799
|
if (!c.__parent || c.__parent === "root" || (0, Mt.$isParagraphNode)(c))
|
|
@@ -57964,12 +57937,12 @@ var LI = (c) => {
|
|
|
57964
57937
|
var t = {};
|
|
57965
57938
|
return An.d(t, c), t;
|
|
57966
57939
|
};
|
|
57967
|
-
const DI = LI({ LexicalComposer: () =>
|
|
57940
|
+
const DI = LI({ LexicalComposer: () => Fh }), W_ = $A;
|
|
57968
57941
|
var FI = (c) => {
|
|
57969
57942
|
var t = {};
|
|
57970
57943
|
return An.d(t, c), t;
|
|
57971
57944
|
};
|
|
57972
|
-
const BI = FI({ HistoryPlugin: () =>
|
|
57945
|
+
const BI = FI({ HistoryPlugin: () => Bh });
|
|
57973
57946
|
var zI = (c) => {
|
|
57974
57947
|
var t = {};
|
|
57975
57948
|
return An.d(t, c), t;
|
|
@@ -57989,7 +57962,7 @@ var WI = (c) => {
|
|
|
57989
57962
|
var t = {};
|
|
57990
57963
|
return An.d(t, c), t;
|
|
57991
57964
|
};
|
|
57992
|
-
const qc = WI({ createPortal: () =>
|
|
57965
|
+
const qc = WI({ createPortal: () => bh.createPortal }), JI = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, VI = JI ? ut.useLayoutEffect : ut.useEffect, YE = VI;
|
|
57993
57966
|
var Ep = An(253), Pc = {};
|
|
57994
57967
|
Pc.styleTagTransform = ps(), Pc.setAttributes = ds(), Pc.insert = us().bind(null, "head"), Pc.domAPI = cs(), Pc.insertStyleElement = fs();
|
|
57995
57968
|
ls()(Ep.A, Pc);
|
|
@@ -58485,7 +58458,7 @@ function Q_(c) {
|
|
|
58485
58458
|
const t = (c.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i, (n, e, s, o) => "#" + e + e + s + s + o + o).substring(1).match(/.{2}/g) || []).map((n) => parseInt(n, 16));
|
|
58486
58459
|
return { b: t[2], g: t[1], r: t[0] };
|
|
58487
58460
|
}
|
|
58488
|
-
function
|
|
58461
|
+
function Tm(c) {
|
|
58489
58462
|
let { r: t, g: n, b: e } = c;
|
|
58490
58463
|
t /= 255, n /= 255, e /= 255;
|
|
58491
58464
|
const s = Math.max(t, n, e), o = s - Math.min(t, n, e);
|
|
@@ -58502,8 +58475,8 @@ function X_(c) {
|
|
|
58502
58475
|
return "#" + [e, n, t].map((s) => s.toString(16).padStart(2, "0")).join("");
|
|
58503
58476
|
}
|
|
58504
58477
|
function wc(c, t) {
|
|
58505
|
-
let n = Z_("#121212"), e = Q_(n), s =
|
|
58506
|
-
return c === "hex" ? (n = Z_(t), e = Q_(n), s =
|
|
58478
|
+
let n = Z_("#121212"), e = Q_(n), s = Tm(e);
|
|
58479
|
+
return c === "hex" ? (n = Z_(t), e = Q_(n), s = Tm(e)) : c === "rgb" ? (e = t, n = X_(e), s = Tm(e)) : c === "hsv" && (s = t, e = x5(s), n = X_(e)), { hex: n, hsv: s, rgb: e };
|
|
58507
58480
|
}
|
|
58508
58481
|
const w5 = ut.createContext(null);
|
|
58509
58482
|
function S5(c) {
|
|
@@ -58823,22 +58796,22 @@ var nx;
|
|
|
58823
58796
|
function cC() {
|
|
58824
58797
|
return nx || (nx = 1, process.env.NODE_ENV === "production" ? up.exports = P5() : up.exports = I5()), up.exports;
|
|
58825
58798
|
}
|
|
58826
|
-
var
|
|
58799
|
+
var km, rx;
|
|
58827
58800
|
function H0() {
|
|
58828
58801
|
if (rx)
|
|
58829
|
-
return
|
|
58802
|
+
return km;
|
|
58830
58803
|
rx = 1;
|
|
58831
58804
|
var c = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
58832
|
-
return
|
|
58805
|
+
return km = c, km;
|
|
58833
58806
|
}
|
|
58834
|
-
var
|
|
58807
|
+
var Om, ox;
|
|
58835
58808
|
function uC() {
|
|
58836
|
-
return ox || (ox = 1,
|
|
58809
|
+
return ox || (ox = 1, Om = Function.call.bind(Object.prototype.hasOwnProperty)), Om;
|
|
58837
58810
|
}
|
|
58838
|
-
var
|
|
58811
|
+
var Nm, ix;
|
|
58839
58812
|
function M5() {
|
|
58840
58813
|
if (ix)
|
|
58841
|
-
return
|
|
58814
|
+
return Nm;
|
|
58842
58815
|
ix = 1;
|
|
58843
58816
|
var c = function() {
|
|
58844
58817
|
};
|
|
@@ -58883,14 +58856,14 @@ function M5() {
|
|
|
58883
58856
|
}
|
|
58884
58857
|
return s.resetWarningCache = function() {
|
|
58885
58858
|
process.env.NODE_ENV !== "production" && (n = {});
|
|
58886
|
-
},
|
|
58859
|
+
}, Nm = s, Nm;
|
|
58887
58860
|
}
|
|
58888
|
-
var
|
|
58861
|
+
var Am, ax;
|
|
58889
58862
|
function R5() {
|
|
58890
58863
|
if (ax)
|
|
58891
|
-
return
|
|
58864
|
+
return Am;
|
|
58892
58865
|
ax = 1;
|
|
58893
|
-
var c = cC(), t =
|
|
58866
|
+
var c = cC(), t = vh(), n = H0(), e = uC(), s = M5(), o = function() {
|
|
58894
58867
|
};
|
|
58895
58868
|
process.env.NODE_ENV !== "production" && (o = function(a) {
|
|
58896
58869
|
var l = "Warning: " + a;
|
|
@@ -58903,7 +58876,7 @@ function R5() {
|
|
|
58903
58876
|
function r() {
|
|
58904
58877
|
return null;
|
|
58905
58878
|
}
|
|
58906
|
-
return
|
|
58879
|
+
return Am = function(a, l) {
|
|
58907
58880
|
var i = typeof Symbol == "function" && Symbol.iterator, u = "@@iterator";
|
|
58908
58881
|
function d(B) {
|
|
58909
58882
|
var A = B && (i && B[i] || B[u]);
|
|
@@ -59205,19 +59178,19 @@ Valid keys: ` + JSON.stringify(Object.keys(B), null, " ")
|
|
|
59205
59178
|
return !B.constructor || !B.constructor.name ? p : B.constructor.name;
|
|
59206
59179
|
}
|
|
59207
59180
|
return f.checkPropTypes = s, f.resetWarningCache = s.resetWarningCache, f.PropTypes = f, f;
|
|
59208
|
-
},
|
|
59181
|
+
}, Am;
|
|
59209
59182
|
}
|
|
59210
|
-
var
|
|
59183
|
+
var jm, sx;
|
|
59211
59184
|
function L5() {
|
|
59212
59185
|
if (sx)
|
|
59213
|
-
return
|
|
59186
|
+
return jm;
|
|
59214
59187
|
sx = 1;
|
|
59215
59188
|
var c = H0();
|
|
59216
59189
|
function t() {
|
|
59217
59190
|
}
|
|
59218
59191
|
function n() {
|
|
59219
59192
|
}
|
|
59220
|
-
return n.resetWarningCache = t,
|
|
59193
|
+
return n.resetWarningCache = t, jm = function() {
|
|
59221
59194
|
function e(r, a, l, i, u, d) {
|
|
59222
59195
|
if (d !== c) {
|
|
59223
59196
|
var p = new Error(
|
|
@@ -59254,7 +59227,7 @@ function L5() {
|
|
|
59254
59227
|
resetWarningCache: t
|
|
59255
59228
|
};
|
|
59256
59229
|
return o.PropTypes = o, o;
|
|
59257
|
-
},
|
|
59230
|
+
}, jm;
|
|
59258
59231
|
}
|
|
59259
59232
|
if (process.env.NODE_ENV !== "production") {
|
|
59260
59233
|
var D5 = cC(), F5 = !0;
|
|
@@ -59402,7 +59375,7 @@ var Z5 = function(t, n) {
|
|
|
59402
59375
|
}
|
|
59403
59376
|
};
|
|
59404
59377
|
const Q5 = /* @__PURE__ */ Fd(Z5);
|
|
59405
|
-
var X5 =
|
|
59378
|
+
var X5 = vh();
|
|
59406
59379
|
const eM = /* @__PURE__ */ Fd(X5);
|
|
59407
59380
|
var Il = {
|
|
59408
59381
|
BODY: "bodyAttributes",
|
|
@@ -59433,7 +59406,7 @@ var Il = {
|
|
|
59433
59406
|
REL: "rel",
|
|
59434
59407
|
SRC: "src",
|
|
59435
59408
|
TARGET: "target"
|
|
59436
|
-
},
|
|
59409
|
+
}, uh = {
|
|
59437
59410
|
accesskey: "accessKey",
|
|
59438
59411
|
charset: "charSet",
|
|
59439
59412
|
class: "className",
|
|
@@ -59448,8 +59421,8 @@ var Il = {
|
|
|
59448
59421
|
ENCODE_SPECIAL_CHARACTERS: "encodeSpecialCharacters",
|
|
59449
59422
|
ON_CHANGE_CLIENT_STATE: "onChangeClientState",
|
|
59450
59423
|
TITLE_TEMPLATE: "titleTemplate"
|
|
59451
|
-
}, tM = Object.keys(
|
|
59452
|
-
return c[
|
|
59424
|
+
}, tM = Object.keys(uh).reduce(function(c, t) {
|
|
59425
|
+
return c[uh[t]] = t, c;
|
|
59453
59426
|
}, {}), nM = [Gn.NOSCRIPT, Gn.SCRIPT, Gn.STYLE], aa = "data-react-helmet", rM = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(c) {
|
|
59454
59427
|
return typeof c;
|
|
59455
59428
|
} : function(c) {
|
|
@@ -59508,7 +59481,7 @@ var Il = {
|
|
|
59508
59481
|
}, cM = function(t) {
|
|
59509
59482
|
return Kc(t, Nd.ON_CHANGE_CLIENT_STATE) || function() {
|
|
59510
59483
|
};
|
|
59511
|
-
},
|
|
59484
|
+
}, Pm = function(t, n) {
|
|
59512
59485
|
return n.filter(function(e) {
|
|
59513
59486
|
return typeof e[t] < "u";
|
|
59514
59487
|
}).map(function(e) {
|
|
@@ -59566,10 +59539,10 @@ var Il = {
|
|
|
59566
59539
|
}, dM = function(t) {
|
|
59567
59540
|
return {
|
|
59568
59541
|
baseTag: uM([Br.HREF, Br.TARGET], t),
|
|
59569
|
-
bodyAttributes:
|
|
59542
|
+
bodyAttributes: Pm(Il.BODY, t),
|
|
59570
59543
|
defer: Kc(t, Nd.DEFER),
|
|
59571
59544
|
encode: Kc(t, Nd.ENCODE_SPECIAL_CHARACTERS),
|
|
59572
|
-
htmlAttributes:
|
|
59545
|
+
htmlAttributes: Pm(Il.HTML, t),
|
|
59573
59546
|
linkTags: ed(Gn.LINK, [Br.REL, Br.HREF], t),
|
|
59574
59547
|
metaTags: ed(Gn.META, [Br.NAME, Br.CHARSET, Br.HTTPEQUIV, Br.PROPERTY, Br.ITEM_PROP], t),
|
|
59575
59548
|
noscriptTags: ed(Gn.NOSCRIPT, [Br.INNER_HTML], t),
|
|
@@ -59577,7 +59550,7 @@ var Il = {
|
|
|
59577
59550
|
scriptTags: ed(Gn.SCRIPT, [Br.SRC, Br.INNER_HTML], t),
|
|
59578
59551
|
styleTags: ed(Gn.STYLE, [Br.CSS_TEXT], t),
|
|
59579
59552
|
title: lM(t),
|
|
59580
|
-
titleAttributes:
|
|
59553
|
+
titleAttributes: Pm(Il.TITLE, t)
|
|
59581
59554
|
};
|
|
59582
59555
|
}, Py = function() {
|
|
59583
59556
|
var c = Date.now();
|
|
@@ -59675,7 +59648,7 @@ var Il = {
|
|
|
59675
59648
|
}, hC = function(t) {
|
|
59676
59649
|
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
59677
59650
|
return Object.keys(t).reduce(function(e, s) {
|
|
59678
|
-
return e[
|
|
59651
|
+
return e[uh[s] || s] = t[s], e;
|
|
59679
59652
|
}, n);
|
|
59680
59653
|
}, bM = function(t) {
|
|
59681
59654
|
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
@@ -59693,7 +59666,7 @@ var Il = {
|
|
|
59693
59666
|
key: s
|
|
59694
59667
|
}, o[aa] = !0, o);
|
|
59695
59668
|
return Object.keys(e).forEach(function(a) {
|
|
59696
|
-
var l =
|
|
59669
|
+
var l = uh[a] || a;
|
|
59697
59670
|
if (l === Br.INNER_HTML || l === Br.CSS_TEXT) {
|
|
59698
59671
|
var i = e.innerHTML || e.cssText;
|
|
59699
59672
|
r.dangerouslySetInnerHTML = { __html: i };
|
|
@@ -60582,7 +60555,7 @@ const Aa = () => /* @__PURE__ */ new Map(), Ly = (c) => {
|
|
|
60582
60555
|
if (t(e, n))
|
|
60583
60556
|
return !0;
|
|
60584
60557
|
return !1;
|
|
60585
|
-
}, tu = () => /* @__PURE__ */ new Set(),
|
|
60558
|
+
}, tu = () => /* @__PURE__ */ new Set(), Im = (c) => c[c.length - 1], nu = Array.from, LM = Array.isArray;
|
|
60586
60559
|
class DM {
|
|
60587
60560
|
constructor() {
|
|
60588
60561
|
this._observers = Aa();
|
|
@@ -60645,7 +60618,7 @@ class DM {
|
|
|
60645
60618
|
this._observers = Aa();
|
|
60646
60619
|
}
|
|
60647
60620
|
}
|
|
60648
|
-
const ql = Math.floor, Pp = Math.abs, wC = (c, t) => c < t ? c : t, _u = (c, t) => c > t ? c : t, FM = (c) => c !== 0 ? c < 0 : 1 / c < 0, px = 1, hx = 2,
|
|
60621
|
+
const ql = Math.floor, Pp = Math.abs, wC = (c, t) => c < t ? c : t, _u = (c, t) => c > t ? c : t, FM = (c) => c !== 0 ? c < 0 : 1 / c < 0, px = 1, hx = 2, Mm = 4, Rm = 8, BM = 32, SC = 64, dh = 128, zM = 31, gx = 63, _d = 127, $M = 2147483647, UM = Number.isInteger || ((c) => typeof c == "number" && isFinite(c) && ql(c) === c), HM = (c) => c.toLowerCase(), qM = /^\s*/g, WM = (c) => c.replace(qM, ""), JM = /([A-Z])/g, mx = (c, t) => WM(c.replace(JM, (n) => `${t}${HM(n)}`)), VM = (c) => {
|
|
60649
60622
|
const t = unescape(encodeURIComponent(c)), n = t.length, e = new Uint8Array(n);
|
|
60650
60623
|
for (let s = 0; s < n; s++)
|
|
60651
60624
|
e[s] = /** @type {number} */
|
|
@@ -60655,8 +60628,8 @@ const ql = Math.floor, Pp = Math.abs, wC = (c, t) => c < t ? c : t, _u = (c, t)
|
|
|
60655
60628
|
/** @type {TextEncoder} */
|
|
60656
60629
|
typeof TextEncoder < "u" ? new TextEncoder() : null
|
|
60657
60630
|
), KM = (c) => Ad.encode(c), GM = Ad ? KM : VM;
|
|
60658
|
-
let
|
|
60659
|
-
|
|
60631
|
+
let Lm = typeof TextDecoder > "u" ? null : new TextDecoder("utf-8", { fatal: !0, ignoreBOM: !0 });
|
|
60632
|
+
Lm && Lm.decode(new Uint8Array()).length === 1 && (Lm = null);
|
|
60660
60633
|
class df {
|
|
60661
60634
|
constructor() {
|
|
60662
60635
|
this.cpos = 0, this.cbuf = new Uint8Array(100), this.bufs = [];
|
|
@@ -60683,12 +60656,12 @@ const q0 = () => new df(), YM = (c) => {
|
|
|
60683
60656
|
c.cpos === n && (c.bufs.push(c.cbuf), c.cbuf = new Uint8Array(n * 2), c.cpos = 0), c.cbuf[c.cpos++] = t;
|
|
60684
60657
|
}, Dy = Co, Or = (c, t) => {
|
|
60685
60658
|
for (; t > _d; )
|
|
60686
|
-
Co(c,
|
|
60659
|
+
Co(c, dh | _d & t), t = ql(t / 128);
|
|
60687
60660
|
Co(c, _d & t);
|
|
60688
60661
|
}, W0 = (c, t) => {
|
|
60689
60662
|
const n = FM(t);
|
|
60690
|
-
for (n && (t = -t), Co(c, (t > gx ?
|
|
60691
|
-
Co(c, (t > _d ?
|
|
60663
|
+
for (n && (t = -t), Co(c, (t > gx ? dh : 0) | (n ? SC : 0) | gx & t), t = ql(t / 64); t > 0; )
|
|
60664
|
+
Co(c, (t > _d ? dh : 0) | _d & t), t = ql(t / 128);
|
|
60692
60665
|
}, Fy = new Uint8Array(3e4), QM = Fy.length / 3, XM = (c, t) => {
|
|
60693
60666
|
if (t.length < QM) {
|
|
60694
60667
|
const n = Ad.encodeInto(t, Fy).written || 0;
|
|
@@ -60798,7 +60771,7 @@ const _x = (c) => {
|
|
|
60798
60771
|
W0(c.encoder, t), c.count > 1 && Or(c.encoder, c.count - 2);
|
|
60799
60772
|
}
|
|
60800
60773
|
};
|
|
60801
|
-
class
|
|
60774
|
+
class Dm {
|
|
60802
60775
|
constructor() {
|
|
60803
60776
|
this.encoder = new df(), this.s = 0, this.count = 0, this.diff = 0;
|
|
60804
60777
|
}
|
|
@@ -60999,7 +60972,7 @@ const ER = (c) => MM(c, (t, n) => `${n}:${t};`).join(""), hs = Symbol, kC = hs()
|
|
|
60999
60972
|
n = c.next();
|
|
61000
60973
|
while (!n.done && !t(n.value));
|
|
61001
60974
|
return n;
|
|
61002
|
-
}),
|
|
60975
|
+
}), Fm = (c, t) => jC(() => {
|
|
61003
60976
|
const { done: n, value: e } = c.next();
|
|
61004
60977
|
return { done: n, value: n ? void 0 : t(e) };
|
|
61005
60978
|
});
|
|
@@ -61204,7 +61177,7 @@ class ff extends DM {
|
|
|
61204
61177
|
* @public
|
|
61205
61178
|
*/
|
|
61206
61179
|
getText(t = "") {
|
|
61207
|
-
return this.get(t,
|
|
61180
|
+
return this.get(t, hh);
|
|
61208
61181
|
}
|
|
61209
61182
|
/**
|
|
61210
61183
|
* @template T
|
|
@@ -61405,7 +61378,7 @@ class HR {
|
|
|
61405
61378
|
}
|
|
61406
61379
|
class qR extends HR {
|
|
61407
61380
|
constructor() {
|
|
61408
|
-
super(), this.keyMap = /* @__PURE__ */ new Map(), this.keyClock = 0, this.keyClockEncoder = new
|
|
61381
|
+
super(), this.keyMap = /* @__PURE__ */ new Map(), this.keyClock = 0, this.keyClockEncoder = new Dm(), this.clientEncoder = new Ip(), this.leftClockEncoder = new Dm(), this.rightClockEncoder = new Dm(), this.infoEncoder = new bx(Dy), this.stringEncoder = new iR(), this.parentInfoEncoder = new bx(Dy), this.typeRefEncoder = new Ip(), this.lenEncoder = new Ip();
|
|
61409
61382
|
}
|
|
61410
61383
|
toUint8Array() {
|
|
61411
61384
|
const t = q0();
|
|
@@ -61595,7 +61568,7 @@ const G0 = (c) => {
|
|
|
61595
61568
|
}, ZR = (c, t) => {
|
|
61596
61569
|
const n = c.clients.get(t.client);
|
|
61597
61570
|
return n[os(n, t.clock)];
|
|
61598
|
-
},
|
|
61571
|
+
}, Bm = (
|
|
61599
61572
|
/** @type {function(StructStore,ID):Item} */
|
|
61600
61573
|
ZR
|
|
61601
61574
|
), Uy = (c, t, n) => {
|
|
@@ -61748,7 +61721,7 @@ const Ox = (c, t) => t.deleteSet.clients.size === 0 && !RM(t.afterState, (n, e)
|
|
|
61748
61721
|
}
|
|
61749
61722
|
return r;
|
|
61750
61723
|
}, Ax = "You must not compute changes after the event-handler fired.";
|
|
61751
|
-
class
|
|
61724
|
+
class Gh {
|
|
61752
61725
|
/**
|
|
61753
61726
|
* @param {T} target The changed type.
|
|
61754
61727
|
* @param {Transaction} transaction
|
|
@@ -61805,13 +61778,13 @@ class Yh {
|
|
|
61805
61778
|
l = l.left;
|
|
61806
61779
|
if (this.deletes(o))
|
|
61807
61780
|
if (l !== null && this.deletes(l))
|
|
61808
|
-
r = "delete", a =
|
|
61781
|
+
r = "delete", a = Im(l.content.getContent());
|
|
61809
61782
|
else
|
|
61810
61783
|
return;
|
|
61811
61784
|
else
|
|
61812
|
-
l !== null && this.deletes(l) ? (r = "update", a =
|
|
61785
|
+
l !== null && this.deletes(l) ? (r = "update", a = Im(l.content.getContent())) : (r = "add", a = void 0);
|
|
61813
61786
|
} else if (this.deletes(o))
|
|
61814
|
-
r = "delete", a =
|
|
61787
|
+
r = "delete", a = Im(
|
|
61815
61788
|
/** @type {Item} */
|
|
61816
61789
|
o.content.getContent()
|
|
61817
61790
|
);
|
|
@@ -61923,7 +61896,7 @@ const o4 = (c) => {
|
|
|
61923
61896
|
const e = new r4(t, n);
|
|
61924
61897
|
return c.push(e), e;
|
|
61925
61898
|
}
|
|
61926
|
-
},
|
|
61899
|
+
}, Yh = (c, t) => {
|
|
61927
61900
|
if (c._start === null || t === 0 || c._searchMarker === null)
|
|
61928
61901
|
return null;
|
|
61929
61902
|
const n = c._searchMarker.length === 0 ? null : c._searchMarker.reduce((o, r) => Pp(t - o.index) < Pp(t - r.index) ? o : r);
|
|
@@ -61957,7 +61930,7 @@ const o4 = (c) => {
|
|
|
61957
61930
|
}
|
|
61958
61931
|
(t < s.index || n > 0 && t === s.index) && (s.index = _u(t, s.index + n));
|
|
61959
61932
|
}
|
|
61960
|
-
},
|
|
61933
|
+
}, Zh = (c, t, n) => {
|
|
61961
61934
|
const e = c, s = t.changedParentTypes;
|
|
61962
61935
|
for (; vu(s, c, () => []).push(n), c._item !== null; )
|
|
61963
61936
|
c = /** @type {AbstractType<any>} */
|
|
@@ -62140,7 +62113,7 @@ const HC = (c, t, n) => {
|
|
|
62140
62113
|
}
|
|
62141
62114
|
};
|
|
62142
62115
|
}, JC = (c, t) => {
|
|
62143
|
-
const n =
|
|
62116
|
+
const n = Yh(c, t);
|
|
62144
62117
|
let e = c._start;
|
|
62145
62118
|
for (n !== null && (e = n.p, t -= n.index); e !== null; e = e.right)
|
|
62146
62119
|
if (!e.deleted && e.countable) {
|
|
@@ -62148,7 +62121,7 @@ const HC = (c, t, n) => {
|
|
|
62148
62121
|
return e.content.getContent()[t];
|
|
62149
62122
|
t -= e.length;
|
|
62150
62123
|
}
|
|
62151
|
-
},
|
|
62124
|
+
}, fh = (c, t, n, e) => {
|
|
62152
62125
|
let s = n;
|
|
62153
62126
|
const o = c.doc, r = o.clientID, a = o.store, l = n === null ? t._start : n.right;
|
|
62154
62127
|
let i = [];
|
|
@@ -62171,13 +62144,13 @@ const HC = (c, t, n) => {
|
|
|
62171
62144
|
switch (u(), d.constructor) {
|
|
62172
62145
|
case Uint8Array:
|
|
62173
62146
|
case ArrayBuffer:
|
|
62174
|
-
s = new Ko(Xr(r, gi(a, r)), s, s && s.lastId, l, l && l.id, t, null, new
|
|
62147
|
+
s = new Ko(Xr(r, gi(a, r)), s, s && s.lastId, l, l && l.id, t, null, new Qh(new Uint8Array(
|
|
62175
62148
|
/** @type {Uint8Array} */
|
|
62176
62149
|
d
|
|
62177
62150
|
))), s.integrate(c, 0);
|
|
62178
62151
|
break;
|
|
62179
62152
|
case ff:
|
|
62180
|
-
s = new Ko(Xr(r, gi(a, r)), s, s && s.lastId, l, l && l.id, t, null, new
|
|
62153
|
+
s = new Ko(Xr(r, gi(a, r)), s, s && s.lastId, l, l && l.id, t, null, new Xh(
|
|
62181
62154
|
/** @type {Doc} */
|
|
62182
62155
|
d
|
|
62183
62156
|
)), s.integrate(c, 0);
|
|
@@ -62194,8 +62167,8 @@ const HC = (c, t, n) => {
|
|
|
62194
62167
|
if (n > t._length)
|
|
62195
62168
|
throw VC();
|
|
62196
62169
|
if (n === 0)
|
|
62197
|
-
return t._searchMarker && Id(t._searchMarker, n, e.length),
|
|
62198
|
-
const s = n, o =
|
|
62170
|
+
return t._searchMarker && Id(t._searchMarker, n, e.length), fh(c, t, null, e);
|
|
62171
|
+
const s = n, o = Yh(t, n);
|
|
62199
62172
|
let r = t._start;
|
|
62200
62173
|
for (o !== null && (r = o.p, n -= o.index, n === 0 && (r = r.prev, n += r && r.countable && !r.deleted ? r.length : 0)); r !== null; r = r.right)
|
|
62201
62174
|
if (!r.deleted && r.countable) {
|
|
@@ -62205,17 +62178,17 @@ const HC = (c, t, n) => {
|
|
|
62205
62178
|
}
|
|
62206
62179
|
n -= r.length;
|
|
62207
62180
|
}
|
|
62208
|
-
return t._searchMarker && Id(t._searchMarker, s, e.length),
|
|
62181
|
+
return t._searchMarker && Id(t._searchMarker, s, e.length), fh(c, t, r, e);
|
|
62209
62182
|
}, s4 = (c, t, n) => {
|
|
62210
62183
|
let s = (t._searchMarker || []).reduce((o, r) => r.index > o.index ? r : o, { index: 0, p: t._start }).p;
|
|
62211
62184
|
if (s)
|
|
62212
62185
|
for (; s.right; )
|
|
62213
62186
|
s = s.right;
|
|
62214
|
-
return
|
|
62187
|
+
return fh(c, t, s, n);
|
|
62215
62188
|
}, GC = (c, t, n, e) => {
|
|
62216
62189
|
if (e === 0)
|
|
62217
62190
|
return;
|
|
62218
|
-
const s = n, o = e, r =
|
|
62191
|
+
const s = n, o = e, r = Yh(t, n);
|
|
62219
62192
|
let a = t._start;
|
|
62220
62193
|
for (r !== null && (a = r.p, n -= r.index); a !== null && n > 0; a = a.right)
|
|
62221
62194
|
!a.deleted && a.countable && (n < a.length && Qs(c, Xr(a.id.client, a.id.clock + n)), n -= a.length);
|
|
@@ -62229,7 +62202,7 @@ const HC = (c, t, n) => {
|
|
|
62229
62202
|
-o + e
|
|
62230
62203
|
/* in case we remove the above exception */
|
|
62231
62204
|
);
|
|
62232
|
-
},
|
|
62205
|
+
}, ph = (c, t, n) => {
|
|
62233
62206
|
const e = t._map.get(n);
|
|
62234
62207
|
e !== void 0 && e.delete(c);
|
|
62235
62208
|
}, Z0 = (c, t, n, e) => {
|
|
@@ -62247,13 +62220,13 @@ const HC = (c, t, n) => {
|
|
|
62247
62220
|
a = new au([e]);
|
|
62248
62221
|
break;
|
|
62249
62222
|
case Uint8Array:
|
|
62250
|
-
a = new
|
|
62223
|
+
a = new Qh(
|
|
62251
62224
|
/** @type {Uint8Array} */
|
|
62252
62225
|
e
|
|
62253
62226
|
);
|
|
62254
62227
|
break;
|
|
62255
62228
|
case ff:
|
|
62256
|
-
a = new
|
|
62229
|
+
a = new Xh(
|
|
62257
62230
|
/** @type {Doc} */
|
|
62258
62231
|
e
|
|
62259
62232
|
);
|
|
@@ -62289,7 +62262,7 @@ const HC = (c, t, n) => {
|
|
|
62289
62262
|
/** @param {any} entry */
|
|
62290
62263
|
(t) => !t[1].deleted
|
|
62291
62264
|
);
|
|
62292
|
-
class QC extends
|
|
62265
|
+
class QC extends Gh {
|
|
62293
62266
|
/**
|
|
62294
62267
|
* @param {YArray<T>} yarray The changed type
|
|
62295
62268
|
* @param {Transaction} transaction The transaction object
|
|
@@ -62361,7 +62334,7 @@ class Ml extends Bo {
|
|
|
62361
62334
|
* @param {Set<null|string>} parentSubs Keys changed on this type. `null` if list was modified.
|
|
62362
62335
|
*/
|
|
62363
62336
|
_callObserver(t, n) {
|
|
62364
|
-
super._callObserver(t, n),
|
|
62337
|
+
super._callObserver(t, n), Zh(this, t, new QC(this, t));
|
|
62365
62338
|
}
|
|
62366
62339
|
/**
|
|
62367
62340
|
* Inserts new content at an index.
|
|
@@ -62498,7 +62471,7 @@ class Ml extends Bo {
|
|
|
62498
62471
|
t.writeTypeRef(y4);
|
|
62499
62472
|
}
|
|
62500
62473
|
}
|
|
62501
|
-
class c4 extends
|
|
62474
|
+
class c4 extends Gh {
|
|
62502
62475
|
/**
|
|
62503
62476
|
* @param {YMap<T>} ymap The YArray that changed.
|
|
62504
62477
|
* @param {Transaction} transaction
|
|
@@ -62560,7 +62533,7 @@ class ou extends Bo {
|
|
|
62560
62533
|
* @param {Set<null|string>} parentSubs Keys changed on this type. `null` if list was modified.
|
|
62561
62534
|
*/
|
|
62562
62535
|
_callObserver(t, n) {
|
|
62563
|
-
|
|
62536
|
+
Zh(this, t, new c4(this, t, n));
|
|
62564
62537
|
}
|
|
62565
62538
|
/**
|
|
62566
62539
|
* Transforms this Shared Type to a JSON object.
|
|
@@ -62590,7 +62563,7 @@ class ou extends Bo {
|
|
|
62590
62563
|
* @return {IterableIterator<string>}
|
|
62591
62564
|
*/
|
|
62592
62565
|
keys() {
|
|
62593
|
-
return
|
|
62566
|
+
return Fm(
|
|
62594
62567
|
fp(this._map),
|
|
62595
62568
|
/** @param {any} v */
|
|
62596
62569
|
(t) => t[0]
|
|
@@ -62602,7 +62575,7 @@ class ou extends Bo {
|
|
|
62602
62575
|
* @return {IterableIterator<MapType>}
|
|
62603
62576
|
*/
|
|
62604
62577
|
values() {
|
|
62605
|
-
return
|
|
62578
|
+
return Fm(
|
|
62606
62579
|
fp(this._map),
|
|
62607
62580
|
/** @param {any} v */
|
|
62608
62581
|
(t) => t[1].content.getContent()[t[1].length - 1]
|
|
@@ -62614,7 +62587,7 @@ class ou extends Bo {
|
|
|
62614
62587
|
* @return {IterableIterator<[string, MapType]>}
|
|
62615
62588
|
*/
|
|
62616
62589
|
entries() {
|
|
62617
|
-
return
|
|
62590
|
+
return Fm(
|
|
62618
62591
|
fp(this._map),
|
|
62619
62592
|
/** @param {any} v */
|
|
62620
62593
|
(t) => (
|
|
@@ -62648,7 +62621,7 @@ class ou extends Bo {
|
|
|
62648
62621
|
*/
|
|
62649
62622
|
delete(t) {
|
|
62650
62623
|
this.doc !== null ? Pr(this.doc, (n) => {
|
|
62651
|
-
|
|
62624
|
+
ph(n, this, t);
|
|
62652
62625
|
}) : this._prelimContent.delete(t);
|
|
62653
62626
|
}
|
|
62654
62627
|
/**
|
|
@@ -62697,7 +62670,7 @@ class ou extends Bo {
|
|
|
62697
62670
|
clear() {
|
|
62698
62671
|
this.doc !== null ? Pr(this.doc, (t) => {
|
|
62699
62672
|
this.forEach(function(n, e, s) {
|
|
62700
|
-
|
|
62673
|
+
ph(t, s, e);
|
|
62701
62674
|
});
|
|
62702
62675
|
}) : this._prelimContent.clear();
|
|
62703
62676
|
}
|
|
@@ -62756,7 +62729,7 @@ const jx = (c, t, n) => {
|
|
|
62756
62729
|
}
|
|
62757
62730
|
return t;
|
|
62758
62731
|
}, pp = (c, t, n, e) => {
|
|
62759
|
-
const s = /* @__PURE__ */ new Map(), o = e ?
|
|
62732
|
+
const s = /* @__PURE__ */ new Map(), o = e ? Yh(t, n) : null;
|
|
62760
62733
|
if (o) {
|
|
62761
62734
|
const r = new Hy(o.p.left, o.p, o.index, s);
|
|
62762
62735
|
return jx(c, r, n - o.index);
|
|
@@ -62809,7 +62782,7 @@ const jx = (c, t, n) => {
|
|
|
62809
62782
|
}
|
|
62810
62783
|
}
|
|
62811
62784
|
return r;
|
|
62812
|
-
},
|
|
62785
|
+
}, zm = (c, t, n, e, s) => {
|
|
62813
62786
|
n.currentAttributes.forEach((p, f) => {
|
|
62814
62787
|
s[f] === void 0 && (s[f] = null);
|
|
62815
62788
|
});
|
|
@@ -62997,7 +62970,7 @@ const jx = (c, t, n) => {
|
|
|
62997
62970
|
);
|
|
62998
62971
|
return r._searchMarker && Id(r._searchMarker, t.index, -e + n), t;
|
|
62999
62972
|
};
|
|
63000
|
-
class p4 extends
|
|
62973
|
+
class p4 extends Gh {
|
|
63001
62974
|
/**
|
|
63002
62975
|
* @param {YText} ytext
|
|
63003
62976
|
* @param {Transaction} transaction
|
|
@@ -63118,7 +63091,7 @@ class p4 extends Yh {
|
|
|
63118
63091
|
);
|
|
63119
63092
|
}
|
|
63120
63093
|
}
|
|
63121
|
-
class
|
|
63094
|
+
class hh extends Bo {
|
|
63122
63095
|
/**
|
|
63123
63096
|
* @param {String} [string] The initial value of the YText.
|
|
63124
63097
|
*/
|
|
@@ -63147,7 +63120,7 @@ class gh extends Bo {
|
|
|
63147
63120
|
this._pending = null;
|
|
63148
63121
|
}
|
|
63149
63122
|
_copy() {
|
|
63150
|
-
return new
|
|
63123
|
+
return new hh();
|
|
63151
63124
|
}
|
|
63152
63125
|
/**
|
|
63153
63126
|
* Makes a copy of this data type that can be included somewhere else.
|
|
@@ -63157,7 +63130,7 @@ class gh extends Bo {
|
|
|
63157
63130
|
* @return {YText}
|
|
63158
63131
|
*/
|
|
63159
63132
|
clone() {
|
|
63160
|
-
const t = new
|
|
63133
|
+
const t = new hh();
|
|
63161
63134
|
return t.applyDelta(this.toDelta()), t;
|
|
63162
63135
|
}
|
|
63163
63136
|
/**
|
|
@@ -63169,7 +63142,7 @@ class gh extends Bo {
|
|
|
63169
63142
|
_callObserver(t, n) {
|
|
63170
63143
|
super._callObserver(t, n);
|
|
63171
63144
|
const e = new p4(this, t, n);
|
|
63172
|
-
|
|
63145
|
+
Zh(this, t, e), !t.local && this._hasFormatting && (t._needFormattingCleanup = !0);
|
|
63173
63146
|
}
|
|
63174
63147
|
/**
|
|
63175
63148
|
* Returns the unformatted string representation of this YText type.
|
|
@@ -63210,7 +63183,7 @@ class gh extends Bo {
|
|
|
63210
63183
|
if (r.insert !== void 0) {
|
|
63211
63184
|
const a = !n && typeof r.insert == "string" && o === t.length - 1 && s.right === null && r.insert.slice(-1) === `
|
|
63212
63185
|
` ? r.insert.slice(0, -1) : r.insert;
|
|
63213
|
-
(typeof a != "string" || a.length > 0) &&
|
|
63186
|
+
(typeof a != "string" || a.length > 0) && zm(e, this, s, a, r.attributes || {});
|
|
63214
63187
|
} else
|
|
63215
63188
|
r.retain !== void 0 ? Px(e, this, s, r.retain, r.attributes || {}) : r.delete !== void 0 && Ix(e, s, r.delete);
|
|
63216
63189
|
}
|
|
@@ -63305,7 +63278,7 @@ class gh extends Bo {
|
|
|
63305
63278
|
const r = pp(o, this, t, !e);
|
|
63306
63279
|
e || (e = {}, r.currentAttributes.forEach((a, l) => {
|
|
63307
63280
|
e[l] = a;
|
|
63308
|
-
})),
|
|
63281
|
+
})), zm(o, this, r, n, e);
|
|
63309
63282
|
}) : this._pending.push(() => this.insert(t, n, e));
|
|
63310
63283
|
}
|
|
63311
63284
|
/**
|
|
@@ -63322,7 +63295,7 @@ class gh extends Bo {
|
|
|
63322
63295
|
const s = this.doc;
|
|
63323
63296
|
s !== null ? Pr(s, (o) => {
|
|
63324
63297
|
const r = pp(o, this, t, !e);
|
|
63325
|
-
|
|
63298
|
+
zm(o, this, r, n, e || {});
|
|
63326
63299
|
}) : this._pending.push(() => this.insertEmbed(t, n, e || {}));
|
|
63327
63300
|
}
|
|
63328
63301
|
/**
|
|
@@ -63371,7 +63344,7 @@ class gh extends Bo {
|
|
|
63371
63344
|
*/
|
|
63372
63345
|
removeAttribute(t) {
|
|
63373
63346
|
this.doc !== null ? Pr(this.doc, (n) => {
|
|
63374
|
-
|
|
63347
|
+
ph(n, this, t);
|
|
63375
63348
|
}) : this._pending.push(() => this.removeAttribute(t));
|
|
63376
63349
|
}
|
|
63377
63350
|
/**
|
|
@@ -63425,7 +63398,7 @@ class gh extends Bo {
|
|
|
63425
63398
|
t.writeTypeRef(v4);
|
|
63426
63399
|
}
|
|
63427
63400
|
}
|
|
63428
|
-
class
|
|
63401
|
+
class $m {
|
|
63429
63402
|
/**
|
|
63430
63403
|
* @param {YXmlFragment | YXmlElement} root
|
|
63431
63404
|
* @param {function(AbstractType<any>):boolean} [f]
|
|
@@ -63533,7 +63506,7 @@ class iu extends Bo {
|
|
|
63533
63506
|
* @public
|
|
63534
63507
|
*/
|
|
63535
63508
|
createTreeWalker(t) {
|
|
63536
|
-
return new
|
|
63509
|
+
return new $m(this, t);
|
|
63537
63510
|
}
|
|
63538
63511
|
/**
|
|
63539
63512
|
* Returns the first YXmlElement that matches the query.
|
|
@@ -63552,7 +63525,7 @@ class iu extends Bo {
|
|
|
63552
63525
|
*/
|
|
63553
63526
|
querySelector(t) {
|
|
63554
63527
|
t = t.toUpperCase();
|
|
63555
|
-
const e = new
|
|
63528
|
+
const e = new $m(this, (s) => s.nodeName && s.nodeName.toUpperCase() === t).next();
|
|
63556
63529
|
return e.done ? null : e.value;
|
|
63557
63530
|
}
|
|
63558
63531
|
/**
|
|
@@ -63567,7 +63540,7 @@ class iu extends Bo {
|
|
|
63567
63540
|
* @public
|
|
63568
63541
|
*/
|
|
63569
63542
|
querySelectorAll(t) {
|
|
63570
|
-
return t = t.toUpperCase(), nu(new
|
|
63543
|
+
return t = t.toUpperCase(), nu(new $m(this, (n) => n.nodeName && n.nodeName.toUpperCase() === t));
|
|
63571
63544
|
}
|
|
63572
63545
|
/**
|
|
63573
63546
|
* Creates YXmlEvent and calls observers.
|
|
@@ -63576,7 +63549,7 @@ class iu extends Bo {
|
|
|
63576
63549
|
* @param {Set<null|string>} parentSubs Keys changed on this type. `null` if list was modified.
|
|
63577
63550
|
*/
|
|
63578
63551
|
_callObserver(t, n) {
|
|
63579
|
-
|
|
63552
|
+
Zh(this, t, new h4(this, n, t));
|
|
63580
63553
|
}
|
|
63581
63554
|
/**
|
|
63582
63555
|
* Get the string representation of all the children of this YXmlFragment.
|
|
@@ -63642,7 +63615,7 @@ class iu extends Bo {
|
|
|
63642
63615
|
if (this.doc !== null)
|
|
63643
63616
|
Pr(this.doc, (e) => {
|
|
63644
63617
|
const s = t && t instanceof Bo ? t._item : t;
|
|
63645
|
-
|
|
63618
|
+
fh(e, this, s, n);
|
|
63646
63619
|
});
|
|
63647
63620
|
else {
|
|
63648
63621
|
const e = (
|
|
@@ -63822,7 +63795,7 @@ class Rd extends iu {
|
|
|
63822
63795
|
*/
|
|
63823
63796
|
removeAttribute(t) {
|
|
63824
63797
|
this.doc !== null ? Pr(this.doc, (n) => {
|
|
63825
|
-
|
|
63798
|
+
ph(n, this, t);
|
|
63826
63799
|
}) : this._prelimAttrs.delete(t);
|
|
63827
63800
|
}
|
|
63828
63801
|
/**
|
|
@@ -63922,7 +63895,7 @@ class Rd extends iu {
|
|
|
63922
63895
|
t.writeTypeRef(_4), t.writeKey(this.nodeName);
|
|
63923
63896
|
}
|
|
63924
63897
|
}
|
|
63925
|
-
class h4 extends
|
|
63898
|
+
class h4 extends Gh {
|
|
63926
63899
|
/**
|
|
63927
63900
|
* @param {YXmlElement|YXmlText|YXmlFragment} target The target on which the event is created.
|
|
63928
63901
|
* @param {Set<string|null>} subs The set of changed attributes. `null` is included if the
|
|
@@ -64013,7 +63986,7 @@ class $s extends r2 {
|
|
|
64013
63986
|
return null;
|
|
64014
63987
|
}
|
|
64015
63988
|
}
|
|
64016
|
-
class
|
|
63989
|
+
class Qh {
|
|
64017
63990
|
/**
|
|
64018
63991
|
* @param {Uint8Array} content
|
|
64019
63992
|
*/
|
|
@@ -64042,7 +64015,7 @@ class Xh {
|
|
|
64042
64015
|
* @return {ContentBinary}
|
|
64043
64016
|
*/
|
|
64044
64017
|
copy() {
|
|
64045
|
-
return new
|
|
64018
|
+
return new Qh(this.content);
|
|
64046
64019
|
}
|
|
64047
64020
|
/**
|
|
64048
64021
|
* @param {number} offset
|
|
@@ -64088,7 +64061,7 @@ class Xh {
|
|
|
64088
64061
|
return 3;
|
|
64089
64062
|
}
|
|
64090
64063
|
}
|
|
64091
|
-
class
|
|
64064
|
+
class gh {
|
|
64092
64065
|
/**
|
|
64093
64066
|
* @param {number} len
|
|
64094
64067
|
*/
|
|
@@ -64117,14 +64090,14 @@ class mh {
|
|
|
64117
64090
|
* @return {ContentDeleted}
|
|
64118
64091
|
*/
|
|
64119
64092
|
copy() {
|
|
64120
|
-
return new
|
|
64093
|
+
return new gh(this.len);
|
|
64121
64094
|
}
|
|
64122
64095
|
/**
|
|
64123
64096
|
* @param {number} offset
|
|
64124
64097
|
* @return {ContentDeleted}
|
|
64125
64098
|
*/
|
|
64126
64099
|
splice(t) {
|
|
64127
|
-
const n = new
|
|
64100
|
+
const n = new gh(this.len - t);
|
|
64128
64101
|
return this.len = t, n;
|
|
64129
64102
|
}
|
|
64130
64103
|
/**
|
|
@@ -64166,7 +64139,7 @@ class mh {
|
|
|
64166
64139
|
}
|
|
64167
64140
|
}
|
|
64168
64141
|
const m4 = (c, t) => new ff({ guid: c, ...t, shouldLoad: t.shouldLoad || t.autoLoad || !1 });
|
|
64169
|
-
class
|
|
64142
|
+
class Xh {
|
|
64170
64143
|
/**
|
|
64171
64144
|
* @param {Doc} doc
|
|
64172
64145
|
*/
|
|
@@ -64197,7 +64170,7 @@ class eg {
|
|
|
64197
64170
|
* @return {ContentDoc}
|
|
64198
64171
|
*/
|
|
64199
64172
|
copy() {
|
|
64200
|
-
return new
|
|
64173
|
+
return new Xh(m4(this.doc.guid, this.opts));
|
|
64201
64174
|
}
|
|
64202
64175
|
/**
|
|
64203
64176
|
* @param {number} offset
|
|
@@ -64686,10 +64659,10 @@ class Ko extends r2 {
|
|
|
64686
64659
|
* @type {boolean}
|
|
64687
64660
|
*/
|
|
64688
64661
|
set marker(t) {
|
|
64689
|
-
(this.info &
|
|
64662
|
+
(this.info & Rm) > 0 !== t && (this.info ^= Rm);
|
|
64690
64663
|
}
|
|
64691
64664
|
get marker() {
|
|
64692
|
-
return (this.info &
|
|
64665
|
+
return (this.info & Rm) > 0;
|
|
64693
64666
|
}
|
|
64694
64667
|
/**
|
|
64695
64668
|
* If true, do not garbage collect this Item.
|
|
@@ -64708,13 +64681,13 @@ class Ko extends r2 {
|
|
|
64708
64681
|
* @type {Boolean}
|
|
64709
64682
|
*/
|
|
64710
64683
|
get deleted() {
|
|
64711
|
-
return (this.info &
|
|
64684
|
+
return (this.info & Mm) > 0;
|
|
64712
64685
|
}
|
|
64713
64686
|
set deleted(t) {
|
|
64714
|
-
this.deleted !== t && (this.info ^=
|
|
64687
|
+
this.deleted !== t && (this.info ^= Mm);
|
|
64715
64688
|
}
|
|
64716
64689
|
markDeleted() {
|
|
64717
|
-
this.info |=
|
|
64690
|
+
this.info |= Mm;
|
|
64718
64691
|
}
|
|
64719
64692
|
/**
|
|
64720
64693
|
* Return the creator clientID of the missing op or define missing items and return null.
|
|
@@ -64735,7 +64708,7 @@ class Ko extends r2 {
|
|
|
64735
64708
|
else if (!this.parent)
|
|
64736
64709
|
this.left && this.left.constructor === Ko && (this.parent = this.left.parent, this.parentSub = this.left.parentSub), this.right && this.right.constructor === Ko && (this.parent = this.right.parent, this.parentSub = this.right.parentSub);
|
|
64737
64710
|
else if (this.parent.constructor === Mp) {
|
|
64738
|
-
const e =
|
|
64711
|
+
const e = Bm(n, this.parent);
|
|
64739
64712
|
e.constructor === $s ? this.parent = null : this.parent = /** @type {ContentType} */
|
|
64740
64713
|
e.content.type;
|
|
64741
64714
|
}
|
|
@@ -64765,8 +64738,8 @@ class Ko extends r2 {
|
|
|
64765
64738
|
e = s, o.clear();
|
|
64766
64739
|
else if (dp(this.rightOrigin, s.rightOrigin))
|
|
64767
64740
|
break;
|
|
64768
|
-
} else if (s.origin !== null && r.has(
|
|
64769
|
-
o.has(
|
|
64741
|
+
} else if (s.origin !== null && r.has(Bm(t.doc.store, s.origin)))
|
|
64742
|
+
o.has(Bm(t.doc.store, s.origin)) || (e = s, o.clear());
|
|
64770
64743
|
else
|
|
64771
64744
|
break;
|
|
64772
64745
|
s = s.right;
|
|
@@ -64861,7 +64834,7 @@ class Ko extends r2 {
|
|
|
64861
64834
|
gc(t, n) {
|
|
64862
64835
|
if (!this.deleted)
|
|
64863
64836
|
throw Wl();
|
|
64864
|
-
this.content.gc(t), n ? QR(t, this, new $s(this.id, this.length)) : this.content = new
|
|
64837
|
+
this.content.gc(t), n ? QR(t, this, new $s(this.id, this.length)) : this.content = new gh(this.length);
|
|
64865
64838
|
}
|
|
64866
64839
|
/**
|
|
64867
64840
|
* Transform the properties of this type to binary and write it to an
|
|
@@ -64873,7 +64846,7 @@ class Ko extends r2 {
|
|
|
64873
64846
|
* @param {number} offset
|
|
64874
64847
|
*/
|
|
64875
64848
|
write(t, n) {
|
|
64876
|
-
const e = n > 0 ? Xr(this.id.client, this.id.clock + n - 1) : this.origin, s = this.rightOrigin, o = this.parentSub, r = this.content.getRef() & zM | (e === null ? 0 :
|
|
64849
|
+
const e = n > 0 ? Xr(this.id.client, this.id.clock + n - 1) : this.origin, s = this.rightOrigin, o = this.parentSub, r = this.content.getRef() & zM | (e === null ? 0 : dh) | // origin is defined
|
|
64877
64850
|
(s === null ? 0 : SC) | // right origin is defined
|
|
64878
64851
|
(o === null ? 0 : BM);
|
|
64879
64852
|
if (t.writeInfo(r), e !== null && t.writeLeftID(e), s !== null && t.writeRightID(s), e === null && s === null) {
|
|
@@ -64915,7 +64888,7 @@ const S4 = Ao();
|
|
|
64915
64888
|
function s2() {
|
|
64916
64889
|
return Math.random().toString(36).replace(/[^a-z]+/g, "").substr(0, 5);
|
|
64917
64890
|
}
|
|
64918
|
-
function
|
|
64891
|
+
function mh(c, t, n, e, s, o, r) {
|
|
64919
64892
|
return {
|
|
64920
64893
|
author: t,
|
|
64921
64894
|
content: c,
|
|
@@ -65111,7 +65084,7 @@ class Ld {
|
|
|
65111
65084
|
const x = E.get("id"), S = E.get("type") === "thread" ? l2(
|
|
65112
65085
|
E.get("quote"),
|
|
65113
65086
|
E.get("comments").toArray().map(
|
|
65114
|
-
(C) =>
|
|
65087
|
+
(C) => mh(
|
|
65115
65088
|
C.get("content"),
|
|
65116
65089
|
C.get("author"),
|
|
65117
65090
|
C.get("userEmail"),
|
|
@@ -65122,7 +65095,7 @@ class Ld {
|
|
|
65122
65095
|
)
|
|
65123
65096
|
),
|
|
65124
65097
|
x
|
|
65125
|
-
) :
|
|
65098
|
+
) : mh(
|
|
65126
65099
|
E.get("content"),
|
|
65127
65100
|
E.get("author"),
|
|
65128
65101
|
E.get("userEmail"),
|
|
@@ -65178,7 +65151,7 @@ const T4 = {
|
|
|
65178
65151
|
"(^|\\s|\\()([" + X0 + "]((?:" + d2 + P4 + "){0," + I4 + "}))$"
|
|
65179
65152
|
), R4 = 50, L4 = new RegExp(
|
|
65180
65153
|
"(^|\\s|\\()([" + X0 + "]((?:" + d2 + "){0," + R4 + "}))$"
|
|
65181
|
-
), D4 = 5,
|
|
65154
|
+
), D4 = 5, Um = /* @__PURE__ */ new Map(), F4 = {
|
|
65182
65155
|
search(c, t, n) {
|
|
65183
65156
|
setTimeout(() => {
|
|
65184
65157
|
const e = c.filter(
|
|
@@ -65191,7 +65164,7 @@ const T4 = {
|
|
|
65191
65164
|
function B4(c, t) {
|
|
65192
65165
|
const [n, e] = It([]);
|
|
65193
65166
|
return Wt(() => {
|
|
65194
|
-
const s =
|
|
65167
|
+
const s = Um.get(c);
|
|
65195
65168
|
if (c == null) {
|
|
65196
65169
|
e([]);
|
|
65197
65170
|
return;
|
|
@@ -65201,8 +65174,8 @@ function B4(c, t) {
|
|
|
65201
65174
|
e(s);
|
|
65202
65175
|
return;
|
|
65203
65176
|
}
|
|
65204
|
-
|
|
65205
|
-
|
|
65177
|
+
Um.set(c, null), F4.search(t, c, (o) => {
|
|
65178
|
+
Um.set(c, o), e(o);
|
|
65206
65179
|
});
|
|
65207
65180
|
}
|
|
65208
65181
|
}, [c, t]), n;
|
|
@@ -65293,7 +65266,7 @@ function q4({
|
|
|
65293
65266
|
onSelectOption: l,
|
|
65294
65267
|
triggerFn: i,
|
|
65295
65268
|
options: a,
|
|
65296
|
-
menuRenderFn: (u, { selectedIndex: d, selectOptionAndCleanUp: p, setHighlightedIndex: f }) => u.current && o.length ?
|
|
65269
|
+
menuRenderFn: (u, { selectedIndex: d, selectOptionAndCleanUp: p, setHighlightedIndex: f }) => u.current && o.length ? bh.createPortal(
|
|
65297
65270
|
/* @__PURE__ */ ge.jsx("div", { className: "typeahead-popover mentions-menu", children: /* @__PURE__ */ ge.jsx("ul", { children: a.map((h, m) => /* @__PURE__ */ ge.jsx(
|
|
65298
65271
|
H4,
|
|
65299
65272
|
{
|
|
@@ -65371,7 +65344,7 @@ function f2({
|
|
|
65371
65344
|
};
|
|
65372
65345
|
return Wt(() => () => {
|
|
65373
65346
|
a([]);
|
|
65374
|
-
}, []), /* @__PURE__ */ ge.jsxs(
|
|
65347
|
+
}, []), /* @__PURE__ */ ge.jsxs(Fh, { initialConfig: l, children: [
|
|
65375
65348
|
/* @__PURE__ */ ge.jsxs("div", { className: "CommentPlugin_CommentInputBox_EditorContainer", children: [
|
|
65376
65349
|
/* @__PURE__ */ ge.jsx(
|
|
65377
65350
|
DE,
|
|
@@ -65382,7 +65355,7 @@ function f2({
|
|
|
65382
65355
|
}
|
|
65383
65356
|
),
|
|
65384
65357
|
/* @__PURE__ */ ge.jsx(LE, { onChange: e }),
|
|
65385
|
-
/* @__PURE__ */ ge.jsx(
|
|
65358
|
+
/* @__PURE__ */ ge.jsx(Bh, {}),
|
|
65386
65359
|
t !== !1 && /* @__PURE__ */ ge.jsx(P0, {}),
|
|
65387
65360
|
/* @__PURE__ */ ge.jsx(J4, { onEscape: n }),
|
|
65388
65361
|
/* @__PURE__ */ ge.jsx(RE, {}),
|
|
@@ -65466,7 +65439,7 @@ function V4({
|
|
|
65466
65439
|
return E ? E.getTextContent() : "";
|
|
65467
65440
|
});
|
|
65468
65441
|
w.length > 100 && (w = w.slice(0, 99) + "…"), n(
|
|
65469
|
-
l2(w, [
|
|
65442
|
+
l2(w, [mh(l, e ?? m, s, r)]),
|
|
65470
65443
|
!0,
|
|
65471
65444
|
void 0,
|
|
65472
65445
|
h.current
|
|
@@ -65517,9 +65490,9 @@ function K4({
|
|
|
65517
65490
|
}) {
|
|
65518
65491
|
const [l, i] = It(""), [u, d] = It(!1), p = ir(null), f = g2(), h = p2(i, d), m = () => {
|
|
65519
65492
|
if (u) {
|
|
65520
|
-
a([]), c(
|
|
65493
|
+
a([]), c(mh(l, e ?? f, s, r), !1, t);
|
|
65521
65494
|
const g = p.current;
|
|
65522
|
-
g !== null && g.dispatchCommand(
|
|
65495
|
+
g !== null && g.dispatchCommand(Ch, void 0);
|
|
65523
65496
|
}
|
|
65524
65497
|
};
|
|
65525
65498
|
return /* @__PURE__ */ ge.jsxs(ge.Fragment, { children: [
|
|
@@ -66172,7 +66145,7 @@ function s3({
|
|
|
66172
66145
|
l && (Te.setComments(l), Re._commentStore || (Re._commentStore = new Ld(Re), Re._commentStore.getComments().length === 0 && Re._commentStore.setComments(l)));
|
|
66173
66146
|
});
|
|
66174
66147
|
},
|
|
66175
|
-
namespace:
|
|
66148
|
+
namespace: `editor_${e}`,
|
|
66176
66149
|
nodes: Dx,
|
|
66177
66150
|
onError: (Re) => {
|
|
66178
66151
|
console.error("[Lexical Demo][Editor Error Captured]: ", Re);
|
|
@@ -66214,7 +66187,7 @@ function s3({
|
|
|
66214
66187
|
const Se = (Re) => {
|
|
66215
66188
|
console.log("CustomOnChange", Re), r(Re);
|
|
66216
66189
|
};
|
|
66217
|
-
return /* @__PURE__ */ ge.jsx(ge.Fragment, { children: Z ? /* @__PURE__ */ ge.jsxs(
|
|
66190
|
+
return /* @__PURE__ */ ge.jsx(ge.Fragment, { children: Z ? /* @__PURE__ */ ge.jsxs(Fh, { initialConfig: me, children: [
|
|
66218
66191
|
/* @__PURE__ */ ge.jsx(Vw, { children: /* @__PURE__ */ ge.jsx(XS, { children: /* @__PURE__ */ ge.jsxs("div", { ref: w, className: "editor-shell", style: { position: "relative" }, children: [
|
|
66219
66192
|
/* @__PURE__ */ ge.jsxs(ge.Fragment, { children: [
|
|
66220
66193
|
/* @__PURE__ */ ge.jsx(Z4, { setEditorEditable: Be, isEditable: b, htmlString: c }),
|
|
@@ -66254,7 +66227,7 @@ function s3({
|
|
|
66254
66227
|
/* @__PURE__ */ ge.jsx(nE, {}),
|
|
66255
66228
|
/* @__PURE__ */ ge.jsx(wE, {}),
|
|
66256
66229
|
/* @__PURE__ */ ge.jsx(fE, {}),
|
|
66257
|
-
/* @__PURE__ */ ge.jsx(
|
|
66230
|
+
/* @__PURE__ */ ge.jsx(Bh, { externalHistoryState: E }),
|
|
66258
66231
|
/* @__PURE__ */ ge.jsx(
|
|
66259
66232
|
iE,
|
|
66260
66233
|
{
|
|
@@ -66514,7 +66487,7 @@ function l3({
|
|
|
66514
66487
|
const Se = (Re) => {
|
|
66515
66488
|
console.log("CustomOnChange", Re), a(Re);
|
|
66516
66489
|
};
|
|
66517
|
-
return /* @__PURE__ */ ge.jsx(ge.Fragment, { children: Z ? /* @__PURE__ */ ge.jsxs(
|
|
66490
|
+
return /* @__PURE__ */ ge.jsx(ge.Fragment, { children: Z ? /* @__PURE__ */ ge.jsxs(Fh, { initialConfig: me, children: [
|
|
66518
66491
|
/* @__PURE__ */ ge.jsx(Vw, { children: /* @__PURE__ */ ge.jsx(XS, { children: /* @__PURE__ */ ge.jsxs("div", { ref: w, className: "editor-shell", style: { position: "relative" }, children: [
|
|
66519
66492
|
/* @__PURE__ */ ge.jsxs(ge.Fragment, { children: [
|
|
66520
66493
|
/* @__PURE__ */ ge.jsx(
|
|
@@ -66552,7 +66525,7 @@ function l3({
|
|
|
66552
66525
|
/* @__PURE__ */ ge.jsx(nE, {}),
|
|
66553
66526
|
/* @__PURE__ */ ge.jsx(wE, {}),
|
|
66554
66527
|
/* @__PURE__ */ ge.jsx(fE, {}),
|
|
66555
|
-
/* @__PURE__ */ ge.jsx(
|
|
66528
|
+
/* @__PURE__ */ ge.jsx(Bh, { externalHistoryState: E }),
|
|
66556
66529
|
/* @__PURE__ */ ge.jsx(
|
|
66557
66530
|
iE,
|
|
66558
66531
|
{
|
|
@@ -66636,7 +66609,7 @@ export {
|
|
|
66636
66609
|
Wy as F,
|
|
66637
66610
|
Jt as G,
|
|
66638
66611
|
W2 as H,
|
|
66639
|
-
|
|
66612
|
+
Eh as I,
|
|
66640
66613
|
B0 as J,
|
|
66641
66614
|
o3 as K,
|
|
66642
66615
|
D0 as L,
|
|
@@ -66674,4 +66647,4 @@ export {
|
|
|
66674
66647
|
Kl as y,
|
|
66675
66648
|
n3 as z
|
|
66676
66649
|
};
|
|
66677
|
-
//# sourceMappingURL=index-
|
|
66650
|
+
//# sourceMappingURL=index-559cce1f.js.map
|