@fileverse-dev/ddoc 3.0.93-bug-fix-8 → 3.0.93-bug-fix-10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js
CHANGED
|
@@ -2,7 +2,7 @@ var TJ = Object.defineProperty;
|
|
|
2
2
|
var jJ = (e, t, n) => t in e ? TJ(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var ut = (e, t, n) => jJ(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
4
|
import * as Fn from "react";
|
|
5
|
-
import _t, { createRef as BJ, memo as g1, createContext as ud, createElement as l2, useContext as cd, version as J7, useRef as He, useState as
|
|
5
|
+
import _t, { createRef as BJ, memo as g1, createContext as ud, createElement as l2, useContext as cd, version as J7, useRef as He, useState as je, useDebugValue as TD, useEffect as Me, forwardRef as ur, useLayoutEffect as oh, useCallback as Se, useMemo as Dt, Fragment as NJ, useReducer as MJ, cloneElement as $O, useImperativeHandle as HO } from "react";
|
|
6
6
|
import WO, { flushSync as OJ, createPortal as m1 } from "react-dom";
|
|
7
7
|
import { Drawer as qO, DrawerContent as RJ, DrawerHeader as IJ, DrawerTitle as LJ, DrawerClose as UJ, LucideIcon as Ue, useTheme as PJ, Button as Xt, TextField as Pc, DynamicDropdown as Ur, Tooltip as en, IconButton as wn, Avatar as u2, cn as Ye, ButtonGroup as jD, Skeleton as hr, TextAreaFieldV2 as c2, DynamicModal as BD, Select as J0, SelectTrigger as Q0, SelectValue as d2, SelectContent as ef, SelectItem as tf, DynamicDropdownV2 as yy, Popover as nf, PopoverTrigger as rf, PopoverContent as of, toast as ND, Divider as p2, UltimateIcons as zJ, PopoverClose as VO, SelectGroup as GO, SelectLabel as $J, Checkbox as HJ, DrawerTrigger as Q7, AnimatedLoader as WJ, Label as qJ, DynamicDrawer as VJ, DynamicDrawerV2 as GJ, BottomDrawer as KJ, Tag as h2, TagInput as KO } from "@fileverse/ui";
|
|
8
8
|
import { isAddress as XJ, createPublicClient as YJ, http as ZJ } from "viem";
|
|
@@ -506,7 +506,7 @@ function fQ() {
|
|
|
506
506
|
}
|
|
507
507
|
var rt;
|
|
508
508
|
rt = !1;
|
|
509
|
-
function
|
|
509
|
+
function Be(ve) {
|
|
510
510
|
return typeof ve == "object" && ve !== null && ve.$$typeof === t;
|
|
511
511
|
}
|
|
512
512
|
function Ie() {
|
|
@@ -557,15 +557,15 @@ Check the top-level render call using <` + nt + ">.");
|
|
|
557
557
|
if (me(ve))
|
|
558
558
|
for (var nt = 0; nt < ve.length; nt++) {
|
|
559
559
|
var gt = ve[nt];
|
|
560
|
-
|
|
560
|
+
Be(gt) && Ve(gt, Re);
|
|
561
561
|
}
|
|
562
|
-
else if (
|
|
562
|
+
else if (Be(ve))
|
|
563
563
|
ve._store && (ve._store.validated = !0);
|
|
564
564
|
else if (ve) {
|
|
565
565
|
var Zt = m(ve);
|
|
566
566
|
if (typeof Zt == "function" && Zt !== ve.entries)
|
|
567
567
|
for (var tn = Zt.call(ve), Ut; !(Ut = tn.next()).done; )
|
|
568
|
-
|
|
568
|
+
Be(Ut.value) && Ve(Ut.value, Re);
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
571
|
}
|
|
@@ -14172,7 +14172,7 @@ var woe = class extends _t.Component {
|
|
|
14172
14172
|
};
|
|
14173
14173
|
function tL(e) {
|
|
14174
14174
|
var t;
|
|
14175
|
-
const [n] =
|
|
14175
|
+
const [n] = je(() => new Eoe(e.editor)), r = yoe.useSyncExternalStoreWithSelector(
|
|
14176
14176
|
n.subscribe,
|
|
14177
14177
|
n.getSnapshot,
|
|
14178
14178
|
n.getServerSnapshot,
|
|
@@ -14347,7 +14347,7 @@ var h_ = process.env.NODE_ENV !== "production", s5 = typeof window > "u", Coe =
|
|
|
14347
14347
|
function rL(e = {}, t = []) {
|
|
14348
14348
|
const n = He(e);
|
|
14349
14349
|
n.current = e;
|
|
14350
|
-
const [r] =
|
|
14350
|
+
const [r] = je(() => new _oe(n)), o = b1.useSyncExternalStore(
|
|
14351
14351
|
r.subscribe,
|
|
14352
14352
|
r.getEditor,
|
|
14353
14353
|
r.getServerSnapshot
|
|
@@ -17916,7 +17916,7 @@ var kse = zL.exports;
|
|
|
17916
17916
|
const tt = /* @__PURE__ */ Iu(kse);
|
|
17917
17917
|
var Ze = /* @__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))(Ze || {});
|
|
17918
17918
|
function Ese(e) {
|
|
17919
|
-
const [t, n] =
|
|
17919
|
+
const [t, n] = je(e), r = He(null), o = (i) => {
|
|
17920
17920
|
r && r.current && !r.current.contains(i.target) && n(
|
|
17921
17921
|
0
|
|
17922
17922
|
/* NONE */
|
|
@@ -19114,10 +19114,10 @@ function fae(e, t, n, r, o, i, s) {
|
|
|
19114
19114
|
options: {
|
|
19115
19115
|
loop: rt
|
|
19116
19116
|
}
|
|
19117
|
-
},
|
|
19117
|
+
}, Be) => {
|
|
19118
19118
|
const Ie = xe.settled(), We = !pt.shouldConstrain(), lt = rt ? Ie : Ie && We, Xe = lt && !Le.pointerDown();
|
|
19119
19119
|
Xe && Pe.stop();
|
|
19120
|
-
const Ve = Ee.get() *
|
|
19120
|
+
const Ve = Ee.get() * Be + ge.get() * (1 - Be);
|
|
19121
19121
|
Ce.set(Ve), rt && (Te.loop(xe.direction()), Ne.loop()), be.to(Ce.get()), Xe && ft.emit("settle"), lt || ft.emit("scroll");
|
|
19122
19122
|
}, B = qse(r, o, () => Z(pe), (xe) => ue(pe, xe)), ee = 0.68, ae = Q[oe.get()], K = d0(ae), V = d0(ae), ie = d0(ae), he = d0(ae), De = Jse(K, ie, V, he, p, ee), me = sae(d, Q, le, Y, he), ce = aae(B, oe, S, De, me, he, s), de = rae(Y), fe = vf(), O = dae(t, n, s, g), {
|
|
19123
19123
|
slideRegistry: W
|
|
@@ -19369,7 +19369,7 @@ function S2(e, t, n) {
|
|
|
19369
19369
|
}
|
|
19370
19370
|
S2.globalOptions = void 0;
|
|
19371
19371
|
function k8(e = {}, t = []) {
|
|
19372
|
-
const n = He(e), r = He(t), [o, i] =
|
|
19372
|
+
const n = He(e), r = He(t), [o, i] = je(), [s, a] = je(), l = Se(() => {
|
|
19373
19373
|
o && o.reInit(n.current, r.current);
|
|
19374
19374
|
}, [o]);
|
|
19375
19375
|
return Me(() => {
|
|
@@ -19409,7 +19409,7 @@ const XL = ur(
|
|
|
19409
19409
|
axis: e === "horizontal" ? "x" : "y"
|
|
19410
19410
|
},
|
|
19411
19411
|
r
|
|
19412
|
-
), [c, d] =
|
|
19412
|
+
), [c, d] = je(!1), [p, h] = je(!1), f = Se((y) => {
|
|
19413
19413
|
y && (d(y.canScrollPrev()), h(y.canScrollNext()));
|
|
19414
19414
|
}, []), g = Se(() => {
|
|
19415
19415
|
u == null || u.scrollPrev();
|
|
@@ -19495,7 +19495,7 @@ const b5 = ur(
|
|
|
19495
19495
|
);
|
|
19496
19496
|
b5.displayName = "CarouselItem";
|
|
19497
19497
|
const ZL = ur(({ index: e, className: t, ...n }, r) => {
|
|
19498
|
-
const { api: o } = k1(), [i, s] =
|
|
19498
|
+
const { api: o } = k1(), [i, s] = je(0), [, a] = je([]), l = Se(
|
|
19499
19499
|
(p) => {
|
|
19500
19500
|
o && o.scrollTo(p);
|
|
19501
19501
|
},
|
|
@@ -19584,7 +19584,7 @@ function Yn(e, {
|
|
|
19584
19584
|
defaultValue: t = !1,
|
|
19585
19585
|
initializeWithValue: n = !0
|
|
19586
19586
|
} = {}) {
|
|
19587
|
-
const r = (a) => kae ? t : window.matchMedia(a).matches, [o, i] =
|
|
19587
|
+
const r = (a) => kae ? t : window.matchMedia(a).matches, [o, i] = je(() => n ? r(e) : t);
|
|
19588
19588
|
function s() {
|
|
19589
19589
|
i(r(e));
|
|
19590
19590
|
}
|
|
@@ -40259,52 +40259,52 @@ const kz = ud(void 0), Dhe = ({
|
|
|
40259
40259
|
onComment: D,
|
|
40260
40260
|
setCommentDrawerOpen: C
|
|
40261
40261
|
}) => {
|
|
40262
|
-
const [A, R] =
|
|
40262
|
+
const [A, R] = je(!0), [T, _] = je(""), [N, E] = je(""), [M, j] = je(null), P = He(null), I = He(null), [U, q] = je(""), [z, $] = je(!1), [re, le] = je(!1), ne = He(null), G = He(null), Q = He(null), Y = t.isActive("comment"), oe = t.getAttributes("comment").resolved, [S, X] = je({
|
|
40263
40263
|
inlineCommentText: "",
|
|
40264
40264
|
handleClick: !1
|
|
40265
|
-
}), Z = localStorage.getItem("ensCache"), [ue, B] =
|
|
40265
|
+
}), Z = localStorage.getItem("ensCache"), [ue, B] = je(
|
|
40266
40266
|
Z ? JSON.parse(Z) : {}
|
|
40267
|
-
), [ee, ae] =
|
|
40268
|
-
async (
|
|
40269
|
-
if (ee.includes(
|
|
40267
|
+
), [ee, ae] = je([]), K = Se(
|
|
40268
|
+
async (Be, Ie) => {
|
|
40269
|
+
if (ee.includes(Be)) {
|
|
40270
40270
|
Ie({
|
|
40271
|
-
name:
|
|
40271
|
+
name: Be || "Anonymous",
|
|
40272
40272
|
isEns: !1
|
|
40273
40273
|
});
|
|
40274
40274
|
return;
|
|
40275
40275
|
}
|
|
40276
|
-
if (
|
|
40276
|
+
if (Be && ue[Be]) {
|
|
40277
40277
|
Ie({
|
|
40278
|
-
...ue[
|
|
40278
|
+
...ue[Be]
|
|
40279
40279
|
});
|
|
40280
40280
|
return;
|
|
40281
40281
|
}
|
|
40282
|
-
if (!
|
|
40282
|
+
if (!Be || !h) {
|
|
40283
40283
|
Ie({
|
|
40284
|
-
name:
|
|
40284
|
+
name: Be || "Anonymous",
|
|
40285
40285
|
isEns: !1
|
|
40286
40286
|
});
|
|
40287
40287
|
return;
|
|
40288
40288
|
}
|
|
40289
40289
|
try {
|
|
40290
|
-
ae((Ve) => [...Ve,
|
|
40290
|
+
ae((Ve) => [...Ve, Be]);
|
|
40291
40291
|
const { name: We, isEns: lt, resolved: Xe } = await hce(
|
|
40292
|
-
|
|
40292
|
+
Be,
|
|
40293
40293
|
h
|
|
40294
40294
|
// Add definite assignment assertion if ensResolutionUrl is guaranteed
|
|
40295
40295
|
);
|
|
40296
40296
|
Xe && B((Ve) => {
|
|
40297
40297
|
const mt = {
|
|
40298
40298
|
...Ve,
|
|
40299
|
-
[
|
|
40299
|
+
[Be]: { name: We, isEns: lt }
|
|
40300
40300
|
};
|
|
40301
40301
|
return localStorage.setItem("ensCache", JSON.stringify(mt)), mt;
|
|
40302
40302
|
}), ae(
|
|
40303
|
-
(Ve) => Ve.filter((mt) => mt !==
|
|
40303
|
+
(Ve) => Ve.filter((mt) => mt !== Be)
|
|
40304
40304
|
), Ie({ name: We, isEns: lt });
|
|
40305
40305
|
} catch (We) {
|
|
40306
40306
|
console.error("Error fetching ENS name:", We), Ie({
|
|
40307
|
-
name:
|
|
40307
|
+
name: Be || "Anonymous",
|
|
40308
40308
|
isEns: !1
|
|
40309
40309
|
});
|
|
40310
40310
|
}
|
|
@@ -40312,25 +40312,25 @@ const kz = ud(void 0), Dhe = ({
|
|
|
40312
40312
|
[ee, ue, h]
|
|
40313
40313
|
), V = Dt(
|
|
40314
40314
|
() => r.filter(
|
|
40315
|
-
(
|
|
40315
|
+
(Be) => (Be.tabId ?? Pr) === u
|
|
40316
40316
|
),
|
|
40317
40317
|
[r, u]
|
|
40318
40318
|
), ie = Dt(
|
|
40319
|
-
() => V.find((
|
|
40319
|
+
() => V.find((Be) => Be.id === a),
|
|
40320
40320
|
[V, a]
|
|
40321
40321
|
);
|
|
40322
40322
|
E1([ne, G, Q], () => {
|
|
40323
40323
|
z && (le(!0), $(!1));
|
|
40324
40324
|
});
|
|
40325
40325
|
const he = Se(() => {
|
|
40326
|
-
const { state:
|
|
40326
|
+
const { state: Be } = t, { from: Ie, to: We } = Be.selection, lt = Be.doc.textBetween(Ie, We, " ");
|
|
40327
40327
|
Y ? ie && q(ie.selectedContent || "") : q(lt), $(!0), w == null || w();
|
|
40328
40328
|
}, [t, Y, ie, w]), De = Se(
|
|
40329
|
-
(
|
|
40329
|
+
(Be, Ie = "", We) => ({
|
|
40330
40330
|
id: `comment-${pp()}`,
|
|
40331
40331
|
tabId: u,
|
|
40332
40332
|
username: We,
|
|
40333
|
-
selectedContent:
|
|
40333
|
+
selectedContent: Be,
|
|
40334
40334
|
// Preserve line breaks in content
|
|
40335
40335
|
content: Ie || "",
|
|
40336
40336
|
replies: [],
|
|
@@ -40338,23 +40338,23 @@ const kz = ud(void 0), Dhe = ({
|
|
|
40338
40338
|
}),
|
|
40339
40339
|
[u]
|
|
40340
40340
|
), me = Se(
|
|
40341
|
-
(
|
|
40341
|
+
(Be, Ie) => {
|
|
40342
40342
|
const We = Xde(n);
|
|
40343
40343
|
if (!Ie()) return;
|
|
40344
40344
|
const Xe = Fo(n, We);
|
|
40345
40345
|
if (!(!Xe || Xe.byteLength === 0))
|
|
40346
40346
|
return {
|
|
40347
|
-
type:
|
|
40347
|
+
type: Be,
|
|
40348
40348
|
updateChunk: Qr(Xe)
|
|
40349
40349
|
};
|
|
40350
40350
|
},
|
|
40351
40351
|
[n]
|
|
40352
40352
|
), ce = Se(
|
|
40353
|
-
(
|
|
40353
|
+
(Be, Ie) => {
|
|
40354
40354
|
if (!t) return;
|
|
40355
40355
|
const { state: We } = t, { from: lt, to: Xe } = We.selection, Ve = We.doc.textBetween(lt, Xe, " "), mt = De(
|
|
40356
40356
|
Ve,
|
|
40357
|
-
|
|
40357
|
+
Be,
|
|
40358
40358
|
Ie || i
|
|
40359
40359
|
), Ct = me(
|
|
40360
40360
|
"create",
|
|
@@ -40373,34 +40373,34 @@ const kz = ud(void 0), Dhe = ({
|
|
|
40373
40373
|
me
|
|
40374
40374
|
]
|
|
40375
40375
|
), de = Se(
|
|
40376
|
-
(
|
|
40376
|
+
(Be) => {
|
|
40377
40377
|
const Ie = me(
|
|
40378
40378
|
"resolve",
|
|
40379
|
-
() => t.commands.resolveComment(
|
|
40379
|
+
() => t.commands.resolveComment(Be)
|
|
40380
40380
|
);
|
|
40381
|
-
f == null || f(
|
|
40381
|
+
f == null || f(Be, Ie);
|
|
40382
40382
|
},
|
|
40383
40383
|
[t, f, me]
|
|
40384
40384
|
), fe = Se(
|
|
40385
|
-
(
|
|
40385
|
+
(Be) => {
|
|
40386
40386
|
const Ie = me(
|
|
40387
40387
|
"unresolve",
|
|
40388
|
-
() => t.commands.unresolveComment(
|
|
40388
|
+
() => t.commands.unresolveComment(Be)
|
|
40389
40389
|
);
|
|
40390
|
-
g == null || g(
|
|
40390
|
+
g == null || g(Be, Ie);
|
|
40391
40391
|
},
|
|
40392
40392
|
[t, g, me]
|
|
40393
40393
|
), O = Se(
|
|
40394
|
-
(
|
|
40394
|
+
(Be) => {
|
|
40395
40395
|
const Ie = me(
|
|
40396
40396
|
"delete",
|
|
40397
|
-
() => t.commands.unsetComment(
|
|
40397
|
+
() => t.commands.unsetComment(Be)
|
|
40398
40398
|
);
|
|
40399
|
-
m == null || m(
|
|
40399
|
+
m == null || m(Be, Ie);
|
|
40400
40400
|
},
|
|
40401
40401
|
[t, m, me]
|
|
40402
40402
|
), W = Se(
|
|
40403
|
-
(
|
|
40403
|
+
(Be, Ie, We) => {
|
|
40404
40404
|
if (!Ie.trim()) return;
|
|
40405
40405
|
const lt = {
|
|
40406
40406
|
id: `reply-${pp()}`,
|
|
@@ -40411,18 +40411,18 @@ const kz = ud(void 0), Dhe = ({
|
|
|
40411
40411
|
createdAt: /* @__PURE__ */ new Date(),
|
|
40412
40412
|
selectedContent: ""
|
|
40413
40413
|
};
|
|
40414
|
-
We == null || We(
|
|
40414
|
+
We == null || We(Be, lt);
|
|
40415
40415
|
},
|
|
40416
40416
|
[u, i]
|
|
40417
40417
|
), te = Se(
|
|
40418
|
-
(
|
|
40418
|
+
(Be) => {
|
|
40419
40419
|
var We, lt;
|
|
40420
40420
|
if (!t || !((We = t.view) != null && We.dom) || !V.length) return;
|
|
40421
|
-
const Ie = V.find((Xe) => Xe.id ===
|
|
40421
|
+
const Ie = V.find((Xe) => Xe.id === Be);
|
|
40422
40422
|
if (Ie) {
|
|
40423
40423
|
if (Ie.selectedContent) {
|
|
40424
40424
|
const Xe = t.view.dom.querySelector(
|
|
40425
|
-
`[data-comment-id="${
|
|
40425
|
+
`[data-comment-id="${Be}"]`
|
|
40426
40426
|
);
|
|
40427
40427
|
if (Xe) {
|
|
40428
40428
|
const Ve = t.view.posAtDOM(Xe, 0), mt = Ve + (((lt = Xe.textContent) == null ? void 0 : lt.length) ?? 0);
|
|
@@ -40440,25 +40440,25 @@ const kz = ud(void 0), Dhe = ({
|
|
|
40440
40440
|
});
|
|
40441
40441
|
}
|
|
40442
40442
|
}
|
|
40443
|
-
l(
|
|
40443
|
+
l(Be);
|
|
40444
40444
|
}
|
|
40445
40445
|
},
|
|
40446
40446
|
[t, V, l]
|
|
40447
40447
|
), pe = Se(
|
|
40448
|
-
(
|
|
40449
|
-
const Ie =
|
|
40450
|
-
_(Ie), Ie || (
|
|
40448
|
+
(Be) => {
|
|
40449
|
+
const Ie = Be.target.value;
|
|
40450
|
+
_(Ie), Ie || (Be.target.style.height = "40px");
|
|
40451
40451
|
},
|
|
40452
40452
|
[]
|
|
40453
40453
|
), xe = Se(
|
|
40454
|
-
(
|
|
40455
|
-
const Ie =
|
|
40456
|
-
E(Ie), Ie || (
|
|
40454
|
+
(Be) => {
|
|
40455
|
+
const Ie = Be.target.value;
|
|
40456
|
+
E(Ie), Ie || (Be.target.style.height = "40px");
|
|
40457
40457
|
},
|
|
40458
40458
|
[]
|
|
40459
40459
|
), be = Se(() => {
|
|
40460
40460
|
if (!N.trim() || !i) return;
|
|
40461
|
-
const
|
|
40461
|
+
const Be = {
|
|
40462
40462
|
id: `comment-${pp()}`,
|
|
40463
40463
|
tabId: u,
|
|
40464
40464
|
username: i,
|
|
@@ -40468,7 +40468,7 @@ const kz = ud(void 0), Dhe = ({
|
|
|
40468
40468
|
replies: [],
|
|
40469
40469
|
createdAt: /* @__PURE__ */ new Date()
|
|
40470
40470
|
};
|
|
40471
|
-
d == null || d(
|
|
40471
|
+
d == null || d(Be), l(Be.id), E(""), D == null || D(), requestAnimationFrame(() => {
|
|
40472
40472
|
P.current && P.current.scrollTo({
|
|
40473
40473
|
top: 0,
|
|
40474
40474
|
behavior: "smooth"
|
|
@@ -40483,41 +40483,41 @@ const kz = ud(void 0), Dhe = ({
|
|
|
40483
40483
|
D,
|
|
40484
40484
|
P
|
|
40485
40485
|
]), Ee = Se(
|
|
40486
|
-
(
|
|
40487
|
-
|
|
40486
|
+
(Be) => {
|
|
40487
|
+
Be.key === "Enter" && !Be.shiftKey && (Be.preventDefault(), be());
|
|
40488
40488
|
},
|
|
40489
40489
|
[be]
|
|
40490
40490
|
), Ce = Se(() => {
|
|
40491
40491
|
!a || !T.trim() || (W(a, T, p), _(""));
|
|
40492
40492
|
}, [a, T, W, p]), ge = Se(
|
|
40493
|
-
(
|
|
40494
|
-
|
|
40493
|
+
(Be) => {
|
|
40494
|
+
Be.key === "Enter" && !Be.shiftKey && (Be.preventDefault(), Ce());
|
|
40495
40495
|
},
|
|
40496
40496
|
[Ce]
|
|
40497
40497
|
), Te = Se(() => {
|
|
40498
|
-
R((
|
|
40498
|
+
R((Be) => !Be);
|
|
40499
40499
|
}, []), Ne = Se(
|
|
40500
|
-
(
|
|
40501
|
-
|
|
40500
|
+
(Be, Ie) => {
|
|
40501
|
+
Be.currentTarget.style.height = "auto";
|
|
40502
40502
|
const We = Math.min(
|
|
40503
|
-
Math.max(40,
|
|
40503
|
+
Math.max(40, Be.currentTarget.scrollHeight),
|
|
40504
40504
|
Ie.length > 30 || Ie.includes(`
|
|
40505
40505
|
`) ? 96 : 40
|
|
40506
40506
|
);
|
|
40507
|
-
|
|
40507
|
+
Be.currentTarget.style.height = `${We}px`;
|
|
40508
40508
|
},
|
|
40509
40509
|
[]
|
|
40510
40510
|
), Le = Dt(
|
|
40511
40511
|
() => V.filter(
|
|
40512
|
-
(
|
|
40512
|
+
(Be) => !Be.resolved && Be.selectedContent && Be.selectedContent.length > 0 && !Be.deleted
|
|
40513
40513
|
),
|
|
40514
40514
|
[V]
|
|
40515
40515
|
), Pe = Dt(
|
|
40516
|
-
() => Le.findIndex((
|
|
40516
|
+
() => Le.findIndex((Be) => Be.id === a),
|
|
40517
40517
|
[Le, a]
|
|
40518
40518
|
), ft = Se(() => {
|
|
40519
|
-
var
|
|
40520
|
-
if ((
|
|
40519
|
+
var Be, Ie;
|
|
40520
|
+
if ((Be = t.view) != null && Be.dom && Pe > 0) {
|
|
40521
40521
|
const We = Le[Pe - 1], lt = t.view.dom.querySelector(
|
|
40522
40522
|
`[data-comment-id="${We.id}"]`
|
|
40523
40523
|
);
|
|
@@ -40527,8 +40527,8 @@ const kz = ud(void 0), Dhe = ({
|
|
|
40527
40527
|
}
|
|
40528
40528
|
}
|
|
40529
40529
|
}, [Pe, Le, t, te]), pt = Se(() => {
|
|
40530
|
-
var
|
|
40531
|
-
if ((
|
|
40530
|
+
var Be, Ie;
|
|
40531
|
+
if ((Be = t.view) != null && Be.dom && Pe < Le.length - 1) {
|
|
40532
40532
|
const We = Le[Pe + 1], lt = t.view.dom.querySelector(
|
|
40533
40533
|
`[data-comment-id="${We.id}"]`
|
|
40534
40534
|
);
|
|
@@ -43982,7 +43982,7 @@ function Qz() {
|
|
|
43982
43982
|
let Ne = Te, Le = !1, Pe = null;
|
|
43983
43983
|
const ft = Kt({}, [Ce, ge, Te], Hv);
|
|
43984
43984
|
let pt = Kt({}, ["mi", "mo", "mn", "ms", "mtext"]), rt = Kt({}, ["annotation-xml"]);
|
|
43985
|
-
const
|
|
43985
|
+
const Be = Kt({}, ["title", "style", "font", "a", "script"]);
|
|
43986
43986
|
let Ie = null;
|
|
43987
43987
|
const We = ["application/xhtml+xml", "text/html"], lt = "text/html";
|
|
43988
43988
|
let Xe = null, Ve = null;
|
|
@@ -44009,7 +44009,7 @@ function Qz() {
|
|
|
44009
44009
|
tagName: "template"
|
|
44010
44010
|
});
|
|
44011
44011
|
const it = Vm(we.tagName), Gt = Vm(Ae.tagName);
|
|
44012
|
-
return Pe[we.namespaceURI] ? we.namespaceURI === ge ? Ae.namespaceURI === Te ? it === "svg" : Ae.namespaceURI === Ce ? it === "svg" && (Gt === "annotation-xml" || pt[Gt]) : !!fn[it] : we.namespaceURI === Ce ? Ae.namespaceURI === Te ? it === "math" : Ae.namespaceURI === ge ? it === "math" && rt[Gt] : !!En[it] : we.namespaceURI === Te ? Ae.namespaceURI === ge && !rt[Gt] || Ae.namespaceURI === Ce && !pt[Gt] ? !1 : !En[it] && (
|
|
44012
|
+
return Pe[we.namespaceURI] ? we.namespaceURI === ge ? Ae.namespaceURI === Te ? it === "svg" : Ae.namespaceURI === Ce ? it === "svg" && (Gt === "annotation-xml" || pt[Gt]) : !!fn[it] : we.namespaceURI === Ce ? Ae.namespaceURI === Te ? it === "math" : Ae.namespaceURI === ge ? it === "math" && rt[Gt] : !!En[it] : we.namespaceURI === Te ? Ae.namespaceURI === ge && !rt[Gt] || Ae.namespaceURI === Ce && !pt[Gt] ? !1 : !En[it] && (Be[it] || !fn[it]) : !!(Ie === "application/xhtml+xml" && Pe[we.namespaceURI]) : !1;
|
|
44013
44013
|
}, ln = function(we) {
|
|
44014
44014
|
Uh(t.removed, {
|
|
44015
44015
|
element: we
|
|
@@ -46693,7 +46693,7 @@ const N0 = (e) => {
|
|
|
46693
46693
|
ref: d,
|
|
46694
46694
|
toolVisibility: p,
|
|
46695
46695
|
setToolVisibility: h
|
|
46696
|
-
} = Ese(Ze.NONE), [f, g] =
|
|
46696
|
+
} = Ese(Ze.NONE), [f, g] = je(!1), [m, b] = je(!1), [y, x] = je(
|
|
46697
46697
|
Zge
|
|
46698
46698
|
), { buttonRef: v } = cl();
|
|
46699
46699
|
Me(() => {
|
|
@@ -47407,7 +47407,7 @@ const N0 = (e) => {
|
|
|
47407
47407
|
setIsLinkPopupOpen: o,
|
|
47408
47408
|
onError: i
|
|
47409
47409
|
}) => {
|
|
47410
|
-
const [s, a] =
|
|
47410
|
+
const [s, a] = je(t.getAttributes("link").href), l = Se(() => {
|
|
47411
47411
|
if (s === "" || s === void 0) {
|
|
47412
47412
|
t.chain().focus().extendMarkRange("link").unsetLink().run();
|
|
47413
47413
|
return;
|
|
@@ -48512,7 +48512,7 @@ const N0 = (e) => {
|
|
|
48512
48512
|
stroke: "currentColor"
|
|
48513
48513
|
}
|
|
48514
48514
|
) }), j$ = ({ username: e, createdAt: t }) => {
|
|
48515
|
-
const { getEnsStatus: n, ensCache: r } = cl(), [o, i] =
|
|
48515
|
+
const { getEnsStatus: n, ensCache: r } = cl(), [o, i] = je({
|
|
48516
48516
|
name: e,
|
|
48517
48517
|
isEns: !1
|
|
48518
48518
|
});
|
|
@@ -48572,7 +48572,7 @@ const N0 = (e) => {
|
|
|
48572
48572
|
version: f,
|
|
48573
48573
|
emptyComment: g
|
|
48574
48574
|
}) => {
|
|
48575
|
-
const m = He(null), [b, y] =
|
|
48575
|
+
const m = He(null), [b, y] = je(!1), [x, v] = je(!1), k = He(null), { setOpenReplyId: w } = cl(), { getEnsStatus: D, ensCache: C } = cl(), [A, R] = je({
|
|
48576
48576
|
name: e,
|
|
48577
48577
|
isEns: !1
|
|
48578
48578
|
});
|
|
@@ -48838,7 +48838,7 @@ const N0 = (e) => {
|
|
|
48838
48838
|
isDisabled: o,
|
|
48839
48839
|
isCommentOwner: i
|
|
48840
48840
|
}) => {
|
|
48841
|
-
const [s, a] =
|
|
48841
|
+
const [s, a] = je(t), [l, u] = je(""), [c, d] = je(!0), [p, h] = je(!!e), f = He(null), [g, m] = je(!1), {
|
|
48842
48842
|
inlineCommentData: b,
|
|
48843
48843
|
setInlineCommentData: y,
|
|
48844
48844
|
addComment: x,
|
|
@@ -50344,7 +50344,7 @@ const yme = {
|
|
|
50344
50344
|
initialFormat: i,
|
|
50345
50345
|
initialTab: s
|
|
50346
50346
|
}) => {
|
|
50347
|
-
const [a, l] =
|
|
50347
|
+
const [a, l] = je(i || "pdf"), [u, c] = je(s || "all"), d = Dt(
|
|
50348
50348
|
() => {
|
|
50349
50349
|
var f;
|
|
50350
50350
|
return i ?? ((f = r[0]) == null ? void 0 : f.id) ?? "pdf";
|
|
@@ -50926,9 +50926,9 @@ ${N.getHTML()}`
|
|
|
50926
50926
|
ydoc: a,
|
|
50927
50927
|
onRegisterExportTrigger: l
|
|
50928
50928
|
}) => {
|
|
50929
|
-
const [u, c] =
|
|
50929
|
+
const [u, c] = je(!1), [d, p] = je(!1);
|
|
50930
50930
|
let h, f;
|
|
50931
|
-
const [g, m] =
|
|
50931
|
+
const [g, m] = je(!1), [b, y] = je("pdf"), [x, v] = je(void 0), { formatSelectOptions: k, handleExport: w, getOptionFormat: D } = z$({
|
|
50932
50932
|
editor: i,
|
|
50933
50933
|
tabs: s,
|
|
50934
50934
|
ydoc: a,
|
|
@@ -51202,7 +51202,7 @@ ${N.getHTML()}`
|
|
|
51202
51202
|
fetchV1ImageFn: g
|
|
51203
51203
|
}), N = M$(e), E = e ? N.currentSize : void 0, M = e ? N.onSetFontSize : () => {
|
|
51204
51204
|
}, j = e ? N.currentLineHeight : void 0, P = e ? N.onSetLineHeight : () => {
|
|
51205
|
-
}, I = Yn("(max-width: 1560px)"), U = Yn("(max-width: 1370px)"), q = Yn("(max-width: 1270px)"), z = Yn("(max-width: 1160px)"), $ = Yn("(max-width: 1030px)"), [re, le] =
|
|
51205
|
+
}, I = Yn("(max-width: 1560px)"), U = Yn("(max-width: 1370px)"), q = Yn("(max-width: 1270px)"), z = Yn("(max-width: 1160px)"), $ = Yn("(max-width: 1030px)"), [re, le] = je(!1), [ne, G] = je("Default"), Q = v$.find((S) => S.value === ne);
|
|
51206
51206
|
Me(() => {
|
|
51207
51207
|
if (!e) return;
|
|
51208
51208
|
const S = () => G(zme(e));
|
|
@@ -56782,7 +56782,7 @@ const yye = I2e.extend({
|
|
|
56782
56782
|
height: a,
|
|
56783
56783
|
fetchV1ImageFn: l
|
|
56784
56784
|
}, u) => {
|
|
56785
|
-
const [c, d] =
|
|
56785
|
+
const [c, d] = je("");
|
|
56786
56786
|
return Me(() => {
|
|
56787
56787
|
const p = e && t && n && r;
|
|
56788
56788
|
let h = !0, f = null;
|
|
@@ -56833,7 +56833,7 @@ const yye = I2e.extend({
|
|
|
56833
56833
|
mimeType: u,
|
|
56834
56834
|
authTag: c
|
|
56835
56835
|
}, d) => {
|
|
56836
|
-
const [p, h] =
|
|
56836
|
+
const [p, h] = je("");
|
|
56837
56837
|
return Me(() => {
|
|
56838
56838
|
const f = e && t && n && c;
|
|
56839
56839
|
let g = !0, m = null;
|
|
@@ -56866,7 +56866,7 @@ const yye = I2e.extend({
|
|
|
56866
56866
|
) : /* @__PURE__ */ F.jsx(hr, { className: "w-[500px] h-[300px] rounded-lg" });
|
|
56867
56867
|
}
|
|
56868
56868
|
), SH = (e, t) => ({ node: n, updateAttributes: r, deleteNode: o, selected: i }) => {
|
|
56869
|
-
const { isPreviewMode: s } = L1(), a = n.attrs["media-type"], l = a === "img" || a === "secure-img", u = a === "iframe" && new URL(n.attrs.src).hostname === "w.soundcloud.com", [c, d] =
|
|
56869
|
+
const { isPreviewMode: s } = L1(), a = n.attrs["media-type"], l = a === "img" || a === "secure-img", u = a === "iframe" && new URL(n.attrs.src).hostname === "w.soundcloud.com", [c, d] = je(0), [p, h] = je(0), [f, g] = je({}), m = He(null), b = He(-1), [y, x] = je(!1), [v, k] = je(!1), [w, D] = je(null), C = He(null), A = () => {
|
|
56870
56870
|
const G = {};
|
|
56871
56871
|
aT.forEach(({ tooltip: Q, isActive: Y }) => {
|
|
56872
56872
|
G[Q] = !!(Y != null && Y(n.attrs));
|
|
@@ -56945,7 +56945,7 @@ const yye = I2e.extend({
|
|
|
56945
56945
|
setTimeout(() => {
|
|
56946
56946
|
j(Y, Math.abs(Q)), b.current = G;
|
|
56947
56947
|
});
|
|
56948
|
-
}, [I, U] =
|
|
56948
|
+
}, [I, U] = je(), [q, z] = je();
|
|
56949
56949
|
Me(() => {
|
|
56950
56950
|
A(), U(n.attrs.dataFloat), z(n.attrs.dataAlign);
|
|
56951
56951
|
}, [n.attrs]);
|
|
@@ -57698,7 +57698,7 @@ const gxe = (e) => ({
|
|
|
57698
57698
|
watchOnTwitter: Sxe,
|
|
57699
57699
|
viewReplies: Txe
|
|
57700
57700
|
}, jxe = ({ tweet: e, media: t }) => {
|
|
57701
|
-
const [n, r] =
|
|
57701
|
+
const [n, r] = je(!0), [o, i] = je(!1), [s, a] = je(!1), l = hxe(t);
|
|
57702
57702
|
let u = 0;
|
|
57703
57703
|
return /* @__PURE__ */ F.jsxs(F.Fragment, {
|
|
57704
57704
|
children: [
|
|
@@ -57892,7 +57892,7 @@ const gxe = (e) => ({
|
|
|
57892
57892
|
replyText: t3e,
|
|
57893
57893
|
copyText: n3e
|
|
57894
57894
|
}, r3e = ({ tweet: e }) => {
|
|
57895
|
-
const [t, n] =
|
|
57895
|
+
const [t, n] = je(!1), r = () => {
|
|
57896
57896
|
navigator.clipboard.writeText(e.url), n(!0);
|
|
57897
57897
|
};
|
|
57898
57898
|
return Me(() => {
|
|
@@ -58755,7 +58755,7 @@ const cve = (e, t, n) => {
|
|
|
58755
58755
|
components: r
|
|
58756
58756
|
});
|
|
58757
58757
|
}, pve = ({ node: e, editor: t }) => {
|
|
58758
|
-
const [n, r] =
|
|
58758
|
+
const [n, r] = je(null), [o, i] = je(!1);
|
|
58759
58759
|
Me(() => {
|
|
58760
58760
|
t == null || t.chain().focus(), (async () => {
|
|
58761
58761
|
try {
|
|
@@ -59159,7 +59159,7 @@ const mve = ({
|
|
|
59159
59159
|
}
|
|
59160
59160
|
};
|
|
59161
59161
|
function yve(e) {
|
|
59162
|
-
const [t, n] =
|
|
59162
|
+
const [t, n] = je(!1), r = He(e), o = He(null), i = Se(() => {
|
|
59163
59163
|
if (!r.current) {
|
|
59164
59164
|
n(!1);
|
|
59165
59165
|
return;
|
|
@@ -62525,7 +62525,7 @@ const Zve = _t.memo(
|
|
|
62525
62525
|
), JH = _t.memo(
|
|
62526
62526
|
({ node: e, getPos: t, editor: n, deleteNode: r, ...o }) => {
|
|
62527
62527
|
var G, Q, Y, oe;
|
|
62528
|
-
const i = (Q = (G = o.extension) == null ? void 0 : G.options) == null ? void 0 : Q.onCopyHeadingLink, s = Yn("(max-width: 1024px)"), [a, l] =
|
|
62528
|
+
const i = (Q = (G = o.extension) == null ? void 0 : G.options) == null ? void 0 : Q.onCopyHeadingLink, s = Yn("(max-width: 1024px)"), [a, l] = je(!1), [u, c] = je(!1), [d, p] = je(2), h = xve(n, e, t()), {
|
|
62529
62529
|
isPreviewMode: f,
|
|
62530
62530
|
isPresentationMode: g,
|
|
62531
62531
|
isCollaboratorsDoc: m,
|
|
@@ -65012,7 +65012,7 @@ function RFe(e, t) {
|
|
|
65012
65012
|
var ge = v.props, Te = ge.popperOptions, Ne = ge.placement, Le = ge.offset, Pe = ge.getReferenceClientRect, ft = ge.moveTransition, pt = _() ? Mw(w).arrow : null, rt = Pe ? {
|
|
65013
65013
|
getBoundingClientRect: Pe,
|
|
65014
65014
|
contextElement: Pe.contextElement || N()
|
|
65015
|
-
} : e,
|
|
65015
|
+
} : e, Be = {
|
|
65016
65016
|
name: "$$tippy",
|
|
65017
65017
|
enabled: !0,
|
|
65018
65018
|
phase: "beforeWrite",
|
|
@@ -65051,7 +65051,7 @@ function RFe(e, t) {
|
|
|
65051
65051
|
options: {
|
|
65052
65052
|
adaptive: !ft
|
|
65053
65053
|
}
|
|
65054
|
-
},
|
|
65054
|
+
}, Be];
|
|
65055
65055
|
_() && pt && Ie.push({
|
|
65056
65056
|
name: "arrow",
|
|
65057
65057
|
options: {
|
|
@@ -65311,7 +65311,7 @@ function $Fe(e) {
|
|
|
65311
65311
|
function t(n) {
|
|
65312
65312
|
var r = n.children, o = n.content, i = n.visible, s = n.singleton, a = n.render, l = n.reference, u = n.disabled, c = u === void 0 ? !1 : u, d = n.ignoreAttributes, p = d === void 0 ? !0 : d;
|
|
65313
65313
|
n.__source, n.__self;
|
|
65314
|
-
var h = FW(n, ["children", "content", "visible", "singleton", "render", "reference", "disabled", "ignoreAttributes", "__source", "__self"]), f = i !== void 0, g = s !== void 0, m =
|
|
65314
|
+
var h = FW(n, ["children", "content", "visible", "singleton", "render", "reference", "disabled", "ignoreAttributes", "__source", "__self"]), f = i !== void 0, g = s !== void 0, m = je(!1), b = m[0], y = m[1], x = je({}), v = x[0], k = x[1], w = je(), D = w[0], C = w[1], A = PFe(function() {
|
|
65315
65315
|
return {
|
|
65316
65316
|
container: ZT(),
|
|
65317
65317
|
renders: 1
|
|
@@ -65499,7 +65499,7 @@ const qFe = [
|
|
|
65499
65499
|
selected: t,
|
|
65500
65500
|
getPos: n
|
|
65501
65501
|
}) => {
|
|
65502
|
-
const [r, o] =
|
|
65502
|
+
const [r, o] = je(!1), { isPreviewMode: i } = L1(), s = He(null), a = He(), l = () => {
|
|
65503
65503
|
a.current && clearTimeout(a.current), o(!0);
|
|
65504
65504
|
}, u = () => {
|
|
65505
65505
|
a.current = setTimeout(() => {
|
|
@@ -65913,7 +65913,7 @@ const ZFe = Ft.create({
|
|
|
65913
65913
|
deleteNode: r,
|
|
65914
65914
|
onError: o
|
|
65915
65915
|
}) => {
|
|
65916
|
-
const [i, s] =
|
|
65916
|
+
const [i, s] = je(""), { isPreviewMode: a } = L1(), l = ["https://twitter.com", "https://x.com"], u = () => {
|
|
65917
65917
|
switch (e.attrs.data) {
|
|
65918
65918
|
case "twitter":
|
|
65919
65919
|
return /* @__PURE__ */ F.jsx(Ue, { name: "XSocial", size: "md" });
|
|
@@ -79720,15 +79720,15 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
79720
79720
|
for (ie.max_code = W, he = V.heap_len >> 1; 1 <= he; he--) X(V, ce, he);
|
|
79721
79721
|
for (me = O; he = V.heap[1], V.heap[1] = V.heap[V.heap_len--], X(V, ce, 1), De = V.heap[1], V.heap[--V.heap_max] = he, V.heap[--V.heap_max] = De, ce[2 * me] = ce[2 * he] + ce[2 * De], V.depth[me] = (V.depth[he] >= V.depth[De] ? V.depth[he] : V.depth[De]) + 1, ce[2 * he + 1] = ce[2 * De + 1] = me, V.heap[1] = me++, X(V, ce, 1), 2 <= V.heap_len; ) ;
|
|
79722
79722
|
V.heap[--V.heap_max] = V.heap[1], function(te, pe) {
|
|
79723
|
-
var xe, be, Ee, Ce, ge, Te, Ne = pe.dyn_tree, Le = pe.max_code, Pe = pe.stat_desc.static_tree, ft = pe.stat_desc.has_stree, pt = pe.stat_desc.extra_bits, rt = pe.stat_desc.extra_base,
|
|
79723
|
+
var xe, be, Ee, Ce, ge, Te, Ne = pe.dyn_tree, Le = pe.max_code, Pe = pe.stat_desc.static_tree, ft = pe.stat_desc.has_stree, pt = pe.stat_desc.extra_bits, rt = pe.stat_desc.extra_base, Be = pe.stat_desc.max_length, Ie = 0;
|
|
79724
79724
|
for (Ce = 0; Ce <= m; Ce++) te.bl_count[Ce] = 0;
|
|
79725
|
-
for (Ne[2 * te.heap[te.heap_max] + 1] = 0, xe = te.heap_max + 1; xe < g; xe++)
|
|
79725
|
+
for (Ne[2 * te.heap[te.heap_max] + 1] = 0, xe = te.heap_max + 1; xe < g; xe++) Be < (Ce = Ne[2 * Ne[2 * (be = te.heap[xe]) + 1] + 1] + 1) && (Ce = Be, Ie++), Ne[2 * be + 1] = Ce, Le < be || (te.bl_count[Ce]++, ge = 0, rt <= be && (ge = pt[be - rt]), Te = Ne[2 * be], te.opt_len += Te * (Ce + ge), ft && (te.static_len += Te * (Pe[2 * be + 1] + ge)));
|
|
79726
79726
|
if (Ie !== 0) {
|
|
79727
79727
|
do {
|
|
79728
|
-
for (Ce =
|
|
79729
|
-
te.bl_count[Ce]--, te.bl_count[Ce + 1] += 2, te.bl_count[
|
|
79728
|
+
for (Ce = Be - 1; te.bl_count[Ce] === 0; ) Ce--;
|
|
79729
|
+
te.bl_count[Ce]--, te.bl_count[Ce + 1] += 2, te.bl_count[Be]--, Ie -= 2;
|
|
79730
79730
|
} while (0 < Ie);
|
|
79731
|
-
for (Ce =
|
|
79731
|
+
for (Ce = Be; Ce !== 0; Ce--) for (be = te.bl_count[Ce]; be !== 0; ) Le < (Ee = te.heap[--xe]) || (Ne[2 * Ee + 1] !== Ce && (te.opt_len += (Ce - Ne[2 * Ee + 1]) * Ne[2 * Ee], Ne[2 * Ee + 1] = Ce), be--);
|
|
79732
79732
|
}
|
|
79733
79733
|
}(V, ie), Q(ce, W, V.bl_count);
|
|
79734
79734
|
}
|
|
@@ -90531,7 +90531,7 @@ const BBe = ({
|
|
|
90531
90531
|
metadataProxyUrl: t,
|
|
90532
90532
|
hoverEvent: n
|
|
90533
90533
|
}) => {
|
|
90534
|
-
const r = Yn("(max-width:768px)"), [o, i] =
|
|
90534
|
+
const r = Yn("(max-width:768px)"), [o, i] = je(null), [s, a] = je(!1), l = He(/* @__PURE__ */ new Map()), u = async (c) => {
|
|
90535
90535
|
if (c) {
|
|
90536
90536
|
if (l.current.has(c)) {
|
|
90537
90537
|
i(l.current.get(c)), a(!1);
|
|
@@ -92166,7 +92166,7 @@ function LNe({
|
|
|
92166
92166
|
editor: n,
|
|
92167
92167
|
deleteNode: r
|
|
92168
92168
|
}) {
|
|
92169
|
-
const o = He(null), [i, s] =
|
|
92169
|
+
const o = He(null), [i, s] = je("Copy"), a = e.attrs.language || "plaintext", l = !n.isEditable, u = e.attrs.lineNumbers && !l, c = e.attrs.wordWrap && !l, d = e.attrs.tabSize ?? 2, p = e.attrs.shouldFocus, { isMobile: h } = Dl(), f = e.textContent || e.attrs.code || "", g = Dt(() => {
|
|
92170
92170
|
const y = f.split(`
|
|
92171
92171
|
`), x = [];
|
|
92172
92172
|
let v = 0;
|
|
@@ -105626,7 +105626,7 @@ function hOe({
|
|
|
105626
105626
|
var mY = hOe;
|
|
105627
105627
|
const bY = ur(
|
|
105628
105628
|
(e, t) => {
|
|
105629
|
-
const [n, r] =
|
|
105629
|
+
const [n, r] = je(0), o = Se(
|
|
105630
105630
|
(l) => {
|
|
105631
105631
|
const u = e.items[l];
|
|
105632
105632
|
u && e.command(u);
|
|
@@ -166210,7 +166210,7 @@ const bOe = 200, yOe = new St("emoji"), xOe = At.create({
|
|
|
166210
166210
|
command: t,
|
|
166211
166211
|
editor: n
|
|
166212
166212
|
}) => {
|
|
166213
|
-
const [r, o] =
|
|
166213
|
+
const [r, o] = je(0), [i, s] = je(e), a = Yn("(max-width: 640px)"), l = km(n, "callout"), u = km(n, "codeBlock"), c = km(n, "column"), d = km(n, "table"), p = Se(
|
|
166214
166214
|
(f) => {
|
|
166215
166215
|
const g = i[f];
|
|
166216
166216
|
g && (g.title === "Continue writing" || t(g));
|
|
@@ -167871,9 +167871,9 @@ const qM = () => {
|
|
|
167871
167871
|
deleteNode: o
|
|
167872
167872
|
}) => {
|
|
167873
167873
|
var K;
|
|
167874
|
-
const [i, s] =
|
|
167874
|
+
const [i, s] = je(!1), [a, l] = je(!1), [u, c] = je(e.attrs.prompt), [d, p] = je(!!e.attrs.content), [h, f] = je(""), [g, m] = je(!1), [b, y] = je(!1), [x, v] = je([]), [k, w] = je(
|
|
167875
167875
|
!!localStorage.getItem("include-ddoc-context")
|
|
167876
|
-
), [D, C] =
|
|
167876
|
+
), [D, C] = je(!0), { prompt: A, content: R } = e.attrs, T = He(null), _ = He(null), N = He(null), E = !t.isEditable, { isWindows: M } = Dl(), j = M ? "Ctrl" : "Cmd", P = window.__MODEL_CONTEXT__, I = He(null), [U, q] = je(
|
|
167877
167877
|
qM()
|
|
167878
167878
|
), z = rL({
|
|
167879
167879
|
extensions: [DH, ...CW],
|
|
@@ -168532,7 +168532,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
168532
168532
|
activeTabId: z
|
|
168533
168533
|
}), { handleCommentInteraction: B, handleCommentClick: ee } = yRe({
|
|
168534
168534
|
onCommentInteraction: d
|
|
168535
|
-
}), ae = He(!0), [K, V] =
|
|
168535
|
+
}), ae = He(!0), [K, V] = je([]), ie = Dt(() => ue, [ue]);
|
|
168536
168536
|
Me(() => {
|
|
168537
168537
|
z && Q(null);
|
|
168538
168538
|
}, [z, Q]);
|
|
@@ -168548,8 +168548,8 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
168548
168548
|
...qme,
|
|
168549
168549
|
handleDOMEvents: {
|
|
168550
168550
|
mouseover: B,
|
|
168551
|
-
keydown: (rt,
|
|
168552
|
-
if (["ArrowUp", "ArrowDown", "Enter"].includes(
|
|
168551
|
+
keydown: (rt, Be) => {
|
|
168552
|
+
if (["ArrowUp", "ArrowDown", "Enter"].includes(Be.key)) {
|
|
168553
168553
|
const Ie = document.querySelector("#slash-command"), We = document.querySelector("#emoji-list");
|
|
168554
168554
|
if (Ie || We)
|
|
168555
168555
|
return !0;
|
|
@@ -168559,7 +168559,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
168559
168559
|
he == null || he.commands.unsetCommentActive();
|
|
168560
168560
|
}
|
|
168561
168561
|
},
|
|
168562
|
-
handleClick: (rt,
|
|
168562
|
+
handleClick: (rt, Be, Ie) => {
|
|
168563
168563
|
const We = Ie.metaKey || Ie.ctrlKey, Xe = Ie.target.closest("a");
|
|
168564
168564
|
if (Xe && Xe.href) {
|
|
168565
168565
|
if (o)
|
|
@@ -168570,7 +168570,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
168570
168570
|
} else
|
|
168571
168571
|
return Ie.preventDefault(), window.open(Xe.href, "_blank"), !0;
|
|
168572
168572
|
}
|
|
168573
|
-
return ee ? ee(rt,
|
|
168573
|
+
return ee ? ee(rt, Be, Ie) : !1;
|
|
168574
168574
|
},
|
|
168575
168575
|
attributes: {
|
|
168576
168576
|
spellCheck: "true"
|
|
@@ -168609,8 +168609,8 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
168609
168609
|
}, [De, a]);
|
|
168610
168610
|
const de = He(!1), fe = He(null), O = Se(
|
|
168611
168611
|
(rt) => {
|
|
168612
|
-
const
|
|
168613
|
-
ys(e, gp(
|
|
168612
|
+
const Be = rt.map((Ie) => ro(Ie));
|
|
168613
|
+
ys(e, gp(Be), "self");
|
|
168614
168614
|
},
|
|
168615
168615
|
[e]
|
|
168616
168616
|
), W = Se(
|
|
@@ -168632,12 +168632,12 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
168632
168632
|
A(!0);
|
|
168633
168633
|
return;
|
|
168634
168634
|
}
|
|
168635
|
-
const
|
|
168635
|
+
const Be = `${r || "no-version-id"}:${z || "default"}`;
|
|
168636
168636
|
if (!t && de.current) {
|
|
168637
168637
|
A(!1);
|
|
168638
168638
|
return;
|
|
168639
168639
|
}
|
|
168640
|
-
if (t && fe.current ===
|
|
168640
|
+
if (t && fe.current === Be) {
|
|
168641
168641
|
A(!1);
|
|
168642
168642
|
return;
|
|
168643
168643
|
}
|
|
@@ -168649,7 +168649,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
168649
168649
|
onInvalidContentError: E
|
|
168650
168650
|
})
|
|
168651
168651
|
)), _ && l6.setZoom(_), t) {
|
|
168652
|
-
fe.current =
|
|
168652
|
+
fe.current = Be, A(!1);
|
|
168653
168653
|
return;
|
|
168654
168654
|
}
|
|
168655
168655
|
I().finally(() => {
|
|
@@ -168691,11 +168691,11 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
168691
168691
|
return () => clearTimeout(rt);
|
|
168692
168692
|
}, [_, q, i, he == null ? void 0 : he.isEmpty]), Me(() => {
|
|
168693
168693
|
if (!he) return;
|
|
168694
|
-
const rt = ({ editor:
|
|
168695
|
-
const Ie =
|
|
168694
|
+
const rt = ({ editor: Be }) => {
|
|
168695
|
+
const Ie = Be.state.selection.from;
|
|
168696
168696
|
setTimeout(() => {
|
|
168697
|
-
const We =
|
|
168698
|
-
|
|
168697
|
+
const We = Be.state.selection.from, lt = [];
|
|
168698
|
+
Be.state.doc.nodesBetween(
|
|
168699
168699
|
Ie,
|
|
168700
168700
|
We,
|
|
168701
168701
|
(Xe, Ve) => {
|
|
@@ -168707,10 +168707,10 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
168707
168707
|
});
|
|
168708
168708
|
});
|
|
168709
168709
|
}
|
|
168710
|
-
),
|
|
168710
|
+
), Be.chain().setTextSelection({ from: Ie, to: We }).setColor("").run(), lt.forEach(({ from: Xe, to: Ve, mark: mt }) => {
|
|
168711
168711
|
const Ct = mt.attrs.color;
|
|
168712
|
-
y$(Ct) ||
|
|
168713
|
-
}),
|
|
168712
|
+
y$(Ct) || Be.chain().setTextSelection({ from: Xe, to: Ve }).setColor(Ct).run();
|
|
168713
|
+
}), Be.commands.setTextSelection(We);
|
|
168714
168714
|
}, 0);
|
|
168715
168715
|
};
|
|
168716
168716
|
return he.on("paste", rt), () => {
|
|
@@ -168732,12 +168732,12 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
168732
168732
|
const rt = () => {
|
|
168733
168733
|
xe.current && clearTimeout(xe.current), xe.current = setTimeout(() => {
|
|
168734
168734
|
if (xe.current = null, he && !he.isDestroyed && (w == null || w(he.storage.characterCount.characters() ?? 0), D == null || D(he.storage.characterCount.words() ?? 0), C)) {
|
|
168735
|
-
const
|
|
168736
|
-
if (!
|
|
168735
|
+
const Be = Ce.current;
|
|
168736
|
+
if (!Be)
|
|
168737
168737
|
return;
|
|
168738
168738
|
const Ie = he.getHTML(), We = ++Ee.current;
|
|
168739
168739
|
KM(be.current), be.current = hRe(() => {
|
|
168740
|
-
be.current = null,
|
|
168740
|
+
be.current = null, Be.getPageCount(Ie).then((lt) => {
|
|
168741
168741
|
We === Ee.current && he && !he.isDestroyed && (ge.current[z] = lt, C(lt));
|
|
168742
168742
|
}).catch(() => {
|
|
168743
168743
|
We === Ee.current && he && !he.isDestroyed && C(
|
|
@@ -168752,8 +168752,8 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
168752
168752
|
he.off("update", rt), xe.current && clearTimeout(xe.current), KM(be.current), be.current = null, Ee.current += 1;
|
|
168753
168753
|
};
|
|
168754
168754
|
}, [z, he, w, C, D]), Me(() => {
|
|
168755
|
-
const rt = (
|
|
168756
|
-
(
|
|
168755
|
+
const rt = (Be) => {
|
|
168756
|
+
(Be.ctrlKey || Be.metaKey) && Be.key === "p" && (Be.preventDefault(), he && (N ? cP(K) : Zy(he.getHTML())));
|
|
168757
168757
|
};
|
|
168758
168758
|
return window.addEventListener("keydown", rt), () => {
|
|
168759
168759
|
window.removeEventListener("keydown", rt);
|
|
@@ -168770,7 +168770,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
168770
168770
|
(rt) => {
|
|
168771
168771
|
if (he)
|
|
168772
168772
|
try {
|
|
168773
|
-
const
|
|
168773
|
+
const Be = he.view.dom.querySelectorAll("[data-toc-id]"), Ie = Array.from(Be).find(
|
|
168774
168774
|
(Ct) => {
|
|
168775
168775
|
var $t;
|
|
168776
168776
|
return ($t = Ct.dataset.tocId) == null ? void 0 : $t.includes(rt);
|
|
@@ -168815,7 +168815,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
168815
168815
|
if (!he || q || !i)
|
|
168816
168816
|
return;
|
|
168817
168817
|
const rt = setTimeout(() => {
|
|
168818
|
-
const { tr:
|
|
168818
|
+
const { tr: Be, doc: Ie } = he.state;
|
|
168819
168819
|
let We = !1;
|
|
168820
168820
|
Ie.descendants((lt, Xe) => {
|
|
168821
168821
|
if (!lt.marks || lt.marks.length === 0) return;
|
|
@@ -168834,9 +168834,9 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
168834
168834
|
color: Ct,
|
|
168835
168835
|
"data-original-color": mt
|
|
168836
168836
|
});
|
|
168837
|
-
|
|
168837
|
+
Be.removeMark(Xe, Xe + lt.nodeSize, Ve), Be.addMark(Xe, Xe + lt.nodeSize, $t);
|
|
168838
168838
|
}
|
|
168839
|
-
}), We && (
|
|
168839
|
+
}), We && (Be.setMeta("addToHistory", !1), he.view.dispatch(Be));
|
|
168840
168840
|
}, 0);
|
|
168841
168841
|
return () => clearTimeout(rt);
|
|
168842
168842
|
}, [he, i, q, $]), Me(() => () => {
|
|
@@ -168854,7 +168854,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
168854
168854
|
isContentLoading: q
|
|
168855
168855
|
};
|
|
168856
168856
|
}, gRe = () => {
|
|
168857
|
-
const [e, t] =
|
|
168857
|
+
const [e, t] = je(null), n = He(null), r = Se((o) => {
|
|
168858
168858
|
if (!n.current) return;
|
|
168859
168859
|
const i = n.current.querySelector(`input#${o}`);
|
|
168860
168860
|
i && i.scrollIntoView({
|
|
@@ -168871,7 +168871,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
168871
168871
|
focusCommentWithActiveId: r
|
|
168872
168872
|
};
|
|
168873
168873
|
}, mRe = (e) => {
|
|
168874
|
-
const [t, n] =
|
|
168874
|
+
const [t, n] = je([]), r = He(null), o = He({}), i = He(e);
|
|
168875
168875
|
Me(() => {
|
|
168876
168876
|
i.current = e;
|
|
168877
168877
|
const a = o.current[e];
|
|
@@ -168981,7 +168981,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
168981
168981
|
e,
|
|
168982
168982
|
m,
|
|
168983
168983
|
b
|
|
168984
|
-
]), [w, D] =
|
|
168984
|
+
]), [w, D] = je(k());
|
|
168985
168985
|
return Me(() => {
|
|
168986
168986
|
b && D(k());
|
|
168987
168987
|
}, [b]), Me(() => {
|
|
@@ -169220,9 +169220,9 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
169220
169220
|
n,
|
|
169221
169221
|
o,
|
|
169222
169222
|
c
|
|
169223
|
-
]), [g, m] =
|
|
169223
|
+
]), [g, m] = je(
|
|
169224
169224
|
s || f.activeTabId
|
|
169225
|
-
), [b, y] =
|
|
169225
|
+
), [b, y] = je(f.tabList), x = Dt(() => b.length > 0, [b]), v = He(null), k = He(g);
|
|
169226
169226
|
k.current = g;
|
|
169227
169227
|
const w = He(f.tabList.length > 0);
|
|
169228
169228
|
Me(() => {
|
|
@@ -173031,8 +173031,8 @@ var cZ = {};
|
|
|
173031
173031
|
Q[S] = Y[S] - oe[S];
|
|
173032
173032
|
}
|
|
173033
173033
|
function D(Q, Y, oe) {
|
|
173034
|
-
let S, X, Z = 0, ue = 0, B = 0, ee = 0, ae = 0, K = 0, V = 0, ie = 0, he = 0, De = 0, me = 0, ce = 0, de = 0, fe = 0, O = 0, W = 0, te = 0, pe = 0, xe = 0, be = 0, Ee = 0, Ce = 0, ge = 0, Te = 0, Ne = 0, Le = 0, Pe = 0, ft = 0, pt = 0, rt = 0,
|
|
173035
|
-
S = Y[0], Z += S * Ie, ue += S * We, B += S * lt, ee += S * Xe, ae += S * Ve, K += S * mt, V += S * Ct, ie += S * $t, he += S * fn, De += S * En, me += S * Cn, ce += S * ln, de += S * gn, fe += S * jn, O += S * ve, W += S * Re, S = Y[1], ue += S * Ie, B += S * We, ee += S * lt, ae += S * Xe, K += S * Ve, V += S * mt, ie += S * Ct, he += S * $t, De += S * fn, me += S * En, ce += S * Cn, de += S * ln, fe += S * gn, O += S * jn, W += S * ve, te += S * Re, S = Y[2], B += S * Ie, ee += S * We, ae += S * lt, K += S * Xe, V += S * Ve, ie += S * mt, he += S * Ct, De += S * $t, me += S * fn, ce += S * En, de += S * Cn, fe += S * ln, O += S * gn, W += S * jn, te += S * ve, pe += S * Re, S = Y[3], ee += S * Ie, ae += S * We, K += S * lt, V += S * Xe, ie += S * Ve, he += S * mt, De += S * Ct, me += S * $t, ce += S * fn, de += S * En, fe += S * Cn, O += S * ln, W += S * gn, te += S * jn, pe += S * ve, xe += S * Re, S = Y[4], ae += S * Ie, K += S * We, V += S * lt, ie += S * Xe, he += S * Ve, De += S * mt, me += S * Ct, ce += S * $t, de += S * fn, fe += S * En, O += S * Cn, W += S * ln, te += S * gn, pe += S * jn, xe += S * ve, be += S * Re, S = Y[5], K += S * Ie, V += S * We, ie += S * lt, he += S * Xe, De += S * Ve, me += S * mt, ce += S * Ct, de += S * $t, fe += S * fn, O += S * En, W += S * Cn, te += S * ln, pe += S * gn, xe += S * jn, be += S * ve, Ee += S * Re, S = Y[6], V += S * Ie, ie += S * We, he += S * lt, De += S * Xe, me += S * Ve, ce += S * mt, de += S * Ct, fe += S * $t, O += S * fn, W += S * En, te += S * Cn, pe += S * ln, xe += S * gn, be += S * jn, Ee += S * ve, Ce += S * Re, S = Y[7], ie += S * Ie, he += S * We, De += S * lt, me += S * Xe, ce += S * Ve, de += S * mt, fe += S * Ct, O += S * $t, W += S * fn, te += S * En, pe += S * Cn, xe += S * ln, be += S * gn, Ee += S * jn, Ce += S * ve, ge += S * Re, S = Y[8], he += S * Ie, De += S * We, me += S * lt, ce += S * Xe, de += S * Ve, fe += S * mt, O += S * Ct, W += S * $t, te += S * fn, pe += S * En, xe += S * Cn, be += S * ln, Ee += S * gn, Ce += S * jn, ge += S * ve, Te += S * Re, S = Y[9], De += S * Ie, me += S * We, ce += S * lt, de += S * Xe, fe += S * Ve, O += S * mt, W += S * Ct, te += S * $t, pe += S * fn, xe += S * En, be += S * Cn, Ee += S * ln, Ce += S * gn, ge += S * jn, Te += S * ve, Ne += S * Re, S = Y[10], me += S * Ie, ce += S * We, de += S * lt, fe += S * Xe, O += S * Ve, W += S * mt, te += S * Ct, pe += S * $t, xe += S * fn, be += S * En, Ee += S * Cn, Ce += S * ln, ge += S * gn, Te += S * jn, Ne += S * ve, Le += S * Re, S = Y[11], ce += S * Ie, de += S * We, fe += S * lt, O += S * Xe, W += S * Ve, te += S * mt, pe += S * Ct, xe += S * $t, be += S * fn, Ee += S * En, Ce += S * Cn, ge += S * ln, Te += S * gn, Ne += S * jn, Le += S * ve, Pe += S * Re, S = Y[12], de += S * Ie, fe += S * We, O += S * lt, W += S * Xe, te += S * Ve, pe += S * mt, xe += S * Ct, be += S * $t, Ee += S * fn, Ce += S * En, ge += S * Cn, Te += S * ln, Ne += S * gn, Le += S * jn, Pe += S * ve, ft += S * Re, S = Y[13], fe += S * Ie, O += S * We, W += S * lt, te += S * Xe, pe += S * Ve, xe += S * mt, be += S * Ct, Ee += S * $t, Ce += S * fn, ge += S * En, Te += S * Cn, Ne += S * ln, Le += S * gn, Pe += S * jn, ft += S * ve, pt += S * Re, S = Y[14], O += S * Ie, W += S * We, te += S * lt, pe += S * Xe, xe += S * Ve, be += S * mt, Ee += S * Ct, Ce += S * $t, ge += S * fn, Te += S * En, Ne += S * Cn, Le += S * ln, Pe += S * gn, ft += S * jn, pt += S * ve, rt += S * Re, S = Y[15], W += S * Ie, te += S * We, pe += S * lt, xe += S * Xe, be += S * Ve, Ee += S * mt, Ce += S * Ct, ge += S * $t, Te += S * fn, Ne += S * En, Le += S * Cn, Pe += S * ln, ft += S * gn, pt += S * jn, rt += S * ve,
|
|
173034
|
+
let S, X, Z = 0, ue = 0, B = 0, ee = 0, ae = 0, K = 0, V = 0, ie = 0, he = 0, De = 0, me = 0, ce = 0, de = 0, fe = 0, O = 0, W = 0, te = 0, pe = 0, xe = 0, be = 0, Ee = 0, Ce = 0, ge = 0, Te = 0, Ne = 0, Le = 0, Pe = 0, ft = 0, pt = 0, rt = 0, Be = 0, Ie = oe[0], We = oe[1], lt = oe[2], Xe = oe[3], Ve = oe[4], mt = oe[5], Ct = oe[6], $t = oe[7], fn = oe[8], En = oe[9], Cn = oe[10], ln = oe[11], gn = oe[12], jn = oe[13], ve = oe[14], Re = oe[15];
|
|
173035
|
+
S = Y[0], Z += S * Ie, ue += S * We, B += S * lt, ee += S * Xe, ae += S * Ve, K += S * mt, V += S * Ct, ie += S * $t, he += S * fn, De += S * En, me += S * Cn, ce += S * ln, de += S * gn, fe += S * jn, O += S * ve, W += S * Re, S = Y[1], ue += S * Ie, B += S * We, ee += S * lt, ae += S * Xe, K += S * Ve, V += S * mt, ie += S * Ct, he += S * $t, De += S * fn, me += S * En, ce += S * Cn, de += S * ln, fe += S * gn, O += S * jn, W += S * ve, te += S * Re, S = Y[2], B += S * Ie, ee += S * We, ae += S * lt, K += S * Xe, V += S * Ve, ie += S * mt, he += S * Ct, De += S * $t, me += S * fn, ce += S * En, de += S * Cn, fe += S * ln, O += S * gn, W += S * jn, te += S * ve, pe += S * Re, S = Y[3], ee += S * Ie, ae += S * We, K += S * lt, V += S * Xe, ie += S * Ve, he += S * mt, De += S * Ct, me += S * $t, ce += S * fn, de += S * En, fe += S * Cn, O += S * ln, W += S * gn, te += S * jn, pe += S * ve, xe += S * Re, S = Y[4], ae += S * Ie, K += S * We, V += S * lt, ie += S * Xe, he += S * Ve, De += S * mt, me += S * Ct, ce += S * $t, de += S * fn, fe += S * En, O += S * Cn, W += S * ln, te += S * gn, pe += S * jn, xe += S * ve, be += S * Re, S = Y[5], K += S * Ie, V += S * We, ie += S * lt, he += S * Xe, De += S * Ve, me += S * mt, ce += S * Ct, de += S * $t, fe += S * fn, O += S * En, W += S * Cn, te += S * ln, pe += S * gn, xe += S * jn, be += S * ve, Ee += S * Re, S = Y[6], V += S * Ie, ie += S * We, he += S * lt, De += S * Xe, me += S * Ve, ce += S * mt, de += S * Ct, fe += S * $t, O += S * fn, W += S * En, te += S * Cn, pe += S * ln, xe += S * gn, be += S * jn, Ee += S * ve, Ce += S * Re, S = Y[7], ie += S * Ie, he += S * We, De += S * lt, me += S * Xe, ce += S * Ve, de += S * mt, fe += S * Ct, O += S * $t, W += S * fn, te += S * En, pe += S * Cn, xe += S * ln, be += S * gn, Ee += S * jn, Ce += S * ve, ge += S * Re, S = Y[8], he += S * Ie, De += S * We, me += S * lt, ce += S * Xe, de += S * Ve, fe += S * mt, O += S * Ct, W += S * $t, te += S * fn, pe += S * En, xe += S * Cn, be += S * ln, Ee += S * gn, Ce += S * jn, ge += S * ve, Te += S * Re, S = Y[9], De += S * Ie, me += S * We, ce += S * lt, de += S * Xe, fe += S * Ve, O += S * mt, W += S * Ct, te += S * $t, pe += S * fn, xe += S * En, be += S * Cn, Ee += S * ln, Ce += S * gn, ge += S * jn, Te += S * ve, Ne += S * Re, S = Y[10], me += S * Ie, ce += S * We, de += S * lt, fe += S * Xe, O += S * Ve, W += S * mt, te += S * Ct, pe += S * $t, xe += S * fn, be += S * En, Ee += S * Cn, Ce += S * ln, ge += S * gn, Te += S * jn, Ne += S * ve, Le += S * Re, S = Y[11], ce += S * Ie, de += S * We, fe += S * lt, O += S * Xe, W += S * Ve, te += S * mt, pe += S * Ct, xe += S * $t, be += S * fn, Ee += S * En, Ce += S * Cn, ge += S * ln, Te += S * gn, Ne += S * jn, Le += S * ve, Pe += S * Re, S = Y[12], de += S * Ie, fe += S * We, O += S * lt, W += S * Xe, te += S * Ve, pe += S * mt, xe += S * Ct, be += S * $t, Ee += S * fn, Ce += S * En, ge += S * Cn, Te += S * ln, Ne += S * gn, Le += S * jn, Pe += S * ve, ft += S * Re, S = Y[13], fe += S * Ie, O += S * We, W += S * lt, te += S * Xe, pe += S * Ve, xe += S * mt, be += S * Ct, Ee += S * $t, Ce += S * fn, ge += S * En, Te += S * Cn, Ne += S * ln, Le += S * gn, Pe += S * jn, ft += S * ve, pt += S * Re, S = Y[14], O += S * Ie, W += S * We, te += S * lt, pe += S * Xe, xe += S * Ve, be += S * mt, Ee += S * Ct, Ce += S * $t, ge += S * fn, Te += S * En, Ne += S * Cn, Le += S * ln, Pe += S * gn, ft += S * jn, pt += S * ve, rt += S * Re, S = Y[15], W += S * Ie, te += S * We, pe += S * lt, xe += S * Xe, be += S * Ve, Ee += S * mt, Ce += S * Ct, ge += S * $t, Te += S * fn, Ne += S * En, Le += S * Cn, Pe += S * ln, ft += S * gn, pt += S * jn, rt += S * ve, Be += S * Re, Z += 38 * te, ue += 38 * pe, B += 38 * xe, ee += 38 * be, ae += 38 * Ee, K += 38 * Ce, V += 38 * ge, ie += 38 * Te, he += 38 * Ne, De += 38 * Le, me += 38 * Pe, ce += 38 * ft, de += 38 * pt, fe += 38 * rt, O += 38 * Be, X = 1, S = Z + X + 65535, X = Math.floor(S / 65536), Z = S - X * 65536, S = ue + X + 65535, X = Math.floor(S / 65536), ue = S - X * 65536, S = B + X + 65535, X = Math.floor(S / 65536), B = S - X * 65536, S = ee + X + 65535, X = Math.floor(S / 65536), ee = S - X * 65536, S = ae + X + 65535, X = Math.floor(S / 65536), ae = S - X * 65536, S = K + X + 65535, X = Math.floor(S / 65536), K = S - X * 65536, S = V + X + 65535, X = Math.floor(S / 65536), V = S - X * 65536, S = ie + X + 65535, X = Math.floor(S / 65536), ie = S - X * 65536, S = he + X + 65535, X = Math.floor(S / 65536), he = S - X * 65536, S = De + X + 65535, X = Math.floor(S / 65536), De = S - X * 65536, S = me + X + 65535, X = Math.floor(S / 65536), me = S - X * 65536, S = ce + X + 65535, X = Math.floor(S / 65536), ce = S - X * 65536, S = de + X + 65535, X = Math.floor(S / 65536), de = S - X * 65536, S = fe + X + 65535, X = Math.floor(S / 65536), fe = S - X * 65536, S = O + X + 65535, X = Math.floor(S / 65536), O = S - X * 65536, S = W + X + 65535, X = Math.floor(S / 65536), W = S - X * 65536, Z += X - 1 + 37 * (X - 1), X = 1, S = Z + X + 65535, X = Math.floor(S / 65536), Z = S - X * 65536, S = ue + X + 65535, X = Math.floor(S / 65536), ue = S - X * 65536, S = B + X + 65535, X = Math.floor(S / 65536), B = S - X * 65536, S = ee + X + 65535, X = Math.floor(S / 65536), ee = S - X * 65536, S = ae + X + 65535, X = Math.floor(S / 65536), ae = S - X * 65536, S = K + X + 65535, X = Math.floor(S / 65536), K = S - X * 65536, S = V + X + 65535, X = Math.floor(S / 65536), V = S - X * 65536, S = ie + X + 65535, X = Math.floor(S / 65536), ie = S - X * 65536, S = he + X + 65535, X = Math.floor(S / 65536), he = S - X * 65536, S = De + X + 65535, X = Math.floor(S / 65536), De = S - X * 65536, S = me + X + 65535, X = Math.floor(S / 65536), me = S - X * 65536, S = ce + X + 65535, X = Math.floor(S / 65536), ce = S - X * 65536, S = de + X + 65535, X = Math.floor(S / 65536), de = S - X * 65536, S = fe + X + 65535, X = Math.floor(S / 65536), fe = S - X * 65536, S = O + X + 65535, X = Math.floor(S / 65536), O = S - X * 65536, S = W + X + 65535, X = Math.floor(S / 65536), W = S - X * 65536, Z += X - 1 + 37 * (X - 1), Q[0] = Z, Q[1] = ue, Q[2] = B, Q[3] = ee, Q[4] = ae, Q[5] = K, Q[6] = V, Q[7] = ie, Q[8] = he, Q[9] = De, Q[10] = me, Q[11] = ce, Q[12] = de, Q[13] = fe, Q[14] = O, Q[15] = W;
|
|
173036
173036
|
}
|
|
173037
173037
|
function C(Q, Y) {
|
|
173038
173038
|
D(Q, Y, Y);
|
|
@@ -173563,10 +173563,10 @@ var bZ = { exports: {} };
|
|
|
173563
173563
|
return new p(this.value * this.value);
|
|
173564
173564
|
};
|
|
173565
173565
|
function j(O, W) {
|
|
173566
|
-
var te = O.length, pe = W.length, xe = r, be = b(W.length), Ee = W[pe - 1], Ce = Math.ceil(xe / (2 * Ee)), ge = R(O, Ce), Te = R(W, Ce), Ne, Le, Pe, ft, pt, rt,
|
|
173566
|
+
var te = O.length, pe = W.length, xe = r, be = b(W.length), Ee = W[pe - 1], Ce = Math.ceil(xe / (2 * Ee)), ge = R(O, Ce), Te = R(W, Ce), Ne, Le, Pe, ft, pt, rt, Be;
|
|
173567
173567
|
for (ge.length <= te && ge.push(0), Te.push(0), Ee = Te[pe - 1], Le = te - pe; Le >= 0; Le--) {
|
|
173568
173568
|
for (Ne = xe - 1, ge[Le + pe] !== Ee && (Ne = Math.floor((ge[Le + pe] * xe + ge[Le + pe - 1]) / Ee)), Pe = 0, ft = 0, rt = Te.length, pt = 0; pt < rt; pt++)
|
|
173569
|
-
Pe += Ne * Te[pt],
|
|
173569
|
+
Pe += Ne * Te[pt], Be = Math.floor(Pe / xe), ft += ge[Le + pt] - (Pe - Be * xe), Pe = Be, ft < 0 ? (ge[Le + pt] = ft + xe, ft = -1) : (ge[Le + pt] = ft, ft = 0);
|
|
173570
173570
|
for (; ft !== 0; ) {
|
|
173571
173571
|
for (Ne -= 1, Pe = 0, pt = 0; pt < rt; pt++)
|
|
173572
173572
|
Pe += ge[Le + pt] - xe + Te[pt], Pe < 0 ? (ge[Le + pt] = Pe + xe, Pe = 0) : (ge[Le + pt] = Pe, Pe = 1);
|
|
@@ -178607,7 +178607,7 @@ class Hze {
|
|
|
178607
178607
|
}
|
|
178608
178608
|
}
|
|
178609
178609
|
const Wze = { status: "idle" }, qze = (e) => {
|
|
178610
|
-
const [t, n] =
|
|
178610
|
+
const [t, n] = je(Wze), r = He(null);
|
|
178611
178611
|
r.current || (r.current = new Hze(e, n));
|
|
178612
178612
|
const o = r.current;
|
|
178613
178613
|
o.updateRefs(e.services, e.callbacks, e.onLocalUpdate);
|
|
@@ -178662,63 +178662,64 @@ const Wze = { status: "idle" }, qze = (e) => {
|
|
|
178662
178662
|
collaboration: r,
|
|
178663
178663
|
onIndexedDbError: o
|
|
178664
178664
|
}) => {
|
|
178665
|
-
const [i] =
|
|
178666
|
-
connect:
|
|
178667
|
-
isReady:
|
|
178668
|
-
isSyncing:
|
|
178669
|
-
terminateSession:
|
|
178670
|
-
awareness:
|
|
178671
|
-
hasCollabContentInitialised:
|
|
178672
|
-
state:
|
|
178665
|
+
const [i] = je(new Yi()), [s, a] = je(!t), [l, u] = je(!1), c = (r == null ? void 0 : r.enabled) === !0, d = c ? r.services : void 0, p = c ? r.on : void 0, {
|
|
178666
|
+
connect: h,
|
|
178667
|
+
isReady: f,
|
|
178668
|
+
isSyncing: g,
|
|
178669
|
+
terminateSession: m,
|
|
178670
|
+
awareness: b,
|
|
178671
|
+
hasCollabContentInitialised: y,
|
|
178672
|
+
state: x
|
|
178673
178673
|
} = qze({
|
|
178674
178674
|
ydoc: i,
|
|
178675
|
-
services:
|
|
178676
|
-
callbacks:
|
|
178675
|
+
services: d,
|
|
178676
|
+
callbacks: p,
|
|
178677
178677
|
onLocalUpdate: e
|
|
178678
|
-
}),
|
|
178679
|
-
const
|
|
178680
|
-
if (
|
|
178678
|
+
}), v = He(null), k = Se(async () => {
|
|
178679
|
+
const C = v.current;
|
|
178680
|
+
if (C && await C.destroy(), t && n) {
|
|
178681
178681
|
a(!1);
|
|
178682
178682
|
try {
|
|
178683
|
-
const
|
|
178684
|
-
|
|
178685
|
-
} catch (
|
|
178686
|
-
console.error("IndexedDB initialization failed:",
|
|
178687
|
-
|
|
178683
|
+
const A = new IRe(n, i);
|
|
178684
|
+
v.current = A, await A.whenSynced, a(!0);
|
|
178685
|
+
} catch (A) {
|
|
178686
|
+
console.error("IndexedDB initialization failed:", A), v.current = null, a(!0), o == null || o(
|
|
178687
|
+
A instanceof Error ? A : new Error(String(A))
|
|
178688
178688
|
);
|
|
178689
178689
|
}
|
|
178690
178690
|
} else
|
|
178691
178691
|
a(!0);
|
|
178692
|
-
}, [t, n, i, o]),
|
|
178692
|
+
}, [t, n, i, o]), w = He(
|
|
178693
178693
|
null
|
|
178694
|
-
),
|
|
178695
|
-
|
|
178694
|
+
), D = Se(() => {
|
|
178695
|
+
w.current && (clearTimeout(w.current), w.current = null), e == null || e(Qr(Fo(i)), "");
|
|
178696
178696
|
}, [i, e]);
|
|
178697
178697
|
return Me(() => {
|
|
178698
|
-
const
|
|
178699
|
-
|
|
178700
|
-
|
|
178701
|
-
const
|
|
178702
|
-
|
|
178703
|
-
|
|
178698
|
+
const C = (A, R) => {
|
|
178699
|
+
const T = R === "self", _ = R === v.current;
|
|
178700
|
+
if (!T && !_ && u(!0), T || _) return;
|
|
178701
|
+
const N = Qr(A);
|
|
178702
|
+
w.current && clearTimeout(w.current), w.current = setTimeout(() => {
|
|
178703
|
+
w.current = null, e == null || e(Qr(Fo(i)), N);
|
|
178704
178704
|
}, 300);
|
|
178705
178705
|
};
|
|
178706
|
-
return i && i.on("update",
|
|
178707
|
-
i == null || i.off("update",
|
|
178706
|
+
return i && i.on("update", C), () => {
|
|
178707
|
+
i == null || i.off("update", C), w.current && clearTimeout(w.current);
|
|
178708
178708
|
};
|
|
178709
|
-
}, [e, i]), {
|
|
178709
|
+
}, [e, i, v.current]), {
|
|
178710
178710
|
ydoc: i,
|
|
178711
|
-
onConnect:
|
|
178712
|
-
isReady:
|
|
178713
|
-
isSyncing:
|
|
178714
|
-
terminateSession:
|
|
178715
|
-
awareness:
|
|
178716
|
-
hasCollabContentInitialised:
|
|
178711
|
+
onConnect: h,
|
|
178712
|
+
isReady: f,
|
|
178713
|
+
isSyncing: g,
|
|
178714
|
+
terminateSession: m,
|
|
178715
|
+
awareness: b,
|
|
178716
|
+
hasCollabContentInitialised: y,
|
|
178717
178717
|
isIndexeddbSynced: s,
|
|
178718
|
-
|
|
178719
|
-
|
|
178720
|
-
|
|
178721
|
-
|
|
178718
|
+
hasUserEdited: l,
|
|
178719
|
+
initialiseYjsIndexedDbProvider: k,
|
|
178720
|
+
refreshYjsIndexedDbProvider: k,
|
|
178721
|
+
flushPendingUpdate: D,
|
|
178722
|
+
collabState: x
|
|
178722
178723
|
};
|
|
178723
178724
|
}, tJ = ({
|
|
178724
178725
|
isPreviewMode: e,
|
|
@@ -178755,7 +178756,7 @@ const Wze = { status: "idle" }, qze = (e) => {
|
|
|
178755
178756
|
...M
|
|
178756
178757
|
}) => {
|
|
178757
178758
|
var S;
|
|
178758
|
-
const [j, P] =
|
|
178759
|
+
const [j, P] = je(!0), [I, U] = je(!0), q = He(null), z = !!(n != null && n.enabled), $ = (n == null ? void 0 : n.content) ?? t, re = (r == null ? void 0 : r.enabled) === !0, le = Vze({
|
|
178759
178760
|
onChange: o,
|
|
178760
178761
|
enableIndexeddbSync: h,
|
|
178761
178762
|
ddocId: p,
|
|
@@ -178766,9 +178767,9 @@ const Wze = { status: "idle" }, qze = (e) => {
|
|
|
178766
178767
|
initialContent: $,
|
|
178767
178768
|
enableCollaboration: re,
|
|
178768
178769
|
isDDocOwner: M.isDDocOwner || !1,
|
|
178769
|
-
createDefaultTabIfMissing: !!(!z && !e && M.isDDocOwner && // Wait for y-indexedDB sync
|
|
178770
|
-
//
|
|
178771
|
-
(!ne || le.isIndexeddbSynced)),
|
|
178770
|
+
createDefaultTabIfMissing: !!(!z && !e && M.isDDocOwner && // Wait for y-indexedDB sync only while the doc is still untouched,
|
|
178771
|
+
// otherwise the first real edit can serialize before tab bootstrap completes.
|
|
178772
|
+
(!ne || le.isIndexeddbSynced || le.hasUserEdited)),
|
|
178772
178773
|
defaultTabId: (S = M.tabConfig) == null ? void 0 : S.defaultTabId,
|
|
178773
178774
|
shouldSyncActiveTab: !!(!z && !e && !re && M.isDDocOwner),
|
|
178774
178775
|
onVersionHistoryActiveTabChange: n == null ? void 0 : n.onActiveTabChange,
|
|
@@ -178855,7 +178856,7 @@ const Wze = { status: "idle" }, qze = (e) => {
|
|
|
178855
178856
|
ipfsImageFetchFn: a,
|
|
178856
178857
|
fetchV1ImageFn: l
|
|
178857
178858
|
}
|
|
178858
|
-
), [p, h] =
|
|
178859
|
+
), [p, h] = je(""), [f, g] = je(""), [m, b] = je(!0), [y, x] = je(!0), v = () => {
|
|
178859
178860
|
if (!e) return;
|
|
178860
178861
|
if ((p === null || p === "") && (f === "" || f === null)) {
|
|
178861
178862
|
c(Ze.NONE);
|
|
@@ -179676,7 +179677,7 @@ const l$e = ({
|
|
|
179676
179677
|
fetchV1ImageFn: m,
|
|
179677
179678
|
theme: b = "light"
|
|
179678
179679
|
}) => {
|
|
179679
|
-
const [y, x] =
|
|
179680
|
+
const [y, x] = je(!1), [v, k] = je(0), [w, D] = je(!0), { isNativeMobile: C } = Dl(), [A, R] = je(null), [T, _] = je(null), N = 50, [E, M] = je(
|
|
179680
179681
|
"forward"
|
|
179681
179682
|
), j = ad(
|
|
179682
179683
|
g == null ? void 0 : g.canvasBackground,
|
|
@@ -180071,7 +180072,7 @@ const l$e = ({
|
|
|
180071
180072
|
)
|
|
180072
180073
|
}
|
|
180073
180074
|
), d$e = "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", p$e = "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", h$e = () => {
|
|
180074
|
-
const [e, t] =
|
|
180075
|
+
const [e, t] = je("light"), n = () => {
|
|
180075
180076
|
const r = localStorage.getItem("theme");
|
|
180076
180077
|
return r || "light";
|
|
180077
180078
|
};
|
|
@@ -180141,7 +180142,7 @@ const l$e = ({
|
|
|
180141
180142
|
(z, $) => new Date($.createdAt).getTime() - new Date(z.createdAt).getTime()
|
|
180142
180143
|
), I = (z) => {
|
|
180143
180144
|
s(z), h && h !== z && d(null);
|
|
180144
|
-
}, [U, q] =
|
|
180145
|
+
}, [U, q] = je({
|
|
180145
180146
|
name: o,
|
|
180146
180147
|
isEns: !1
|
|
180147
180148
|
});
|
|
@@ -180476,7 +180477,7 @@ const l$e = ({
|
|
|
180476
180477
|
isCollabDocumentPublished: r,
|
|
180477
180478
|
disableInlineComment: o
|
|
180478
180479
|
}) => {
|
|
180479
|
-
const { comments: i, username: s, dropdownRef: a, setIsBubbleMenuSuppressed: l } = cl(), u = He(o || !1), [c, d] =
|
|
180480
|
+
const { comments: i, username: s, dropdownRef: a, setIsBubbleMenuSuppressed: l } = cl(), u = He(o || !1), [c, d] = je(!1);
|
|
180480
180481
|
Me(() => {
|
|
180481
180482
|
u.current = o || !1;
|
|
180482
180483
|
}, [o]), E1(a, (f) => {
|
|
@@ -180598,7 +180599,7 @@ const oJ = g1(() => /* @__PURE__ */ F.jsx("p", { className: "text-helper-text-sm
|
|
|
180598
180599
|
oJ.displayName = "ToCEmptyState";
|
|
180599
180600
|
const iJ = g1(
|
|
180600
180601
|
({ items: e = [], editor: t, setItems: n, orientation: r }) => {
|
|
180601
|
-
const [o, i] =
|
|
180602
|
+
const [o, i] = je(null), s = Yn("(max-width: 1280px)"), a = He(null), l = He(0), u = He(null), c = Dt(() => e.map((m) => ({
|
|
180602
180603
|
...m,
|
|
180603
180604
|
isActive: m.id === o
|
|
180604
180605
|
})), [e, o]), d = Se(() => {
|
|
@@ -180828,7 +180829,7 @@ const w$e = [
|
|
|
180828
180829
|
openPickerTrigger: r = 0,
|
|
180829
180830
|
disableEmoji: o
|
|
180830
180831
|
}) => {
|
|
180831
|
-
const [i, s] =
|
|
180832
|
+
const [i, s] = je(!1), a = He(null), l = He(null), [u, c] = je(!1), [d, p] = je({ top: 40, left: 10 }), h = Yn("(max-width: 1000px)", { defaultValue: !0 });
|
|
180832
180833
|
E1([a, l], (g) => {
|
|
180833
180834
|
a.current && // eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
180834
180835
|
// @ts-ignore
|
|
@@ -181180,7 +181181,7 @@ const j$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
181180
181181
|
onDelete: v,
|
|
181181
181182
|
isConnected: k = !0
|
|
181182
181183
|
}) => {
|
|
181183
|
-
const [w, D] =
|
|
181184
|
+
const [w, D] = je(!1), [C, A] = je(!1), [R, T] = je(0), [_, N] = je(t), E = He(_), M = He(null), j = He(!1);
|
|
181184
181185
|
Me(() => {
|
|
181185
181186
|
w || N(t);
|
|
181186
181187
|
}, [t, w]), Me(() => {
|
|
@@ -181367,7 +181368,7 @@ const j$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
181367
181368
|
), M$e = ({
|
|
181368
181369
|
item: e
|
|
181369
181370
|
}) => {
|
|
181370
|
-
const [t, n] =
|
|
181371
|
+
const [t, n] = je(!1), r = /* @__PURE__ */ F.jsxs(
|
|
181371
181372
|
"div",
|
|
181372
181373
|
{
|
|
181373
181374
|
"data-testid": `tab-menu-${e.id}`,
|
|
@@ -181499,7 +181500,7 @@ const j$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
181499
181500
|
}
|
|
181500
181501
|
) });
|
|
181501
181502
|
}, dJ = ({ onFocusMode: e } = {}) => {
|
|
181502
|
-
const [t, n] =
|
|
181503
|
+
const [t, n] = je(!1), r = Yn("(max-width: 1024px)");
|
|
181503
181504
|
Me(() => {
|
|
181504
181505
|
const i = (s) => {
|
|
181505
181506
|
s.metaKey && s.shiftKey && s.key.toLowerCase() === "f" && (s.preventDefault(), o());
|
|
@@ -181546,13 +181547,13 @@ const j$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
181546
181547
|
p($, { emoji: re });
|
|
181547
181548
|
}, w = rQ(
|
|
181548
181549
|
oQ(iQ, { activationConstraint: { distance: 5 } })
|
|
181549
|
-
), [D, C] =
|
|
181550
|
+
), [D, C] = je(null), A = Dt(
|
|
181550
181551
|
() => e.find(($) => $.id === t),
|
|
181551
181552
|
[e, t]
|
|
181552
181553
|
), R = Dt(
|
|
181553
181554
|
() => e.find(($) => $.id === D),
|
|
181554
181555
|
[e, D]
|
|
181555
|
-
), [T, _] =
|
|
181556
|
+
), [T, _] = je(null), [N, E] = je(!1), [M, j] = je({}), P = Se(
|
|
181556
181557
|
($) => $ === t ? M[$] ?? !1 : !1,
|
|
181557
181558
|
[t, M]
|
|
181558
181559
|
), I = Se(
|
|
@@ -181849,7 +181850,7 @@ const j$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
181849
181850
|
isFocusMode: m
|
|
181850
181851
|
}) => {
|
|
181851
181852
|
var Q;
|
|
181852
|
-
const [b, y] =
|
|
181853
|
+
const [b, y] = je(!1), [x, v] = je(null), [k, w] = je(!1), [D, C] = je(""), A = He(""), R = He(!1), T = He(null), _ = e.findIndex((Y) => Y.id === t), N = e.find((Y) => Y.id === t), E = e.length > 1, M = _ > 0, j = _ >= 0 && _ < e.length - 1;
|
|
181853
181854
|
Me(() => {
|
|
181854
181855
|
R.current = k;
|
|
181855
181856
|
}, [k]), Me(() => {
|
|
@@ -182542,7 +182543,7 @@ const j$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
182542
182543
|
fetchV1ImageFn: h,
|
|
182543
182544
|
isConnected: f
|
|
182544
182545
|
}) => {
|
|
182545
|
-
const [g, m] =
|
|
182546
|
+
const [g, m] = je(!1), [, b] = je(!1), { exportOptions: y } = dx({
|
|
182546
182547
|
editor: e,
|
|
182547
182548
|
onError: o,
|
|
182548
182549
|
ipfsImageUploadFn: i,
|
|
@@ -182725,14 +182726,14 @@ const j$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
182725
182726
|
ipfsImageFetchFn: ft,
|
|
182726
182727
|
fetchV1ImageFn: pt,
|
|
182727
182728
|
activeModel: rt,
|
|
182728
|
-
maxTokens:
|
|
182729
|
+
maxTokens: Be,
|
|
182729
182730
|
isAIAgentEnabled: Ie,
|
|
182730
182731
|
// Document styling object
|
|
182731
182732
|
documentStyling: We,
|
|
182732
182733
|
...lt
|
|
182733
182734
|
}, Xe) => {
|
|
182734
182735
|
var Z7;
|
|
182735
|
-
const { isFocusMode: Ve, toggleFocusMode: mt } = dJ({ onFocusMode: z }), [Ct, $t] =
|
|
182736
|
+
const { isFocusMode: Ve, toggleFocusMode: mt } = dJ({ onFocusMode: z }), [Ct, $t] = je(!1), [fn, En] = je(!1), Cn = He(null), gn = (() => {
|
|
182736
182737
|
if (!We)
|
|
182737
182738
|
return { canvas: void 0, background: void 0 };
|
|
182738
182739
|
const dt = {}, Nt = {}, sn = ce ?? "light";
|
|
@@ -182761,13 +182762,13 @@ const j$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
182761
182762
|
canvas: Object.keys(dt).length > 0 ? dt : void 0,
|
|
182762
182763
|
background: Object.keys(Nt).length > 0 ? Nt : void 0
|
|
182763
182764
|
};
|
|
182764
|
-
})(), jn = () => gn.canvas, ve = () => gn.background, Re = He(null), { isNativeMobile: nt, isIOS: gt } = Dl(), [Zt, tn] =
|
|
182765
|
+
})(), jn = () => gn.canvas, ve = () => gn.background, Re = He(null), { isNativeMobile: nt, isIOS: gt } = Dl(), [Zt, tn] = je(!1), Ut = He(null), Ot = (k == null ? void 0 : k.slice(0, 4)) || [], er = k ? Math.max(0, k.length - 4) : 0;
|
|
182765
182766
|
E1(Ut, () => {
|
|
182766
182767
|
tn(!1);
|
|
182767
182768
|
}), Me(() => {
|
|
182768
182769
|
k && k.length <= 4 && tn(!1);
|
|
182769
182770
|
}, [k]);
|
|
182770
|
-
const [et, we] =
|
|
182771
|
+
const [et, we] = je(!1), {
|
|
182771
182772
|
editor: Ae,
|
|
182772
182773
|
ref: it,
|
|
182773
182774
|
isContentLoading: Gt,
|
|
@@ -182831,7 +182832,7 @@ const j$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
182831
182832
|
onCopyHeadingLink: Ne,
|
|
182832
182833
|
isConnected: O,
|
|
182833
182834
|
activeModel: rt,
|
|
182834
|
-
maxTokens:
|
|
182835
|
+
maxTokens: Be,
|
|
182835
182836
|
isAIAgentEnabled: Ie,
|
|
182836
182837
|
isDDocOwner: xe,
|
|
182837
182838
|
tabConfig: Le,
|
|
@@ -183510,7 +183511,7 @@ const j$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
183510
183511
|
documentStyling: T,
|
|
183511
183512
|
theme: _
|
|
183512
183513
|
}, N) => {
|
|
183513
|
-
const [E, M] =
|
|
183514
|
+
const [E, M] = je(!1), j = He(null), P = (g == null ? void 0 : g.slice(0, 4)) || [], I = g ? Math.max(0, g.length - 4) : 0;
|
|
183514
183515
|
E1(j, () => {
|
|
183515
183516
|
M(!1);
|
|
183516
183517
|
}), Me(() => {
|
|
@@ -183860,7 +183861,7 @@ const j$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
183860
183861
|
"html",
|
|
183861
183862
|
"txt"
|
|
183862
183863
|
], V$e = (e) => e !== void 0 && q$e.includes(e), $He = (e) => {
|
|
183863
|
-
const t = He(null), n = He(!1), [r, o] =
|
|
183864
|
+
const t = He(null), n = He(!1), [r, o] = je(null), [i, s] = je(!1), a = W$e(e), { getEditor: l, setContent: u } = a, c = Se(
|
|
183864
183865
|
(A, R) => {
|
|
183865
183866
|
A && !A.isDestroyed && A.destroy(), R && !R.isDestroyed && R.destroy();
|
|
183866
183867
|
},
|
|
@@ -17,6 +17,7 @@ export declare const useYjsSetup: ({ onChange, enableIndexeddbSync, ddocId, coll
|
|
|
17
17
|
awareness: import('y-protocols/awareness.js').Awareness | null;
|
|
18
18
|
hasCollabContentInitialised: boolean;
|
|
19
19
|
isIndexeddbSynced: boolean;
|
|
20
|
+
hasUserEdited: boolean;
|
|
20
21
|
initialiseYjsIndexedDbProvider: () => Promise<void>;
|
|
21
22
|
refreshYjsIndexedDbProvider: () => Promise<void>;
|
|
22
23
|
flushPendingUpdate: () => void;
|
|
@@ -26,6 +26,7 @@ export declare const useDdocEditor: ({ isPreviewMode, initialContent, versionHis
|
|
|
26
26
|
isSyncing: boolean;
|
|
27
27
|
hasCollabContentInitialised: boolean;
|
|
28
28
|
isIndexeddbSynced: boolean;
|
|
29
|
+
hasUserEdited: boolean;
|
|
29
30
|
initialiseYjsIndexedDbProvider: () => Promise<void>;
|
|
30
31
|
flushPendingUpdate: () => void;
|
|
31
32
|
collabState: import('./types').CollabState;
|