sykpcomposer 1.20.17 → 1.20.18
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-30ea1a5c.js → ImageComponent-c7fef0db.js} +3 -3
- package/dist/{ImageComponent-30ea1a5c.js.map → ImageComponent-c7fef0db.js.map} +1 -1
- package/dist/{InlineImageComponent-e4f7ec43.js → InlineImageComponent-b41fe870.js} +3 -3
- package/dist/{InlineImageComponent-e4f7ec43.js.map → InlineImageComponent-b41fe870.js.map} +1 -1
- package/dist/{LexicalNestedComposer.prod-09dd8b28.js → LexicalNestedComposer.prod-98f12702.js} +2 -2
- package/dist/{LexicalNestedComposer.prod-09dd8b28.js.map → LexicalNestedComposer.prod-98f12702.js.map} +1 -1
- package/dist/{PollComponent-79030f45.js → PollComponent-5d08c5b9.js} +2 -2
- package/dist/{PollComponent-79030f45.js.map → PollComponent-5d08c5b9.js.map} +1 -1
- package/dist/{index-ea31b32d.js → index-30c48d5f.js} +694 -684
- package/dist/{index-ea31b32d.js.map → index-30c48d5f.js.map} +1 -1
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +65 -65
- package/dist/index.umd.js.map +1 -1
- package/dist/src/lexical/plugins/MsWordGeneratePlugin.d.ts +1 -1
- package/package.json +1 -1
|
@@ -11080,7 +11080,7 @@ class Gh extends B0 {
|
|
|
11080
11080
|
function bO(c) {
|
|
11081
11081
|
return new Gh(c);
|
|
11082
11082
|
}
|
|
11083
|
-
const vO = sr.lazy(() => import("./ImageComponent-
|
|
11083
|
+
const vO = sr.lazy(() => import("./ImageComponent-c7fef0db.js"));
|
|
11084
11084
|
function _O(c) {
|
|
11085
11085
|
const t = c;
|
|
11086
11086
|
if (t.src.startsWith("file:///"))
|
|
@@ -11226,7 +11226,7 @@ function tu({
|
|
|
11226
11226
|
function z0(c) {
|
|
11227
11227
|
return c instanceof bu;
|
|
11228
11228
|
}
|
|
11229
|
-
const xO = sr.lazy(() => import("./InlineImageComponent-
|
|
11229
|
+
const xO = sr.lazy(() => import("./InlineImageComponent-b41fe870.js"));
|
|
11230
11230
|
function wO(c) {
|
|
11231
11231
|
if (c instanceof HTMLImageElement) {
|
|
11232
11232
|
const { alt: t, src: n, width: e, height: s } = c;
|
|
@@ -11381,7 +11381,7 @@ function VS({
|
|
|
11381
11381
|
)
|
|
11382
11382
|
);
|
|
11383
11383
|
}
|
|
11384
|
-
function
|
|
11384
|
+
function MD(c) {
|
|
11385
11385
|
return c instanceof uf;
|
|
11386
11386
|
}
|
|
11387
11387
|
class nu extends ao {
|
|
@@ -11665,11 +11665,11 @@ function YS() {
|
|
|
11665
11665
|
function NO(c) {
|
|
11666
11666
|
return c instanceof ff;
|
|
11667
11667
|
}
|
|
11668
|
-
const AO = sr.lazy(() => import("./PollComponent-
|
|
11668
|
+
const AO = sr.lazy(() => import("./PollComponent-5d08c5b9.js"));
|
|
11669
11669
|
function jO() {
|
|
11670
11670
|
return Math.random().toString(36).replace(/[^a-z]+/g, "").substr(0, 5);
|
|
11671
11671
|
}
|
|
11672
|
-
function
|
|
11672
|
+
function RD(c = "") {
|
|
11673
11673
|
return {
|
|
11674
11674
|
text: c,
|
|
11675
11675
|
uid: jO(),
|
|
@@ -11769,7 +11769,7 @@ class pf extends ss {
|
|
|
11769
11769
|
function ZS(c, t) {
|
|
11770
11770
|
return new pf(c, t);
|
|
11771
11771
|
}
|
|
11772
|
-
function
|
|
11772
|
+
function DD(c) {
|
|
11773
11773
|
return c instanceof pf;
|
|
11774
11774
|
}
|
|
11775
11775
|
const PO = "https://platform.twitter.com/widgets.js";
|
|
@@ -19835,37 +19835,47 @@ var zE = { exports: {} };
|
|
|
19835
19835
|
});
|
|
19836
19836
|
})(zE);
|
|
19837
19837
|
var pA = zE.exports;
|
|
19838
|
-
const zs = /* @__PURE__ */ qd(pA), hA = (c, t, n, e) => {
|
|
19839
|
-
(
|
|
19840
|
-
|
|
19841
|
-
|
|
19842
|
-
|
|
19843
|
-
|
|
19844
|
-
|
|
19845
|
-
|
|
19846
|
-
|
|
19847
|
-
|
|
19848
|
-
|
|
19849
|
-
}
|
|
19850
|
-
|
|
19851
|
-
|
|
19852
|
-
|
|
19853
|
-
|
|
19854
|
-
|
|
19855
|
-
|
|
19856
|
-
|
|
19857
|
-
|
|
19858
|
-
|
|
19859
|
-
|
|
19860
|
-
|
|
19861
|
-
|
|
19862
|
-
|
|
19863
|
-
|
|
19864
|
-
|
|
19865
|
-
|
|
19866
|
-
|
|
19867
|
-
|
|
19868
|
-
|
|
19838
|
+
const zs = /* @__PURE__ */ qd(pA), hA = async (c, t, n, e) => {
|
|
19839
|
+
await gA({ title: t, parsedHtmlString: e, styleConfig: n });
|
|
19840
|
+
}, gA = async ({ title: c, parsedHtmlString: t, styleConfig: n }) => {
|
|
19841
|
+
const e = '<!DOCTYPE html><html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40"><head><meta charset="UTF-8"><title>Document</title></head><body>', s = "</body></html>", o = t || zs(".ContentEditable__root").html(), r = fA(o), a = hd(r), l = await mA(a, n), i = e + l + s, d = new Blob([i], { type: "application/msword" });
|
|
19842
|
+
uA.saveAs(d, `${c || "Exported"}.doc`);
|
|
19843
|
+
};
|
|
19844
|
+
async function mA(c, t) {
|
|
19845
|
+
const e = new DOMParser().parseFromString(c, "text/html"), { heading: s } = t, o = {
|
|
19846
|
+
h1: s.find((a) => a.title === "Heading1") || {},
|
|
19847
|
+
h2: s.find((a) => a.title === "Heading2") || {},
|
|
19848
|
+
h3: s.find((a) => a.title === "Heading3") || {},
|
|
19849
|
+
h4: s.find((a) => a.title === "Heading4") || {},
|
|
19850
|
+
h5: s.find((a) => a.title === "Heading5") || {}
|
|
19851
|
+
};
|
|
19852
|
+
return Object.entries(o).forEach(([a, l]) => {
|
|
19853
|
+
e.querySelectorAll(a).forEach((d) => {
|
|
19854
|
+
let u = "";
|
|
19855
|
+
l.fontColor && (u += `color: ${l.fontColor};`), l.fontFamily && (u += `font-family: ${l.fontFamily};`), l.fontSize && (u += `font-size: ${l.fontSize}px;`), l.bold === "Yes" && (u += "font-weight: bold;"), l.italic === "Yes" && (u += "font-style: italic;"), l.lineSpacing && (u += `line-height: ${l.lineSpacing};`), l.alignment && (u += `text-align: ${l.alignment.toLowerCase()};`), d.style.cssText += u;
|
|
19856
|
+
});
|
|
19857
|
+
}), await bA(e.body.innerHTML);
|
|
19858
|
+
}
|
|
19859
|
+
function yA() {
|
|
19860
|
+
const c = document.createElement("div");
|
|
19861
|
+
return c.style.position = "absolute", c.style.visibility = "hidden", c.style.pointerEvents = "none", c.style.width = "1000px", c.style.zIndex = -1, document.body.appendChild(c), c;
|
|
19862
|
+
}
|
|
19863
|
+
async function bA(c) {
|
|
19864
|
+
const t = yA();
|
|
19865
|
+
t.innerHTML = c;
|
|
19866
|
+
const n = t.querySelectorAll("img"), e = Array.from(n).map(
|
|
19867
|
+
(o) => new Promise((r) => {
|
|
19868
|
+
o.complete ? r() : (o.onload = r, o.onerror = r);
|
|
19869
|
+
})
|
|
19870
|
+
);
|
|
19871
|
+
await Promise.all(e), n.forEach((o) => {
|
|
19872
|
+
const r = o.offsetWidth, a = o.offsetHeight, l = 600;
|
|
19873
|
+
r > l ? (o.setAttribute("width", l), o.removeAttribute("height"), o.style.width = `${l}px`, o.style.height = "auto") : (o.setAttribute("width", r), o.setAttribute("height", a), o.style.width = `${r}px`, o.style.height = `${a}px`);
|
|
19874
|
+
});
|
|
19875
|
+
const s = t.innerHTML;
|
|
19876
|
+
return document.body.removeChild(t), s;
|
|
19877
|
+
}
|
|
19878
|
+
const vA = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0iY3VycmVudENvbG9yIiBjbGFzcz0iYmkgYmktbGlzdC11bCI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNNSAxMS41YS41LjUgMCAwIDEgLjUtLjVoOWEuNS41IDAgMCAxIDAgMWgtOWEuNS41IDAgMCAxLS41LS41em0wLTRhLjUuNSAwIDAgMSAuNS0uNWg5YS41LjUgMCAwIDEgMCAxaC05YS41LjUgMCAwIDEtLjUtLjV6bTAtNGEuNS41IDAgMCAxIC41LS41aDlhLjUuNSAwIDAgMSAwIDFoLTlhLjUuNSAwIDAgMS0uNS0uNXptLTMgMWExIDEgMCAxIDAgMC0yIDEgMSAwIDAgMCAwIDJ6bTAgNGExIDEgMCAxIDAgMC0yIDEgMSAwIDAgMCAwIDJ6bTAgNGExIDEgMCAxIDAgMC0yIDEgMSAwIDAgMCAwIDJ6Ii8+PC9zdmc+", _A = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0iY3VycmVudENvbG9yIiBjbGFzcz0iYmkgYmktbGlzdC1vbCI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNNSAxMS41YS41LjUgMCAwIDEgLjUtLjVoOWEuNS41IDAgMCAxIDAgMWgtOWEuNS41IDAgMCAxLS41LS41em0wLTRhLjUuNSAwIDAgMSAuNS0uNWg5YS41LjUgMCAwIDEgMCAxaC05YS41LjUgMCAwIDEtLjUtLjV6bTAtNGEuNS41IDAgMCAxIC41LS41aDlhLjUuNSAwIDAgMSAwIDFoLTlhLjUuNSAwIDAgMS0uNS0uNXoiLz48cGF0aCBkPSJNMS43MTMgMTEuODY1di0uNDc0SDJjLjIxNyAwIC4zNjMtLjEzNy4zNjMtLjMxNyAwLS4xODUtLjE1OC0uMzEtLjM2MS0uMzEtLjIyMyAwLS4zNjcuMTUyLS4zNzMuMzFoLS41OWMuMDE2LS40NjcuMzczLS43ODcuOTg2LS43ODcuNTg4LS4wMDIuOTU0LjI5MS45NTcuNzAzYS41OTUuNTk1IDAgMCAxLS40OTIuNTk0di4wMzNhLjYxNS42MTUgMCAwIDEgLjU2OS42MzFjLjAwMy41MzMtLjUwMi44LTEuMDUxLjgtLjY1NiAwLTEtLjM3LTEuMDA4LS43OTRoLjU4MmMuMDA4LjE3OC4xODYuMzA2LjQyMi4zMDkuMjU0IDAgLjQyNC0uMTQ1LjQyMi0uMzUtLjAwMi0uMTk1LS4xNTUtLjM0OC0uNDE0LS4zNDhoLS4zem0tLjAwNC00LjY5OWgtLjYwNHYtLjAzNWMwLS40MDguMjk1LS44NDQuOTU4LS44NDQuNTgzIDAgLjk2LjMyNi45Ni43NTYgMCAuMzg5LS4yNTcuNjE3LS40NzYuODQ4bC0uNTM3LjU3MnYuMDNoMS4wNTRWOUgxLjE0M3YtLjM5NWwuOTU3LS45OWMuMTM4LS4xNDIuMjkzLS4zMDQuMjkzLS41MDggMC0uMTgtLjE0Ny0uMzItLjM0Mi0uMzJhLjMzLjMzIDAgMCAwLS4zNDIuMzM4di4wNDF6TTIuNTY0IDVoLS42MzVWMi45MjRoLS4wMzFsLS41OTguNDJ2LS41NjdsLjYyOS0uNDQzaC42MzVWNXoiLz48L3N2Zz4=", xA = ({ onlUser: c, collabApiKey: t, htmlPasteModalOpen: n, sethtmlPasteModalOpen: e, passedContent: s, onPaste: o, source: r }) => {
|
|
19869
19879
|
er(null);
|
|
19870
19880
|
const [a, l] = Dt(""), [i, d] = Ii.useState(""), [u] = Nn(), f = Ii.useRef();
|
|
19871
19881
|
er(null);
|
|
@@ -20083,7 +20093,7 @@ const zs = /* @__PURE__ */ qd(pA), hA = (c, t, n, e) => {
|
|
|
20083
20093
|
return qt((C) => {
|
|
20084
20094
|
n && (l(s), w());
|
|
20085
20095
|
}, [n]), /* @__PURE__ */ ge.jsx(ge.Fragment, { children: /* @__PURE__ */ ge.jsx(g, {}) });
|
|
20086
|
-
},
|
|
20096
|
+
}, wA = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48IS0tIFVwbG9hZGVkIHRvOiBTVkcgUmVwbywgd3d3LnN2Z3JlcG8uY29tLCBHZW5lcmF0b3I6IFNWRyBSZXBvIE1peGVyIFRvb2xzIC0tPgo8c3ZnIHdpZHRoPSI4MDBweCIgaGVpZ2h0PSI4MDBweCIgdmlld0JveD0iMCAwIDI0IDI0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIG1pcnJvci1pbi1ydGw9InRydWUiPgogIDxjaXJjbGUgZmlsbD0iIzQ5NGM0ZSIgY3g9IjIiIGN5PSIyIiByPSIyIi8+CiAgPGNpcmNsZSBmaWxsPSIjNDk0YzRlIiBjeD0iMiIgY3k9IjgiIHI9IjIiLz4KICA8Y2lyY2xlIGZpbGw9IiM0OTRjNGUiIGN4PSIyIiBjeT0iMjAiIHI9IjIiLz4KICA8Y2lyY2xlIGZpbGw9IiM0OTRjNGUiIGN4PSIyIiBjeT0iMTQiIHI9IjIiLz4KICA8cGF0aCBmaWxsPSIjNDk0YzRlIiBkPSJNMjMuMDAyIDNINy45OThDNy40NDggMyA3IDIuNTUgNyAyLjAwMnYtLjAwNGMwLS41NS40NS0uOTk4Ljk5OC0uOTk4SDIzYy41NSAwIDEgLjQ1IDEgLjk5OFYyYzAgLjU1LS40NSAxLS45OTggMXpNMjMuMDAyIDlINy45OThDNy40NDggOSA3IDguNTUgNyA4LjAwMnYtLjAwNGMwLS41NS40NS0uOTk4Ljk5OC0uOTk4SDIzYy41NSAwIDEgLjQ1IDEgLjk5OFY4YzAgLjU1LS40NSAxLS45OTggMXpNMjMuMDAyIDE1SDcuOTk4Yy0uNTUgMC0uOTk4LS40NS0uOTk4LS45OThWMTRjMC0uNTUuNDUtMSAuOTk4LTFIMjNjLjU1IDAgMSAuNDUgMSAuOTk4VjE0YzAgLjU1LS40NSAxLS45OTggMXpNMjMuMDAyIDIxSDcuOTk4Yy0uNTUgMC0uOTk4LS40NS0uOTk4LS45OThWMjBjMC0uNTUuNDUtMSAuOTk4LTFIMjNjLjU1IDAgMSAuNDUgMSAuOTk4VjIwYzAgLjU1LS40NSAxLS45OTggMXoiLz4KPC9zdmc+", SA = {
|
|
20087
20097
|
bullet: "Bulleted List",
|
|
20088
20098
|
check: "Check List",
|
|
20089
20099
|
code: "Code Block",
|
|
@@ -20097,7 +20107,7 @@ const zs = /* @__PURE__ */ qd(pA), hA = (c, t, n, e) => {
|
|
|
20097
20107
|
paragraph: "Normal",
|
|
20098
20108
|
quote: "Quote"
|
|
20099
20109
|
};
|
|
20100
|
-
function
|
|
20110
|
+
function EA() {
|
|
20101
20111
|
const c = [];
|
|
20102
20112
|
for (const [t, n] of Object.entries(
|
|
20103
20113
|
fS
|
|
@@ -20105,7 +20115,7 @@ function _A() {
|
|
|
20105
20115
|
c.push([t, n]);
|
|
20106
20116
|
return c;
|
|
20107
20117
|
}
|
|
20108
|
-
const
|
|
20118
|
+
const CA = EA(), TA = {
|
|
20109
20119
|
center: {
|
|
20110
20120
|
icon: "center-align",
|
|
20111
20121
|
iconRTL: "center-align",
|
|
@@ -20143,13 +20153,13 @@ function sp(c) {
|
|
|
20143
20153
|
function rd() {
|
|
20144
20154
|
return /* @__PURE__ */ ge.jsx("div", { className: "divider" });
|
|
20145
20155
|
}
|
|
20146
|
-
function
|
|
20156
|
+
function kA({
|
|
20147
20157
|
editor: c,
|
|
20148
20158
|
value: t,
|
|
20149
20159
|
isRTL: n,
|
|
20150
20160
|
disabled: e = !1
|
|
20151
20161
|
}) {
|
|
20152
|
-
const s =
|
|
20162
|
+
const s = TA[t || "left"];
|
|
20153
20163
|
return /* @__PURE__ */ ge.jsxs(
|
|
20154
20164
|
Sd,
|
|
20155
20165
|
{
|
|
@@ -20270,7 +20280,7 @@ function $E({
|
|
|
20270
20280
|
h(nn);
|
|
20271
20281
|
} else {
|
|
20272
20282
|
const Mt = ch(kt) ? kt.getTag() : kt.getType();
|
|
20273
|
-
if (Mt in
|
|
20283
|
+
if (Mt in SA && h(Mt), by(kt)) {
|
|
20274
20284
|
const nn = kt.getLanguage();
|
|
20275
20285
|
we(
|
|
20276
20286
|
nn ? pS[nn] || nn : ""
|
|
@@ -20404,7 +20414,7 @@ function $E({
|
|
|
20404
20414
|
type: "button",
|
|
20405
20415
|
className: "toolbar-item spaced",
|
|
20406
20416
|
"aria-label": "table-of-content",
|
|
20407
|
-
children: /* @__PURE__ */ ge.jsx("img", { src:
|
|
20417
|
+
children: /* @__PURE__ */ ge.jsx("img", { src: wA, width: 16, height: 16 })
|
|
20408
20418
|
}
|
|
20409
20419
|
),
|
|
20410
20420
|
/* @__PURE__ */ ge.jsx(
|
|
@@ -20442,7 +20452,7 @@ function $E({
|
|
|
20442
20452
|
buttonClassName: "toolbar-item code-language",
|
|
20443
20453
|
buttonLabel: Pk(ne),
|
|
20444
20454
|
buttonAriaLabel: "Select language",
|
|
20445
|
-
children:
|
|
20455
|
+
children: CA.map(([lt, $e]) => /* @__PURE__ */ ge.jsx(
|
|
20446
20456
|
To,
|
|
20447
20457
|
{
|
|
20448
20458
|
className: `item ${sp(
|
|
@@ -20642,7 +20652,7 @@ function $E({
|
|
|
20642
20652
|
it();
|
|
20643
20653
|
},
|
|
20644
20654
|
children: [
|
|
20645
|
-
/* @__PURE__ */ ge.jsx("img", { src:
|
|
20655
|
+
/* @__PURE__ */ ge.jsx("img", { src: vA, height: 21, width: 21 }),
|
|
20646
20656
|
/* @__PURE__ */ ge.jsx("span", { style: { marginLeft: "10px", marginTop: "2px" }, children: "Bullet List" })
|
|
20647
20657
|
]
|
|
20648
20658
|
}
|
|
@@ -20655,7 +20665,7 @@ function $E({
|
|
|
20655
20665
|
tt();
|
|
20656
20666
|
},
|
|
20657
20667
|
children: [
|
|
20658
|
-
/* @__PURE__ */ ge.jsx("img", { src:
|
|
20668
|
+
/* @__PURE__ */ ge.jsx("img", { src: _A, height: 21, width: 21 }),
|
|
20659
20669
|
/* @__PURE__ */ ge.jsx("span", { style: { marginLeft: "10px", marginTop: "2px" }, children: "Numbered List" })
|
|
20660
20670
|
]
|
|
20661
20671
|
}
|
|
@@ -20678,7 +20688,7 @@ function $E({
|
|
|
20678
20688
|
),
|
|
20679
20689
|
/* @__PURE__ */ ge.jsx(rd, {}),
|
|
20680
20690
|
/* @__PURE__ */ ge.jsx(
|
|
20681
|
-
|
|
20691
|
+
xA,
|
|
20682
20692
|
{
|
|
20683
20693
|
passedContent: ke,
|
|
20684
20694
|
source: "remote",
|
|
@@ -20700,7 +20710,7 @@ function $E({
|
|
|
20700
20710
|
}
|
|
20701
20711
|
),
|
|
20702
20712
|
/* @__PURE__ */ ge.jsx(
|
|
20703
|
-
|
|
20713
|
+
kA,
|
|
20704
20714
|
{
|
|
20705
20715
|
disabled: !_e,
|
|
20706
20716
|
value: F,
|
|
@@ -20712,12 +20722,12 @@ function $E({
|
|
|
20712
20722
|
ee
|
|
20713
20723
|
] });
|
|
20714
20724
|
}
|
|
20715
|
-
const
|
|
20725
|
+
const OA = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? as : qt;
|
|
20716
20726
|
function UE({ ariaActiveDescendant: c, ariaAutoComplete: t, ariaControls: n, ariaDescribedBy: e, ariaExpanded: s, ariaLabel: o, ariaLabelledBy: r, ariaMultiline: a, ariaOwns: l, ariaRequired: i, autoCapitalize: d, className: u, id: f, role: p = "textbox", spellCheck: h = !0, style: m, tabIndex: g, "data-testid": v, ...b }) {
|
|
20717
20727
|
const [_] = Nn(), [E, S] = Dt(!1), x = mn((y) => {
|
|
20718
20728
|
y && y.ownerDocument && y.ownerDocument.defaultView && _.setRootElement(y);
|
|
20719
20729
|
}, [_]);
|
|
20720
|
-
return
|
|
20730
|
+
return OA(() => (S(_.isEditable()), _.registerEditableListener((y) => {
|
|
20721
20731
|
S(y);
|
|
20722
20732
|
})), [_]), ge.jsx("div", { ...b, "aria-activedescendant": E ? c : void 0, "aria-autocomplete": E ? t : "none", "aria-controls": E ? n : void 0, "aria-describedby": e, "aria-expanded": E && p === "combobox" ? !!s : void 0, "aria-label": o, "aria-labelledby": r, "aria-multiline": a, "aria-owns": E ? l : void 0, "aria-readonly": !E || void 0, "aria-required": i, autoCapitalize: d, className: u, contentEditable: E, "data-testid": v, id: f, ref: x, role: p, spellCheck: h, style: m, tabIndex: g });
|
|
20723
20733
|
}
|
|
@@ -20824,7 +20834,7 @@ function fh(c) {
|
|
|
20824
20834
|
function Pl(c) {
|
|
20825
20835
|
return c instanceof X0;
|
|
20826
20836
|
}
|
|
20827
|
-
function
|
|
20837
|
+
function NA(c) {
|
|
20828
20838
|
const t = c.getChildren();
|
|
20829
20839
|
let n = null;
|
|
20830
20840
|
for (let e = 0; e < t.length; e++) {
|
|
@@ -20833,7 +20843,7 @@ function CA(c) {
|
|
|
20833
20843
|
}
|
|
20834
20844
|
c.remove();
|
|
20835
20845
|
}
|
|
20836
|
-
function
|
|
20846
|
+
function AA(c, t, n, e) {
|
|
20837
20847
|
const s = c.getNodes(), o = c.anchor.offset, r = c.focus.offset, a = s.length, l = t ? r : o, i = t ? o : r;
|
|
20838
20848
|
let d, u;
|
|
20839
20849
|
for (let f = 0; f < a; f++) {
|
|
@@ -20863,7 +20873,7 @@ function TA(c, t, n, e) {
|
|
|
20863
20873
|
}
|
|
20864
20874
|
Ct(u) && (t ? u.selectStart() : u.selectEnd());
|
|
20865
20875
|
}
|
|
20866
|
-
function
|
|
20876
|
+
function jA(c, t) {
|
|
20867
20877
|
let n = c;
|
|
20868
20878
|
for (; n !== null; ) {
|
|
20869
20879
|
if (Pl(n))
|
|
@@ -20877,15 +20887,15 @@ function kA(c, t) {
|
|
|
20877
20887
|
}
|
|
20878
20888
|
return null;
|
|
20879
20889
|
}
|
|
20880
|
-
const p_ = [["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)"]], h_ = p_[Math.floor(Math.random() * p_.length)],
|
|
20890
|
+
const p_ = [["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)"]], h_ = p_[Math.floor(Math.random() * p_.length)], IA = xh({ clientID: 0, color: h_[1], isCollabActive: !1, name: h_[0], yjsDocMap: /* @__PURE__ */ new Map() });
|
|
20881
20891
|
function eb(c, t) {
|
|
20882
|
-
const n = n0(
|
|
20892
|
+
const n = n0(IA);
|
|
20883
20893
|
return c != null && (n.name = c), t != null && (n.color = t), n;
|
|
20884
20894
|
}
|
|
20885
|
-
const
|
|
20895
|
+
const PA = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? as : qt;
|
|
20886
20896
|
function qE({ onClear: c }) {
|
|
20887
20897
|
const [t] = Nn();
|
|
20888
|
-
return
|
|
20898
|
+
return PA(() => t.registerCommand(Nh, (n) => (t.update(() => {
|
|
20889
20899
|
if (c == null) {
|
|
20890
20900
|
const e = Hn(), s = It(), o = On();
|
|
20891
20901
|
e.clear(), e.append(o), s !== null && o.select(), Tt(s) && (s.format = 0);
|
|
@@ -20898,7 +20908,7 @@ function Iy(c, t) {
|
|
|
20898
20908
|
return n.__proto__ = e, n;
|
|
20899
20909
|
}, Iy(c, t);
|
|
20900
20910
|
}
|
|
20901
|
-
var g_ = { error: null },
|
|
20911
|
+
var g_ = { error: null }, MA = function(c) {
|
|
20902
20912
|
var t, n;
|
|
20903
20913
|
function e() {
|
|
20904
20914
|
for (var o, r = arguments.length, a = new Array(r), l = 0; l < r; l++)
|
|
@@ -20939,23 +20949,23 @@ var g_ = { error: null }, AA = function(c) {
|
|
|
20939
20949
|
}, e;
|
|
20940
20950
|
}(sr.Component);
|
|
20941
20951
|
function Md({ children: c, onError: t }) {
|
|
20942
|
-
return ge.jsx(
|
|
20952
|
+
return ge.jsx(MA, { fallback: ge.jsx("div", { style: { border: "1px solid #f00", color: "#f00", padding: "8px" }, children: "An error was thrown." }), onError: t, children: c });
|
|
20943
20953
|
}
|
|
20944
|
-
const
|
|
20954
|
+
const RA = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
20945
20955
|
__proto__: null,
|
|
20946
20956
|
LexicalErrorBoundary: Md,
|
|
20947
20957
|
default: Md
|
|
20948
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
20958
|
+
}, Symbol.toStringTag, { value: "Module" })), DA = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? as : qt;
|
|
20949
20959
|
function WE({ ignoreHistoryMergeTagChange: c = !0, ignoreSelectionChange: t = !1, onChange: n }) {
|
|
20950
20960
|
const [e] = Nn();
|
|
20951
|
-
return
|
|
20961
|
+
return DA(() => {
|
|
20952
20962
|
if (n)
|
|
20953
20963
|
return e.registerUpdateListener(({ editorState: s, dirtyElements: o, dirtyLeaves: r, prevEditorState: a, tags: l }) => {
|
|
20954
20964
|
t && o.size === 0 && r.size === 0 || c && l.has("history-merge") || a.isEmpty() || n(s, e, l);
|
|
20955
20965
|
});
|
|
20956
20966
|
}, [e, c, t, n]), null;
|
|
20957
20967
|
}
|
|
20958
|
-
const xu = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0,
|
|
20968
|
+
const xu = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, LA = xu && "documentMode" in document ? document.documentMode : null, FA = !(!xu || !("InputEvent" in window) || LA) && "getTargetRanges" in new window.InputEvent("input"), BA = xu && /Version\/[\d.]+.*Safari/.test(navigator.userAgent), zA = xu && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, $A = xu && /^(?=.*Chrome).*/i.test(navigator.userAgent), UA = xu && /AppleWebKit\/[\d.]+/.test(navigator.userAgent) && !$A;
|
|
20959
20969
|
function m_(c, t) {
|
|
20960
20970
|
t.update(() => {
|
|
20961
20971
|
if (c !== null) {
|
|
@@ -20968,7 +20978,7 @@ function m_(c, t) {
|
|
|
20968
20978
|
}
|
|
20969
20979
|
});
|
|
20970
20980
|
}
|
|
20971
|
-
function
|
|
20981
|
+
function HA(c) {
|
|
20972
20982
|
return Wr(c.registerCommand(ca, (t) => {
|
|
20973
20983
|
const n = It();
|
|
20974
20984
|
return !!Tt(n) && (n.deleteCharacter(t), !0);
|
|
@@ -21026,7 +21036,7 @@ function BA(c) {
|
|
|
21026
21036
|
if (!Tt(n))
|
|
21027
21037
|
return !1;
|
|
21028
21038
|
if (t !== null) {
|
|
21029
|
-
if ((
|
|
21039
|
+
if ((zA || BA || UA) && FA)
|
|
21030
21040
|
return !1;
|
|
21031
21041
|
t.preventDefault();
|
|
21032
21042
|
}
|
|
@@ -21081,10 +21091,10 @@ function JE({ contentEditable: c, placeholder: t, ErrorBoundary: n }) {
|
|
|
21081
21091
|
}, [r, a, o]);
|
|
21082
21092
|
}(e, n);
|
|
21083
21093
|
return function(o) {
|
|
21084
|
-
Py(() => Wr(
|
|
21085
|
-
}(e), ge.jsxs(ge.Fragment, { children: [c, ge.jsx(
|
|
21094
|
+
Py(() => Wr(HA(o), cE(o)), [o]);
|
|
21095
|
+
}(e), ge.jsxs(ge.Fragment, { children: [c, ge.jsx(qA, { content: t }), s] });
|
|
21086
21096
|
}
|
|
21087
|
-
function
|
|
21097
|
+
function qA({ content: c }) {
|
|
21088
21098
|
const [t] = Nn(), n = function(s) {
|
|
21089
21099
|
const [o, r] = Dt(() => y_(s));
|
|
21090
21100
|
return Py(() => {
|
|
@@ -21101,7 +21111,7 @@ function zA({ content: c }) {
|
|
|
21101
21111
|
}(t), e = K0();
|
|
21102
21112
|
return n ? typeof c == "function" ? c(e) : c : null;
|
|
21103
21113
|
}
|
|
21104
|
-
var
|
|
21114
|
+
var WA = { 420: (c, t, n) => {
|
|
21105
21115
|
n.r(t), n.d(t, { default: () => l });
|
|
21106
21116
|
let e = () => {
|
|
21107
21117
|
}, s = function() {
|
|
@@ -54472,7 +54482,7 @@ function In(c) {
|
|
|
54472
54482
|
if (t !== void 0)
|
|
54473
54483
|
return t.exports;
|
|
54474
54484
|
var n = b_[c] = { id: c, exports: {} };
|
|
54475
|
-
return
|
|
54485
|
+
return WA[c](n, n.exports, In), n.exports;
|
|
54476
54486
|
}
|
|
54477
54487
|
In.n = (c) => {
|
|
54478
54488
|
var t = c && c.__esModule ? () => c.default : () => c;
|
|
@@ -54493,56 +54503,56 @@ In.n = (c) => {
|
|
|
54493
54503
|
typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(c, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(c, "__esModule", { value: !0 });
|
|
54494
54504
|
}, In.nc = void 0;
|
|
54495
54505
|
var sl = {};
|
|
54496
|
-
In.d(sl, { yy: () =>
|
|
54497
|
-
var
|
|
54506
|
+
In.d(sl, { yy: () => kP, _U: () => u5, a8: () => k5, Vs: () => C5, Cn: () => Dy, gK: () => iP, vv: () => II });
|
|
54507
|
+
var JA = (c) => {
|
|
54498
54508
|
var t = {};
|
|
54499
54509
|
return In.d(t, c), t;
|
|
54500
54510
|
};
|
|
54501
|
-
const Ft =
|
|
54502
|
-
var
|
|
54511
|
+
const Ft = JA({ $addUpdateTag: () => LT, $createNodeSelection: () => Qp, $createParagraphNode: () => On, $createRangeSelection: () => pu, $getEditor: () => WT, $getNodeByKey: () => or, $getRoot: () => Hn, $getSelection: () => It, $isDecoratorNode: () => _r, $isElementNode: () => Ct, $isLineBreakNode: () => Aa, $isNodeSelection: () => io, $isParagraphNode: () => Gr, $isRangeSelection: () => Tt, $isTextNode: () => Jt, $nodesOfType: () => xw, $setSelection: () => Hr, CAN_REDO_COMMAND: () => qc, CAN_UNDO_COMMAND: () => Wc, CLEAR_EDITOR_COMMAND: () => Nh, COMMAND_PRIORITY_CRITICAL: () => Jo, COMMAND_PRIORITY_EDITOR: () => jn, CUT_COMMAND: () => Zd, DecoratorNode: () => ss, ElementNode: () => Jr, KEY_BACKSPACE_COMMAND: () => tl, KEY_DELETE_COMMAND: () => nl, KEY_ESCAPE_COMMAND: () => Gl, LineBreakNode: () => du, PASTE_COMMAND: () => el, ParagraphNode: () => al, REDO_COMMAND: () => Vd, RootNode: () => gu, TextNode: () => ao, UNDO_COMMAND: () => Jd, createCommand: () => Ao, createEditor: () => $h });
|
|
54512
|
+
var VA = (c) => {
|
|
54503
54513
|
var t = {};
|
|
54504
54514
|
return In.d(t, c), t;
|
|
54505
54515
|
};
|
|
54506
|
-
const
|
|
54507
|
-
var
|
|
54516
|
+
const KA = VA({ $isLinkNode: () => ji });
|
|
54517
|
+
var GA = (c) => {
|
|
54508
54518
|
var t = {};
|
|
54509
54519
|
return In.d(t, c), t;
|
|
54510
54520
|
};
|
|
54511
|
-
const qi =
|
|
54512
|
-
var
|
|
54521
|
+
const qi = GA({ $createMarkNode: () => fh, $getMarkIDs: () => jA, $isMarkNode: () => Pl, $unwrapMarkNode: () => NA, $wrapSelectionInMarkNode: () => AA, MarkNode: () => X0 });
|
|
54522
|
+
var YA = (c) => {
|
|
54513
54523
|
var t = {};
|
|
54514
54524
|
return In.d(t, c), t;
|
|
54515
54525
|
};
|
|
54516
|
-
const kr =
|
|
54526
|
+
const kr = YA({ $createTableCellNode: () => Pi, $createTableRowNode: () => Hl, $createTableSelection: () => sh, $getTableColumnIndexFromTableCellNode: () => D0, $isTableCellNode: () => xn, $isTableNode: () => hr, $isTableRowNode: () => Dr, $isTableSelection: () => fr, TableCellNode: () => fa, TableNode: () => Oa, TableRowNode: () => Yl }), ZA = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), v_ = { randomUUID: ZA };
|
|
54517
54527
|
let lp;
|
|
54518
|
-
const
|
|
54519
|
-
function
|
|
54528
|
+
const QA = new Uint8Array(16);
|
|
54529
|
+
function XA() {
|
|
54520
54530
|
if (!lp && (lp = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !lp))
|
|
54521
54531
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
54522
|
-
return lp(
|
|
54532
|
+
return lp(QA);
|
|
54523
54533
|
}
|
|
54524
54534
|
const Lo = [];
|
|
54525
54535
|
for (let c = 0; c < 256; ++c)
|
|
54526
54536
|
Lo.push((c + 256).toString(16).slice(1));
|
|
54527
|
-
function
|
|
54537
|
+
function ej(c, t = 0) {
|
|
54528
54538
|
return Lo[c[t + 0]] + Lo[c[t + 1]] + Lo[c[t + 2]] + Lo[c[t + 3]] + "-" + Lo[c[t + 4]] + Lo[c[t + 5]] + "-" + Lo[c[t + 6]] + Lo[c[t + 7]] + "-" + Lo[c[t + 8]] + Lo[c[t + 9]] + "-" + Lo[c[t + 10]] + Lo[c[t + 11]] + Lo[c[t + 12]] + Lo[c[t + 13]] + Lo[c[t + 14]] + Lo[c[t + 15]];
|
|
54529
54539
|
}
|
|
54530
|
-
function
|
|
54540
|
+
function tj(c, t, n) {
|
|
54531
54541
|
if (v_.randomUUID && !t && !c)
|
|
54532
54542
|
return v_.randomUUID();
|
|
54533
|
-
const e = (c = c || {}).random || (c.rng ||
|
|
54543
|
+
const e = (c = c || {}).random || (c.rng || XA)();
|
|
54534
54544
|
if (e[6] = 15 & e[6] | 64, e[8] = 63 & e[8] | 128, t) {
|
|
54535
54545
|
n = n || 0;
|
|
54536
54546
|
for (let s = 0; s < 16; ++s)
|
|
54537
54547
|
t[n + s] = e[s];
|
|
54538
54548
|
return t;
|
|
54539
54549
|
}
|
|
54540
|
-
return
|
|
54550
|
+
return ej(e);
|
|
54541
54551
|
}
|
|
54542
|
-
const
|
|
54552
|
+
const nj = tj;
|
|
54543
54553
|
var mt = In(420);
|
|
54544
|
-
const
|
|
54545
|
-
function
|
|
54554
|
+
const rj = [(c) => c.hasFormat("bold") && "bold", (c) => c.hasFormat("code") && "code", (c) => c.hasFormat("italic") && "italic", (c) => c.hasFormat("strikethrough") && "strikethrough", (c) => c.hasFormat("subscript") && "subscript", (c) => c.hasFormat("superscript") && "superscript", (c) => c.hasFormat("underline") && "underline", (c) => c.hasFormat("highlight") && "highlight"], __ = { bold: 1, code: 16, highlight: 128, italic: 2, strikethrough: 4, subscript: 32, superscript: 64, underline: 8 }, oj = { center: 2, end: 6, justify: 4, left: 1, right: 3, start: 5 };
|
|
54555
|
+
function ij(c) {
|
|
54546
54556
|
if (!c || !c.length)
|
|
54547
54557
|
return 0;
|
|
54548
54558
|
let t = c.split(",");
|
|
@@ -54555,12 +54565,12 @@ function tj(c) {
|
|
|
54555
54565
|
}
|
|
54556
54566
|
return n;
|
|
54557
54567
|
}
|
|
54558
|
-
function
|
|
54559
|
-
return c ?
|
|
54568
|
+
function aj(c) {
|
|
54569
|
+
return c ? rj.map((t) => t(c)).filter(Boolean).join(",") : "";
|
|
54560
54570
|
}
|
|
54561
|
-
function
|
|
54571
|
+
function sj() {
|
|
54562
54572
|
let c = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
|
|
54563
|
-
return c &&
|
|
54573
|
+
return c && oj[c] || 0;
|
|
54564
54574
|
}
|
|
54565
54575
|
function gd(c) {
|
|
54566
54576
|
return `__${c}`;
|
|
@@ -54568,7 +54578,7 @@ function gd(c) {
|
|
|
54568
54578
|
function My(c) {
|
|
54569
54579
|
return c.split("__")[1] || "";
|
|
54570
54580
|
}
|
|
54571
|
-
const sa = { historic: "historic", historyMerge: "history-merge", historyPush: "history-push" }, md = "codox_comments_change", x_ = "codox_content_revert",
|
|
54581
|
+
const sa = { historic: "historic", historyMerge: "history-merge", historyPush: "history-push" }, md = "codox_comments_change", x_ = "codox_content_revert", lj = { 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" }, w_ = [Eo.mousemove, Eo.mouseover, Eo.mouseout], ph = { text: "text", linebreak: "linebreak", horizontalrule: "horizontalrule" }, Ed = { local: "local", remote: "remote" }, Tl = { editorState: "editorState", root: "root" }, Ds = { BOTH: 3, COLUMN: 2, NO_STATUS: 0, ROW: 1 }, S_ = { 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"] }, cj = "Invalid state - forbidden content nesting found", E_ = { local: "local", remote: "remote" }, uj = { init: "init", syncRCS: "syncRCS", syncRemote: "syncRemote" }, Ry = { 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" }, dj = ["docId", "username", "apiKey", "domain", "hooks", "editorInstanceHooks", "appServer", "demo"];
|
|
54572
54582
|
function C_(c, t) {
|
|
54573
54583
|
var n = Object.keys(c);
|
|
54574
54584
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -54583,21 +54593,21 @@ function Im(c) {
|
|
|
54583
54593
|
for (var t = 1; t < arguments.length; t++) {
|
|
54584
54594
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
54585
54595
|
t % 2 ? C_(Object(n), !0).forEach(function(e) {
|
|
54586
|
-
|
|
54596
|
+
fj(c, e, n[e]);
|
|
54587
54597
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(c, Object.getOwnPropertyDescriptors(n)) : C_(Object(n)).forEach(function(e) {
|
|
54588
54598
|
Object.defineProperty(c, e, Object.getOwnPropertyDescriptor(n, e));
|
|
54589
54599
|
});
|
|
54590
54600
|
}
|
|
54591
54601
|
return c;
|
|
54592
54602
|
}
|
|
54593
|
-
function
|
|
54594
|
-
return (t =
|
|
54603
|
+
function fj(c, t, n) {
|
|
54604
|
+
return (t = pj(t)) in c ? Object.defineProperty(c, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : c[t] = n, c;
|
|
54595
54605
|
}
|
|
54596
|
-
function
|
|
54597
|
-
var t =
|
|
54606
|
+
function pj(c) {
|
|
54607
|
+
var t = hj(c, "string");
|
|
54598
54608
|
return typeof t == "symbol" ? t : t + "";
|
|
54599
54609
|
}
|
|
54600
|
-
function
|
|
54610
|
+
function hj(c, t) {
|
|
54601
54611
|
if (typeof c != "object" || !c)
|
|
54602
54612
|
return c;
|
|
54603
54613
|
var n = c[Symbol.toPrimitive];
|
|
@@ -54609,10 +54619,10 @@ function uj(c, t) {
|
|
|
54609
54619
|
}
|
|
54610
54620
|
return (t === "string" ? String : Number)(c);
|
|
54611
54621
|
}
|
|
54612
|
-
function
|
|
54622
|
+
function gj(c, t) {
|
|
54613
54623
|
if (c == null)
|
|
54614
54624
|
return {};
|
|
54615
|
-
var n, e, s =
|
|
54625
|
+
var n, e, s = mj(c, t);
|
|
54616
54626
|
if (Object.getOwnPropertySymbols) {
|
|
54617
54627
|
var o = Object.getOwnPropertySymbols(c);
|
|
54618
54628
|
for (e = 0; e < o.length; e++)
|
|
@@ -54620,7 +54630,7 @@ function dj(c, t) {
|
|
|
54620
54630
|
}
|
|
54621
54631
|
return s;
|
|
54622
54632
|
}
|
|
54623
|
-
function
|
|
54633
|
+
function mj(c, t) {
|
|
54624
54634
|
if (c == null)
|
|
54625
54635
|
return {};
|
|
54626
54636
|
var n = {};
|
|
@@ -54635,7 +54645,7 @@ function fj(c, t) {
|
|
|
54635
54645
|
In(420);
|
|
54636
54646
|
let VE;
|
|
54637
54647
|
VE = In(668);
|
|
54638
|
-
class
|
|
54648
|
+
class yj {
|
|
54639
54649
|
constructor(t) {
|
|
54640
54650
|
this.codox = null;
|
|
54641
54651
|
}
|
|
@@ -54669,15 +54679,15 @@ class pj {
|
|
|
54669
54679
|
}
|
|
54670
54680
|
createConfig(t) {
|
|
54671
54681
|
let { docId: n, username: e, apiKey: s, domain: o, hooks: r, editorInstanceHooks: a, appServer: l = {}, demo: i = !1 } = t;
|
|
54672
|
-
return Im(Im({},
|
|
54682
|
+
return Im(Im({}, gj(t, dj)), {}, { docId: n, username: e, apiKey: s, autoStart: !0, demo: i, domain: o, hooks: r, editorInstance: Im({ 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" } } });
|
|
54673
54683
|
}
|
|
54674
54684
|
}
|
|
54675
|
-
var
|
|
54685
|
+
var bj = (c) => {
|
|
54676
54686
|
var t = {};
|
|
54677
54687
|
return In.d(t, c), t;
|
|
54678
54688
|
};
|
|
54679
|
-
const ft =
|
|
54680
|
-
class
|
|
54689
|
+
const ft = bj({ Fragment: () => sr.Fragment, createContext: () => sr.createContext, createElement: () => sr.createElement, forwardRef: () => sr.forwardRef, useCallback: () => sr.useCallback, useContext: () => sr.useContext, useEffect: () => sr.useEffect, useImperativeHandle: () => sr.useImperativeHandle, useLayoutEffect: () => sr.useLayoutEffect, useMemo: () => sr.useMemo, useRef: () => sr.useRef, useState: () => sr.useState });
|
|
54690
|
+
class vj {
|
|
54681
54691
|
constructor() {
|
|
54682
54692
|
this.subscribers = {};
|
|
54683
54693
|
}
|
|
@@ -54694,7 +54704,7 @@ class gj {
|
|
|
54694
54704
|
this.subscribers = {};
|
|
54695
54705
|
}
|
|
54696
54706
|
}
|
|
54697
|
-
const KE =
|
|
54707
|
+
const KE = vj;
|
|
54698
54708
|
function T_(c, t) {
|
|
54699
54709
|
var n = Object.keys(c);
|
|
54700
54710
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -54709,21 +54719,21 @@ function k_(c) {
|
|
|
54709
54719
|
for (var t = 1; t < arguments.length; t++) {
|
|
54710
54720
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
54711
54721
|
t % 2 ? T_(Object(n), !0).forEach(function(e) {
|
|
54712
|
-
|
|
54722
|
+
_j(c, e, n[e]);
|
|
54713
54723
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(c, Object.getOwnPropertyDescriptors(n)) : T_(Object(n)).forEach(function(e) {
|
|
54714
54724
|
Object.defineProperty(c, e, Object.getOwnPropertyDescriptor(n, e));
|
|
54715
54725
|
});
|
|
54716
54726
|
}
|
|
54717
54727
|
return c;
|
|
54718
54728
|
}
|
|
54719
|
-
function
|
|
54720
|
-
return (t =
|
|
54729
|
+
function _j(c, t, n) {
|
|
54730
|
+
return (t = xj(t)) in c ? Object.defineProperty(c, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : c[t] = n, c;
|
|
54721
54731
|
}
|
|
54722
|
-
function
|
|
54723
|
-
var t =
|
|
54732
|
+
function xj(c) {
|
|
54733
|
+
var t = wj(c, "string");
|
|
54724
54734
|
return typeof t == "symbol" ? t : t + "";
|
|
54725
54735
|
}
|
|
54726
|
-
function
|
|
54736
|
+
function wj(c, t) {
|
|
54727
54737
|
if (typeof c != "object" || !c)
|
|
54728
54738
|
return c;
|
|
54729
54739
|
var n = c[Symbol.toPrimitive];
|
|
@@ -54736,7 +54746,7 @@ function bj(c, t) {
|
|
|
54736
54746
|
return (t === "string" ? String : Number)(c);
|
|
54737
54747
|
}
|
|
54738
54748
|
const Dy = (0, Ft.createCommand)("INSERT_COMMENT");
|
|
54739
|
-
class
|
|
54749
|
+
class Sj extends KE {
|
|
54740
54750
|
constructor(t) {
|
|
54741
54751
|
super(), mt.default.debug("[CodoxComments] constructor invoked for editor key: ", t), this.initialCommentThreads = [], this.commentThreads = [], this.dataTypes = { comment: "comment", thread: "thread" }, this.ID_PREFIX = "codox", this.relatedNodeKeys = {}, this.activeThreadIds = {}, this._uiRefreshTriggered = !1;
|
|
54742
54752
|
}
|
|
@@ -54859,7 +54869,7 @@ class vj extends KE {
|
|
|
54859
54869
|
return !!this.initialCommentThreads.length;
|
|
54860
54870
|
}
|
|
54861
54871
|
}
|
|
54862
|
-
function
|
|
54872
|
+
function Ej(c) {
|
|
54863
54873
|
let t = $n.getCodoxComments(c), n = t.getActiveCommentThreads.bind(t);
|
|
54864
54874
|
const [e, s] = (0, ft.useState)(n());
|
|
54865
54875
|
return (0, ft.useEffect)(() => {
|
|
@@ -54869,7 +54879,7 @@ function _j(c) {
|
|
|
54869
54879
|
});
|
|
54870
54880
|
}, []), e;
|
|
54871
54881
|
}
|
|
54872
|
-
var
|
|
54882
|
+
var Cj = Object.getOwnPropertyNames, Tj = Object.getOwnPropertySymbols, kj = Object.prototype.hasOwnProperty;
|
|
54873
54883
|
function O_(c, t) {
|
|
54874
54884
|
return function(n, e, s) {
|
|
54875
54885
|
return c(n, e, s) && t(n, e, s);
|
|
@@ -54888,16 +54898,16 @@ function cp(c) {
|
|
|
54888
54898
|
};
|
|
54889
54899
|
}
|
|
54890
54900
|
function N_(c) {
|
|
54891
|
-
return
|
|
54901
|
+
return Cj(c).concat(Tj(c));
|
|
54892
54902
|
}
|
|
54893
54903
|
var GE = Object.hasOwn || function(c, t) {
|
|
54894
|
-
return
|
|
54904
|
+
return kj.call(c, t);
|
|
54895
54905
|
};
|
|
54896
54906
|
function wu(c, t) {
|
|
54897
54907
|
return c || t ? c === t : c === t || c != c && t != t;
|
|
54898
54908
|
}
|
|
54899
54909
|
var YE = "_owner", A_ = Object.getOwnPropertyDescriptor, j_ = Object.keys;
|
|
54900
|
-
function
|
|
54910
|
+
function Oj(c, t, n) {
|
|
54901
54911
|
var e = c.length;
|
|
54902
54912
|
if (t.length !== e)
|
|
54903
54913
|
return !1;
|
|
@@ -54906,7 +54916,7 @@ function Ej(c, t, n) {
|
|
|
54906
54916
|
return !1;
|
|
54907
54917
|
return !0;
|
|
54908
54918
|
}
|
|
54909
|
-
function
|
|
54919
|
+
function Nj(c, t) {
|
|
54910
54920
|
return wu(c.getTime(), t.getTime());
|
|
54911
54921
|
}
|
|
54912
54922
|
function I_(c, t, n) {
|
|
@@ -54923,7 +54933,7 @@ function I_(c, t, n) {
|
|
|
54923
54933
|
}
|
|
54924
54934
|
return !0;
|
|
54925
54935
|
}
|
|
54926
|
-
function
|
|
54936
|
+
function Aj(c, t, n) {
|
|
54927
54937
|
var e, s = j_(c), o = s.length;
|
|
54928
54938
|
if (j_(t).length !== o)
|
|
54929
54939
|
return !1;
|
|
@@ -54941,10 +54951,10 @@ function od(c, t, n) {
|
|
|
54941
54951
|
return !1;
|
|
54942
54952
|
return !0;
|
|
54943
54953
|
}
|
|
54944
|
-
function
|
|
54954
|
+
function jj(c, t) {
|
|
54945
54955
|
return wu(c.valueOf(), t.valueOf());
|
|
54946
54956
|
}
|
|
54947
|
-
function
|
|
54957
|
+
function Ij(c, t) {
|
|
54948
54958
|
return c.source === t.source && c.flags === t.flags;
|
|
54949
54959
|
}
|
|
54950
54960
|
function P_(c, t, n) {
|
|
@@ -54958,7 +54968,7 @@ function P_(c, t, n) {
|
|
|
54958
54968
|
}
|
|
54959
54969
|
return !0;
|
|
54960
54970
|
}
|
|
54961
|
-
function
|
|
54971
|
+
function Pj(c, t) {
|
|
54962
54972
|
var n = c.length;
|
|
54963
54973
|
if (t.length !== n)
|
|
54964
54974
|
return !1;
|
|
@@ -54967,8 +54977,8 @@ function Nj(c, t) {
|
|
|
54967
54977
|
return !1;
|
|
54968
54978
|
return !0;
|
|
54969
54979
|
}
|
|
54970
|
-
var
|
|
54971
|
-
function
|
|
54980
|
+
var Mj = "[object Arguments]", Rj = "[object Boolean]", Dj = "[object Date]", Lj = "[object Map]", Fj = "[object Number]", Bj = "[object Object]", zj = "[object RegExp]", $j = "[object Set]", Uj = "[object String]", Hj = Array.isArray, M_ = typeof ArrayBuffer == "function" && ArrayBuffer.isView ? ArrayBuffer.isView : null, R_ = Object.assign, qj = Object.prototype.toString.call.bind(Object.prototype.toString);
|
|
54981
|
+
function Wj(c) {
|
|
54972
54982
|
var t = c.areArraysEqual, n = c.areDatesEqual, e = c.areMapsEqual, s = c.areObjectsEqual, o = c.arePrimitiveWrappersEqual, r = c.areRegExpsEqual, a = c.areSetsEqual, l = c.areTypedArraysEqual;
|
|
54973
54983
|
return function(i, d, u) {
|
|
54974
54984
|
if (i === d)
|
|
@@ -54980,7 +54990,7 @@ function $j(c) {
|
|
|
54980
54990
|
return !1;
|
|
54981
54991
|
if (f === Object)
|
|
54982
54992
|
return s(i, d, u);
|
|
54983
|
-
if (
|
|
54993
|
+
if (Hj(i))
|
|
54984
54994
|
return t(i, d, u);
|
|
54985
54995
|
if (M_ != null && M_(i))
|
|
54986
54996
|
return l(i, d, u);
|
|
@@ -54992,24 +55002,24 @@ function $j(c) {
|
|
|
54992
55002
|
return e(i, d, u);
|
|
54993
55003
|
if (f === Set)
|
|
54994
55004
|
return a(i, d, u);
|
|
54995
|
-
var p =
|
|
54996
|
-
return p ===
|
|
55005
|
+
var p = qj(i);
|
|
55006
|
+
return p === Dj ? n(i, d, u) : p === zj ? r(i, d, u) : p === Lj ? e(i, d, u) : p === $j ? a(i, d, u) : p === Bj ? typeof i.then != "function" && typeof d.then != "function" && s(i, d, u) : p === Mj ? s(i, d, u) : (p === Rj || p === Fj || p === Uj) && o(i, d, u);
|
|
54997
55007
|
};
|
|
54998
55008
|
}
|
|
54999
|
-
function
|
|
55000
|
-
var t = c.circular, n = c.createCustomConfig, e = c.strict, s = { areArraysEqual: e ? od :
|
|
55009
|
+
function Jj(c) {
|
|
55010
|
+
var t = c.circular, n = c.createCustomConfig, e = c.strict, s = { areArraysEqual: e ? od : Oj, areDatesEqual: Nj, areMapsEqual: e ? O_(I_, od) : I_, areObjectsEqual: e ? od : Aj, arePrimitiveWrappersEqual: jj, areRegExpsEqual: Ij, areSetsEqual: e ? O_(P_, od) : P_, areTypedArraysEqual: e ? od : Pj };
|
|
55001
55011
|
if (n && (s = R_({}, s, n(s))), t) {
|
|
55002
55012
|
var o = cp(s.areArraysEqual), r = cp(s.areMapsEqual), a = cp(s.areObjectsEqual), l = cp(s.areSetsEqual);
|
|
55003
55013
|
s = R_({}, s, { areArraysEqual: o, areMapsEqual: r, areObjectsEqual: a, areSetsEqual: l });
|
|
55004
55014
|
}
|
|
55005
55015
|
return s;
|
|
55006
55016
|
}
|
|
55007
|
-
function
|
|
55017
|
+
function Vj(c) {
|
|
55008
55018
|
return function(t, n, e, s, o, r, a) {
|
|
55009
55019
|
return c(t, n, a);
|
|
55010
55020
|
};
|
|
55011
55021
|
}
|
|
55012
|
-
function
|
|
55022
|
+
function Kj(c) {
|
|
55013
55023
|
var t = c.circular, n = c.comparator, e = c.createState, s = c.equals, o = c.strict;
|
|
55014
55024
|
if (e)
|
|
55015
55025
|
return function(a, l) {
|
|
@@ -55043,8 +55053,8 @@ ll({ circular: !0, createInternalComparator: function() {
|
|
|
55043
55053
|
}, strict: !0 });
|
|
55044
55054
|
function ll(c) {
|
|
55045
55055
|
c === void 0 && (c = {});
|
|
55046
|
-
var t = c.circular, n = t !== void 0 && t, e = c.createInternalComparator, s = c.createState, o = c.strict, r = o !== void 0 && o, a =
|
|
55047
|
-
return
|
|
55056
|
+
var t = c.circular, n = t !== void 0 && t, e = c.createInternalComparator, s = c.createState, o = c.strict, r = o !== void 0 && o, a = Wj(Jj(c));
|
|
55057
|
+
return Kj({ circular: n, comparator: a, createState: s, equals: e ? e(a) : Vj(a), strict: r });
|
|
55048
55058
|
}
|
|
55049
55059
|
function up(c, t) {
|
|
55050
55060
|
let n = t;
|
|
@@ -55107,21 +55117,21 @@ function B_(c) {
|
|
|
55107
55117
|
for (var t = 1; t < arguments.length; t++) {
|
|
55108
55118
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
55109
55119
|
t % 2 ? F_(Object(n), !0).forEach(function(e) {
|
|
55110
|
-
|
|
55120
|
+
Gj(c, e, n[e]);
|
|
55111
55121
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(c, Object.getOwnPropertyDescriptors(n)) : F_(Object(n)).forEach(function(e) {
|
|
55112
55122
|
Object.defineProperty(c, e, Object.getOwnPropertyDescriptor(n, e));
|
|
55113
55123
|
});
|
|
55114
55124
|
}
|
|
55115
55125
|
return c;
|
|
55116
55126
|
}
|
|
55117
|
-
function
|
|
55118
|
-
return (t =
|
|
55127
|
+
function Gj(c, t, n) {
|
|
55128
|
+
return (t = Yj(t)) in c ? Object.defineProperty(c, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : c[t] = n, c;
|
|
55119
55129
|
}
|
|
55120
|
-
function
|
|
55121
|
-
var t =
|
|
55130
|
+
function Yj(c) {
|
|
55131
|
+
var t = Zj(c, "string");
|
|
55122
55132
|
return typeof t == "symbol" ? t : t + "";
|
|
55123
55133
|
}
|
|
55124
|
-
function
|
|
55134
|
+
function Zj(c, t) {
|
|
55125
55135
|
if (typeof c != "object" || !c)
|
|
55126
55136
|
return c;
|
|
55127
55137
|
var n = c[Symbol.toPrimitive];
|
|
@@ -55142,7 +55152,7 @@ class gn {
|
|
|
55142
55152
|
}
|
|
55143
55153
|
static getAllNodeLeaves(t) {
|
|
55144
55154
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
55145
|
-
if (
|
|
55155
|
+
if (JI(t))
|
|
55146
55156
|
return n.push(t), n;
|
|
55147
55157
|
let e = t.getChildren();
|
|
55148
55158
|
if (!e.length)
|
|
@@ -55501,7 +55511,7 @@ class gn {
|
|
|
55501
55511
|
return gn.createRangeSelection(p, h, m, g, a, l);
|
|
55502
55512
|
}
|
|
55503
55513
|
}
|
|
55504
|
-
const
|
|
55514
|
+
const Qj = ["comments"];
|
|
55505
55515
|
function z_(c, t) {
|
|
55506
55516
|
var n = Object.keys(c);
|
|
55507
55517
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -55516,21 +55526,21 @@ function Pm(c) {
|
|
|
55516
55526
|
for (var t = 1; t < arguments.length; t++) {
|
|
55517
55527
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
55518
55528
|
t % 2 ? z_(Object(n), !0).forEach(function(e) {
|
|
55519
|
-
|
|
55529
|
+
Xj(c, e, n[e]);
|
|
55520
55530
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(c, Object.getOwnPropertyDescriptors(n)) : z_(Object(n)).forEach(function(e) {
|
|
55521
55531
|
Object.defineProperty(c, e, Object.getOwnPropertyDescriptor(n, e));
|
|
55522
55532
|
});
|
|
55523
55533
|
}
|
|
55524
55534
|
return c;
|
|
55525
55535
|
}
|
|
55526
|
-
function
|
|
55527
|
-
return (t =
|
|
55536
|
+
function Xj(c, t, n) {
|
|
55537
|
+
return (t = eI(t)) in c ? Object.defineProperty(c, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : c[t] = n, c;
|
|
55528
55538
|
}
|
|
55529
|
-
function
|
|
55530
|
-
var t =
|
|
55539
|
+
function eI(c) {
|
|
55540
|
+
var t = tI(c, "string");
|
|
55531
55541
|
return typeof t == "symbol" ? t : t + "";
|
|
55532
55542
|
}
|
|
55533
|
-
function
|
|
55543
|
+
function tI(c, t) {
|
|
55534
55544
|
if (typeof c != "object" || !c)
|
|
55535
55545
|
return c;
|
|
55536
55546
|
var n = c[Symbol.toPrimitive];
|
|
@@ -55542,10 +55552,10 @@ function Zj(c, t) {
|
|
|
55542
55552
|
}
|
|
55543
55553
|
return (t === "string" ? String : Number)(c);
|
|
55544
55554
|
}
|
|
55545
|
-
function
|
|
55555
|
+
function nI(c, t) {
|
|
55546
55556
|
if (c == null)
|
|
55547
55557
|
return {};
|
|
55548
|
-
var n, e, s =
|
|
55558
|
+
var n, e, s = rI(c, t);
|
|
55549
55559
|
if (Object.getOwnPropertySymbols) {
|
|
55550
55560
|
var o = Object.getOwnPropertySymbols(c);
|
|
55551
55561
|
for (e = 0; e < o.length; e++)
|
|
@@ -55553,7 +55563,7 @@ function Qj(c, t) {
|
|
|
55553
55563
|
}
|
|
55554
55564
|
return s;
|
|
55555
55565
|
}
|
|
55556
|
-
function
|
|
55566
|
+
function rI(c, t) {
|
|
55557
55567
|
if (c == null)
|
|
55558
55568
|
return {};
|
|
55559
55569
|
var n = {};
|
|
@@ -55565,7 +55575,7 @@ function Xj(c, t) {
|
|
|
55565
55575
|
}
|
|
55566
55576
|
return n;
|
|
55567
55577
|
}
|
|
55568
|
-
class
|
|
55578
|
+
class oI extends KE {
|
|
55569
55579
|
constructor(t) {
|
|
55570
55580
|
super(), mt.default.debug("[CodoxLexicalEditorManager] constructor invoked for editor key: ", t), this.mainEditor = null, this.currentMainSelectionJSON = null, this.currentNestedSelectionJSON = null, this.localContentStateJSON = null, this._isCodoxStarted = !1, this._undoInvoked = !1, this._redoInvoked = !1, this._canUndo = !1, this._canRedo = !1, this.isEditorUpdateInProgress = !1;
|
|
55571
55581
|
}
|
|
@@ -55661,7 +55671,7 @@ class eI extends KE {
|
|
|
55661
55671
|
}
|
|
55662
55672
|
extractStateAndCommentsFromSynced(t) {
|
|
55663
55673
|
let { state: { comments: n }, selection: e, stateReplace: s } = t;
|
|
55664
|
-
return { stateFromSync: { state: Pm({},
|
|
55674
|
+
return { stateFromSync: { state: Pm({}, nI(t.state, Qj)), selection: e, stateReplace: s }, commentsFromSync: n };
|
|
55665
55675
|
}
|
|
55666
55676
|
composeFullStateForSync(t) {
|
|
55667
55677
|
return { state: Pm(Pm({}, Wl(this.getMainEditorState())), {}, { comments: t.getAllComments() }) };
|
|
@@ -55712,7 +55722,7 @@ class eI extends KE {
|
|
|
55712
55722
|
return gn.equalSelectionsJSON(n, t);
|
|
55713
55723
|
}
|
|
55714
55724
|
}
|
|
55715
|
-
class
|
|
55725
|
+
class iI {
|
|
55716
55726
|
constructor(t) {
|
|
55717
55727
|
mt.default.debug("[CodoxNodesMap] consstructor invoked for editor key: ", t), this._nodesMap = /* @__PURE__ */ new Map(), this._pastedNodesCodoxIds = /* @__PURE__ */ new Set(), this._decoratorsJsonMap = /* @__PURE__ */ new Map();
|
|
55718
55728
|
}
|
|
@@ -55781,11 +55791,11 @@ class tI {
|
|
|
55781
55791
|
n._nodeMap.has(s.__key) || this.remove(s.codoxId);
|
|
55782
55792
|
}
|
|
55783
55793
|
}
|
|
55784
|
-
var
|
|
55794
|
+
var aI = In(256), sI = In.n(aI), lI = (c) => {
|
|
55785
55795
|
var t = {};
|
|
55786
55796
|
return In.d(t, c), t;
|
|
55787
55797
|
};
|
|
55788
|
-
const Jl =
|
|
55798
|
+
const Jl = lI({ $getSelectionStyleValueForProperty: () => ud, $patchStyleText: () => A0, createDOMRange: () => Gw, createRectsFromDOMRange: () => Yw });
|
|
55789
55799
|
class _p {
|
|
55790
55800
|
static composeLexicalDOMNodeKeyAttrName(t) {
|
|
55791
55801
|
return `__lexicalKey_${t._key}`;
|
|
@@ -55804,7 +55814,7 @@ class _p {
|
|
|
55804
55814
|
} else if (t.startsWith("#"))
|
|
55805
55815
|
n.highlightColor = `${t}${Math.floor(76.5).toString(16).padStart(2, 0)}`, n.tooltipBGColor = `${t}${Math.floor(216.75).toString(16).padStart(2, 0)}`;
|
|
55806
55816
|
else {
|
|
55807
|
-
const [e, s, o] =
|
|
55817
|
+
const [e, s, o] = sI().keyword.rgb(t);
|
|
55808
55818
|
n.highlightColor = `rgb(${e},${s}, ${o},0.3)`, n.tooltipBGColor = `rgb(${e},${s}, ${o},0.85)`;
|
|
55809
55819
|
}
|
|
55810
55820
|
return n;
|
|
@@ -55860,25 +55870,25 @@ function $_(c, t) {
|
|
|
55860
55870
|
}
|
|
55861
55871
|
return n;
|
|
55862
55872
|
}
|
|
55863
|
-
function
|
|
55873
|
+
function cI(c) {
|
|
55864
55874
|
for (var t = 1; t < arguments.length; t++) {
|
|
55865
55875
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
55866
55876
|
t % 2 ? $_(Object(n), !0).forEach(function(e) {
|
|
55867
|
-
|
|
55877
|
+
uI(c, e, n[e]);
|
|
55868
55878
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(c, Object.getOwnPropertyDescriptors(n)) : $_(Object(n)).forEach(function(e) {
|
|
55869
55879
|
Object.defineProperty(c, e, Object.getOwnPropertyDescriptor(n, e));
|
|
55870
55880
|
});
|
|
55871
55881
|
}
|
|
55872
55882
|
return c;
|
|
55873
55883
|
}
|
|
55874
|
-
function
|
|
55875
|
-
return (t =
|
|
55884
|
+
function uI(c, t, n) {
|
|
55885
|
+
return (t = dI(t)) in c ? Object.defineProperty(c, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : c[t] = n, c;
|
|
55876
55886
|
}
|
|
55877
|
-
function
|
|
55878
|
-
var t =
|
|
55887
|
+
function dI(c) {
|
|
55888
|
+
var t = fI(c, "string");
|
|
55879
55889
|
return typeof t == "symbol" ? t : t + "";
|
|
55880
55890
|
}
|
|
55881
|
-
function
|
|
55891
|
+
function fI(c, t) {
|
|
55882
55892
|
if (typeof c != "object" || !c)
|
|
55883
55893
|
return c;
|
|
55884
55894
|
var n = c[Symbol.toPrimitive];
|
|
@@ -55894,7 +55904,7 @@ class gi {
|
|
|
55894
55904
|
static _logInvalid(t, n, e) {
|
|
55895
55905
|
for (var s = arguments.length, o = new Array(s > 3 ? s - 3 : 0), r = 3; r < s; r++)
|
|
55896
55906
|
o[r - 3] = arguments[r];
|
|
55897
|
-
mt.default.warn("[JSON SELECTION VALIDATION]: ",
|
|
55907
|
+
mt.default.warn("[JSON SELECTION VALIDATION]: ", cI({ selectBelongsTo: t || "not provided", reason: n, jsonSelection: e }, o));
|
|
55898
55908
|
}
|
|
55899
55909
|
static _isObject(t) {
|
|
55900
55910
|
return typeof t == "object" && !Array.isArray(t);
|
|
@@ -55937,11 +55947,11 @@ class gi {
|
|
|
55937
55947
|
}
|
|
55938
55948
|
}
|
|
55939
55949
|
const xp = gi;
|
|
55940
|
-
var
|
|
55950
|
+
var pI = In(186), ls = In.n(pI), hI = In(155), cs = In.n(hI), gI = In(433), us = In.n(gI), mI = In(626), ds = In.n(mI), yI = In(990), fs = In.n(yI), bI = In(827), ps = In.n(bI), wp = In(500), Ic = {};
|
|
55941
55951
|
Ic.styleTagTransform = ps(), Ic.setAttributes = ds(), Ic.insert = us().bind(null, "head"), Ic.domAPI = cs(), Ic.insertStyleElement = fs();
|
|
55942
55952
|
ls()(wp.A, Ic);
|
|
55943
55953
|
wp.A && wp.A.locals && wp.A.locals;
|
|
55944
|
-
class
|
|
55954
|
+
class vI {
|
|
55945
55955
|
constructor(t) {
|
|
55946
55956
|
Un(this, "paintSingleRemoteSelection", (t) => {
|
|
55947
55957
|
let { editor: n, selectionJSON: e, lexicalSelection: s, selectedNodes: o, isBackward: r } = t;
|
|
@@ -56226,15 +56236,15 @@ class XE {
|
|
|
56226
56236
|
return t && (this._isBlacklistedFound = !1), t;
|
|
56227
56237
|
}
|
|
56228
56238
|
}
|
|
56229
|
-
var
|
|
56239
|
+
var _I = (c) => {
|
|
56230
56240
|
var t = {};
|
|
56231
56241
|
return In.d(t, c), t;
|
|
56232
56242
|
};
|
|
56233
|
-
const ou =
|
|
56234
|
-
function
|
|
56243
|
+
const ou = _I({ mergeRegister: () => Wr, registerNestedElementResolver: () => iS }), xI = ["editorState", "prevEditorState", "dirtyElements", "dirtyLeaves"];
|
|
56244
|
+
function wI(c, t) {
|
|
56235
56245
|
if (c == null)
|
|
56236
56246
|
return {};
|
|
56237
|
-
var n, e, s =
|
|
56247
|
+
var n, e, s = SI(c, t);
|
|
56238
56248
|
if (Object.getOwnPropertySymbols) {
|
|
56239
56249
|
var o = Object.getOwnPropertySymbols(c);
|
|
56240
56250
|
for (e = 0; e < o.length; e++)
|
|
@@ -56242,7 +56252,7 @@ function bI(c, t) {
|
|
|
56242
56252
|
}
|
|
56243
56253
|
return s;
|
|
56244
56254
|
}
|
|
56245
|
-
function
|
|
56255
|
+
function SI(c, t) {
|
|
56246
56256
|
if (c == null)
|
|
56247
56257
|
return {};
|
|
56248
56258
|
var n = {};
|
|
@@ -56254,7 +56264,7 @@ function vI(c, t) {
|
|
|
56254
56264
|
}
|
|
56255
56265
|
return n;
|
|
56256
56266
|
}
|
|
56257
|
-
class
|
|
56267
|
+
class EI {
|
|
56258
56268
|
constructor(t) {
|
|
56259
56269
|
mt.default.debug("[NestedEditorsProcessor] constructor invoked for editor key: ", t), this.nestedEditorsListenersMap = {};
|
|
56260
56270
|
}
|
|
@@ -56264,7 +56274,7 @@ class _I {
|
|
|
56264
56274
|
_createNestedEditorUpdatesListener(t, n, e) {
|
|
56265
56275
|
let s = !1;
|
|
56266
56276
|
return function(o) {
|
|
56267
|
-
let { editorState: r, prevEditorState: a, dirtyElements: l, dirtyLeaves: i } = o, d = (
|
|
56277
|
+
let { editorState: r, prevEditorState: a, dirtyElements: l, dirtyLeaves: i } = o, d = (wI(o, xI), e.getEditorState()), u = $n.getCodoxLexicalEditorManager(e.getKey());
|
|
56268
56278
|
if (!u.isCodoxStarted || !d._nodeMap.get(t.__key))
|
|
56269
56279
|
return;
|
|
56270
56280
|
let f = Wl(r), p = Wl(a), h = ZE(f, p), m = r._selection, g = (a._selection, !1), v = null, b = (QE(l, i), t[n]), _ = $n.getContentNestingsWatcher(e.getKey());
|
|
@@ -56366,11 +56376,11 @@ class _I {
|
|
|
56366
56376
|
}
|
|
56367
56377
|
}
|
|
56368
56378
|
}
|
|
56369
|
-
const
|
|
56370
|
-
function
|
|
56379
|
+
const CI = ["codox_metadata"];
|
|
56380
|
+
function TI(c, t) {
|
|
56371
56381
|
if (c == null)
|
|
56372
56382
|
return {};
|
|
56373
|
-
var n, e, s =
|
|
56383
|
+
var n, e, s = kI(c, t);
|
|
56374
56384
|
if (Object.getOwnPropertySymbols) {
|
|
56375
56385
|
var o = Object.getOwnPropertySymbols(c);
|
|
56376
56386
|
for (e = 0; e < o.length; e++)
|
|
@@ -56378,7 +56388,7 @@ function wI(c, t) {
|
|
|
56378
56388
|
}
|
|
56379
56389
|
return s;
|
|
56380
56390
|
}
|
|
56381
|
-
function
|
|
56391
|
+
function kI(c, t) {
|
|
56382
56392
|
if (c == null)
|
|
56383
56393
|
return {};
|
|
56384
56394
|
var n = {};
|
|
@@ -56404,21 +56414,21 @@ function Mm(c) {
|
|
|
56404
56414
|
for (var t = 1; t < arguments.length; t++) {
|
|
56405
56415
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
56406
56416
|
t % 2 ? U_(Object(n), !0).forEach(function(e) {
|
|
56407
|
-
|
|
56417
|
+
OI(c, e, n[e]);
|
|
56408
56418
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(c, Object.getOwnPropertyDescriptors(n)) : U_(Object(n)).forEach(function(e) {
|
|
56409
56419
|
Object.defineProperty(c, e, Object.getOwnPropertyDescriptor(n, e));
|
|
56410
56420
|
});
|
|
56411
56421
|
}
|
|
56412
56422
|
return c;
|
|
56413
56423
|
}
|
|
56414
|
-
function
|
|
56415
|
-
return (t =
|
|
56424
|
+
function OI(c, t, n) {
|
|
56425
|
+
return (t = NI(t)) in c ? Object.defineProperty(c, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : c[t] = n, c;
|
|
56416
56426
|
}
|
|
56417
|
-
function
|
|
56418
|
-
var t =
|
|
56427
|
+
function NI(c) {
|
|
56428
|
+
var t = AI(c, "string");
|
|
56419
56429
|
return typeof t == "symbol" ? t : t + "";
|
|
56420
56430
|
}
|
|
56421
|
-
function
|
|
56431
|
+
function AI(c, t) {
|
|
56422
56432
|
if (typeof c != "object" || !c)
|
|
56423
56433
|
return c;
|
|
56424
56434
|
var n = c[Symbol.toPrimitive];
|
|
@@ -56430,7 +56440,7 @@ function TI(c, t) {
|
|
|
56430
56440
|
}
|
|
56431
56441
|
return (t === "string" ? String : Number)(c);
|
|
56432
56442
|
}
|
|
56433
|
-
class
|
|
56443
|
+
class jI {
|
|
56434
56444
|
constructor(t) {
|
|
56435
56445
|
mt.default.debug("[CustomNodesConverter][constructor] invoked for editor key: ", t), this.nodesToTransform = {};
|
|
56436
56446
|
}
|
|
@@ -56495,7 +56505,7 @@ class kI {
|
|
|
56495
56505
|
let { klass: E } = s._nodes.get(l.type);
|
|
56496
56506
|
d = E.importJSON(Mm(Mm({}, l), {}, { ___ignoreCodox: !0 })), u = d.exportJSON();
|
|
56497
56507
|
});
|
|
56498
|
-
const h =
|
|
56508
|
+
const h = TI(l, CI);
|
|
56499
56509
|
let m = Object.keys(h), g = Object.keys(u), v = [.../* @__PURE__ */ new Set([...m, ...g])];
|
|
56500
56510
|
for (let E of v) {
|
|
56501
56511
|
if (u.type === "text" && E === "text" && !l[E])
|
|
@@ -56563,7 +56573,7 @@ class kI {
|
|
|
56563
56573
|
return this._maintainCodoxIdsForConvertedNode(t, r), t.children && (r.children = t.children), mt.default.debug("[customNodesConverter][convertCustomJsonNodeFromSync] transformed single node from sync: ", { jsonNode: t, convertedNode: r }), r;
|
|
56564
56574
|
}
|
|
56565
56575
|
}
|
|
56566
|
-
const
|
|
56576
|
+
const II = function(c) {
|
|
56567
56577
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
56568
56578
|
try {
|
|
56569
56579
|
let n = (0, Ft.createEditor)({ namespace: "validation", nodes: [...t], onError: (a) => {
|
|
@@ -56578,13 +56588,13 @@ const OI = function(c) {
|
|
|
56578
56588
|
for (const a of r) {
|
|
56579
56589
|
let [l, i] = a;
|
|
56580
56590
|
if (i && (e.trackBlacklisted(i, Ni.created, o), e.isBlacklistedFound()))
|
|
56581
|
-
throw new Error(
|
|
56591
|
+
throw new Error(cj);
|
|
56582
56592
|
}
|
|
56583
56593
|
} catch (n) {
|
|
56584
56594
|
throw n;
|
|
56585
56595
|
}
|
|
56586
56596
|
};
|
|
56587
|
-
class
|
|
56597
|
+
class PI {
|
|
56588
56598
|
constructor(t) {
|
|
56589
56599
|
mt.default.debug("[TablesValidator] constructor invoked for editor key: ", t), this.removeCandidateTableKeys = /* @__PURE__ */ new Set(), this.validateTableCandidateKeys = /* @__PURE__ */ new Set(), this.tableFixActions = [];
|
|
56590
56600
|
}
|
|
@@ -56835,25 +56845,25 @@ function H_(c, t) {
|
|
|
56835
56845
|
}
|
|
56836
56846
|
return n;
|
|
56837
56847
|
}
|
|
56838
|
-
function
|
|
56848
|
+
function MI(c) {
|
|
56839
56849
|
for (var t = 1; t < arguments.length; t++) {
|
|
56840
56850
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
56841
56851
|
t % 2 ? H_(Object(n), !0).forEach(function(e) {
|
|
56842
|
-
|
|
56852
|
+
RI(c, e, n[e]);
|
|
56843
56853
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(c, Object.getOwnPropertyDescriptors(n)) : H_(Object(n)).forEach(function(e) {
|
|
56844
56854
|
Object.defineProperty(c, e, Object.getOwnPropertyDescriptor(n, e));
|
|
56845
56855
|
});
|
|
56846
56856
|
}
|
|
56847
56857
|
return c;
|
|
56848
56858
|
}
|
|
56849
|
-
function
|
|
56850
|
-
return (t =
|
|
56859
|
+
function RI(c, t, n) {
|
|
56860
|
+
return (t = DI(t)) in c ? Object.defineProperty(c, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : c[t] = n, c;
|
|
56851
56861
|
}
|
|
56852
|
-
function
|
|
56853
|
-
var t =
|
|
56862
|
+
function DI(c) {
|
|
56863
|
+
var t = LI(c, "string");
|
|
56854
56864
|
return typeof t == "symbol" ? t : t + "";
|
|
56855
56865
|
}
|
|
56856
|
-
function
|
|
56866
|
+
function LI(c, t) {
|
|
56857
56867
|
if (typeof c != "object" || !c)
|
|
56858
56868
|
return c;
|
|
56859
56869
|
var n = c[Symbol.toPrimitive];
|
|
@@ -56865,13 +56875,13 @@ function PI(c, t) {
|
|
|
56865
56875
|
}
|
|
56866
56876
|
return (t === "string" ? String : Number)(c);
|
|
56867
56877
|
}
|
|
56868
|
-
class
|
|
56878
|
+
class FI {
|
|
56869
56879
|
constructor() {
|
|
56870
56880
|
this._hub = {};
|
|
56871
56881
|
}
|
|
56872
56882
|
initForEditor() {
|
|
56873
56883
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
|
|
56874
|
-
t && (this._hub[t] || (mt.default.debug("[Hub][initForEditor] invoked for editorKey: ", t), this._hub[t] = { codoxImpl: new
|
|
56884
|
+
t && (this._hub[t] || (mt.default.debug("[Hub][initForEditor] invoked for editorKey: ", t), this._hub[t] = { codoxImpl: new yj(t), codoxRemoteSelection: new vI(t), tablesValidator: new PI(t), customNodesConverter: new jI(t), nestedEditorsProcessor: new EI(t), contentNestingsWatcher: new XE(t), codoxLexicalEditorManager: new oI(t), codoxNodesMap: new iI(t), codoxComments: new Sj(t), configBackup: {}, clientEventListeners: {}, contentChangedHookClientCallback: null }));
|
|
56875
56885
|
}
|
|
56876
56886
|
getCodoxImpl(t) {
|
|
56877
56887
|
return this.initForEditor(t), this._hub[t].codoxImpl;
|
|
@@ -56904,7 +56914,7 @@ class MI {
|
|
|
56904
56914
|
return this._hub[t].configBackup;
|
|
56905
56915
|
}
|
|
56906
56916
|
setConfigBackup(t, n) {
|
|
56907
|
-
this._hub[t].configBackup =
|
|
56917
|
+
this._hub[t].configBackup = MI({}, n);
|
|
56908
56918
|
}
|
|
56909
56919
|
getClientEventListeners(t) {
|
|
56910
56920
|
return this._hub[t].clientEventListeners;
|
|
@@ -56925,11 +56935,11 @@ class MI {
|
|
|
56925
56935
|
delete this._hub[t];
|
|
56926
56936
|
}
|
|
56927
56937
|
}
|
|
56928
|
-
const
|
|
56929
|
-
function
|
|
56938
|
+
const BI = new FI(), $n = BI, zI = ["___ignoreCodox"];
|
|
56939
|
+
function $I(c, t) {
|
|
56930
56940
|
if (c == null)
|
|
56931
56941
|
return {};
|
|
56932
|
-
var n, e, s =
|
|
56942
|
+
var n, e, s = UI(c, t);
|
|
56933
56943
|
if (Object.getOwnPropertySymbols) {
|
|
56934
56944
|
var o = Object.getOwnPropertySymbols(c);
|
|
56935
56945
|
for (e = 0; e < o.length; e++)
|
|
@@ -56937,7 +56947,7 @@ function LI(c, t) {
|
|
|
56937
56947
|
}
|
|
56938
56948
|
return s;
|
|
56939
56949
|
}
|
|
56940
|
-
function
|
|
56950
|
+
function UI(c, t) {
|
|
56941
56951
|
if (c == null)
|
|
56942
56952
|
return {};
|
|
56943
56953
|
var n = {};
|
|
@@ -56963,21 +56973,21 @@ function eC(c) {
|
|
|
56963
56973
|
for (var t = 1; t < arguments.length; t++) {
|
|
56964
56974
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
56965
56975
|
t % 2 ? q_(Object(n), !0).forEach(function(e) {
|
|
56966
|
-
|
|
56976
|
+
HI(c, e, n[e]);
|
|
56967
56977
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(c, Object.getOwnPropertyDescriptors(n)) : q_(Object(n)).forEach(function(e) {
|
|
56968
56978
|
Object.defineProperty(c, e, Object.getOwnPropertyDescriptor(n, e));
|
|
56969
56979
|
});
|
|
56970
56980
|
}
|
|
56971
56981
|
return c;
|
|
56972
56982
|
}
|
|
56973
|
-
function
|
|
56974
|
-
return (t =
|
|
56983
|
+
function HI(c, t, n) {
|
|
56984
|
+
return (t = qI(t)) in c ? Object.defineProperty(c, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : c[t] = n, c;
|
|
56975
56985
|
}
|
|
56976
|
-
function
|
|
56977
|
-
var t =
|
|
56986
|
+
function qI(c) {
|
|
56987
|
+
var t = WI(c, "string");
|
|
56978
56988
|
return typeof t == "symbol" ? t : t + "";
|
|
56979
56989
|
}
|
|
56980
|
-
function
|
|
56990
|
+
function WI(c, t) {
|
|
56981
56991
|
if (typeof c != "object" || !c)
|
|
56982
56992
|
return c;
|
|
56983
56993
|
var n = c[Symbol.toPrimitive];
|
|
@@ -56989,7 +56999,7 @@ function $I(c, t) {
|
|
|
56989
56999
|
}
|
|
56990
57000
|
return (t === "string" ? String : Number)(c);
|
|
56991
57001
|
}
|
|
56992
|
-
const rg = () =>
|
|
57002
|
+
const rg = () => nj(), tC = (c) => typeof c == "number";
|
|
56993
57003
|
function Su(c) {
|
|
56994
57004
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
|
|
56995
57005
|
const n = function() {
|
|
@@ -56999,7 +57009,7 @@ function Su(c) {
|
|
|
56999
57009
|
};
|
|
57000
57010
|
return Object.defineProperty(n, "name", { value: t, writable: !0 }), n;
|
|
57001
57011
|
}
|
|
57002
|
-
const Ml = (c) => c.__type === "root" || c.type === "root", W_ = (c) => Ml(c.getParent()), Pr = (c) => c.__type === ph.text || c.type === ph.text || c.hasOwnProperty("__text") || c.hasOwnProperty("text"), Pc = (c) => (0, Ft.$isElementNode)(c), Mc = (c) => (0, kr.$isTableNode)(c) || (0, kr.$isTableRowNode)(c) || (0, kr.$isTableCellNode)(c),
|
|
57012
|
+
const Ml = (c) => c.__type === "root" || c.type === "root", W_ = (c) => Ml(c.getParent()), Pr = (c) => c.__type === ph.text || c.type === ph.text || c.hasOwnProperty("__text") || c.hasOwnProperty("text"), Pc = (c) => (0, Ft.$isElementNode)(c), Mc = (c) => (0, kr.$isTableNode)(c) || (0, kr.$isTableRowNode)(c) || (0, kr.$isTableCellNode)(c), JI = (c) => !c.getChildren, J_ = (c) => !!c.getChildren, Tr = (c) => (0, Ft.$isDecoratorNode)(c), Cd = (c) => (0, KA.$isLinkNode)(c), Td = (c) => c.__type === "mark" || c.type === "mark", tb = (c) => (0, Ft.$isLineBreakNode)(c), $s = (c) => Pr(c) || tb(c), Fy = (c) => c.__type === ph.horizontalrule || c.type === ph.horizontalrule, VI = (c) => c.__type === "image" || c.type === "image", KI = (c) => c.__type === "inline-image" || c.type === "inline-image", nC = (c) => {
|
|
57003
57013
|
if ($s(c) || Cd(c) || Td(c))
|
|
57004
57014
|
return !1;
|
|
57005
57015
|
if (!c.__parent || c.__parent === "root" || (0, Ft.$isParagraphNode)(c))
|
|
@@ -57023,7 +57033,7 @@ const Ml = (c) => c.__type === "root" || c.type === "root", W_ = (c) => Ml(c.get
|
|
|
57023
57033
|
}
|
|
57024
57034
|
}, oC = (c, t) => {
|
|
57025
57035
|
$n.getCodoxNodesMap(t).remove(c.codoxId), delete c.codoxId;
|
|
57026
|
-
},
|
|
57036
|
+
}, GI = (c, t) => {
|
|
57027
57037
|
if (!J_(c) || !c.getChildrenSize())
|
|
57028
57038
|
return;
|
|
57029
57039
|
const n = c.getChildren();
|
|
@@ -57036,7 +57046,7 @@ const Ml = (c) => c.__type === "root" || c.type === "root", W_ = (c) => Ml(c.get
|
|
|
57036
57046
|
e || o.codoxId ? e && o.codoxId && (o = o.getWritable(), oC(o, t)) : (o = o.getWritable(), Zc(o, null, `${o.__type}_codoxIdMaintainance`, t));
|
|
57037
57047
|
}, hf = function(c, t) {
|
|
57038
57048
|
let { setup: n = !1, update: e = !1, remove: s = !1 } = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
57039
|
-
if (
|
|
57049
|
+
if (VI(c) || KI(c)) {
|
|
57040
57050
|
if (n && t.setDecoratorId(c.codoxDId, c.exportJSON()), e) {
|
|
57041
57051
|
let o = t.getDecoratorById(c.codoxDId);
|
|
57042
57052
|
if (!o)
|
|
@@ -57060,12 +57070,12 @@ const Ml = (c) => c.__type === "root" || c.type === "root", W_ = (c) => Ml(c.get
|
|
|
57060
57070
|
}
|
|
57061
57071
|
s && t.removeDecoratorId(c.codoxDId);
|
|
57062
57072
|
}
|
|
57063
|
-
},
|
|
57073
|
+
}, YI = (c) => {
|
|
57064
57074
|
const t = eC({}, c);
|
|
57065
57075
|
for (const n in c)
|
|
57066
57076
|
c[n] === void 0 && c.hasOwnProperty(n) && delete t[n];
|
|
57067
57077
|
return t;
|
|
57068
|
-
},
|
|
57078
|
+
}, ZI = (c) => {
|
|
57069
57079
|
const t = `__nativeCreateDOM_${c.name}`;
|
|
57070
57080
|
c.prototype[t] = Su(c.prototype.createDOM, t), c.prototype.createDOM = function(n, e) {
|
|
57071
57081
|
let s = (0, Ft.$getEditor)(), o = s.getKey(), r = $n.getCodoxNodesMap(o), a = $n.getCustomNodesConverter(o);
|
|
@@ -57083,32 +57093,32 @@ const Ml = (c) => c.__type === "root" || c.type === "root", W_ = (c) => Ml(c.get
|
|
|
57083
57093
|
let l = this[t](n, s);
|
|
57084
57094
|
return l.__codox_track = !0, a.trackCustomNodeForConvert(this, s), l;
|
|
57085
57095
|
};
|
|
57086
|
-
},
|
|
57096
|
+
}, QI = (c) => {
|
|
57087
57097
|
const t = `__nativeUpdateDOM_${c.name}`;
|
|
57088
57098
|
return c.prototype[t] = Su(c.prototype.updateDOM, t), c.prototype.updateDOM = function() {
|
|
57089
57099
|
let n = (0, Ft.$getEditor)().getKey(), e = ($n.getCodoxLexicalEditorManager(n), $n.getCodoxNodesMap(n));
|
|
57090
57100
|
const s = this[t](...arguments);
|
|
57091
|
-
return
|
|
57101
|
+
return GI(this, n), this.codoxDId && hf(this, e, { update: !0 }), s;
|
|
57092
57102
|
}, c;
|
|
57093
|
-
},
|
|
57103
|
+
}, XI = (c) => {
|
|
57094
57104
|
const t = `__nativeRemove_${c.name}`;
|
|
57095
57105
|
return c.prototype[t] = Su(c.prototype.remove, t), c.prototype.remove = function() {
|
|
57096
57106
|
let n = (0, Ft.$getEditor)(), e = n.getKey(), s = $n.getCodoxNodesMap(e), o = $n.getCustomNodesConverter(e);
|
|
57097
57107
|
const r = this.codoxId, a = this.codoxDId;
|
|
57098
57108
|
return r && s.remove(r), a && hf(this, s, { remove: !0 }), o.untrackCustomNodeForConvert(this.__key, n), $n.getNestedEditorsProcessor(e).gcNestedEditorListenerInLexicalNode(this, "remove"), this[t](...arguments);
|
|
57099
57109
|
}, c;
|
|
57100
|
-
},
|
|
57110
|
+
}, eP = (c) => {
|
|
57101
57111
|
const t = `__nativeExportJSON_${c.name}`;
|
|
57102
57112
|
c.prototype[t] = Su(c.prototype.exportJSON, t), c.prototype.exportJSON = function() {
|
|
57103
57113
|
const n = this[t]();
|
|
57104
|
-
return this.codoxId && (n.codoxId = this.codoxId), this.codoxDId && (n.codoxDId = this.codoxDId), Pr(this) && tC(n.format) && this.hasFormat && (n.format =
|
|
57114
|
+
return this.codoxId && (n.codoxId = this.codoxId), this.codoxDId && (n.codoxDId = this.codoxDId), Pr(this) && tC(n.format) && this.hasFormat && (n.format = aj(this)), Pr(n) && n.style && (n.style.endsWith(";") || (n.style += ";")), YI(n);
|
|
57105
57115
|
};
|
|
57106
|
-
},
|
|
57116
|
+
}, tP = (c) => {
|
|
57107
57117
|
const t = "__nativeImportJSON";
|
|
57108
57118
|
c[t] = Su(c.importJSON, t), c.importJSON = function(n) {
|
|
57109
57119
|
let { ___ignoreCodox: e } = n;
|
|
57110
|
-
const s = eC({},
|
|
57111
|
-
Pr(s) && !tC(s.format) && (s.format =
|
|
57120
|
+
const s = eC({}, $I(n, zI));
|
|
57121
|
+
Pr(s) && !tC(s.format) && (s.format = ij(s.format)), Pr(s) && s.style && (s.style.endsWith(";") || (s.style += ";"));
|
|
57112
57122
|
const o = c[t](s);
|
|
57113
57123
|
if (e)
|
|
57114
57124
|
return o;
|
|
@@ -57117,20 +57127,20 @@ const Ml = (c) => c.__type === "root" || c.type === "root", W_ = (c) => Ml(c.get
|
|
|
57117
57127
|
const d = nC(o);
|
|
57118
57128
|
return d && s.codoxId && (i.hasPastedId(s.codoxId) && i.has(s.codoxId) ? (i.removePastedId(s.codoxId), Zc(o, null, `${o.__type}_importJSON_pasted`, a)) : Zc(o, s.codoxId, `${o.__type}_importJSON`, a)), d && !o.codoxId && Zc(o, null, `${o.__type}_${o.__key}_importJSON_should_have_id`, a), s.codoxDId && (o.codoxDId = s.codoxDId, hf(o, i, { setup: !0 })), o;
|
|
57119
57129
|
};
|
|
57120
|
-
},
|
|
57130
|
+
}, nP = (c) => {
|
|
57121
57131
|
const t = "__nativeClone";
|
|
57122
57132
|
c[t] = Su(c.clone, t), c.clone = function(n) {
|
|
57123
57133
|
const e = c[t](n);
|
|
57124
57134
|
let s = (0, Ft.$getEditor)(), o = $n.getNestedEditorsProcessor(s.getKey()), r = $n.getCodoxNodesMap(s.getKey());
|
|
57125
57135
|
return n.codoxId && (e.codoxId = n.codoxId), n.codoxDId && (e.codoxDId = n.codoxDId, hf(e, r, { setup: !0 })), o.manageNestedEditorInClonedLexicalNode(n, e, s), e;
|
|
57126
57136
|
};
|
|
57127
|
-
},
|
|
57137
|
+
}, rP = (c) => {
|
|
57128
57138
|
let t = !1, n = !1, e = !1, s = !1;
|
|
57129
57139
|
for (let r of c)
|
|
57130
57140
|
typeof r == "object" && r.replace && r.with || (r.name === Ft.TextNode.name ? t = !0 : r.name === Ft.ParagraphNode.name ? n = !0 : r.name === Ft.LineBreakNode.name ? e = !0 : r.name === qi.MarkNode.name && (s = !0));
|
|
57131
57141
|
let o = [];
|
|
57132
57142
|
return t || o.push(Ft.TextNode), n || o.push(Ft.ParagraphNode), e || o.push(Ft.LineBreakNode), s || o.push(qi.MarkNode), o.length ? [...o, ...c] : c;
|
|
57133
|
-
},
|
|
57143
|
+
}, oP = (c) => {
|
|
57134
57144
|
let t = c.getType();
|
|
57135
57145
|
if (t !== "beautifulMention" && t !== "overflow" && !Ry[t]) {
|
|
57136
57146
|
if (!c.prototype.toCodoxNode)
|
|
@@ -57138,17 +57148,17 @@ const Ml = (c) => c.__type === "root" || c.type === "root", W_ = (c) => Ml(c.get
|
|
|
57138
57148
|
if (!c.fromCodoxNode)
|
|
57139
57149
|
throw new Error(`"${t}" custom node implementation is missing class static conversion api .fromCodoxNode()`);
|
|
57140
57150
|
}
|
|
57141
|
-
},
|
|
57142
|
-
return
|
|
57151
|
+
}, iP = function() {
|
|
57152
|
+
return rP(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : []).map((c) => {
|
|
57143
57153
|
let t, n = typeof c == "object" && c.replace && c.with;
|
|
57144
57154
|
if (t = n ? c.replace : c, t.hasOwnProperty("__isCodoxExtended"))
|
|
57145
57155
|
return n ? c : t;
|
|
57146
57156
|
try {
|
|
57147
|
-
|
|
57157
|
+
oP(t);
|
|
57148
57158
|
} catch (e) {
|
|
57149
57159
|
throw new Error(`[registerNodesWithCodox] ${e.message}`);
|
|
57150
57160
|
}
|
|
57151
|
-
return
|
|
57161
|
+
return ZI(t), QI(t), eP(t), XI(t), tP(t), nP(t), Object.defineProperty(t, "__isCodoxExtended", { value: !0, writable: !1 }), n ? (c.replace = t, c) : t;
|
|
57152
57162
|
});
|
|
57153
57163
|
};
|
|
57154
57164
|
function V_(c, t) {
|
|
@@ -57161,25 +57171,25 @@ function V_(c, t) {
|
|
|
57161
57171
|
}
|
|
57162
57172
|
return n;
|
|
57163
57173
|
}
|
|
57164
|
-
function
|
|
57174
|
+
function aP(c) {
|
|
57165
57175
|
for (var t = 1; t < arguments.length; t++) {
|
|
57166
57176
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
57167
57177
|
t % 2 ? V_(Object(n), !0).forEach(function(e) {
|
|
57168
|
-
|
|
57178
|
+
sP(c, e, n[e]);
|
|
57169
57179
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(c, Object.getOwnPropertyDescriptors(n)) : V_(Object(n)).forEach(function(e) {
|
|
57170
57180
|
Object.defineProperty(c, e, Object.getOwnPropertyDescriptor(n, e));
|
|
57171
57181
|
});
|
|
57172
57182
|
}
|
|
57173
57183
|
return c;
|
|
57174
57184
|
}
|
|
57175
|
-
function
|
|
57176
|
-
return (t =
|
|
57185
|
+
function sP(c, t, n) {
|
|
57186
|
+
return (t = lP(t)) in c ? Object.defineProperty(c, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : c[t] = n, c;
|
|
57177
57187
|
}
|
|
57178
|
-
function
|
|
57179
|
-
var t =
|
|
57188
|
+
function lP(c) {
|
|
57189
|
+
var t = cP(c, "string");
|
|
57180
57190
|
return typeof t == "symbol" ? t : t + "";
|
|
57181
57191
|
}
|
|
57182
|
-
function
|
|
57192
|
+
function cP(c, t) {
|
|
57183
57193
|
if (typeof c != "object" || !c)
|
|
57184
57194
|
return c;
|
|
57185
57195
|
var n = c[Symbol.toPrimitive];
|
|
@@ -57191,7 +57201,7 @@ function iP(c, t) {
|
|
|
57191
57201
|
}
|
|
57192
57202
|
return (t === "string" ? String : Number)(c);
|
|
57193
57203
|
}
|
|
57194
|
-
function
|
|
57204
|
+
function uP() {
|
|
57195
57205
|
let { node: c, codoxId: t = null, codoxDId: n = null } = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
57196
57206
|
if (!c)
|
|
57197
57207
|
return null;
|
|
@@ -57239,7 +57249,7 @@ function G_(c, t) {
|
|
|
57239
57249
|
}
|
|
57240
57250
|
}), 0));
|
|
57241
57251
|
}
|
|
57242
|
-
function
|
|
57252
|
+
function dP(c, t) {
|
|
57243
57253
|
let n = t;
|
|
57244
57254
|
for (const e of c)
|
|
57245
57255
|
n = n[e];
|
|
@@ -57254,7 +57264,7 @@ function Ya() {
|
|
|
57254
57264
|
return null;
|
|
57255
57265
|
let l = null;
|
|
57256
57266
|
try {
|
|
57257
|
-
l =
|
|
57267
|
+
l = dP(c, a);
|
|
57258
57268
|
} catch {
|
|
57259
57269
|
}
|
|
57260
57270
|
return l && (r = Ml(l) ? (0, Ft.$getRoot)() : s.get(l.codoxId)), r || (n ? r : Ya({ pathArray: c, newStateJSON: t, searchInNewState: !0, editor: e, codoxNodesMap: s, currentStateJSON: o }));
|
|
@@ -57275,7 +57285,7 @@ function iC(c, t) {
|
|
|
57275
57285
|
for (const r of c.root.children)
|
|
57276
57286
|
n.append(o(r));
|
|
57277
57287
|
}
|
|
57278
|
-
function
|
|
57288
|
+
function fP() {
|
|
57279
57289
|
let { newStateJSON: c = null, deltas: t = [], belongsToNestedEditor: n = !1, editor: e, currentStateJSON: s } = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
57280
57290
|
if (!t.length)
|
|
57281
57291
|
return void mt.default.debug("[applyDeltasToLexicalState] stop, no deltas: ", t);
|
|
@@ -57298,7 +57308,7 @@ function lP() {
|
|
|
57298
57308
|
for (const O of w)
|
|
57299
57309
|
C = C[O];
|
|
57300
57310
|
if (!C) {
|
|
57301
|
-
const O =
|
|
57311
|
+
const O = uP({ node: c.root, codoxDId: E.codoxDId || null, codoxId: E.codoxId || null });
|
|
57302
57312
|
O && (C = O[S]);
|
|
57303
57313
|
}
|
|
57304
57314
|
G_(y, C);
|
|
@@ -57473,7 +57483,7 @@ function lP() {
|
|
|
57473
57483
|
if (!S)
|
|
57474
57484
|
continue;
|
|
57475
57485
|
let y = r.oi;
|
|
57476
|
-
if (_ === "format" && (y =
|
|
57486
|
+
if (_ === "format" && (y = sj(y)), _ === "direction" && (x.hasOwnProperty(E) || (E = "__dir")), !S.hasOwnProperty(E)) {
|
|
57477
57487
|
let w = Object.keys(S);
|
|
57478
57488
|
for (let C of w) {
|
|
57479
57489
|
let O = My(C);
|
|
@@ -57488,7 +57498,7 @@ function lP() {
|
|
|
57488
57498
|
}
|
|
57489
57499
|
}
|
|
57490
57500
|
}
|
|
57491
|
-
const
|
|
57501
|
+
const pP = function() {
|
|
57492
57502
|
let c = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
|
|
57493
57503
|
const t = [];
|
|
57494
57504
|
c.forEach((s, o) => {
|
|
@@ -57496,18 +57506,18 @@ const cP = function() {
|
|
|
57496
57506
|
r && t.push([]), t[t.length - 1].push(s), ((l) => l.hasOwnProperty("lm") || l.hasOwnProperty("li") || l.hasOwnProperty("ld"))(s) && !a && t.push([]);
|
|
57497
57507
|
});
|
|
57498
57508
|
const n = t.length === 1, e = { segmentedDeltas: t, isSingleSegment: n };
|
|
57499
|
-
return mt.default.debug("[segmentDeltas]: ",
|
|
57500
|
-
},
|
|
57509
|
+
return mt.default.debug("[segmentDeltas]: ", aP({ fullDeltas: c }, e)), e;
|
|
57510
|
+
}, hP = (c) => {
|
|
57501
57511
|
c.update(() => {
|
|
57502
57512
|
(0, Ft.$getRoot)().append($createParagraphNode());
|
|
57503
57513
|
});
|
|
57504
|
-
},
|
|
57505
|
-
function
|
|
57514
|
+
}, gP = { applyDeltasToLexicalState: fP, applyFullLexicalStateReplace: iC, segmentDeltas: pP, fixStateEmptyRoot: hP }, id = gP;
|
|
57515
|
+
function mP(c) {
|
|
57506
57516
|
let t = $n.getCodoxNodesMap(c);
|
|
57507
57517
|
return (n) => {
|
|
57508
57518
|
let e = null, s = !1;
|
|
57509
57519
|
try {
|
|
57510
|
-
e = n.clipboardData.getData(
|
|
57520
|
+
e = n.clipboardData.getData(lj.paste), mt.default.debug("[pasteContentListener] triggered", { payload: n, lexicalPayload: e }), e = JSON.parse(e), typeof e == "object" && e.nodes && Array.isArray(e.nodes) && (s = !0);
|
|
57511
57521
|
} catch {
|
|
57512
57522
|
return !1;
|
|
57513
57523
|
}
|
|
@@ -57526,7 +57536,7 @@ function fP(c) {
|
|
|
57526
57536
|
return !1;
|
|
57527
57537
|
};
|
|
57528
57538
|
}
|
|
57529
|
-
function
|
|
57539
|
+
function yP(c) {
|
|
57530
57540
|
let t = [], n = c._nodes, e = c.getKey(), s = $n.getTablesValidator(e), o = $n.getContentNestingsWatcher(e), r = $n.getCodoxNodesMap(e), a = $n.getCodoxComments(e);
|
|
57531
57541
|
return n.forEach((l, i, d) => {
|
|
57532
57542
|
let { klass: u } = l, f = c.registerMutationListener(u, (p) => {
|
|
@@ -57544,16 +57554,16 @@ function pP(c) {
|
|
|
57544
57554
|
t.push(f);
|
|
57545
57555
|
}), t;
|
|
57546
57556
|
}
|
|
57547
|
-
var
|
|
57557
|
+
var bP = (c) => {
|
|
57548
57558
|
var t = {};
|
|
57549
57559
|
return In.d(t, c), t;
|
|
57550
57560
|
};
|
|
57551
|
-
const aC =
|
|
57552
|
-
var
|
|
57561
|
+
const aC = bP({ useCollaborationContext: () => eb });
|
|
57562
|
+
var vP = (c) => {
|
|
57553
57563
|
var t = {};
|
|
57554
57564
|
return In.d(t, c), t;
|
|
57555
57565
|
};
|
|
57556
|
-
const Zs =
|
|
57566
|
+
const Zs = vP({ LexicalComposerContext: () => r0, useLexicalComposerContext: () => Nn }), _P = ["contentChanged"], xP = ["state", "remoteSelection"];
|
|
57557
57567
|
function Y_(c, t) {
|
|
57558
57568
|
var n = Object.keys(c);
|
|
57559
57569
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -57568,21 +57578,21 @@ function Rm(c) {
|
|
|
57568
57578
|
for (var t = 1; t < arguments.length; t++) {
|
|
57569
57579
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
57570
57580
|
t % 2 ? Y_(Object(n), !0).forEach(function(e) {
|
|
57571
|
-
|
|
57581
|
+
wP(c, e, n[e]);
|
|
57572
57582
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(c, Object.getOwnPropertyDescriptors(n)) : Y_(Object(n)).forEach(function(e) {
|
|
57573
57583
|
Object.defineProperty(c, e, Object.getOwnPropertyDescriptor(n, e));
|
|
57574
57584
|
});
|
|
57575
57585
|
}
|
|
57576
57586
|
return c;
|
|
57577
57587
|
}
|
|
57578
|
-
function
|
|
57579
|
-
return (t =
|
|
57588
|
+
function wP(c, t, n) {
|
|
57589
|
+
return (t = SP(t)) in c ? Object.defineProperty(c, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : c[t] = n, c;
|
|
57580
57590
|
}
|
|
57581
|
-
function
|
|
57582
|
-
var t =
|
|
57591
|
+
function SP(c) {
|
|
57592
|
+
var t = EP(c, "string");
|
|
57583
57593
|
return typeof t == "symbol" ? t : t + "";
|
|
57584
57594
|
}
|
|
57585
|
-
function
|
|
57595
|
+
function EP(c, t) {
|
|
57586
57596
|
if (typeof c != "object" || !c)
|
|
57587
57597
|
return c;
|
|
57588
57598
|
var n = c[Symbol.toPrimitive];
|
|
@@ -57597,7 +57607,7 @@ function _P(c, t) {
|
|
|
57597
57607
|
function Z_(c, t) {
|
|
57598
57608
|
if (c == null)
|
|
57599
57609
|
return {};
|
|
57600
|
-
var n, e, s =
|
|
57610
|
+
var n, e, s = CP(c, t);
|
|
57601
57611
|
if (Object.getOwnPropertySymbols) {
|
|
57602
57612
|
var o = Object.getOwnPropertySymbols(c);
|
|
57603
57613
|
for (e = 0; e < o.length; e++)
|
|
@@ -57605,7 +57615,7 @@ function Z_(c, t) {
|
|
|
57605
57615
|
}
|
|
57606
57616
|
return s;
|
|
57607
57617
|
}
|
|
57608
|
-
function
|
|
57618
|
+
function CP(c, t) {
|
|
57609
57619
|
if (c == null)
|
|
57610
57620
|
return {};
|
|
57611
57621
|
var n = {};
|
|
@@ -57618,7 +57628,7 @@ function xP(c, t) {
|
|
|
57618
57628
|
return n;
|
|
57619
57629
|
}
|
|
57620
57630
|
mt.default.info("MODE: ", !1);
|
|
57621
|
-
const
|
|
57631
|
+
const TP = (0, ft.forwardRef)((c, t) => {
|
|
57622
57632
|
let { onBlacklistedInsert: n, debug: e = !1 } = c;
|
|
57623
57633
|
if (!(0, ft.useContext)(Zs.LexicalComposerContext))
|
|
57624
57634
|
throw new Error("[CodoxCollabPlugin] CodoxCollabPlugin must be inited inside <LexicalComposer> component - LexicalComposerContext is missing");
|
|
@@ -57639,7 +57649,7 @@ const wP = (0, ft.forwardRef)((c, t) => {
|
|
|
57639
57649
|
if (!s)
|
|
57640
57650
|
return;
|
|
57641
57651
|
f.setMainEditor(s);
|
|
57642
|
-
const A = (0, ou.mergeRegister)(s.registerUpdateListener(N), s.registerCommand(Ft.PASTE_COMMAND,
|
|
57652
|
+
const A = (0, ou.mergeRegister)(s.registerUpdateListener(N), s.registerCommand(Ft.PASTE_COMMAND, mP(s.getKey()), Ft.COMMAND_PRIORITY_CRITICAL), s.registerCommand(Ft.UNDO_COMMAND, () => {
|
|
57643
57653
|
f.setUndoInvoked(!0);
|
|
57644
57654
|
}, Ft.COMMAND_PRIORITY_CRITICAL), s.registerCommand(Ft.REDO_COMMAND, () => {
|
|
57645
57655
|
f.setRedoInvoked(!0);
|
|
@@ -57649,7 +57659,7 @@ const wP = (0, ft.forwardRef)((c, t) => {
|
|
|
57649
57659
|
i.tableRemoveEventListener(Ft.KEY_BACKSPACE_COMMAND, V);
|
|
57650
57660
|
}, Ft.COMMAND_PRIORITY_CRITICAL), s.registerCommand(Ft.CUT_COMMAND, (z, V) => {
|
|
57651
57661
|
i.tableRemoveEventListener(Ft.CUT_COMMAND, V);
|
|
57652
|
-
}, Ft.COMMAND_PRIORITY_CRITICAL), ...
|
|
57662
|
+
}, Ft.COMMAND_PRIORITY_CRITICAL), ...yP(s));
|
|
57653
57663
|
l.mount(s), f.alignStateSelectionJSONsFromLatestEditor(), mt.default.debug("New editor mounted: ", { isCodoxStarted: f.isCodoxStarted, codoxLexicalEditorManager: f, nestedEditorsProcessor: d });
|
|
57654
57664
|
let D = s._onError;
|
|
57655
57665
|
s._onError = (z) => {
|
|
@@ -57693,7 +57703,7 @@ const wP = (0, ft.forwardRef)((c, t) => {
|
|
|
57693
57703
|
const { commentThreads: oe, root: de } = G, ue = { content: { comments: oe, root: de }, timestamp: ee };
|
|
57694
57704
|
return mt.default.info("[decorateFetchOnReconnctHook] hook invoked: ", { returnObj: ue }), ue;
|
|
57695
57705
|
}));
|
|
57696
|
-
const { contentChanged: Z } = W, X = Z_(W,
|
|
57706
|
+
const { contentChanged: Z } = W, X = Z_(W, _P);
|
|
57697
57707
|
$n.setContentChangedHookClientCallback(o, Z), await a.start(a.createConfig(Rm(Rm({}, A), {}, { docId: M, username: z, apiKey: V, domain: I, hooks: Rm({ syncState: (G) => {
|
|
57698
57708
|
mt.default.debug("[syncState] hook invoked. calls local syncState fn"), O(G);
|
|
57699
57709
|
}, getState: () => {
|
|
@@ -57762,7 +57772,7 @@ const wP = (0, ft.forwardRef)((c, t) => {
|
|
|
57762
57772
|
return;
|
|
57763
57773
|
mt.default.debug("[SYNC_STATE - remote handling]: Before sync(), payload from core = ", A);
|
|
57764
57774
|
const D = a.sync({ meta: A }), { state: j, remoteSelection: $ = [] } = D;
|
|
57765
|
-
if (Z_(D,
|
|
57775
|
+
if (Z_(D, xP), A && A.action === uj.syncRCS)
|
|
57766
57776
|
return mt.default.debug('[SYNC_STATE - remote handling] EARLY RETURN: "syncRCS" action - update only remote selections'), void l.updateRemoteSelections($, "syncState", s);
|
|
57767
57777
|
if (!j)
|
|
57768
57778
|
return y();
|
|
@@ -57844,56 +57854,56 @@ const wP = (0, ft.forwardRef)((c, t) => {
|
|
|
57844
57854
|
h.setInitialComments(A);
|
|
57845
57855
|
} };
|
|
57846
57856
|
return (0, ft.useImperativeHandle)(t, () => T), null;
|
|
57847
|
-
}),
|
|
57857
|
+
}), kP = TP;
|
|
57848
57858
|
var Cp = In(777), Rc = {};
|
|
57849
57859
|
Rc.styleTagTransform = ps(), Rc.setAttributes = ds(), Rc.insert = us().bind(null, "head"), Rc.domAPI = cs(), Rc.insertStyleElement = fs();
|
|
57850
57860
|
ls()(Cp.A, Rc);
|
|
57851
57861
|
Cp.A && Cp.A.locals && Cp.A.locals;
|
|
57852
|
-
var
|
|
57862
|
+
var OP = (c) => {
|
|
57853
57863
|
var t = {};
|
|
57854
57864
|
return In.d(t, c), t;
|
|
57855
57865
|
};
|
|
57856
|
-
const
|
|
57857
|
-
var
|
|
57866
|
+
const NP = OP({ AutoFocusPlugin: () => W0 });
|
|
57867
|
+
var AP = (c) => {
|
|
57858
57868
|
var t = {};
|
|
57859
57869
|
return In.d(t, c), t;
|
|
57860
57870
|
};
|
|
57861
|
-
const
|
|
57862
|
-
var
|
|
57871
|
+
const jP = AP({ ClearEditorPlugin: () => qE });
|
|
57872
|
+
var IP = (c) => {
|
|
57863
57873
|
var t = {};
|
|
57864
57874
|
return In.d(t, c), t;
|
|
57865
57875
|
};
|
|
57866
|
-
const
|
|
57867
|
-
var
|
|
57876
|
+
const PP = IP({ LexicalComposer: () => Uh }), Q_ = RA;
|
|
57877
|
+
var MP = (c) => {
|
|
57868
57878
|
var t = {};
|
|
57869
57879
|
return In.d(t, c), t;
|
|
57870
57880
|
};
|
|
57871
|
-
const
|
|
57872
|
-
var
|
|
57881
|
+
const RP = MP({ HistoryPlugin: () => Hh });
|
|
57882
|
+
var DP = (c) => {
|
|
57873
57883
|
var t = {};
|
|
57874
57884
|
return In.d(t, c), t;
|
|
57875
57885
|
};
|
|
57876
|
-
const
|
|
57877
|
-
var
|
|
57886
|
+
const LP = DP({ OnChangePlugin: () => WE });
|
|
57887
|
+
var FP = (c) => {
|
|
57878
57888
|
var t = {};
|
|
57879
57889
|
return In.d(t, c), t;
|
|
57880
57890
|
};
|
|
57881
|
-
const
|
|
57882
|
-
var
|
|
57891
|
+
const BP = FP({ PlainTextPlugin: () => JE });
|
|
57892
|
+
var zP = (c) => {
|
|
57883
57893
|
var t = {};
|
|
57884
57894
|
return In.d(t, c), t;
|
|
57885
57895
|
};
|
|
57886
|
-
const X_ =
|
|
57887
|
-
var
|
|
57896
|
+
const X_ = zP({ $isRootTextContentEmpty: () => V0, $rootTextContent: () => J0 });
|
|
57897
|
+
var $P = (c) => {
|
|
57888
57898
|
var t = {};
|
|
57889
57899
|
return In.d(t, c), t;
|
|
57890
57900
|
};
|
|
57891
|
-
const Kc =
|
|
57901
|
+
const Kc = $P({ createPortal: () => wh.createPortal }), UP = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, HP = UP ? ft.useLayoutEffect : ft.useEffect, sC = HP;
|
|
57892
57902
|
var Tp = In(253), Dc = {};
|
|
57893
57903
|
Dc.styleTagTransform = ps(), Dc.setAttributes = ds(), Dc.insert = us().bind(null, "head"), Dc.domAPI = cs(), Dc.insertStyleElement = fs();
|
|
57894
57904
|
ls()(Tp.A, Dc);
|
|
57895
57905
|
Tp.A && Tp.A.locals && Tp.A.locals;
|
|
57896
|
-
function
|
|
57906
|
+
function qP(c) {
|
|
57897
57907
|
let { onClose: t, children: n, title: e, closeOnClickOutside: s } = c;
|
|
57898
57908
|
const o = (0, ft.useRef)(null);
|
|
57899
57909
|
return (0, ft.useEffect)(() => {
|
|
@@ -57911,9 +57921,9 @@ function zP(c) {
|
|
|
57911
57921
|
};
|
|
57912
57922
|
}, [s, t]), ft.createElement("div", { className: "Modal__overlay", role: "dialog" }, ft.createElement("div", { className: "Modal__modal", tabIndex: -1, ref: o }, ft.createElement("h2", { className: "Modal__title" }, e), ft.createElement("button", { className: "Modal__closeButton", "aria-label": "Close modal", type: "button", onClick: t }, "X"), ft.createElement("div", { className: "Modal__content" }, n)));
|
|
57913
57923
|
}
|
|
57914
|
-
function
|
|
57924
|
+
function WP(c) {
|
|
57915
57925
|
let { onClose: t, children: n, title: e, closeOnClickOutside: s = !1 } = c;
|
|
57916
|
-
return (0, Kc.createPortal)(ft.createElement(
|
|
57926
|
+
return (0, Kc.createPortal)(ft.createElement(qP, { onClose: t, title: e, closeOnClickOutside: s }, n), document.body);
|
|
57917
57927
|
}
|
|
57918
57928
|
function lC() {
|
|
57919
57929
|
const [c, t] = (0, ft.useState)(null), n = (0, ft.useCallback)(() => {
|
|
@@ -57922,7 +57932,7 @@ function lC() {
|
|
|
57922
57932
|
if (c === null)
|
|
57923
57933
|
return null;
|
|
57924
57934
|
const { title: o, content: r, closeOnClickOutside: a } = c;
|
|
57925
|
-
return ft.createElement(
|
|
57935
|
+
return ft.createElement(WP, { onClose: n, title: o, closeOnClickOutside: a }, r);
|
|
57926
57936
|
}, [c, n]), s = (0, ft.useCallback)(function(o, r) {
|
|
57927
57937
|
t({ closeOnClickOutside: arguments.length > 2 && arguments[2] !== void 0 && arguments[2], content: r(n), title: o });
|
|
57928
57938
|
}, [n]);
|
|
@@ -57932,12 +57942,12 @@ var kp = In(191), Lc = {};
|
|
|
57932
57942
|
Lc.styleTagTransform = ps(), Lc.setAttributes = ds(), Lc.insert = us().bind(null, "head"), Lc.domAPI = cs(), Lc.insertStyleElement = fs();
|
|
57933
57943
|
ls()(kp.A, Lc);
|
|
57934
57944
|
kp.A && kp.A.locals && kp.A.locals;
|
|
57935
|
-
const
|
|
57945
|
+
const JP = { blockCursor: "CommentEditorTheme__blockCursor", characterLimit: "CommentEditorTheme__characterLimit", code: "CommentEditorTheme__code", codeHighlight: { atrule: "CommentEditorTheme__tokenAttr", attr: "CommentEditorTheme__tokenAttr", boolean: "CommentEditorTheme__tokenProperty", builtin: "CommentEditorTheme__tokenSelector", cdata: "CommentEditorTheme__tokenComment", char: "CommentEditorTheme__tokenSelector", class: "CommentEditorTheme__tokenFunction", "class-name": "CommentEditorTheme__tokenFunction", comment: "CommentEditorTheme__tokenComment", constant: "CommentEditorTheme__tokenProperty", deleted: "CommentEditorTheme__tokenProperty", doctype: "CommentEditorTheme__tokenComment", entity: "CommentEditorTheme__tokenOperator", function: "CommentEditorTheme__tokenFunction", important: "CommentEditorTheme__tokenVariable", inserted: "CommentEditorTheme__tokenSelector", keyword: "CommentEditorTheme__tokenAttr", namespace: "CommentEditorTheme__tokenVariable", number: "CommentEditorTheme__tokenProperty", operator: "CommentEditorTheme__tokenOperator", prolog: "CommentEditorTheme__tokenComment", property: "CommentEditorTheme__tokenProperty", punctuation: "CommentEditorTheme__tokenPunctuation", regex: "CommentEditorTheme__tokenVariable", selector: "CommentEditorTheme__tokenSelector", string: "CommentEditorTheme__tokenSelector", symbol: "CommentEditorTheme__tokenProperty", tag: "CommentEditorTheme__tokenProperty", url: "CommentEditorTheme__tokenOperator", variable: "CommentEditorTheme__tokenVariable" }, embedBlock: { base: "CommentEditorTheme__embedBlock", focus: "CommentEditorTheme__embedBlockFocus" }, hashtag: "CommentEditorTheme__hashtag", heading: { h1: "CommentEditorTheme__h1", h2: "CommentEditorTheme__h2", h3: "CommentEditorTheme__h3", h4: "CommentEditorTheme__h4", h5: "CommentEditorTheme__h5", h6: "CommentEditorTheme__h6" }, image: "editor-image", indent: "CommentEditorTheme__indent", inlineImage: "inline-editor-image", layoutContainer: "CommentEditorTheme__layoutContainer", layoutItem: "CommentEditorTheme__layoutItem", link: "CommentEditorTheme__link", list: { checklist: "CommentEditorTheme__checklist", listitem: "CommentEditorTheme__listItem", listitemChecked: "CommentEditorTheme__listItemChecked", listitemUnchecked: "CommentEditorTheme__listItemUnchecked", nested: { listitem: "CommentEditorTheme__nestedListItem" }, olDepth: ["CommentEditorTheme__ol1", "CommentEditorTheme__ol2", "CommentEditorTheme__ol3", "CommentEditorTheme__ol4", "CommentEditorTheme__ol5"], ul: "CommentEditorTheme__ul" }, ltr: "CommentEditorTheme__ltr", mark: "CommentEditorTheme__mark", markOverlap: "CommentEditorTheme__markOverlap", paragraph: "CommentEditorTheme__paragraph", quote: "CommentEditorTheme__quote", rtl: "CommentEditorTheme__rtl", table: "CommentEditorTheme__table", tableCell: "CommentEditorTheme__tableCell", tableCellActionButton: "CommentEditorTheme__tableCellActionButton", tableCellActionButtonContainer: "CommentEditorTheme__tableCellActionButtonContainer", tableCellEditing: "CommentEditorTheme__tableCellEditing", tableCellHeader: "CommentEditorTheme__tableCellHeader", tableCellPrimarySelected: "CommentEditorTheme__tableCellPrimarySelected", tableCellResizer: "CommentEditorTheme__tableCellResizer", tableCellSelected: "CommentEditorTheme__tableCellSelected", tableCellSortedIndicator: "CommentEditorTheme__tableCellSortedIndicator", tableResizeRuler: "CommentEditorTheme__tableCellResizeRuler", tableSelected: "CommentEditorTheme__tableSelected", tableSelection: "CommentEditorTheme__tableSelection", text: { bold: "CommentEditorTheme__textBold", code: "CommentEditorTheme__textCode", italic: "CommentEditorTheme__textItalic", strikethrough: "CommentEditorTheme__textStrikethrough", subscript: "CommentEditorTheme__textSubscript", superscript: "CommentEditorTheme__textSuperscript", underline: "CommentEditorTheme__textUnderline", underlineStrikethrough: "CommentEditorTheme__textUnderlineStrikethrough" } }, VP = JP;
|
|
57936
57946
|
var Op = In(72), Fc = {};
|
|
57937
57947
|
Fc.styleTagTransform = ps(), Fc.setAttributes = ds(), Fc.insert = us().bind(null, "head"), Fc.domAPI = cs(), Fc.insertStyleElement = fs();
|
|
57938
57948
|
ls()(Op.A, Fc);
|
|
57939
57949
|
Op.A && Op.A.locals && Op.A.locals;
|
|
57940
|
-
function
|
|
57950
|
+
function KP() {
|
|
57941
57951
|
for (var c = arguments.length, t = new Array(c), n = 0; n < c; n++)
|
|
57942
57952
|
t[n] = arguments[n];
|
|
57943
57953
|
return t.filter(Boolean).join(" ");
|
|
@@ -57954,26 +57964,26 @@ function By() {
|
|
|
57954
57964
|
}
|
|
57955
57965
|
function Qs(c) {
|
|
57956
57966
|
let { "data-test-id": t, children: n, className: e, onClick: s, disabled: o, small: r, title: a, style: l } = c;
|
|
57957
|
-
return ft.createElement("button", By({ disabled: o, className:
|
|
57967
|
+
return ft.createElement("button", By({ disabled: o, className: KP("Button__root", o && "Button__disabled", r && "Button__small", e), onClick: s, title: a, "aria-label": a }, t && { "data-test-id": t }, l && { style: l }), n);
|
|
57958
57968
|
}
|
|
57959
57969
|
var Np = In(129), Bc = {};
|
|
57960
57970
|
Bc.styleTagTransform = ps(), Bc.setAttributes = ds(), Bc.insert = us().bind(null, "head"), Bc.domAPI = cs(), Bc.insertStyleElement = fs();
|
|
57961
57971
|
ls()(Np.A, Bc);
|
|
57962
57972
|
Np.A && Np.A.locals && Np.A.locals;
|
|
57963
|
-
var
|
|
57973
|
+
var GP = (c) => {
|
|
57964
57974
|
var t = {};
|
|
57965
57975
|
return In.d(t, c), t;
|
|
57966
57976
|
};
|
|
57967
|
-
const
|
|
57968
|
-
function
|
|
57977
|
+
const YP = GP({ ContentEditable: () => UE });
|
|
57978
|
+
function ZP(c) {
|
|
57969
57979
|
let { className: t } = c;
|
|
57970
|
-
return ft.createElement(
|
|
57980
|
+
return ft.createElement(YP.ContentEditable, { className: t || "ContentEditable__root" });
|
|
57971
57981
|
}
|
|
57972
57982
|
var Ap = In(457), zc = {};
|
|
57973
57983
|
zc.styleTagTransform = ps(), zc.setAttributes = ds(), zc.insert = us().bind(null, "head"), zc.domAPI = cs(), zc.insertStyleElement = fs();
|
|
57974
57984
|
ls()(Ap.A, zc);
|
|
57975
57985
|
Ap.A && Ap.A.locals && Ap.A.locals;
|
|
57976
|
-
function
|
|
57986
|
+
function QP(c) {
|
|
57977
57987
|
let { children: t, className: n } = c;
|
|
57978
57988
|
return ft.createElement("div", { className: n || "Placeholder__root" }, t);
|
|
57979
57989
|
}
|
|
@@ -57987,15 +57997,15 @@ function zy() {
|
|
|
57987
57997
|
return c;
|
|
57988
57998
|
}, zy.apply(null, arguments);
|
|
57989
57999
|
}
|
|
57990
|
-
const
|
|
58000
|
+
const XP = Q_.LexicalErrorBoundary || Q_, e5 = () => ft.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "#050505", className: "codox-add-comment-right" }, ft.createElement("path", { d: "M14 1a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4.414A2 2 0 0 0 3 11.586l-2 2V2a1 1 0 0 1 1-1h12zM2 0a2 2 0 0 0-2 2v12.793a.5.5 0 0 0 .854.353l2.853-2.853A1 1 0 0 1 4.414 12H14a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2z" }), ft.createElement("path", { d: "M3 3.5a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0 1-.5-.5zM3 6a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 0 1h-9A.5.5 0 0 1 3 6zm0 2.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5z" })), cC = () => ft.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", fill: "currentColor", className: "codox-remove-comment" }, ft.createElement("path", { d: "M6.5 1h3a.5.5 0 0 1 .5.5v1H6v-1a.5.5 0 0 1 .5-.5ZM11 2.5v-1A1.5 1.5 0 0 0 9.5 0h-3A1.5 1.5 0 0 0 5 1.5v1H2.506a.58.58 0 0 0-.01 0H1.5a.5.5 0 0 0 0 1h.538l.853 10.66A2 2 0 0 0 4.885 16h6.23a2 2 0 0 0 1.994-1.84l.853-10.66h.538a.5.5 0 0 0 0-1h-.995a.59.59 0 0 0-.01 0H11Zm1.958 1-.846 10.58a1 1 0 0 1-.997.92h-6.23a1 1 0 0 1-.997-.92L3.042 3.5h9.916Zm-7.487 1a.5.5 0 0 1 .528.47l.5 8.5a.5.5 0 0 1-.998.06L5 5.03a.5.5 0 0 1 .47-.53Zm5.058 0a.5.5 0 0 1 .47.53l-.5 8.5a.5.5 0 1 1-.998-.06l.5-8.5a.5.5 0 0 1 .528-.47ZM8 4.5a.5.5 0 0 1 .5.5v8.5a.5.5 0 0 1-1 0V5a.5.5 0 0 1 .5-.5Z" })), t5 = () => ft.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "currentColor", className: "codox-add-comment" }, ft.createElement("path", { d: "M15.854.146a.5.5 0 0 1 .11.54l-5.819 14.547a.75.75 0 0 1-1.329.124l-3.178-4.995L.643 7.184a.75.75 0 0 1 .124-1.33L15.314.037a.5.5 0 0 1 .54.11ZM6.636 10.07l2.761 4.338L14.13 2.576 6.636 10.07Zm6.787-8.201L1.591 6.602l4.339 2.76 7.494-7.493Z" })), uC = () => ft.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", fill: "#0000008c", className: "codox-hide-show-comments" }, ft.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13 5.885v1.166a3.95 3.95 0 0 1-3.949 3.95H6.917a.748.748 0 0 0-.45.15l-1.345 1.007a.752.752 0 0 0-.032 1.181A2.933 2.933 0 0 0 6.95 14h2.716l2.534 1.901a.506.506 0 0 0 .524.047A.501.501 0 0 0 13 15.5V14h.051a2.949 2.949 0 0 0 2.95-2.949v-3.05a3.002 3.002 0 0 0-2.002-2.83.756.756 0 0 0-.999.714" }), ft.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M9.05 1H2.95A2.952 2.952 0 0 0 0 3.949v3.102A2.952 2.952 0 0 0 2.949 10H3v1.5a.502.502 0 0 0 .8.4L6.334 10H9.05A2.952 2.952 0 0 0 12 7.05V3.95A2.952 2.952 0 0 0 9.05 1" }));
|
|
57991
58001
|
function dC(c, t, n, e) {
|
|
57992
58002
|
let s = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : performance.now(), o = arguments.length > 5 && arguments[5] !== void 0 && arguments[5];
|
|
57993
58003
|
return c.createNewCommentObj({ content: t, author: n, codoxId: e, timeStamp: s, deleted: o });
|
|
57994
58004
|
}
|
|
57995
|
-
function
|
|
58005
|
+
function n5(c, t, n, e) {
|
|
57996
58006
|
return c.createNewThreadObj({ quote: t, comments: n, codoxId: e });
|
|
57997
58007
|
}
|
|
57998
|
-
function
|
|
58008
|
+
function r5(c) {
|
|
57999
58009
|
let { anchorKey: t, editor: n, onAddComment: e } = c;
|
|
58000
58010
|
const s = (0, ft.useRef)(null), o = (0, ft.useCallback)(() => {
|
|
58001
58011
|
const r = s.current, a = n.getRootElement(), l = n.getElementByKey(t);
|
|
@@ -58008,14 +58018,14 @@ function XP(c) {
|
|
|
58008
58018
|
window.removeEventListener("resize", o);
|
|
58009
58019
|
}), [n, o]), sC(() => {
|
|
58010
58020
|
o();
|
|
58011
|
-
}, [t, n, o]), ft.createElement("div", { className: "CodoxCommentPlugin_AddCommentBox", ref: s }, ft.createElement("button", { className: "CodoxCommentPlugin_AddCommentBox_button", onClick: e }, ft.createElement(
|
|
58021
|
+
}, [t, n, o]), ft.createElement("div", { className: "CodoxCommentPlugin_AddCommentBox", ref: s }, ft.createElement("button", { className: "CodoxCommentPlugin_AddCommentBox_button", onClick: e }, ft.createElement(e5, null)));
|
|
58012
58022
|
}
|
|
58013
|
-
function
|
|
58023
|
+
function o5(c) {
|
|
58014
58024
|
let { onEscape: t } = c;
|
|
58015
58025
|
const [n] = (0, Zs.useLexicalComposerContext)();
|
|
58016
58026
|
return (0, ft.useEffect)(() => n.registerCommand(Ft.KEY_ESCAPE_COMMAND, (e) => t(e), 2), [n, t]), null;
|
|
58017
58027
|
}
|
|
58018
|
-
function
|
|
58028
|
+
function i5(c) {
|
|
58019
58029
|
let { editorRef: t } = c;
|
|
58020
58030
|
const [n] = (0, Zs.useLexicalComposerContext)();
|
|
58021
58031
|
return typeof t == "function" ? t(n) : typeof t == "object" && (t.current = n), null;
|
|
@@ -58025,8 +58035,8 @@ function fC(c) {
|
|
|
58025
58035
|
} } = c;
|
|
58026
58036
|
const l = { namespace: "Commenting", nodes: [], onError: (i) => {
|
|
58027
58037
|
throw i;
|
|
58028
|
-
}, theme:
|
|
58029
|
-
return ft.createElement(
|
|
58038
|
+
}, theme: VP };
|
|
58039
|
+
return ft.createElement(PP.LexicalComposer, { initialConfig: l }, ft.createElement("div", { className: "CodoxCommentPlugin_CommentInputBox_EditorContainer", onClick: a }, ft.createElement(BP.PlainTextPlugin, { contentEditable: ft.createElement(ZP, { className: t }), placeholder: ft.createElement(QP, null, r), ErrorBoundary: XP }), ft.createElement(LP.OnChangePlugin, { onChange: s }), ft.createElement(RP.HistoryPlugin, null), n !== !1 && ft.createElement(NP.AutoFocusPlugin, null), ft.createElement(o5, { onEscape: e }), ft.createElement(jP.ClearEditorPlugin, null), o !== void 0 && ft.createElement(i5, { editorRef: o })));
|
|
58030
58040
|
}
|
|
58031
58041
|
function pC(c, t) {
|
|
58032
58042
|
return (0, ft.useCallback)((n, e) => {
|
|
@@ -58035,7 +58045,7 @@ function pC(c, t) {
|
|
|
58035
58045
|
});
|
|
58036
58046
|
}, [t, c]);
|
|
58037
58047
|
}
|
|
58038
|
-
function
|
|
58048
|
+
function a5(c) {
|
|
58039
58049
|
let { editor: t, cancelAddComment: n, submitAddComment: e, codoxComments: s } = c;
|
|
58040
58050
|
const [o, r] = (0, ft.useState)(""), [a, l] = (0, ft.useState)(!1), i = (0, ft.useRef)(null), d = (0, ft.useMemo)(() => ({ container: document.createElement("div"), elements: [] }), []), u = (0, ft.useRef)(null), f = gC(), p = (0, ft.useCallback)(() => {
|
|
58041
58051
|
t.getEditorState().read(() => {
|
|
@@ -58080,11 +58090,11 @@ function n5(c) {
|
|
|
58080
58090
|
const g = u.current;
|
|
58081
58091
|
return g ? g.getTextContent() : "";
|
|
58082
58092
|
});
|
|
58083
|
-
m.length > 100 && (m = m.slice(0, 99) + "…"), e(
|
|
58093
|
+
m.length > 100 && (m = m.slice(0, 99) + "…"), e(n5(s, m, [dC(s, o, f)]), !0, void 0, u.current), u.current = null;
|
|
58084
58094
|
}
|
|
58085
58095
|
}, disabled: !a, className: "CodoxCommentPlugin_CommentInputBox_Button primary" }, "Comment")));
|
|
58086
58096
|
}
|
|
58087
|
-
function
|
|
58097
|
+
function s5(c) {
|
|
58088
58098
|
let { submitAddComment: t, thread: n, placeholder: e, codoxComments: s } = c;
|
|
58089
58099
|
const [o, r] = (0, ft.useState)(""), [a, l] = (0, ft.useState)(!1), i = (0, ft.useRef)(null), d = gC(), u = pC(r, l);
|
|
58090
58100
|
return ft.createElement(ft.Fragment, null, ft.createElement(fC, { className: "CodoxCommentPlugin_CommentsPanel_Editor", autoFocus: !1, onEscape: () => !0, onChange: u, editorRef: i, placeholder: e }), ft.createElement(Qs, { className: "CodoxCommentPlugin_CommentsPanel_SendButton", onClick: () => {
|
|
@@ -58093,7 +58103,7 @@ function r5(c) {
|
|
|
58093
58103
|
const f = i.current;
|
|
58094
58104
|
f !== null && f.dispatchCommand(Ft.CLEAR_EDITOR_COMMAND, void 0);
|
|
58095
58105
|
}
|
|
58096
|
-
}, disabled: !a }, ft.createElement(
|
|
58106
|
+
}, disabled: !a }, ft.createElement(t5, null)));
|
|
58097
58107
|
}
|
|
58098
58108
|
function hC(c) {
|
|
58099
58109
|
let { commentOrThread: t, deleteCommentOrThread: n, onClose: e, thread: s } = c;
|
|
@@ -58110,7 +58120,7 @@ function ex(c) {
|
|
|
58110
58120
|
l("Delete Comment", (i) => ft.createElement(hC, { commentOrThread: t, deleteCommentOrThread: n, thread: e, onClose: i }));
|
|
58111
58121
|
}, className: "CodoxCommentPlugin_CommentsPanel_List_DeleteButton" }, ft.createElement(cC, null)), a));
|
|
58112
58122
|
}
|
|
58113
|
-
function
|
|
58123
|
+
function l5(c) {
|
|
58114
58124
|
let { activeIDs: t, comments: n, deleteCommentOrThread: e, listRef: s, submitAddComment: o, markNodeMap: r, codoxComments: a } = c;
|
|
58115
58125
|
const [l] = (0, Zs.useLexicalComposerContext)(), [i, d] = (0, ft.useState)(0), [u, f] = lC(), p = (0, ft.useMemo)(() => new Intl.RelativeTimeFormat("en", { localeMatcher: "best fit", numeric: "auto", style: "short" }), []);
|
|
58116
58126
|
return (0, ft.useEffect)(() => {
|
|
@@ -58137,22 +58147,22 @@ function o5(c) {
|
|
|
58137
58147
|
};
|
|
58138
58148
|
return ft.createElement("li", { key: m, onClick: g, className: `CodoxCommentPlugin_CommentsPanel_List_Thread ${r.has(m) ? "interactive" : ""} ${t.indexOf(m) === -1 ? "" : "active"}` }, ft.createElement("div", { className: "CodoxCommentPlugin_CommentsPanel_List_Thread_QuoteBox" }, ft.createElement("blockquote", { className: "CodoxCommentPlugin_CommentsPanel_List_Thread_Quote" }, "> ", ft.createElement("span", null, h.quote)), ft.createElement(Qs, { onClick: () => {
|
|
58139
58149
|
f("Delete Thread", (v) => ft.createElement(hC, { commentOrThread: h, deleteCommentOrThread: e, onClose: v }));
|
|
58140
|
-
}, className: "CodoxCommentPlugin_CommentsPanel_List_DeleteButton" }, ft.createElement(cC, null)), u), ft.createElement("ul", { className: "CodoxCommentPlugin_CommentsPanel_List_Thread_Comments" }, h.comments.map((v) => ft.createElement(ex, { key: v.codoxId, comment: v, deleteComment: e, thread: h, rtf: p }))), ft.createElement("div", { className: "CodoxCommentPlugin_CommentsPanel_List_Thread_Editor" }, ft.createElement(
|
|
58150
|
+
}, className: "CodoxCommentPlugin_CommentsPanel_List_DeleteButton" }, ft.createElement(cC, null)), u), ft.createElement("ul", { className: "CodoxCommentPlugin_CommentsPanel_List_Thread_Comments" }, h.comments.map((v) => ft.createElement(ex, { key: v.codoxId, comment: v, deleteComment: e, thread: h, rtf: p }))), ft.createElement("div", { className: "CodoxCommentPlugin_CommentsPanel_List_Thread_Editor" }, ft.createElement(s5, { submitAddComment: o, thread: h, placeholder: "Reply to comment...", codoxComments: a })));
|
|
58141
58151
|
}
|
|
58142
58152
|
return ft.createElement(ex, { key: m, comment: h, deleteComment: e, rtf: p });
|
|
58143
58153
|
}));
|
|
58144
58154
|
}
|
|
58145
|
-
function
|
|
58155
|
+
function c5(c) {
|
|
58146
58156
|
let { activeIDs: t, deleteCommentOrThread: n, comments: e, submitAddComment: s, markNodeMap: o, codoxComments: r, style: a, closeComments: l } = c;
|
|
58147
58157
|
const i = (0, ft.useRef)(null), d = e.length === 0;
|
|
58148
|
-
return ft.createElement("div", zy({ className: "CodoxCommentPlugin_CommentsPanel" }, a && { style: a }), ft.createElement("h2", { className: "CodoxCommentPlugin_CommentsPanel_Heading" }, "Comments", ft.createElement("div", { onClick: l, style: { display: "inline-block", position: "absolute", right: "5px", top: "5px", cursor: "pointer" } }, ft.createElement(uC, null))), d ? ft.createElement("div", { className: "CodoxCommentPlugin_CommentsPanel_Empty" }, "No Comments") : ft.createElement(
|
|
58158
|
+
return ft.createElement("div", zy({ className: "CodoxCommentPlugin_CommentsPanel" }, a && { style: a }), ft.createElement("h2", { className: "CodoxCommentPlugin_CommentsPanel_Heading" }, "Comments", ft.createElement("div", { onClick: l, style: { display: "inline-block", position: "absolute", right: "5px", top: "5px", cursor: "pointer" } }, ft.createElement(uC, null))), d ? ft.createElement("div", { className: "CodoxCommentPlugin_CommentsPanel_Empty" }, "No Comments") : ft.createElement(l5, { activeIDs: t, comments: e, deleteCommentOrThread: n, listRef: i, submitAddComment: s, markNodeMap: o, codoxComments: r }));
|
|
58149
58159
|
}
|
|
58150
58160
|
function gC() {
|
|
58151
58161
|
const c = (0, aC.useCollaborationContext)(), { yjsDocMap: t, name: n } = c;
|
|
58152
58162
|
return n || "user";
|
|
58153
58163
|
}
|
|
58154
|
-
function
|
|
58155
|
-
const [t] = (0, Zs.useLexicalComposerContext)(), n = (t && t.getRootElement() && t.getRootElement().getBoundingClientRect(), t.getKey()), e =
|
|
58164
|
+
function u5(c) {
|
|
58165
|
+
const [t] = (0, Zs.useLexicalComposerContext)(), n = (t && t.getRootElement() && t.getRootElement().getBoundingClientRect(), t.getKey()), e = Ej(n), s = $n.getCodoxComments(n), o = (0, ft.useMemo)(() => /* @__PURE__ */ new Map(), []), [r, a] = (0, ft.useState)(), [l, i] = (0, ft.useState)([]), [d, u] = (0, ft.useState)(!1), [f, p] = (0, ft.useState)(!1);
|
|
58156
58166
|
(0, ft.useEffect)(() => {
|
|
58157
58167
|
!e.length && f ? p(!1) : e.length;
|
|
58158
58168
|
}, [e]);
|
|
@@ -58259,9 +58269,9 @@ function a5(c) {
|
|
|
58259
58269
|
const b = window.getSelection();
|
|
58260
58270
|
return b !== null && b.removeAllRanges(), u(!0), !0;
|
|
58261
58271
|
}, Ft.COMMAND_PRIORITY_EDITOR));
|
|
58262
|
-
}, [t, o]), ft.createElement(ft.Fragment, null, d && (0, Kc.createPortal)(ft.createElement(
|
|
58272
|
+
}, [t, o]), ft.createElement(ft.Fragment, null, d && (0, Kc.createPortal)(ft.createElement(a5, { editor: t, cancelAddComment: h, submitAddComment: g, codoxComments: s }), document.body), r != null && !d && (0, Kc.createPortal)(ft.createElement(r5, { anchorKey: r, editor: t, onAddComment: () => {
|
|
58263
58273
|
t.dispatchCommand(Dy, void 0);
|
|
58264
|
-
} }), document.body), (0, Kc.createPortal)(ft.createElement(Qs, { className: "CodoxCommentPlugin_ShowCommentsButton " + (f ? "active" : ""), onClick: () => p(!f), title: f ? "Hide Comments" : "Show Comments" }, ft.createElement(uC, null)), document.body), f && (0, Kc.createPortal)(ft.createElement(
|
|
58274
|
+
} }), document.body), (0, Kc.createPortal)(ft.createElement(Qs, { className: "CodoxCommentPlugin_ShowCommentsButton " + (f ? "active" : ""), onClick: () => p(!f), title: f ? "Hide Comments" : "Show Comments" }, ft.createElement(uC, null)), document.body), f && (0, Kc.createPortal)(ft.createElement(c5, { comments: e, submitAddComment: g, deleteCommentOrThread: m, activeIDs: l, markNodeMap: o, codoxComments: s, closeComments: () => p(!1) }), document.body));
|
|
58265
58275
|
}
|
|
58266
58276
|
var jp = In(766), $c = {};
|
|
58267
58277
|
$c.styleTagTransform = ps(), $c.setAttributes = ds(), $c.insert = us().bind(null, "head"), $c.domAPI = cs(), $c.insertStyleElement = fs();
|
|
@@ -58271,7 +58281,7 @@ var Ip = In(225), Uc = {};
|
|
|
58271
58281
|
Uc.styleTagTransform = ps(), Uc.setAttributes = ds(), Uc.insert = us().bind(null, "head"), Uc.domAPI = cs(), Uc.insertStyleElement = fs();
|
|
58272
58282
|
ls()(Ip.A, Uc);
|
|
58273
58283
|
Ip.A && Ip.A.locals && Ip.A.locals;
|
|
58274
|
-
function
|
|
58284
|
+
function d5(c) {
|
|
58275
58285
|
let { label: t, value: n, onChange: e, placeholder: s = "", "data-test-id": o, type: r = "text" } = c;
|
|
58276
58286
|
return ft.createElement("div", { className: "CodoxInput__wrapper" }, ft.createElement("label", { className: "CodoxInput__label" }, t), ft.createElement("input", { type: r, className: "CodoxInput__input", placeholder: s, value: n, onChange: (a) => {
|
|
58277
58287
|
e(a.target.value);
|
|
@@ -58291,21 +58301,21 @@ function dp(c) {
|
|
|
58291
58301
|
for (var t = 1; t < arguments.length; t++) {
|
|
58292
58302
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
58293
58303
|
t % 2 ? tx(Object(n), !0).forEach(function(e) {
|
|
58294
|
-
|
|
58304
|
+
f5(c, e, n[e]);
|
|
58295
58305
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(c, Object.getOwnPropertyDescriptors(n)) : tx(Object(n)).forEach(function(e) {
|
|
58296
58306
|
Object.defineProperty(c, e, Object.getOwnPropertyDescriptor(n, e));
|
|
58297
58307
|
});
|
|
58298
58308
|
}
|
|
58299
58309
|
return c;
|
|
58300
58310
|
}
|
|
58301
|
-
function
|
|
58302
|
-
return (t =
|
|
58311
|
+
function f5(c, t, n) {
|
|
58312
|
+
return (t = p5(t)) in c ? Object.defineProperty(c, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : c[t] = n, c;
|
|
58303
58313
|
}
|
|
58304
|
-
function
|
|
58305
|
-
var t =
|
|
58314
|
+
function p5(c) {
|
|
58315
|
+
var t = h5(c, "string");
|
|
58306
58316
|
return typeof t == "symbol" ? t : t + "";
|
|
58307
58317
|
}
|
|
58308
|
-
function
|
|
58318
|
+
function h5(c, t) {
|
|
58309
58319
|
if (typeof c != "object" || !c)
|
|
58310
58320
|
return c;
|
|
58311
58321
|
var n = c[Symbol.toPrimitive];
|
|
@@ -58318,8 +58328,8 @@ function u5(c, t) {
|
|
|
58318
58328
|
return (t === "string" ? String : Number)(c);
|
|
58319
58329
|
}
|
|
58320
58330
|
let kd = !1;
|
|
58321
|
-
const
|
|
58322
|
-
function
|
|
58331
|
+
const g5 = ["#d0021b", "#f5a623", "#f8e71c", "#8b572a", "#7ed321", "#417505", "#bd10e0", "#9013fe", "#4a90e2", "#50e3c2", "#b8e986", "#000000", "#4a4a4a", "#9b9b9b", "#ffffff"];
|
|
58332
|
+
function m5(c) {
|
|
58323
58333
|
let { color: t, onChange: n } = c;
|
|
58324
58334
|
const [e, s] = (0, ft.useState)(Tc("hex", t)), [o, r] = (0, ft.useState)(t), a = (0, ft.useRef)(null), l = (0, ft.useMemo)(() => ({ x: e.hsv.s / 100 * 214, y: (100 - e.hsv.v) / 100 * 150 }), [e.hsv.s, e.hsv.v]), i = (0, ft.useMemo)(() => ({ x: e.hsv.h / 360 * 214 }), [e.hsv]);
|
|
58325
58335
|
return (0, ft.useEffect)(() => {
|
|
@@ -58329,12 +58339,12 @@ function f5(c) {
|
|
|
58329
58339
|
return;
|
|
58330
58340
|
const d = Tc("hex", t);
|
|
58331
58341
|
s(d), r(d.hex);
|
|
58332
|
-
}, [t]), ft.createElement("div", { className: "codox-color-picker-wrapper", style: { width: 214 }, ref: a }, ft.createElement(
|
|
58342
|
+
}, [t]), ft.createElement("div", { className: "codox-color-picker-wrapper", style: { width: 214 }, ref: a }, ft.createElement(d5, { label: "Hex", onChange: (d) => {
|
|
58333
58343
|
if (r(d), /^#[0-9A-Fa-f]{6}$/i.test(d)) {
|
|
58334
58344
|
const u = Tc("hex", d);
|
|
58335
58345
|
s(u);
|
|
58336
58346
|
}
|
|
58337
|
-
}, value: o }), ft.createElement("div", { className: "codox-color-picker-basic-color" },
|
|
58347
|
+
}, value: o }), ft.createElement("div", { className: "codox-color-picker-basic-color" }, g5.map((d) => ft.createElement("button", { className: d === e.hex ? " active" : "", key: d, style: { backgroundColor: d }, onClick: () => ((u) => {
|
|
58338
58348
|
r(u);
|
|
58339
58349
|
let f = Tc("hex", u);
|
|
58340
58350
|
s(f), n(f.hex, kd);
|
|
@@ -58390,7 +58400,7 @@ function Dm(c) {
|
|
|
58390
58400
|
const s = Math.max(t, n, e), o = s - Math.min(t, n, e);
|
|
58391
58401
|
return { h: o ? 60 * (s === t ? (n - e) / o + (n < e ? 6 : 0) : s === n ? 2 + (e - t) / o : 4 + (t - n) / o) : 0, s: s ? o / s * 100 : 0, v: 100 * s };
|
|
58392
58402
|
}
|
|
58393
|
-
function
|
|
58403
|
+
function y5(c) {
|
|
58394
58404
|
let { h: t, s: n, v: e } = c;
|
|
58395
58405
|
n /= 100, e /= 100;
|
|
58396
58406
|
const s = ~~(t / 60), o = t / 60 - s, r = e * (1 - n), a = e * (1 - n * o), l = e * (1 - n * (1 - o)), i = s % 6, d = Math.round(255 * [e, a, r, r, l, e][i]), u = Math.round(255 * [l, e, e, a, r, r][i]);
|
|
@@ -58402,17 +58412,17 @@ function ax(c) {
|
|
|
58402
58412
|
}
|
|
58403
58413
|
function Tc(c, t) {
|
|
58404
58414
|
let n = ox("#121212"), e = ix(n), s = Dm(e);
|
|
58405
|
-
return c === "hex" ? (n = ox(t), e = ix(n), s = Dm(e)) : c === "rgb" ? (e = t, n = ax(e), s = Dm(e)) : c === "hsv" && (s = t, e =
|
|
58415
|
+
return c === "hex" ? (n = ox(t), e = ix(n), s = Dm(e)) : c === "rgb" ? (e = t, n = ax(e), s = Dm(e)) : c === "hsv" && (s = t, e = y5(s), n = ax(e)), { hex: n, hsv: s, rgb: e };
|
|
58406
58416
|
}
|
|
58407
|
-
const
|
|
58408
|
-
function
|
|
58417
|
+
const b5 = ft.createContext(null);
|
|
58418
|
+
function v5(c) {
|
|
58409
58419
|
let { children: t, dropDownRef: n, onClose: e, dropdownClassName: s } = c;
|
|
58410
58420
|
const [o, r] = (0, ft.useState)(), [a, l] = (0, ft.useState)(), i = (0, ft.useCallback)((u) => {
|
|
58411
58421
|
r((f) => f ? [...f, u] : [u]);
|
|
58412
58422
|
}, [r]), d = (0, ft.useMemo)(() => ({ registerItem: i }), [i]);
|
|
58413
58423
|
return (0, ft.useEffect)(() => {
|
|
58414
58424
|
o && !a && l(o[0]), a && a.current && a.current.focus();
|
|
58415
|
-
}, [o, a]), ft.createElement(
|
|
58425
|
+
}, [o, a]), ft.createElement(b5.Provider, { value: d }, ft.createElement("div", { className: s, ref: n, onKeyDown: (u) => {
|
|
58416
58426
|
if (!o)
|
|
58417
58427
|
return;
|
|
58418
58428
|
const f = u.key;
|
|
@@ -58424,7 +58434,7 @@ function g5(c) {
|
|
|
58424
58434
|
}) : f === "ArrowDown" && l((p) => p ? o[o.indexOf(p) + 1] : o[0]);
|
|
58425
58435
|
} }, t));
|
|
58426
58436
|
}
|
|
58427
|
-
function
|
|
58437
|
+
function _5(c) {
|
|
58428
58438
|
let { disabled: t = !1, buttonLabel: n, buttonAriaLabel: e, buttonClassName: s, buttonIconClassName: o, children: r, stopCloseOnClickSelf: a, dropdownClassName: l, buttonLabelClassName: i, dropdownChevronClassName: d } = c;
|
|
58429
58439
|
const u = (0, ft.useRef)(null), f = (0, ft.useRef)(null), [p, h] = (0, ft.useState)(!1);
|
|
58430
58440
|
return (0, ft.useEffect)(() => {
|
|
@@ -58457,11 +58467,11 @@ function m5(c) {
|
|
|
58457
58467
|
return document.addEventListener("scroll", m), () => {
|
|
58458
58468
|
document.removeEventListener("scroll", m);
|
|
58459
58469
|
};
|
|
58460
|
-
}, [f, u, p]), ft.createElement(ft.Fragment, null, ft.createElement("button", { type: "button", disabled: t, "aria-label": e || n, className: s, onClick: () => h(!p), ref: f }, o && ft.createElement("span", { className: o }), n && ft.createElement("span", { className: i }, n), ft.createElement("i", { className: d })), p && (0, Kc.createPortal)(ft.createElement(
|
|
58470
|
+
}, [f, u, p]), ft.createElement(ft.Fragment, null, ft.createElement("button", { type: "button", disabled: t, "aria-label": e || n, className: s, onClick: () => h(!p), ref: f }, o && ft.createElement("span", { className: o }), n && ft.createElement("span", { className: i }, n), ft.createElement("i", { className: d })), p && (0, Kc.createPortal)(ft.createElement(v5, { dropDownRef: u, onClose: () => {
|
|
58461
58471
|
h(!1), f && f.current && f.current.focus();
|
|
58462
58472
|
}, dropdownClassName: l }, r), document.body));
|
|
58463
58473
|
}
|
|
58464
|
-
const
|
|
58474
|
+
const x5 = ["disabled", "stopCloseOnClickSelf", "color", "onChange"];
|
|
58465
58475
|
function $y() {
|
|
58466
58476
|
return $y = Object.assign ? Object.assign.bind() : function(c) {
|
|
58467
58477
|
for (var t = 1; t < arguments.length; t++) {
|
|
@@ -58472,10 +58482,10 @@ function $y() {
|
|
|
58472
58482
|
return c;
|
|
58473
58483
|
}, $y.apply(null, arguments);
|
|
58474
58484
|
}
|
|
58475
|
-
function
|
|
58485
|
+
function w5(c, t) {
|
|
58476
58486
|
if (c == null)
|
|
58477
58487
|
return {};
|
|
58478
|
-
var n, e, s =
|
|
58488
|
+
var n, e, s = S5(c, t);
|
|
58479
58489
|
if (Object.getOwnPropertySymbols) {
|
|
58480
58490
|
var o = Object.getOwnPropertySymbols(c);
|
|
58481
58491
|
for (e = 0; e < o.length; e++)
|
|
@@ -58483,7 +58493,7 @@ function b5(c, t) {
|
|
|
58483
58493
|
}
|
|
58484
58494
|
return s;
|
|
58485
58495
|
}
|
|
58486
|
-
function
|
|
58496
|
+
function S5(c, t) {
|
|
58487
58497
|
if (c == null)
|
|
58488
58498
|
return {};
|
|
58489
58499
|
var n = {};
|
|
@@ -58496,10 +58506,10 @@ function v5(c, t) {
|
|
|
58496
58506
|
return n;
|
|
58497
58507
|
}
|
|
58498
58508
|
function mC(c) {
|
|
58499
|
-
let { disabled: t = !1, stopCloseOnClickSelf: n = !0, color: e, onChange: s } = c, o =
|
|
58500
|
-
return ft.createElement(
|
|
58509
|
+
let { disabled: t = !1, stopCloseOnClickSelf: n = !0, color: e, onChange: s } = c, o = w5(c, x5);
|
|
58510
|
+
return ft.createElement(_5, $y({}, o, { disabled: t, stopCloseOnClickSelf: n }), ft.createElement(m5, { color: e, onChange: s }));
|
|
58501
58511
|
}
|
|
58502
|
-
const
|
|
58512
|
+
const E5 = (c) => {
|
|
58503
58513
|
let { onColorChange: t, buttonClassName: n, buttonIconClassName: e, buttonAriaLabel: s, buttonLabel: o, dropdownClassName: r, buttonLabelClassName: a, dropdownChevronClassName: l } = c;
|
|
58504
58514
|
const [i] = (0, Zs.useLexicalComposerContext)(), [d, u] = (0, ft.useState)(() => i.isEditable()), [f, p] = (0, ft.useState)("");
|
|
58505
58515
|
(0, ft.useEffect)(() => (0, ou.mergeRegister)(i.registerEditableListener((m) => {
|
|
@@ -58521,7 +58531,7 @@ const _5 = (c) => {
|
|
|
58521
58531
|
});
|
|
58522
58532
|
}, [i]);
|
|
58523
58533
|
return ft.createElement(mC, { disabled: !d, color: f, onChange: h, buttonClassName: n || "", buttonIconClassName: e || "", buttonAriaLabel: s || "", buttonLabel: o || "", dropdownClassName: r || "", buttonLabelClassName: a || "", dropdownChevronClassName: l || "" });
|
|
58524
|
-
},
|
|
58534
|
+
}, C5 = E5, T5 = (c) => {
|
|
58525
58535
|
let { onColorChange: t, buttonClassName: n, buttonIconClassName: e, buttonAriaLabel: s, buttonLabel: o, dropdownClassName: r, buttonLabelClassName: a, dropdownChevronClassName: l } = c;
|
|
58526
58536
|
const [i] = (0, Zs.useLexicalComposerContext)(), [d, u] = (0, ft.useState)(() => i.isEditable()), [f, p] = (0, ft.useState)("#fff");
|
|
58527
58537
|
(0, ft.useEffect)(() => (0, ou.mergeRegister)(i.registerEditableListener((m) => {
|
|
@@ -58543,7 +58553,7 @@ const _5 = (c) => {
|
|
|
58543
58553
|
});
|
|
58544
58554
|
}, [i]);
|
|
58545
58555
|
return ft.createElement(mC, { disabled: !d, color: f, onChange: h, buttonClassName: n || "", buttonIconClassName: e || "", buttonAriaLabel: s || "", buttonLabel: o || "", dropdownClassName: r || "", buttonLabelClassName: a || "", dropdownChevronClassName: l || "" });
|
|
58546
|
-
},
|
|
58556
|
+
}, k5 = T5;
|
|
58547
58557
|
var yC = sl.yy;
|
|
58548
58558
|
sl._U;
|
|
58549
58559
|
sl.a8;
|
|
@@ -58560,7 +58570,7 @@ var Uy = { exports: {} }, fp = { exports: {} }, br = {};
|
|
|
58560
58570
|
* LICENSE file in the root directory of this source tree.
|
|
58561
58571
|
*/
|
|
58562
58572
|
var sx;
|
|
58563
|
-
function
|
|
58573
|
+
function O5() {
|
|
58564
58574
|
if (sx)
|
|
58565
58575
|
return br;
|
|
58566
58576
|
sx = 1;
|
|
@@ -58636,7 +58646,7 @@ var vr = {};
|
|
|
58636
58646
|
* LICENSE file in the root directory of this source tree.
|
|
58637
58647
|
*/
|
|
58638
58648
|
var lx;
|
|
58639
|
-
function
|
|
58649
|
+
function N5() {
|
|
58640
58650
|
return lx || (lx = 1, process.env.NODE_ENV !== "production" && function() {
|
|
58641
58651
|
var c = typeof Symbol == "function" && Symbol.for, t = c ? Symbol.for("react.element") : 60103, n = c ? Symbol.for("react.portal") : 60106, e = c ? Symbol.for("react.fragment") : 60107, s = c ? Symbol.for("react.strict_mode") : 60108, o = c ? Symbol.for("react.profiler") : 60114, r = c ? Symbol.for("react.provider") : 60109, a = c ? Symbol.for("react.context") : 60110, l = c ? Symbol.for("react.async_mode") : 60111, i = c ? Symbol.for("react.concurrent_mode") : 60111, d = c ? Symbol.for("react.forward_ref") : 60112, u = c ? Symbol.for("react.suspense") : 60113, f = c ? Symbol.for("react.suspense_list") : 60120, p = c ? Symbol.for("react.memo") : 60115, h = c ? Symbol.for("react.lazy") : 60116, m = c ? Symbol.for("react.block") : 60121, g = c ? Symbol.for("react.fundamental") : 60117, v = c ? Symbol.for("react.responder") : 60118, b = c ? Symbol.for("react.scope") : 60119;
|
|
58642
58652
|
function _(G) {
|
|
@@ -58720,7 +58730,7 @@ function C5() {
|
|
|
58720
58730
|
}
|
|
58721
58731
|
var cx;
|
|
58722
58732
|
function _C() {
|
|
58723
|
-
return cx || (cx = 1, process.env.NODE_ENV === "production" ? fp.exports =
|
|
58733
|
+
return cx || (cx = 1, process.env.NODE_ENV === "production" ? fp.exports = O5() : fp.exports = N5()), fp.exports;
|
|
58724
58734
|
}
|
|
58725
58735
|
var Lm, ux;
|
|
58726
58736
|
function nb() {
|
|
@@ -58735,7 +58745,7 @@ function xC() {
|
|
|
58735
58745
|
return dx || (dx = 1, Fm = Function.call.bind(Object.prototype.hasOwnProperty)), Fm;
|
|
58736
58746
|
}
|
|
58737
58747
|
var Bm, fx;
|
|
58738
|
-
function
|
|
58748
|
+
function A5() {
|
|
58739
58749
|
if (fx)
|
|
58740
58750
|
return Bm;
|
|
58741
58751
|
fx = 1;
|
|
@@ -58785,11 +58795,11 @@ function T5() {
|
|
|
58785
58795
|
}, Bm = s, Bm;
|
|
58786
58796
|
}
|
|
58787
58797
|
var zm, px;
|
|
58788
|
-
function
|
|
58798
|
+
function j5() {
|
|
58789
58799
|
if (px)
|
|
58790
58800
|
return zm;
|
|
58791
58801
|
px = 1;
|
|
58792
|
-
var c = _C(), t = Sh(), n = nb(), e = xC(), s =
|
|
58802
|
+
var c = _C(), t = Sh(), n = nb(), e = xC(), s = A5(), o = function() {
|
|
58793
58803
|
};
|
|
58794
58804
|
process.env.NODE_ENV !== "production" && (o = function(a) {
|
|
58795
58805
|
var l = "Warning: " + a;
|
|
@@ -59107,7 +59117,7 @@ Valid keys: ` + JSON.stringify(Object.keys($), null, " ")
|
|
|
59107
59117
|
}, zm;
|
|
59108
59118
|
}
|
|
59109
59119
|
var $m, hx;
|
|
59110
|
-
function
|
|
59120
|
+
function I5() {
|
|
59111
59121
|
if (hx)
|
|
59112
59122
|
return $m;
|
|
59113
59123
|
hx = 1;
|
|
@@ -59156,16 +59166,16 @@ function O5() {
|
|
|
59156
59166
|
}, $m;
|
|
59157
59167
|
}
|
|
59158
59168
|
if (process.env.NODE_ENV !== "production") {
|
|
59159
|
-
var
|
|
59160
|
-
Uy.exports =
|
|
59169
|
+
var P5 = _C(), M5 = !0;
|
|
59170
|
+
Uy.exports = j5()(P5.isElement, M5);
|
|
59161
59171
|
} else
|
|
59162
|
-
Uy.exports =
|
|
59163
|
-
var
|
|
59164
|
-
const zr = /* @__PURE__ */ qd(
|
|
59165
|
-
function
|
|
59172
|
+
Uy.exports = I5()();
|
|
59173
|
+
var R5 = Uy.exports;
|
|
59174
|
+
const zr = /* @__PURE__ */ qd(R5);
|
|
59175
|
+
function D5(c) {
|
|
59166
59176
|
return c && typeof c == "object" && "default" in c ? c.default : c;
|
|
59167
59177
|
}
|
|
59168
|
-
var wC = Ii,
|
|
59178
|
+
var wC = Ii, L5 = D5(wC);
|
|
59169
59179
|
function gx(c, t, n) {
|
|
59170
59180
|
return t in c ? Object.defineProperty(c, t, {
|
|
59171
59181
|
value: n,
|
|
@@ -59174,11 +59184,11 @@ function gx(c, t, n) {
|
|
|
59174
59184
|
writable: !0
|
|
59175
59185
|
}) : c[t] = n, c;
|
|
59176
59186
|
}
|
|
59177
|
-
function
|
|
59187
|
+
function F5(c, t) {
|
|
59178
59188
|
c.prototype = Object.create(t.prototype), c.prototype.constructor = c, c.__proto__ = t;
|
|
59179
59189
|
}
|
|
59180
|
-
var
|
|
59181
|
-
function
|
|
59190
|
+
var B5 = !!(typeof window < "u" && window.document && window.document.createElement);
|
|
59191
|
+
function z5(c, t, n) {
|
|
59182
59192
|
if (typeof c != "function")
|
|
59183
59193
|
throw new Error("Expected reducePropsToState to be a function.");
|
|
59184
59194
|
if (typeof t != "function")
|
|
@@ -59198,7 +59208,7 @@ function D5(c, t, n) {
|
|
|
59198
59208
|
})), i.canUseDOM ? t(a) : n && (a = n(a));
|
|
59199
59209
|
}
|
|
59200
59210
|
var i = /* @__PURE__ */ function(d) {
|
|
59201
|
-
|
|
59211
|
+
F5(u, d);
|
|
59202
59212
|
function u() {
|
|
59203
59213
|
return d.apply(this, arguments) || this;
|
|
59204
59214
|
}
|
|
@@ -59219,15 +59229,15 @@ function D5(c, t, n) {
|
|
|
59219
59229
|
var h = r.indexOf(this);
|
|
59220
59230
|
r.splice(h, 1), l();
|
|
59221
59231
|
}, f.render = function() {
|
|
59222
|
-
return
|
|
59232
|
+
return L5.createElement(o, this.props);
|
|
59223
59233
|
}, u;
|
|
59224
59234
|
}(wC.PureComponent);
|
|
59225
|
-
return gx(i, "displayName", "SideEffect(" + e(o) + ")"), gx(i, "canUseDOM",
|
|
59235
|
+
return gx(i, "displayName", "SideEffect(" + e(o) + ")"), gx(i, "canUseDOM", B5), i;
|
|
59226
59236
|
};
|
|
59227
59237
|
}
|
|
59228
|
-
var
|
|
59229
|
-
const
|
|
59230
|
-
var
|
|
59238
|
+
var $5 = z5;
|
|
59239
|
+
const U5 = /* @__PURE__ */ qd($5);
|
|
59240
|
+
var H5 = typeof Element < "u", q5 = typeof Map == "function", W5 = typeof Set == "function", J5 = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
|
|
59231
59241
|
function Pp(c, t) {
|
|
59232
59242
|
if (c === t)
|
|
59233
59243
|
return !0;
|
|
@@ -59244,7 +59254,7 @@ function Pp(c, t) {
|
|
|
59244
59254
|
return !0;
|
|
59245
59255
|
}
|
|
59246
59256
|
var o;
|
|
59247
|
-
if (
|
|
59257
|
+
if (q5 && c instanceof Map && t instanceof Map) {
|
|
59248
59258
|
if (c.size !== t.size)
|
|
59249
59259
|
return !1;
|
|
59250
59260
|
for (o = c.entries(); !(e = o.next()).done; )
|
|
@@ -59255,7 +59265,7 @@ function Pp(c, t) {
|
|
|
59255
59265
|
return !1;
|
|
59256
59266
|
return !0;
|
|
59257
59267
|
}
|
|
59258
|
-
if (
|
|
59268
|
+
if (W5 && c instanceof Set && t instanceof Set) {
|
|
59259
59269
|
if (c.size !== t.size)
|
|
59260
59270
|
return !1;
|
|
59261
59271
|
for (o = c.entries(); !(e = o.next()).done; )
|
|
@@ -59263,7 +59273,7 @@ function Pp(c, t) {
|
|
|
59263
59273
|
return !1;
|
|
59264
59274
|
return !0;
|
|
59265
59275
|
}
|
|
59266
|
-
if (
|
|
59276
|
+
if (J5 && ArrayBuffer.isView(c) && ArrayBuffer.isView(t)) {
|
|
59267
59277
|
if (n = c.length, n != t.length)
|
|
59268
59278
|
return !1;
|
|
59269
59279
|
for (e = n; e-- !== 0; )
|
|
@@ -59282,7 +59292,7 @@ function Pp(c, t) {
|
|
|
59282
59292
|
for (e = n; e-- !== 0; )
|
|
59283
59293
|
if (!Object.prototype.hasOwnProperty.call(t, s[e]))
|
|
59284
59294
|
return !1;
|
|
59285
|
-
if (
|
|
59295
|
+
if (H5 && c instanceof Element)
|
|
59286
59296
|
return !1;
|
|
59287
59297
|
for (e = n; e-- !== 0; )
|
|
59288
59298
|
if (!((s[e] === "_owner" || s[e] === "__v" || s[e] === "__o") && c.$$typeof) && !Pp(c[s[e]], t[s[e]]))
|
|
@@ -59291,7 +59301,7 @@ function Pp(c, t) {
|
|
|
59291
59301
|
}
|
|
59292
59302
|
return c !== c && t !== t;
|
|
59293
59303
|
}
|
|
59294
|
-
var
|
|
59304
|
+
var V5 = function(t, n) {
|
|
59295
59305
|
try {
|
|
59296
59306
|
return Pp(t, n);
|
|
59297
59307
|
} catch (e) {
|
|
@@ -59300,9 +59310,9 @@ var H5 = function(t, n) {
|
|
|
59300
59310
|
throw e;
|
|
59301
59311
|
}
|
|
59302
59312
|
};
|
|
59303
|
-
const
|
|
59304
|
-
var
|
|
59305
|
-
const
|
|
59313
|
+
const K5 = /* @__PURE__ */ qd(V5);
|
|
59314
|
+
var G5 = Sh();
|
|
59315
|
+
const Y5 = /* @__PURE__ */ qd(G5);
|
|
59306
59316
|
var Rl = {
|
|
59307
59317
|
BODY: "bodyAttributes",
|
|
59308
59318
|
HTML: "htmlAttributes",
|
|
@@ -59347,16 +59357,16 @@ var Rl = {
|
|
|
59347
59357
|
ENCODE_SPECIAL_CHARACTERS: "encodeSpecialCharacters",
|
|
59348
59358
|
ON_CHANGE_CLIENT_STATE: "onChangeClientState",
|
|
59349
59359
|
TITLE_TEMPLATE: "titleTemplate"
|
|
59350
|
-
},
|
|
59360
|
+
}, Z5 = Object.keys(hh).reduce(function(c, t) {
|
|
59351
59361
|
return c[hh[t]] = t, c;
|
|
59352
|
-
}, {}),
|
|
59362
|
+
}, {}), Q5 = [Gn.NOSCRIPT, Gn.SCRIPT, Gn.STYLE], la = "data-react-helmet", X5 = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(c) {
|
|
59353
59363
|
return typeof c;
|
|
59354
59364
|
} : function(c) {
|
|
59355
59365
|
return c && typeof Symbol == "function" && c.constructor === Symbol && c !== Symbol.prototype ? "symbol" : typeof c;
|
|
59356
|
-
},
|
|
59366
|
+
}, eM = function(c, t) {
|
|
59357
59367
|
if (!(c instanceof t))
|
|
59358
59368
|
throw new TypeError("Cannot call a class as a function");
|
|
59359
|
-
},
|
|
59369
|
+
}, tM = function() {
|
|
59360
59370
|
function c(t, n) {
|
|
59361
59371
|
for (var e = 0; e < n.length; e++) {
|
|
59362
59372
|
var s = n[e];
|
|
@@ -59373,7 +59383,7 @@ var Rl = {
|
|
|
59373
59383
|
Object.prototype.hasOwnProperty.call(n, e) && (c[e] = n[e]);
|
|
59374
59384
|
}
|
|
59375
59385
|
return c;
|
|
59376
|
-
},
|
|
59386
|
+
}, nM = function(c, t) {
|
|
59377
59387
|
if (typeof t != "function" && t !== null)
|
|
59378
59388
|
throw new TypeError("Super expression must either be null or a function, not " + typeof t);
|
|
59379
59389
|
c.prototype = Object.create(t && t.prototype, {
|
|
@@ -59389,14 +59399,14 @@ var Rl = {
|
|
|
59389
59399
|
for (var e in c)
|
|
59390
59400
|
t.indexOf(e) >= 0 || Object.prototype.hasOwnProperty.call(c, e) && (n[e] = c[e]);
|
|
59391
59401
|
return n;
|
|
59392
|
-
},
|
|
59402
|
+
}, rM = function(c, t) {
|
|
59393
59403
|
if (!c)
|
|
59394
59404
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
59395
59405
|
return t && (typeof t == "object" || typeof t == "function") ? t : c;
|
|
59396
59406
|
}, Hy = function(t) {
|
|
59397
59407
|
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
|
|
59398
59408
|
return n === !1 ? String(t) : String(t).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
59399
|
-
},
|
|
59409
|
+
}, oM = function(t) {
|
|
59400
59410
|
var n = Qc(t, Gn.TITLE), e = Qc(t, Rd.TITLE_TEMPLATE);
|
|
59401
59411
|
if (e && n)
|
|
59402
59412
|
return e.replace(/%s/g, function() {
|
|
@@ -59404,7 +59414,7 @@ var Rl = {
|
|
|
59404
59414
|
});
|
|
59405
59415
|
var s = Qc(t, Rd.DEFAULT_TITLE);
|
|
59406
59416
|
return n || s || void 0;
|
|
59407
|
-
},
|
|
59417
|
+
}, iM = function(t) {
|
|
59408
59418
|
return Qc(t, Rd.ON_CHANGE_CLIENT_STATE) || function() {
|
|
59409
59419
|
};
|
|
59410
59420
|
}, Um = function(t, n) {
|
|
@@ -59415,7 +59425,7 @@ var Rl = {
|
|
|
59415
59425
|
}).reduce(function(e, s) {
|
|
59416
59426
|
return hi({}, e, s);
|
|
59417
59427
|
}, {});
|
|
59418
|
-
},
|
|
59428
|
+
}, aM = function(t, n) {
|
|
59419
59429
|
return n.filter(function(e) {
|
|
59420
59430
|
return typeof e[Gn.BASE] < "u";
|
|
59421
59431
|
}).map(function(e) {
|
|
@@ -59432,7 +59442,7 @@ var Rl = {
|
|
|
59432
59442
|
}, ad = function(t, n, e) {
|
|
59433
59443
|
var s = {};
|
|
59434
59444
|
return e.filter(function(o) {
|
|
59435
|
-
return Array.isArray(o[t]) ? !0 : (typeof o[t] < "u" && Wy("Helmet: " + t + ' should be of type "Array". Instead found type "' +
|
|
59445
|
+
return Array.isArray(o[t]) ? !0 : (typeof o[t] < "u" && Wy("Helmet: " + t + ' should be of type "Array". Instead found type "' + X5(o[t]) + '"'), !1);
|
|
59436
59446
|
}).map(function(o) {
|
|
59437
59447
|
return o[t];
|
|
59438
59448
|
}).reverse().reduce(function(o, r) {
|
|
@@ -59450,7 +59460,7 @@ var Rl = {
|
|
|
59450
59460
|
return o.push(f);
|
|
59451
59461
|
});
|
|
59452
59462
|
for (var l = Object.keys(a), i = 0; i < l.length; i++) {
|
|
59453
|
-
var d = l[i], u =
|
|
59463
|
+
var d = l[i], u = Y5({}, s[d], a[d]);
|
|
59454
59464
|
s[d] = u;
|
|
59455
59465
|
}
|
|
59456
59466
|
return o;
|
|
@@ -59462,9 +59472,9 @@ var Rl = {
|
|
|
59462
59472
|
return s[n];
|
|
59463
59473
|
}
|
|
59464
59474
|
return null;
|
|
59465
|
-
},
|
|
59475
|
+
}, sM = function(t) {
|
|
59466
59476
|
return {
|
|
59467
|
-
baseTag:
|
|
59477
|
+
baseTag: aM([$r.HREF, $r.TARGET], t),
|
|
59468
59478
|
bodyAttributes: Um(Rl.BODY, t),
|
|
59469
59479
|
defer: Qc(t, Rd.DEFER),
|
|
59470
59480
|
encode: Qc(t, Rd.ENCODE_SPECIAL_CHARACTERS),
|
|
@@ -59472,10 +59482,10 @@ var Rl = {
|
|
|
59472
59482
|
linkTags: ad(Gn.LINK, [$r.REL, $r.HREF], t),
|
|
59473
59483
|
metaTags: ad(Gn.META, [$r.NAME, $r.CHARSET, $r.HTTPEQUIV, $r.PROPERTY, $r.ITEM_PROP], t),
|
|
59474
59484
|
noscriptTags: ad(Gn.NOSCRIPT, [$r.INNER_HTML], t),
|
|
59475
|
-
onChangeClientState:
|
|
59485
|
+
onChangeClientState: iM(t),
|
|
59476
59486
|
scriptTags: ad(Gn.SCRIPT, [$r.SRC, $r.INNER_HTML], t),
|
|
59477
59487
|
styleTags: ad(Gn.STYLE, [$r.CSS_TEXT], t),
|
|
59478
|
-
title:
|
|
59488
|
+
title: oM(t),
|
|
59479
59489
|
titleAttributes: Um(Rl.TITLE, t)
|
|
59480
59490
|
};
|
|
59481
59491
|
}, qy = function() {
|
|
@@ -59488,17 +59498,17 @@ var Rl = {
|
|
|
59488
59498
|
};
|
|
59489
59499
|
}(), bx = function(t) {
|
|
59490
59500
|
return clearTimeout(t);
|
|
59491
|
-
},
|
|
59501
|
+
}, lM = typeof window < "u" ? window.requestAnimationFrame && window.requestAnimationFrame.bind(window) || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || qy : global.requestAnimationFrame || qy, cM = typeof window < "u" ? window.cancelAnimationFrame || window.webkitCancelAnimationFrame || window.mozCancelAnimationFrame || bx : global.cancelAnimationFrame || bx, Wy = function(t) {
|
|
59492
59502
|
return console && typeof console.warn == "function" && console.warn(t);
|
|
59493
|
-
}, sd = null,
|
|
59494
|
-
sd &&
|
|
59503
|
+
}, sd = null, uM = function(t) {
|
|
59504
|
+
sd && cM(sd), t.defer ? sd = lM(function() {
|
|
59495
59505
|
vx(t, function() {
|
|
59496
59506
|
sd = null;
|
|
59497
59507
|
});
|
|
59498
59508
|
}) : (vx(t), sd = null);
|
|
59499
59509
|
}, vx = function(t, n) {
|
|
59500
59510
|
var e = t.baseTag, s = t.bodyAttributes, o = t.htmlAttributes, r = t.linkTags, a = t.metaTags, l = t.noscriptTags, i = t.onChangeClientState, d = t.scriptTags, u = t.styleTags, f = t.title, p = t.titleAttributes;
|
|
59501
|
-
Jy(Gn.BODY, s), Jy(Gn.HTML, o),
|
|
59511
|
+
Jy(Gn.BODY, s), Jy(Gn.HTML, o), dM(f, p);
|
|
59502
59512
|
var h = {
|
|
59503
59513
|
baseTag: kc(Gn.BASE, e),
|
|
59504
59514
|
linkTags: kc(Gn.LINK, r),
|
|
@@ -59513,7 +59523,7 @@ var Rl = {
|
|
|
59513
59523
|
}), n && n(), i(t, m, g);
|
|
59514
59524
|
}, SC = function(t) {
|
|
59515
59525
|
return Array.isArray(t) ? t.join("") : t;
|
|
59516
|
-
},
|
|
59526
|
+
}, dM = function(t, n) {
|
|
59517
59527
|
typeof t < "u" && document.title !== t && (document.title = SC(t)), Jy(Gn.TITLE, n);
|
|
59518
59528
|
}, Jy = function(t, n) {
|
|
59519
59529
|
var e = document.getElementsByTagName(t)[0];
|
|
@@ -59558,17 +59568,17 @@ var Rl = {
|
|
|
59558
59568
|
var s = typeof t[e] < "u" ? e + '="' + t[e] + '"' : "" + e;
|
|
59559
59569
|
return n ? n + " " + s : s;
|
|
59560
59570
|
}, "");
|
|
59561
|
-
},
|
|
59571
|
+
}, fM = function(t, n, e, s) {
|
|
59562
59572
|
var o = EC(e), r = SC(n);
|
|
59563
59573
|
return o ? "<" + t + " " + la + '="true" ' + o + ">" + Hy(r, s) + "</" + t + ">" : "<" + t + " " + la + '="true">' + Hy(r, s) + "</" + t + ">";
|
|
59564
|
-
},
|
|
59574
|
+
}, pM = function(t, n, e) {
|
|
59565
59575
|
return n.reduce(function(s, o) {
|
|
59566
59576
|
var r = Object.keys(o).filter(function(i) {
|
|
59567
59577
|
return !(i === $r.INNER_HTML || i === $r.CSS_TEXT);
|
|
59568
59578
|
}).reduce(function(i, d) {
|
|
59569
59579
|
var u = typeof o[d] > "u" ? d : d + '="' + Hy(o[d], e) + '"';
|
|
59570
59580
|
return i ? i + " " + u : u;
|
|
59571
|
-
}, ""), a = o.innerHTML || o.cssText || "", l =
|
|
59581
|
+
}, ""), a = o.innerHTML || o.cssText || "", l = Q5.indexOf(t) === -1;
|
|
59572
59582
|
return s + "<" + t + " " + la + '="true" ' + r + (l ? "/>" : ">" + a + "</" + t + ">");
|
|
59573
59583
|
}, "");
|
|
59574
59584
|
}, CC = function(t) {
|
|
@@ -59576,17 +59586,17 @@ var Rl = {
|
|
|
59576
59586
|
return Object.keys(t).reduce(function(e, s) {
|
|
59577
59587
|
return e[hh[s] || s] = t[s], e;
|
|
59578
59588
|
}, n);
|
|
59579
|
-
},
|
|
59589
|
+
}, hM = function(t) {
|
|
59580
59590
|
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
59581
59591
|
return Object.keys(t).reduce(function(e, s) {
|
|
59582
|
-
return e[
|
|
59592
|
+
return e[Z5[s] || s] = t[s], e;
|
|
59583
59593
|
}, n);
|
|
59584
|
-
},
|
|
59594
|
+
}, gM = function(t, n, e) {
|
|
59585
59595
|
var s, o = (s = {
|
|
59586
59596
|
key: n
|
|
59587
59597
|
}, s[la] = !0, s), r = CC(e, o);
|
|
59588
59598
|
return [Ii.createElement(Gn.TITLE, r, n)];
|
|
59589
|
-
},
|
|
59599
|
+
}, mM = function(t, n) {
|
|
59590
59600
|
return n.map(function(e, s) {
|
|
59591
59601
|
var o, r = (o = {
|
|
59592
59602
|
key: s
|
|
@@ -59605,10 +59615,10 @@ var Rl = {
|
|
|
59605
59615
|
case Gn.TITLE:
|
|
59606
59616
|
return {
|
|
59607
59617
|
toComponent: function() {
|
|
59608
|
-
return
|
|
59618
|
+
return gM(t, n.title, n.titleAttributes);
|
|
59609
59619
|
},
|
|
59610
59620
|
toString: function() {
|
|
59611
|
-
return
|
|
59621
|
+
return fM(t, n.title, n.titleAttributes, e);
|
|
59612
59622
|
}
|
|
59613
59623
|
};
|
|
59614
59624
|
case Rl.BODY:
|
|
@@ -59624,10 +59634,10 @@ var Rl = {
|
|
|
59624
59634
|
default:
|
|
59625
59635
|
return {
|
|
59626
59636
|
toComponent: function() {
|
|
59627
|
-
return
|
|
59637
|
+
return mM(t, n);
|
|
59628
59638
|
},
|
|
59629
59639
|
toString: function() {
|
|
59630
|
-
return
|
|
59640
|
+
return pM(t, n, e);
|
|
59631
59641
|
}
|
|
59632
59642
|
};
|
|
59633
59643
|
}
|
|
@@ -59644,15 +59654,15 @@ var Rl = {
|
|
|
59644
59654
|
style: Ka(Gn.STYLE, d, s),
|
|
59645
59655
|
title: Ka(Gn.TITLE, { title: f, titleAttributes: p }, s)
|
|
59646
59656
|
};
|
|
59647
|
-
},
|
|
59657
|
+
}, yM = function(t) {
|
|
59648
59658
|
var n, e;
|
|
59649
59659
|
return e = n = function(s) {
|
|
59650
|
-
|
|
59660
|
+
nM(o, s);
|
|
59651
59661
|
function o() {
|
|
59652
|
-
return
|
|
59662
|
+
return eM(this, o), rM(this, s.apply(this, arguments));
|
|
59653
59663
|
}
|
|
59654
59664
|
return o.prototype.shouldComponentUpdate = function(a) {
|
|
59655
|
-
return !
|
|
59665
|
+
return !K5(this.props, a);
|
|
59656
59666
|
}, o.prototype.mapNestedChildrenToProps = function(a, l) {
|
|
59657
59667
|
if (!l)
|
|
59658
59668
|
return null;
|
|
@@ -59708,7 +59718,7 @@ var Rl = {
|
|
|
59708
59718
|
var i = this, d = {};
|
|
59709
59719
|
return Ii.Children.forEach(a, function(u) {
|
|
59710
59720
|
if (!(!u || !u.props)) {
|
|
59711
|
-
var f = u.props, p = f.children, h = yx(f, ["children"]), m =
|
|
59721
|
+
var f = u.props, p = f.children, h = yx(f, ["children"]), m = hM(h);
|
|
59712
59722
|
switch (i.warnOnInvalidChildren(u, p), u.type) {
|
|
59713
59723
|
case Gn.LINK:
|
|
59714
59724
|
case Gn.META:
|
|
@@ -59736,7 +59746,7 @@ var Rl = {
|
|
|
59736
59746
|
}, o.prototype.render = function() {
|
|
59737
59747
|
var a = this.props, l = a.children, i = yx(a, ["children"]), d = hi({}, i);
|
|
59738
59748
|
return l && (d = this.mapChildrenToProps(l, d)), Ii.createElement(t, d);
|
|
59739
|
-
},
|
|
59749
|
+
}, tM(o, null, [{
|
|
59740
59750
|
key: "canUseDOM",
|
|
59741
59751
|
// Component.peek comes from react-side-effect:
|
|
59742
59752
|
// For testing, you may use a static peek() method available on the returned component.
|
|
@@ -59799,9 +59809,9 @@ var Rl = {
|
|
|
59799
59809
|
titleAttributes: {}
|
|
59800
59810
|
})), s;
|
|
59801
59811
|
}, e;
|
|
59802
|
-
},
|
|
59812
|
+
}, bM = function() {
|
|
59803
59813
|
return null;
|
|
59804
|
-
},
|
|
59814
|
+
}, vM = U5(sM, uM, TC)(bM), Vy = yM(vM);
|
|
59805
59815
|
Vy.renderStatic = Vy.rewind;
|
|
59806
59816
|
const kC = ({ styleConfig: c }) => {
|
|
59807
59817
|
const { heading: t } = c;
|
|
@@ -59883,7 +59893,7 @@ const kC = ({ styleConfig: c }) => {
|
|
|
59883
59893
|
padding-bottom: 2px;
|
|
59884
59894
|
}
|
|
59885
59895
|
` }) });
|
|
59886
|
-
}, OC = Ao(),
|
|
59896
|
+
}, OC = Ao(), _M = (c) => {
|
|
59887
59897
|
let t = 5381;
|
|
59888
59898
|
const n = c.trim().replace(/\s+/g, " ");
|
|
59889
59899
|
for (let e = 0; e < n.length; e++)
|
|
@@ -59908,7 +59918,7 @@ const kC = ({ styleConfig: c }) => {
|
|
|
59908
59918
|
if (F) {
|
|
59909
59919
|
let B = ((O = F.getAttribute("data-ref-id")) == null ? void 0 : O.replace("ref-", "")) || F.getAttribute("id");
|
|
59910
59920
|
if (!B && x)
|
|
59911
|
-
B =
|
|
59921
|
+
B = _M(E), F.setAttribute("data-ref-id", `ref-${B}`), F.setAttribute("id", B);
|
|
59912
59922
|
else if (!B && y && !(F.getAttribute("id") || F.getAttribute("data-ref-id"))) {
|
|
59913
59923
|
const L = F.querySelector("span[id]");
|
|
59914
59924
|
B = (L == null ? void 0 : L.getAttribute("id")) || null;
|
|
@@ -60128,8 +60138,8 @@ const jC = () => {
|
|
|
60128
60138
|
n();
|
|
60129
60139
|
};
|
|
60130
60140
|
}, [c]), null;
|
|
60131
|
-
},
|
|
60132
|
-
const
|
|
60141
|
+
}, xM = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzODQgNTEyIj48IS0tIUZvbnQgQXdlc29tZSBGcmVlIDYuNy4yIGJ5IEBmb250YXdlc29tZSAtIGh0dHBzOi8vZm9udGF3ZXNvbWUuY29tIExpY2Vuc2UgLSBodHRwczovL2ZvbnRhd2Vzb21lLmNvbS9saWNlbnNlL2ZyZWUgQ29weXJpZ2h0IDIwMjUgRm9udGljb25zLCBJbmMuLS0+PHBhdGggZmlsbD0iI2ZmZmZmZiIgZD0iTTIxNC42IDQxLjRjLTEyLjUtMTIuNS0zMi44LTEyLjUtNDUuMyAwbC0xNjAgMTYwYy0xMi41IDEyLjUtMTIuNSAzMi44IDAgNDUuM3MzMi44IDEyLjUgNDUuMyAwTDE2MCAxNDEuMiAxNjAgNDQ4YzAgMTcuNyAxNC4zIDMyIDMyIDMyczMyLTE0LjMgMzItMzJsMC0zMDYuN0wzMjkuNCAyNDYuNmMxMi41IDEyLjUgMzIuOCAxMi41IDQ1LjMgMHMxMi41LTMyLjggMC00NS4zbC0xNjAtMTYweiIvPjwvc3ZnPg==", wM = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzODQgNTEyIj48IS0tIUZvbnQgQXdlc29tZSBGcmVlIDYuNy4yIGJ5IEBmb250YXdlc29tZSAtIGh0dHBzOi8vZm9udGF3ZXNvbWUuY29tIExpY2Vuc2UgLSBodHRwczovL2ZvbnRhd2Vzb21lLmNvbS9saWNlbnNlL2ZyZWUgQ29weXJpZ2h0IDIwMjUgRm9udGljb25zLCBJbmMuLS0+PHBhdGggZmlsbD0iI2ZmZmZmZiIgZD0iTTE2OS40IDQ3MC42YzEyLjUgMTIuNSAzMi44IDEyLjUgNDUuMyAwbDE2MC0xNjBjMTIuNS0xMi41IDEyLjUtMzIuOCAwLTQ1LjNzLTMyLjgtMTIuNS00NS4zIDBMMjI0IDM3MC44IDIyNCA2NGMwLTE3LjctMTQuMy0zMi0zMi0zMnMtMzIgMTQuMy0zMiAzMmwwIDMwNi43TDU0LjYgMjY1LjRjLTEyLjUtMTIuNS0zMi44LTEyLjUtNDUuMyAwcy0xMi41IDMyLjggMCA0NS4zbDE2MCAxNjB6Ii8+PC9zdmc+", SM = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzODQgNTEyIj48IS0tIUZvbnQgQXdlc29tZSBGcmVlIDYuNy4yIGJ5IEBmb250YXdlc29tZSAtIGh0dHBzOi8vZm9udGF3ZXNvbWUuY29tIExpY2Vuc2UgLSBodHRwczovL2ZvbnRhd2Vzb21lLmNvbS9saWNlbnNlL2ZyZWUgQ29weXJpZ2h0IDIwMjUgRm9udGljb25zLCBJbmMuLS0+PHBhdGggZmlsbD0iI2ZmZmZmZiIgZD0iTTM0Mi42IDE1MC42YzEyLjUtMTIuNSAxMi41LTMyLjggMC00NS4zcy0zMi44LTEyLjUtNDUuMyAwTDE5MiAyMTAuNyA4Ni42IDEwNS40Yy0xMi41LTEyLjUtMzIuOC0xMi41LTQ1LjMgMHMtMTIuNSAzMi44IDAgNDUuM0wxNDYuNyAyNTYgNDEuNCAzNjEuNGMtMTIuNSAxMi41LTEyLjUgMzIuOCAwIDQ1LjNzMzIuOCAxMi41IDQ1LjMgMEwxOTIgMzAxLjMgMjk3LjQgNDA2LjZjMTIuNSAxMi41IDMyLjggMTIuNSA0NS4zIDBzMTIuNS0zMi44IDAtNDUuM0wyMzcuMyAyNTYgMzQyLjYgMTUwLjZ6Ii8+PC9zdmc+", EM = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMjAgNTEyIj48IS0tIUZvbnQgQXdlc29tZSBGcmVlIDYuNy4yIGJ5IEBmb250YXdlc29tZSAtIGh0dHBzOi8vZm9udGF3ZXNvbWUuY29tIExpY2Vuc2UgLSBodHRwczovL2ZvbnRhd2Vzb21lLmNvbS9saWNlbnNlL2ZyZWUgQ29weXJpZ2h0IDIwMjUgRm9udGljb25zLCBJbmMuLS0+PHBhdGggZmlsbD0iI2ZmZmZmZiIgZD0iTTMxMC42IDIzMy40YzEyLjUgMTIuNSAxMi41IDMyLjggMCA0NS4zbC0xOTIgMTkyYy0xMi41IDEyLjUtMzIuOCAxMi41LTQ1LjMgMHMtMTIuNS0zMi44IDAtNDUuM0wyNDIuNyAyNTYgNzMuNCA4Ni42Yy0xMi41LTEyLjUtMTIuNS0zMi44IDAtNDUuM3MzMi44LTEyLjUgNDUuMyAwbDE5MiAxOTJ6Ii8+PC9zdmc+", CM = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MTIgNTEyIj48IS0tIUZvbnQgQXdlc29tZSBGcmVlIDYuNy4yIGJ5IEBmb250YXdlc29tZSAtIGh0dHBzOi8vZm9udGF3ZXNvbWUuY29tIExpY2Vuc2UgLSBodHRwczovL2ZvbnRhd2Vzb21lLmNvbS9saWNlbnNlL2ZyZWUgQ29weXJpZ2h0IDIwMjUgRm9udGljb25zLCBJbmMuLS0+PHBhdGggZmlsbD0iI2ZmZmZmZiIgZD0iTTIzMy40IDQwNi42YzEyLjUgMTIuNSAzMi44IDEyLjUgNDUuMyAwbDE5Mi0xOTJjMTIuNS0xMi41IDEyLjUtMzIuOCAwLTQ1LjNzLTMyLjgtMTIuNS00NS4zIDBMMjU2IDMzOC43IDg2LjYgMTY5LjRjLTEyLjUtMTIuNS0zMi44LTEyLjUtNDUuMyAwcy0xMi41IDMyLjggMCA0NS4zbDE5MiAxOTJ6Ii8+PC9zdmc+", TM = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48IS0tIFVwbG9hZGVkIHRvOiBTVkcgUmVwbywgd3d3LnN2Z3JlcG8uY29tLCBHZW5lcmF0b3I6IFNWRyBSZXBvIE1peGVyIFRvb2xzIC0tPgo8c3ZnIHdpZHRoPSI4MDBweCIgaGVpZ2h0PSI4MDBweCIgdmlld0JveD0iMCAwIDE2IDE2IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9IiNmZmYiPjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMy4yMjEgMy43MzlsMi4yNjEgMi4yNjlMNy43IDMuNzg0bC0uNy0uNy0xLjAxMiAxLjAwNy0uMDA4LTEuNmEuNTIzLjUyMyAwIDAgMSAuNS0uNTI2SDhWMUg2LjQ4QTEuNDgyIDEuNDgyIDAgMCAwIDUgMi40ODlWNC4xTDMuOTI3IDMuMDMzbC0uNzA2LjcwNnptNi42NyAxLjc5NGguMDFjLjE4My4zMTEuNDUxLjQ2Ny44MDYuNDY3LjM5MyAwIC43MDYtLjE2OC45NC0uNTAzLjIzNi0uMzM1LjM1My0uNzguMzUzLTEuMzMzIDAtLjUxMS0uMS0uOTEzLS4zMDEtMS4yMDctLjIwMS0uMjk1LS40ODgtLjQ0Mi0uODYtLjQ0Mi0uNDA1IDAtLjcxOC4xOTQtLjkzOC41ODFoLS4wMVYxSDl2NC45MTloLjg5di0uMzg2em0tLjAxNS0xLjA2MXYtLjM0YzAtLjI0OC4wNTgtLjQ0OC4xNzUtLjYwMWEuNTQuNTQgMCAwIDEgLjQ0NS0uMjMuNDkuNDkgMCAwIDEgLjQzNi4yMzNjLjEwNC4xNTQuMTU1LjM2OC4xNTUuNjQzIDAgLjMzLS4wNTYuNTg3LS4xNjkuNzY4YS41MjQuNTI0IDAgMCAxLS40Ny4yNy40OTUuNDk1IDAgMCAxLS40MTEtLjIxMS44NTMuODUzIDAgMCAxLS4xNi0uNTMyek05IDEyLjc2OWMtLjI1Ni4xNTQtLjYyNS4yMzEtMS4xMDguMjMxLS41NjMgMC0xLjAyLS4xNzgtMS4zNjktLjUzMy0uMzQ5LS4zNTUtLjUyMy0uODEzLS41MjMtMS4zNzQgMC0uNjQ4LjE4Ni0xLjE1OC41Ni0xLjUzLjM3NC0uMzc2Ljg3NS0uNTYzIDEuNS0uNTYzLjQzMyAwIC43NDYuMDYuOTQuMTc5di45OThhMS4yNiAxLjI2IDAgMCAwLS43OTItLjI3NmMtLjMyNSAwLS41ODMuMS0uNzc0LjI5OC0uMTkuMTk2LS4yODMuNDY4LS4yODMuODE2IDAgLjMzOC4wOS42MDMuMjcyLjc5Ny4xODIuMTkxLjQzMS4yODcuNzQ5LjI4Ny4yODIgMCAuNTU4LS4wOTIuODI4LS4yNzZ2Ljk0NnpNNCA3TDMgOHY2bDEgMWg3bDEtMVY4bC0xLTFINHptMCAxaDd2Nkg0Vjh6Ii8+PC9zdmc+", kM = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48IS0tIFVwbG9hZGVkIHRvOiBTVkcgUmVwbywgd3d3LnN2Z3JlcG8uY29tLCBHZW5lcmF0b3I6IFNWRyBSZXBvIE1peGVyIFRvb2xzIC0tPgo8c3ZnIHdpZHRoPSI4MDBweCIgaGVpZ2h0PSI4MDBweCIgdmlld0JveD0iMCAwIDE2IDE2IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9IiNmZmYiPjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMTEuNiAyLjY3N2MuMTQ3LS4zMS4zNTYtLjQ2NS42MjYtLjQ2NS4yNDggMCAuNDQuMTE4LjU3My4zNTMuMTM0LjIzNi4yMDEuNTU3LjIwMS45NjYgMCAuNDQzLS4wNzguNzk4LS4yMzUgMS4wNjctLjE1Ni4yNjgtLjM2NS40MDItLjYyNy40MDItLjIzNyAwLS40MTYtLjEyNS0uNTM3LS4zNzRoLS4wMDh2LjMxSDExVjFoLjU5M3YxLjY3N2guMDA4em0tLjAxNiAxLjFhLjc4Ljc4IDAgMCAwIC4xMDcuNDI2Yy4wNzEuMTEzLjE2My4xNjkuMjc0LjE2OS4xMzYgMCAuMjQtLjA3Mi4zMTQtLjIxNi4wNzUtLjE0NS4xMTMtLjM1LjExMy0uNjE1IDAtLjIyLS4wMzUtLjM5LS4xMDQtLjUxNC0uMDY3LS4xMjQtLjE2NC0uMTg3LS4yOS0uMTg3LS4xMiAwLS4yMTkuMDYyLS4yOTcuMTg1YS44ODYuODg2IDAgMCAwLS4xMTcuNDh2LjI3MnpNNC4xMiA3LjY5NUwyIDUuNTY4bC42NjItLjY2MiAxLjAwNiAxdi0xLjUxQTEuMzkgMS4zOSAwIDAgMSA1LjA1NSAzSDcuNHYuOTA1SDUuMDU1YS40OS40OSAwIDAgMC0uNDY4LjQ5M2wuMDA3IDEuNS45NDktLjk0NC42NTYuNjU2LTIuMDggMi4wODV6TTkuMzU2IDQuOTNIMTBWMy4yMkMxMCAyLjQwOCA5LjY4NSAyIDkuMDU2IDJjLS4xMzUgMC0uMjg1LjAyNC0uNDUuMDczYTEuNDQ0IDEuNDQ0IDAgMCAwLS4zODguMTY3di42NjVjLjIzNy0uMjAzLjQ4Ny0uMzA0Ljc1LS4zMDQuMjYxIDAgLjM5Mi4xNTYuMzkyLjQ2OWwtLjYuMTAzYy0uNTA2LjA4Ni0uNzYuNDA2LS43Ni45NjEgMCAuMjYzLjA2MS40NzMuMTgzLjYzMUEuNjEuNjEgMCAwIDAgOC42OSA1Yy4yOSAwIC41MDktLjE2LjY1Ny0uNDhoLjAwOXYuNDF6bS4wMDQtMS4zNTV2LjE5M2EuNzUuNzUgMCAwIDEtLjEyLjQzNi4zNjguMzY4IDAgMCAxLS4zMTMuMTcuMjc2LjI3NiAwIDAgMS0uMjItLjA5NS4zOC4zOCAwIDAgMS0uMDgtLjI0OGMwLS4yMjIuMTEtLjM1MS4zMzItLjM4OWwuNC0uMDY3ek03IDEyLjkzaC0uNjQ0di0uNDFoLS4wMDljLS4xNDguMzItLjM2Ny40OC0uNjU3LjQ4YS42MS42MSAwIDAgMS0uNTA3LS4yMzVjLS4xMjItLjE1OC0uMTgzLS4zNjgtLjE4My0uNjMgMC0uNTU2LjI1NC0uODc2Ljc2LS45NjJsLjYtLjEwM2MwLS4zMTMtLjEzLS40Ny0uMzkyLS40Ny0uMjYzIDAtLjUxMy4xMDItLjc1LjMwNXYtLjY2NWMuMDk1LS4wNjMuMjI0LS4xMTkuMzg4LS4xNjcuMTY1LS4wNDkuMzE1LS4wNzMuNDUtLjA3My42MyAwIC45NDQuNDA3Ljk0NCAxLjIydjEuNzF6bS0uNjQtMS4xNjJ2LS4xOTNsLS40LjA2OGMtLjIyMi4wMzctLjMzMy4xNjYtLjMzMy4zODggMCAuMS4wMjcuMTgzLjA4LjI0OGEuMjc2LjI3NiAwIDAgMCAuMjIuMDk1LjM2OC4zNjggMCAwIDAgLjMxMi0uMTdjLjA4LS4xMTYuMTItLjI2LjEyLS40MzZ6TTkuMjYyIDEzYy4zMjEgMCAuNTY4LS4wNTguNzM4LS4xNzN2LS43MWEuOS45IDAgMCAxLS41NTIuMjA3LjYxOS42MTkgMCAwIDEtLjUtLjIxNWMtLjEyLS4xNDUtLjE4MS0uMzQ1LS4xODEtLjU5OCAwLS4yNi4wNjMtLjQ2NC4xODktLjYxMmEuNjQ0LjY0NCAwIDAgMSAuNTE2LS4yMjNjLjE5NCAwIC4zNy4wNjkuNTI4LjIwN3YtLjc0OWMtLjEyOS0uMDktLjMzOC0uMTM0LS42MjYtLjEzNC0uNDE3IDAtLjc1MS4xNC0xLjAwMS40MjItLjI0OS4yOC0uMzczLjY2Mi0uMzczIDEuMTQ4IDAgLjQyLjExNi43NjQuMzQ5IDEuMDMuMjMyLjI2Ny41MzcuNC45MTMuNHpNMiA5bDEtMWg5bDEgMXY1bC0xIDFIM2wtMS0xVjl6bTEgMHY1aDlWOUgzem0zLTJsMS0xaDdsMSAxdjVsLTEgMVY3SDZ6Ii8+PC9zdmc+";
|
|
60142
|
+
const OM = ({
|
|
60133
60143
|
handleClose: c,
|
|
60134
60144
|
searchText: t,
|
|
60135
60145
|
setSearchText: n,
|
|
@@ -60153,7 +60163,7 @@ const EM = ({
|
|
|
60153
60163
|
className: `search-and-replace-${p ? "chevronDownIcon" : "chevronRightIcon"}`,
|
|
60154
60164
|
width: 20,
|
|
60155
60165
|
height: 20,
|
|
60156
|
-
src: p ?
|
|
60166
|
+
src: p ? CM : EM,
|
|
60157
60167
|
alt: "",
|
|
60158
60168
|
onClick: () => h(!p)
|
|
60159
60169
|
}
|
|
@@ -60186,7 +60196,7 @@ const EM = ({
|
|
|
60186
60196
|
"img",
|
|
60187
60197
|
{
|
|
60188
60198
|
className: "search-and-replace-upArrowIcon upArrowIcon",
|
|
60189
|
-
src:
|
|
60199
|
+
src: xM,
|
|
60190
60200
|
alt: ""
|
|
60191
60201
|
}
|
|
60192
60202
|
)
|
|
@@ -60201,7 +60211,7 @@ const EM = ({
|
|
|
60201
60211
|
"img",
|
|
60202
60212
|
{
|
|
60203
60213
|
className: "search-and-replace-downArrowIcon downArrowIcon",
|
|
60204
|
-
src:
|
|
60214
|
+
src: wM,
|
|
60205
60215
|
alt: ""
|
|
60206
60216
|
}
|
|
60207
60217
|
)
|
|
@@ -60216,7 +60226,7 @@ const EM = ({
|
|
|
60216
60226
|
"img",
|
|
60217
60227
|
{
|
|
60218
60228
|
className: "search-and-replace-downArrowIcon downArrowIcon downArrowIcon",
|
|
60219
|
-
src:
|
|
60229
|
+
src: SM,
|
|
60220
60230
|
alt: ""
|
|
60221
60231
|
}
|
|
60222
60232
|
)
|
|
@@ -60243,7 +60253,7 @@ const EM = ({
|
|
|
60243
60253
|
{
|
|
60244
60254
|
className: "search-and-replace-control-btn control-btn",
|
|
60245
60255
|
onClick: r,
|
|
60246
|
-
children: /* @__PURE__ */ ge.jsx("img", { width: 25, height: 22, src:
|
|
60256
|
+
children: /* @__PURE__ */ ge.jsx("img", { width: 25, height: 22, src: TM, alt: "" })
|
|
60247
60257
|
}
|
|
60248
60258
|
),
|
|
60249
60259
|
/* @__PURE__ */ ge.jsx(
|
|
@@ -60251,13 +60261,13 @@ const EM = ({
|
|
|
60251
60261
|
{
|
|
60252
60262
|
className: "search-and-replace-control-btn control-btn",
|
|
60253
60263
|
onClick: o,
|
|
60254
|
-
children: /* @__PURE__ */ ge.jsx("img", { width: 25, height: 22, src:
|
|
60264
|
+
children: /* @__PURE__ */ ge.jsx("img", { width: 25, height: 22, src: kM, alt: "" })
|
|
60255
60265
|
}
|
|
60256
60266
|
)
|
|
60257
60267
|
] })
|
|
60258
60268
|
] }) })
|
|
60259
60269
|
] }) });
|
|
60260
|
-
function
|
|
60270
|
+
function NM({
|
|
60261
60271
|
editor: c,
|
|
60262
60272
|
matches: t,
|
|
60263
60273
|
currentMatchIndex: n
|
|
@@ -60449,7 +60459,7 @@ function IC() {
|
|
|
60449
60459
|
}
|
|
60450
60460
|
}, [c, t, g]), /* @__PURE__ */ ge.jsxs(ge.Fragment, { children: [
|
|
60451
60461
|
t && /* @__PURE__ */ ge.jsx(
|
|
60452
|
-
|
|
60462
|
+
OM,
|
|
60453
60463
|
{
|
|
60454
60464
|
handleReplace: E,
|
|
60455
60465
|
handleClose: v,
|
|
@@ -60469,7 +60479,7 @@ function IC() {
|
|
|
60469
60479
|
}
|
|
60470
60480
|
),
|
|
60471
60481
|
/* @__PURE__ */ ge.jsx(
|
|
60472
|
-
|
|
60482
|
+
NM,
|
|
60473
60483
|
{
|
|
60474
60484
|
editor: c,
|
|
60475
60485
|
matches: a,
|
|
@@ -60478,7 +60488,7 @@ function IC() {
|
|
|
60478
60488
|
)
|
|
60479
60489
|
] });
|
|
60480
60490
|
}
|
|
60481
|
-
function
|
|
60491
|
+
function AM({ editorRef: c }) {
|
|
60482
60492
|
const [t] = Nn();
|
|
60483
60493
|
return sr.useEffect(() => {
|
|
60484
60494
|
typeof c == "function" ? c(t) : typeof c == "object" && (c.current = t);
|
|
@@ -60492,18 +60502,18 @@ const ja = () => /* @__PURE__ */ new Map(), Ky = (c) => {
|
|
|
60492
60502
|
}, Eu = (c, t, n) => {
|
|
60493
60503
|
let e = c.get(t);
|
|
60494
60504
|
return e === void 0 && c.set(t, e = n()), e;
|
|
60495
|
-
},
|
|
60505
|
+
}, jM = (c, t) => {
|
|
60496
60506
|
const n = [];
|
|
60497
60507
|
for (const [e, s] of c)
|
|
60498
60508
|
n.push(t(s, e));
|
|
60499
60509
|
return n;
|
|
60500
|
-
},
|
|
60510
|
+
}, IM = (c, t) => {
|
|
60501
60511
|
for (const [n, e] of c)
|
|
60502
60512
|
if (t(e, n))
|
|
60503
60513
|
return !0;
|
|
60504
60514
|
return !1;
|
|
60505
|
-
}, iu = () => /* @__PURE__ */ new Set(), Hm = (c) => c[c.length - 1], au = Array.from,
|
|
60506
|
-
class
|
|
60515
|
+
}, iu = () => /* @__PURE__ */ new Set(), Hm = (c) => c[c.length - 1], au = Array.from, PM = Array.isArray;
|
|
60516
|
+
class MM {
|
|
60507
60517
|
constructor() {
|
|
60508
60518
|
this._observers = ja();
|
|
60509
60519
|
}
|
|
@@ -60565,7 +60575,7 @@ class AM {
|
|
|
60565
60575
|
this._observers = ja();
|
|
60566
60576
|
}
|
|
60567
60577
|
}
|
|
60568
|
-
const Vl = Math.floor, Mp = Math.abs, PC = (c, t) => c < t ? c : t, Cu = (c, t) => c > t ? c : t,
|
|
60578
|
+
const Vl = Math.floor, Mp = Math.abs, PC = (c, t) => c < t ? c : t, Cu = (c, t) => c > t ? c : t, RM = (c) => c !== 0 ? c < 0 : 1 / c < 0, _x = 1, xx = 2, qm = 4, Wm = 8, DM = 32, MC = 64, gh = 128, LM = 31, wx = 63, Od = 127, FM = 2147483647, BM = Number.isInteger || ((c) => typeof c == "number" && isFinite(c) && Vl(c) === c), zM = (c) => c.toLowerCase(), $M = /^\s*/g, UM = (c) => c.replace($M, ""), HM = /([A-Z])/g, Sx = (c, t) => UM(c.replace(HM, (n) => `${t}${zM(n)}`)), qM = (c) => {
|
|
60569
60579
|
const t = unescape(encodeURIComponent(c)), n = t.length, e = new Uint8Array(n);
|
|
60570
60580
|
for (let s = 0; s < n; s++)
|
|
60571
60581
|
e[s] = /** @type {number} */
|
|
@@ -60574,7 +60584,7 @@ const Vl = Math.floor, Mp = Math.abs, PC = (c, t) => c < t ? c : t, Cu = (c, t)
|
|
|
60574
60584
|
}, Dd = (
|
|
60575
60585
|
/** @type {TextEncoder} */
|
|
60576
60586
|
typeof TextEncoder < "u" ? new TextEncoder() : null
|
|
60577
|
-
),
|
|
60587
|
+
), WM = (c) => Dd.encode(c), JM = Dd ? WM : qM;
|
|
60578
60588
|
let Jm = typeof TextDecoder > "u" ? null : new TextDecoder("utf-8", { fatal: !0, ignoreBOM: !0 });
|
|
60579
60589
|
Jm && Jm.decode(new Uint8Array()).length === 1 && (Jm = null);
|
|
60580
60590
|
class gf {
|
|
@@ -60582,20 +60592,20 @@ class gf {
|
|
|
60582
60592
|
this.cpos = 0, this.cbuf = new Uint8Array(100), this.bufs = [];
|
|
60583
60593
|
}
|
|
60584
60594
|
}
|
|
60585
|
-
const rb = () => new gf(),
|
|
60595
|
+
const rb = () => new gf(), VM = (c) => {
|
|
60586
60596
|
let t = c.cpos;
|
|
60587
60597
|
for (let n = 0; n < c.bufs.length; n++)
|
|
60588
60598
|
t += c.bufs[n].length;
|
|
60589
60599
|
return t;
|
|
60590
60600
|
}, es = (c) => {
|
|
60591
|
-
const t = new Uint8Array(
|
|
60601
|
+
const t = new Uint8Array(VM(c));
|
|
60592
60602
|
let n = 0;
|
|
60593
60603
|
for (let e = 0; e < c.bufs.length; e++) {
|
|
60594
60604
|
const s = c.bufs[e];
|
|
60595
60605
|
t.set(s, n), n += s.length;
|
|
60596
60606
|
}
|
|
60597
60607
|
return t.set(new Uint8Array(c.cbuf.buffer, 0, c.cpos), n), t;
|
|
60598
|
-
},
|
|
60608
|
+
}, KM = (c, t) => {
|
|
60599
60609
|
const n = c.cbuf.length;
|
|
60600
60610
|
n - c.cpos < t && (c.bufs.push(new Uint8Array(c.cbuf.buffer, 0, c.cpos)), c.cbuf = new Uint8Array(Cu(n, t) * 2), c.cpos = 0);
|
|
60601
60611
|
}, Co = (c, t) => {
|
|
@@ -60606,18 +60616,18 @@ const rb = () => new gf(), HM = (c) => {
|
|
|
60606
60616
|
Co(c, gh | Od & t), t = Vl(t / 128);
|
|
60607
60617
|
Co(c, Od & t);
|
|
60608
60618
|
}, ob = (c, t) => {
|
|
60609
|
-
const n =
|
|
60619
|
+
const n = RM(t);
|
|
60610
60620
|
for (n && (t = -t), Co(c, (t > wx ? gh : 0) | (n ? MC : 0) | wx & t), t = Vl(t / 64); t > 0; )
|
|
60611
60621
|
Co(c, (t > Od ? gh : 0) | Od & t), t = Vl(t / 128);
|
|
60612
|
-
}, Yy = new Uint8Array(3e4),
|
|
60613
|
-
if (t.length <
|
|
60622
|
+
}, Yy = new Uint8Array(3e4), GM = Yy.length / 3, YM = (c, t) => {
|
|
60623
|
+
if (t.length < GM) {
|
|
60614
60624
|
const n = Dd.encodeInto(t, Yy).written || 0;
|
|
60615
60625
|
Or(c, n);
|
|
60616
60626
|
for (let e = 0; e < n; e++)
|
|
60617
60627
|
Co(c, Yy[e]);
|
|
60618
60628
|
} else
|
|
60619
|
-
Oi(c,
|
|
60620
|
-
},
|
|
60629
|
+
Oi(c, JM(t));
|
|
60630
|
+
}, ZM = (c, t) => {
|
|
60621
60631
|
const n = unescape(encodeURIComponent(t)), e = n.length;
|
|
60622
60632
|
Or(c, e);
|
|
60623
60633
|
for (let s = 0; s < e; s++)
|
|
@@ -60627,33 +60637,33 @@ const rb = () => new gf(), HM = (c) => {
|
|
|
60627
60637
|
n.codePointAt(s)
|
|
60628
60638
|
);
|
|
60629
60639
|
}, Xc = Dd && /** @type {any} */
|
|
60630
|
-
Dd.encodeInto ?
|
|
60640
|
+
Dd.encodeInto ? YM : ZM, ib = (c, t) => {
|
|
60631
60641
|
const n = c.cbuf.length, e = c.cpos, s = PC(n - e, t.length), o = t.length - s;
|
|
60632
60642
|
c.cbuf.set(t.subarray(0, s), e), c.cpos += s, o > 0 && (c.bufs.push(c.cbuf), c.cbuf = new Uint8Array(Cu(n * 2, o)), c.cbuf.set(t.subarray(s)), c.cpos = o);
|
|
60633
60643
|
}, Oi = (c, t) => {
|
|
60634
60644
|
Or(c, t.byteLength), ib(c, t);
|
|
60635
60645
|
}, ab = (c, t) => {
|
|
60636
|
-
|
|
60646
|
+
KM(c, t);
|
|
60637
60647
|
const n = new DataView(c.cbuf.buffer, c.cpos, t);
|
|
60638
60648
|
return c.cpos += t, n;
|
|
60639
|
-
},
|
|
60649
|
+
}, QM = (c, t) => ab(c, 4).setFloat32(0, t, !1), XM = (c, t) => ab(c, 8).setFloat64(0, t, !1), e4 = (c, t) => (
|
|
60640
60650
|
/** @type {any} */
|
|
60641
60651
|
ab(c, 8).setBigInt64(0, t, !1)
|
|
60642
|
-
), Ex = new DataView(new ArrayBuffer(4)),
|
|
60652
|
+
), Ex = new DataView(new ArrayBuffer(4)), t4 = (c) => (Ex.setFloat32(0, c), Ex.getFloat32(0) === c), Ld = (c, t) => {
|
|
60643
60653
|
switch (typeof t) {
|
|
60644
60654
|
case "string":
|
|
60645
60655
|
Co(c, 119), Xc(c, t);
|
|
60646
60656
|
break;
|
|
60647
60657
|
case "number":
|
|
60648
|
-
|
|
60658
|
+
BM(t) && Mp(t) <= FM ? (Co(c, 125), ob(c, t)) : t4(t) ? (Co(c, 124), QM(c, t)) : (Co(c, 123), XM(c, t));
|
|
60649
60659
|
break;
|
|
60650
60660
|
case "bigint":
|
|
60651
|
-
Co(c, 122),
|
|
60661
|
+
Co(c, 122), e4(c, t);
|
|
60652
60662
|
break;
|
|
60653
60663
|
case "object":
|
|
60654
60664
|
if (t === null)
|
|
60655
60665
|
Co(c, 126);
|
|
60656
|
-
else if (
|
|
60666
|
+
else if (PM(t)) {
|
|
60657
60667
|
Co(c, 117), Or(c, t.length);
|
|
60658
60668
|
for (let n = 0; n < t.length; n++)
|
|
60659
60669
|
Ld(c, t[n]);
|
|
@@ -60737,7 +60747,7 @@ class Vm {
|
|
|
60737
60747
|
return kx(this), es(this.encoder);
|
|
60738
60748
|
}
|
|
60739
60749
|
}
|
|
60740
|
-
class
|
|
60750
|
+
class n4 {
|
|
60741
60751
|
constructor() {
|
|
60742
60752
|
this.sarr = [], this.s = "", this.lensE = new Rp();
|
|
60743
60753
|
}
|
|
@@ -60756,7 +60766,7 @@ const su = (c) => new Error(c), Ia = () => {
|
|
|
60756
60766
|
throw su("Method unimplemented");
|
|
60757
60767
|
}, Kl = () => {
|
|
60758
60768
|
throw su("Unexpected case");
|
|
60759
|
-
},
|
|
60769
|
+
}, r4 = crypto.getRandomValues.bind(crypto), RC = () => r4(new Uint32Array(1))[0], o4 = [1e7] + -1e3 + -4e3 + -8e3 + -1e11, i4 = () => o4.replace(
|
|
60760
60770
|
/[018]/g,
|
|
60761
60771
|
/** @param {number} c */
|
|
60762
60772
|
(c) => (c ^ RC() & 15 >> c / 4).toString(16)
|
|
@@ -60766,7 +60776,7 @@ const su = (c) => new Error(c), Ia = () => {
|
|
|
60766
60776
|
);
|
|
60767
60777
|
Promise.all.bind(Promise);
|
|
60768
60778
|
const Nx = (c) => c === void 0 ? null : c;
|
|
60769
|
-
class
|
|
60779
|
+
class a4 {
|
|
60770
60780
|
constructor() {
|
|
60771
60781
|
this.map = /* @__PURE__ */ new Map();
|
|
60772
60782
|
}
|
|
@@ -60784,33 +60794,33 @@ class n4 {
|
|
|
60784
60794
|
return this.map.get(t);
|
|
60785
60795
|
}
|
|
60786
60796
|
}
|
|
60787
|
-
let DC = new
|
|
60797
|
+
let DC = new a4(), s4 = !0;
|
|
60788
60798
|
try {
|
|
60789
|
-
typeof localStorage < "u" && localStorage && (DC = localStorage,
|
|
60799
|
+
typeof localStorage < "u" && localStorage && (DC = localStorage, s4 = !1);
|
|
60790
60800
|
} catch {
|
|
60791
60801
|
}
|
|
60792
|
-
const
|
|
60802
|
+
const l4 = DC, c4 = Object.assign, u4 = Object.keys, d4 = (c, t) => {
|
|
60793
60803
|
for (const n in c)
|
|
60794
60804
|
t(c[n], n);
|
|
60795
|
-
}, Ax = (c) =>
|
|
60805
|
+
}, Ax = (c) => u4(c).length, f4 = (c) => {
|
|
60796
60806
|
for (const t in c)
|
|
60797
60807
|
return !1;
|
|
60798
60808
|
return !0;
|
|
60799
|
-
},
|
|
60809
|
+
}, p4 = (c, t) => {
|
|
60800
60810
|
for (const n in c)
|
|
60801
60811
|
if (!t(c[n], n))
|
|
60802
60812
|
return !1;
|
|
60803
60813
|
return !0;
|
|
60804
|
-
},
|
|
60814
|
+
}, h4 = (c, t) => Object.prototype.hasOwnProperty.call(c, t), g4 = (c, t) => c === t || Ax(c) === Ax(t) && p4(c, (n, e) => (n !== void 0 || h4(t, e)) && t[e] === n), sb = (c, t, n = 0) => {
|
|
60805
60815
|
try {
|
|
60806
60816
|
for (; n < c.length; n++)
|
|
60807
60817
|
c[n](...t);
|
|
60808
60818
|
} finally {
|
|
60809
60819
|
n < c.length && sb(c, t, n + 1);
|
|
60810
60820
|
}
|
|
60811
|
-
},
|
|
60821
|
+
}, m4 = (c, t) => t.includes(c), Fd = typeof process < "u" && process.release && /node|io\.js/.test(process.release.name) && Object.prototype.toString.call(typeof process < "u" ? process : 0) === "[object process]";
|
|
60812
60822
|
let Ca;
|
|
60813
|
-
const
|
|
60823
|
+
const y4 = () => {
|
|
60814
60824
|
if (Ca === void 0)
|
|
60815
60825
|
if (Fd) {
|
|
60816
60826
|
Ca = ja();
|
|
@@ -60829,11 +60839,11 @@ const p4 = () => {
|
|
|
60829
60839
|
}
|
|
60830
60840
|
})) : Ca = ja();
|
|
60831
60841
|
return Ca;
|
|
60832
|
-
}, Zy = (c) =>
|
|
60842
|
+
}, Zy = (c) => y4().has(c), Qy = (c) => Nx(Fd ? process.env[c.toUpperCase().replaceAll("-", "_")] : l4.getItem(c)), LC = (c) => Zy("--" + c) || Qy(c) !== null;
|
|
60833
60843
|
LC("production");
|
|
60834
|
-
const
|
|
60844
|
+
const b4 = Fd && m4(process.env.FORCE_COLOR, ["true", "1", "2"]), v4 = b4 || !Zy("--no-colors") && // @todo deprecate --no-colors
|
|
60835
60845
|
!LC("no-color") && (!Fd || process.stdout.isTTY) && (!Fd || Zy("--color") || Qy("COLORTERM") !== null || (Qy("TERM") || "").includes("color"));
|
|
60836
|
-
class
|
|
60846
|
+
class _4 {
|
|
60837
60847
|
/**
|
|
60838
60848
|
* @param {L} left
|
|
60839
60849
|
* @param {R} right
|
|
@@ -60842,9 +60852,9 @@ class m4 {
|
|
|
60842
60852
|
this.left = t, this.right = n;
|
|
60843
60853
|
}
|
|
60844
60854
|
}
|
|
60845
|
-
const Ga = (c, t) => new
|
|
60855
|
+
const Ga = (c, t) => new _4(c, t);
|
|
60846
60856
|
typeof DOMParser < "u" && new DOMParser();
|
|
60847
|
-
const
|
|
60857
|
+
const x4 = (c) => jM(c, (t, n) => `${n}:${t};`).join(""), hs = Symbol, FC = hs(), BC = hs(), w4 = hs(), S4 = hs(), E4 = hs(), zC = hs(), C4 = hs(), $C = hs(), T4 = hs(), k4 = (c) => {
|
|
60848
60858
|
var s;
|
|
60849
60859
|
c.length === 1 && ((s = c[0]) == null ? void 0 : s.constructor) === Function && (c = /** @type {Array<string|Symbol|Object|number>} */
|
|
60850
60860
|
/** @type {[function]} */
|
|
@@ -60865,18 +60875,18 @@ const y4 = (c) => kM(c, (t, n) => `${n}:${t};`).join(""), hs = Symbol, FC = hs()
|
|
|
60865
60875
|
o instanceof Symbol || n.push(o);
|
|
60866
60876
|
}
|
|
60867
60877
|
return n;
|
|
60868
|
-
},
|
|
60878
|
+
}, O4 = {
|
|
60869
60879
|
[FC]: Ga("font-weight", "bold"),
|
|
60870
60880
|
[BC]: Ga("font-weight", "normal"),
|
|
60871
|
-
[
|
|
60872
|
-
[
|
|
60873
|
-
[
|
|
60881
|
+
[w4]: Ga("color", "blue"),
|
|
60882
|
+
[E4]: Ga("color", "green"),
|
|
60883
|
+
[S4]: Ga("color", "grey"),
|
|
60874
60884
|
[zC]: Ga("color", "red"),
|
|
60875
|
-
[
|
|
60885
|
+
[C4]: Ga("color", "purple"),
|
|
60876
60886
|
[$C]: Ga("color", "orange"),
|
|
60877
60887
|
// not well supported in chrome when debugging node with inspector - TODO: deprecate
|
|
60878
|
-
[
|
|
60879
|
-
},
|
|
60888
|
+
[T4]: Ga("color", "black")
|
|
60889
|
+
}, N4 = (c) => {
|
|
60880
60890
|
var r;
|
|
60881
60891
|
c.length === 1 && ((r = c[0]) == null ? void 0 : r.constructor) === Function && (c = /** @type {Array<string|Symbol|Object|number>} */
|
|
60882
60892
|
/** @type {[function]} */
|
|
@@ -60884,14 +60894,14 @@ const y4 = (c) => kM(c, (t, n) => `${n}:${t};`).join(""), hs = Symbol, FC = hs()
|
|
|
60884
60894
|
const t = [], n = [], e = ja();
|
|
60885
60895
|
let s = [], o = 0;
|
|
60886
60896
|
for (; o < c.length; o++) {
|
|
60887
|
-
const a = c[o], l =
|
|
60897
|
+
const a = c[o], l = O4[a];
|
|
60888
60898
|
if (l !== void 0)
|
|
60889
60899
|
e.set(l.left, l.right);
|
|
60890
60900
|
else {
|
|
60891
60901
|
if (a === void 0)
|
|
60892
60902
|
break;
|
|
60893
60903
|
if (a.constructor === String || a.constructor === Number) {
|
|
60894
|
-
const i =
|
|
60904
|
+
const i = x4(e);
|
|
60895
60905
|
o > 0 || i.length > 0 ? (t.push("%c" + a), n.push(i)) : t.push(a);
|
|
60896
60906
|
} else
|
|
60897
60907
|
break;
|
|
@@ -60902,9 +60912,9 @@ const y4 = (c) => kM(c, (t, n) => `${n}:${t};`).join(""), hs = Symbol, FC = hs()
|
|
|
60902
60912
|
a instanceof Symbol || s.push(a);
|
|
60903
60913
|
}
|
|
60904
60914
|
return s;
|
|
60905
|
-
},
|
|
60906
|
-
console.log(...
|
|
60907
|
-
},
|
|
60915
|
+
}, A4 = v4 ? N4 : k4, j4 = (...c) => {
|
|
60916
|
+
console.log(...A4(c)), I4.forEach((t) => t.print(c));
|
|
60917
|
+
}, I4 = iu(), UC = (c) => ({
|
|
60908
60918
|
/**
|
|
60909
60919
|
* @return {IterableIterator<T>}
|
|
60910
60920
|
*/
|
|
@@ -60913,7 +60923,7 @@ const y4 = (c) => kM(c, (t, n) => `${n}:${t};`).join(""), hs = Symbol, FC = hs()
|
|
|
60913
60923
|
},
|
|
60914
60924
|
// @ts-ignore
|
|
60915
60925
|
next: c
|
|
60916
|
-
}),
|
|
60926
|
+
}), P4 = (c, t) => UC(() => {
|
|
60917
60927
|
let n;
|
|
60918
60928
|
do
|
|
60919
60929
|
n = c.next();
|
|
@@ -60923,7 +60933,7 @@ const y4 = (c) => kM(c, (t, n) => `${n}:${t};`).join(""), hs = Symbol, FC = hs()
|
|
|
60923
60933
|
const { done: n, value: e } = c.next();
|
|
60924
60934
|
return { done: n, value: n ? void 0 : t(e) };
|
|
60925
60935
|
});
|
|
60926
|
-
class
|
|
60936
|
+
class M4 {
|
|
60927
60937
|
/**
|
|
60928
60938
|
* @param {number} clock
|
|
60929
60939
|
* @param {number} len
|
|
@@ -60932,7 +60942,7 @@ class A4 {
|
|
|
60932
60942
|
this.clock = t, this.len = n;
|
|
60933
60943
|
}
|
|
60934
60944
|
}
|
|
60935
|
-
class
|
|
60945
|
+
class R4 {
|
|
60936
60946
|
constructor() {
|
|
60937
60947
|
this.clients = /* @__PURE__ */ new Map();
|
|
60938
60948
|
}
|
|
@@ -60946,7 +60956,7 @@ const HC = (c, t, n) => t.clients.forEach((e, s) => {
|
|
|
60946
60956
|
const a = e[r];
|
|
60947
60957
|
YC(c, o, a.clock, a.len, n);
|
|
60948
60958
|
}
|
|
60949
|
-
}),
|
|
60959
|
+
}), D4 = (c, t) => {
|
|
60950
60960
|
let n = 0, e = c.length - 1;
|
|
60951
60961
|
for (; n <= e; ) {
|
|
60952
60962
|
const s = Vl((n + e) / 2), o = c[s], r = o.clock;
|
|
@@ -60960,7 +60970,7 @@ const HC = (c, t, n) => t.clients.forEach((e, s) => {
|
|
|
60960
60970
|
return null;
|
|
60961
60971
|
}, qC = (c, t) => {
|
|
60962
60972
|
const n = c.clients.get(t.client);
|
|
60963
|
-
return n !== void 0 &&
|
|
60973
|
+
return n !== void 0 && D4(n, t.clock) !== null;
|
|
60964
60974
|
}, WC = (c) => {
|
|
60965
60975
|
c.clients.forEach((t) => {
|
|
60966
60976
|
t.sort((s, o) => s.clock - o.clock);
|
|
@@ -60975,8 +60985,8 @@ const HC = (c, t, n) => t.clients.forEach((e, s) => {
|
|
|
60975
60985
|
Eu(c.clients, t, () => (
|
|
60976
60986
|
/** @type {Array<DeleteItem>} */
|
|
60977
60987
|
[]
|
|
60978
|
-
)).push(new
|
|
60979
|
-
},
|
|
60988
|
+
)).push(new M4(n, e));
|
|
60989
|
+
}, L4 = (c, t) => {
|
|
60980
60990
|
Or(c.restEncoder, t.clients.size), au(t.clients.entries()).sort((n, e) => e[0] - n[0]).forEach(([n, e]) => {
|
|
60981
60991
|
c.resetDsCurVal(), Or(c.restEncoder, n);
|
|
60982
60992
|
const s = e.length;
|
|
@@ -60987,12 +60997,12 @@ const HC = (c, t, n) => t.clients.forEach((e, s) => {
|
|
|
60987
60997
|
}
|
|
60988
60998
|
});
|
|
60989
60999
|
}, VC = RC;
|
|
60990
|
-
class mf extends
|
|
61000
|
+
class mf extends MM {
|
|
60991
61001
|
/**
|
|
60992
61002
|
* @param {DocOpts} opts configuration
|
|
60993
61003
|
*/
|
|
60994
|
-
constructor({ guid: t =
|
|
60995
|
-
super(), this.gc = e, this.gcFilter = s, this.clientID = VC(), this.guid = t, this.collectionid = n, this.share = /* @__PURE__ */ new Map(), this.store = new
|
|
61004
|
+
constructor({ guid: t = i4(), collectionid: n = null, gc: e = !0, gcFilter: s = () => !0, meta: o = null, autoLoad: r = !1, shouldLoad: a = !0 } = {}) {
|
|
61005
|
+
super(), this.gc = e, this.gcFilter = s, this.clientID = VC(), this.guid = t, this.collectionid = n, this.share = /* @__PURE__ */ new Map(), this.store = new V4(), this._transaction = null, this._transactionCleanups = [], this.subdocs = /* @__PURE__ */ new Set(), this._item = null, this.shouldLoad = a, this.autoLoad = r, this.meta = o, this.isLoaded = !1, this.isSynced = !1, this.whenLoaded = Ox((i) => {
|
|
60996
61006
|
this.on("load", () => {
|
|
60997
61007
|
this.isLoaded = !0, i(this);
|
|
60998
61008
|
});
|
|
@@ -61200,7 +61210,7 @@ class mf extends AM {
|
|
|
61200
61210
|
this.emit("destroyed", [!0]), this.emit("destroy", [this]), super.destroy();
|
|
61201
61211
|
}
|
|
61202
61212
|
}
|
|
61203
|
-
class
|
|
61213
|
+
class F4 {
|
|
61204
61214
|
constructor() {
|
|
61205
61215
|
this.restEncoder = rb();
|
|
61206
61216
|
}
|
|
@@ -61222,7 +61232,7 @@ class M4 {
|
|
|
61222
61232
|
Or(this.restEncoder, t);
|
|
61223
61233
|
}
|
|
61224
61234
|
}
|
|
61225
|
-
class
|
|
61235
|
+
class B4 extends F4 {
|
|
61226
61236
|
/**
|
|
61227
61237
|
* @param {ID} id
|
|
61228
61238
|
*/
|
|
@@ -61299,7 +61309,7 @@ class R4 extends M4 {
|
|
|
61299
61309
|
Xc(this.restEncoder, t);
|
|
61300
61310
|
}
|
|
61301
61311
|
}
|
|
61302
|
-
class
|
|
61312
|
+
class z4 {
|
|
61303
61313
|
constructor() {
|
|
61304
61314
|
this.restEncoder = rb(), this.dsCurrVal = 0;
|
|
61305
61315
|
}
|
|
@@ -61323,9 +61333,9 @@ class D4 {
|
|
|
61323
61333
|
t === 0 && Kl(), Or(this.restEncoder, t - 1), this.dsCurrVal += t;
|
|
61324
61334
|
}
|
|
61325
61335
|
}
|
|
61326
|
-
class
|
|
61336
|
+
class $4 extends z4 {
|
|
61327
61337
|
constructor() {
|
|
61328
|
-
super(), this.keyMap = /* @__PURE__ */ new Map(), this.keyClock = 0, this.keyClockEncoder = new Vm(), this.clientEncoder = new Rp(), this.leftClockEncoder = new Vm(), this.rightClockEncoder = new Vm(), this.infoEncoder = new Cx(Gy), this.stringEncoder = new
|
|
61338
|
+
super(), this.keyMap = /* @__PURE__ */ new Map(), this.keyClock = 0, this.keyClockEncoder = new Vm(), this.clientEncoder = new Rp(), this.leftClockEncoder = new Vm(), this.rightClockEncoder = new Vm(), this.infoEncoder = new Cx(Gy), this.stringEncoder = new n4(), this.parentInfoEncoder = new Cx(Gy), this.typeRefEncoder = new Rp(), this.lenEncoder = new Rp();
|
|
61329
61339
|
}
|
|
61330
61340
|
toUint8Array() {
|
|
61331
61341
|
const t = rb();
|
|
@@ -61416,7 +61426,7 @@ class L4 extends D4 {
|
|
|
61416
61426
|
n === void 0 ? (this.keyClockEncoder.write(this.keyClock++), this.stringEncoder.write(t)) : this.keyClockEncoder.write(n);
|
|
61417
61427
|
}
|
|
61418
61428
|
}
|
|
61419
|
-
const
|
|
61429
|
+
const U4 = (c, t, n, e) => {
|
|
61420
61430
|
e = Cu(e, t[0].id.clock);
|
|
61421
61431
|
const s = os(t, e);
|
|
61422
61432
|
Or(c.restEncoder, t.length - s), c.writeClient(n), Or(c.restEncoder, e);
|
|
@@ -61424,14 +61434,14 @@ const F4 = (c, t, n, e) => {
|
|
|
61424
61434
|
o.write(c, e - o.id.clock);
|
|
61425
61435
|
for (let r = s + 1; r < t.length; r++)
|
|
61426
61436
|
t[r].write(c, 0);
|
|
61427
|
-
},
|
|
61437
|
+
}, H4 = (c, t, n) => {
|
|
61428
61438
|
const e = /* @__PURE__ */ new Map();
|
|
61429
61439
|
n.forEach((s, o) => {
|
|
61430
61440
|
mi(t, o) > s && e.set(o, s);
|
|
61431
61441
|
}), lb(t).forEach((s, o) => {
|
|
61432
61442
|
n.has(o) || e.set(o, 0);
|
|
61433
61443
|
}), Or(c.restEncoder, e.size), au(e.entries()).sort((s, o) => o[0] - s[0]).forEach(([s, o]) => {
|
|
61434
|
-
|
|
61444
|
+
U4(
|
|
61435
61445
|
c,
|
|
61436
61446
|
/** @type {Array<GC|Item>} */
|
|
61437
61447
|
t.clients.get(s),
|
|
@@ -61439,13 +61449,13 @@ const F4 = (c, t, n, e) => {
|
|
|
61439
61449
|
o
|
|
61440
61450
|
);
|
|
61441
61451
|
});
|
|
61442
|
-
},
|
|
61443
|
-
class
|
|
61452
|
+
}, q4 = (c, t) => H4(c, t.doc.store, t.beforeState);
|
|
61453
|
+
class W4 {
|
|
61444
61454
|
constructor() {
|
|
61445
61455
|
this.l = [];
|
|
61446
61456
|
}
|
|
61447
61457
|
}
|
|
61448
|
-
const jx = () => new
|
|
61458
|
+
const jx = () => new W4(), Ix = (c, t) => c.l.push(t), Px = (c, t) => {
|
|
61449
61459
|
const n = c.l, e = n.length;
|
|
61450
61460
|
c.l = n.filter((s) => t !== s), e === c.l.length && console.error("[yjs] Tried to remove event handler that doesn't exist.");
|
|
61451
61461
|
}, KC = (c, t, n) => sb(c.l, [t, n]);
|
|
@@ -61458,7 +61468,7 @@ class Dp {
|
|
|
61458
61468
|
this.client = t, this.clock = n;
|
|
61459
61469
|
}
|
|
61460
61470
|
}
|
|
61461
|
-
const pp = (c, t) => c === t || c !== null && t !== null && c.client === t.client && c.clock === t.clock, to = (c, t) => new Dp(c, t),
|
|
61471
|
+
const pp = (c, t) => c === t || c !== null && t !== null && c.client === t.client && c.clock === t.clock, to = (c, t) => new Dp(c, t), J4 = (c) => {
|
|
61462
61472
|
for (const [t, n] of c.doc.share.entries())
|
|
61463
61473
|
if (n === c)
|
|
61464
61474
|
return t;
|
|
@@ -61470,7 +61480,7 @@ const pp = (c, t) => c === t || c !== null && t !== null && c.client === t.clien
|
|
|
61470
61480
|
}), HC(c, t.ds, (s) => {
|
|
61471
61481
|
}), n.add(t));
|
|
61472
61482
|
};
|
|
61473
|
-
class
|
|
61483
|
+
class V4 {
|
|
61474
61484
|
constructor() {
|
|
61475
61485
|
this.clients = /* @__PURE__ */ new Map(), this.pendingStructs = null, this.pendingDs = null;
|
|
61476
61486
|
}
|
|
@@ -61512,12 +61522,12 @@ const lb = (c) => {
|
|
|
61512
61522
|
r = Vl((n + e) / 2);
|
|
61513
61523
|
}
|
|
61514
61524
|
throw Kl();
|
|
61515
|
-
},
|
|
61525
|
+
}, K4 = (c, t) => {
|
|
61516
61526
|
const n = c.clients.get(t.client);
|
|
61517
61527
|
return n[os(n, t.clock)];
|
|
61518
61528
|
}, Gm = (
|
|
61519
61529
|
/** @type {function(StructStore,ID):Item} */
|
|
61520
|
-
|
|
61530
|
+
K4
|
|
61521
61531
|
), e0 = (c, t, n) => {
|
|
61522
61532
|
const e = os(t, n), s = t[e];
|
|
61523
61533
|
return s.id.clock < n && s instanceof Ko ? (t.splice(e + 1, 0, g2(c, s, n - s.id.clock)), e + 1) : e;
|
|
@@ -61530,7 +61540,7 @@ const lb = (c) => {
|
|
|
61530
61540
|
}, Mx = (c, t, n) => {
|
|
61531
61541
|
const e = t.clients.get(n.client), s = os(e, n.clock), o = e[s];
|
|
61532
61542
|
return n.clock !== o.id.clock + o.length - 1 && o.constructor !== Us && e.splice(s + 1, 0, g2(c, o, n.clock - o.id.clock + 1)), o;
|
|
61533
|
-
},
|
|
61543
|
+
}, G4 = (c, t, n) => {
|
|
61534
61544
|
const e = (
|
|
61535
61545
|
/** @type {Array<GC|Item>} */
|
|
61536
61546
|
c.clients.get(t.id.client)
|
|
@@ -61545,17 +61555,17 @@ const lb = (c) => {
|
|
|
61545
61555
|
a = t[r++], o < a.id.clock + a.length && e0(c, t, o), s(a);
|
|
61546
61556
|
while (r < t.length && t[r].id.clock < o);
|
|
61547
61557
|
};
|
|
61548
|
-
class
|
|
61558
|
+
class Y4 {
|
|
61549
61559
|
/**
|
|
61550
61560
|
* @param {Doc} doc
|
|
61551
61561
|
* @param {any} origin
|
|
61552
61562
|
* @param {boolean} local
|
|
61553
61563
|
*/
|
|
61554
61564
|
constructor(t, n, e) {
|
|
61555
|
-
this.doc = t, this.deleteSet = new
|
|
61565
|
+
this.doc = t, this.deleteSet = new R4(), this.beforeState = lb(t.store), this.afterState = /* @__PURE__ */ new Map(), this.changed = /* @__PURE__ */ new Map(), this.changedParentTypes = /* @__PURE__ */ new Map(), this._mergeStructs = [], this.origin = n, this.meta = /* @__PURE__ */ new Map(), this.local = e, this.subdocsAdded = /* @__PURE__ */ new Set(), this.subdocsRemoved = /* @__PURE__ */ new Set(), this.subdocsLoaded = /* @__PURE__ */ new Set(), this._needFormattingCleanup = !1;
|
|
61556
61566
|
}
|
|
61557
61567
|
}
|
|
61558
|
-
const Rx = (c, t) => t.deleteSet.clients.size === 0 && !
|
|
61568
|
+
const Rx = (c, t) => t.deleteSet.clients.size === 0 && !IM(t.afterState, (n, e) => t.beforeState.get(e) !== n) ? !1 : (WC(t.deleteSet), q4(c, t), L4(c, t.deleteSet), !0), Dx = (c, t, n) => {
|
|
61559
61569
|
const e = t._item;
|
|
61560
61570
|
(e === null || e.id.clock < (c.beforeState.get(e.id.client) || 0) && !e.deleted) && Eu(c.changed, t, iu).add(n);
|
|
61561
61571
|
}, Lp = (c, t) => {
|
|
@@ -61574,7 +61584,7 @@ const Rx = (c, t) => t.deleteSet.clients.size === 0 && !OM(t.afterState, (n, e)
|
|
|
61574
61584
|
}
|
|
61575
61585
|
const o = t - s;
|
|
61576
61586
|
return o && c.splice(t + 1 - o, o), o;
|
|
61577
|
-
},
|
|
61587
|
+
}, Z4 = (c, t, n) => {
|
|
61578
61588
|
for (const [e, s] of c.clients.entries()) {
|
|
61579
61589
|
const o = (
|
|
61580
61590
|
/** @type {Array<GC|Item>} */
|
|
@@ -61590,7 +61600,7 @@ const Rx = (c, t) => t.deleteSet.clients.size === 0 && !OM(t.afterState, (n, e)
|
|
|
61590
61600
|
}
|
|
61591
61601
|
}
|
|
61592
61602
|
}
|
|
61593
|
-
},
|
|
61603
|
+
}, Q4 = (c, t) => {
|
|
61594
61604
|
c.clients.forEach((n, e) => {
|
|
61595
61605
|
const s = (
|
|
61596
61606
|
/** @type {Array<GC|Item>} */
|
|
@@ -61620,9 +61630,9 @@ const Rx = (c, t) => t.deleteSet.clients.size === 0 && !OM(t.afterState, (n, e)
|
|
|
61620
61630
|
d.currentTarget = i, d._path = null;
|
|
61621
61631
|
}), l.sort((d, u) => d.path.length - u.path.length), KC(i._dEH, l, n));
|
|
61622
61632
|
});
|
|
61623
|
-
}), a.push(() => e.emit("afterTransaction", [n, e])), sb(a, []), n._needFormattingCleanup &&
|
|
61633
|
+
}), a.push(() => e.emit("afterTransaction", [n, e])), sb(a, []), n._needFormattingCleanup && cR(n);
|
|
61624
61634
|
} finally {
|
|
61625
|
-
e.gc &&
|
|
61635
|
+
e.gc && Z4(o, s, e.gcFilter), Q4(o, s), n.afterState.forEach((d, u) => {
|
|
61626
61636
|
const f = n.beforeState.get(u) || 0;
|
|
61627
61637
|
if (f !== d) {
|
|
61628
61638
|
const p = (
|
|
@@ -61640,12 +61650,12 @@ const Rx = (c, t) => t.deleteSet.clients.size === 0 && !OM(t.afterState, (n, e)
|
|
|
61640
61650
|
), h = os(p, f);
|
|
61641
61651
|
h + 1 < p.length && Lp(p, h + 1) > 1 || h > 0 && Lp(p, h);
|
|
61642
61652
|
}
|
|
61643
|
-
if (!n.local && n.afterState.get(e.clientID) !== n.beforeState.get(e.clientID) && (
|
|
61644
|
-
const d = new
|
|
61653
|
+
if (!n.local && n.afterState.get(e.clientID) !== n.beforeState.get(e.clientID) && (j4($C, FC, "[yjs] ", BC, zC, "Changed the client-id because another client seems to be using it."), e.clientID = VC()), e.emit("afterTransactionCleanup", [n, e]), e._observers.has("update")) {
|
|
61654
|
+
const d = new B4();
|
|
61645
61655
|
Rx(d, n) && e.emit("update", [d.toUint8Array(), n.origin, e, n]);
|
|
61646
61656
|
}
|
|
61647
61657
|
if (e._observers.has("updateV2")) {
|
|
61648
|
-
const d = new
|
|
61658
|
+
const d = new $4();
|
|
61649
61659
|
Rx(d, n) && e.emit("updateV2", [d.toUint8Array(), n.origin, e, n]);
|
|
61650
61660
|
}
|
|
61651
61661
|
const { subdocsAdded: a, subdocsLoaded: l, subdocsRemoved: i } = n;
|
|
@@ -61657,7 +61667,7 @@ const Rx = (c, t) => t.deleteSet.clients.size === 0 && !OM(t.afterState, (n, e)
|
|
|
61657
61667
|
}, Mr = (c, t, n = null, e = !0) => {
|
|
61658
61668
|
const s = c._transactionCleanups;
|
|
61659
61669
|
let o = !1, r = null;
|
|
61660
|
-
c._transaction === null && (o = !0, c._transaction = new
|
|
61670
|
+
c._transaction === null && (o = !0, c._transaction = new Y4(c, n, e), s.push(c._transaction), s.length === 1 && c.emit("beforeAllTransactions", [c]), c.emit("beforeTransaction", [c._transaction, c]));
|
|
61661
61671
|
try {
|
|
61662
61672
|
r = t(c._transaction);
|
|
61663
61673
|
} finally {
|
|
@@ -61690,7 +61700,7 @@ class og {
|
|
|
61690
61700
|
* type === event.target // => true
|
|
61691
61701
|
*/
|
|
61692
61702
|
get path() {
|
|
61693
|
-
return this._path || (this._path =
|
|
61703
|
+
return this._path || (this._path = X4(this.currentTarget, this.target));
|
|
61694
61704
|
}
|
|
61695
61705
|
/**
|
|
61696
61706
|
* Check if a struct is deleted by this event.
|
|
@@ -61802,7 +61812,7 @@ class og {
|
|
|
61802
61812
|
);
|
|
61803
61813
|
}
|
|
61804
61814
|
}
|
|
61805
|
-
const
|
|
61815
|
+
const X4 = (c, t) => {
|
|
61806
61816
|
const n = [];
|
|
61807
61817
|
for (; t._item !== null && t !== c; ) {
|
|
61808
61818
|
if (t._item.parentSub !== null)
|
|
@@ -61822,7 +61832,7 @@ const G4 = (c, t) => {
|
|
|
61822
61832
|
return n;
|
|
61823
61833
|
}, QC = 80;
|
|
61824
61834
|
let cb = 0;
|
|
61825
|
-
class
|
|
61835
|
+
class eR {
|
|
61826
61836
|
/**
|
|
61827
61837
|
* @param {Item} p
|
|
61828
61838
|
* @param {number} index
|
|
@@ -61831,16 +61841,16 @@ class Y4 {
|
|
|
61831
61841
|
t.marker = !0, this.p = t, this.index = n, this.timestamp = cb++;
|
|
61832
61842
|
}
|
|
61833
61843
|
}
|
|
61834
|
-
const
|
|
61844
|
+
const tR = (c) => {
|
|
61835
61845
|
c.timestamp = cb++;
|
|
61836
61846
|
}, XC = (c, t, n) => {
|
|
61837
61847
|
c.p.marker = !1, c.p = t, t.marker = !0, c.index = n, c.timestamp = cb++;
|
|
61838
|
-
},
|
|
61848
|
+
}, nR = (c, t, n) => {
|
|
61839
61849
|
if (c.length >= QC) {
|
|
61840
61850
|
const e = c.reduce((s, o) => s.timestamp < o.timestamp ? s : o);
|
|
61841
61851
|
return XC(e, t, n), e;
|
|
61842
61852
|
} else {
|
|
61843
|
-
const e = new
|
|
61853
|
+
const e = new eR(t, n);
|
|
61844
61854
|
return c.push(e), e;
|
|
61845
61855
|
}
|
|
61846
61856
|
}, ig = (c, t) => {
|
|
@@ -61848,7 +61858,7 @@ const Z4 = (c) => {
|
|
|
61848
61858
|
return null;
|
|
61849
61859
|
const n = c._searchMarker.length === 0 ? null : c._searchMarker.reduce((o, r) => Mp(t - o.index) < Mp(t - r.index) ? o : r);
|
|
61850
61860
|
let e = c._start, s = 0;
|
|
61851
|
-
for (n !== null && (e = n.p, s = n.index,
|
|
61861
|
+
for (n !== null && (e = n.p, s = n.index, tR(n)); e.right !== null && s < t; ) {
|
|
61852
61862
|
if (!e.deleted && e.countable) {
|
|
61853
61863
|
if (t < s + e.length)
|
|
61854
61864
|
break;
|
|
@@ -61861,7 +61871,7 @@ const Z4 = (c) => {
|
|
|
61861
61871
|
for (; e.left !== null && e.left.id.client === e.id.client && e.left.id.clock + e.left.length === e.id.clock; )
|
|
61862
61872
|
e = e.left, !e.deleted && e.countable && (s -= e.length);
|
|
61863
61873
|
return n !== null && Mp(n.index - s) < /** @type {YText|YArray<any>} */
|
|
61864
|
-
e.parent.length / QC ? (XC(n, e, s), n) :
|
|
61874
|
+
e.parent.length / QC ? (XC(n, e, s), n) : nR(c._searchMarker, e, s);
|
|
61865
61875
|
}, Bd = (c, t, n) => {
|
|
61866
61876
|
for (let e = c.length - 1; e >= 0; e--) {
|
|
61867
61877
|
const s = c[e];
|
|
@@ -62035,7 +62045,7 @@ const e2 = (c, t, n) => {
|
|
|
62035
62045
|
return zd(c, (e, s) => {
|
|
62036
62046
|
n.push(t(e, s, c));
|
|
62037
62047
|
}), n;
|
|
62038
|
-
},
|
|
62048
|
+
}, rR = (c) => {
|
|
62039
62049
|
let t = c._start, n = null, e = 0;
|
|
62040
62050
|
return {
|
|
62041
62051
|
[Symbol.iterator]() {
|
|
@@ -62126,7 +62136,7 @@ const e2 = (c, t, n) => {
|
|
|
62126
62136
|
n -= r.length;
|
|
62127
62137
|
}
|
|
62128
62138
|
return t._searchMarker && Bd(t._searchMarker, s, e.length), mh(c, t, r, e);
|
|
62129
|
-
},
|
|
62139
|
+
}, oR = (c, t, n) => {
|
|
62130
62140
|
let s = (t._searchMarker || []).reduce((o, r) => r.index > o.index ? r : o, { index: 0, p: t._start }).p;
|
|
62131
62141
|
if (s)
|
|
62132
62142
|
for (; s.right; )
|
|
@@ -62196,7 +62206,7 @@ const e2 = (c, t, n) => {
|
|
|
62196
62206
|
}, l2 = (c, t) => {
|
|
62197
62207
|
const n = c._map.get(t);
|
|
62198
62208
|
return n !== void 0 && !n.deleted;
|
|
62199
|
-
},
|
|
62209
|
+
}, iR = (c, t) => {
|
|
62200
62210
|
const n = {};
|
|
62201
62211
|
return c._map.forEach((e, s) => {
|
|
62202
62212
|
let o = e;
|
|
@@ -62204,7 +62214,7 @@ const e2 = (c, t, n) => {
|
|
|
62204
62214
|
o = o.left;
|
|
62205
62215
|
o !== null && Hc(o, t) && (n[s] = o.content.getContent()[o.length - 1]);
|
|
62206
62216
|
}), n;
|
|
62207
|
-
}, hp = (c) =>
|
|
62217
|
+
}, hp = (c) => P4(
|
|
62208
62218
|
c.entries(),
|
|
62209
62219
|
/** @param {any} entry */
|
|
62210
62220
|
(t) => !t[1].deleted
|
|
@@ -62319,7 +62329,7 @@ class Dl extends zo {
|
|
|
62319
62329
|
*/
|
|
62320
62330
|
push(t) {
|
|
62321
62331
|
this.doc !== null ? Mr(this.doc, (n) => {
|
|
62322
|
-
|
|
62332
|
+
oR(
|
|
62323
62333
|
n,
|
|
62324
62334
|
this,
|
|
62325
62335
|
/** @type {any} */
|
|
@@ -62409,16 +62419,16 @@ class Dl extends zo {
|
|
|
62409
62419
|
* @return {IterableIterator<T>}
|
|
62410
62420
|
*/
|
|
62411
62421
|
[Symbol.iterator]() {
|
|
62412
|
-
return
|
|
62422
|
+
return rR(this);
|
|
62413
62423
|
}
|
|
62414
62424
|
/**
|
|
62415
62425
|
* @param {UpdateEncoderV1 | UpdateEncoderV2} encoder
|
|
62416
62426
|
*/
|
|
62417
62427
|
_write(t) {
|
|
62418
|
-
t.writeTypeRef(
|
|
62428
|
+
t.writeTypeRef(hR);
|
|
62419
62429
|
}
|
|
62420
62430
|
}
|
|
62421
|
-
class
|
|
62431
|
+
class aR extends og {
|
|
62422
62432
|
/**
|
|
62423
62433
|
* @param {YMap<T>} ymap The YArray that changed.
|
|
62424
62434
|
* @param {Transaction} transaction
|
|
@@ -62480,7 +62490,7 @@ class lu extends zo {
|
|
|
62480
62490
|
* @param {Set<null|string>} parentSubs Keys changed on this type. `null` if list was modified.
|
|
62481
62491
|
*/
|
|
62482
62492
|
_callObserver(t, n) {
|
|
62483
|
-
ag(this, t, new
|
|
62493
|
+
ag(this, t, new aR(this, t, n));
|
|
62484
62494
|
}
|
|
62485
62495
|
/**
|
|
62486
62496
|
* Transforms this Shared Type to a JSON object.
|
|
@@ -62625,10 +62635,10 @@ class lu extends zo {
|
|
|
62625
62635
|
* @param {UpdateEncoderV1 | UpdateEncoderV2} encoder
|
|
62626
62636
|
*/
|
|
62627
62637
|
_write(t) {
|
|
62628
|
-
t.writeTypeRef(
|
|
62638
|
+
t.writeTypeRef(gR);
|
|
62629
62639
|
}
|
|
62630
62640
|
}
|
|
62631
|
-
const Ws = (c, t) => c === t || typeof c == "object" && typeof t == "object" && c && t &&
|
|
62641
|
+
const Ws = (c, t) => c === t || typeof c == "object" && typeof t == "object" && c && t && g4(c, t);
|
|
62632
62642
|
class t0 {
|
|
62633
62643
|
/**
|
|
62634
62644
|
* @param {Item|null} left
|
|
@@ -62817,7 +62827,7 @@ const Fx = (c, t, n) => {
|
|
|
62817
62827
|
t.right;
|
|
62818
62828
|
}
|
|
62819
62829
|
return a;
|
|
62820
|
-
},
|
|
62830
|
+
}, sR = (c, t) => {
|
|
62821
62831
|
for (; t && t.right && (t.right.deleted || !t.right.countable); )
|
|
62822
62832
|
t = t.right;
|
|
62823
62833
|
const n = /* @__PURE__ */ new Set();
|
|
@@ -62831,7 +62841,7 @@ const Fx = (c, t, n) => {
|
|
|
62831
62841
|
}
|
|
62832
62842
|
t = t.left;
|
|
62833
62843
|
}
|
|
62834
|
-
},
|
|
62844
|
+
}, lR = (c) => {
|
|
62835
62845
|
let t = 0;
|
|
62836
62846
|
return Mr(
|
|
62837
62847
|
/** @type {Doc} */
|
|
@@ -62860,7 +62870,7 @@ const Fx = (c, t, n) => {
|
|
|
62860
62870
|
}
|
|
62861
62871
|
}
|
|
62862
62872
|
), t;
|
|
62863
|
-
},
|
|
62873
|
+
}, cR = (c) => {
|
|
62864
62874
|
const t = /* @__PURE__ */ new Set(), n = c.doc;
|
|
62865
62875
|
for (const [e, s] of c.afterState.entries()) {
|
|
62866
62876
|
const o = c.beforeState.get(e) || 0;
|
|
@@ -62891,10 +62901,10 @@ const Fx = (c, t, n) => {
|
|
|
62891
62901
|
/** @type {YText} */
|
|
62892
62902
|
s.parent
|
|
62893
62903
|
);
|
|
62894
|
-
s.content.constructor === No ? t.add(o) :
|
|
62904
|
+
s.content.constructor === No ? t.add(o) : sR(e, s);
|
|
62895
62905
|
});
|
|
62896
62906
|
for (const s of t)
|
|
62897
|
-
|
|
62907
|
+
lR(s);
|
|
62898
62908
|
});
|
|
62899
62909
|
}, zx = (c, t, n) => {
|
|
62900
62910
|
const e = n, s = Ky(t.currentAttributes), o = t.right;
|
|
@@ -62917,7 +62927,7 @@ const Fx = (c, t, n) => {
|
|
|
62917
62927
|
);
|
|
62918
62928
|
return r._searchMarker && Bd(r._searchMarker, t.index, -e + n), t;
|
|
62919
62929
|
};
|
|
62920
|
-
class
|
|
62930
|
+
class uR extends og {
|
|
62921
62931
|
/**
|
|
62922
62932
|
* @param {YText} ytext
|
|
62923
62933
|
* @param {Transaction} transaction
|
|
@@ -62978,7 +62988,7 @@ class aR extends og {
|
|
|
62978
62988
|
}))), i = "";
|
|
62979
62989
|
break;
|
|
62980
62990
|
case "retain":
|
|
62981
|
-
d > 0 && (p = { retain: d },
|
|
62991
|
+
d > 0 && (p = { retain: d }, f4(l) || (p.attributes = c4({}, l))), d = 0;
|
|
62982
62992
|
break;
|
|
62983
62993
|
}
|
|
62984
62994
|
p && n.push(p), a = null;
|
|
@@ -63088,7 +63098,7 @@ class bh extends zo {
|
|
|
63088
63098
|
*/
|
|
63089
63099
|
_callObserver(t, n) {
|
|
63090
63100
|
super._callObserver(t, n);
|
|
63091
|
-
const e = new
|
|
63101
|
+
const e = new uR(this, t, n);
|
|
63092
63102
|
ag(this, t, e), !t.local && this._hasFormatting && (t._needFormattingCleanup = !0);
|
|
63093
63103
|
}
|
|
63094
63104
|
/**
|
|
@@ -63342,7 +63352,7 @@ class bh extends zo {
|
|
|
63342
63352
|
* @param {UpdateEncoderV1 | UpdateEncoderV2} encoder
|
|
63343
63353
|
*/
|
|
63344
63354
|
_write(t) {
|
|
63345
|
-
t.writeTypeRef(
|
|
63355
|
+
t.writeTypeRef(mR);
|
|
63346
63356
|
}
|
|
63347
63357
|
}
|
|
63348
63358
|
class Zm {
|
|
@@ -63496,7 +63506,7 @@ class cu extends zo {
|
|
|
63496
63506
|
* @param {Set<null|string>} parentSubs Keys changed on this type. `null` if list was modified.
|
|
63497
63507
|
*/
|
|
63498
63508
|
_callObserver(t, n) {
|
|
63499
|
-
ag(this, t, new
|
|
63509
|
+
ag(this, t, new dR(this, n, t));
|
|
63500
63510
|
}
|
|
63501
63511
|
/**
|
|
63502
63512
|
* Get the string representation of all the children of this YXmlFragment.
|
|
@@ -63645,7 +63655,7 @@ class cu extends zo {
|
|
|
63645
63655
|
* @param {UpdateEncoderV1 | UpdateEncoderV2} encoder The encoder to write data to.
|
|
63646
63656
|
*/
|
|
63647
63657
|
_write(t) {
|
|
63648
|
-
t.writeTypeRef(
|
|
63658
|
+
t.writeTypeRef(bR);
|
|
63649
63659
|
}
|
|
63650
63660
|
}
|
|
63651
63661
|
class $d extends cu {
|
|
@@ -63707,7 +63717,7 @@ class $d extends cu {
|
|
|
63707
63717
|
*/
|
|
63708
63718
|
clone() {
|
|
63709
63719
|
const t = new $d(this.nodeName), n = this.getAttributes();
|
|
63710
|
-
return
|
|
63720
|
+
return d4(n, (e, s) => {
|
|
63711
63721
|
typeof e == "string" && t.setAttribute(s, e);
|
|
63712
63722
|
}), t.insert(0, this.toArray().map((e) => e instanceof zo ? e.clone() : e)), t;
|
|
63713
63723
|
}
|
|
@@ -63802,7 +63812,7 @@ class $d extends cu {
|
|
|
63802
63812
|
getAttributes(t) {
|
|
63803
63813
|
return (
|
|
63804
63814
|
/** @type {any} */
|
|
63805
|
-
t ?
|
|
63815
|
+
t ? iR(this, t) : s2(this)
|
|
63806
63816
|
);
|
|
63807
63817
|
}
|
|
63808
63818
|
/**
|
|
@@ -63839,10 +63849,10 @@ class $d extends cu {
|
|
|
63839
63849
|
* @param {UpdateEncoderV1 | UpdateEncoderV2} encoder The encoder to write data to.
|
|
63840
63850
|
*/
|
|
63841
63851
|
_write(t) {
|
|
63842
|
-
t.writeTypeRef(
|
|
63852
|
+
t.writeTypeRef(yR), t.writeKey(this.nodeName);
|
|
63843
63853
|
}
|
|
63844
63854
|
}
|
|
63845
|
-
class
|
|
63855
|
+
class dR extends og {
|
|
63846
63856
|
/**
|
|
63847
63857
|
* @param {YXmlElement|YXmlText|YXmlFragment} target The target on which the event is created.
|
|
63848
63858
|
* @param {Set<string|null>} subs The set of changed attributes. `null` is included if the
|
|
@@ -63896,7 +63906,7 @@ class h2 {
|
|
|
63896
63906
|
throw Ia();
|
|
63897
63907
|
}
|
|
63898
63908
|
}
|
|
63899
|
-
const
|
|
63909
|
+
const fR = 0;
|
|
63900
63910
|
class Us extends h2 {
|
|
63901
63911
|
get deleted() {
|
|
63902
63912
|
return !0;
|
|
@@ -63922,7 +63932,7 @@ class Us extends h2 {
|
|
|
63922
63932
|
* @param {number} offset
|
|
63923
63933
|
*/
|
|
63924
63934
|
write(t, n) {
|
|
63925
|
-
t.writeInfo(
|
|
63935
|
+
t.writeInfo(fR), t.writeLen(this.length - n);
|
|
63926
63936
|
}
|
|
63927
63937
|
/**
|
|
63928
63938
|
* @param {Transaction} transaction
|
|
@@ -64085,7 +64095,7 @@ class vh {
|
|
|
64085
64095
|
return 1;
|
|
64086
64096
|
}
|
|
64087
64097
|
}
|
|
64088
|
-
const
|
|
64098
|
+
const pR = (c, t) => new mf({ guid: c, ...t, shouldLoad: t.shouldLoad || t.autoLoad || !1 });
|
|
64089
64099
|
class lg {
|
|
64090
64100
|
/**
|
|
64091
64101
|
* @param {Doc} doc
|
|
@@ -64117,7 +64127,7 @@ class lg {
|
|
|
64117
64127
|
* @return {ContentDoc}
|
|
64118
64128
|
*/
|
|
64119
64129
|
copy() {
|
|
64120
|
-
return new lg(
|
|
64130
|
+
return new lg(pR(this.doc.guid, this.opts));
|
|
64121
64131
|
}
|
|
64122
64132
|
/**
|
|
64123
64133
|
* @param {number} offset
|
|
@@ -64480,7 +64490,7 @@ class is {
|
|
|
64480
64490
|
return 4;
|
|
64481
64491
|
}
|
|
64482
64492
|
}
|
|
64483
|
-
const
|
|
64493
|
+
const hR = 0, gR = 1, mR = 2, yR = 3, bR = 4;
|
|
64484
64494
|
class cl {
|
|
64485
64495
|
/**
|
|
64486
64496
|
* @param {AbstractType<any>} type
|
|
@@ -64781,7 +64791,7 @@ class Ko extends h2 {
|
|
|
64781
64791
|
gc(t, n) {
|
|
64782
64792
|
if (!this.deleted)
|
|
64783
64793
|
throw Kl();
|
|
64784
|
-
this.content.gc(t), n ?
|
|
64794
|
+
this.content.gc(t), n ? G4(t, this, new Us(this.id, this.length)) : this.content = new vh(this.length);
|
|
64785
64795
|
}
|
|
64786
64796
|
/**
|
|
64787
64797
|
* Transform the properties of this type to binary and write it to an
|
|
@@ -64793,9 +64803,9 @@ class Ko extends h2 {
|
|
|
64793
64803
|
* @param {number} offset
|
|
64794
64804
|
*/
|
|
64795
64805
|
write(t, n) {
|
|
64796
|
-
const e = n > 0 ? to(this.id.client, this.id.clock + n - 1) : this.origin, s = this.rightOrigin, o = this.parentSub, r = this.content.getRef() &
|
|
64806
|
+
const e = n > 0 ? to(this.id.client, this.id.clock + n - 1) : this.origin, s = this.rightOrigin, o = this.parentSub, r = this.content.getRef() & LM | (e === null ? 0 : gh) | // origin is defined
|
|
64797
64807
|
(s === null ? 0 : MC) | // right origin is defined
|
|
64798
|
-
(o === null ? 0 :
|
|
64808
|
+
(o === null ? 0 : DM);
|
|
64799
64809
|
if (t.writeInfo(r), e !== null && t.writeLeftID(e), s !== null && t.writeRightID(s), e === null && s === null) {
|
|
64800
64810
|
const a = (
|
|
64801
64811
|
/** @type {AbstractType<any>} */
|
|
@@ -64804,7 +64814,7 @@ class Ko extends h2 {
|
|
|
64804
64814
|
if (a._item !== void 0) {
|
|
64805
64815
|
const l = a._item;
|
|
64806
64816
|
if (l === null) {
|
|
64807
|
-
const i =
|
|
64817
|
+
const i = J4(a);
|
|
64808
64818
|
t.writeParentInfo(!0), t.writeString(i);
|
|
64809
64819
|
} else
|
|
64810
64820
|
t.writeParentInfo(!1), t.writeLeftID(l.id);
|
|
@@ -64821,21 +64831,21 @@ const m2 = (
|
|
|
64821
64831
|
), y2 = "__ $YJS$ __";
|
|
64822
64832
|
m2[y2] === !0 && console.error("Yjs was already imported. This breaks constructor checks and will lead to issues! - https://github.com/yjs/yjs/issues/438");
|
|
64823
64833
|
m2[y2] = !0;
|
|
64824
|
-
function
|
|
64834
|
+
function vR(c) {
|
|
64825
64835
|
return c && c.__esModule && Object.prototype.hasOwnProperty.call(c, "default") ? c.default : c;
|
|
64826
64836
|
}
|
|
64827
|
-
|
|
64837
|
+
vR(function(c) {
|
|
64828
64838
|
const t = new URLSearchParams();
|
|
64829
64839
|
t.append("code", c);
|
|
64830
64840
|
for (let n = 1; n < arguments.length; n++)
|
|
64831
64841
|
t.append("v", arguments[n]);
|
|
64832
64842
|
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.`);
|
|
64833
64843
|
});
|
|
64834
|
-
const
|
|
64844
|
+
const _R = Ao();
|
|
64835
64845
|
function b2() {
|
|
64836
64846
|
return Math.random().toString(36).replace(/[^a-z]+/g, "").substr(0, 5);
|
|
64837
64847
|
}
|
|
64838
|
-
function
|
|
64848
|
+
function xR() {
|
|
64839
64849
|
const c = /* @__PURE__ */ new Date(), t = String(c.getHours()).padStart(2, "0"), n = String(c.getMinutes()).padStart(2, "0");
|
|
64840
64850
|
return `${t}:${n}`;
|
|
64841
64851
|
}
|
|
@@ -64852,7 +64862,7 @@ function _h(c, t, n, e, s, o, r) {
|
|
|
64852
64862
|
content: c,
|
|
64853
64863
|
deleted: r === void 0 ? !1 : r,
|
|
64854
64864
|
id: o === void 0 ? b2() : o,
|
|
64855
|
-
timeStamp: s === void 0 ? `${
|
|
64865
|
+
timeStamp: s === void 0 ? `${xR()} - ${v2()}` : s,
|
|
64856
64866
|
type: "comment",
|
|
64857
64867
|
userEmail: n === void 0 ? "" : n,
|
|
64858
64868
|
mentionedEmails: e === void 0 ? [] : e
|
|
@@ -64878,7 +64888,7 @@ function $x(c) {
|
|
|
64878
64888
|
wpAndTaskId: c.wpAndTaskId
|
|
64879
64889
|
};
|
|
64880
64890
|
}
|
|
64881
|
-
function
|
|
64891
|
+
function wR(c) {
|
|
64882
64892
|
return {
|
|
64883
64893
|
author: c.author,
|
|
64884
64894
|
content: "[Deleted Comment]",
|
|
@@ -64967,7 +64977,7 @@ class Ud {
|
|
|
64967
64977
|
}), e.splice(o, 1);
|
|
64968
64978
|
return this._comments = e, mp(this), t.type === "comment" ? {
|
|
64969
64979
|
index: o,
|
|
64970
|
-
markedComment:
|
|
64980
|
+
markedComment: wR(t)
|
|
64971
64981
|
} : null;
|
|
64972
64982
|
}
|
|
64973
64983
|
resolveThread(t) {
|
|
@@ -65026,7 +65036,7 @@ class Ud {
|
|
|
65026
65036
|
} catch {
|
|
65027
65037
|
}
|
|
65028
65038
|
}, o = this._editor.registerCommand(
|
|
65029
|
-
|
|
65039
|
+
_R,
|
|
65030
65040
|
(a) => (e !== void 0 && s !== void 0 && (a ? (console.log("Comments connected!"), e()) : (console.log("Comments disconnected!"), s())), !1),
|
|
65031
65041
|
Rr
|
|
65032
65042
|
), r = (a, l) => {
|
|
@@ -65093,7 +65103,7 @@ class Ud {
|
|
|
65093
65103
|
});
|
|
65094
65104
|
}
|
|
65095
65105
|
}
|
|
65096
|
-
function
|
|
65106
|
+
function SR(c) {
|
|
65097
65107
|
const [t, n] = Dt(
|
|
65098
65108
|
c.getComments()
|
|
65099
65109
|
);
|
|
@@ -65101,10 +65111,10 @@ function vR(c) {
|
|
|
65101
65111
|
n(c.getComments());
|
|
65102
65112
|
}), [c]), t;
|
|
65103
65113
|
}
|
|
65104
|
-
const
|
|
65114
|
+
const ER = {
|
|
65105
65115
|
...q0,
|
|
65106
65116
|
paragraph: "CommentEditorTheme__paragraph"
|
|
65107
|
-
},
|
|
65117
|
+
}, CR = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjNWY2MzY4Ij48cGF0aCBkPSJNNDQwLTQwMGg4MHYtMTIwaDEyMHYtODBINTIwdi0xMjBoLTgwdjEyMEgzMjB2ODBoMTIwdjEyMFpNODAtODB2LTcyMHEwLTMzIDIzLjUtNTYuNVQxNjAtODgwaDY0MHEzMyAwIDU2LjUgMjMuNVQ4ODAtODAwdjQ4MHEwIDMzLTIzLjUgNTYuNVQ4MDAtMjQwSDI0MEw4MC04MFptMTI2LTI0MGg1OTR2LTQ4MEgxNjB2NTI1bDQ2LTQ1Wm0tNDYgMHYtNDgwIDQ4MFoiLz48L3N2Zz4K", TR = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMTIyLjg4MXB4IiBoZWlnaHQ9Ijg5Ljg0MnB4IiB2aWV3Qm94PSIwIDAgMTIyLjg4MSA4OS44NDIiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDEyMi44ODEgODkuODQyIiB4bWw6c3BhY2U9InByZXNlcnZlIj48Zz48cGF0aCBkPSJNMS4yMzIsNTUuNTQxYy0xLjUzMy0xLjM4OC0xLjY1Mi0zLjc1Ni0wLjI2NS01LjI4OWMxLjM4OC0xLjUzNCwzLjc1Ni0xLjY1Miw1LjI5LTAuMjY1bDM0LjA1MywzMC44NzhsNzYuMDk5LTc5LjY5OSBjMS40MjktMS41MDEsMy44MDQtMS41NjEsNS4zMDUtMC4xMzJjMS41MDIsMS40MjgsMS41NjEsMy44MDMsMC4xMzMsNS4zMDVMNDMuMjIzLDg4LjY4M2wtMC4wMDUtMC4wMDUgYy0xLjM5NiwxLjQ2OC0zLjcxNiwxLjU2My01LjIyNywwLjE5NkwxLjIzMiw1NS41NDFMMS4yMzIsNTUuNTQxeiIvPjwvZz48L3N2Zz4=", kR = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIFVwbG9hZGVkIHRvOiBTVkcgUmVwbywgd3d3LnN2Z3JlcG8uY29tLCBHZW5lcmF0b3I6IFNWRyBSZXBvIE1peGVyIFRvb2xzIC0tPgo8c3ZnIGZpbGw9IiMwMDAwMDAiIGhlaWdodD0iODAwcHgiIHdpZHRoPSI4MDBweCIgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiAKCSB2aWV3Qm94PSIwIDAgNDkwIDQ5MCIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+Cjxwb2x5Z29uIHBvaW50cz0iNDU2Ljg1MSwwIDI0NSwyMTIuNTY0IDMzLjE0OSwwIDAuNzA4LDMyLjMzNyAyMTIuNjY5LDI0NS4wMDQgMC43MDgsNDU3LjY3OCAzMy4xNDksNDkwIDI0NSwyNzcuNDQzIDQ1Ni44NTEsNDkwIAoJNDg5LjI5Miw0NTcuNjc4IDI3Ny4zMzEsMjQ1LjAwNCA0ODkuMjkyLDMyLjMzNyAiLz4KPC9zdmc+", OR = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? as : qt;
|
|
65108
65118
|
let x2 = class {
|
|
65109
65119
|
constructor(t) {
|
|
65110
65120
|
this.key = t, this.ref = { current: null }, this.setRefElement = this.setRefElement.bind(this);
|
|
@@ -65124,7 +65134,7 @@ function Hx(c, t) {
|
|
|
65124
65134
|
const n = c.getBoundingClientRect(), e = t.getBoundingClientRect();
|
|
65125
65135
|
return n.top > e.top && n.top < e.bottom;
|
|
65126
65136
|
}
|
|
65127
|
-
function
|
|
65137
|
+
function NR(c, t, n, e) {
|
|
65128
65138
|
const [s] = Nn();
|
|
65129
65139
|
qt(() => {
|
|
65130
65140
|
if (t != null && c != null) {
|
|
@@ -65153,7 +65163,7 @@ function CR(c, t, n, e) {
|
|
|
65153
65163
|
}, [t, s, e, n, c]);
|
|
65154
65164
|
}
|
|
65155
65165
|
const qx = Ao();
|
|
65156
|
-
function
|
|
65166
|
+
function AR({ close: c, editor: t, anchorElementRef: n, resolution: e, options: s, menuRenderFn: o, onSelectOption: r, shouldSplitNodeWithQuery: a = !1, commandPriority: l = Rr }) {
|
|
65157
65167
|
const [i, d] = Dt(null), u = e.match && e.match.matchingString;
|
|
65158
65168
|
qt(() => {
|
|
65159
65169
|
d(0);
|
|
@@ -65190,7 +65200,7 @@ function TR({ close: c, editor: t, anchorElementRef: n, resolution: e, options:
|
|
|
65190
65200
|
return qt(() => () => {
|
|
65191
65201
|
const h = t.getRootElement();
|
|
65192
65202
|
h !== null && h.removeAttribute("aria-activedescendant");
|
|
65193
|
-
}, [t]),
|
|
65203
|
+
}, [t]), OR(() => {
|
|
65194
65204
|
s === null ? d(null) : i === null && p(0);
|
|
65195
65205
|
}, [s, i, p]), qt(() => Wr(t.registerCommand(qx, ({ option: h }) => !(!h.ref || h.ref.current == null) && (Ux(h.ref.current), !0), l)), [t, p, l]), qt(() => Wr(t.registerCommand(Gd, (h) => {
|
|
65196
65206
|
const m = h;
|
|
@@ -65218,10 +65228,10 @@ function TR({ close: c, editor: t, anchorElementRef: n, resolution: e, options:
|
|
|
65218
65228
|
return s !== null && i !== null && s[i] != null && (m.preventDefault(), m.stopImmediatePropagation(), f(s[i]), !0);
|
|
65219
65229
|
}, l), t.registerCommand(Bl, (h) => s !== null && i !== null && s[i] != null && (h !== null && (h.preventDefault(), h.stopImmediatePropagation()), f(s[i]), !0), l)), [f, c, t, s, i, p, l]), o(n, Lr(() => ({ options: s, selectOptionAndCleanUp: f, selectedIndex: i, setHighlightedIndex: d }), [f, i, s]), e.match ? e.match.matchingString : "");
|
|
65220
65230
|
}
|
|
65221
|
-
const
|
|
65231
|
+
const jR = `\\.,\\+\\*\\?\\$\\@\\|#{}\\(\\)\\^\\-\\[\\]\\\\/!%'"~=<>_:;`;
|
|
65222
65232
|
function w2(c, { minLength: t = 1, maxLength: n = 75 }) {
|
|
65223
65233
|
return mn((e) => {
|
|
65224
|
-
const s = new RegExp("(^|\\s|\\()([" + c + "]((?:" + ("[^" + c +
|
|
65234
|
+
const s = new RegExp("(^|\\s|\\()([" + c + "]((?:" + ("[^" + c + jR + "\\s]") + "){0," + n + "}))$").exec(e);
|
|
65225
65235
|
if (s !== null) {
|
|
65226
65236
|
const o = s[1], r = s[3];
|
|
65227
65237
|
if (r.length >= t)
|
|
@@ -65257,7 +65267,7 @@ function S2({ options: c, onQueryChange: t, onSelectOption: n, onOpen: e, onClos
|
|
|
65257
65267
|
const y = mn((w) => {
|
|
65258
65268
|
g !== null && (w || v(null));
|
|
65259
65269
|
}, [g, v]);
|
|
65260
|
-
return
|
|
65270
|
+
return NR(g, S.current, x, y), S;
|
|
65261
65271
|
}(u, f, a, i), h = mn(() => {
|
|
65262
65272
|
f(null), s != null && u !== null && s();
|
|
65263
65273
|
}, [s, u]), m = mn((g) => {
|
|
@@ -65316,16 +65326,16 @@ function S2({ options: c, onQueryChange: t, onSelectOption: n, onOpen: e, onClos
|
|
|
65316
65326
|
return () => {
|
|
65317
65327
|
g();
|
|
65318
65328
|
};
|
|
65319
|
-
}, [d, r, t, u, h, m]), u === null || d === null ? null : ge.jsx(
|
|
65329
|
+
}, [d, r, t, u, h, m]), u === null || d === null ? null : ge.jsx(AR, { close: h, resolution: u, editor: d, anchorElementRef: p, options: c, menuRenderFn: o, shouldSplitNodeWithQuery: !0, onSelectOption: n, commandPriority: l });
|
|
65320
65330
|
}
|
|
65321
|
-
const E2 = `\\.,\\+\\*\\?\\$\\@\\|#{}\\(\\)\\^\\-\\[\\]\\\\/!%'"~=<>_:;`,
|
|
65322
|
-
NAME:
|
|
65331
|
+
const E2 = `\\.,\\+\\*\\?\\$\\@\\|#{}\\(\\)\\^\\-\\[\\]\\\\/!%'"~=<>_:;`, IR = "\\b[A-Z][^\\s" + E2 + "]", PR = {
|
|
65332
|
+
NAME: IR,
|
|
65323
65333
|
PUNCTUATION: E2
|
|
65324
|
-
}, C2 =
|
|
65325
|
-
"(^|\\s|\\()([" + fb + "]((?:" + T2 +
|
|
65326
|
-
),
|
|
65327
|
-
"(^|\\s|\\()([" + fb + "]((?:" + T2 + "){0," +
|
|
65328
|
-
),
|
|
65334
|
+
}, C2 = PR.PUNCTUATION, fb = ["@"].join(""), T2 = "[^" + fb + C2 + "\\s]", MR = "(?:\\.[ |$]| |[" + C2 + "]|)", RR = 75, DR = new RegExp(
|
|
65335
|
+
"(^|\\s|\\()([" + fb + "]((?:" + T2 + MR + "){0," + RR + "}))$"
|
|
65336
|
+
), LR = 50, FR = new RegExp(
|
|
65337
|
+
"(^|\\s|\\()([" + fb + "]((?:" + T2 + "){0," + LR + "}))$"
|
|
65338
|
+
), BR = 5, Qm = /* @__PURE__ */ new Map(), zR = {
|
|
65329
65339
|
search(c, t, n) {
|
|
65330
65340
|
setTimeout(() => {
|
|
65331
65341
|
const e = c.filter(
|
|
@@ -65335,7 +65345,7 @@ const E2 = `\\.,\\+\\*\\?\\$\\@\\|#{}\\(\\)\\^\\-\\[\\]\\\\/!%'"~=<>_:;`, OR = "
|
|
|
65335
65345
|
}, 500);
|
|
65336
65346
|
}
|
|
65337
65347
|
};
|
|
65338
|
-
function
|
|
65348
|
+
function $R(c, t) {
|
|
65339
65349
|
const [n, e] = Dt([]);
|
|
65340
65350
|
return qt(() => {
|
|
65341
65351
|
const s = Qm.get(c);
|
|
@@ -65348,15 +65358,15 @@ function LR(c, t) {
|
|
|
65348
65358
|
e(s);
|
|
65349
65359
|
return;
|
|
65350
65360
|
}
|
|
65351
|
-
Qm.set(c, null),
|
|
65361
|
+
Qm.set(c, null), zR.search(t, c, (o) => {
|
|
65352
65362
|
Qm.set(c, o), e(o);
|
|
65353
65363
|
});
|
|
65354
65364
|
}
|
|
65355
65365
|
}, [c, t]), n;
|
|
65356
65366
|
}
|
|
65357
|
-
function
|
|
65358
|
-
let n =
|
|
65359
|
-
if (n === null && (n =
|
|
65367
|
+
function UR(c, t) {
|
|
65368
|
+
let n = DR.exec(c);
|
|
65369
|
+
if (n === null && (n = FR.exec(c)), n !== null) {
|
|
65360
65370
|
const e = n[1], s = n[3];
|
|
65361
65371
|
if (s.length >= t)
|
|
65362
65372
|
return {
|
|
@@ -65367,10 +65377,10 @@ function FR(c, t) {
|
|
|
65367
65377
|
}
|
|
65368
65378
|
return null;
|
|
65369
65379
|
}
|
|
65370
|
-
function
|
|
65371
|
-
return
|
|
65380
|
+
function HR(c) {
|
|
65381
|
+
return UR(c, 1);
|
|
65372
65382
|
}
|
|
65373
|
-
class
|
|
65383
|
+
class qR extends x2 {
|
|
65374
65384
|
constructor(n, e, s) {
|
|
65375
65385
|
super(n);
|
|
65376
65386
|
Un(this, "name");
|
|
@@ -65379,7 +65389,7 @@ class zR extends x2 {
|
|
|
65379
65389
|
this.name = n, this.email = e, this.picture = s;
|
|
65380
65390
|
}
|
|
65381
65391
|
}
|
|
65382
|
-
function
|
|
65392
|
+
function WR({
|
|
65383
65393
|
index: c,
|
|
65384
65394
|
isSelected: t,
|
|
65385
65395
|
onClick: n,
|
|
@@ -65406,20 +65416,20 @@ function $R({
|
|
|
65406
65416
|
s.key
|
|
65407
65417
|
);
|
|
65408
65418
|
}
|
|
65409
|
-
function
|
|
65419
|
+
function JR({
|
|
65410
65420
|
mentionItems: c,
|
|
65411
65421
|
setmentionedEmails: t
|
|
65412
65422
|
}) {
|
|
65413
|
-
const [n] = Nn(), [e, s] = Dt(null), o =
|
|
65423
|
+
const [n] = Nn(), [e, s] = Dt(null), o = $R(e, c), r = w2("/", {
|
|
65414
65424
|
minLength: 0
|
|
65415
65425
|
}), a = Lr(
|
|
65416
65426
|
() => o.map(
|
|
65417
|
-
(d) => new
|
|
65427
|
+
(d) => new qR(
|
|
65418
65428
|
d.name,
|
|
65419
65429
|
d.email,
|
|
65420
65430
|
/* @__PURE__ */ ge.jsx("i", { className: "icon user" })
|
|
65421
65431
|
)
|
|
65422
|
-
).slice(0,
|
|
65432
|
+
).slice(0, BR),
|
|
65423
65433
|
[o]
|
|
65424
65434
|
), l = mn(
|
|
65425
65435
|
(d, u, f) => {
|
|
@@ -65430,7 +65440,7 @@ function UR({
|
|
|
65430
65440
|
},
|
|
65431
65441
|
[n]
|
|
65432
65442
|
), i = mn(
|
|
65433
|
-
(d) => r(d, n) !== null ? null :
|
|
65443
|
+
(d) => r(d, n) !== null ? null : HR(d),
|
|
65434
65444
|
[r, n]
|
|
65435
65445
|
);
|
|
65436
65446
|
return /* @__PURE__ */ ge.jsx(
|
|
@@ -65442,7 +65452,7 @@ function UR({
|
|
|
65442
65452
|
options: a,
|
|
65443
65453
|
menuRenderFn: (d, { selectedIndex: u, selectOptionAndCleanUp: f, setHighlightedIndex: p }) => d.current && o.length ? wh.createPortal(
|
|
65444
65454
|
/* @__PURE__ */ ge.jsx("div", { className: "typeahead-popover mentions-menu", children: /* @__PURE__ */ ge.jsx("ul", { children: a.map((h, m) => /* @__PURE__ */ ge.jsx(
|
|
65445
|
-
|
|
65455
|
+
WR,
|
|
65446
65456
|
{
|
|
65447
65457
|
index: m,
|
|
65448
65458
|
isSelected: u === m,
|
|
@@ -65462,7 +65472,7 @@ function UR({
|
|
|
65462
65472
|
);
|
|
65463
65473
|
}
|
|
65464
65474
|
const Wx = Ao();
|
|
65465
|
-
function
|
|
65475
|
+
function VR({
|
|
65466
65476
|
anchorKey: c,
|
|
65467
65477
|
editor: t,
|
|
65468
65478
|
onAddComment: n
|
|
@@ -65484,11 +65494,11 @@ function HR({
|
|
|
65484
65494
|
style: { display: "flex", justifyContent: "center", alignItems: "center" },
|
|
65485
65495
|
className: "CommentPlugin_AddCommentBox_button",
|
|
65486
65496
|
onClick: n,
|
|
65487
|
-
children: /* @__PURE__ */ ge.jsx("img", { src:
|
|
65497
|
+
children: /* @__PURE__ */ ge.jsx("img", { src: CR, alt: "" })
|
|
65488
65498
|
}
|
|
65489
65499
|
) });
|
|
65490
65500
|
}
|
|
65491
|
-
function
|
|
65501
|
+
function KR({
|
|
65492
65502
|
onEscape: c
|
|
65493
65503
|
}) {
|
|
65494
65504
|
const [t] = Nn();
|
|
@@ -65514,7 +65524,7 @@ function k2({
|
|
|
65514
65524
|
onError: (i) => {
|
|
65515
65525
|
throw i;
|
|
65516
65526
|
},
|
|
65517
|
-
theme:
|
|
65527
|
+
theme: ER
|
|
65518
65528
|
};
|
|
65519
65529
|
return qt(() => () => {
|
|
65520
65530
|
a([]);
|
|
@@ -65531,11 +65541,11 @@ function k2({
|
|
|
65531
65541
|
/* @__PURE__ */ ge.jsx(WE, { onChange: e }),
|
|
65532
65542
|
/* @__PURE__ */ ge.jsx(Hh, {}),
|
|
65533
65543
|
t !== !1 && /* @__PURE__ */ ge.jsx(W0, {}),
|
|
65534
|
-
/* @__PURE__ */ ge.jsx(
|
|
65544
|
+
/* @__PURE__ */ ge.jsx(KR, { onEscape: n }),
|
|
65535
65545
|
/* @__PURE__ */ ge.jsx(qE, {}),
|
|
65536
|
-
s !== void 0 && /* @__PURE__ */ ge.jsx(
|
|
65546
|
+
s !== void 0 && /* @__PURE__ */ ge.jsx(AM, { editorRef: s })
|
|
65537
65547
|
] }),
|
|
65538
|
-
/* @__PURE__ */ ge.jsx(
|
|
65548
|
+
/* @__PURE__ */ ge.jsx(JR, { mentionItems: r, setmentionedEmails: a })
|
|
65539
65549
|
] });
|
|
65540
65550
|
}
|
|
65541
65551
|
function O2(c, t) {
|
|
@@ -65548,7 +65558,7 @@ function O2(c, t) {
|
|
|
65548
65558
|
[t, c]
|
|
65549
65559
|
);
|
|
65550
65560
|
}
|
|
65551
|
-
function
|
|
65561
|
+
function GR({
|
|
65552
65562
|
editor: c,
|
|
65553
65563
|
cancelAddComment: t,
|
|
65554
65564
|
submitAddComment: n,
|
|
@@ -65658,7 +65668,7 @@ function WR({
|
|
|
65658
65668
|
] })
|
|
65659
65669
|
] });
|
|
65660
65670
|
}
|
|
65661
|
-
function
|
|
65671
|
+
function YR({
|
|
65662
65672
|
submitAddComment: c,
|
|
65663
65673
|
thread: t,
|
|
65664
65674
|
placeholder: n,
|
|
@@ -65790,7 +65800,7 @@ function Jx({
|
|
|
65790
65800
|
] })
|
|
65791
65801
|
] });
|
|
65792
65802
|
}
|
|
65793
|
-
function
|
|
65803
|
+
function ZR({
|
|
65794
65804
|
activeIDs: c,
|
|
65795
65805
|
comments: t,
|
|
65796
65806
|
deleteCommentOrThread: n,
|
|
@@ -65860,7 +65870,7 @@ function VR({
|
|
|
65860
65870
|
"img",
|
|
65861
65871
|
{
|
|
65862
65872
|
className: `add-toolbar-image-icon CommentPlugin_CommentsPanel_List_ResolveButton ${E != null && E.resolved ? "opacity-full" : ""}`,
|
|
65863
|
-
src:
|
|
65873
|
+
src: TR,
|
|
65864
65874
|
alt: "Resolve Comment",
|
|
65865
65875
|
onClick: () => l(E)
|
|
65866
65876
|
}
|
|
@@ -65898,7 +65908,7 @@ function VR({
|
|
|
65898
65908
|
C.id
|
|
65899
65909
|
)) }),
|
|
65900
65910
|
/* @__PURE__ */ ge.jsx("div", { className: "CommentPlugin_CommentsPanel_List_Thread_Editor", children: !(E != null && E.resolved) && /* @__PURE__ */ ge.jsx("div", { className: "CommentPlugin_CommentsPanel_List_Thread_Editor", children: /* @__PURE__ */ ge.jsx(
|
|
65901
|
-
|
|
65911
|
+
YR,
|
|
65902
65912
|
{
|
|
65903
65913
|
submitAddComment: s,
|
|
65904
65914
|
thread: E,
|
|
@@ -65928,7 +65938,7 @@ function VR({
|
|
|
65928
65938
|
);
|
|
65929
65939
|
}) : /* @__PURE__ */ ge.jsx("div", { className: "CommentPlugin_CommentsPanel_Empty", children: "No Comments" }) });
|
|
65930
65940
|
}
|
|
65931
|
-
function
|
|
65941
|
+
function QR({
|
|
65932
65942
|
activeIDs: c,
|
|
65933
65943
|
deleteCommentOrThread: t,
|
|
65934
65944
|
comments: n,
|
|
@@ -65954,13 +65964,13 @@ function KR({
|
|
|
65954
65964
|
className: "CommentPlugin_CommentsPanel_close_icon",
|
|
65955
65965
|
width: 12,
|
|
65956
65966
|
height: 12,
|
|
65957
|
-
src:
|
|
65967
|
+
src: kR,
|
|
65958
65968
|
alt: ""
|
|
65959
65969
|
}
|
|
65960
65970
|
)
|
|
65961
65971
|
] }),
|
|
65962
65972
|
h ? /* @__PURE__ */ ge.jsx("div", { className: "CommentPlugin_CommentsPanel_Empty", children: "No Comments" }) : /* @__PURE__ */ ge.jsx(
|
|
65963
|
-
|
|
65973
|
+
ZR,
|
|
65964
65974
|
{
|
|
65965
65975
|
activeIDs: c,
|
|
65966
65976
|
comments: n,
|
|
@@ -65995,7 +66005,7 @@ function j2({
|
|
|
65995
66005
|
setmentionedEmails: l,
|
|
65996
66006
|
wpAndTaskId: i
|
|
65997
66007
|
}) {
|
|
65998
|
-
const d = eb(), [u] = Nn(), f = Lr(() => (u != null && u._commentStore || (u._commentStore = new Ud(u)), u == null ? void 0 : u._commentStore), [u]), p =
|
|
66008
|
+
const d = eb(), [u] = Nn(), f = Lr(() => (u != null && u._commentStore || (u._commentStore = new Ud(u)), u == null ? void 0 : u._commentStore), [u]), p = SR(f), h = Lr(() => /* @__PURE__ */ new Map(), []), [m, g] = Dt(), [v, b] = Dt([]), [_, E] = Dt(!1), { yjsDocMap: S } = d;
|
|
65999
66009
|
qt(() => {
|
|
66000
66010
|
if (c) {
|
|
66001
66011
|
const F = c("comments", S);
|
|
@@ -66124,7 +66134,7 @@ function j2({
|
|
|
66124
66134
|
return /* @__PURE__ */ ge.jsxs(ge.Fragment, { children: [
|
|
66125
66135
|
_ && Na(
|
|
66126
66136
|
/* @__PURE__ */ ge.jsx(
|
|
66127
|
-
|
|
66137
|
+
GR,
|
|
66128
66138
|
{
|
|
66129
66139
|
editor: u,
|
|
66130
66140
|
cancelAddComment: x,
|
|
@@ -66141,7 +66151,7 @@ function j2({
|
|
|
66141
66151
|
),
|
|
66142
66152
|
m != null && !_ && Na(
|
|
66143
66153
|
/* @__PURE__ */ ge.jsx(
|
|
66144
|
-
|
|
66154
|
+
VR,
|
|
66145
66155
|
{
|
|
66146
66156
|
anchorKey: m,
|
|
66147
66157
|
editor: u,
|
|
@@ -66152,7 +66162,7 @@ function j2({
|
|
|
66152
66162
|
),
|
|
66153
66163
|
n && Na(
|
|
66154
66164
|
/* @__PURE__ */ ge.jsx(
|
|
66155
|
-
|
|
66165
|
+
QR,
|
|
66156
66166
|
{
|
|
66157
66167
|
comments: p,
|
|
66158
66168
|
submitAddComment: w,
|
|
@@ -66188,7 +66198,7 @@ const I2 = ({ type: c }) => /* @__PURE__ */ ge.jsx("div", { className: "spinner-
|
|
|
66188
66198
|
return () => a();
|
|
66189
66199
|
}, [t, r]), null;
|
|
66190
66200
|
}, Vx = bC([...rE]);
|
|
66191
|
-
function
|
|
66201
|
+
function XR({ htmlString: c }) {
|
|
66192
66202
|
const [t] = Nn();
|
|
66193
66203
|
return qt(() => {
|
|
66194
66204
|
c && t.update(() => {
|
|
@@ -66227,7 +66237,7 @@ function GR({ htmlString: c }) {
|
|
|
66227
66237
|
});
|
|
66228
66238
|
}, [t, c]), null;
|
|
66229
66239
|
}
|
|
66230
|
-
function
|
|
66240
|
+
function eD({
|
|
66231
66241
|
htmlString: c
|
|
66232
66242
|
}) {
|
|
66233
66243
|
const [t] = Nn();
|
|
@@ -66266,7 +66276,7 @@ function YR({
|
|
|
66266
66276
|
});
|
|
66267
66277
|
}, [t, c]), null;
|
|
66268
66278
|
}
|
|
66269
|
-
function
|
|
66279
|
+
function tD({ setEditorEditable: c, htmlString: t, isEditable: n, setIsexistingIdPresent: e }) {
|
|
66270
66280
|
const [s] = Nn();
|
|
66271
66281
|
return er({}), qt(() => {
|
|
66272
66282
|
s.update(() => {
|
|
@@ -66295,7 +66305,7 @@ function ZR({ setEditorEditable: c, htmlString: t, isEditable: n, setIsexistingI
|
|
|
66295
66305
|
});
|
|
66296
66306
|
}, [s, t]), null;
|
|
66297
66307
|
}
|
|
66298
|
-
function
|
|
66308
|
+
function FD({
|
|
66299
66309
|
initialEditorState: c,
|
|
66300
66310
|
userObj: t,
|
|
66301
66311
|
CollabApiKey: n,
|
|
@@ -66491,9 +66501,9 @@ function MD({
|
|
|
66491
66501
|
return /* @__PURE__ */ ge.jsx(ge.Fragment, { children: ee ? /* @__PURE__ */ ge.jsxs(Uh, { initialConfig: Te, children: [
|
|
66492
66502
|
/* @__PURE__ */ ge.jsx(lS, { children: /* @__PURE__ */ ge.jsx(oE, { children: /* @__PURE__ */ ge.jsxs("div", { ref: x, className: "editor-shell", style: { position: "relative" }, children: [
|
|
66493
66503
|
/* @__PURE__ */ ge.jsxs(ge.Fragment, { children: [
|
|
66494
|
-
/* @__PURE__ */ ge.jsx(
|
|
66495
|
-
/* @__PURE__ */ ge.jsx(
|
|
66496
|
-
/* @__PURE__ */ ge.jsx(
|
|
66504
|
+
/* @__PURE__ */ ge.jsx(tD, { setEditorEditable: Je, isEditable: b, htmlString: c }),
|
|
66505
|
+
/* @__PURE__ */ ge.jsx(eD, { htmlString: c }),
|
|
66506
|
+
/* @__PURE__ */ ge.jsx(XR, { htmlString: c }),
|
|
66497
66507
|
/* @__PURE__ */ ge.jsx(
|
|
66498
66508
|
j2,
|
|
66499
66509
|
{
|
|
@@ -66605,8 +66615,8 @@ function MD({
|
|
|
66605
66615
|
i && /* @__PURE__ */ ge.jsx(kC, { styleConfig: i })
|
|
66606
66616
|
] }, e) : /* @__PURE__ */ ge.jsx(I2, {}) });
|
|
66607
66617
|
}
|
|
66608
|
-
const
|
|
66609
|
-
let
|
|
66618
|
+
const nD = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? as : qt;
|
|
66619
|
+
let rD = class {
|
|
66610
66620
|
constructor(t) {
|
|
66611
66621
|
this.key = t, this.ref = { current: null }, this.setRefElement = this.setRefElement.bind(this);
|
|
66612
66622
|
}
|
|
@@ -66625,7 +66635,7 @@ function Gx(c, t) {
|
|
|
66625
66635
|
const n = c.getBoundingClientRect(), e = t.getBoundingClientRect();
|
|
66626
66636
|
return n.top > e.top && n.top < e.bottom;
|
|
66627
66637
|
}
|
|
66628
|
-
function
|
|
66638
|
+
function oD(c, t, n, e) {
|
|
66629
66639
|
const [s] = Nn();
|
|
66630
66640
|
qt(() => {
|
|
66631
66641
|
if (t != null && c != null) {
|
|
@@ -66654,7 +66664,7 @@ function eD(c, t, n, e) {
|
|
|
66654
66664
|
}, [t, s, e, n, c]);
|
|
66655
66665
|
}
|
|
66656
66666
|
const Yx = Ao();
|
|
66657
|
-
function
|
|
66667
|
+
function iD({ close: c, editor: t, anchorElementRef: n, resolution: e, options: s, menuRenderFn: o, onSelectOption: r, shouldSplitNodeWithQuery: a = !1, commandPriority: l = Rr }) {
|
|
66658
66668
|
const [i, d] = Dt(null), u = e.match && e.match.matchingString;
|
|
66659
66669
|
qt(() => {
|
|
66660
66670
|
d(0);
|
|
@@ -66691,7 +66701,7 @@ function tD({ close: c, editor: t, anchorElementRef: n, resolution: e, options:
|
|
|
66691
66701
|
return qt(() => () => {
|
|
66692
66702
|
const h = t.getRootElement();
|
|
66693
66703
|
h !== null && h.removeAttribute("aria-activedescendant");
|
|
66694
|
-
}, [t]),
|
|
66704
|
+
}, [t]), nD(() => {
|
|
66695
66705
|
s === null ? d(null) : i === null && p(0);
|
|
66696
66706
|
}, [s, i, p]), qt(() => Wr(t.registerCommand(Yx, ({ option: h }) => !(!h.ref || h.ref.current == null) && (Kx(h.ref.current), !0), l)), [t, p, l]), qt(() => Wr(t.registerCommand(Gd, (h) => {
|
|
66697
66707
|
const m = h;
|
|
@@ -66719,7 +66729,7 @@ function tD({ close: c, editor: t, anchorElementRef: n, resolution: e, options:
|
|
|
66719
66729
|
return s !== null && i !== null && s[i] != null && (m.preventDefault(), m.stopImmediatePropagation(), f(s[i]), !0);
|
|
66720
66730
|
}, l), t.registerCommand(Bl, (h) => s !== null && i !== null && s[i] != null && (h !== null && (h.preventDefault(), h.stopImmediatePropagation()), f(s[i]), !0), l)), [f, c, t, s, i, p, l]), o(n, Lr(() => ({ options: s, selectOptionAndCleanUp: f, selectedIndex: i, setHighlightedIndex: d }), [f, i, s]), e.match ? e.match.matchingString : "");
|
|
66721
66731
|
}
|
|
66722
|
-
function
|
|
66732
|
+
function aD({ options: c, nodeKey: t, onClose: n, onOpen: e, onSelectOption: s, menuRenderFn: o, anchorClassName: r, commandPriority: a = Rr, parent: l }) {
|
|
66723
66733
|
const [i] = Nn(), [d, u] = Dt(null), f = function(g, v, b, _ = document.body) {
|
|
66724
66734
|
const [E] = Nn(), S = er(document.createElement("div")), x = mn(() => {
|
|
66725
66735
|
S.current.style.top = S.current.style.bottom;
|
|
@@ -66746,7 +66756,7 @@ function nD({ options: c, nodeKey: t, onClose: n, onOpen: e, onSelectOption: s,
|
|
|
66746
66756
|
const y = mn((w) => {
|
|
66747
66757
|
g !== null && (w || v(null));
|
|
66748
66758
|
}, [g, v]);
|
|
66749
|
-
return
|
|
66759
|
+
return oD(g, S.current, x, y), S;
|
|
66750
66760
|
}(d, u, r, l), p = mn(() => {
|
|
66751
66761
|
u(null), n != null && d !== null && n();
|
|
66752
66762
|
}, [n, d]), h = mn((g) => {
|
|
@@ -66765,15 +66775,15 @@ function nD({ options: c, nodeKey: t, onClose: n, onOpen: e, onSelectOption: s,
|
|
|
66765
66775
|
return i.registerUpdateListener(({ dirtyElements: g }) => {
|
|
66766
66776
|
g.get(t) && m();
|
|
66767
66777
|
});
|
|
66768
|
-
}, [i, m, t]), d === null || i === null ? null : ge.jsx(
|
|
66778
|
+
}, [i, m, t]), d === null || i === null ? null : ge.jsx(iD, { close: p, resolution: d, editor: i, anchorElementRef: f, options: c, menuRenderFn: o, onSelectOption: s, commandPriority: a });
|
|
66769
66779
|
}
|
|
66770
|
-
const
|
|
66771
|
-
class Zx extends
|
|
66780
|
+
const sD = /((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/, lD = Ao();
|
|
66781
|
+
class Zx extends rD {
|
|
66772
66782
|
constructor(t, n) {
|
|
66773
66783
|
super(t), this.title = t, this.onSelect = n.onSelect.bind(this);
|
|
66774
66784
|
}
|
|
66775
66785
|
}
|
|
66776
|
-
function
|
|
66786
|
+
function cD({ embedConfigs: c, onOpenEmbedModalForConfig: t, getMenuOptions: n, menuRenderFn: e, menuCommandPriority: s = Rr }) {
|
|
66777
66787
|
const [o] = Nn(), [r, a] = Dt(null), [l, i] = Dt(null), d = mn(() => {
|
|
66778
66788
|
a(null), i(null);
|
|
66779
66789
|
}, []), u = mn((m) => {
|
|
@@ -66789,7 +66799,7 @@ function iD({ embedConfigs: c, onOpenEmbedModalForConfig: t, getMenuOptions: n,
|
|
|
66789
66799
|
qt(() => Wr(...[yu, rf].map((m) => o.registerMutationListener(m, (...g) => ((v, { updateTags: b, dirtyLeaves: _ }) => {
|
|
66790
66800
|
for (const [E, S] of v)
|
|
66791
66801
|
S === "created" && b.has("paste") && _.size <= 3 ? u(E) : E === r && d();
|
|
66792
|
-
})(...g)))), [u, o, c, r, d]), qt(() => o.registerCommand(
|
|
66802
|
+
})(...g)))), [u, o, c, r, d]), qt(() => o.registerCommand(lD, (m) => {
|
|
66793
66803
|
const g = c.find(({ type: v }) => v === m);
|
|
66794
66804
|
return !!g && (t(g), !0);
|
|
66795
66805
|
}, jn), [o, c, t]);
|
|
@@ -66811,15 +66821,15 @@ function iD({ embedConfigs: c, onOpenEmbedModalForConfig: t, getMenuOptions: n,
|
|
|
66811
66821
|
m.onSelect(g), v();
|
|
66812
66822
|
});
|
|
66813
66823
|
}, [o]);
|
|
66814
|
-
return r != null ? ge.jsx(
|
|
66824
|
+
return r != null ? ge.jsx(aD, { nodeKey: r, onClose: d, onSelectOption: h, options: p, menuRenderFn: e, commandPriority: s }) : null;
|
|
66815
66825
|
}
|
|
66816
|
-
const
|
|
66826
|
+
const uD = Ao(), dD = Ao(), fD = Ao(), pD = {
|
|
66817
66827
|
contentName: "Youtube Video",
|
|
66818
66828
|
exampleUrl: "https://www.youtube.com/watch?v=jNQXAC9IVRw",
|
|
66819
66829
|
// Icon for display.
|
|
66820
66830
|
icon: /* @__PURE__ */ ge.jsx("i", { className: "icon youtube" }),
|
|
66821
66831
|
insertNode: (c, t) => {
|
|
66822
|
-
c.dispatchCommand(
|
|
66832
|
+
c.dispatchCommand(fD, t.id);
|
|
66823
66833
|
},
|
|
66824
66834
|
keywords: ["youtube", "video"],
|
|
66825
66835
|
// Determine if a given URL is a match and return url data.
|
|
@@ -66831,7 +66841,7 @@ const aD = Ao(), sD = Ao(), lD = Ao(), cD = {
|
|
|
66831
66841
|
} : null;
|
|
66832
66842
|
},
|
|
66833
66843
|
type: "youtube-video"
|
|
66834
|
-
},
|
|
66844
|
+
}, hD = {
|
|
66835
66845
|
// e.g. Tweet or Google Map.
|
|
66836
66846
|
contentName: "Tweet",
|
|
66837
66847
|
exampleUrl: "https://twitter.com/jack/status/20",
|
|
@@ -66839,7 +66849,7 @@ const aD = Ao(), sD = Ao(), lD = Ao(), cD = {
|
|
|
66839
66849
|
icon: /* @__PURE__ */ ge.jsx("i", { className: "icon tweet" }),
|
|
66840
66850
|
// Create the Lexical embed node from the url data.
|
|
66841
66851
|
insertNode: (c, t) => {
|
|
66842
|
-
c.dispatchCommand(
|
|
66852
|
+
c.dispatchCommand(dD, t.id);
|
|
66843
66853
|
},
|
|
66844
66854
|
// For extra searching.
|
|
66845
66855
|
keywords: ["tweet", "twitter"],
|
|
@@ -66854,12 +66864,12 @@ const aD = Ao(), sD = Ao(), lD = Ao(), cD = {
|
|
|
66854
66864
|
} : null;
|
|
66855
66865
|
},
|
|
66856
66866
|
type: "tweet"
|
|
66857
|
-
},
|
|
66867
|
+
}, gD = {
|
|
66858
66868
|
contentName: "Figma Document",
|
|
66859
66869
|
exampleUrl: "https://www.figma.com/file/LKQ4FJ4bTnCSjedbRpk931/Sample-File",
|
|
66860
66870
|
icon: /* @__PURE__ */ ge.jsx("i", { className: "icon figma" }),
|
|
66861
66871
|
insertNode: (c, t) => {
|
|
66862
|
-
c.dispatchCommand(
|
|
66872
|
+
c.dispatchCommand(uD, t.id);
|
|
66863
66873
|
},
|
|
66864
66874
|
keywords: ["figma", "figma.com", "mock-up"],
|
|
66865
66875
|
// Determine if a given URL is a match and return url data.
|
|
@@ -66873,12 +66883,12 @@ const aD = Ao(), sD = Ao(), lD = Ao(), cD = {
|
|
|
66873
66883
|
} : null;
|
|
66874
66884
|
},
|
|
66875
66885
|
type: "figma"
|
|
66876
|
-
},
|
|
66877
|
-
|
|
66878
|
-
|
|
66879
|
-
|
|
66886
|
+
}, mD = [
|
|
66887
|
+
hD,
|
|
66888
|
+
pD,
|
|
66889
|
+
gD
|
|
66880
66890
|
];
|
|
66881
|
-
function
|
|
66891
|
+
function yD({
|
|
66882
66892
|
index: c,
|
|
66883
66893
|
isSelected: t,
|
|
66884
66894
|
onClick: n,
|
|
@@ -66902,14 +66912,14 @@ function pD({
|
|
|
66902
66912
|
s.key
|
|
66903
66913
|
);
|
|
66904
66914
|
}
|
|
66905
|
-
function
|
|
66915
|
+
function bD({
|
|
66906
66916
|
options: c,
|
|
66907
66917
|
selectedItemIndex: t,
|
|
66908
66918
|
onOptionClick: n,
|
|
66909
66919
|
onOptionMouseEnter: e
|
|
66910
66920
|
}) {
|
|
66911
66921
|
return /* @__PURE__ */ ge.jsx("div", { className: "typeahead-popover", children: /* @__PURE__ */ ge.jsx("ul", { children: c.map((s, o) => /* @__PURE__ */ ge.jsx(
|
|
66912
|
-
|
|
66922
|
+
yD,
|
|
66913
66923
|
{
|
|
66914
66924
|
index: o,
|
|
66915
66925
|
isSelected: t === o,
|
|
@@ -66920,7 +66930,7 @@ function hD({
|
|
|
66920
66930
|
s.key
|
|
66921
66931
|
)) }) });
|
|
66922
66932
|
}
|
|
66923
|
-
const
|
|
66933
|
+
const vD = (c, t) => {
|
|
66924
66934
|
let n;
|
|
66925
66935
|
return (e) => {
|
|
66926
66936
|
window.clearTimeout(n), n = window.setTimeout(() => {
|
|
@@ -66928,13 +66938,13 @@ const gD = (c, t) => {
|
|
|
66928
66938
|
}, t);
|
|
66929
66939
|
};
|
|
66930
66940
|
};
|
|
66931
|
-
function
|
|
66941
|
+
function _D({
|
|
66932
66942
|
embedConfig: c,
|
|
66933
66943
|
onClose: t
|
|
66934
66944
|
}) {
|
|
66935
66945
|
const [n, e] = Dt(""), [s] = Nn(), [o, r] = Dt(null), a = Lr(
|
|
66936
|
-
() =>
|
|
66937
|
-
const d =
|
|
66946
|
+
() => vD((i) => {
|
|
66947
|
+
const d = sD.exec(i);
|
|
66938
66948
|
c != null && i != null && d != null ? Promise.resolve(c.parseUrl(i)).then(
|
|
66939
66949
|
(u) => {
|
|
66940
66950
|
r(u);
|
|
@@ -66971,9 +66981,9 @@ function mD({
|
|
|
66971
66981
|
) })
|
|
66972
66982
|
] });
|
|
66973
66983
|
}
|
|
66974
|
-
function
|
|
66984
|
+
function xD() {
|
|
66975
66985
|
const [c, t] = Zl(), n = (s) => {
|
|
66976
|
-
t(`Embed ${s.contentName}`, (o) => /* @__PURE__ */ ge.jsx(
|
|
66986
|
+
t(`Embed ${s.contentName}`, (o) => /* @__PURE__ */ ge.jsx(_D, { embedConfig: s, onClose: o }));
|
|
66977
66987
|
}, e = (s, o, r) => [
|
|
66978
66988
|
new Zx("Dismiss", {
|
|
66979
66989
|
onSelect: r
|
|
@@ -66985,9 +66995,9 @@ function yD() {
|
|
|
66985
66995
|
return /* @__PURE__ */ ge.jsxs(ge.Fragment, { children: [
|
|
66986
66996
|
c,
|
|
66987
66997
|
/* @__PURE__ */ ge.jsx(
|
|
66988
|
-
|
|
66998
|
+
cD,
|
|
66989
66999
|
{
|
|
66990
|
-
embedConfigs:
|
|
67000
|
+
embedConfigs: mD,
|
|
66991
67001
|
onOpenEmbedModalForConfig: n,
|
|
66992
67002
|
getMenuOptions: e,
|
|
66993
67003
|
menuRenderFn: (s, { selectedIndex: o, options: r, selectOptionAndCleanUp: a, setHighlightedIndex: l }) => s.current ? wh.createPortal(
|
|
@@ -67000,7 +67010,7 @@ function yD() {
|
|
|
67000
67010
|
width: 200
|
|
67001
67011
|
},
|
|
67002
67012
|
children: /* @__PURE__ */ ge.jsx(
|
|
67003
|
-
|
|
67013
|
+
bD,
|
|
67004
67014
|
{
|
|
67005
67015
|
options: r,
|
|
67006
67016
|
selectedItemIndex: o,
|
|
@@ -67020,7 +67030,7 @@ function yD() {
|
|
|
67020
67030
|
)
|
|
67021
67031
|
] });
|
|
67022
67032
|
}
|
|
67023
|
-
class
|
|
67033
|
+
class wD extends x2 {
|
|
67024
67034
|
constructor(n, e, s) {
|
|
67025
67035
|
super(n);
|
|
67026
67036
|
Un(this, "title");
|
|
@@ -67029,7 +67039,7 @@ class bD extends x2 {
|
|
|
67029
67039
|
this.title = n, this.emoji = e, this.keywords = s.keywords || [];
|
|
67030
67040
|
}
|
|
67031
67041
|
}
|
|
67032
|
-
function
|
|
67042
|
+
function SD({
|
|
67033
67043
|
index: c,
|
|
67034
67044
|
isSelected: t,
|
|
67035
67045
|
onClick: n,
|
|
@@ -67057,15 +67067,15 @@ function vD({
|
|
|
67057
67067
|
s.key
|
|
67058
67068
|
);
|
|
67059
67069
|
}
|
|
67060
|
-
const
|
|
67061
|
-
function
|
|
67070
|
+
const ED = 10;
|
|
67071
|
+
function CD() {
|
|
67062
67072
|
const [c] = Nn(), [t, n] = Dt(null), [e, s] = Dt([]);
|
|
67063
67073
|
qt(() => {
|
|
67064
67074
|
import("./emoji-list-48028e71.js").then((i) => s(i.default));
|
|
67065
67075
|
}, []);
|
|
67066
67076
|
const o = Lr(
|
|
67067
67077
|
() => e != null ? e.map(
|
|
67068
|
-
({ emoji: i, aliases: d, tags: u }) => new
|
|
67078
|
+
({ emoji: i, aliases: d, tags: u }) => new wD(d[0], i, {
|
|
67069
67079
|
keywords: [...d, ...u]
|
|
67070
67080
|
})
|
|
67071
67081
|
) : [],
|
|
@@ -67074,7 +67084,7 @@ function xD() {
|
|
|
67074
67084
|
minLength: 0
|
|
67075
67085
|
}), a = Lr(() => o.filter((i) => t != null ? new RegExp(t, "gi").exec(i.title) || i.keywords != null ? i.keywords.some(
|
|
67076
67086
|
(d) => new RegExp(t, "gi").exec(d)
|
|
67077
|
-
) : !1 : o).slice(0,
|
|
67087
|
+
) : !1 : o).slice(0, ED), [o, t]), l = mn(
|
|
67078
67088
|
(i, d, u) => {
|
|
67079
67089
|
c.update(() => {
|
|
67080
67090
|
const f = It();
|
|
@@ -67092,7 +67102,7 @@ function xD() {
|
|
|
67092
67102
|
options: a,
|
|
67093
67103
|
menuRenderFn: (i, { selectedIndex: d, selectOptionAndCleanUp: u, setHighlightedIndex: f }) => i.current == null || a.length === 0 ? null : i.current && a.length ? wh.createPortal(
|
|
67094
67104
|
/* @__PURE__ */ ge.jsx("div", { className: "typeahead-popover emoji-menu", children: /* @__PURE__ */ ge.jsx("ul", { children: a.map((p, h) => /* @__PURE__ */ ge.jsx("div", { children: /* @__PURE__ */ ge.jsx(
|
|
67095
|
-
|
|
67105
|
+
SD,
|
|
67096
67106
|
{
|
|
67097
67107
|
index: h,
|
|
67098
67108
|
isSelected: d === h,
|
|
@@ -67120,7 +67130,7 @@ const Qx = /* @__PURE__ */ new Map([
|
|
|
67120
67130
|
["🙁", ["emoji unhappysmile", "🙁"]],
|
|
67121
67131
|
["❤", ["emoji heart", "❤"]]
|
|
67122
67132
|
]);
|
|
67123
|
-
function
|
|
67133
|
+
function TD(c) {
|
|
67124
67134
|
const t = c.getTextContent();
|
|
67125
67135
|
for (let n = 0; n < t.length; n++) {
|
|
67126
67136
|
const e = Qx.get(t[n]) || Qx.get(t.slice(n, n + 2));
|
|
@@ -67134,27 +67144,27 @@ function wD(c) {
|
|
|
67134
67144
|
}
|
|
67135
67145
|
return null;
|
|
67136
67146
|
}
|
|
67137
|
-
function
|
|
67147
|
+
function kD(c) {
|
|
67138
67148
|
let t = c;
|
|
67139
67149
|
for (; t !== null; ) {
|
|
67140
67150
|
if (!t.isSimpleText())
|
|
67141
67151
|
return;
|
|
67142
|
-
t =
|
|
67152
|
+
t = TD(t);
|
|
67143
67153
|
}
|
|
67144
67154
|
}
|
|
67145
|
-
function
|
|
67155
|
+
function OD(c) {
|
|
67146
67156
|
qt(() => {
|
|
67147
67157
|
if (!c.hasNodes([cf]))
|
|
67148
67158
|
throw new Error("EmojisPlugin: EmojiNode not registered on editor");
|
|
67149
|
-
return c.registerNodeTransform(ao,
|
|
67159
|
+
return c.registerNodeTransform(ao, kD);
|
|
67150
67160
|
}, [c]);
|
|
67151
67161
|
}
|
|
67152
|
-
function
|
|
67162
|
+
function ND() {
|
|
67153
67163
|
const [c] = Nn();
|
|
67154
|
-
return
|
|
67164
|
+
return OD(c), null;
|
|
67155
67165
|
}
|
|
67156
67166
|
const Xx = bC([...rE]);
|
|
67157
|
-
function
|
|
67167
|
+
function zD({
|
|
67158
67168
|
initialEditorState: c,
|
|
67159
67169
|
userObj: t,
|
|
67160
67170
|
CollabApiKey: n,
|
|
@@ -67362,9 +67372,9 @@ function DD({
|
|
|
67362
67372
|
/* @__PURE__ */ ge.jsx(P2, { onChange: Qe }),
|
|
67363
67373
|
/* @__PURE__ */ ge.jsxs("div", { className: "editor-container tree-view", children: [
|
|
67364
67374
|
/* @__PURE__ */ ge.jsx(NE, {}),
|
|
67365
|
-
/* @__PURE__ */ ge.jsx(xD, {}),
|
|
67366
|
-
/* @__PURE__ */ ge.jsx(yD, {}),
|
|
67367
67375
|
/* @__PURE__ */ ge.jsx(CD, {}),
|
|
67376
|
+
/* @__PURE__ */ ge.jsx(xD, {}),
|
|
67377
|
+
/* @__PURE__ */ ge.jsx(ND, {}),
|
|
67368
67378
|
/* @__PURE__ */ ge.jsx(sE, {}),
|
|
67369
67379
|
/* @__PURE__ */ ge.jsx(AE, {}),
|
|
67370
67380
|
/* @__PURE__ */ ge.jsx(EE, {}),
|
|
@@ -67454,13 +67464,13 @@ export {
|
|
|
67454
67464
|
aT as H,
|
|
67455
67465
|
Oh as I,
|
|
67456
67466
|
eb as J,
|
|
67457
|
-
|
|
67467
|
+
DD as K,
|
|
67458
67468
|
Z0 as L,
|
|
67459
67469
|
$O as M,
|
|
67460
|
-
|
|
67461
|
-
|
|
67470
|
+
RD as N,
|
|
67471
|
+
FD as O,
|
|
67462
67472
|
Q0 as P,
|
|
67463
|
-
|
|
67473
|
+
zD as Q,
|
|
67464
67474
|
wd as T,
|
|
67465
67475
|
gS as Y,
|
|
67466
67476
|
Nn as a,
|
|
@@ -67488,6 +67498,6 @@ export {
|
|
|
67488
67498
|
It as w,
|
|
67489
67499
|
or as x,
|
|
67490
67500
|
Zl as y,
|
|
67491
|
-
|
|
67501
|
+
MD as z
|
|
67492
67502
|
};
|
|
67493
|
-
//# sourceMappingURL=index-
|
|
67503
|
+
//# sourceMappingURL=index-30c48d5f.js.map
|