@fileverse-dev/ddoc 3.0.0 → 3.0.1
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.
|
@@ -2,7 +2,7 @@ var NFe = Object.defineProperty;
|
|
|
2
2
|
var _Fe = (e, t, n) => t in e ? NFe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var ut = (e, t, n) => _Fe(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
4
|
import * as W from "react";
|
|
5
|
-
import _e, { createRef as nu, memo as D1, createContext as $n, createElement as ot, useContext as At, version as xV, useRef as tt, useState as
|
|
5
|
+
import _e, { createRef as nu, memo as D1, createContext as $n, createElement as ot, useContext as At, version as xV, useRef as tt, useState as Re, useDebugValue as RI, useEffect as Ue, forwardRef as Rn, useLayoutEffect as es, useCallback as $e, useMemo as Lt, useId as Hg, Children as xie, isValidElement as wie, useInsertionEffect as Sw, Fragment as g0, Suspense as IFe, Component as PI, cloneElement as kie, useImperativeHandle as Fie } from "react";
|
|
6
6
|
import * as i6 from "react-dom";
|
|
7
7
|
import zI, { flushSync as BFe, createPortal as Tw } from "react-dom";
|
|
8
8
|
var Qt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
@@ -495,8 +495,8 @@ function RFe() {
|
|
|
495
495
|
} else
|
|
496
496
|
Ve.setExtraStackFrame(null);
|
|
497
497
|
}
|
|
498
|
-
var
|
|
499
|
-
|
|
498
|
+
var Oe;
|
|
499
|
+
Oe = !1;
|
|
500
500
|
function We(X) {
|
|
501
501
|
return typeof X == "object" && X !== null && X.$$typeof === t;
|
|
502
502
|
}
|
|
@@ -577,8 +577,8 @@ Check the top-level render call using <` + Pe + ">.");
|
|
|
577
577
|
if (Pe) {
|
|
578
578
|
var Ye = L(Ee);
|
|
579
579
|
De(Pe, X.props, "prop", Ye, X);
|
|
580
|
-
} else if (Ee.PropTypes !== void 0 && !
|
|
581
|
-
|
|
580
|
+
} else if (Ee.PropTypes !== void 0 && !Oe) {
|
|
581
|
+
Oe = !0;
|
|
582
582
|
var yt = L(Ee);
|
|
583
583
|
b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", yt || "Unknown");
|
|
584
584
|
}
|
|
@@ -14163,7 +14163,7 @@ var WAe = class extends _e.Component {
|
|
|
14163
14163
|
};
|
|
14164
14164
|
function Sse(e) {
|
|
14165
14165
|
var t;
|
|
14166
|
-
const [n] =
|
|
14166
|
+
const [n] = Re(() => new ZAe(e.editor)), r = xB.useSyncExternalStoreWithSelector(
|
|
14167
14167
|
n.subscribe,
|
|
14168
14168
|
n.getSnapshot,
|
|
14169
14169
|
n.getServerSnapshot,
|
|
@@ -14338,7 +14338,7 @@ var _W = process.env.NODE_ENV !== "production", Aj = typeof window > "u", KAe =
|
|
|
14338
14338
|
function jse(e = {}, t = []) {
|
|
14339
14339
|
const n = tt(e);
|
|
14340
14340
|
n.current = e;
|
|
14341
|
-
const [r] =
|
|
14341
|
+
const [r] = Re(() => new YAe(n)), o = a6.useSyncExternalStore(
|
|
14342
14342
|
r.subscribe,
|
|
14343
14343
|
r.getEditor,
|
|
14344
14344
|
r.getServerSnapshot
|
|
@@ -18376,8 +18376,8 @@ function YTe() {
|
|
|
18376
18376
|
} else
|
|
18377
18377
|
Ve.setExtraStackFrame(null);
|
|
18378
18378
|
}
|
|
18379
|
-
var
|
|
18380
|
-
|
|
18379
|
+
var Oe;
|
|
18380
|
+
Oe = !1;
|
|
18381
18381
|
function We(X) {
|
|
18382
18382
|
return typeof X == "object" && X !== null && X.$$typeof === t;
|
|
18383
18383
|
}
|
|
@@ -18458,8 +18458,8 @@ Check the top-level render call using <` + Pe + ">.");
|
|
|
18458
18458
|
if (Pe) {
|
|
18459
18459
|
var Ye = L(Ee);
|
|
18460
18460
|
De(Pe, X.props, "prop", Ye, X);
|
|
18461
|
-
} else if (Ee.PropTypes !== void 0 && !
|
|
18462
|
-
|
|
18461
|
+
} else if (Ee.PropTypes !== void 0 && !Oe) {
|
|
18462
|
+
Oe = !0;
|
|
18463
18463
|
var yt = L(Ee);
|
|
18464
18464
|
b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", yt || "Unknown");
|
|
18465
18465
|
}
|
|
@@ -49714,7 +49714,7 @@ function E$(e) {
|
|
|
49714
49714
|
}), t;
|
|
49715
49715
|
}
|
|
49716
49716
|
const $B = typeof window < "u", gue = $B ? es : Ue, jEt = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: o = !0, mode: i = "sync", propagate: a = !1 }) => {
|
|
49717
|
-
const [s, l] = pue(a), u = Lt(() => E$(e), [e]), c = a && !s ? [] : u.map(ov), d = tt(!0), f = tt(u), h = VB(() => /* @__PURE__ */ new Map()), [p, g] =
|
|
49717
|
+
const [s, l] = pue(a), u = Lt(() => E$(e), [e]), c = a && !s ? [] : u.map(ov), d = tt(!0), f = tt(u), h = VB(() => /* @__PURE__ */ new Map()), [p, g] = Re(u), [m, y] = Re(u);
|
|
49718
49718
|
gue(() => {
|
|
49719
49719
|
d.current = !1, f.current = u;
|
|
49720
49720
|
for (let x = 0; x < m.length; x++) {
|
|
@@ -54894,7 +54894,7 @@ const Kce = ({
|
|
|
54894
54894
|
onAddTag: n,
|
|
54895
54895
|
isPreviewMode: r
|
|
54896
54896
|
}) => {
|
|
54897
|
-
const [o, i] =
|
|
54897
|
+
const [o, i] = Re(""), [a, s] = Re(!1), l = tt(null), u = (h) => {
|
|
54898
54898
|
i(h), s(!0);
|
|
54899
54899
|
}, c = (h) => {
|
|
54900
54900
|
const p = e.find(
|
|
@@ -56735,7 +56735,7 @@ const wk = _e.forwardRef(
|
|
|
56735
56735
|
contentType: a = "icon",
|
|
56736
56736
|
...s
|
|
56737
56737
|
}, l) => {
|
|
56738
|
-
const [u, c] =
|
|
56738
|
+
const [u, c] = Re(r), d = (f) => {
|
|
56739
56739
|
!i && c(f), !i && n(f);
|
|
56740
56740
|
};
|
|
56741
56741
|
return /* @__PURE__ */ E.jsx(
|
|
@@ -57256,7 +57256,7 @@ function xM(e, t) {
|
|
|
57256
57256
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
57257
57257
|
}
|
|
57258
57258
|
function gNt(e, t) {
|
|
57259
|
-
var n =
|
|
57259
|
+
var n = Re(function() {
|
|
57260
57260
|
return {
|
|
57261
57261
|
// value
|
|
57262
57262
|
value: e,
|
|
@@ -60006,7 +60006,7 @@ const hv = {
|
|
|
60006
60006
|
isAnimated: i = !1,
|
|
60007
60007
|
...a
|
|
60008
60008
|
}, s) => {
|
|
60009
|
-
const [l, u] =
|
|
60009
|
+
const [l, u] = Re(e), [c, d] = Re(
|
|
60010
60010
|
Object.keys(hv).findIndex(
|
|
60011
60011
|
(h) => hv[h] === e
|
|
60012
60012
|
)
|
|
@@ -60954,15 +60954,15 @@ function BBt({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, s
|
|
|
60954
60954
|
return (window.innerWidth - xL) / window.innerWidth;
|
|
60955
60955
|
}
|
|
60956
60956
|
function me(Ve) {
|
|
60957
|
-
var Qe,
|
|
60958
|
-
!c && !i || I.current && !I.current.contains(Ve.target) || (le.current = ((Qe = I.current) == null ? void 0 : Qe.getBoundingClientRect().height) || 0, de.current = ((
|
|
60957
|
+
var Qe, Oe;
|
|
60958
|
+
!c && !i || I.current && !I.current.contains(Ve.target) || (le.current = ((Qe = I.current) == null ? void 0 : Qe.getBoundingClientRect().height) || 0, de.current = ((Oe = I.current) == null ? void 0 : Oe.getBoundingClientRect().width) || 0, $(!0), Q.current = /* @__PURE__ */ new Date(), X0e() && window.addEventListener("touchend", () => ie.current = !1, {
|
|
60959
60959
|
once: !0
|
|
60960
60960
|
}), Ve.target.setPointerCapture(Ve.pointerId), z.current = eo(x) ? Ve.pageY : Ve.pageX);
|
|
60961
60961
|
}
|
|
60962
60962
|
function ke(Ve, Qe) {
|
|
60963
|
-
var
|
|
60963
|
+
var Oe;
|
|
60964
60964
|
let We = Ve;
|
|
60965
|
-
const Ge = (
|
|
60965
|
+
const Ge = (Oe = window.getSelection()) == null ? void 0 : Oe.toString(), Ke = I.current ? gv(I.current, x) : null, gt = /* @__PURE__ */ new Date();
|
|
60966
60966
|
if (We.tagName === "SELECT" || We.hasAttribute("data-vaul-no-drag") || We.closest("[data-vaul-no-drag]"))
|
|
60967
60967
|
return !1;
|
|
60968
60968
|
if (x === "right" || x === "left")
|
|
@@ -60988,9 +60988,9 @@ function BBt({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, s
|
|
|
60988
60988
|
}
|
|
60989
60989
|
function we(Ve) {
|
|
60990
60990
|
if (I.current && H) {
|
|
60991
|
-
const Qe = x === "bottom" || x === "right" ? 1 : -1,
|
|
60991
|
+
const Qe = x === "bottom" || x === "right" ? 1 : -1, Oe = (z.current - (eo(x) ? Ve.pageY : Ve.pageX)) * Qe, We = Oe > 0, Ge = i && !c && !We;
|
|
60992
60992
|
if (Ge && De === 0) return;
|
|
60993
|
-
const Ke = Math.abs(
|
|
60993
|
+
const Ke = Math.abs(Oe), gt = document.querySelector("[data-vaul-drawer-wrapper]"), st = x === "bottom" || x === "top" ? le.current : de.current;
|
|
60994
60994
|
let wt = Ke / st;
|
|
60995
60995
|
const Mt = U(Ke, We);
|
|
60996
60996
|
if (Mt !== null && (wt = Mt), Ge && wt >= 1 || !ie.current && !ke(Ve.target, We)) return;
|
|
@@ -60999,9 +60999,9 @@ function BBt({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, s
|
|
|
60999
60999
|
}), uo(Y.current, {
|
|
61000
61000
|
transition: "none"
|
|
61001
61001
|
}), i && ge({
|
|
61002
|
-
draggedDistance:
|
|
61002
|
+
draggedDistance: Oe
|
|
61003
61003
|
}), We && !i) {
|
|
61004
|
-
const Et = EBt(
|
|
61004
|
+
const Et = EBt(Oe), sn = Math.min(Et * -1, 0) * Qe;
|
|
61005
61005
|
uo(I.current, {
|
|
61006
61006
|
transform: eo(x) ? `translate3d(0, ${sn}px, 0)` : `translate3d(${sn}px, 0, 0)`
|
|
61007
61007
|
});
|
|
@@ -61035,8 +61035,8 @@ function BBt({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, s
|
|
|
61035
61035
|
var Ve;
|
|
61036
61036
|
function Qe() {
|
|
61037
61037
|
if (!I.current || !S) return;
|
|
61038
|
-
const
|
|
61039
|
-
if (vL(
|
|
61038
|
+
const Oe = document.activeElement;
|
|
61039
|
+
if (vL(Oe) || re.current) {
|
|
61040
61040
|
var We;
|
|
61041
61041
|
const Ge = ((We = window.visualViewport) == null ? void 0 : We.height) || 0, Ke = window.innerHeight;
|
|
61042
61042
|
let gt = Ke - Ge;
|
|
@@ -61056,8 +61056,8 @@ function BBt({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, s
|
|
|
61056
61056
|
}
|
|
61057
61057
|
}
|
|
61058
61058
|
return (Ve = window.visualViewport) == null || Ve.addEventListener("resize", Qe), () => {
|
|
61059
|
-
var
|
|
61060
|
-
return (
|
|
61059
|
+
var Oe;
|
|
61060
|
+
return (Oe = window.visualViewport) == null ? void 0 : Oe.removeEventListener("resize", Qe);
|
|
61061
61061
|
};
|
|
61062
61062
|
}, [
|
|
61063
61063
|
De,
|
|
@@ -61101,7 +61101,7 @@ function BBt({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, s
|
|
|
61101
61101
|
I.current.classList.remove(LM), ie.current = !1, $(!1), ee.current = /* @__PURE__ */ new Date();
|
|
61102
61102
|
const Qe = gv(I.current, x);
|
|
61103
61103
|
if (!Ve || !ke(Ve.target, !1) || !Qe || Number.isNaN(Qe) || Q.current === null) return;
|
|
61104
|
-
const
|
|
61104
|
+
const Oe = ee.current.getTime() - Q.current.getTime(), We = z.current - (eo(x) ? Ve.pageY : Ve.pageX), Ge = Math.abs(We) / Oe;
|
|
61105
61105
|
if (Ge > 0.05 && (P(!0), setTimeout(() => {
|
|
61106
61106
|
P(!1);
|
|
61107
61107
|
}, 200)), i) {
|
|
@@ -61139,10 +61139,10 @@ function BBt({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, s
|
|
|
61139
61139
|
j
|
|
61140
61140
|
]);
|
|
61141
61141
|
function Ae(Ve) {
|
|
61142
|
-
const Qe = Ve ? (window.innerWidth - q0) / window.innerWidth : 1,
|
|
61142
|
+
const Qe = Ve ? (window.innerWidth - q0) / window.innerWidth : 1, Oe = Ve ? -q0 : 0;
|
|
61143
61143
|
ue.current && window.clearTimeout(ue.current), uo(I.current, {
|
|
61144
61144
|
transition: `transform ${Ar.DURATION}s cubic-bezier(${Ar.EASE.join(",")})`,
|
|
61145
|
-
transform: eo(x) ? `scale(${Qe}) translate3d(0, ${
|
|
61145
|
+
transform: eo(x) ? `scale(${Qe}) translate3d(0, ${Oe}px, 0)` : `scale(${Qe}) translate3d(${Oe}px, 0, 0)`
|
|
61146
61146
|
}), !Ve && I.current && (ue.current = setTimeout(() => {
|
|
61147
61147
|
const We = gv(I.current, x);
|
|
61148
61148
|
uo(I.current, {
|
|
@@ -61153,14 +61153,14 @@ function BBt({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, s
|
|
|
61153
61153
|
}
|
|
61154
61154
|
function ze(Ve, Qe) {
|
|
61155
61155
|
if (Qe < 0) return;
|
|
61156
|
-
const
|
|
61156
|
+
const Oe = (window.innerWidth - q0) / window.innerWidth, We = Oe + Qe * (1 - Oe), Ge = -q0 + Qe * q0;
|
|
61157
61157
|
uo(I.current, {
|
|
61158
61158
|
transform: eo(x) ? `scale(${We}) translate3d(0, ${Ge}px, 0)` : `scale(${We}) translate3d(${Ge}px, 0, 0)`,
|
|
61159
61159
|
transition: "none"
|
|
61160
61160
|
});
|
|
61161
61161
|
}
|
|
61162
61162
|
function qe(Ve, Qe) {
|
|
61163
|
-
const
|
|
61163
|
+
const Oe = eo(x) ? window.innerHeight : window.innerWidth, We = Qe ? (Oe - q0) / Oe : 1, Ge = Qe ? -q0 : 0;
|
|
61164
61164
|
Qe && uo(I.current, {
|
|
61165
61165
|
transition: `transform ${Ar.DURATION}s cubic-bezier(${Ar.EASE.join(",")})`,
|
|
61166
61166
|
transform: eo(x) ? `scale(${We}) translate3d(0, ${Ge}px, 0)` : `scale(${We}) translate3d(${Ge}px, 0, 0)`
|
|
@@ -61543,7 +61543,7 @@ function ZBt(e, {
|
|
|
61543
61543
|
defaultValue: t = !1,
|
|
61544
61544
|
initializeWithValue: n = !0
|
|
61545
61545
|
} = {}) {
|
|
61546
|
-
const r = (s) => GBt ? t : window.matchMedia(s).matches, [o, i] =
|
|
61546
|
+
const r = (s) => GBt ? t : window.matchMedia(s).matches, [o, i] = Re(() => n ? r(e) : t);
|
|
61547
61547
|
function a() {
|
|
61548
61548
|
i(r(e));
|
|
61549
61549
|
}
|
|
@@ -61892,7 +61892,7 @@ Rn(
|
|
|
61892
61892
|
)
|
|
61893
61893
|
);
|
|
61894
61894
|
const nOt = ({ content: e }) => {
|
|
61895
|
-
const [t, n] =
|
|
61895
|
+
const [t, n] = Re(0), r = tt(null);
|
|
61896
61896
|
return Ue(() => {
|
|
61897
61897
|
e && r.current ? n(r.current.scrollHeight) : n(0);
|
|
61898
61898
|
}, [e]), /* @__PURE__ */ E.jsx(
|
|
@@ -62300,7 +62300,7 @@ const Pr = ({
|
|
|
62300
62300
|
onClose: o,
|
|
62301
62301
|
...i
|
|
62302
62302
|
}) => {
|
|
62303
|
-
const [a, s] =
|
|
62303
|
+
const [a, s] = Re(!1), l = $e(
|
|
62304
62304
|
(d) => {
|
|
62305
62305
|
n || (s((f) => !f), _e.isValidElement(t) && t.props.onClick && t.props.onClick(d));
|
|
62306
62306
|
},
|
|
@@ -62880,7 +62880,7 @@ function Ofe(e) {
|
|
|
62880
62880
|
}
|
|
62881
62881
|
function fZ(e, t) {
|
|
62882
62882
|
t === void 0 && (t = 0);
|
|
62883
|
-
var n =
|
|
62883
|
+
var n = Re(e), r = n[0], o = n[1], i = tt(null);
|
|
62884
62884
|
function a(s) {
|
|
62885
62885
|
return new Promise(function(l) {
|
|
62886
62886
|
var u;
|
|
@@ -62946,7 +62946,7 @@ var rg;
|
|
|
62946
62946
|
e.SEARCH = "SEARCH", e.PREVIEW = "PREVIEW";
|
|
62947
62947
|
})(rg || (rg = {}));
|
|
62948
62948
|
function IOt(e) {
|
|
62949
|
-
var t = e.children, n = Rfe(), r = vRt(), o = TRt(), i = tt(gy), a = tt(!1), s = tt(!1), l = tt(n), u = fZ(Date.now(), 200), c = fZ("", 100), d =
|
|
62949
|
+
var t = e.children, n = Rfe(), r = vRt(), o = TRt(), i = tt(gy), a = tt(!1), s = tt(!1), l = tt(n), u = fZ(Date.now(), 200), c = fZ("", 100), d = Re(!1), f = Re(r), h = Re(null), p = Re(/* @__PURE__ */ new Set()), g = Re(null), m = Re(o), y = Re(!1), b = y[0], v = y[1], x = Re([]);
|
|
62950
62950
|
return _Ot(v), ot(Ks.Provider, {
|
|
62951
62951
|
value: {
|
|
62952
62952
|
activeCategoryState: h,
|
|
@@ -80101,7 +80101,7 @@ function gRt(e) {
|
|
|
80101
80101
|
}, t);
|
|
80102
80102
|
}
|
|
80103
80103
|
function mRt(e) {
|
|
80104
|
-
var t, n =
|
|
80104
|
+
var t, n = Re(function() {
|
|
80105
80105
|
return pZ(e);
|
|
80106
80106
|
}), r = n[0], o = n[1];
|
|
80107
80107
|
return Ue(function() {
|
|
@@ -81589,7 +81589,7 @@ var DZ = /* @__PURE__ */ kr.create({
|
|
|
81589
81589
|
}
|
|
81590
81590
|
});
|
|
81591
81591
|
function zPt(e) {
|
|
81592
|
-
var t = zh(), n =
|
|
81592
|
+
var t = zh(), n = Re(0), r = n[0], o = n[1];
|
|
81593
81593
|
return Ue(function() {
|
|
81594
81594
|
var i = e.current;
|
|
81595
81595
|
if (!i)
|
|
@@ -81621,7 +81621,7 @@ function HPt(e, t) {
|
|
|
81621
81621
|
}
|
|
81622
81622
|
var qPt = 32;
|
|
81623
81623
|
function VPt(e) {
|
|
81624
|
-
var t = lhe(), n = Ph(), r = n[0], o = am(), i = tt(), a = nR(), s = a[0], l =
|
|
81624
|
+
var t = lhe(), n = Ph(), r = n[0], o = am(), i = tt(), a = nR(), s = a[0], l = Re(), u = l[0], c = l[1], d = $e(function() {
|
|
81625
81625
|
var f, h = t.current;
|
|
81626
81626
|
if (h) {
|
|
81627
81627
|
var p = h.querySelector(w4), g = p == null ? void 0 : p.clientHeight, m = (f = g ?? i.current) != null ? f : qPt;
|
|
@@ -81758,7 +81758,7 @@ var _M = /* @__PURE__ */ kr.create({
|
|
|
81758
81758
|
}
|
|
81759
81759
|
});
|
|
81760
81760
|
function ZPt(e) {
|
|
81761
|
-
var t = e.scrollTop, n = ehe(), r =
|
|
81761
|
+
var t = e.scrollTop, n = ehe(), r = Re({}), o = r[0], i = r[1], a = lhe(), s = oRt(), l = whe(a.current), u = 0;
|
|
81762
81762
|
return ot("ul", {
|
|
81763
81763
|
className: vn(YPt.emojiList),
|
|
81764
81764
|
ref: a
|
|
@@ -82209,7 +82209,7 @@ function czt() {
|
|
|
82209
82209
|
}, ot(dzt, null), ot(azt, null), t ? ot(uzt, null) : null) : null;
|
|
82210
82210
|
}
|
|
82211
82211
|
function dzt() {
|
|
82212
|
-
var e, t = the(), n =
|
|
82212
|
+
var e, t = the(), n = Re(null), r = n[0], o = n[1], i = om(), a = nm(), s = a[0], l = im();
|
|
82213
82213
|
ozt(t.showPreview, o);
|
|
82214
82214
|
var u = og((e = r == null ? void 0 : r.unified) != null ? e : r == null ? void 0 : r.originalUnified), c = u != null && r != null;
|
|
82215
82215
|
return ot(d, null);
|
|
@@ -82399,7 +82399,7 @@ var EZ = {
|
|
|
82399
82399
|
".epr-auto-theme": /* @__PURE__ */ br({}, AZ)
|
|
82400
82400
|
}));
|
|
82401
82401
|
function xzt() {
|
|
82402
|
-
var e =
|
|
82402
|
+
var e = Re(null), t = e[0], n = e[1], r = nR(), o = r[1], i = pzt();
|
|
82403
82403
|
hzt({
|
|
82404
82404
|
setActiveCategory: n,
|
|
82405
82405
|
setVisibleCategories: o
|
|
@@ -82653,7 +82653,7 @@ function Tzt(e) {
|
|
|
82653
82653
|
return ot(IRt, null, ot(SOt, null), ot(gRt, Object.assign({}, e), ot(jzt, null)));
|
|
82654
82654
|
}
|
|
82655
82655
|
function jzt() {
|
|
82656
|
-
var e = Ph(), t = e[0], n = Jfe(), r =
|
|
82656
|
+
var e = Ph(), t = e[0], n = Jfe(), r = Re(!t), o = r[0], i = r[1], a = kRt();
|
|
82657
82657
|
return Ue(function() {
|
|
82658
82658
|
t && !n || o || i(!0);
|
|
82659
82659
|
}, [o, n, t]), a ? ot(bPt, null, ot(PPt, null), ot(Lzt, {
|
|
@@ -82696,7 +82696,7 @@ function Izt(e) {
|
|
|
82696
82696
|
}
|
|
82697
82697
|
Rn(
|
|
82698
82698
|
({ handleEmojiClick: e, handleAvatarInput: t, onRemove: n, className: r, ...o }, i) => {
|
|
82699
|
-
const [a, s] =
|
|
82699
|
+
const [a, s] = Re("emojiPicker"), l = tt(null), u = () => {
|
|
82700
82700
|
l.current && l.current.click();
|
|
82701
82701
|
};
|
|
82702
82702
|
return /* @__PURE__ */ E.jsx("div", { ref: i, className: r, ...o, children: /* @__PURE__ */ E.jsxs(
|
|
@@ -83274,7 +83274,7 @@ const Tn = ({ className: e, ...t }) => /* @__PURE__ */ E.jsx(
|
|
|
83274
83274
|
));
|
|
83275
83275
|
sUt.displayName = fde.displayName;
|
|
83276
83276
|
const lUt = ({ duration: e, variant: t }) => {
|
|
83277
|
-
const [n, r] =
|
|
83277
|
+
const [n, r] = Re(100);
|
|
83278
83278
|
return Ue(() => {
|
|
83279
83279
|
const o = Date.now(), i = setInterval(() => {
|
|
83280
83280
|
const a = Date.now() - o, s = Math.max(0, 100 - a / e * 100);
|
|
@@ -85032,7 +85032,7 @@ function XHt(e) {
|
|
|
85032
85032
|
}) });
|
|
85033
85033
|
}
|
|
85034
85034
|
function JHt(e, t) {
|
|
85035
|
-
var n =
|
|
85035
|
+
var n = Re(e), r = n[0], o = n[1], i = t === void 0 ? r : t;
|
|
85036
85036
|
return [i, o];
|
|
85037
85037
|
}
|
|
85038
85038
|
function QHt(e) {
|
|
@@ -85434,7 +85434,7 @@ function gpe(e, t) {
|
|
|
85434
85434
|
}
|
|
85435
85435
|
var mpe = $n(void 0);
|
|
85436
85436
|
function Oqt(e) {
|
|
85437
|
-
var t = B6(), n = ppe(), r =
|
|
85437
|
+
var t = B6(), n = ppe(), r = Re(), o = r[0], i = r[1], a = Re(), s = a[0], l = a[1], u = Iqt(t.displayMonths, n), c = o ?? (s && t.isDateDisplayed(s)) ? s : u, d = function() {
|
|
85438
85438
|
l(o), i(void 0);
|
|
85439
85439
|
}, f = function(m) {
|
|
85440
85440
|
i(m);
|
|
@@ -85726,7 +85726,7 @@ function HZ() {
|
|
|
85726
85726
|
return "react-day-picker-".concat(++eVt);
|
|
85727
85727
|
}
|
|
85728
85728
|
function tVt(e) {
|
|
85729
|
-
var t, n = e ?? (ZM ? HZ() : null), r =
|
|
85729
|
+
var t, n = e ?? (ZM ? HZ() : null), r = Re(n), o = r[0], i = r[1];
|
|
85730
85730
|
return Qqt(function() {
|
|
85731
85731
|
o === null && i(HZ());
|
|
85732
85732
|
}, []), Ue(function() {
|
|
@@ -85744,7 +85744,7 @@ function rVt(e) {
|
|
|
85744
85744
|
return E.jsx("div", { className: n.months, style: r.months, children: e.children });
|
|
85745
85745
|
}
|
|
85746
85746
|
function oVt(e) {
|
|
85747
|
-
var t, n, r = e.initialProps, o = cr(), i = AR(), a = B6(), s =
|
|
85747
|
+
var t, n, r = e.initialProps, o = cr(), i = AR(), a = B6(), s = Re(!1), l = s[0], u = s[1];
|
|
85748
85748
|
Ue(function() {
|
|
85749
85749
|
o.initialFocus && i.focusTarget && (l || (i.focus(i.focusTarget), u(!0)));
|
|
85750
85750
|
}, [
|
|
@@ -86164,7 +86164,7 @@ var NL = /* @__PURE__ */ ((e) => (e.LIST = "LIST", e.CARD = "CARD", e))(NL || {}
|
|
|
86164
86164
|
const vVt = ({
|
|
86165
86165
|
delay: e = 2e3
|
|
86166
86166
|
}) => {
|
|
86167
|
-
const [t, n] =
|
|
86167
|
+
const [t, n] = Re(!1), [r, o] = Re(!1), i = tt(null), a = $e(() => {
|
|
86168
86168
|
i.current && clearTimeout(i.current), i.current = setTimeout(() => {
|
|
86169
86169
|
n(!0), o(!0);
|
|
86170
86170
|
}, e);
|
|
@@ -86181,7 +86181,7 @@ const vVt = ({
|
|
|
86181
86181
|
};
|
|
86182
86182
|
var lt = /* @__PURE__ */ ((e) => (e[e.NONE = 0] = "NONE", e[e.HEADING = 1] = "HEADING", e[e.TEXT_COLOR = 2] = "TEXT_COLOR", e[e.HIGHLIGHT = 3] = "HIGHLIGHT", e[e.LINK = 4] = "LINK", e[e.FONT_FAMILY = 5] = "FONT_FAMILY", e[e.ALIGNMENT = 6] = "ALIGNMENT", e[e.LIST = 7] = "LIST", e[e.TEXT_FORMATING = 8] = "TEXT_FORMATING", e[e.TEXT_COLOR_PICKER = 9] = "TEXT_COLOR_PICKER", e[e.LINK_POPUP = 10] = "LINK_POPUP", e[e.SCRIPTS = 11] = "SCRIPTS", e[e.FONT_SIZE = 12] = "FONT_SIZE", e[e.LINE_HEIGHT = 13] = "LINE_HEIGHT", e))(lt || {});
|
|
86183
86183
|
function xVt(e) {
|
|
86184
|
-
const [t, n] =
|
|
86184
|
+
const [t, n] = Re(e), r = tt(null), o = (i) => {
|
|
86185
86185
|
r && r.current && !r.current.contains(i.target) && n(
|
|
86186
86186
|
0
|
|
86187
86187
|
/* NONE */
|
|
@@ -87374,13 +87374,13 @@ function cWt(e, t, n, r, o, i, a) {
|
|
|
87374
87374
|
eventHandler: Ve,
|
|
87375
87375
|
scrollBounds: Qe,
|
|
87376
87376
|
options: {
|
|
87377
|
-
loop:
|
|
87377
|
+
loop: Oe
|
|
87378
87378
|
}
|
|
87379
87379
|
}, We) => {
|
|
87380
|
-
const Ge = ke.settled(), Ke = !Qe.shouldConstrain(), gt =
|
|
87380
|
+
const Ge = ke.settled(), Ke = !Qe.shouldConstrain(), gt = Oe ? Ge : Ge && Ke, st = gt && !ze.pointerDown();
|
|
87381
87381
|
st && qe.stop();
|
|
87382
87382
|
const wt = Se.get() * We + xe.get() * (1 - We);
|
|
87383
|
-
je.set(wt),
|
|
87383
|
+
je.set(wt), Oe && (Be.loop(ke.direction()), Ae.loop()), we.to(je.get()), st && Ve.emit("settle"), gt || Ve.emit("scroll");
|
|
87384
87384
|
}, I = UVt(r, o, () => te(me), (ke) => ce(me, ke)), le = 0.68, de = se[ue.get()], J = H3(de), K = H3(de), fe = H3(de), De = H3(de), ye = ZVt(J, fe, K, De, f, le), ve = nWt(d, se, ne, ie, De), pe = rWt(I, ue, z, ye, ve, De, a), ge = QVt(ie), be = A4(), U = sWt(t, n, a, g), {
|
|
87385
87385
|
slideRegistry: Z
|
|
87386
87386
|
} = tWt(j, b, se, ee, V, re), ae = oWt(e, n, Z, pe, ye, be, a, F), me = {
|
|
@@ -87631,7 +87631,7 @@ function k9(e, t, n) {
|
|
|
87631
87631
|
}
|
|
87632
87632
|
k9.globalOptions = void 0;
|
|
87633
87633
|
function BR(e = {}, t = []) {
|
|
87634
|
-
const n = tt(e), r = tt(t), [o, i] =
|
|
87634
|
+
const n = tt(e), r = tt(t), [o, i] = Re(), [a, s] = Re(), l = $e(() => {
|
|
87635
87635
|
o && o.reInit(n.current, r.current);
|
|
87636
87636
|
}, [o]);
|
|
87637
87637
|
return Ue(() => {
|
|
@@ -87671,7 +87671,7 @@ const jpe = Rn(
|
|
|
87671
87671
|
axis: e === "horizontal" ? "x" : "y"
|
|
87672
87672
|
},
|
|
87673
87673
|
r
|
|
87674
|
-
), [c, d] =
|
|
87674
|
+
), [c, d] = Re(!1), [f, h] = Re(!1), p = $e((b) => {
|
|
87675
87675
|
b && (d(b.canScrollPrev()), h(b.canScrollNext()));
|
|
87676
87676
|
}, []), g = $e(() => {
|
|
87677
87677
|
u == null || u.scrollPrev();
|
|
@@ -87757,7 +87757,7 @@ const BL = Rn(
|
|
|
87757
87757
|
);
|
|
87758
87758
|
BL.displayName = "CarouselItem";
|
|
87759
87759
|
const Npe = Rn(({ index: e, className: t, ...n }, r) => {
|
|
87760
|
-
const { api: o } = R6(), [i, a] =
|
|
87760
|
+
const { api: o } = R6(), [i, a] = Re(0), [, s] = Re([]), l = $e(
|
|
87761
87761
|
(f) => {
|
|
87762
87762
|
o && o.scrollTo(f);
|
|
87763
87763
|
},
|
|
@@ -87846,7 +87846,7 @@ function ni(e, {
|
|
|
87846
87846
|
defaultValue: t = !1,
|
|
87847
87847
|
initializeWithValue: n = !0
|
|
87848
87848
|
} = {}) {
|
|
87849
|
-
const r = (s) => xWt ? t : window.matchMedia(s).matches, [o, i] =
|
|
87849
|
+
const r = (s) => xWt ? t : window.matchMedia(s).matches, [o, i] = Re(() => n ? r(e) : t);
|
|
87850
87850
|
function a() {
|
|
87851
87851
|
i(r(e));
|
|
87852
87852
|
}
|
|
@@ -93960,7 +93960,7 @@ async function vF(e, t) {
|
|
|
93960
93960
|
});
|
|
93961
93961
|
return Q === "0x" ? { data: void 0 } : { data: Q };
|
|
93962
93962
|
} catch (R) {
|
|
93963
|
-
const _ = dKt(R), { offchainLookup: H, offchainLookupSignature: $ } = await import("./ccip-
|
|
93963
|
+
const _ = dKt(R), { offchainLookup: H, offchainLookupSignature: $ } = await import("./ccip-B-u14Auh.mjs");
|
|
93964
93964
|
if (e.ccipRead !== !1 && (_ == null ? void 0 : _.slice(0, 10)) === $ && x)
|
|
93965
93965
|
return { data: await H(e, { data: _, to: x }) };
|
|
93966
93966
|
throw O && (_ == null ? void 0 : _.slice(0, 10)) === "0x101bb98d" ? new VGt({ factory: f }) : dge(R, {
|
|
@@ -99328,12 +99328,12 @@ const lme = $n(void 0), LJt = ({
|
|
|
99328
99328
|
onComment: k,
|
|
99329
99329
|
setCommentDrawerOpen: F
|
|
99330
99330
|
}) => {
|
|
99331
|
-
const [C, D] =
|
|
99331
|
+
const [C, D] = Re(!0), [S, B] = Re(""), [O, T] = Re(""), [L, M] = Re(null), j = tt(null), N = tt(null), [R, _] = Re(""), [H, $] = Re(!1), V = tt(null), P = tt(null), Y = tt(null), ne = t.isActive("comment"), Q = t.getAttributes("comment").resolved, [ee, se] = Re({
|
|
99332
99332
|
inlineCommentText: "",
|
|
99333
99333
|
handleClick: !1
|
|
99334
|
-
}), ie = localStorage.getItem("ensCache"), [ue, z] =
|
|
99334
|
+
}), ie = localStorage.getItem("ensCache"), [ue, z] = Re(
|
|
99335
99335
|
ie ? JSON.parse(ie) : {}
|
|
99336
|
-
), [re, te] =
|
|
99336
|
+
), [re, te] = Re([]), ce = $e(
|
|
99337
99337
|
async (Ae, ze) => {
|
|
99338
99338
|
if (re.includes(Ae)) {
|
|
99339
99339
|
ze({
|
|
@@ -99356,20 +99356,20 @@ const lme = $n(void 0), LJt = ({
|
|
|
99356
99356
|
return;
|
|
99357
99357
|
}
|
|
99358
99358
|
try {
|
|
99359
|
-
te((
|
|
99359
|
+
te((Oe) => [...Oe, Ae]);
|
|
99360
99360
|
const { name: qe, isEns: Ve, resolved: Qe } = await TJt(
|
|
99361
99361
|
Ae,
|
|
99362
99362
|
d
|
|
99363
99363
|
// Add definite assignment assertion if ensResolutionUrl is guaranteed
|
|
99364
99364
|
);
|
|
99365
|
-
Qe && z((
|
|
99365
|
+
Qe && z((Oe) => {
|
|
99366
99366
|
const We = {
|
|
99367
|
-
...
|
|
99367
|
+
...Oe,
|
|
99368
99368
|
[Ae]: { name: qe, isEns: Ve }
|
|
99369
99369
|
};
|
|
99370
99370
|
return localStorage.setItem("ensCache", JSON.stringify(We)), We;
|
|
99371
99371
|
}), te(
|
|
99372
|
-
(
|
|
99372
|
+
(Oe) => Oe.filter((We) => We !== Ae)
|
|
99373
99373
|
), ze({ name: qe, isEns: Ve });
|
|
99374
99374
|
} catch (qe) {
|
|
99375
99375
|
console.error("Error fetching ENS name:", qe), ze({
|
|
@@ -99403,8 +99403,8 @@ const lme = $n(void 0), LJt = ({
|
|
|
99403
99403
|
), J = $e(
|
|
99404
99404
|
(Ae, ze) => {
|
|
99405
99405
|
if (!t) return;
|
|
99406
|
-
const { state: qe } = t, { from: Ve, to: Qe } = qe.selection,
|
|
99407
|
-
|
|
99406
|
+
const { state: qe } = t, { from: Ve, to: Qe } = qe.selection, Oe = qe.doc.textBetween(Ve, Qe, " "), We = de(
|
|
99407
|
+
Oe,
|
|
99408
99408
|
Ae,
|
|
99409
99409
|
ze || o
|
|
99410
99410
|
);
|
|
@@ -99458,8 +99458,8 @@ const lme = $n(void 0), LJt = ({
|
|
|
99458
99458
|
`[data-comment-id="${Ae}"]`
|
|
99459
99459
|
);
|
|
99460
99460
|
if (Ve) {
|
|
99461
|
-
const Qe = t.view.posAtDOM(Ve, 0),
|
|
99462
|
-
t.commands.setTextSelection({ from: Qe, to:
|
|
99461
|
+
const Qe = t.view.posAtDOM(Ve, 0), Oe = Qe + (((qe = Ve.textContent) == null ? void 0 : qe.length) ?? 0);
|
|
99462
|
+
t.commands.setTextSelection({ from: Qe, to: Oe });
|
|
99463
99463
|
const Ge = [
|
|
99464
99464
|
document.querySelector(".ProseMirror"),
|
|
99465
99465
|
document.getElementById("editor-canvas"),
|
|
@@ -103012,7 +103012,7 @@ function Ome() {
|
|
|
103012
103012
|
const Se = pn({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), je = "http://www.w3.org/1998/Math/MathML", xe = "http://www.w3.org/2000/svg", Be = "http://www.w3.org/1999/xhtml";
|
|
103013
103013
|
let Ae = Be, ze = !1, qe = null;
|
|
103014
103014
|
const Ve = pn({}, [je, xe, Be], CE);
|
|
103015
|
-
let Qe = pn({}, ["mi", "mo", "mn", "ms", "mtext"]),
|
|
103015
|
+
let Qe = pn({}, ["mi", "mo", "mn", "ms", "mtext"]), Oe = pn({}, ["annotation-xml"]);
|
|
103016
103016
|
const We = pn({}, ["title", "style", "font", "a", "script"]);
|
|
103017
103017
|
let Ge = null;
|
|
103018
103018
|
const Ke = ["application/xhtml+xml", "text/html"], gt = "text/html";
|
|
@@ -103023,7 +103023,7 @@ function Ome() {
|
|
|
103023
103023
|
let Ce = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
103024
103024
|
if (!(wt && wt === Ce)) {
|
|
103025
103025
|
if ((!Ce || typeof Ce != "object") && (Ce = {}), Ce = Ec(Ce), Ge = // eslint-disable-next-line unicorn/prefer-includes
|
|
103026
|
-
Ke.indexOf(Ce.PARSER_MEDIA_TYPE) === -1 ? gt : Ce.PARSER_MEDIA_TYPE, st = Ge === "application/xhtml+xml" ? CE : l8, V = el(Ce, "ALLOWED_TAGS") ? pn({}, Ce.ALLOWED_TAGS, st) : P, Y = el(Ce, "ALLOWED_ATTR") ? pn({}, Ce.ALLOWED_ATTR, st) : ne, qe = el(Ce, "ALLOWED_NAMESPACES") ? pn({}, Ce.ALLOWED_NAMESPACES, CE) : Ve, we = el(Ce, "ADD_URI_SAFE_ATTR") ? pn(Ec(Se), Ce.ADD_URI_SAFE_ATTR, st) : Se, me = el(Ce, "ADD_DATA_URI_TAGS") ? pn(Ec(ke), Ce.ADD_DATA_URI_TAGS, st) : ke, Z = el(Ce, "FORBID_CONTENTS") ? pn({}, Ce.FORBID_CONTENTS, st) : ae, ee = el(Ce, "FORBID_TAGS") ? pn({}, Ce.FORBID_TAGS, st) : Ec({}), se = el(Ce, "FORBID_ATTR") ? pn({}, Ce.FORBID_ATTR, st) : Ec({}), U = el(Ce, "USE_PROFILES") ? Ce.USE_PROFILES : !1, ue = Ce.ALLOW_ARIA_ATTR !== !1, z = Ce.ALLOW_DATA_ATTR !== !1, re = Ce.ALLOW_UNKNOWN_PROTOCOLS || !1, te = Ce.ALLOW_SELF_CLOSE_IN_ATTR !== !1, ce = Ce.SAFE_FOR_TEMPLATES || !1, I = Ce.SAFE_FOR_XML !== !1, le = Ce.WHOLE_DOCUMENT || !1, K = Ce.RETURN_DOM || !1, fe = Ce.RETURN_DOM_FRAGMENT || !1, De = Ce.RETURN_TRUSTED_TYPE || !1, J = Ce.FORCE_BODY || !1, ye = Ce.SANITIZE_DOM !== !1, ve = Ce.SANITIZE_NAMED_PROPS || !1, ge = Ce.KEEP_CONTENT !== !1, be = Ce.IN_PLACE || !1, $ = Ce.ALLOWED_URI_REGEXP || Ime, Ae = Ce.NAMESPACE || Be, Qe = Ce.MATHML_TEXT_INTEGRATION_POINTS || Qe,
|
|
103026
|
+
Ke.indexOf(Ce.PARSER_MEDIA_TYPE) === -1 ? gt : Ce.PARSER_MEDIA_TYPE, st = Ge === "application/xhtml+xml" ? CE : l8, V = el(Ce, "ALLOWED_TAGS") ? pn({}, Ce.ALLOWED_TAGS, st) : P, Y = el(Ce, "ALLOWED_ATTR") ? pn({}, Ce.ALLOWED_ATTR, st) : ne, qe = el(Ce, "ALLOWED_NAMESPACES") ? pn({}, Ce.ALLOWED_NAMESPACES, CE) : Ve, we = el(Ce, "ADD_URI_SAFE_ATTR") ? pn(Ec(Se), Ce.ADD_URI_SAFE_ATTR, st) : Se, me = el(Ce, "ADD_DATA_URI_TAGS") ? pn(Ec(ke), Ce.ADD_DATA_URI_TAGS, st) : ke, Z = el(Ce, "FORBID_CONTENTS") ? pn({}, Ce.FORBID_CONTENTS, st) : ae, ee = el(Ce, "FORBID_TAGS") ? pn({}, Ce.FORBID_TAGS, st) : Ec({}), se = el(Ce, "FORBID_ATTR") ? pn({}, Ce.FORBID_ATTR, st) : Ec({}), U = el(Ce, "USE_PROFILES") ? Ce.USE_PROFILES : !1, ue = Ce.ALLOW_ARIA_ATTR !== !1, z = Ce.ALLOW_DATA_ATTR !== !1, re = Ce.ALLOW_UNKNOWN_PROTOCOLS || !1, te = Ce.ALLOW_SELF_CLOSE_IN_ATTR !== !1, ce = Ce.SAFE_FOR_TEMPLATES || !1, I = Ce.SAFE_FOR_XML !== !1, le = Ce.WHOLE_DOCUMENT || !1, K = Ce.RETURN_DOM || !1, fe = Ce.RETURN_DOM_FRAGMENT || !1, De = Ce.RETURN_TRUSTED_TYPE || !1, J = Ce.FORCE_BODY || !1, ye = Ce.SANITIZE_DOM !== !1, ve = Ce.SANITIZE_NAMED_PROPS || !1, ge = Ce.KEEP_CONTENT !== !1, be = Ce.IN_PLACE || !1, $ = Ce.ALLOWED_URI_REGEXP || Ime, Ae = Ce.NAMESPACE || Be, Qe = Ce.MATHML_TEXT_INTEGRATION_POINTS || Qe, Oe = Ce.HTML_INTEGRATION_POINTS || Oe, Q = Ce.CUSTOM_ELEMENT_HANDLING || {}, Ce.CUSTOM_ELEMENT_HANDLING && Tt(Ce.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (Q.tagNameCheck = Ce.CUSTOM_ELEMENT_HANDLING.tagNameCheck), Ce.CUSTOM_ELEMENT_HANDLING && Tt(Ce.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (Q.attributeNameCheck = Ce.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), Ce.CUSTOM_ELEMENT_HANDLING && typeof Ce.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (Q.allowCustomizedBuiltInElements = Ce.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), ce && (z = !1), fe && (K = !0), U && (V = pn({}, hY), Y = [], U.html === !0 && (pn(V, fY), pn(Y, pY)), U.svg === !0 && (pn(V, ME), pn(Y, SE), pn(Y, Ev)), U.svgFilters === !0 && (pn(V, EE), pn(Y, SE), pn(Y, Ev)), U.mathMl === !0 && (pn(V, AE), pn(Y, gY), pn(Y, Ev))), Ce.ADD_TAGS && (typeof Ce.ADD_TAGS == "function" ? ie.tagCheck = Ce.ADD_TAGS : (V === P && (V = Ec(V)), pn(V, Ce.ADD_TAGS, st))), Ce.ADD_ATTR && (typeof Ce.ADD_ATTR == "function" ? ie.attributeCheck = Ce.ADD_ATTR : (Y === ne && (Y = Ec(Y)), pn(Y, Ce.ADD_ATTR, st))), Ce.ADD_URI_SAFE_ATTR && pn(we, Ce.ADD_URI_SAFE_ATTR, st), Ce.FORBID_CONTENTS && (Z === ae && (Z = Ec(Z)), pn(Z, Ce.FORBID_CONTENTS, st)), ge && (V["#text"] = !0), le && pn(V, ["html", "head", "body"]), V.table && (pn(V, ["tbody"]), delete ee.tbody), Ce.TRUSTED_TYPES_POLICY) {
|
|
103027
103027
|
if (typeof Ce.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
103028
103028
|
throw l3('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
103029
103029
|
if (typeof Ce.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -103040,7 +103040,7 @@ function Ome() {
|
|
|
103040
103040
|
tagName: "template"
|
|
103041
103041
|
});
|
|
103042
103042
|
const ft = l8(Ce.tagName), Kt = l8(Ne.tagName);
|
|
103043
|
-
return qe[Ce.namespaceURI] ? Ce.namespaceURI === xe ? Ne.namespaceURI === Be ? ft === "svg" : Ne.namespaceURI === je ? ft === "svg" && (Kt === "annotation-xml" || Qe[Kt]) : !!sn[ft] : Ce.namespaceURI === je ? Ne.namespaceURI === Be ? ft === "math" : Ne.namespaceURI === xe ? ft === "math" &&
|
|
103043
|
+
return qe[Ce.namespaceURI] ? Ce.namespaceURI === xe ? Ne.namespaceURI === Be ? ft === "svg" : Ne.namespaceURI === je ? ft === "svg" && (Kt === "annotation-xml" || Qe[Kt]) : !!sn[ft] : Ce.namespaceURI === je ? Ne.namespaceURI === Be ? ft === "math" : Ne.namespaceURI === xe ? ft === "math" && Oe[Kt] : !!wn[ft] : Ce.namespaceURI === Be ? Ne.namespaceURI === xe && !Oe[Kt] || Ne.namespaceURI === je && !Qe[Kt] ? !1 : !wn[ft] && (We[ft] || !sn[ft]) : !!(Ge === "application/xhtml+xml" && qe[Ce.namespaceURI]) : !1;
|
|
103044
103044
|
}, Dn = function(Ce) {
|
|
103045
103045
|
a3(t.removed, {
|
|
103046
103046
|
element: Ce
|
|
@@ -106423,7 +106423,7 @@ const IE = (e) => {
|
|
|
106423
106423
|
ref: d,
|
|
106424
106424
|
toolVisibility: f,
|
|
106425
106425
|
setToolVisibility: h
|
|
106426
|
-
} = xVt(lt.NONE), [p, g] =
|
|
106426
|
+
} = xVt(lt.NONE), [p, g] = Re(!1), [m, y] = Re(!1), { buttonRef: b } = c1();
|
|
106427
106427
|
Ue(() => {
|
|
106428
106428
|
if (e)
|
|
106429
106429
|
return e.setOptions({
|
|
@@ -107092,7 +107092,7 @@ const IE = (e) => {
|
|
|
107092
107092
|
setIsLinkPopupOpen: o,
|
|
107093
107093
|
onError: i
|
|
107094
107094
|
}) => {
|
|
107095
|
-
const [a, s] =
|
|
107095
|
+
const [a, s] = Re(t.getAttributes("link").href), l = $e(() => {
|
|
107096
107096
|
if (a === "" || a === void 0) {
|
|
107097
107097
|
t.chain().focus().extendMarkRange("link").unsetLink().run();
|
|
107098
107098
|
return;
|
|
@@ -108150,7 +108150,7 @@ const IE = (e) => {
|
|
|
108150
108150
|
stroke: "currentColor"
|
|
108151
108151
|
}
|
|
108152
108152
|
) }), h3e = ({ username: e, createdAt: t }) => {
|
|
108153
|
-
const { getEnsStatus: n, ensCache: r } = c1(), [o, i] =
|
|
108153
|
+
const { getEnsStatus: n, ensCache: r } = c1(), [o, i] = Re({
|
|
108154
108154
|
name: e,
|
|
108155
108155
|
isEns: !1
|
|
108156
108156
|
});
|
|
@@ -108210,7 +108210,7 @@ const IE = (e) => {
|
|
|
108210
108210
|
version: p,
|
|
108211
108211
|
emptyComment: g
|
|
108212
108212
|
}) => {
|
|
108213
|
-
const m = tt(null), [y, b] =
|
|
108213
|
+
const m = tt(null), [y, b] = Re(!1), [v, x] = Re(!1), k = tt(null), { setOpenReplyId: F } = c1(), { getEnsStatus: C, ensCache: D } = c1(), [S, B] = Re({
|
|
108214
108214
|
name: e,
|
|
108215
108215
|
isEns: !1
|
|
108216
108216
|
});
|
|
@@ -108475,7 +108475,7 @@ const IE = (e) => {
|
|
|
108475
108475
|
isDisabled: o,
|
|
108476
108476
|
isCommentOwner: i
|
|
108477
108477
|
}) => {
|
|
108478
|
-
const [a, s] =
|
|
108478
|
+
const [a, s] = Re(t), [l, u] = Re(""), [c, d] = Re(!0), [f, h] = Re(!!e), p = tt(null), [g, m] = Re(!1), {
|
|
108479
108479
|
inlineCommentData: y,
|
|
108480
108480
|
setInlineCommentData: b,
|
|
108481
108481
|
addComment: v,
|
|
@@ -109169,9 +109169,9 @@ const aon = /* @__PURE__ */ m0(ion), h3 = () => {
|
|
|
109169
109169
|
setInitialReminderTitle: o,
|
|
109170
109170
|
type: i
|
|
109171
109171
|
}, a) => {
|
|
109172
|
-
const [s, l] =
|
|
109172
|
+
const [s, l] = Re(r || ""), [u, c] = Re(
|
|
109173
109173
|
new Date(Date.now() + 6 * 60 * 1e3)
|
|
109174
|
-
), [d, f] =
|
|
109174
|
+
), [d, f] = Re(""), h = ni("(max-width: 768px)"), [p, g] = Re(!0), [m, y] = Re(e), b = () => {
|
|
109175
109175
|
y(!1), t();
|
|
109176
109176
|
};
|
|
109177
109177
|
Ue(() => {
|
|
@@ -109370,7 +109370,7 @@ const aon = /* @__PURE__ */ m0(ion), h3 = () => {
|
|
|
109370
109370
|
onReminderCreate: t,
|
|
109371
109371
|
onError: n
|
|
109372
109372
|
}) => {
|
|
109373
|
-
const [r, o] =
|
|
109373
|
+
const [r, o] = Re(""), i = tt(null);
|
|
109374
109374
|
return {
|
|
109375
109375
|
reminderRef: i,
|
|
109376
109376
|
handleReminderOnClose: () => {
|
|
@@ -110317,7 +110317,7 @@ function TY(e) {
|
|
|
110317
110317
|
}), t;
|
|
110318
110318
|
}
|
|
110319
110319
|
const HP = typeof window < "u", D3e = HP ? es : Ue, pm = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: o = !0, mode: i = "sync", propagate: a = !1 }) => {
|
|
110320
|
-
const [s, l] = C3e(a), u = Lt(() => TY(e), [e]), c = a && !s ? [] : u.map(Sv), d = tt(!0), f = tt(u), h = zP(() => /* @__PURE__ */ new Map()), [p, g] =
|
|
110320
|
+
const [s, l] = C3e(a), u = Lt(() => TY(e), [e]), c = a && !s ? [] : u.map(Sv), d = tt(!0), f = tt(u), h = zP(() => /* @__PURE__ */ new Map()), [p, g] = Re(u), [m, y] = Re(u);
|
|
110321
110321
|
D3e(() => {
|
|
110322
110322
|
d.current = !1, f.current = u;
|
|
110323
110323
|
for (let x = 0; x < m.length; x++) {
|
|
@@ -115065,7 +115065,7 @@ const Vln = (e, t) => ZP(e) ? new qln(t) : new Hln(t, {
|
|
|
115065
115065
|
importOptions: r,
|
|
115066
115066
|
setDropdownOpen: o
|
|
115067
115067
|
}) => {
|
|
115068
|
-
const [i, a] =
|
|
115068
|
+
const [i, a] = Re(!1), [s, l] = Re(!1);
|
|
115069
115069
|
let u, c;
|
|
115070
115070
|
return /* @__PURE__ */ A.jsx(
|
|
115071
115071
|
ZO,
|
|
@@ -115259,7 +115259,7 @@ const Vln = (e, t) => ZP(e) ? new qln(t) : new Hln(t, {
|
|
|
115259
115259
|
{ title: "100%", value: "1" },
|
|
115260
115260
|
{ title: "150%", value: "1.5" },
|
|
115261
115261
|
{ title: "200%", value: "2" }
|
|
115262
|
-
], [j, N] =
|
|
115262
|
+
], [j, N] = Re(!1), [R, _] = Re("Default"), H = o3e.find((P) => P.value === R);
|
|
115263
115263
|
Ue(() => {
|
|
115264
115264
|
if (!e) return;
|
|
115265
115265
|
const P = () => _(Kln(e));
|
|
@@ -127137,7 +127137,7 @@ const Ffn = Vdn.extend({
|
|
|
127137
127137
|
height: s,
|
|
127138
127138
|
fetchV1ImageFn: l
|
|
127139
127139
|
}, u) => {
|
|
127140
|
-
const [c, d] =
|
|
127140
|
+
const [c, d] = Re("");
|
|
127141
127141
|
return Ue(() => {
|
|
127142
127142
|
const f = e && t && n && r;
|
|
127143
127143
|
let h = !0, p = null;
|
|
@@ -127188,7 +127188,7 @@ const Ffn = Vdn.extend({
|
|
|
127188
127188
|
mimeType: u,
|
|
127189
127189
|
authTag: c
|
|
127190
127190
|
}, d) => {
|
|
127191
|
-
const [f, h] =
|
|
127191
|
+
const [f, h] = Re("");
|
|
127192
127192
|
return Ue(() => {
|
|
127193
127193
|
const p = e && t && n && c;
|
|
127194
127194
|
let g = !0, m = null;
|
|
@@ -127223,7 +127223,7 @@ const Ffn = Vdn.extend({
|
|
|
127223
127223
|
);
|
|
127224
127224
|
let pp;
|
|
127225
127225
|
const Ube = (e, t) => ({ node: n, updateAttributes: r, deleteNode: o }) => {
|
|
127226
|
-
const { isPreviewMode: i } = r5(), [a, s] =
|
|
127226
|
+
const { isPreviewMode: i } = r5(), [a, s] = Re(), [l, u] = Re(0), [c, d] = Re(0), [f, h] = Re({}), p = tt(null), [g, m] = Re(!1), [y, b] = Re(!1), [v, x] = Re(null), k = tt(null), F = () => {
|
|
127227
127227
|
const P = {};
|
|
127228
127228
|
HJ.forEach(({ tooltip: Y, isActive: ne }) => {
|
|
127229
127229
|
P[Y] = !!(ne != null && ne(n.attrs));
|
|
@@ -127295,7 +127295,7 @@ const Ube = (e, t) => ({ node: n, updateAttributes: r, deleteNode: o }) => {
|
|
|
127295
127295
|
setTimeout(() => {
|
|
127296
127296
|
L(ne, Math.abs(Y)), pp = P;
|
|
127297
127297
|
});
|
|
127298
|
-
}, [j, N] =
|
|
127298
|
+
}, [j, N] = Re(), [R, _] = Re();
|
|
127299
127299
|
Ue(() => {
|
|
127300
127300
|
s(n.attrs["media-type"]), F(), N(n.attrs.dataFloat), _(n.attrs.dataAlign);
|
|
127301
127301
|
}, [n.attrs]);
|
|
@@ -128013,7 +128013,7 @@ const vhn = (e) => ({
|
|
|
128013
128013
|
watchOnTwitter: Nhn,
|
|
128014
128014
|
viewReplies: _hn
|
|
128015
128015
|
}, Ihn = ({ tweet: e, media: t }) => {
|
|
128016
|
-
const [n, r] =
|
|
128016
|
+
const [n, r] = Re(!0), [o, i] = Re(!1), [a, s] = Re(!1), l = yhn(t);
|
|
128017
128017
|
let u = 0;
|
|
128018
128018
|
return /* @__PURE__ */ A.jsxs(A.Fragment, {
|
|
128019
128019
|
children: [
|
|
@@ -128207,7 +128207,7 @@ const vhn = (e) => ({
|
|
|
128207
128207
|
replyText: ipn,
|
|
128208
128208
|
copyText: apn
|
|
128209
128209
|
}, spn = ({ tweet: e }) => {
|
|
128210
|
-
const [t, n] =
|
|
128210
|
+
const [t, n] = Re(!1), r = () => {
|
|
128211
128211
|
navigator.clipboard.writeText(e.url), n(!0);
|
|
128212
128212
|
};
|
|
128213
128213
|
return Ue(() => {
|
|
@@ -129070,7 +129070,7 @@ const p2n = (e, t, n) => {
|
|
|
129070
129070
|
components: r
|
|
129071
129071
|
});
|
|
129072
129072
|
}, m2n = ({ node: e, editor: t }) => {
|
|
129073
|
-
const [n, r] =
|
|
129073
|
+
const [n, r] = Re(null);
|
|
129074
129074
|
return Ue(() => {
|
|
129075
129075
|
t == null || t.chain().focus(), (async () => {
|
|
129076
129076
|
try {
|
|
@@ -129451,7 +129451,7 @@ const x2n = (e, t, n, r) => {
|
|
|
129451
129451
|
throw new Error("useEditorContext must be used within an EditorProvider");
|
|
129452
129452
|
return e;
|
|
129453
129453
|
}, w2n = ({ children: e, documentStyling: t }) => {
|
|
129454
|
-
const [n, r] =
|
|
129454
|
+
const [n, r] = Re(
|
|
129455
129455
|
/* @__PURE__ */ new Set()
|
|
129456
129456
|
), o = $e(
|
|
129457
129457
|
(s) => n.has(s),
|
|
@@ -132785,7 +132785,7 @@ const X2n = _e.memo(
|
|
|
132785
132785
|
), d6e = _e.memo(
|
|
132786
132786
|
({ node: e, getPos: t, editor: n, deleteNode: r, ...o }) => {
|
|
132787
132787
|
var ie, ue, z, re;
|
|
132788
|
-
const i = (ue = (ie = o.extension) == null ? void 0 : ie.options) == null ? void 0 : ue.onCopyHeadingLink, [a, s] =
|
|
132788
|
+
const i = (ue = (ie = o.extension) == null ? void 0 : ie.options) == null ? void 0 : ue.onCopyHeadingLink, [a, s] = Re(!1), [l, u] = Re(!1), [c, d] = Re(2), f = x2n(n, e, t()), { isPreviewMode: h, isPresentationMode: p, isCollaboratorsDoc: g } = r5(), { collapsedHeadings: m, setCollapsedHeadings: y } = aU(), {
|
|
132789
132789
|
isHeading: b,
|
|
132790
132790
|
isThisHeadingCollapsed: v,
|
|
132791
132791
|
shouldBeHidden: x,
|
|
@@ -135142,10 +135142,10 @@ function Bmn(e, t) {
|
|
|
135142
135142
|
var Be = xe.target, Ae = L().contains(Be) || F.contains(Be);
|
|
135143
135143
|
if (!(xe.type === "mousemove" && Ae)) {
|
|
135144
135144
|
var ze = ye().concat(F).map(function(qe) {
|
|
135145
|
-
var Ve, Qe = qe._tippy,
|
|
135146
|
-
return
|
|
135145
|
+
var Ve, Qe = qe._tippy, Oe = (Ve = Qe.popperInstance) == null ? void 0 : Ve.state;
|
|
135146
|
+
return Oe ? {
|
|
135147
135147
|
popperRect: qe.getBoundingClientRect(),
|
|
135148
|
-
popperState:
|
|
135148
|
+
popperState: Oe,
|
|
135149
135149
|
props: n
|
|
135150
135150
|
} : null;
|
|
135151
135151
|
}).filter(Boolean);
|
|
@@ -135170,7 +135170,7 @@ function Bmn(e, t) {
|
|
|
135170
135170
|
}
|
|
135171
135171
|
function K() {
|
|
135172
135172
|
fe();
|
|
135173
|
-
var xe = x.props, Be = xe.popperOptions, Ae = xe.placement, ze = xe.offset, qe = xe.getReferenceClientRect, Ve = xe.moveTransition, Qe = T() ? S_(F).arrow : null,
|
|
135173
|
+
var xe = x.props, Be = xe.popperOptions, Ae = xe.placement, ze = xe.offset, qe = xe.getReferenceClientRect, Ve = xe.moveTransition, Qe = T() ? S_(F).arrow : null, Oe = qe ? {
|
|
135174
135174
|
getBoundingClientRect: qe,
|
|
135175
135175
|
contextElement: qe.contextElement || L()
|
|
135176
135176
|
} : e, We = {
|
|
@@ -135219,7 +135219,7 @@ function Bmn(e, t) {
|
|
|
135219
135219
|
element: Qe,
|
|
135220
135220
|
padding: 3
|
|
135221
135221
|
}
|
|
135222
|
-
}), Ge.push.apply(Ge, (Be == null ? void 0 : Be.modifiers) || []), x.popperInstance = lmn(
|
|
135222
|
+
}), Ge.push.apply(Ge, (Be == null ? void 0 : Be.modifiers) || []), x.popperInstance = lmn(Oe, F, Object.assign({}, Be, {
|
|
135223
135223
|
placement: Ae,
|
|
135224
135224
|
onFirstUpdate: f,
|
|
135225
135225
|
modifiers: Ge
|
|
@@ -135294,8 +135294,8 @@ function Bmn(e, t) {
|
|
|
135294
135294
|
var xe = x.state.isVisible, Be = x.state.isDestroyed, Ae = !x.state.isEnabled, ze = lu.isTouch && !x.props.touch, qe = NA(x.props.duration, 0, Ra.duration);
|
|
135295
135295
|
if (!(xe || Be || Ae || ze) && !L().hasAttribute("disabled") && (_("onShow", [x], !1), x.props.onShow(x) !== !1)) {
|
|
135296
135296
|
if (x.state.isVisible = !0, T() && (F.style.visibility = "visible"), R(), Q(), x.state.isMounted || (F.style.transition = "none"), T()) {
|
|
135297
|
-
var Ve = j(), Qe = Ve.box,
|
|
135298
|
-
_A([Qe,
|
|
135297
|
+
var Ve = j(), Qe = Ve.box, Oe = Ve.content;
|
|
135298
|
+
_A([Qe, Oe], 0);
|
|
135299
135299
|
}
|
|
135300
135300
|
f = function() {
|
|
135301
135301
|
var Ge;
|
|
@@ -135472,7 +135472,7 @@ function Hmn(e) {
|
|
|
135472
135472
|
function t(n) {
|
|
135473
135473
|
var r = n.children, o = n.content, i = n.visible, a = n.singleton, s = n.render, l = n.reference, u = n.disabled, c = u === void 0 ? !1 : u, d = n.ignoreAttributes, f = d === void 0 ? !0 : d;
|
|
135474
135474
|
n.__source, n.__self;
|
|
135475
|
-
var h = _6e(n, ["children", "content", "visible", "singleton", "render", "reference", "disabled", "ignoreAttributes", "__source", "__self"]), p = i !== void 0, g = a !== void 0, m =
|
|
135475
|
+
var h = _6e(n, ["children", "content", "visible", "singleton", "render", "reference", "disabled", "ignoreAttributes", "__source", "__self"]), p = i !== void 0, g = a !== void 0, m = Re(!1), y = m[0], b = m[1], v = Re({}), x = v[0], k = v[1], F = Re(), C = F[0], D = F[1], S = zmn(function() {
|
|
135476
135476
|
return {
|
|
135477
135477
|
container: NQ(),
|
|
135478
135478
|
renders: 1
|
|
@@ -135660,7 +135660,7 @@ const Wmn = [
|
|
|
135660
135660
|
selected: t,
|
|
135661
135661
|
getPos: n
|
|
135662
135662
|
}) => {
|
|
135663
|
-
const [r, o] =
|
|
135663
|
+
const [r, o] = Re(!1), { isPreviewMode: i } = r5(), a = tt(null), s = tt(), l = () => {
|
|
135664
135664
|
s.current && clearTimeout(s.current), o(!0);
|
|
135665
135665
|
}, u = () => {
|
|
135666
135666
|
s.current = setTimeout(() => {
|
|
@@ -136039,7 +136039,7 @@ const Xmn = Pt.create({
|
|
|
136039
136039
|
getPos: n,
|
|
136040
136040
|
deleteNode: r
|
|
136041
136041
|
}) => {
|
|
136042
|
-
const [o, i] =
|
|
136042
|
+
const [o, i] = Re(""), { isPreviewMode: a } = r5(), s = ["https://twitter.com", "https://x.com"], l = () => {
|
|
136043
136043
|
switch (e.attrs.data) {
|
|
136044
136044
|
case "twitter":
|
|
136045
136045
|
return /* @__PURE__ */ A.jsx(He, { name: "XSocial", size: "md" });
|
|
@@ -149810,9 +149810,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
149810
149810
|
for (fe.max_code = Z, De = K.heap_len >> 1; 1 <= De; De--) re(K, pe, De);
|
|
149811
149811
|
for (ve = U; De = K.heap[1], K.heap[1] = K.heap[K.heap_len--], re(K, pe, 1), ye = K.heap[1], K.heap[--K.heap_max] = De, K.heap[--K.heap_max] = ye, pe[2 * ve] = pe[2 * De] + pe[2 * ye], K.depth[ve] = (K.depth[De] >= K.depth[ye] ? K.depth[De] : K.depth[ye]) + 1, pe[2 * De + 1] = pe[2 * ye + 1] = ve, K.heap[1] = ve++, re(K, pe, 1), 2 <= K.heap_len; ) ;
|
|
149812
149812
|
K.heap[--K.heap_max] = K.heap[1], function(ae, me) {
|
|
149813
|
-
var ke, we, Se, je, xe, Be, Ae = me.dyn_tree, ze = me.max_code, qe = me.stat_desc.static_tree, Ve = me.stat_desc.has_stree, Qe = me.stat_desc.extra_bits,
|
|
149813
|
+
var ke, we, Se, je, xe, Be, Ae = me.dyn_tree, ze = me.max_code, qe = me.stat_desc.static_tree, Ve = me.stat_desc.has_stree, Qe = me.stat_desc.extra_bits, Oe = me.stat_desc.extra_base, We = me.stat_desc.max_length, Ge = 0;
|
|
149814
149814
|
for (je = 0; je <= m; je++) ae.bl_count[je] = 0;
|
|
149815
|
-
for (Ae[2 * ae.heap[ae.heap_max] + 1] = 0, ke = ae.heap_max + 1; ke < g; ke++) We < (je = Ae[2 * Ae[2 * (we = ae.heap[ke]) + 1] + 1] + 1) && (je = We, Ge++), Ae[2 * we + 1] = je, ze < we || (ae.bl_count[je]++, xe = 0,
|
|
149815
|
+
for (Ae[2 * ae.heap[ae.heap_max] + 1] = 0, ke = ae.heap_max + 1; ke < g; ke++) We < (je = Ae[2 * Ae[2 * (we = ae.heap[ke]) + 1] + 1] + 1) && (je = We, Ge++), Ae[2 * we + 1] = je, ze < we || (ae.bl_count[je]++, xe = 0, Oe <= we && (xe = Qe[we - Oe]), Be = Ae[2 * we], ae.opt_len += Be * (je + xe), Ve && (ae.static_len += Be * (qe[2 * we + 1] + xe)));
|
|
149816
149816
|
if (Ge !== 0) {
|
|
149817
149817
|
do {
|
|
149818
149818
|
for (je = We - 1; ae.bl_count[je] === 0; ) je--;
|
|
@@ -172291,7 +172291,7 @@ const jEn = ({
|
|
|
172291
172291
|
metadataProxyUrl: t,
|
|
172292
172292
|
hoverEvent: n
|
|
172293
172293
|
}) => {
|
|
172294
|
-
const r = ni("(max-width:768px)"), [o, i] =
|
|
172294
|
+
const r = ni("(max-width:768px)"), [o, i] = Re(null), [a, s] = Re(!1), l = tt(/* @__PURE__ */ new Map()), u = async (c) => {
|
|
172295
172295
|
if (c) {
|
|
172296
172296
|
if (l.current.has(c)) {
|
|
172297
172297
|
i(l.current.get(c)), s(!1);
|
|
@@ -173771,7 +173771,7 @@ function IAn({
|
|
|
173771
173771
|
editor: n,
|
|
173772
173772
|
deleteNode: r
|
|
173773
173773
|
}) {
|
|
173774
|
-
const o = tt(null), [i, a] =
|
|
173774
|
+
const o = tt(null), [i, a] = Re("Copy"), s = e.attrs.language || "plaintext", l = !n.isEditable, u = e.attrs.lineNumbers && !l, c = e.attrs.wordWrap && !l, d = e.attrs.tabSize ?? 2, f = e.attrs.shouldFocus, { isMobile: h } = j1(), p = e.attrs.code || e.textContent || "", g = Lt(() => {
|
|
173775
173775
|
const b = p.split(`
|
|
173776
173776
|
`), v = [];
|
|
173777
173777
|
let x = 0;
|
|
@@ -187215,7 +187215,7 @@ function cTn({
|
|
|
187215
187215
|
var Ewe = cTn;
|
|
187216
187216
|
const Awe = Rn(
|
|
187217
187217
|
(e, t) => {
|
|
187218
|
-
const [n, r] =
|
|
187218
|
+
const [n, r] = Re(0), o = $e(
|
|
187219
187219
|
(l) => {
|
|
187220
187220
|
const u = e.items[l];
|
|
187221
187221
|
u && e.command(u);
|
|
@@ -247808,7 +247808,7 @@ const kTn = ({
|
|
|
247808
247808
|
command: t,
|
|
247809
247809
|
editor: n
|
|
247810
247810
|
}) => {
|
|
247811
|
-
const [r, o] =
|
|
247811
|
+
const [r, o] = Re(0), [i, a] = Re(e), s = ni("(max-width: 640px)"), l = Ax(n, "callout"), u = Ax(n, "codeBlock"), c = Ax(n, "column"), d = Ax(n, "table"), f = $e(
|
|
247812
247812
|
(p) => {
|
|
247813
247813
|
const g = i[p];
|
|
247814
247814
|
g && (g.title === "Continue writing" || t(g));
|
|
@@ -249597,9 +249597,9 @@ const coe = () => {
|
|
|
249597
249597
|
deleteNode: o
|
|
249598
249598
|
}) => {
|
|
249599
249599
|
var J;
|
|
249600
|
-
const [i, a] =
|
|
249600
|
+
const [i, a] = Re(!1), [s, l] = Re(!1), [u, c] = Re(e.attrs.prompt), [d, f] = Re(!!e.attrs.content), [h, p] = Re(""), [g, m] = Re(!1), [y, b] = Re(!1), [v, x] = Re([]), [k, F] = Re(
|
|
249601
249601
|
!!localStorage.getItem("include-ddoc-context")
|
|
249602
|
-
), [C, D] =
|
|
249602
|
+
), [C, D] = Re(!0), { prompt: S, content: B } = e.attrs, O = tt(null), T = tt(null), L = tt(null), M = !t.isEditable, { isWindows: j } = j1(), N = j ? "Ctrl" : "Cmd", R = window.__MODEL_CONTEXT__, _ = tt(null), [H, $] = Re(
|
|
249603
249603
|
coe()
|
|
249604
249604
|
), V = jse({
|
|
249605
249605
|
extensions: [Nbe, ...P6e],
|
|
@@ -256401,8 +256401,8 @@ var rFe = {};
|
|
|
256401
256401
|
se[z] = ie[z] - ue[z];
|
|
256402
256402
|
}
|
|
256403
256403
|
function C(se, ie, ue) {
|
|
256404
|
-
let z, re, te = 0, ce = 0, I = 0, le = 0, de = 0, J = 0, K = 0, fe = 0, De = 0, ye = 0, ve = 0, pe = 0, ge = 0, be = 0, U = 0, Z = 0, ae = 0, me = 0, ke = 0, we = 0, Se = 0, je = 0, xe = 0, Be = 0, Ae = 0, ze = 0, qe = 0, Ve = 0, Qe = 0,
|
|
256405
|
-
z = ie[0], te += z * Ge, ce += z * Ke, I += z * gt, le += z * st, de += z * wt, J += z * Mt, K += z * Tt, fe += z * Et, De += z * sn, ye += z * wn, ve += z * Jn, pe += z * Dn, ge += z * Pn, be += z * dr, U += z * X, Z += z * Ee, z = ie[1], ce += z * Ge, I += z * Ke, le += z * gt, de += z * st, J += z * wt, K += z * Mt, fe += z * Tt, De += z * Et, ye += z * sn, ve += z * wn, pe += z * Jn, ge += z * Dn, be += z * Pn, U += z * dr, Z += z * X, ae += z * Ee, z = ie[2], I += z * Ge, le += z * Ke, de += z * gt, J += z * st, K += z * wt, fe += z * Mt, De += z * Tt, ye += z * Et, ve += z * sn, pe += z * wn, ge += z * Jn, be += z * Dn, U += z * Pn, Z += z * dr, ae += z * X, me += z * Ee, z = ie[3], le += z * Ge, de += z * Ke, J += z * gt, K += z * st, fe += z * wt, De += z * Mt, ye += z * Tt, ve += z * Et, pe += z * sn, ge += z * wn, be += z * Jn, U += z * Dn, Z += z * Pn, ae += z * dr, me += z * X, ke += z * Ee, z = ie[4], de += z * Ge, J += z * Ke, K += z * gt, fe += z * st, De += z * wt, ye += z * Mt, ve += z * Tt, pe += z * Et, ge += z * sn, be += z * wn, U += z * Jn, Z += z * Dn, ae += z * Pn, me += z * dr, ke += z * X, we += z * Ee, z = ie[5], J += z * Ge, K += z * Ke, fe += z * gt, De += z * st, ye += z * wt, ve += z * Mt, pe += z * Tt, ge += z * Et, be += z * sn, U += z * wn, Z += z * Jn, ae += z * Dn, me += z * Pn, ke += z * dr, we += z * X, Se += z * Ee, z = ie[6], K += z * Ge, fe += z * Ke, De += z * gt, ye += z * st, ve += z * wt, pe += z * Mt, ge += z * Tt, be += z * Et, U += z * sn, Z += z * wn, ae += z * Jn, me += z * Dn, ke += z * Pn, we += z * dr, Se += z * X, je += z * Ee, z = ie[7], fe += z * Ge, De += z * Ke, ye += z * gt, ve += z * st, pe += z * wt, ge += z * Mt, be += z * Tt, U += z * Et, Z += z * sn, ae += z * wn, me += z * Jn, ke += z * Dn, we += z * Pn, Se += z * dr, je += z * X, xe += z * Ee, z = ie[8], De += z * Ge, ye += z * Ke, ve += z * gt, pe += z * st, ge += z * wt, be += z * Mt, U += z * Tt, Z += z * Et, ae += z * sn, me += z * wn, ke += z * Jn, we += z * Dn, Se += z * Pn, je += z * dr, xe += z * X, Be += z * Ee, z = ie[9], ye += z * Ge, ve += z * Ke, pe += z * gt, ge += z * st, be += z * wt, U += z * Mt, Z += z * Tt, ae += z * Et, me += z * sn, ke += z * wn, we += z * Jn, Se += z * Dn, je += z * Pn, xe += z * dr, Be += z * X, Ae += z * Ee, z = ie[10], ve += z * Ge, pe += z * Ke, ge += z * gt, be += z * st, U += z * wt, Z += z * Mt, ae += z * Tt, me += z * Et, ke += z * sn, we += z * wn, Se += z * Jn, je += z * Dn, xe += z * Pn, Be += z * dr, Ae += z * X, ze += z * Ee, z = ie[11], pe += z * Ge, ge += z * Ke, be += z * gt, U += z * st, Z += z * wt, ae += z * Mt, me += z * Tt, ke += z * Et, we += z * sn, Se += z * wn, je += z * Jn, xe += z * Dn, Be += z * Pn, Ae += z * dr, ze += z * X, qe += z * Ee, z = ie[12], ge += z * Ge, be += z * Ke, U += z * gt, Z += z * st, ae += z * wt, me += z * Mt, ke += z * Tt, we += z * Et, Se += z * sn, je += z * wn, xe += z * Jn, Be += z * Dn, Ae += z * Pn, ze += z * dr, qe += z * X, Ve += z * Ee, z = ie[13], be += z * Ge, U += z * Ke, Z += z * gt, ae += z * st, me += z * wt, ke += z * Mt, we += z * Tt, Se += z * Et, je += z * sn, xe += z * wn, Be += z * Jn, Ae += z * Dn, ze += z * Pn, qe += z * dr, Ve += z * X, Qe += z * Ee, z = ie[14], U += z * Ge, Z += z * Ke, ae += z * gt, me += z * st, ke += z * wt, we += z * Mt, Se += z * Tt, je += z * Et, xe += z * sn, Be += z * wn, Ae += z * Jn, ze += z * Dn, qe += z * Pn, Ve += z * dr, Qe += z * X,
|
|
256404
|
+
let z, re, te = 0, ce = 0, I = 0, le = 0, de = 0, J = 0, K = 0, fe = 0, De = 0, ye = 0, ve = 0, pe = 0, ge = 0, be = 0, U = 0, Z = 0, ae = 0, me = 0, ke = 0, we = 0, Se = 0, je = 0, xe = 0, Be = 0, Ae = 0, ze = 0, qe = 0, Ve = 0, Qe = 0, Oe = 0, We = 0, Ge = ue[0], Ke = ue[1], gt = ue[2], st = ue[3], wt = ue[4], Mt = ue[5], Tt = ue[6], Et = ue[7], sn = ue[8], wn = ue[9], Jn = ue[10], Dn = ue[11], Pn = ue[12], dr = ue[13], X = ue[14], Ee = ue[15];
|
|
256405
|
+
z = ie[0], te += z * Ge, ce += z * Ke, I += z * gt, le += z * st, de += z * wt, J += z * Mt, K += z * Tt, fe += z * Et, De += z * sn, ye += z * wn, ve += z * Jn, pe += z * Dn, ge += z * Pn, be += z * dr, U += z * X, Z += z * Ee, z = ie[1], ce += z * Ge, I += z * Ke, le += z * gt, de += z * st, J += z * wt, K += z * Mt, fe += z * Tt, De += z * Et, ye += z * sn, ve += z * wn, pe += z * Jn, ge += z * Dn, be += z * Pn, U += z * dr, Z += z * X, ae += z * Ee, z = ie[2], I += z * Ge, le += z * Ke, de += z * gt, J += z * st, K += z * wt, fe += z * Mt, De += z * Tt, ye += z * Et, ve += z * sn, pe += z * wn, ge += z * Jn, be += z * Dn, U += z * Pn, Z += z * dr, ae += z * X, me += z * Ee, z = ie[3], le += z * Ge, de += z * Ke, J += z * gt, K += z * st, fe += z * wt, De += z * Mt, ye += z * Tt, ve += z * Et, pe += z * sn, ge += z * wn, be += z * Jn, U += z * Dn, Z += z * Pn, ae += z * dr, me += z * X, ke += z * Ee, z = ie[4], de += z * Ge, J += z * Ke, K += z * gt, fe += z * st, De += z * wt, ye += z * Mt, ve += z * Tt, pe += z * Et, ge += z * sn, be += z * wn, U += z * Jn, Z += z * Dn, ae += z * Pn, me += z * dr, ke += z * X, we += z * Ee, z = ie[5], J += z * Ge, K += z * Ke, fe += z * gt, De += z * st, ye += z * wt, ve += z * Mt, pe += z * Tt, ge += z * Et, be += z * sn, U += z * wn, Z += z * Jn, ae += z * Dn, me += z * Pn, ke += z * dr, we += z * X, Se += z * Ee, z = ie[6], K += z * Ge, fe += z * Ke, De += z * gt, ye += z * st, ve += z * wt, pe += z * Mt, ge += z * Tt, be += z * Et, U += z * sn, Z += z * wn, ae += z * Jn, me += z * Dn, ke += z * Pn, we += z * dr, Se += z * X, je += z * Ee, z = ie[7], fe += z * Ge, De += z * Ke, ye += z * gt, ve += z * st, pe += z * wt, ge += z * Mt, be += z * Tt, U += z * Et, Z += z * sn, ae += z * wn, me += z * Jn, ke += z * Dn, we += z * Pn, Se += z * dr, je += z * X, xe += z * Ee, z = ie[8], De += z * Ge, ye += z * Ke, ve += z * gt, pe += z * st, ge += z * wt, be += z * Mt, U += z * Tt, Z += z * Et, ae += z * sn, me += z * wn, ke += z * Jn, we += z * Dn, Se += z * Pn, je += z * dr, xe += z * X, Be += z * Ee, z = ie[9], ye += z * Ge, ve += z * Ke, pe += z * gt, ge += z * st, be += z * wt, U += z * Mt, Z += z * Tt, ae += z * Et, me += z * sn, ke += z * wn, we += z * Jn, Se += z * Dn, je += z * Pn, xe += z * dr, Be += z * X, Ae += z * Ee, z = ie[10], ve += z * Ge, pe += z * Ke, ge += z * gt, be += z * st, U += z * wt, Z += z * Mt, ae += z * Tt, me += z * Et, ke += z * sn, we += z * wn, Se += z * Jn, je += z * Dn, xe += z * Pn, Be += z * dr, Ae += z * X, ze += z * Ee, z = ie[11], pe += z * Ge, ge += z * Ke, be += z * gt, U += z * st, Z += z * wt, ae += z * Mt, me += z * Tt, ke += z * Et, we += z * sn, Se += z * wn, je += z * Jn, xe += z * Dn, Be += z * Pn, Ae += z * dr, ze += z * X, qe += z * Ee, z = ie[12], ge += z * Ge, be += z * Ke, U += z * gt, Z += z * st, ae += z * wt, me += z * Mt, ke += z * Tt, we += z * Et, Se += z * sn, je += z * wn, xe += z * Jn, Be += z * Dn, Ae += z * Pn, ze += z * dr, qe += z * X, Ve += z * Ee, z = ie[13], be += z * Ge, U += z * Ke, Z += z * gt, ae += z * st, me += z * wt, ke += z * Mt, we += z * Tt, Se += z * Et, je += z * sn, xe += z * wn, Be += z * Jn, Ae += z * Dn, ze += z * Pn, qe += z * dr, Ve += z * X, Qe += z * Ee, z = ie[14], U += z * Ge, Z += z * Ke, ae += z * gt, me += z * st, ke += z * wt, we += z * Mt, Se += z * Tt, je += z * Et, xe += z * sn, Be += z * wn, Ae += z * Jn, ze += z * Dn, qe += z * Pn, Ve += z * dr, Qe += z * X, Oe += z * Ee, z = ie[15], Z += z * Ge, ae += z * Ke, me += z * gt, ke += z * st, we += z * wt, Se += z * Mt, je += z * Tt, xe += z * Et, Be += z * sn, Ae += z * wn, ze += z * Jn, qe += z * Dn, Ve += z * Pn, Qe += z * dr, Oe += z * X, We += z * Ee, te += 38 * ae, ce += 38 * me, I += 38 * ke, le += 38 * we, de += 38 * Se, J += 38 * je, K += 38 * xe, fe += 38 * Be, De += 38 * Ae, ye += 38 * ze, ve += 38 * qe, pe += 38 * Ve, ge += 38 * Qe, be += 38 * Oe, U += 38 * We, re = 1, z = te + re + 65535, re = Math.floor(z / 65536), te = z - re * 65536, z = ce + re + 65535, re = Math.floor(z / 65536), ce = z - re * 65536, z = I + re + 65535, re = Math.floor(z / 65536), I = z - re * 65536, z = le + re + 65535, re = Math.floor(z / 65536), le = z - re * 65536, z = de + re + 65535, re = Math.floor(z / 65536), de = z - re * 65536, z = J + re + 65535, re = Math.floor(z / 65536), J = z - re * 65536, z = K + re + 65535, re = Math.floor(z / 65536), K = z - re * 65536, z = fe + re + 65535, re = Math.floor(z / 65536), fe = z - re * 65536, z = De + re + 65535, re = Math.floor(z / 65536), De = z - re * 65536, z = ye + re + 65535, re = Math.floor(z / 65536), ye = z - re * 65536, z = ve + re + 65535, re = Math.floor(z / 65536), ve = z - re * 65536, z = pe + re + 65535, re = Math.floor(z / 65536), pe = z - re * 65536, z = ge + re + 65535, re = Math.floor(z / 65536), ge = z - re * 65536, z = be + re + 65535, re = Math.floor(z / 65536), be = z - re * 65536, z = U + re + 65535, re = Math.floor(z / 65536), U = z - re * 65536, z = Z + re + 65535, re = Math.floor(z / 65536), Z = z - re * 65536, te += re - 1 + 37 * (re - 1), re = 1, z = te + re + 65535, re = Math.floor(z / 65536), te = z - re * 65536, z = ce + re + 65535, re = Math.floor(z / 65536), ce = z - re * 65536, z = I + re + 65535, re = Math.floor(z / 65536), I = z - re * 65536, z = le + re + 65535, re = Math.floor(z / 65536), le = z - re * 65536, z = de + re + 65535, re = Math.floor(z / 65536), de = z - re * 65536, z = J + re + 65535, re = Math.floor(z / 65536), J = z - re * 65536, z = K + re + 65535, re = Math.floor(z / 65536), K = z - re * 65536, z = fe + re + 65535, re = Math.floor(z / 65536), fe = z - re * 65536, z = De + re + 65535, re = Math.floor(z / 65536), De = z - re * 65536, z = ye + re + 65535, re = Math.floor(z / 65536), ye = z - re * 65536, z = ve + re + 65535, re = Math.floor(z / 65536), ve = z - re * 65536, z = pe + re + 65535, re = Math.floor(z / 65536), pe = z - re * 65536, z = ge + re + 65535, re = Math.floor(z / 65536), ge = z - re * 65536, z = be + re + 65535, re = Math.floor(z / 65536), be = z - re * 65536, z = U + re + 65535, re = Math.floor(z / 65536), U = z - re * 65536, z = Z + re + 65535, re = Math.floor(z / 65536), Z = z - re * 65536, te += re - 1 + 37 * (re - 1), se[0] = te, se[1] = ce, se[2] = I, se[3] = le, se[4] = de, se[5] = J, se[6] = K, se[7] = fe, se[8] = De, se[9] = ye, se[10] = ve, se[11] = pe, se[12] = ge, se[13] = be, se[14] = U, se[15] = Z;
|
|
256406
256406
|
}
|
|
256407
256407
|
function D(se, ie) {
|
|
256408
256408
|
C(se, ie, ie);
|
|
@@ -256933,12 +256933,12 @@ var cFe = { exports: {} };
|
|
|
256933
256933
|
return new f(this.value * this.value);
|
|
256934
256934
|
};
|
|
256935
256935
|
function N(U, Z) {
|
|
256936
|
-
var ae = U.length, me = Z.length, ke = r, we = y(Z.length), Se = Z[me - 1], je = Math.ceil(ke / (2 * Se)), xe = B(U, je), Be = B(Z, je), Ae, ze, qe, Ve, Qe,
|
|
256936
|
+
var ae = U.length, me = Z.length, ke = r, we = y(Z.length), Se = Z[me - 1], je = Math.ceil(ke / (2 * Se)), xe = B(U, je), Be = B(Z, je), Ae, ze, qe, Ve, Qe, Oe, We;
|
|
256937
256937
|
for (xe.length <= ae && xe.push(0), Be.push(0), Se = Be[me - 1], ze = ae - me; ze >= 0; ze--) {
|
|
256938
|
-
for (Ae = ke - 1, xe[ze + me] !== Se && (Ae = Math.floor((xe[ze + me] * ke + xe[ze + me - 1]) / Se)), qe = 0, Ve = 0,
|
|
256938
|
+
for (Ae = ke - 1, xe[ze + me] !== Se && (Ae = Math.floor((xe[ze + me] * ke + xe[ze + me - 1]) / Se)), qe = 0, Ve = 0, Oe = Be.length, Qe = 0; Qe < Oe; Qe++)
|
|
256939
256939
|
qe += Ae * Be[Qe], We = Math.floor(qe / ke), Ve += xe[ze + Qe] - (qe - We * ke), qe = We, Ve < 0 ? (xe[ze + Qe] = Ve + ke, Ve = -1) : (xe[ze + Qe] = Ve, Ve = 0);
|
|
256940
256940
|
for (; Ve !== 0; ) {
|
|
256941
|
-
for (Ae -= 1, qe = 0, Qe = 0; Qe <
|
|
256941
|
+
for (Ae -= 1, qe = 0, Qe = 0; Qe < Oe; Qe++)
|
|
256942
256942
|
qe += xe[ze + Qe] - ke + Be[Qe], qe < 0 ? (xe[ze + Qe] = qe + ke, qe = 0) : (xe[ze + Qe] = qe, qe = 1);
|
|
256943
256943
|
Ve += qe;
|
|
256944
256944
|
}
|
|
@@ -260331,7 +260331,7 @@ function IOn(e, t) {
|
|
|
260331
260331
|
return typeof e == "function" ? e() : e;
|
|
260332
260332
|
});
|
|
260333
260333
|
if (process.env.NODE_ENV !== "production" && typeof e != "function") {
|
|
260334
|
-
var r = _On(
|
|
260334
|
+
var r = _On(Re(n), 1), o = r[0];
|
|
260335
260335
|
e !== o && console.warn("Machine given to `useMachine` has changed between renders. This is not supported and might lead to unexpected results.\nPlease make sure that you pass the same Machine as argument each time.");
|
|
260336
260336
|
}
|
|
260337
260337
|
var i = t.context, a = t.guards, s = t.actions, l = t.activities, u = t.services, c = t.delays;
|
|
@@ -261029,7 +261029,7 @@ const wRn = (e) => e.context.awareness, kRn = (e) => !!(e.context.isReady && e.c
|
|
|
261029
261029
|
...O
|
|
261030
261030
|
}) => {
|
|
261031
261031
|
var Ve, Qe;
|
|
261032
|
-
const [T, L] =
|
|
261032
|
+
const [T, L] = Re(!0), [M, j] = Re(!0), [N] = Re(new rc()), {
|
|
261033
261033
|
connect: R,
|
|
261034
261034
|
isReady: _,
|
|
261035
261035
|
terminateSession: H,
|
|
@@ -261044,9 +261044,9 @@ const wRn = (e) => e.context.awareness, kRn = (e) => !!(e.context.isReady && e.c
|
|
|
261044
261044
|
onSessionTerminated: O.onCollabSessionTermination,
|
|
261045
261045
|
onUnMergedUpdates: O.onUnMergedUpdates,
|
|
261046
261046
|
onLocalUpdate: r
|
|
261047
|
-
}), P = Lt(() => n, [n]), [Y, ne] =
|
|
261047
|
+
}), P = Lt(() => n, [n]), [Y, ne] = Re(null), Q = tt(null), ee = (Oe) => {
|
|
261048
261048
|
if (!Q.current) return;
|
|
261049
|
-
const We = Q.current.querySelector(`input#${
|
|
261049
|
+
const We = Q.current.querySelector(`input#${Oe}`);
|
|
261050
261050
|
We && We.scrollIntoView({
|
|
261051
261051
|
behavior: "smooth",
|
|
261052
261052
|
block: "center",
|
|
@@ -261056,24 +261056,24 @@ const wRn = (e) => e.context.awareness, kRn = (e) => !!(e.context.isReady && e.c
|
|
|
261056
261056
|
Ue(() => {
|
|
261057
261057
|
Y && ee(Y);
|
|
261058
261058
|
}, [Y]);
|
|
261059
|
-
const [se, ie] =
|
|
261059
|
+
const [se, ie] = Re([]), ue = C !== void 0 && S, [z, re] = Re([
|
|
261060
261060
|
...Swe({
|
|
261061
|
-
onError: (
|
|
261061
|
+
onError: (Oe) => a == null ? void 0 : a(Oe),
|
|
261062
261062
|
ipfsImageUploadFn: u,
|
|
261063
261063
|
metadataProxyUrl: y,
|
|
261064
261064
|
onCopyHeadingLink: v,
|
|
261065
261065
|
ipfsImageFetchFn: x,
|
|
261066
261066
|
fetchV1ImageFn: k,
|
|
261067
|
-
onTocUpdate(
|
|
261068
|
-
We ? ie(
|
|
261067
|
+
onTocUpdate(Oe, We) {
|
|
261068
|
+
We ? ie(Oe) : (fe.current && clearTimeout(fe.current), requestAnimationFrame(() => {
|
|
261069
261069
|
fe.current = window.setTimeout(() => {
|
|
261070
|
-
ie(
|
|
261070
|
+
ie(Oe), fe.current = null;
|
|
261071
261071
|
}, 100);
|
|
261072
261072
|
}));
|
|
261073
261073
|
}
|
|
261074
261074
|
}),
|
|
261075
261075
|
jT(
|
|
261076
|
-
(
|
|
261076
|
+
(Oe) => a == null ? void 0 : a(Oe),
|
|
261077
261077
|
u,
|
|
261078
261078
|
F,
|
|
261079
261079
|
n
|
|
@@ -261084,8 +261084,8 @@ const wRn = (e) => e.context.awareness, kRn = (e) => !!(e.context.isReady && e.c
|
|
|
261084
261084
|
HTMLAttributes: {
|
|
261085
261085
|
class: "inline-comment"
|
|
261086
261086
|
},
|
|
261087
|
-
onCommentActivated: (
|
|
261088
|
-
ne(
|
|
261087
|
+
onCommentActivated: (Oe) => {
|
|
261088
|
+
ne(Oe), Oe && setTimeout(() => ee(Oe));
|
|
261089
261089
|
}
|
|
261090
261090
|
}),
|
|
261091
261091
|
rbe.configure({
|
|
@@ -261094,8 +261094,8 @@ const wRn = (e) => e.context.awareness, kRn = (e) => !!(e.context.isReady && e.c
|
|
|
261094
261094
|
...b ? Object.values(b) : []
|
|
261095
261095
|
]);
|
|
261096
261096
|
Ue(() => {
|
|
261097
|
-
F && re((
|
|
261098
|
-
...
|
|
261097
|
+
F && re((Oe) => [
|
|
261098
|
+
...Oe.filter((We) => We.name !== "slash-command"),
|
|
261099
261099
|
jT(
|
|
261100
261100
|
(We) => a == null ? void 0 : a(We),
|
|
261101
261101
|
u,
|
|
@@ -261104,20 +261104,20 @@ const wRn = (e) => e.context.awareness, kRn = (e) => !!(e.context.isReady && e.c
|
|
|
261104
261104
|
)
|
|
261105
261105
|
]);
|
|
261106
261106
|
}, [F, n]);
|
|
261107
|
-
const te = tt(!1), [ce, I] =
|
|
261107
|
+
const te = tt(!1), [ce, I] = Re([]), le = (Oe, We, Ge) => {
|
|
261108
261108
|
let Ke = !1;
|
|
261109
|
-
return
|
|
261109
|
+
return Oe.doc.nodesBetween(We, Ge, (gt) => {
|
|
261110
261110
|
gt.marks && gt.marks.some(
|
|
261111
261111
|
(st) => st.type.name === "highlight" && st.attrs.color === "yellow"
|
|
261112
261112
|
) && (Ke = !0);
|
|
261113
261113
|
}), Ke;
|
|
261114
|
-
}, de = (
|
|
261114
|
+
}, de = (Oe, We) => {
|
|
261115
261115
|
var Ke;
|
|
261116
261116
|
const Ge = We.target;
|
|
261117
261117
|
if (Ge && Ge.nodeName === "MARK" && Ge.dataset.color && ((Ke = Ge == null ? void 0 : Ge.dataset) == null ? void 0 : Ke.color) === "yellow") {
|
|
261118
|
-
const gt = Ge.textContent, st =
|
|
261118
|
+
const gt = Ge.textContent, st = Oe.posAtCoords({ left: We.clientX, top: We.clientY });
|
|
261119
261119
|
if (st) {
|
|
261120
|
-
const { state: wt } =
|
|
261120
|
+
const { state: wt } = Oe;
|
|
261121
261121
|
let Mt = st.pos, Tt = st.pos;
|
|
261122
261122
|
if (wt.doc.nodesBetween(Mt, Tt, (Et, sn) => {
|
|
261123
261123
|
Et.marks && Et.marks.length && Et.marks.forEach((wn) => {
|
|
@@ -261134,10 +261134,10 @@ const wRn = (e) => e.context.awareness, kRn = (e) => !!(e.context.isReady && e.c
|
|
|
261134
261134
|
}
|
|
261135
261135
|
}
|
|
261136
261136
|
}
|
|
261137
|
-
}, J = (
|
|
261138
|
-
de(
|
|
261139
|
-
}, K = Lt(() => z, [z]), fe = tt(null), De = (
|
|
261140
|
-
const { state: Ge } =
|
|
261137
|
+
}, J = (Oe, We, Ge) => {
|
|
261138
|
+
de(Oe, Ge);
|
|
261139
|
+
}, K = Lt(() => z, [z]), fe = tt(null), De = (Oe, We) => {
|
|
261140
|
+
const { state: Ge } = Oe, { selection: Ke } = Ge, { from: gt, to: st, empty: wt } = Ke;
|
|
261141
261141
|
if (We.key === "Backspace" || We.key === "Delete") {
|
|
261142
261142
|
let Mt = !1;
|
|
261143
261143
|
if (!wt)
|
|
@@ -261155,11 +261155,16 @@ const wRn = (e) => e.context.awareness, kRn = (e) => !!(e.context.isReady && e.c
|
|
|
261155
261155
|
{
|
|
261156
261156
|
extensions: K,
|
|
261157
261157
|
editorProps: {
|
|
261158
|
+
clipboardTextSerializer(Oe) {
|
|
261159
|
+
return Oe.content.textBetween(0, Oe.content.size, `
|
|
261160
|
+
|
|
261161
|
+
`);
|
|
261162
|
+
},
|
|
261158
261163
|
...Qln,
|
|
261159
261164
|
handleDOMEvents: {
|
|
261160
261165
|
mouseover: de,
|
|
261161
|
-
keydown: (
|
|
261162
|
-
if (De(
|
|
261166
|
+
keydown: (Oe, We) => {
|
|
261167
|
+
if (De(Oe, We), ["ArrowUp", "ArrowDown", "Enter"].includes(We.key)) {
|
|
261163
261168
|
const Ge = document.querySelector("#slash-command"), Ke = document.querySelector("#emoji-list");
|
|
261164
261169
|
if (Ge || Ke)
|
|
261165
261170
|
return !0;
|
|
@@ -261182,16 +261187,16 @@ const wRn = (e) => e.context.awareness, kRn = (e) => !!(e.context.isReady && e.c
|
|
|
261182
261187
|
);
|
|
261183
261188
|
Ue(() => {
|
|
261184
261189
|
if (!ye) return;
|
|
261185
|
-
const
|
|
261190
|
+
const Oe = () => {
|
|
261186
261191
|
ye && !ye.isDestroyed && ye.commands.updateTableOfContents();
|
|
261187
261192
|
};
|
|
261188
|
-
return ye.on("update",
|
|
261189
|
-
ye.off("update",
|
|
261193
|
+
return ye.on("update", Oe), () => {
|
|
261194
|
+
ye.off("update", Oe);
|
|
261190
261195
|
};
|
|
261191
261196
|
}, [ye]), Ue(() => {
|
|
261192
261197
|
C && re([
|
|
261193
261198
|
...z.filter(
|
|
261194
|
-
(
|
|
261199
|
+
(Oe) => Oe.name !== "aiAutocomplete" && Oe.name !== "aiWriter" && Oe.name !== "dBlock" && Oe.name !== "slash-command"
|
|
261195
261200
|
),
|
|
261196
261201
|
Djn.configure({
|
|
261197
261202
|
model: C,
|
|
@@ -261204,7 +261209,7 @@ const wRn = (e) => e.context.awareness, kRn = (e) => !!(e.context.isReady && e.c
|
|
|
261204
261209
|
hasAvailableModels: ue
|
|
261205
261210
|
}),
|
|
261206
261211
|
jT(
|
|
261207
|
-
(
|
|
261212
|
+
(Oe) => a == null ? void 0 : a(Oe),
|
|
261208
261213
|
u,
|
|
261209
261214
|
F,
|
|
261210
261215
|
n
|
|
@@ -261219,17 +261224,17 @@ const wRn = (e) => e.context.awareness, kRn = (e) => !!(e.context.isReady && e.c
|
|
|
261219
261224
|
]), Ue(() => {
|
|
261220
261225
|
if (h) {
|
|
261221
261226
|
NT.setZoom(h);
|
|
261222
|
-
const
|
|
261227
|
+
const Oe = setTimeout(() => {
|
|
261223
261228
|
NT.setZoom(h);
|
|
261224
261229
|
}, 100);
|
|
261225
|
-
return () => clearTimeout(
|
|
261230
|
+
return () => clearTimeout(Oe);
|
|
261226
261231
|
}
|
|
261227
261232
|
}, [h, T, t, ye == null ? void 0 : ye.isEmpty]);
|
|
261228
261233
|
const ve = tt(() => {
|
|
261229
261234
|
});
|
|
261230
261235
|
Ue(() => {
|
|
261231
|
-
var
|
|
261232
|
-
!_ || !n || !B || B.isEns && typeof ((
|
|
261236
|
+
var Oe;
|
|
261237
|
+
!_ || !n || !B || B.isEns && typeof ((Oe = ye == null ? void 0 : ye.commands) == null ? void 0 : Oe.updateUser) == "function" && ye.commands.updateUser({
|
|
261233
261238
|
name: B.username,
|
|
261234
261239
|
color: qx[Math.floor(Math.random() * qx.length)],
|
|
261235
261240
|
isEns: B.isEns
|
|
@@ -261266,28 +261271,28 @@ const wRn = (e) => e.context.awareness, kRn = (e) => !!(e.context.isReady && e.c
|
|
|
261266
261271
|
P && j(!_);
|
|
261267
261272
|
}, [P, _]);
|
|
261268
261273
|
const U = tt(null), Z = async () => {
|
|
261269
|
-
const
|
|
261270
|
-
if (
|
|
261274
|
+
const Oe = U.current;
|
|
261275
|
+
if (Oe && await Oe.destroy(), d && c) {
|
|
261271
261276
|
const We = new ejn(c, N);
|
|
261272
261277
|
U.current = We;
|
|
261273
261278
|
}
|
|
261274
|
-
}, ae = (
|
|
261275
|
-
const We =
|
|
261279
|
+
}, ae = (Oe) => {
|
|
261280
|
+
const We = Oe.map((Ge) => ir(Ge));
|
|
261276
261281
|
h1(N, vu(We), "self");
|
|
261277
|
-
}, me = (
|
|
261278
|
-
(
|
|
261282
|
+
}, me = (Oe) => Array.isArray(Oe) || typeof Oe == "string" && !Rwe(Oe), ke = (Oe) => Oe === null, we = window.location.hash.startsWith("#") ? window.location.hash.substring(1) : window.location.hash, Se = new URLSearchParams(we), je = Se.get("heading"), xe = je == null ? void 0 : je.split("-").pop(), { isNativeMobile: Be } = j1(), Ae = $e(
|
|
261283
|
+
(Oe) => {
|
|
261279
261284
|
if (ye) {
|
|
261280
261285
|
const We = ye.view.dom.querySelectorAll("[data-toc-id]"), Ge = Array.from(We).find(
|
|
261281
261286
|
(Et) => {
|
|
261282
261287
|
var sn;
|
|
261283
|
-
return (sn = Et.dataset.tocId) == null ? void 0 : sn.includes(
|
|
261288
|
+
return (sn = Et.dataset.tocId) == null ? void 0 : sn.includes(Oe);
|
|
261284
261289
|
}
|
|
261285
261290
|
);
|
|
261286
261291
|
if (!Ge) return;
|
|
261287
261292
|
const Ke = o6e(
|
|
261288
261293
|
Ge == null ? void 0 : Ge.textContent
|
|
261289
261294
|
), gt = je == null ? void 0 : je.split("-").slice(0, -1).join("-");
|
|
261290
|
-
Ke !== gt && (Se.set("heading", `${Ke}-${
|
|
261295
|
+
Ke !== gt && (Se.set("heading", `${Ke}-${Oe}`), window.location.hash = Se.toString());
|
|
261291
261296
|
const st = ye.view.posAtDOM(Ge, 0), wt = ye.view.state.tr;
|
|
261292
261297
|
wt.setSelection(new kt(wt.doc.resolve(st))), ye.view.dispatch(wt);
|
|
261293
261298
|
const Tt = [
|
|
@@ -261322,11 +261327,11 @@ const wRn = (e) => e.context.awareness, kRn = (e) => !!(e.context.isReady && e.c
|
|
|
261322
261327
|
T,
|
|
261323
261328
|
Ae
|
|
261324
261329
|
]), Ue(() => {
|
|
261325
|
-
const
|
|
261330
|
+
const Oe = (We) => {
|
|
261326
261331
|
(We.ctrlKey || We.metaKey) && We.key === "p" && (We.preventDefault(), ye && (m ? Ipe(ce) : Bpe(ye.getHTML())));
|
|
261327
261332
|
};
|
|
261328
|
-
return window.addEventListener("keydown",
|
|
261329
|
-
window.removeEventListener("keydown",
|
|
261333
|
+
return window.addEventListener("keydown", Oe), () => {
|
|
261334
|
+
window.removeEventListener("keydown", Oe);
|
|
261330
261335
|
};
|
|
261331
261336
|
}, [ye, m]), Ue(() => {
|
|
261332
261337
|
!ke(t) && ye && !te.current && N ? (L(!0), queueMicrotask(() => {
|
|
@@ -261342,8 +261347,8 @@ const wRn = (e) => e.context.awareness, kRn = (e) => !!(e.context.isReady && e.c
|
|
|
261342
261347
|
})
|
|
261343
261348
|
)), h && NT.setZoom(h), Z().then(() => {
|
|
261344
261349
|
L(!1);
|
|
261345
|
-
}).catch((
|
|
261346
|
-
console.log(
|
|
261350
|
+
}).catch((Oe) => {
|
|
261351
|
+
console.log(Oe);
|
|
261347
261352
|
});
|
|
261348
261353
|
}), te.current = !0) : t !== null && L(!1);
|
|
261349
261354
|
}, [t, ye, N]), Ue(() => (n && (B != null && B.collaborationId) && (B != null && B.roomKey) && R({
|
|
@@ -261361,7 +261366,7 @@ const wRn = (e) => e.context.awareness, kRn = (e) => !!(e.context.isReady && e.c
|
|
|
261361
261366
|
ve.current();
|
|
261362
261367
|
}), [n, !!B]), Ue(() => {
|
|
261363
261368
|
var We, Ge, Ke;
|
|
261364
|
-
const
|
|
261369
|
+
const Oe = (Ke = (Ge = (We = ye == null ? void 0 : ye.storage) == null ? void 0 : We.collaborationCaret) == null ? void 0 : Ge.users) == null ? void 0 : Ke.map(
|
|
261365
261370
|
(gt) => ({
|
|
261366
261371
|
clientId: gt.clientId,
|
|
261367
261372
|
name: gt.name,
|
|
@@ -261369,27 +261374,27 @@ const wRn = (e) => e.context.awareness, kRn = (e) => !!(e.context.isReady && e.c
|
|
|
261369
261374
|
color: gt.color
|
|
261370
261375
|
})
|
|
261371
261376
|
);
|
|
261372
|
-
o == null || o(
|
|
261377
|
+
o == null || o(Oe);
|
|
261373
261378
|
}, [(Qe = (Ve = ye == null ? void 0 : ye.storage) == null ? void 0 : Ve.collaborationCaret) == null ? void 0 : Qe.users]), Ue(() => {
|
|
261374
261379
|
s && s((ye == null ? void 0 : ye.storage.characterCount.characters()) ?? 0), l && l((ye == null ? void 0 : ye.storage.characterCount.words()) ?? 0);
|
|
261375
261380
|
}, [
|
|
261376
261381
|
ye == null ? void 0 : ye.storage.characterCount.characters(),
|
|
261377
261382
|
ye == null ? void 0 : ye.storage.characterCount.words()
|
|
261378
261383
|
]), Ue(() => {
|
|
261379
|
-
const
|
|
261384
|
+
const Oe = (We, Ge) => {
|
|
261380
261385
|
Ge !== "self" && (r == null || r(
|
|
261381
261386
|
qo(Is(N)),
|
|
261382
261387
|
qo(We)
|
|
261383
261388
|
));
|
|
261384
261389
|
};
|
|
261385
|
-
return N && N.on("update",
|
|
261386
|
-
N == null || N.off("update",
|
|
261390
|
+
return N && N.on("update", Oe), () => {
|
|
261391
|
+
N == null || N.off("update", Oe);
|
|
261387
261392
|
};
|
|
261388
261393
|
}, [N]), Ue(() => () => {
|
|
261389
261394
|
ye && ye.destroy();
|
|
261390
261395
|
}, [ye]), Ue(() => {
|
|
261391
261396
|
if (!ye) return;
|
|
261392
|
-
const
|
|
261397
|
+
const Oe = ({ editor: We }) => {
|
|
261393
261398
|
const Ge = We.state.selection.from;
|
|
261394
261399
|
setTimeout(() => {
|
|
261395
261400
|
const Ke = We.state.selection.from, gt = [];
|
|
@@ -261411,15 +261416,15 @@ const wRn = (e) => e.context.awareness, kRn = (e) => !!(e.context.isReady && e.c
|
|
|
261411
261416
|
}), We.commands.setTextSelection(Ke);
|
|
261412
261417
|
}, 0);
|
|
261413
261418
|
};
|
|
261414
|
-
return ye.on("paste",
|
|
261415
|
-
ye.off("paste",
|
|
261419
|
+
return ye.on("paste", Oe), () => {
|
|
261420
|
+
ye.off("paste", Oe);
|
|
261416
261421
|
};
|
|
261417
261422
|
}, [ye]);
|
|
261418
261423
|
const ze = tt(localStorage.getItem("theme") !== null), qe = tt(!1);
|
|
261419
261424
|
return Ue(() => {
|
|
261420
261425
|
if (!(!ye || T || !ze.current || qe.current))
|
|
261421
261426
|
if (t) {
|
|
261422
|
-
const
|
|
261427
|
+
const Oe = setTimeout(() => {
|
|
261423
261428
|
if (!ye) return;
|
|
261424
261429
|
const { from: We, to: Ge } = ye.state.selection, Ke = [];
|
|
261425
261430
|
ye.state.doc.descendants((gt, st) => {
|
|
@@ -261435,7 +261440,7 @@ const wRn = (e) => e.context.awareness, kRn = (e) => !!(e.context.isReady && e.c
|
|
|
261435
261440
|
aoe(Mt) || ye.chain().setTextSelection({ from: gt, to: st }).setColor(Mt).run();
|
|
261436
261441
|
}), ye.commands.setTextSelection({ from: We, to: Ge })), qe.current = !0;
|
|
261437
261442
|
}, 100);
|
|
261438
|
-
return () => clearTimeout(
|
|
261443
|
+
return () => clearTimeout(Oe);
|
|
261439
261444
|
} else
|
|
261440
261445
|
qe.current = !0;
|
|
261441
261446
|
}, [ye, t, T]), {
|
|
@@ -261472,7 +261477,7 @@ const wRn = (e) => e.context.awareness, kRn = (e) => !!(e.context.isReady && e.c
|
|
|
261472
261477
|
ipfsImageFetchFn: s,
|
|
261473
261478
|
fetchV1ImageFn: l
|
|
261474
261479
|
}
|
|
261475
|
-
), [f, h] =
|
|
261480
|
+
), [f, h] = Re(""), [p, g] = Re(""), [m, y] = Re(!0), [b, v] = Re(!0), x = () => {
|
|
261476
261481
|
if (!e) return;
|
|
261477
261482
|
if ((f === null || f === "") && (p === "" || p === null)) {
|
|
261478
261483
|
c(lt.NONE);
|
|
@@ -262274,7 +262279,7 @@ const HRn = ({
|
|
|
262274
262279
|
documentStyling: g,
|
|
262275
262280
|
fetchV1ImageFn: m
|
|
262276
262281
|
}) => {
|
|
262277
|
-
const [y, b] =
|
|
262282
|
+
const [y, b] = Re(!1), [v, x] = Re(0), [k, F] = Re(!0), { isNativeMobile: C } = j1(), [D, S] = Re(null), [B, O] = Re(null), T = 50, [L, M] = Re(
|
|
262278
262283
|
"forward"
|
|
262279
262284
|
), j = Lt(() => new $w({
|
|
262280
262285
|
extensions: e.extensionManager.extensions.filter(
|
|
@@ -262659,7 +262664,7 @@ const HRn = ({
|
|
|
262659
262664
|
)
|
|
262660
262665
|
}
|
|
262661
262666
|
), WRn = "data:image/svg+xml,%3csvg%20width='192'%20height='160'%20viewBox='0%200%20192%20160'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10%200.5H182C186.142%200.5%20189.5%203.85786%20189.5%208V40C189.5%2044.1421%20186.142%2047.5%20182%2047.5H10C5.85786%2047.5%202.5%2044.1421%202.5%2040V8C2.5%203.85787%205.85786%200.5%2010%200.5Z'%20fill='white'/%3e%3cpath%20d='M10%200.5H182C186.142%200.5%20189.5%203.85786%20189.5%208V40C189.5%2044.1421%20186.142%2047.5%20182%2047.5H10C5.85786%2047.5%202.5%2044.1421%202.5%2040V8C2.5%203.85787%205.85786%200.5%2010%200.5Z'%20stroke='%23E8EBEC'/%3e%3cpath%20d='M14%2024C14%2015.1634%2021.1634%208%2030%208V8C38.8366%208%2046%2015.1634%2046%2024V24C46%2032.8366%2038.8366%2040%2030%2040V40C21.1634%2040%2014%2032.8366%2014%2024V24Z'%20fill='%23E8EBEC'/%3e%3cpath%20d='M56%2015C56%2012.7909%2057.7909%2011%2060%2011H174C176.209%2011%20178%2012.7909%20178%2015V18C178%2020.2091%20176.209%2022%20174%2022H60C57.7909%2022%2056%2020.2091%2056%2018V15Z'%20fill='%23E8EBEC'/%3e%3cpath%20d='M56%2030C56%2027.7909%2057.7909%2026%2060%2026H112C114.209%2026%20116%2027.7909%20116%2030V33C116%2035.2091%20114.209%2037%20112%2037H60C57.7909%2037%2056%2035.2091%2056%2033V30Z'%20fill='%23E8EBEC'/%3e%3cg%20filter='url(%23filter0_d_4765_56257)'%3e%3cpath%20d='M2%2064C2%2059.5817%205.58172%2056%2010%2056H182C186.418%2056%20190%2059.5817%20190%2064V96C190%20100.418%20186.418%20104%20182%20104H10C5.58172%20104%202%20100.418%202%2096V64Z'%20fill='white'/%3e%3cpath%20d='M10%2056.5H182C186.142%2056.5%20189.5%2059.8579%20189.5%2064V96C189.5%20100.142%20186.142%20103.5%20182%20103.5H10C5.85786%20103.5%202.5%20100.142%202.5%2096V64C2.5%2059.8579%205.85786%2056.5%2010%2056.5Z'%20stroke='%23EFC703'/%3e%3cpath%20d='M14%2080C14%2071.1634%2021.1634%2064%2030%2064V64C38.8366%2064%2046%2071.1634%2046%2080V80C46%2088.8366%2038.8366%2096%2030%2096V96C21.1634%2096%2014%2088.8366%2014%2080V80Z'%20fill='%23E8EBEC'/%3e%3cpath%20d='M56%2071C56%2068.7909%2057.7909%2067%2060%2067H174C176.209%2067%20178%2068.7909%20178%2071V74C178%2076.2091%20176.209%2078%20174%2078H60C57.7909%2078%2056%2076.2091%2056%2074V71Z'%20fill='%23E8EBEC'/%3e%3cpath%20d='M56%2086C56%2083.7909%2057.7909%2082%2060%2082H112C114.209%2082%20116%2083.7909%20116%2086V89C116%2091.2091%20114.209%2093%20112%2093H60C57.7909%2093%2056%2091.2091%2056%2089V86Z'%20fill='%23E8EBEC'/%3e%3c/g%3e%3cpath%20d='M10%20112.5H182C186.142%20112.5%20189.5%20115.858%20189.5%20120V152C189.5%20156.142%20186.142%20159.5%20182%20159.5H10C5.85786%20159.5%202.5%20156.142%202.5%20152V120C2.5%20115.858%205.85786%20112.5%2010%20112.5Z'%20fill='white'/%3e%3cpath%20d='M10%20112.5H182C186.142%20112.5%20189.5%20115.858%20189.5%20120V152C189.5%20156.142%20186.142%20159.5%20182%20159.5H10C5.85786%20159.5%202.5%20156.142%202.5%20152V120C2.5%20115.858%205.85786%20112.5%2010%20112.5Z'%20stroke='%23E8EBEC'/%3e%3cpath%20d='M14%20136C14%20127.163%2021.1634%20120%2030%20120V120C38.8366%20120%2046%20127.163%2046%20136V136C46%20144.837%2038.8366%20152%2030%20152V152C21.1634%20152%2014%20144.837%2014%20136V136Z'%20fill='%23E8EBEC'/%3e%3cpath%20d='M56%20127C56%20124.791%2057.7909%20123%2060%20123H174C176.209%20123%20178%20124.791%20178%20127V130C178%20132.209%20176.209%20134%20174%20134H60C57.7909%20134%2056%20132.209%2056%20130V127Z'%20fill='%23E8EBEC'/%3e%3cpath%20d='M56%20142C56%20139.791%2057.7909%20138%2060%20138H112C114.209%20138%20116%20139.791%20116%20142V145C116%20147.209%20114.209%20149%20112%20149H60C57.7909%20149%2056%20147.209%2056%20145V142Z'%20fill='%23E8EBEC'/%3e%3crect%20x='2'%20width='188'%20height='56'%20fill='url(%23paint0_linear_4765_56257)'/%3e%3crect%20x='2'%20y='104'%20width='188'%20height='56'%20fill='url(%23paint1_linear_4765_56257)'/%3e%3cdefs%3e%3cfilter%20id='filter0_d_4765_56257'%20x='0'%20y='55'%20width='192'%20height='52'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dy='1'/%3e%3cfeGaussianBlur%20stdDeviation='1'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200.937255%200%200%200%200%200.780392%200%200%200%200%200.0117647%200%200%200%200.32%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_4765_56257'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_4765_56257'%20result='shape'/%3e%3c/filter%3e%3clinearGradient%20id='paint0_linear_4765_56257'%20x1='96'%20y1='0'%20x2='96'%20y2='56'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='white'/%3e%3cstop%20offset='1'%20stop-color='white'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_4765_56257'%20x1='96'%20y1='160'%20x2='96'%20y2='104'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='white'/%3e%3cstop%20offset='1'%20stop-color='white'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e", $Rn = "data:image/svg+xml,%3csvg%20width='192'%20height='160'%20viewBox='0%200%20192%20160'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.5%208C2.5%203.85787%205.85786%200.5%2010%200.5H182C186.142%200.5%20189.5%203.85786%20189.5%208V40C189.5%2044.1421%20186.142%2047.5%20182%2047.5H10C5.85786%2047.5%202.5%2044.1421%202.5%2040V8Z'%20fill='%232E2E2E'/%3e%3cpath%20d='M2.5%208C2.5%203.85787%205.85786%200.5%2010%200.5H182C186.142%200.5%20189.5%203.85786%20189.5%208V40C189.5%2044.1421%20186.142%2047.5%20182%2047.5H10C5.85786%2047.5%202.5%2044.1421%202.5%2040V8Z'%20stroke='%23404040'/%3e%3cpath%20d='M14%2024C14%2015.1634%2021.1634%208%2030%208C38.8366%208%2046%2015.1634%2046%2024C46%2032.8366%2038.8366%2040%2030%2040C21.1634%2040%2014%2032.8366%2014%2024Z'%20fill='%23404040'/%3e%3cpath%20d='M56%2015C56%2012.7909%2057.7909%2011%2060%2011H174C176.209%2011%20178%2012.7909%20178%2015V18C178%2020.2091%20176.209%2022%20174%2022H60C57.7909%2022%2056%2020.2091%2056%2018V15Z'%20fill='%23404040'/%3e%3cpath%20d='M56%2030C56%2027.7909%2057.7909%2026%2060%2026H112C114.209%2026%20116%2027.7909%20116%2030V33C116%2035.2091%20114.209%2037%20112%2037H60C57.7909%2037%2056%2035.2091%2056%2033V30Z'%20fill='%23404040'/%3e%3cg%20filter='url(%23filter0_d_5573_80525)'%3e%3cpath%20d='M2%2064C2%2059.5817%205.58172%2056%2010%2056H182C186.418%2056%20190%2059.5817%20190%2064V96C190%20100.418%20186.418%20104%20182%20104H10C5.58172%20104%202%20100.418%202%2096V64Z'%20fill='%232E2E2E'/%3e%3cpath%20d='M2.5%2064C2.5%2059.8579%205.85786%2056.5%2010%2056.5H182C186.142%2056.5%20189.5%2059.8579%20189.5%2064V96C189.5%20100.142%20186.142%20103.5%20182%20103.5H10C5.85786%20103.5%202.5%20100.142%202.5%2096V64Z'%20stroke='%23EFC703'/%3e%3cpath%20d='M14%2080C14%2071.1634%2021.1634%2064%2030%2064C38.8366%2064%2046%2071.1634%2046%2080C46%2088.8366%2038.8366%2096%2030%2096C21.1634%2096%2014%2088.8366%2014%2080Z'%20fill='%23404040'/%3e%3cpath%20d='M56%2071C56%2068.7909%2057.7909%2067%2060%2067H174C176.209%2067%20178%2068.7909%20178%2071V74C178%2076.2091%20176.209%2078%20174%2078H60C57.7909%2078%2056%2076.2091%2056%2074V71Z'%20fill='%23404040'/%3e%3cpath%20d='M56%2086C56%2083.7909%2057.7909%2082%2060%2082H112C114.209%2082%20116%2083.7909%20116%2086V89C116%2091.2091%20114.209%2093%20112%2093H60C57.7909%2093%2056%2091.2091%2056%2089V86Z'%20fill='%23404040'/%3e%3c/g%3e%3cpath%20d='M2.5%20120C2.5%20115.858%205.85786%20112.5%2010%20112.5H182C186.142%20112.5%20189.5%20115.858%20189.5%20120V152C189.5%20156.142%20186.142%20159.5%20182%20159.5H10C5.85786%20159.5%202.5%20156.142%202.5%20152V120Z'%20fill='%232E2E2E'/%3e%3cpath%20d='M2.5%20120C2.5%20115.858%205.85786%20112.5%2010%20112.5H182C186.142%20112.5%20189.5%20115.858%20189.5%20120V152C189.5%20156.142%20186.142%20159.5%20182%20159.5H10C5.85786%20159.5%202.5%20156.142%202.5%20152V120Z'%20stroke='%23404040'/%3e%3cpath%20d='M14%20136C14%20127.163%2021.1634%20120%2030%20120C38.8366%20120%2046%20127.163%2046%20136C46%20144.837%2038.8366%20152%2030%20152C21.1634%20152%2014%20144.837%2014%20136Z'%20fill='%23404040'/%3e%3cpath%20d='M56%20127C56%20124.791%2057.7909%20123%2060%20123H174C176.209%20123%20178%20124.791%20178%20127V130C178%20132.209%20176.209%20134%20174%20134H60C57.7909%20134%2056%20132.209%2056%20130V127Z'%20fill='%23404040'/%3e%3cpath%20d='M56%20142C56%20139.791%2057.7909%20138%2060%20138H112C114.209%20138%20116%20139.791%20116%20142V145C116%20147.209%20114.209%20149%20112%20149H60C57.7909%20149%2056%20147.209%2056%20145V142Z'%20fill='%23404040'/%3e%3crect%20x='2'%20width='188'%20height='56'%20fill='url(%23paint0_linear_5573_80525)'/%3e%3crect%20x='2'%20y='104'%20width='188'%20height='56'%20fill='url(%23paint1_linear_5573_80525)'/%3e%3cdefs%3e%3cfilter%20id='filter0_d_5573_80525'%20x='0'%20y='55'%20width='192'%20height='52'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dy='1'/%3e%3cfeGaussianBlur%20stdDeviation='1'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200.937255%200%200%200%200%200.780392%200%200%200%200%200.0117647%200%200%200%200.32%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_5573_80525'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_5573_80525'%20result='shape'/%3e%3c/filter%3e%3clinearGradient%20id='paint0_linear_5573_80525'%20x1='96'%20y1='0'%20x2='96'%20y2='56'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%232E2E2E'/%3e%3cstop%20offset='1'%20stop-color='%232E2E2E'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_5573_80525'%20x1='96'%20y1='160'%20x2='96'%20y2='104'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%232E2E2E'/%3e%3cstop%20offset='1'%20stop-color='%232E2E2E'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e", GRn = () => {
|
|
262662
|
-
const [e, t] =
|
|
262667
|
+
const [e, t] = Re("light"), n = () => {
|
|
262663
262668
|
const r = localStorage.getItem("theme");
|
|
262664
262669
|
return r || "light";
|
|
262665
262670
|
};
|
|
@@ -262729,7 +262734,7 @@ const HRn = ({
|
|
|
262729
262734
|
(V, P) => new Date(P.createdAt).getTime() - new Date(V.createdAt).getTime()
|
|
262730
262735
|
), _ = (V) => {
|
|
262731
262736
|
a(V), h && h !== V && d(null);
|
|
262732
|
-
}, [H, $] =
|
|
262737
|
+
}, [H, $] = Re({
|
|
262733
262738
|
name: o,
|
|
262734
262739
|
isEns: !1
|
|
262735
262740
|
});
|
|
@@ -263137,7 +263142,7 @@ const AFe = D1(() => /* @__PURE__ */ A.jsx("div", { className: "p-4 text-center
|
|
|
263137
263142
|
AFe.displayName = "ToCEmptyState";
|
|
263138
263143
|
const SFe = D1(
|
|
263139
263144
|
({ items: e = [], editor: t, setItems: n, orientation: r }) => {
|
|
263140
|
-
const [o, i] =
|
|
263145
|
+
const [o, i] = Re(null), a = ni("(max-width: 1280px)"), s = tt(null), l = tt(0), u = tt(null), { collapsedHeadings: c, setCollapsedHeadings: d, expandMultipleHeadings: f } = aU(), h = Lt(() => e.map((b) => ({
|
|
263141
263146
|
...b,
|
|
263142
263147
|
isActive: b.id === o
|
|
263143
263148
|
})), [e, o]), p = $e(() => {
|
|
@@ -263463,14 +263468,14 @@ const bie = _e.memo(SFe), YRn = ({
|
|
|
263463
263468
|
activeModel: qe,
|
|
263464
263469
|
maxTokens: Ve,
|
|
263465
263470
|
isAIAgentEnabled: Qe,
|
|
263466
|
-
collaborationKey:
|
|
263471
|
+
collaborationKey: Oe,
|
|
263467
263472
|
collaborationKeyPair: We,
|
|
263468
263473
|
collabConfig: Ge,
|
|
263469
263474
|
// Document styling object
|
|
263470
263475
|
documentStyling: Ke,
|
|
263471
263476
|
...gt
|
|
263472
263477
|
}, st) => {
|
|
263473
|
-
const [wt, Mt] =
|
|
263478
|
+
const [wt, Mt] = Re(!1), [Tt, Et] = Re(!1), wn = (() => {
|
|
263474
263479
|
if (!Ke)
|
|
263475
263480
|
return { canvas: void 0, background: void 0 };
|
|
263476
263481
|
const yn = {}, en = {};
|
|
@@ -263487,7 +263492,7 @@ const bie = _e.memo(SFe), YRn = ({
|
|
|
263487
263492
|
if (!en) return {};
|
|
263488
263493
|
const _t = {}, nr = JRn[yn];
|
|
263489
263494
|
return typeof en.width == "number" ? (_t.width = `${en.width}px`, _t.maxWidth = `${en.width}px`) : (_t.width = nr.zoomFitWidth, _t.maxWidth = `${nr.zoomFitMaxWidth}px`), en.minHeight && (_t.minHeight = en.minHeight), _t;
|
|
263490
|
-
}, dr = tt(null), X = ni("(min-width: 1500px)"), Ee = ni("(min-width: 3000px)"), Pe = ni("(min-width: 1600px)"), Ye = ni("(min-width: 1360px)"), { isNativeMobile: yt, isIOS: Dt } = j1(), [mt, ht] =
|
|
263495
|
+
}, dr = tt(null), X = ni("(min-width: 1500px)"), Ee = ni("(min-width: 3000px)"), Pe = ni("(min-width: 1600px)"), Ye = ni("(min-width: 1360px)"), { isNativeMobile: yt, isIOS: Dt } = j1(), [mt, ht] = Re(!1), mn = tt(null), et = (k == null ? void 0 : k.slice(0, 4)) || [], Ce = k ? Math.max(0, k.length - 4) : 0;
|
|
263491
263496
|
OR(mn, () => {
|
|
263492
263497
|
ht(!1);
|
|
263493
263498
|
}), Ue(() => {
|
|
@@ -263546,7 +263551,7 @@ const bie = _e.memo(SFe), YRn = ({
|
|
|
263546
263551
|
activeModel: qe,
|
|
263547
263552
|
maxTokens: Ve,
|
|
263548
263553
|
isAIAgentEnabled: Qe,
|
|
263549
|
-
collaborationKey:
|
|
263554
|
+
collaborationKey: Oe,
|
|
263550
263555
|
collaborationKeyPair: We,
|
|
263551
263556
|
collabConfig: Ge,
|
|
263552
263557
|
...gt
|
|
@@ -264092,7 +264097,7 @@ const bie = _e.memo(SFe), YRn = ({
|
|
|
264092
264097
|
ipfsImageFetchFn: x,
|
|
264093
264098
|
fetchV1ImageFn: k
|
|
264094
264099
|
}, F) => {
|
|
264095
|
-
const [C, D] =
|
|
264100
|
+
const [C, D] = Re(!1), S = tt(null), B = (m == null ? void 0 : m.slice(0, 4)) || [], O = m ? Math.max(0, m.length - 4) : 0;
|
|
264096
264101
|
OR(S, () => {
|
|
264097
264102
|
D(!1);
|
|
264098
264103
|
}), Ue(() => {
|
|
@@ -264383,7 +264388,7 @@ const bie = _e.memo(SFe), YRn = ({
|
|
|
264383
264388
|
})}, ${t.toLocaleTimeString([], { hour: "2-digit", minute: "2-digit" })}`;
|
|
264384
264389
|
}, ePn = D1(
|
|
264385
264390
|
({ node: e, editor: t, deleteNode: n }) => {
|
|
264386
|
-
const r = e.attrs.reminder, [o, i] =
|
|
264391
|
+
const r = e.attrs.reminder, [o, i] = Re(
|
|
264387
264392
|
r != null && r.timestamp ? new Date(r.timestamp).getTime() < Date.now() : !1
|
|
264388
264393
|
), a = t.isEditable === !1, s = $e(() => {
|
|
264389
264394
|
const c = [];
|