@fileverse-dev/ddoc 4.0.1 → 4.0.2-accessibility-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 Xne = Object.defineProperty;
2
2
  var Yne = (e, t, n) => t in e ? Xne(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var Ve = (e, t, n) => Yne(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  import * as Un from "react";
5
- import Tt, { useContext as gf, useState as Ne, useLayoutEffect as Ba, useEffect as _e, useDebugValue as YL, createContext as mf, createRef as Zne, memo as bf, createElement as _h, version as u_, useRef as Se, forwardRef as Yn, useMemo as wt, useImperativeHandle as k8, useCallback as Ae, Fragment as Jne, Component as Qne, cloneElement as ZL, useId as ere, useReducer as JL, lazy as QL, Suspense as c_ } from "react";
5
+ import Tt, { useContext as gf, useState as Ne, useLayoutEffect as Ba, useEffect as _e, useDebugValue as YL, createContext as mf, createRef as Zne, memo as bf, createElement as _h, version as u_, useRef as Se, forwardRef as Yn, useMemo as wt, useImperativeHandle as k8, useCallback as Ce, Fragment as Jne, Component as Qne, cloneElement as ZL, useId as ere, useReducer as JL, lazy as QL, Suspense as c_ } from "react";
6
6
  import eU, { flushSync as tre, createPortal as yf } from "react-dom";
7
7
  import { Drawer as tU, DrawerContent as nre, DrawerHeader as rre, DrawerTitle as ore, DrawerClose as ire, LucideIcon as Pe, Button as Nt, TextField as Ua, useTheme as sre, DynamicDropdown as Sr, Tooltip as hn, IconButton as qt, Dialog as are, DialogContent as lre, cn as Ge, DialogHeader as ure, DialogTitle as cre, DialogFooter as dre, DialogClose as pre, Skeleton as Tr, Avatar as ra, PopoverClose as Px, TextAreaFieldV2 as oc, DynamicModal as E8, Select as Md, SelectTrigger as Od, SelectValue as Sh, SelectContent as Id, SelectItem as Rd, DynamicDropdownV2 as zx, Popover as Th, PopoverTrigger as w1, PopoverContent as jh, Divider as Bb, SelectGroup as nU, SelectLabel as hre, Toggle as fre, toast as C8, Checkbox as gre, DrawerTrigger as d_, AnimatedLoader as mre, Label as bre, DynamicDrawerV2 as yre, BottomDrawer as xre, ButtonGroup as vre, UltimateIcons as Fre, PopoverAnchor as wre, Tag as Nb, TagInput as rU } from "@fileverse/ui";
8
8
  import { createPublicClient as Dre, http as kre, isAddress as Ere, isHex as Cre } from "viem";
@@ -93,8 +93,8 @@ function Hre() {
93
93
  {
94
94
  var pt = b.ReactDebugCurrentFrame, Qt = pt.getStackAddendum();
95
95
  Qt !== "" && (Ie += "%s", et = et.concat([Qt]));
96
- var rn = et.map(function(bt) {
97
- return String(bt);
96
+ var rn = et.map(function(yt) {
97
+ return String(yt);
98
98
  });
99
99
  rn.unshift("Warning: " + Ie), Function.prototype.apply.call(console[he], console, rn);
100
100
  }
@@ -153,9 +153,9 @@ function Hre() {
153
153
  var pt = he.displayName || null;
154
154
  return pt !== null ? pt : M(he.type) || "Memo";
155
155
  case p: {
156
- var Qt = he, rn = Qt._payload, bt = Qt._init;
156
+ var Qt = he, rn = Qt._payload, yt = Qt._init;
157
157
  try {
158
- return M(bt(rn));
158
+ return M(yt(rn));
159
159
  } catch {
160
160
  return null;
161
161
  }
@@ -260,27 +260,27 @@ function Hre() {
260
260
  rn = J.current, J.current = null, oe();
261
261
  try {
262
262
  if (Ie) {
263
- var bt = function() {
263
+ var yt = function() {
264
264
  throw Error();
265
265
  };
266
- if (Object.defineProperty(bt.prototype, "props", {
266
+ if (Object.defineProperty(yt.prototype, "props", {
267
267
  set: function() {
268
268
  throw Error();
269
269
  }
270
270
  }), typeof Reflect == "object" && Reflect.construct) {
271
271
  try {
272
- Reflect.construct(bt, []);
272
+ Reflect.construct(yt, []);
273
273
  } catch (ot) {
274
274
  pt = ot;
275
275
  }
276
- Reflect.construct(he, [], bt);
276
+ Reflect.construct(he, [], yt);
277
277
  } else {
278
278
  try {
279
- bt.call();
279
+ yt.call();
280
280
  } catch (ot) {
281
281
  pt = ot;
282
282
  }
283
- he.call(bt.prototype);
283
+ he.call(yt.prototype);
284
284
  }
285
285
  } else {
286
286
  try {
@@ -362,19 +362,19 @@ function Hre() {
362
362
  function ye(he, Ie, et, pt, Qt) {
363
363
  {
364
364
  var rn = Function.call.bind(de);
365
- for (var bt in he)
366
- if (rn(he, bt)) {
365
+ for (var yt in he)
366
+ if (rn(he, yt)) {
367
367
  var jt = void 0;
368
368
  try {
369
- if (typeof he[bt] != "function") {
370
- var kn = Error((pt || "React class") + ": " + et + " type `" + bt + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof he[bt] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
369
+ if (typeof he[yt] != "function") {
370
+ var kn = Error((pt || "React class") + ": " + et + " type `" + yt + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof he[yt] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
371
371
  throw kn.name = "Invariant Violation", kn;
372
372
  }
373
- jt = he[bt](Ie, bt, pt, et, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
373
+ jt = he[yt](Ie, yt, pt, et, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
374
374
  } catch (wn) {
375
375
  jt = wn;
376
376
  }
377
- jt && !(jt instanceof Error) && (se(Qt), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", pt || "React class", et, bt, typeof jt), se(null)), jt instanceof Error && !(jt.message in V) && (V[jt.message] = !0, se(Qt), y("Failed %s type: %s", et, jt.message), se(null));
377
+ jt && !(jt instanceof Error) && (se(Qt), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", pt || "React class", et, yt, typeof jt), se(null)), jt instanceof Error && !(jt.message in V) && (V[jt.message] = !0, se(Qt), y("Failed %s type: %s", et, jt.message), se(null));
378
378
  }
379
379
  }
380
380
  }
@@ -449,7 +449,7 @@ function Hre() {
449
449
  });
450
450
  }
451
451
  }
452
- var Oe = function(he, Ie, et, pt, Qt, rn, bt) {
452
+ var Oe = function(he, Ie, et, pt, Qt, rn, yt) {
453
453
  var jt = {
454
454
  // This tag allows us to uniquely identify this as a React Element
455
455
  $$typeof: t,
@@ -457,7 +457,7 @@ function Hre() {
457
457
  type: he,
458
458
  key: Ie,
459
459
  ref: et,
460
- props: bt,
460
+ props: yt,
461
461
  // Record the component responsible for creating this element.
462
462
  _owner: rn
463
463
  };
@@ -480,29 +480,29 @@ function Hre() {
480
480
  };
481
481
  function ze(he, Ie, et, pt, Qt) {
482
482
  {
483
- var rn, bt = {}, jt = null, kn = null;
483
+ var rn, yt = {}, jt = null, kn = null;
484
484
  et !== void 0 && (I(et), jt = "" + et), Ee(Ie) && (I(Ie.key), jt = "" + Ie.key), ve(Ie) && (kn = Ie.ref, De(Ie, Qt));
485
485
  for (rn in Ie)
486
- de.call(Ie, rn) && !Q.hasOwnProperty(rn) && (bt[rn] = Ie[rn]);
486
+ de.call(Ie, rn) && !Q.hasOwnProperty(rn) && (yt[rn] = Ie[rn]);
487
487
  if (he && he.defaultProps) {
488
488
  var wn = he.defaultProps;
489
489
  for (rn in wn)
490
- bt[rn] === void 0 && (bt[rn] = wn[rn]);
490
+ yt[rn] === void 0 && (yt[rn] = wn[rn]);
491
491
  }
492
492
  if (jt || kn) {
493
493
  var st = typeof he == "function" ? he.displayName || he.name || "Unknown" : he;
494
- jt && fe(bt, st), kn && Be(bt, st);
494
+ jt && fe(yt, st), kn && Be(yt, st);
495
495
  }
496
- return Oe(he, jt, kn, Qt, pt, W.current, bt);
496
+ return Oe(he, jt, kn, Qt, pt, W.current, yt);
497
497
  }
498
498
  }
499
- var qe = b.ReactCurrentOwner, ft = b.ReactDebugCurrentFrame;
499
+ var qe = b.ReactCurrentOwner, gt = b.ReactDebugCurrentFrame;
500
500
  function at(he) {
501
501
  if (he) {
502
502
  var Ie = he._owner, et = re(he.type, he._source, Ie ? Ie.type : null);
503
- ft.setExtraStackFrame(et);
503
+ gt.setExtraStackFrame(et);
504
504
  } else
505
- ft.setExtraStackFrame(null);
505
+ gt.setExtraStackFrame(null);
506
506
  }
507
507
  var Mt;
508
508
  Mt = !1;
@@ -564,12 +564,12 @@ Check the top-level render call using <` + et + ">.");
564
564
  else if (he) {
565
565
  var Qt = m(he);
566
566
  if (typeof Qt == "function" && Qt !== he.entries)
567
- for (var rn = Qt.call(he), bt; !(bt = rn.next()).done; )
568
- gn(bt.value) && ut(bt.value, Ie);
567
+ for (var rn = Qt.call(he), yt; !(yt = rn.next()).done; )
568
+ gn(yt.value) && ut(yt.value, Ie);
569
569
  }
570
570
  }
571
571
  }
572
- function gt(he) {
572
+ function mt(he) {
573
573
  {
574
574
  var Ie = he.type;
575
575
  if (Ie == null || typeof Ie == "string")
@@ -609,8 +609,8 @@ Check the top-level render call using <` + et + ">.");
609
609
  var zt = {};
610
610
  function dt(he, Ie, et, pt, Qt, rn) {
611
611
  {
612
- var bt = N(he);
613
- if (!bt) {
612
+ var yt = N(he);
613
+ if (!yt) {
614
614
  var jt = "";
615
615
  (he === void 0 || typeof he == "object" && he !== null && Object.keys(he).length === 0) && (jt += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
616
616
  var kn = Le();
@@ -621,7 +621,7 @@ Check the top-level render call using <` + et + ">.");
621
621
  var st = ze(he, Ie, et, Qt, rn);
622
622
  if (st == null)
623
623
  return st;
624
- if (bt) {
624
+ if (yt) {
625
625
  var Fe = Ie.children;
626
626
  if (Fe !== void 0)
627
627
  if (pt)
@@ -648,7 +648,7 @@ React keys must be passed directly to JSX without using spread:
648
648
  <%s key={someKey} {...props} />`, ht, Re, Dt, Re), zt[Re + ht] = !0;
649
649
  }
650
650
  }
651
- return he === r ? xt(st) : gt(st), st;
651
+ return he === r ? xt(st) : mt(st), st;
652
652
  }
653
653
  }
654
654
  function vt(he, Ie, et) {
@@ -17974,7 +17974,7 @@ function nde(e) {
17974
17974
  });
17975
17975
  return M1(() => {
17976
17976
  t.current = e;
17977
- }, [e]), Ae((n) => {
17977
+ }, [e]), Ce((n) => {
17978
17978
  var r;
17979
17979
  return (r = t.current) == null ? void 0 : r.call(t, n);
17980
17980
  }, [t]);
@@ -18203,7 +18203,7 @@ function ade({
18203
18203
  itemCount: i,
18204
18204
  itemProps: s,
18205
18205
  itemSize: f
18206
- }), m = Ae(
18206
+ }), m = Ce(
18207
18207
  (N) => g.get(N),
18208
18208
  [g]
18209
18209
  ), [b, y] = Ne(
@@ -18225,14 +18225,14 @@ function ade({
18225
18225
  startIndexOverscan: Math.min(i - 1, b.startIndexOverscan),
18226
18226
  stopIndexVisible: Math.min(i - 1, b.stopIndexVisible),
18227
18227
  stopIndexOverscan: Math.min(i - 1, b.stopIndexOverscan)
18228
- }, k = Ae(
18228
+ }, k = Ce(
18229
18229
  () => Gz({
18230
18230
  cachedBounds: g,
18231
18231
  itemCount: i,
18232
18232
  itemSize: f
18233
18233
  }),
18234
18234
  [g, i, f]
18235
- ), E = Ae(
18235
+ ), E = Ce(
18236
18236
  (N) => {
18237
18237
  const O = z4({
18238
18238
  containerElement: e,
@@ -19741,7 +19741,7 @@ function ipe(e, t, n, r, o, i, s) {
19741
19741
  slideLooper: Oe,
19742
19742
  dragHandler: ze,
19743
19743
  animation: qe,
19744
- eventHandler: ft,
19744
+ eventHandler: gt,
19745
19745
  scrollBounds: at,
19746
19746
  options: {
19747
19747
  loop: Mt
@@ -19750,7 +19750,7 @@ function ipe(e, t, n, r, o, i, s) {
19750
19750
  const At = me.settled(), Le = !at.shouldConstrain(), _t = Mt ? At : At && Le, Qe = _t && !ze.pointerDown();
19751
19751
  Qe && qe.stop();
19752
19752
  const ut = Ee.get() * gn + fe.get() * (1 - gn);
19753
- De.set(ut), Mt && (Be.loop(me.direction()), Oe.loop()), ve.to(De.get()), Qe && ft.emit("settle"), _t || ft.emit("scroll");
19753
+ De.set(ut), Mt && (Be.loop(me.direction()), Oe.loop()), ve.to(De.get()), Qe && gt.emit("settle"), _t || gt.emit("scroll");
19754
19754
  }, B = Ide(r, o, () => Y(ae), (me) => pe(ae, me)), re = 0.68, de = le[Z.get()], V = B0(de), te = B0(de), se = B0(de), ye = B0(de), ke = Hde(V, se, te, ye, p, re), ge = Zde(d, le, oe, G, ye), ie = Jde(B, Z, T, ke, ge, ye, s), ce = Gde(G), be = L1(), I = npe(t, n, s, g), {
19755
19755
  slideRegistry: W
19756
19756
  } = Yde(j, y, le, J, L, X), Q = Qde(e, n, W, ie, ke, be, s, D), ae = {
@@ -20001,7 +20001,7 @@ function Gb(e, t, n) {
20001
20001
  }
20002
20002
  Gb.globalOptions = void 0;
20003
20003
  function w9(e = {}, t = []) {
20004
- const n = Se(e), r = Se(t), [o, i] = Ne(), [s, a] = Ne(), l = Ae(() => {
20004
+ const n = Se(e), r = Se(t), [o, i] = Ne(), [s, a] = Ne(), l = Ce(() => {
20005
20005
  o && o.reInit(n.current, r.current);
20006
20006
  }, [o]);
20007
20007
  return _e(() => {
@@ -20041,13 +20041,13 @@ const n$ = Yn(
20041
20041
  axis: e === "horizontal" ? "x" : "y"
20042
20042
  },
20043
20043
  r
20044
- ), [c, d] = Ne(!1), [p, h] = Ne(!1), f = Ae((y) => {
20044
+ ), [c, d] = Ne(!1), [p, h] = Ne(!1), f = Ce((y) => {
20045
20045
  y && (d(y.canScrollPrev()), h(y.canScrollNext()));
20046
- }, []), g = Ae(() => {
20046
+ }, []), g = Ce(() => {
20047
20047
  u == null || u.scrollPrev();
20048
- }, [u]), m = Ae(() => {
20048
+ }, [u]), m = Ce(() => {
20049
20049
  u == null || u.scrollNext();
20050
- }, [u]), b = Ae(
20050
+ }, [u]), b = Ce(
20051
20051
  (y) => {
20052
20052
  y.key === "ArrowLeft" ? (y.preventDefault(), g()) : y.key === "ArrowRight" && (y.preventDefault(), m());
20053
20053
  },
@@ -20127,14 +20127,14 @@ const Q5 = Yn(
20127
20127
  );
20128
20128
  Q5.displayName = "CarouselItem";
20129
20129
  const o$ = Yn(({ index: e, className: t, ...n }, r) => {
20130
- const { api: o } = $g(), [i, s] = Ne(0), [, a] = Ne([]), l = Ae(
20130
+ const { api: o } = $g(), [i, s] = Ne(0), [, a] = Ne([]), l = Ce(
20131
20131
  (p) => {
20132
20132
  o && o.scrollTo(p);
20133
20133
  },
20134
20134
  [o]
20135
- ), u = Ae((p) => {
20135
+ ), u = Ce((p) => {
20136
20136
  p && a(p.scrollSnapList());
20137
- }, []), c = Ae((p) => {
20137
+ }, []), c = Ce((p) => {
20138
20138
  p && s(p.selectedScrollSnap());
20139
20139
  }, []);
20140
20140
  _e(() => {
@@ -20212,7 +20212,7 @@ function s$(e, t, n, r) {
20212
20212
  }, [e, n, r]);
20213
20213
  }
20214
20214
  function fpe() {
20215
- const [e, t] = Ne(null), n = Ae(async (r) => {
20215
+ const [e, t] = Ne(null), n = Ce(async (r) => {
20216
20216
  if (!(navigator != null && navigator.clipboard))
20217
20217
  return console.warn("Clipboard not supported"), !1;
20218
20218
  try {
@@ -25606,7 +25606,7 @@ function z(e, t, n, r, o, i) {
25606
25606
  replace: r
25607
25607
  }, i && r && (Wn[e][r] = Wn[e][o]);
25608
25608
  }
25609
- var q = "math", He = "text", ne = "main", xe = "ams", Qn = "accent-token", mt = "bin", Yo = "close", Df = "inner", It = "mathord", Cr = "op-token", Vi = "open", f3 = "punct", we = "rel", Ql = "spacing", Ce = "textord";
25609
+ var q = "math", He = "text", ne = "main", xe = "ams", Qn = "accent-token", bt = "bin", Yo = "close", Df = "inner", It = "mathord", Cr = "op-token", Vi = "open", f3 = "punct", we = "rel", Ql = "spacing", Ae = "textord";
25610
25610
  z(q, ne, we, "≡", "\\equiv", !0);
25611
25611
  z(q, ne, we, "≺", "\\prec", !0);
25612
25612
  z(q, ne, we, "≻", "\\succ", !0);
@@ -25633,52 +25633,52 @@ z(q, ne, we, "⊣", "\\dashv", !0);
25633
25633
  z(q, ne, we, "∋", "\\owns");
25634
25634
  z(q, ne, f3, ".", "\\ldotp");
25635
25635
  z(q, ne, f3, "⋅", "\\cdotp");
25636
- z(q, ne, Ce, "#", "\\#");
25637
- z(He, ne, Ce, "#", "\\#");
25638
- z(q, ne, Ce, "&", "\\&");
25639
- z(He, ne, Ce, "&", "\\&");
25640
- z(q, ne, Ce, "ℵ", "\\aleph", !0);
25641
- z(q, ne, Ce, "∀", "\\forall", !0);
25642
- z(q, ne, Ce, "ℏ", "\\hbar", !0);
25643
- z(q, ne, Ce, "∃", "\\exists", !0);
25644
- z(q, ne, Ce, "∇", "\\nabla", !0);
25645
- z(q, ne, Ce, "♭", "\\flat", !0);
25646
- z(q, ne, Ce, "ℓ", "\\ell", !0);
25647
- z(q, ne, Ce, "♮", "\\natural", !0);
25648
- z(q, ne, Ce, "♣", "\\clubsuit", !0);
25649
- z(q, ne, Ce, "℘", "\\wp", !0);
25650
- z(q, ne, Ce, "♯", "\\sharp", !0);
25651
- z(q, ne, Ce, "♢", "\\diamondsuit", !0);
25652
- z(q, ne, Ce, "ℜ", "\\Re", !0);
25653
- z(q, ne, Ce, "♡", "\\heartsuit", !0);
25654
- z(q, ne, Ce, "ℑ", "\\Im", !0);
25655
- z(q, ne, Ce, "♠", "\\spadesuit", !0);
25656
- z(q, ne, Ce, "§", "\\S", !0);
25657
- z(He, ne, Ce, "§", "\\S");
25658
- z(q, ne, Ce, "¶", "\\P", !0);
25659
- z(He, ne, Ce, "¶", "\\P");
25660
- z(q, ne, Ce, "†", "\\dag");
25661
- z(He, ne, Ce, "†", "\\dag");
25662
- z(He, ne, Ce, "†", "\\textdagger");
25663
- z(q, ne, Ce, "‡", "\\ddag");
25664
- z(He, ne, Ce, "‡", "\\ddag");
25665
- z(He, ne, Ce, "‡", "\\textdaggerdbl");
25636
+ z(q, ne, Ae, "#", "\\#");
25637
+ z(He, ne, Ae, "#", "\\#");
25638
+ z(q, ne, Ae, "&", "\\&");
25639
+ z(He, ne, Ae, "&", "\\&");
25640
+ z(q, ne, Ae, "ℵ", "\\aleph", !0);
25641
+ z(q, ne, Ae, "∀", "\\forall", !0);
25642
+ z(q, ne, Ae, "ℏ", "\\hbar", !0);
25643
+ z(q, ne, Ae, "∃", "\\exists", !0);
25644
+ z(q, ne, Ae, "∇", "\\nabla", !0);
25645
+ z(q, ne, Ae, "♭", "\\flat", !0);
25646
+ z(q, ne, Ae, "ℓ", "\\ell", !0);
25647
+ z(q, ne, Ae, "♮", "\\natural", !0);
25648
+ z(q, ne, Ae, "♣", "\\clubsuit", !0);
25649
+ z(q, ne, Ae, "℘", "\\wp", !0);
25650
+ z(q, ne, Ae, "♯", "\\sharp", !0);
25651
+ z(q, ne, Ae, "♢", "\\diamondsuit", !0);
25652
+ z(q, ne, Ae, "ℜ", "\\Re", !0);
25653
+ z(q, ne, Ae, "♡", "\\heartsuit", !0);
25654
+ z(q, ne, Ae, "ℑ", "\\Im", !0);
25655
+ z(q, ne, Ae, "♠", "\\spadesuit", !0);
25656
+ z(q, ne, Ae, "§", "\\S", !0);
25657
+ z(He, ne, Ae, "§", "\\S");
25658
+ z(q, ne, Ae, "¶", "\\P", !0);
25659
+ z(He, ne, Ae, "¶", "\\P");
25660
+ z(q, ne, Ae, "†", "\\dag");
25661
+ z(He, ne, Ae, "†", "\\dag");
25662
+ z(He, ne, Ae, "†", "\\textdagger");
25663
+ z(q, ne, Ae, "‡", "\\ddag");
25664
+ z(He, ne, Ae, "‡", "\\ddag");
25665
+ z(He, ne, Ae, "‡", "\\textdaggerdbl");
25666
25666
  z(q, ne, Yo, "⎱", "\\rmoustache", !0);
25667
25667
  z(q, ne, Vi, "⎰", "\\lmoustache", !0);
25668
25668
  z(q, ne, Yo, "⟯", "\\rgroup", !0);
25669
25669
  z(q, ne, Vi, "⟮", "\\lgroup", !0);
25670
- z(q, ne, mt, "∓", "\\mp", !0);
25671
- z(q, ne, mt, "⊖", "\\ominus", !0);
25672
- z(q, ne, mt, "⊎", "\\uplus", !0);
25673
- z(q, ne, mt, "⊓", "\\sqcap", !0);
25674
- z(q, ne, mt, "∗", "\\ast");
25675
- z(q, ne, mt, "⊔", "\\sqcup", !0);
25676
- z(q, ne, mt, "◯", "\\bigcirc", !0);
25677
- z(q, ne, mt, "∙", "\\bullet", !0);
25678
- z(q, ne, mt, "‡", "\\ddagger");
25679
- z(q, ne, mt, "≀", "\\wr", !0);
25680
- z(q, ne, mt, "⨿", "\\amalg");
25681
- z(q, ne, mt, "&", "\\And");
25670
+ z(q, ne, bt, "∓", "\\mp", !0);
25671
+ z(q, ne, bt, "⊖", "\\ominus", !0);
25672
+ z(q, ne, bt, "⊎", "\\uplus", !0);
25673
+ z(q, ne, bt, "⊓", "\\sqcap", !0);
25674
+ z(q, ne, bt, "∗", "\\ast");
25675
+ z(q, ne, bt, "⊔", "\\sqcup", !0);
25676
+ z(q, ne, bt, "◯", "\\bigcirc", !0);
25677
+ z(q, ne, bt, "∙", "\\bullet", !0);
25678
+ z(q, ne, bt, "‡", "\\ddagger");
25679
+ z(q, ne, bt, "≀", "\\wr", !0);
25680
+ z(q, ne, bt, "⨿", "\\amalg");
25681
+ z(q, ne, bt, "&", "\\And");
25682
25682
  z(q, ne, we, "⟵", "\\longleftarrow", !0);
25683
25683
  z(q, ne, we, "⇐", "\\Leftarrow", !0);
25684
25684
  z(q, ne, we, "⟸", "\\Longleftarrow", !0);
@@ -25752,8 +25752,8 @@ z(q, xe, we, "⊮", "\\nVdash", !0);
25752
25752
  z(q, xe, we, "⪵", "\\precneqq", !0);
25753
25753
  z(q, xe, we, "⪶", "\\succneqq", !0);
25754
25754
  z(q, xe, we, "", "\\@nsubseteqq");
25755
- z(q, xe, mt, "⊴", "\\unlhd");
25756
- z(q, xe, mt, "⊵", "\\unrhd");
25755
+ z(q, xe, bt, "⊴", "\\unlhd");
25756
+ z(q, xe, bt, "⊵", "\\unrhd");
25757
25757
  z(q, xe, we, "↚", "\\nleftarrow", !0);
25758
25758
  z(q, xe, we, "↛", "\\nrightarrow", !0);
25759
25759
  z(q, xe, we, "⇍", "\\nLeftarrow", !0);
@@ -25761,41 +25761,41 @@ z(q, xe, we, "⇏", "\\nRightarrow", !0);
25761
25761
  z(q, xe, we, "↮", "\\nleftrightarrow", !0);
25762
25762
  z(q, xe, we, "⇎", "\\nLeftrightarrow", !0);
25763
25763
  z(q, xe, we, "△", "\\vartriangle");
25764
- z(q, xe, Ce, "ℏ", "\\hslash");
25765
- z(q, xe, Ce, "▽", "\\triangledown");
25766
- z(q, xe, Ce, "◊", "\\lozenge");
25767
- z(q, xe, Ce, "Ⓢ", "\\circledS");
25768
- z(q, xe, Ce, "®", "\\circledR");
25769
- z(He, xe, Ce, "®", "\\circledR");
25770
- z(q, xe, Ce, "∡", "\\measuredangle", !0);
25771
- z(q, xe, Ce, "∄", "\\nexists");
25772
- z(q, xe, Ce, "℧", "\\mho");
25773
- z(q, xe, Ce, "Ⅎ", "\\Finv", !0);
25774
- z(q, xe, Ce, "⅁", "\\Game", !0);
25775
- z(q, xe, Ce, "‵", "\\backprime");
25776
- z(q, xe, Ce, "▲", "\\blacktriangle");
25777
- z(q, xe, Ce, "▼", "\\blacktriangledown");
25778
- z(q, xe, Ce, "■", "\\blacksquare");
25779
- z(q, xe, Ce, "⧫", "\\blacklozenge");
25780
- z(q, xe, Ce, "★", "\\bigstar");
25781
- z(q, xe, Ce, "∢", "\\sphericalangle", !0);
25782
- z(q, xe, Ce, "∁", "\\complement", !0);
25783
- z(q, xe, Ce, "ð", "\\eth", !0);
25784
- z(He, ne, Ce, "ð", "ð");
25785
- z(q, xe, Ce, "╱", "\\diagup");
25786
- z(q, xe, Ce, "╲", "\\diagdown");
25787
- z(q, xe, Ce, "□", "\\square");
25788
- z(q, xe, Ce, "□", "\\Box");
25789
- z(q, xe, Ce, "◊", "\\Diamond");
25790
- z(q, xe, Ce, "¥", "\\yen", !0);
25791
- z(He, xe, Ce, "¥", "\\yen", !0);
25792
- z(q, xe, Ce, "✓", "\\checkmark", !0);
25793
- z(He, xe, Ce, "✓", "\\checkmark");
25794
- z(q, xe, Ce, "ℶ", "\\beth", !0);
25795
- z(q, xe, Ce, "ℸ", "\\daleth", !0);
25796
- z(q, xe, Ce, "ℷ", "\\gimel", !0);
25797
- z(q, xe, Ce, "ϝ", "\\digamma", !0);
25798
- z(q, xe, Ce, "ϰ", "\\varkappa");
25764
+ z(q, xe, Ae, "ℏ", "\\hslash");
25765
+ z(q, xe, Ae, "▽", "\\triangledown");
25766
+ z(q, xe, Ae, "◊", "\\lozenge");
25767
+ z(q, xe, Ae, "Ⓢ", "\\circledS");
25768
+ z(q, xe, Ae, "®", "\\circledR");
25769
+ z(He, xe, Ae, "®", "\\circledR");
25770
+ z(q, xe, Ae, "∡", "\\measuredangle", !0);
25771
+ z(q, xe, Ae, "∄", "\\nexists");
25772
+ z(q, xe, Ae, "℧", "\\mho");
25773
+ z(q, xe, Ae, "Ⅎ", "\\Finv", !0);
25774
+ z(q, xe, Ae, "⅁", "\\Game", !0);
25775
+ z(q, xe, Ae, "‵", "\\backprime");
25776
+ z(q, xe, Ae, "▲", "\\blacktriangle");
25777
+ z(q, xe, Ae, "▼", "\\blacktriangledown");
25778
+ z(q, xe, Ae, "■", "\\blacksquare");
25779
+ z(q, xe, Ae, "⧫", "\\blacklozenge");
25780
+ z(q, xe, Ae, "★", "\\bigstar");
25781
+ z(q, xe, Ae, "∢", "\\sphericalangle", !0);
25782
+ z(q, xe, Ae, "∁", "\\complement", !0);
25783
+ z(q, xe, Ae, "ð", "\\eth", !0);
25784
+ z(He, ne, Ae, "ð", "ð");
25785
+ z(q, xe, Ae, "╱", "\\diagup");
25786
+ z(q, xe, Ae, "╲", "\\diagdown");
25787
+ z(q, xe, Ae, "□", "\\square");
25788
+ z(q, xe, Ae, "□", "\\Box");
25789
+ z(q, xe, Ae, "◊", "\\Diamond");
25790
+ z(q, xe, Ae, "¥", "\\yen", !0);
25791
+ z(He, xe, Ae, "¥", "\\yen", !0);
25792
+ z(q, xe, Ae, "✓", "\\checkmark", !0);
25793
+ z(He, xe, Ae, "✓", "\\checkmark");
25794
+ z(q, xe, Ae, "ℶ", "\\beth", !0);
25795
+ z(q, xe, Ae, "ℸ", "\\daleth", !0);
25796
+ z(q, xe, Ae, "ℷ", "\\gimel", !0);
25797
+ z(q, xe, Ae, "ϝ", "\\digamma", !0);
25798
+ z(q, xe, Ae, "ϰ", "\\varkappa");
25799
25799
  z(q, xe, Vi, "┌", "\\@ulcorner", !0);
25800
25800
  z(q, xe, Yo, "┐", "\\@urcorner", !0);
25801
25801
  z(q, xe, Vi, "└", "\\@llcorner", !0);
@@ -25806,7 +25806,7 @@ z(q, xe, we, "⪕", "\\eqslantless", !0);
25806
25806
  z(q, xe, we, "≲", "\\lesssim", !0);
25807
25807
  z(q, xe, we, "⪅", "\\lessapprox", !0);
25808
25808
  z(q, xe, we, "≊", "\\approxeq", !0);
25809
- z(q, xe, mt, "⋖", "\\lessdot");
25809
+ z(q, xe, bt, "⋖", "\\lessdot");
25810
25810
  z(q, xe, we, "⋘", "\\lll", !0);
25811
25811
  z(q, xe, we, "≶", "\\lessgtr", !0);
25812
25812
  z(q, xe, we, "⋚", "\\lesseqgtr", !0);
@@ -25836,7 +25836,7 @@ z(q, xe, we, "⩾", "\\geqslant", !0);
25836
25836
  z(q, xe, we, "⪖", "\\eqslantgtr", !0);
25837
25837
  z(q, xe, we, "≳", "\\gtrsim", !0);
25838
25838
  z(q, xe, we, "⪆", "\\gtrapprox", !0);
25839
- z(q, xe, mt, "⋗", "\\gtrdot");
25839
+ z(q, xe, bt, "⋗", "\\gtrdot");
25840
25840
  z(q, xe, we, "⋙", "\\ggg", !0);
25841
25841
  z(q, xe, we, "≷", "\\gtrless", !0);
25842
25842
  z(q, xe, we, "⋛", "\\gtreqless", !0);
@@ -25868,32 +25868,32 @@ z(q, xe, we, "▶", "\\blacktriangleright");
25868
25868
  z(q, xe, we, "∵", "\\because", !0);
25869
25869
  z(q, xe, we, "⋘", "\\llless");
25870
25870
  z(q, xe, we, "⋙", "\\gggtr");
25871
- z(q, xe, mt, "⊲", "\\lhd");
25872
- z(q, xe, mt, "⊳", "\\rhd");
25871
+ z(q, xe, bt, "⊲", "\\lhd");
25872
+ z(q, xe, bt, "⊳", "\\rhd");
25873
25873
  z(q, xe, we, "≂", "\\eqsim", !0);
25874
25874
  z(q, ne, we, "⋈", "\\Join");
25875
25875
  z(q, xe, we, "≑", "\\Doteq", !0);
25876
- z(q, xe, mt, "∔", "\\dotplus", !0);
25877
- z(q, xe, mt, "∖", "\\smallsetminus");
25878
- z(q, xe, mt, "⋒", "\\Cap", !0);
25879
- z(q, xe, mt, "⋓", "\\Cup", !0);
25880
- z(q, xe, mt, "⩞", "\\doublebarwedge", !0);
25881
- z(q, xe, mt, "⊟", "\\boxminus", !0);
25882
- z(q, xe, mt, "⊞", "\\boxplus", !0);
25883
- z(q, xe, mt, "⋇", "\\divideontimes", !0);
25884
- z(q, xe, mt, "⋉", "\\ltimes", !0);
25885
- z(q, xe, mt, "⋊", "\\rtimes", !0);
25886
- z(q, xe, mt, "⋋", "\\leftthreetimes", !0);
25887
- z(q, xe, mt, "⋌", "\\rightthreetimes", !0);
25888
- z(q, xe, mt, "⋏", "\\curlywedge", !0);
25889
- z(q, xe, mt, "⋎", "\\curlyvee", !0);
25890
- z(q, xe, mt, "⊝", "\\circleddash", !0);
25891
- z(q, xe, mt, "⊛", "\\circledast", !0);
25892
- z(q, xe, mt, "⋅", "\\centerdot");
25893
- z(q, xe, mt, "⊺", "\\intercal", !0);
25894
- z(q, xe, mt, "⋒", "\\doublecap");
25895
- z(q, xe, mt, "⋓", "\\doublecup");
25896
- z(q, xe, mt, "⊠", "\\boxtimes", !0);
25876
+ z(q, xe, bt, "∔", "\\dotplus", !0);
25877
+ z(q, xe, bt, "∖", "\\smallsetminus");
25878
+ z(q, xe, bt, "⋒", "\\Cap", !0);
25879
+ z(q, xe, bt, "⋓", "\\Cup", !0);
25880
+ z(q, xe, bt, "⩞", "\\doublebarwedge", !0);
25881
+ z(q, xe, bt, "⊟", "\\boxminus", !0);
25882
+ z(q, xe, bt, "⊞", "\\boxplus", !0);
25883
+ z(q, xe, bt, "⋇", "\\divideontimes", !0);
25884
+ z(q, xe, bt, "⋉", "\\ltimes", !0);
25885
+ z(q, xe, bt, "⋊", "\\rtimes", !0);
25886
+ z(q, xe, bt, "⋋", "\\leftthreetimes", !0);
25887
+ z(q, xe, bt, "⋌", "\\rightthreetimes", !0);
25888
+ z(q, xe, bt, "⋏", "\\curlywedge", !0);
25889
+ z(q, xe, bt, "⋎", "\\curlyvee", !0);
25890
+ z(q, xe, bt, "⊝", "\\circleddash", !0);
25891
+ z(q, xe, bt, "⊛", "\\circledast", !0);
25892
+ z(q, xe, bt, "⋅", "\\centerdot");
25893
+ z(q, xe, bt, "⊺", "\\intercal", !0);
25894
+ z(q, xe, bt, "⋒", "\\doublecap");
25895
+ z(q, xe, bt, "⋓", "\\doublecup");
25896
+ z(q, xe, bt, "⊠", "\\boxtimes", !0);
25897
25897
  z(q, xe, we, "⇢", "\\dashrightarrow", !0);
25898
25898
  z(q, xe, we, "⇠", "\\dashleftarrow", !0);
25899
25899
  z(q, xe, we, "⇇", "\\leftleftarrows", !0);
@@ -25928,49 +25928,49 @@ z(q, xe, we, "⇝", "\\rightsquigarrow", !0);
25928
25928
  z(q, xe, we, "⇝", "\\leadsto");
25929
25929
  z(q, xe, we, "⇛", "\\Rrightarrow", !0);
25930
25930
  z(q, xe, we, "↾", "\\restriction");
25931
- z(q, ne, Ce, "‘", "`");
25932
- z(q, ne, Ce, "$", "\\$");
25933
- z(He, ne, Ce, "$", "\\$");
25934
- z(He, ne, Ce, "$", "\\textdollar");
25935
- z(q, ne, Ce, "%", "\\%");
25936
- z(He, ne, Ce, "%", "\\%");
25937
- z(q, ne, Ce, "_", "\\_");
25938
- z(He, ne, Ce, "_", "\\_");
25939
- z(He, ne, Ce, "_", "\\textunderscore");
25940
- z(q, ne, Ce, "∠", "\\angle", !0);
25941
- z(q, ne, Ce, "∞", "\\infty", !0);
25942
- z(q, ne, Ce, "′", "\\prime");
25943
- z(q, ne, Ce, "△", "\\triangle");
25944
- z(q, ne, Ce, "Γ", "\\Gamma", !0);
25945
- z(q, ne, Ce, "Δ", "\\Delta", !0);
25946
- z(q, ne, Ce, "Θ", "\\Theta", !0);
25947
- z(q, ne, Ce, "Λ", "\\Lambda", !0);
25948
- z(q, ne, Ce, "Ξ", "\\Xi", !0);
25949
- z(q, ne, Ce, "Π", "\\Pi", !0);
25950
- z(q, ne, Ce, "Σ", "\\Sigma", !0);
25951
- z(q, ne, Ce, "Υ", "\\Upsilon", !0);
25952
- z(q, ne, Ce, "Φ", "\\Phi", !0);
25953
- z(q, ne, Ce, "Ψ", "\\Psi", !0);
25954
- z(q, ne, Ce, "Ω", "\\Omega", !0);
25955
- z(q, ne, Ce, "A", "Α");
25956
- z(q, ne, Ce, "B", "Β");
25957
- z(q, ne, Ce, "E", "Ε");
25958
- z(q, ne, Ce, "Z", "Ζ");
25959
- z(q, ne, Ce, "H", "Η");
25960
- z(q, ne, Ce, "I", "Ι");
25961
- z(q, ne, Ce, "K", "Κ");
25962
- z(q, ne, Ce, "M", "Μ");
25963
- z(q, ne, Ce, "N", "Ν");
25964
- z(q, ne, Ce, "O", "Ο");
25965
- z(q, ne, Ce, "P", "Ρ");
25966
- z(q, ne, Ce, "T", "Τ");
25967
- z(q, ne, Ce, "X", "Χ");
25968
- z(q, ne, Ce, "¬", "\\neg", !0);
25969
- z(q, ne, Ce, "¬", "\\lnot");
25970
- z(q, ne, Ce, "⊤", "\\top");
25971
- z(q, ne, Ce, "⊥", "\\bot");
25972
- z(q, ne, Ce, "∅", "\\emptyset");
25973
- z(q, xe, Ce, "∅", "\\varnothing");
25931
+ z(q, ne, Ae, "‘", "`");
25932
+ z(q, ne, Ae, "$", "\\$");
25933
+ z(He, ne, Ae, "$", "\\$");
25934
+ z(He, ne, Ae, "$", "\\textdollar");
25935
+ z(q, ne, Ae, "%", "\\%");
25936
+ z(He, ne, Ae, "%", "\\%");
25937
+ z(q, ne, Ae, "_", "\\_");
25938
+ z(He, ne, Ae, "_", "\\_");
25939
+ z(He, ne, Ae, "_", "\\textunderscore");
25940
+ z(q, ne, Ae, "∠", "\\angle", !0);
25941
+ z(q, ne, Ae, "∞", "\\infty", !0);
25942
+ z(q, ne, Ae, "′", "\\prime");
25943
+ z(q, ne, Ae, "△", "\\triangle");
25944
+ z(q, ne, Ae, "Γ", "\\Gamma", !0);
25945
+ z(q, ne, Ae, "Δ", "\\Delta", !0);
25946
+ z(q, ne, Ae, "Θ", "\\Theta", !0);
25947
+ z(q, ne, Ae, "Λ", "\\Lambda", !0);
25948
+ z(q, ne, Ae, "Ξ", "\\Xi", !0);
25949
+ z(q, ne, Ae, "Π", "\\Pi", !0);
25950
+ z(q, ne, Ae, "Σ", "\\Sigma", !0);
25951
+ z(q, ne, Ae, "Υ", "\\Upsilon", !0);
25952
+ z(q, ne, Ae, "Φ", "\\Phi", !0);
25953
+ z(q, ne, Ae, "Ψ", "\\Psi", !0);
25954
+ z(q, ne, Ae, "Ω", "\\Omega", !0);
25955
+ z(q, ne, Ae, "A", "Α");
25956
+ z(q, ne, Ae, "B", "Β");
25957
+ z(q, ne, Ae, "E", "Ε");
25958
+ z(q, ne, Ae, "Z", "Ζ");
25959
+ z(q, ne, Ae, "H", "Η");
25960
+ z(q, ne, Ae, "I", "Ι");
25961
+ z(q, ne, Ae, "K", "Κ");
25962
+ z(q, ne, Ae, "M", "Μ");
25963
+ z(q, ne, Ae, "N", "Ν");
25964
+ z(q, ne, Ae, "O", "Ο");
25965
+ z(q, ne, Ae, "P", "Ρ");
25966
+ z(q, ne, Ae, "T", "Τ");
25967
+ z(q, ne, Ae, "X", "Χ");
25968
+ z(q, ne, Ae, "¬", "\\neg", !0);
25969
+ z(q, ne, Ae, "¬", "\\lnot");
25970
+ z(q, ne, Ae, "⊤", "\\top");
25971
+ z(q, ne, Ae, "⊥", "\\bot");
25972
+ z(q, ne, Ae, "∅", "\\emptyset");
25973
+ z(q, xe, Ae, "∅", "\\varnothing");
25974
25974
  z(q, ne, It, "α", "\\alpha", !0);
25975
25975
  z(q, ne, It, "β", "\\beta", !0);
25976
25976
  z(q, ne, It, "γ", "\\gamma", !0);
@@ -26001,22 +26001,22 @@ z(q, ne, It, "ϖ", "\\varpi", !0);
26001
26001
  z(q, ne, It, "ϱ", "\\varrho", !0);
26002
26002
  z(q, ne, It, "ς", "\\varsigma", !0);
26003
26003
  z(q, ne, It, "φ", "\\varphi", !0);
26004
- z(q, ne, mt, "∗", "*", !0);
26005
- z(q, ne, mt, "+", "+");
26006
- z(q, ne, mt, "−", "-", !0);
26007
- z(q, ne, mt, "⋅", "\\cdot", !0);
26008
- z(q, ne, mt, "∘", "\\circ", !0);
26009
- z(q, ne, mt, "÷", "\\div", !0);
26010
- z(q, ne, mt, "±", "\\pm", !0);
26011
- z(q, ne, mt, "×", "\\times", !0);
26012
- z(q, ne, mt, "∩", "\\cap", !0);
26013
- z(q, ne, mt, "∪", "\\cup", !0);
26014
- z(q, ne, mt, "∖", "\\setminus", !0);
26015
- z(q, ne, mt, "∧", "\\land");
26016
- z(q, ne, mt, "∨", "\\lor");
26017
- z(q, ne, mt, "∧", "\\wedge", !0);
26018
- z(q, ne, mt, "∨", "\\vee", !0);
26019
- z(q, ne, Ce, "√", "\\surd");
26004
+ z(q, ne, bt, "∗", "*", !0);
26005
+ z(q, ne, bt, "+", "+");
26006
+ z(q, ne, bt, "−", "-", !0);
26007
+ z(q, ne, bt, "⋅", "\\cdot", !0);
26008
+ z(q, ne, bt, "∘", "\\circ", !0);
26009
+ z(q, ne, bt, "÷", "\\div", !0);
26010
+ z(q, ne, bt, "±", "\\pm", !0);
26011
+ z(q, ne, bt, "×", "\\times", !0);
26012
+ z(q, ne, bt, "∩", "\\cap", !0);
26013
+ z(q, ne, bt, "∪", "\\cup", !0);
26014
+ z(q, ne, bt, "∖", "\\setminus", !0);
26015
+ z(q, ne, bt, "∧", "\\land");
26016
+ z(q, ne, bt, "∨", "\\lor");
26017
+ z(q, ne, bt, "∧", "\\wedge", !0);
26018
+ z(q, ne, bt, "∨", "\\vee", !0);
26019
+ z(q, ne, Ae, "√", "\\surd");
26020
26020
  z(q, ne, Vi, "⟨", "\\langle", !0);
26021
26021
  z(q, ne, Vi, "∣", "\\lvert");
26022
26022
  z(q, ne, Vi, "∥", "\\lVert");
@@ -26061,52 +26061,52 @@ z(q, ne, Ql, null, "\\nobreak");
26061
26061
  z(q, ne, Ql, null, "\\allowbreak");
26062
26062
  z(q, ne, f3, ",", ",");
26063
26063
  z(q, ne, f3, ";", ";");
26064
- z(q, xe, mt, "⊼", "\\barwedge", !0);
26065
- z(q, xe, mt, "⊻", "\\veebar", !0);
26066
- z(q, ne, mt, "⊙", "\\odot", !0);
26067
- z(q, ne, mt, "⊕", "\\oplus", !0);
26068
- z(q, ne, mt, "⊗", "\\otimes", !0);
26069
- z(q, ne, Ce, "∂", "\\partial", !0);
26070
- z(q, ne, mt, "⊘", "\\oslash", !0);
26071
- z(q, xe, mt, "⊚", "\\circledcirc", !0);
26072
- z(q, xe, mt, "⊡", "\\boxdot", !0);
26073
- z(q, ne, mt, "△", "\\bigtriangleup");
26074
- z(q, ne, mt, "▽", "\\bigtriangledown");
26075
- z(q, ne, mt, "†", "\\dagger");
26076
- z(q, ne, mt, "⋄", "\\diamond");
26077
- z(q, ne, mt, "⋆", "\\star");
26078
- z(q, ne, mt, "◃", "\\triangleleft");
26079
- z(q, ne, mt, "▹", "\\triangleright");
26064
+ z(q, xe, bt, "⊼", "\\barwedge", !0);
26065
+ z(q, xe, bt, "⊻", "\\veebar", !0);
26066
+ z(q, ne, bt, "⊙", "\\odot", !0);
26067
+ z(q, ne, bt, "⊕", "\\oplus", !0);
26068
+ z(q, ne, bt, "⊗", "\\otimes", !0);
26069
+ z(q, ne, Ae, "∂", "\\partial", !0);
26070
+ z(q, ne, bt, "⊘", "\\oslash", !0);
26071
+ z(q, xe, bt, "⊚", "\\circledcirc", !0);
26072
+ z(q, xe, bt, "⊡", "\\boxdot", !0);
26073
+ z(q, ne, bt, "△", "\\bigtriangleup");
26074
+ z(q, ne, bt, "▽", "\\bigtriangledown");
26075
+ z(q, ne, bt, "†", "\\dagger");
26076
+ z(q, ne, bt, "⋄", "\\diamond");
26077
+ z(q, ne, bt, "⋆", "\\star");
26078
+ z(q, ne, bt, "◃", "\\triangleleft");
26079
+ z(q, ne, bt, "▹", "\\triangleright");
26080
26080
  z(q, ne, Vi, "{", "\\{");
26081
- z(He, ne, Ce, "{", "\\{");
26082
- z(He, ne, Ce, "{", "\\textbraceleft");
26081
+ z(He, ne, Ae, "{", "\\{");
26082
+ z(He, ne, Ae, "{", "\\textbraceleft");
26083
26083
  z(q, ne, Yo, "}", "\\}");
26084
- z(He, ne, Ce, "}", "\\}");
26085
- z(He, ne, Ce, "}", "\\textbraceright");
26084
+ z(He, ne, Ae, "}", "\\}");
26085
+ z(He, ne, Ae, "}", "\\textbraceright");
26086
26086
  z(q, ne, Vi, "{", "\\lbrace");
26087
26087
  z(q, ne, Yo, "}", "\\rbrace");
26088
26088
  z(q, ne, Vi, "[", "\\lbrack", !0);
26089
- z(He, ne, Ce, "[", "\\lbrack", !0);
26089
+ z(He, ne, Ae, "[", "\\lbrack", !0);
26090
26090
  z(q, ne, Yo, "]", "\\rbrack", !0);
26091
- z(He, ne, Ce, "]", "\\rbrack", !0);
26091
+ z(He, ne, Ae, "]", "\\rbrack", !0);
26092
26092
  z(q, ne, Vi, "(", "\\lparen", !0);
26093
26093
  z(q, ne, Yo, ")", "\\rparen", !0);
26094
- z(He, ne, Ce, "<", "\\textless", !0);
26095
- z(He, ne, Ce, ">", "\\textgreater", !0);
26094
+ z(He, ne, Ae, "<", "\\textless", !0);
26095
+ z(He, ne, Ae, ">", "\\textgreater", !0);
26096
26096
  z(q, ne, Vi, "⌊", "\\lfloor", !0);
26097
26097
  z(q, ne, Yo, "⌋", "\\rfloor", !0);
26098
26098
  z(q, ne, Vi, "⌈", "\\lceil", !0);
26099
26099
  z(q, ne, Yo, "⌉", "\\rceil", !0);
26100
- z(q, ne, Ce, "\\", "\\backslash");
26101
- z(q, ne, Ce, "∣", "|");
26102
- z(q, ne, Ce, "∣", "\\vert");
26103
- z(He, ne, Ce, "|", "\\textbar", !0);
26104
- z(q, ne, Ce, "∥", "\\|");
26105
- z(q, ne, Ce, "∥", "\\Vert");
26106
- z(He, ne, Ce, "∥", "\\textbardbl");
26107
- z(He, ne, Ce, "~", "\\textasciitilde");
26108
- z(He, ne, Ce, "\\", "\\textbackslash");
26109
- z(He, ne, Ce, "^", "\\textasciicircum");
26100
+ z(q, ne, Ae, "\\", "\\backslash");
26101
+ z(q, ne, Ae, "∣", "|");
26102
+ z(q, ne, Ae, "∣", "\\vert");
26103
+ z(He, ne, Ae, "|", "\\textbar", !0);
26104
+ z(q, ne, Ae, "∥", "\\|");
26105
+ z(q, ne, Ae, "∥", "\\Vert");
26106
+ z(He, ne, Ae, "∥", "\\textbardbl");
26107
+ z(He, ne, Ae, "~", "\\textasciitilde");
26108
+ z(He, ne, Ae, "\\", "\\textbackslash");
26109
+ z(He, ne, Ae, "^", "\\textasciicircum");
26110
26110
  z(q, ne, we, "↑", "\\uparrow", !0);
26111
26111
  z(q, ne, we, "⇑", "\\Uparrow", !0);
26112
26112
  z(q, ne, we, "↓", "\\downarrow", !0);
@@ -26139,8 +26139,8 @@ z(He, ne, Df, "…", "\\ldots", !0);
26139
26139
  z(q, ne, Df, "…", "\\ldots", !0);
26140
26140
  z(q, ne, Df, "⋯", "\\@cdots", !0);
26141
26141
  z(q, ne, Df, "⋱", "\\ddots", !0);
26142
- z(q, ne, Ce, "⋮", "\\varvdots");
26143
- z(He, ne, Ce, "⋮", "\\varvdots");
26142
+ z(q, ne, Ae, "⋮", "\\varvdots");
26143
+ z(He, ne, Ae, "⋮", "\\varvdots");
26144
26144
  z(q, ne, Qn, "ˊ", "\\acute");
26145
26145
  z(q, ne, Qn, "ˋ", "\\grave");
26146
26146
  z(q, ne, Qn, "¨", "\\ddot");
@@ -26154,17 +26154,17 @@ z(q, ne, Qn, "˙", "\\dot");
26154
26154
  z(q, ne, Qn, "˚", "\\mathring");
26155
26155
  z(q, ne, It, "", "\\@imath");
26156
26156
  z(q, ne, It, "", "\\@jmath");
26157
- z(q, ne, Ce, "ı", "ı");
26158
- z(q, ne, Ce, "ȷ", "ȷ");
26159
- z(He, ne, Ce, "ı", "\\i", !0);
26160
- z(He, ne, Ce, "ȷ", "\\j", !0);
26161
- z(He, ne, Ce, "ß", "\\ss", !0);
26162
- z(He, ne, Ce, "æ", "\\ae", !0);
26163
- z(He, ne, Ce, "œ", "\\oe", !0);
26164
- z(He, ne, Ce, "ø", "\\o", !0);
26165
- z(He, ne, Ce, "Æ", "\\AE", !0);
26166
- z(He, ne, Ce, "Œ", "\\OE", !0);
26167
- z(He, ne, Ce, "Ø", "\\O", !0);
26157
+ z(q, ne, Ae, "ı", "ı");
26158
+ z(q, ne, Ae, "ȷ", "ȷ");
26159
+ z(He, ne, Ae, "ı", "\\i", !0);
26160
+ z(He, ne, Ae, "ȷ", "\\j", !0);
26161
+ z(He, ne, Ae, "ß", "\\ss", !0);
26162
+ z(He, ne, Ae, "æ", "\\ae", !0);
26163
+ z(He, ne, Ae, "œ", "\\oe", !0);
26164
+ z(He, ne, Ae, "ø", "\\o", !0);
26165
+ z(He, ne, Ae, "Æ", "\\AE", !0);
26166
+ z(He, ne, Ae, "Œ", "\\OE", !0);
26167
+ z(He, ne, Ae, "Ø", "\\O", !0);
26168
26168
  z(He, ne, Qn, "ˊ", "\\'");
26169
26169
  z(He, ne, Qn, "ˋ", "\\`");
26170
26170
  z(He, ne, Qn, "ˆ", "\\^");
@@ -26184,74 +26184,74 @@ var F$ = {
26184
26184
  "``": !0,
26185
26185
  "''": !0
26186
26186
  };
26187
- z(He, ne, Ce, "–", "--", !0);
26188
- z(He, ne, Ce, "–", "\\textendash");
26189
- z(He, ne, Ce, "—", "---", !0);
26190
- z(He, ne, Ce, "—", "\\textemdash");
26191
- z(He, ne, Ce, "‘", "`", !0);
26192
- z(He, ne, Ce, "‘", "\\textquoteleft");
26193
- z(He, ne, Ce, "’", "'", !0);
26194
- z(He, ne, Ce, "’", "\\textquoteright");
26195
- z(He, ne, Ce, "“", "``", !0);
26196
- z(He, ne, Ce, "“", "\\textquotedblleft");
26197
- z(He, ne, Ce, "”", "''", !0);
26198
- z(He, ne, Ce, "”", "\\textquotedblright");
26199
- z(q, ne, Ce, "°", "\\degree", !0);
26200
- z(He, ne, Ce, "°", "\\degree");
26201
- z(He, ne, Ce, "°", "\\textdegree", !0);
26202
- z(q, ne, Ce, "£", "\\pounds");
26203
- z(q, ne, Ce, "£", "\\mathsterling", !0);
26204
- z(He, ne, Ce, "£", "\\pounds");
26205
- z(He, ne, Ce, "£", "\\textsterling", !0);
26206
- z(q, xe, Ce, "✠", "\\maltese");
26207
- z(He, xe, Ce, "✠", "\\maltese");
26187
+ z(He, ne, Ae, "–", "--", !0);
26188
+ z(He, ne, Ae, "–", "\\textendash");
26189
+ z(He, ne, Ae, "—", "---", !0);
26190
+ z(He, ne, Ae, "—", "\\textemdash");
26191
+ z(He, ne, Ae, "‘", "`", !0);
26192
+ z(He, ne, Ae, "‘", "\\textquoteleft");
26193
+ z(He, ne, Ae, "’", "'", !0);
26194
+ z(He, ne, Ae, "’", "\\textquoteright");
26195
+ z(He, ne, Ae, "“", "``", !0);
26196
+ z(He, ne, Ae, "“", "\\textquotedblleft");
26197
+ z(He, ne, Ae, "”", "''", !0);
26198
+ z(He, ne, Ae, "”", "\\textquotedblright");
26199
+ z(q, ne, Ae, "°", "\\degree", !0);
26200
+ z(He, ne, Ae, "°", "\\degree");
26201
+ z(He, ne, Ae, "°", "\\textdegree", !0);
26202
+ z(q, ne, Ae, "£", "\\pounds");
26203
+ z(q, ne, Ae, "£", "\\mathsterling", !0);
26204
+ z(He, ne, Ae, "£", "\\pounds");
26205
+ z(He, ne, Ae, "£", "\\textsterling", !0);
26206
+ z(q, xe, Ae, "✠", "\\maltese");
26207
+ z(He, xe, Ae, "✠", "\\maltese");
26208
26208
  var uT = '0123456789/@."';
26209
26209
  for (var q4 = 0; q4 < uT.length; q4++) {
26210
26210
  var cT = uT.charAt(q4);
26211
- z(q, ne, Ce, cT, cT);
26211
+ z(q, ne, Ae, cT, cT);
26212
26212
  }
26213
26213
  var dT = '0123456789!@*()-=+";:?/.,';
26214
26214
  for (var V4 = 0; V4 < dT.length; V4++) {
26215
26215
  var pT = dT.charAt(V4);
26216
- z(He, ne, Ce, pT, pT);
26216
+ z(He, ne, Ae, pT, pT);
26217
26217
  }
26218
26218
  var Yb = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
26219
26219
  for (var K4 = 0; K4 < Yb.length; K4++) {
26220
26220
  var Vm = Yb.charAt(K4);
26221
- z(q, ne, It, Vm, Vm), z(He, ne, Ce, Vm, Vm);
26222
- }
26223
- z(q, xe, Ce, "C", "ℂ");
26224
- z(He, xe, Ce, "C", "ℂ");
26225
- z(q, xe, Ce, "H", "ℍ");
26226
- z(He, xe, Ce, "H", "ℍ");
26227
- z(q, xe, Ce, "N", "ℕ");
26228
- z(He, xe, Ce, "N", "ℕ");
26229
- z(q, xe, Ce, "P", "ℙ");
26230
- z(He, xe, Ce, "P", "ℙ");
26231
- z(q, xe, Ce, "Q", "ℚ");
26232
- z(He, xe, Ce, "Q", "ℚ");
26233
- z(q, xe, Ce, "R", "ℝ");
26234
- z(He, xe, Ce, "R", "ℝ");
26235
- z(q, xe, Ce, "Z", "ℤ");
26236
- z(He, xe, Ce, "Z", "ℤ");
26221
+ z(q, ne, It, Vm, Vm), z(He, ne, Ae, Vm, Vm);
26222
+ }
26223
+ z(q, xe, Ae, "C", "ℂ");
26224
+ z(He, xe, Ae, "C", "ℂ");
26225
+ z(q, xe, Ae, "H", "ℍ");
26226
+ z(He, xe, Ae, "H", "ℍ");
26227
+ z(q, xe, Ae, "N", "ℕ");
26228
+ z(He, xe, Ae, "N", "ℕ");
26229
+ z(q, xe, Ae, "P", "ℙ");
26230
+ z(He, xe, Ae, "P", "ℙ");
26231
+ z(q, xe, Ae, "Q", "ℚ");
26232
+ z(He, xe, Ae, "Q", "ℚ");
26233
+ z(q, xe, Ae, "R", "ℝ");
26234
+ z(He, xe, Ae, "R", "ℝ");
26235
+ z(q, xe, Ae, "Z", "ℤ");
26236
+ z(He, xe, Ae, "Z", "ℤ");
26237
26237
  z(q, ne, It, "h", "ℎ");
26238
26238
  z(He, ne, It, "h", "ℎ");
26239
26239
  var Ht = "";
26240
26240
  for (var No = 0; No < Yb.length; No++) {
26241
26241
  var sr = Yb.charAt(No);
26242
- Ht = String.fromCharCode(55349, 56320 + No), z(q, ne, It, sr, Ht), z(He, ne, Ce, sr, Ht), Ht = String.fromCharCode(55349, 56372 + No), z(q, ne, It, sr, Ht), z(He, ne, Ce, sr, Ht), Ht = String.fromCharCode(55349, 56424 + No), z(q, ne, It, sr, Ht), z(He, ne, Ce, sr, Ht), Ht = String.fromCharCode(55349, 56580 + No), z(q, ne, It, sr, Ht), z(He, ne, Ce, sr, Ht), Ht = String.fromCharCode(55349, 56684 + No), z(q, ne, It, sr, Ht), z(He, ne, Ce, sr, Ht), Ht = String.fromCharCode(55349, 56736 + No), z(q, ne, It, sr, Ht), z(He, ne, Ce, sr, Ht), Ht = String.fromCharCode(55349, 56788 + No), z(q, ne, It, sr, Ht), z(He, ne, Ce, sr, Ht), Ht = String.fromCharCode(55349, 56840 + No), z(q, ne, It, sr, Ht), z(He, ne, Ce, sr, Ht), Ht = String.fromCharCode(55349, 56944 + No), z(q, ne, It, sr, Ht), z(He, ne, Ce, sr, Ht), No < 26 && (Ht = String.fromCharCode(55349, 56632 + No), z(q, ne, It, sr, Ht), z(He, ne, Ce, sr, Ht), Ht = String.fromCharCode(55349, 56476 + No), z(q, ne, It, sr, Ht), z(He, ne, Ce, sr, Ht));
26242
+ Ht = String.fromCharCode(55349, 56320 + No), z(q, ne, It, sr, Ht), z(He, ne, Ae, sr, Ht), Ht = String.fromCharCode(55349, 56372 + No), z(q, ne, It, sr, Ht), z(He, ne, Ae, sr, Ht), Ht = String.fromCharCode(55349, 56424 + No), z(q, ne, It, sr, Ht), z(He, ne, Ae, sr, Ht), Ht = String.fromCharCode(55349, 56580 + No), z(q, ne, It, sr, Ht), z(He, ne, Ae, sr, Ht), Ht = String.fromCharCode(55349, 56684 + No), z(q, ne, It, sr, Ht), z(He, ne, Ae, sr, Ht), Ht = String.fromCharCode(55349, 56736 + No), z(q, ne, It, sr, Ht), z(He, ne, Ae, sr, Ht), Ht = String.fromCharCode(55349, 56788 + No), z(q, ne, It, sr, Ht), z(He, ne, Ae, sr, Ht), Ht = String.fromCharCode(55349, 56840 + No), z(q, ne, It, sr, Ht), z(He, ne, Ae, sr, Ht), Ht = String.fromCharCode(55349, 56944 + No), z(q, ne, It, sr, Ht), z(He, ne, Ae, sr, Ht), No < 26 && (Ht = String.fromCharCode(55349, 56632 + No), z(q, ne, It, sr, Ht), z(He, ne, Ae, sr, Ht), Ht = String.fromCharCode(55349, 56476 + No), z(q, ne, It, sr, Ht), z(He, ne, Ae, sr, Ht));
26243
26243
  }
26244
26244
  Ht = "𝕜";
26245
26245
  z(q, ne, It, "k", Ht);
26246
- z(He, ne, Ce, "k", Ht);
26246
+ z(He, ne, Ae, "k", Ht);
26247
26247
  for (var Lc = 0; Lc < 10; Lc++) {
26248
26248
  var fu = Lc.toString();
26249
- Ht = String.fromCharCode(55349, 57294 + Lc), z(q, ne, It, fu, Ht), z(He, ne, Ce, fu, Ht), Ht = String.fromCharCode(55349, 57314 + Lc), z(q, ne, It, fu, Ht), z(He, ne, Ce, fu, Ht), Ht = String.fromCharCode(55349, 57324 + Lc), z(q, ne, It, fu, Ht), z(He, ne, Ce, fu, Ht), Ht = String.fromCharCode(55349, 57334 + Lc), z(q, ne, It, fu, Ht), z(He, ne, Ce, fu, Ht);
26249
+ Ht = String.fromCharCode(55349, 57294 + Lc), z(q, ne, It, fu, Ht), z(He, ne, Ae, fu, Ht), Ht = String.fromCharCode(55349, 57314 + Lc), z(q, ne, It, fu, Ht), z(He, ne, Ae, fu, Ht), Ht = String.fromCharCode(55349, 57324 + Lc), z(q, ne, It, fu, Ht), z(He, ne, Ae, fu, Ht), Ht = String.fromCharCode(55349, 57334 + Lc), z(q, ne, It, fu, Ht), z(He, ne, Ae, fu, Ht);
26250
26250
  }
26251
26251
  var lD = "ÐÞþ";
26252
26252
  for (var G4 = 0; G4 < lD.length; G4++) {
26253
26253
  var Km = lD.charAt(G4);
26254
- z(q, ne, It, Km, Km), z(He, ne, Ce, Km, Km);
26254
+ z(q, ne, It, Km, Km), z(He, ne, Ae, Km, Km);
26255
26255
  }
26256
26256
  var Gm = [
26257
26257
  ["mathbf", "textbf", "Main-Bold"],
@@ -45080,11 +45080,11 @@ const G2e = (e, t) => e.isSuggestion && e.suggestionType === "add" ? tu(e, t) !=
45080
45080
  isLoading: j = !1,
45081
45081
  isDDocOwner: S = !1
45082
45082
  }) => {
45083
- const R = wt(() => K2e(), []), { isBelow1280px: U, isNativeMobile: $ } = Ki(), H = !U && !$ && !r, L = Se(null), P = Se(/* @__PURE__ */ new Map()), [K, oe] = Ne(() => /* @__PURE__ */ new Set()), [ee, J] = Ne(M), le = Se(M), G = Se(""), Z = Se(null), T = Se(null), X = Ae(() => {
45083
+ const R = wt(() => K2e(), []), { isBelow1280px: U, isNativeMobile: $ } = Ki(), H = !U && !$ && !r, L = Se(null), P = Se(/* @__PURE__ */ new Map()), [K, oe] = Ne(() => /* @__PURE__ */ new Set()), [ee, J] = Ne(M), le = Se(M), G = Se(""), Z = Se(null), T = Se(null), X = Ce(() => {
45084
45084
  Z.current !== null && (window.cancelAnimationFrame(Z.current), Z.current = null), T.current !== null && (window.cancelAnimationFrame(
45085
45085
  T.current
45086
45086
  ), T.current = null);
45087
- }, []), Y = Ae(
45087
+ }, []), Y = Ce(
45088
45088
  (I) => {
45089
45089
  t && (X(), Z.current = window.requestAnimationFrame(
45090
45090
  () => {
@@ -45104,7 +45104,7 @@ const G2e = (e, t) => e.isSuggestion && e.suggestionType === "add" ? tu(e, t) !=
45104
45104
  ));
45105
45105
  },
45106
45106
  [X, w, t]
45107
- ), pe = Ae(() => {
45107
+ ), pe = Ce(() => {
45108
45108
  const I = t && w ? w.current.filter(
45109
45109
  (ae) => !ae.deleted && G2e(ae, t.state)
45110
45110
  ).map((ae) => ae.id) : [], W = `${M}:${I.join(",")}`;
@@ -45305,29 +45305,29 @@ const G2e = (e, t) => e.isSuggestion && e.suggestionType === "add" ? tu(e, t) !=
45305
45305
  commentId: ((pt = t.getAttributes("comment")) == null ? void 0 : pt.commentId) ?? null,
45306
45306
  resolved: !!((Qt = t.getAttributes("comment")) != null && Qt.resolved)
45307
45307
  } : null, Oe = t.state.selection.from, ze = t.state.selection.to, qe = t.state.doc.content.size;
45308
- let ft = null, at = Be;
45309
- const Mt = !!(Ee != null && Ee.getMeta("pointer")), gn = (bt) => {
45310
- for (const jt of bt) {
45311
- if (at || (at = Yge(t.state, jt)), !ft && w) {
45308
+ let gt = null, at = Be;
45309
+ const Mt = !!(Ee != null && Ee.getMeta("pointer")), gn = (yt) => {
45310
+ for (const jt of yt) {
45311
+ if (at || (at = Yge(t.state, jt)), !gt && w) {
45312
45312
  const kn = r2e(
45313
45313
  t,
45314
45314
  jt,
45315
45315
  () => w.current
45316
45316
  );
45317
- kn && (ft = kn);
45317
+ kn && (gt = kn);
45318
45318
  }
45319
- if (at && ft)
45319
+ if (at && gt)
45320
45320
  break;
45321
45321
  }
45322
45322
  }, At = Array.from(
45323
45323
  new Set(
45324
45324
  [Oe, ze].filter(
45325
- (bt) => bt >= 0 && bt <= qe
45325
+ (yt) => yt >= 0 && yt <= qe
45326
45326
  )
45327
45327
  )
45328
45328
  );
45329
- if (gn(At), (!at || !ft) && Mt) {
45330
- const bt = Array.from(
45329
+ if (gn(At), (!at || !gt) && Mt) {
45330
+ const yt = Array.from(
45331
45331
  new Set(
45332
45332
  [
45333
45333
  Oe - 1,
@@ -45337,14 +45337,14 @@ const G2e = (e, t) => e.isSuggestion && e.suggestionType === "add" ? tu(e, t) !=
45337
45337
  ].filter((jt) => jt >= 0 && jt <= qe)
45338
45338
  )
45339
45339
  );
45340
- gn(bt);
45340
+ gn(yt);
45341
45341
  }
45342
- const Le = ft, _t = (at == null ? void 0 : at.commentId) ?? null, Qe = _t ?? (Le == null ? void 0 : Le.id) ?? null, ut = (_t ? at == null ? void 0 : at.resolved : void 0) ?? (Le == null ? void 0 : Le.resolved) ?? !1, Vt = !!(_t && !ut), gt = !!(Le && !Le.resolved), xt = !!Qe, zt = !!Qe && ut, dt = !!(Ee != null && Ee.getMeta(YW)), vt = H ? De.floatingCards.find(
45343
- (bt) => bt.type === "thread" && bt.isFocused
45344
- ) : null, St = (vt == null ? void 0 : vt.type) === "thread" ? vt.commentId : null, $t = !Qe || (H ? !St || St === Qe : De.openReplyId === Qe) || Mt || dt, bn = !!(r && Qe && Mt && !dt), he = !!(Qe && !bn && $t && H && (Vt || gt)), Ie = xt !== I, et = zt !== W;
45342
+ const Le = gt, _t = (at == null ? void 0 : at.commentId) ?? null, Qe = _t ?? (Le == null ? void 0 : Le.id) ?? null, ut = (_t ? at == null ? void 0 : at.resolved : void 0) ?? (Le == null ? void 0 : Le.resolved) ?? !1, Vt = !!(_t && !ut), mt = !!(Le && !Le.resolved), xt = !!Qe, zt = !!Qe && ut, dt = !!(Ee != null && Ee.getMeta(YW)), vt = H ? De.floatingCards.find(
45343
+ (yt) => yt.type === "thread" && yt.isFocused
45344
+ ) : null, St = (vt == null ? void 0 : vt.type) === "thread" ? vt.commentId : null, $t = !Qe || (H ? !St || St === Qe : De.openReplyId === Qe) || Mt || dt, bn = !!(r && Qe && Mt && !dt), he = !!(Qe && !bn && $t && H && (Vt || mt)), Ie = xt !== I, et = zt !== W;
45345
45345
  if (Ie && (I = xt, De.setIsCommentActive(xt)), et && (W = zt, De.setIsCommentResolved(zt)), Qe && $t && !bn) {
45346
- const bt = !H && !!(Mt || De.openReplyId !== Qe);
45347
- De.activeCommentId !== Qe && De.setActiveCommentId(Qe), H || (De.setOpenReplyId(Qe), (rn = De.setCommentDrawerOpen) == null || rn.call(De, !0), bt && Y(Qe));
45346
+ const yt = !H && !!(Mt || De.openReplyId !== Qe);
45347
+ De.activeCommentId !== Qe && De.setActiveCommentId(Qe), H || (De.setOpenReplyId(Qe), (rn = De.setCommentDrawerOpen) == null || rn.call(De, !0), yt && Y(Qe));
45348
45348
  }
45349
45349
  he && Qe && (dt || o(Qe), De.openFloatingThread(Qe));
45350
45350
  }, ae = ({
@@ -45368,27 +45368,27 @@ const G2e = (e, t) => e.isSuggestion && e.suggestionType === "add" ? tu(e, t) !=
45368
45368
  ui(at, t.state) && (qe.push(at), P.current.delete(Mt));
45369
45369
  }), qe.length === 0)
45370
45370
  return !1;
45371
- const ft = new Set(
45371
+ const gt = new Set(
45372
45372
  w.current.map((at) => at.id)
45373
45373
  );
45374
45374
  return w.current = [
45375
45375
  ...w.current,
45376
45376
  ...qe.filter(
45377
- (at) => !ft.has(at.id)
45377
+ (at) => !gt.has(at.id)
45378
45378
  )
45379
45379
  ], Be = !0, !0;
45380
45380
  };
45381
45381
  if (w && fe) {
45382
- const qe = w.current.filter((ft) => ft.deleted || ft.resolved ? !1 : ft.isSuggestion && ft.suggestionType === "add" ? !0 : NW(ft, fe) !== null);
45382
+ const qe = w.current.filter((gt) => gt.deleted || gt.resolved ? !1 : gt.isSuggestion && gt.suggestionType === "add" ? !0 : NW(gt, fe) !== null);
45383
45383
  if (qe.length > 0) {
45384
- const ft = Y8(
45384
+ const gt = Y8(
45385
45385
  Ee.before,
45386
45386
  [Ee, ...De]
45387
45387
  ), at = e2e(
45388
45388
  qe,
45389
45389
  fe,
45390
45390
  t.state,
45391
- ft
45391
+ gt
45392
45392
  ), Mt = at.filter(
45393
45393
  (_t) => _t.type === "edited"
45394
45394
  ), gn = at.filter(
@@ -45501,7 +45501,7 @@ const G2e = (e, t) => e.isSuggestion && e.suggestionType === "add" ? tu(e, t) !=
45501
45501
  const I = R.getState(), W = I.activeDraftId ? I.inlineDrafts[I.activeDraftId] ?? null : null;
45502
45502
  (W == null ? void 0 : W.location) === "drawer" && I.isCommentOpen || I.isCommentOpen && (I.setIsBubbleMenuSuppressed(!0), I.setIsCommentOpen(!1));
45503
45503
  });
45504
- const ce = Ae(
45504
+ const ce = Ce(
45505
45505
  (I) => {
45506
45506
  var Q;
45507
45507
  if (!((Q = t == null ? void 0 : t.view) != null && Q.dom))
@@ -48895,22 +48895,22 @@ function Tq() {
48895
48895
  let ve = null;
48896
48896
  const Ee = on({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), De = "http://www.w3.org/1998/Math/MathML", fe = "http://www.w3.org/2000/svg", Be = "http://www.w3.org/1999/xhtml";
48897
48897
  let Oe = Be, ze = !1, qe = null;
48898
- const ft = on({}, [De, fe, Be], AF);
48898
+ const gt = on({}, [De, fe, Be], AF);
48899
48899
  let at = on({}, ["mi", "mo", "mn", "ms", "mtext"]), Mt = on({}, ["annotation-xml"]);
48900
48900
  const gn = on({}, ["title", "style", "font", "a", "script"]);
48901
48901
  let At = null;
48902
48902
  const Le = ["application/xhtml+xml", "text/html"], _t = "text/html";
48903
48903
  let Qe = null, ut = null;
48904
- const Vt = n.createElement("form"), gt = function(Fe) {
48904
+ const Vt = n.createElement("form"), mt = function(Fe) {
48905
48905
  return Fe instanceof RegExp || Fe instanceof Function;
48906
48906
  }, xt = function() {
48907
48907
  let Fe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
48908
48908
  if (ut && ut === Fe)
48909
48909
  return;
48910
48910
  (!Fe || typeof Fe != "object") && (Fe = {}), Fe = Zo(Fe), At = // eslint-disable-next-line unicorn/prefer-includes
48911
- Le.indexOf(Fe.PARSER_MEDIA_TYPE) === -1 ? _t : Fe.PARSER_MEDIA_TYPE, Qe = At === "application/xhtml+xml" ? AF : O0, L = ur(Fe, "ALLOWED_TAGS") && Oo(Fe.ALLOWED_TAGS) ? on({}, Fe.ALLOWED_TAGS, Qe) : P, K = ur(Fe, "ALLOWED_ATTR") && Oo(Fe.ALLOWED_ATTR) ? on({}, Fe.ALLOWED_ATTR, Qe) : oe, qe = ur(Fe, "ALLOWED_NAMESPACES") && Oo(Fe.ALLOWED_NAMESPACES) ? on({}, Fe.ALLOWED_NAMESPACES, AF) : ft, ve = ur(Fe, "ADD_URI_SAFE_ATTR") && Oo(Fe.ADD_URI_SAFE_ATTR) ? on(Zo(Ee), Fe.ADD_URI_SAFE_ATTR, Qe) : Ee, ae = ur(Fe, "ADD_DATA_URI_TAGS") && Oo(Fe.ADD_DATA_URI_TAGS) ? on(Zo(me), Fe.ADD_DATA_URI_TAGS, Qe) : me, W = ur(Fe, "FORBID_CONTENTS") && Oo(Fe.FORBID_CONTENTS) ? on({}, Fe.FORBID_CONTENTS, Qe) : Q, J = ur(Fe, "FORBID_TAGS") && Oo(Fe.FORBID_TAGS) ? on({}, Fe.FORBID_TAGS, Qe) : Zo({}), le = ur(Fe, "FORBID_ATTR") && Oo(Fe.FORBID_ATTR) ? on({}, Fe.FORBID_ATTR, Qe) : Zo({}), I = ur(Fe, "USE_PROFILES") ? Fe.USE_PROFILES && typeof Fe.USE_PROFILES == "object" ? Zo(Fe.USE_PROFILES) : Fe.USE_PROFILES : !1, Z = Fe.ALLOW_ARIA_ATTR !== !1, T = Fe.ALLOW_DATA_ATTR !== !1, X = Fe.ALLOW_UNKNOWN_PROTOCOLS || !1, Y = Fe.ALLOW_SELF_CLOSE_IN_ATTR !== !1, pe = Fe.SAFE_FOR_TEMPLATES || !1, B = Fe.SAFE_FOR_XML !== !1, re = Fe.WHOLE_DOCUMENT || !1, te = Fe.RETURN_DOM || !1, se = Fe.RETURN_DOM_FRAGMENT || !1, ye = Fe.RETURN_TRUSTED_TYPE || !1, V = Fe.FORCE_BODY || !1, ke = Fe.SANITIZE_DOM !== !1, ge = Fe.SANITIZE_NAMED_PROPS || !1, ce = Fe.KEEP_CONTENT !== !1, be = Fe.IN_PLACE || !1, H = Kxe(Fe.ALLOWED_URI_REGEXP) ? Fe.ALLOWED_URI_REGEXP : _q, Oe = typeof Fe.NAMESPACE == "string" ? Fe.NAMESPACE : Be, at = ur(Fe, "MATHML_TEXT_INTEGRATION_POINTS") && Fe.MATHML_TEXT_INTEGRATION_POINTS && typeof Fe.MATHML_TEXT_INTEGRATION_POINTS == "object" ? Zo(Fe.MATHML_TEXT_INTEGRATION_POINTS) : on({}, ["mi", "mo", "mn", "ms", "mtext"]), Mt = ur(Fe, "HTML_INTEGRATION_POINTS") && Fe.HTML_INTEGRATION_POINTS && typeof Fe.HTML_INTEGRATION_POINTS == "object" ? Zo(Fe.HTML_INTEGRATION_POINTS) : on({}, ["annotation-xml"]);
48911
+ Le.indexOf(Fe.PARSER_MEDIA_TYPE) === -1 ? _t : Fe.PARSER_MEDIA_TYPE, Qe = At === "application/xhtml+xml" ? AF : O0, L = ur(Fe, "ALLOWED_TAGS") && Oo(Fe.ALLOWED_TAGS) ? on({}, Fe.ALLOWED_TAGS, Qe) : P, K = ur(Fe, "ALLOWED_ATTR") && Oo(Fe.ALLOWED_ATTR) ? on({}, Fe.ALLOWED_ATTR, Qe) : oe, qe = ur(Fe, "ALLOWED_NAMESPACES") && Oo(Fe.ALLOWED_NAMESPACES) ? on({}, Fe.ALLOWED_NAMESPACES, AF) : gt, ve = ur(Fe, "ADD_URI_SAFE_ATTR") && Oo(Fe.ADD_URI_SAFE_ATTR) ? on(Zo(Ee), Fe.ADD_URI_SAFE_ATTR, Qe) : Ee, ae = ur(Fe, "ADD_DATA_URI_TAGS") && Oo(Fe.ADD_DATA_URI_TAGS) ? on(Zo(me), Fe.ADD_DATA_URI_TAGS, Qe) : me, W = ur(Fe, "FORBID_CONTENTS") && Oo(Fe.FORBID_CONTENTS) ? on({}, Fe.FORBID_CONTENTS, Qe) : Q, J = ur(Fe, "FORBID_TAGS") && Oo(Fe.FORBID_TAGS) ? on({}, Fe.FORBID_TAGS, Qe) : Zo({}), le = ur(Fe, "FORBID_ATTR") && Oo(Fe.FORBID_ATTR) ? on({}, Fe.FORBID_ATTR, Qe) : Zo({}), I = ur(Fe, "USE_PROFILES") ? Fe.USE_PROFILES && typeof Fe.USE_PROFILES == "object" ? Zo(Fe.USE_PROFILES) : Fe.USE_PROFILES : !1, Z = Fe.ALLOW_ARIA_ATTR !== !1, T = Fe.ALLOW_DATA_ATTR !== !1, X = Fe.ALLOW_UNKNOWN_PROTOCOLS || !1, Y = Fe.ALLOW_SELF_CLOSE_IN_ATTR !== !1, pe = Fe.SAFE_FOR_TEMPLATES || !1, B = Fe.SAFE_FOR_XML !== !1, re = Fe.WHOLE_DOCUMENT || !1, te = Fe.RETURN_DOM || !1, se = Fe.RETURN_DOM_FRAGMENT || !1, ye = Fe.RETURN_TRUSTED_TYPE || !1, V = Fe.FORCE_BODY || !1, ke = Fe.SANITIZE_DOM !== !1, ge = Fe.SANITIZE_NAMED_PROPS || !1, ce = Fe.KEEP_CONTENT !== !1, be = Fe.IN_PLACE || !1, H = Kxe(Fe.ALLOWED_URI_REGEXP) ? Fe.ALLOWED_URI_REGEXP : _q, Oe = typeof Fe.NAMESPACE == "string" ? Fe.NAMESPACE : Be, at = ur(Fe, "MATHML_TEXT_INTEGRATION_POINTS") && Fe.MATHML_TEXT_INTEGRATION_POINTS && typeof Fe.MATHML_TEXT_INTEGRATION_POINTS == "object" ? Zo(Fe.MATHML_TEXT_INTEGRATION_POINTS) : on({}, ["mi", "mo", "mn", "ms", "mtext"]), Mt = ur(Fe, "HTML_INTEGRATION_POINTS") && Fe.HTML_INTEGRATION_POINTS && typeof Fe.HTML_INTEGRATION_POINTS == "object" ? Zo(Fe.HTML_INTEGRATION_POINTS) : on({}, ["annotation-xml"]);
48912
48912
  const Te = ur(Fe, "CUSTOM_ELEMENT_HANDLING") && Fe.CUSTOM_ELEMENT_HANDLING && typeof Fe.CUSTOM_ELEMENT_HANDLING == "object" ? Zo(Fe.CUSTOM_ELEMENT_HANDLING) : Yp(null);
48913
- if (ee = Yp(null), ur(Te, "tagNameCheck") && gt(Te.tagNameCheck) && (ee.tagNameCheck = Te.tagNameCheck), ur(Te, "attributeNameCheck") && gt(Te.attributeNameCheck) && (ee.attributeNameCheck = Te.attributeNameCheck), ur(Te, "allowCustomizedBuiltInElements") && typeof Te.allowCustomizedBuiltInElements == "boolean" && (ee.allowCustomizedBuiltInElements = Te.allowCustomizedBuiltInElements), pe && (T = !1), se && (te = !0), I && (L = on({}, lB), K = Yp(null), I.html === !0 && (on(L, aB), on(K, uB)), I.svg === !0 && (on(L, _F), on(K, jF), on(K, u2)), I.svgFilters === !0 && (on(L, SF), on(K, jF), on(K, u2)), I.mathMl === !0 && (on(L, TF), on(K, cB), on(K, u2))), G.tagCheck = null, G.attributeCheck = null, ur(Fe, "ADD_TAGS") && (typeof Fe.ADD_TAGS == "function" ? G.tagCheck = Fe.ADD_TAGS : Oo(Fe.ADD_TAGS) && (L === P && (L = Zo(L)), on(L, Fe.ADD_TAGS, Qe))), ur(Fe, "ADD_ATTR") && (typeof Fe.ADD_ATTR == "function" ? G.attributeCheck = Fe.ADD_ATTR : Oo(Fe.ADD_ATTR) && (K === oe && (K = Zo(K)), on(K, Fe.ADD_ATTR, Qe))), ur(Fe, "ADD_URI_SAFE_ATTR") && Oo(Fe.ADD_URI_SAFE_ATTR) && on(ve, Fe.ADD_URI_SAFE_ATTR, Qe), ur(Fe, "FORBID_CONTENTS") && Oo(Fe.FORBID_CONTENTS) && (W === Q && (W = Zo(W)), on(W, Fe.FORBID_CONTENTS, Qe)), ur(Fe, "ADD_FORBID_CONTENTS") && Oo(Fe.ADD_FORBID_CONTENTS) && (W === Q && (W = Zo(W)), on(W, Fe.ADD_FORBID_CONTENTS, Qe)), ce && (L["#text"] = !0), re && on(L, ["html", "head", "body"]), L.table && (on(L, ["tbody"]), delete J.tbody), Fe.TRUSTED_TYPES_POLICY) {
48913
+ if (ee = Yp(null), ur(Te, "tagNameCheck") && mt(Te.tagNameCheck) && (ee.tagNameCheck = Te.tagNameCheck), ur(Te, "attributeNameCheck") && mt(Te.attributeNameCheck) && (ee.attributeNameCheck = Te.attributeNameCheck), ur(Te, "allowCustomizedBuiltInElements") && typeof Te.allowCustomizedBuiltInElements == "boolean" && (ee.allowCustomizedBuiltInElements = Te.allowCustomizedBuiltInElements), pe && (T = !1), se && (te = !0), I && (L = on({}, lB), K = Yp(null), I.html === !0 && (on(L, aB), on(K, uB)), I.svg === !0 && (on(L, _F), on(K, jF), on(K, u2)), I.svgFilters === !0 && (on(L, SF), on(K, jF), on(K, u2)), I.mathMl === !0 && (on(L, TF), on(K, cB), on(K, u2))), G.tagCheck = null, G.attributeCheck = null, ur(Fe, "ADD_TAGS") && (typeof Fe.ADD_TAGS == "function" ? G.tagCheck = Fe.ADD_TAGS : Oo(Fe.ADD_TAGS) && (L === P && (L = Zo(L)), on(L, Fe.ADD_TAGS, Qe))), ur(Fe, "ADD_ATTR") && (typeof Fe.ADD_ATTR == "function" ? G.attributeCheck = Fe.ADD_ATTR : Oo(Fe.ADD_ATTR) && (K === oe && (K = Zo(K)), on(K, Fe.ADD_ATTR, Qe))), ur(Fe, "ADD_URI_SAFE_ATTR") && Oo(Fe.ADD_URI_SAFE_ATTR) && on(ve, Fe.ADD_URI_SAFE_ATTR, Qe), ur(Fe, "FORBID_CONTENTS") && Oo(Fe.FORBID_CONTENTS) && (W === Q && (W = Zo(W)), on(W, Fe.FORBID_CONTENTS, Qe)), ur(Fe, "ADD_FORBID_CONTENTS") && Oo(Fe.ADD_FORBID_CONTENTS) && (W === Q && (W = Zo(W)), on(W, Fe.ADD_FORBID_CONTENTS, Qe)), ce && (L["#text"] = !0), re && on(L, ["html", "head", "body"]), L.table && (on(L, ["tbody"]), delete J.tbody), Fe.TRUSTED_TYPES_POLICY) {
48914
48914
  if (typeof Fe.TRUSTED_TYPES_POLICY.createHTML != "function")
48915
48915
  throw l2('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
48916
48916
  if (typeof Fe.TRUSTED_TYPES_POLICY.createScriptURL != "function")
@@ -49059,8 +49059,8 @@ function Tq() {
49059
49059
  }
49060
49060
  }
49061
49061
  return !0;
49062
- }, bt = on({}, ["annotation-xml", "color-profile", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "missing-glyph"]), jt = function(Fe) {
49063
- return !bt[O0(Fe)] && Jr($, Fe);
49062
+ }, yt = on({}, ["annotation-xml", "color-profile", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "missing-glyph"]), jt = function(Fe) {
49063
+ return !yt[O0(Fe)] && Jr($, Fe);
49064
49064
  }, kn = function(Fe) {
49065
49065
  pt(O.beforeSanitizeAttributes, Fe, null);
49066
49066
  const {
@@ -49101,8 +49101,8 @@ function Tq() {
49101
49101
  $t(Dt, Fe);
49102
49102
  continue;
49103
49103
  }
49104
- pe && n0([A, M, C], (yt) => {
49105
- mn = jp(mn, yt, " ");
49104
+ pe && n0([A, M, C], (ft) => {
49105
+ mn = jp(mn, ft, " ");
49106
49106
  });
49107
49107
  const Ci = Qe(Fe.nodeName);
49108
49108
  if (!rn(Ci, pn, mn)) {
@@ -52785,7 +52785,7 @@ const GD = [
52785
52785
  setIsLinkPopupOpen: o,
52786
52786
  onError: i
52787
52787
  }) => {
52788
- const [s, a] = Ne(t.getAttributes("link").href), l = Ae(() => {
52788
+ const [s, a] = Ne(t.getAttributes("link").href), l = Ce(() => {
52789
52789
  if (s === "" || s === void 0) {
52790
52790
  t.chain().focus().extendMarkRange("link").unsetLink().run();
52791
52791
  return;
@@ -53850,19 +53850,30 @@ const GD = [
53850
53850
  "NodeSelector"
53851
53851
  );
53852
53852
  }, cr = Yn(
53853
- ({ icon: e, isActive: t, onClick: n, tooltip: r, classNames: o, disabled: i, size: s, variant: a }, l) => {
53854
- const u = (c) => {
53855
- c.preventDefault();
53853
+ ({
53854
+ icon: e,
53855
+ isActive: t,
53856
+ onClick: n,
53857
+ tooltip: r,
53858
+ classNames: o,
53859
+ disabled: i,
53860
+ size: s,
53861
+ variant: a,
53862
+ ...l
53863
+ }, u) => {
53864
+ const c = (d) => {
53865
+ d.preventDefault();
53856
53866
  };
53857
- return r ? /* @__PURE__ */ x.jsx(hn, { text: r, children: /* @__PURE__ */ x.jsx(
53867
+ return r ? /* @__PURE__ */ x.jsx(hn, { text: r, asTriggerChild: !0, children: /* @__PURE__ */ x.jsx(
53858
53868
  qt,
53859
53869
  {
53860
- ref: l,
53870
+ ref: u,
53861
53871
  variant: a,
53862
53872
  size: s || "md",
53863
53873
  icon: e,
53874
+ ...l,
53864
53875
  onClick: n,
53865
- onMouseDown: u,
53876
+ onMouseDown: c,
53866
53877
  isActive: t,
53867
53878
  className: o,
53868
53879
  disabled: i
@@ -53870,12 +53881,13 @@ const GD = [
53870
53881
  ) }) : /* @__PURE__ */ x.jsx(
53871
53882
  qt,
53872
53883
  {
53873
- ref: l,
53884
+ ref: u,
53874
53885
  variant: "ghost",
53875
53886
  size: s || "md",
53876
53887
  icon: e,
53888
+ ...l,
53877
53889
  onClick: n,
53878
- onMouseDown: u,
53890
+ onMouseDown: c,
53879
53891
  isActive: t,
53880
53892
  className: o,
53881
53893
  disabled: i
@@ -54819,12 +54831,12 @@ const GD = [
54819
54831
  });
54820
54832
  }), !d;
54821
54833
  }, Vve = ({ editor: e }) => dV(e), Kve = (e) => dV(e, !0), pV = (e) => {
54822
- const t = Ae(
54834
+ const t = Ce(
54823
54835
  (o) => {
54824
54836
  e && e.chain().focus().setFontSize(o).run();
54825
54837
  },
54826
54838
  [e]
54827
- ), n = Ae(
54839
+ ), n = Ce(
54828
54840
  (o) => {
54829
54841
  if (!e) return;
54830
54842
  const { from: i, to: s } = e.state.selection;
@@ -54911,9 +54923,9 @@ const GD = [
54911
54923
  t.off("selectionUpdate", K);
54912
54924
  };
54913
54925
  }, [t, M, C]);
54914
- const S = Ae((K) => {
54926
+ const S = Ce((K) => {
54915
54927
  K == null || K.style.setProperty("z-index", Yve);
54916
- }, []), R = Ae(
54928
+ }, []), R = Ce(
54917
54929
  ({ editor: K }) => Vve({ editor: K }) ? !0 : (F || o) && qve(K) && Kve(K),
54918
54930
  [F, o]
54919
54931
  ), U = wt(() => [
@@ -54972,7 +54984,7 @@ const GD = [
54972
54984
  },
54973
54985
  icon: "MessageSquarePlus"
54974
54986
  }
54975
- ], [t, O, D, k]), $ = Ae(
54987
+ ], [t, O, D, k]), $ = Ce(
54976
54988
  (K) => {
54977
54989
  if (!t) return null;
54978
54990
  switch (K.name) {
@@ -55021,7 +55033,7 @@ const GD = [
55021
55033
  D,
55022
55034
  w
55023
55035
  ]
55024
- ), H = Ae(() => {
55036
+ ), H = Ce(() => {
55025
55037
  i == null || i(!0), N();
55026
55038
  }, [N, i]), L = /* @__PURE__ */ x.jsx(Tt.Fragment, { children: /* @__PURE__ */ x.jsx(
55027
55039
  cr,
@@ -55618,16 +55630,16 @@ const n4e = {
55618
55630
  );
55619
55631
  return /* @__PURE__ */ x.jsx(yV.Provider, { value: s, children: e });
55620
55632
  }, r4e = ({ editor: e, appendTo: t }) => {
55621
- const { isSuggestionMode: n } = fp(), r = Ae(() => e4e(e, "columns"), [e]), o = Ae(() => {
55633
+ const { isSuggestionMode: n } = fp(), r = Ce(() => e4e(e, "columns"), [e]), o = Ce(() => {
55622
55634
  const u = !e.isEditable || !!n;
55623
55635
  return e.isActive("columns") && !u;
55624
- }, [e, n]), i = Ae(() => {
55636
+ }, [e, n]), i = Ce(() => {
55625
55637
  e.chain().focus().setLayout(Kc.AlignLeft).run();
55626
- }, [e]), s = Ae(() => {
55638
+ }, [e]), s = Ce(() => {
55627
55639
  e.chain().focus().setLayout(Kc.AlignRight).run();
55628
- }, [e]), a = Ae(() => {
55640
+ }, [e]), a = Ce(() => {
55629
55641
  e.chain().focus().setLayout(Kc.AlignCenter).run();
55630
- }, [e]), l = Ae(() => {
55642
+ }, [e]), l = Ce(() => {
55631
55643
  e.chain().focus().deleteNode("columns").run();
55632
55644
  }, [e]);
55633
55645
  return /* @__PURE__ */ x.jsx(
@@ -58216,13 +58228,13 @@ const RFe = (e, t) => Ct.create({
58216
58228
  ydoc: n,
58217
58229
  exportOptions: r
58218
58230
  }) => {
58219
- const o = Ae(
58231
+ const o = Ce(
58220
58232
  (v) => (v || "Untitled").replace(/\s+/g, " ").trim(),
58221
58233
  []
58222
- ), i = Ae(
58234
+ ), i = Ce(
58223
58235
  (v) => v.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;"),
58224
58236
  []
58225
- ), s = Ae((v) => v.includes("(.pdf)") ? "pdf" : v.includes("with CSS") ? "md-css" : v.includes("(.md)") ? "md" : v.includes("(.html)") ? "html" : v.includes("(.txt)") ? "txt" : v.includes("(.odt)") ? "odt" : "", []), a = wt(
58237
+ ), s = Ce((v) => v.includes("(.pdf)") ? "pdf" : v.includes("with CSS") ? "md-css" : v.includes("(.md)") ? "md" : v.includes("(.html)") ? "html" : v.includes("(.txt)") ? "txt" : v.includes("(.odt)") ? "odt" : "", []), a = wt(
58226
58238
  () => r.filter((v) => v !== null).reduce((v, w) => {
58227
58239
  const D = s(w.title);
58228
58240
  return D && (v[D] = w), v;
@@ -58234,26 +58246,26 @@ const RFe = (e, t) => Ct.create({
58234
58246
  label: w.title
58235
58247
  })),
58236
58248
  [a]
58237
- ), u = Ae(() => {
58249
+ ), u = Ce(() => {
58238
58250
  if (!e) return "Untitled";
58239
58251
  const v = e.getJSON();
58240
58252
  return ed(
58241
58253
  v
58242
58254
  ) || "Untitled";
58243
- }, [e]), c = Ae(
58255
+ }, [e]), c = Ce(
58244
58256
  async (v, w) => {
58245
58257
  const D = a[v];
58246
58258
  !D || D.disabled || D.onClick(w);
58247
58259
  },
58248
58260
  [a]
58249
- ), d = Ae(
58261
+ ), d = Ce(
58250
58262
  (v) => {
58251
58263
  if (!e || !n) return null;
58252
58264
  const w = n.getXmlFragment(v), D = ME(w);
58253
58265
  return bc(e, D);
58254
58266
  },
58255
58267
  [e, n]
58256
- ), p = Ae(async () => {
58268
+ ), p = Ce(async () => {
58257
58269
  if (!e || !n || t.length === 0) return;
58258
58270
  const v = [];
58259
58271
  try {
@@ -58283,7 +58295,7 @@ const RFe = (e, t) => Ct.create({
58283
58295
  o,
58284
58296
  t,
58285
58297
  n
58286
- ]), h = Ae(
58298
+ ]), h = Ce(
58287
58299
  async (v, w) => {
58288
58300
  if (!e || !n || t.length === 0) return;
58289
58301
  const D = v || u(), k = [];
@@ -58313,7 +58325,7 @@ ${R}`.trim());
58313
58325
  }
58314
58326
  },
58315
58327
  [d, e, u, o, t, n]
58316
- ), f = Ae(
58328
+ ), f = Ce(
58317
58329
  async (v) => {
58318
58330
  if (!e || !n || t.length === 0) return;
58319
58331
  const w = v || u(), D = [];
@@ -58347,7 +58359,7 @@ ${C.getHTML()}`
58347
58359
  t,
58348
58360
  n
58349
58361
  ]
58350
- ), g = Ae(
58362
+ ), g = Ce(
58351
58363
  async (v) => {
58352
58364
  if (!e || !n || t.length === 0) return;
58353
58365
  const w = v || u(), D = [];
@@ -58375,7 +58387,7 @@ ${C.getHTML()}`
58375
58387
  }
58376
58388
  },
58377
58389
  [d, e, u, t, n]
58378
- ), m = Ae(
58390
+ ), m = Ce(
58379
58391
  async (v) => {
58380
58392
  if (!e || !n || t.length === 0) return;
58381
58393
  const w = v || u(), D = [];
@@ -58412,7 +58424,7 @@ ${j.getHTML()}`
58412
58424
  t,
58413
58425
  n
58414
58426
  ]
58415
- ), b = Ae(
58427
+ ), b = Ce(
58416
58428
  async ({
58417
58429
  format: v,
58418
58430
  tab: w,
@@ -58457,12 +58469,12 @@ ${j.getHTML()}`
58457
58469
  g,
58458
58470
  c
58459
58471
  ]
58460
- ), y = Ae(
58472
+ ), y = Ce(
58461
58473
  ({ format: v, tab: w, name: D }) => {
58462
58474
  b({ format: v, tab: w, name: D });
58463
58475
  },
58464
58476
  [b]
58465
- ), F = Ae(
58477
+ ), F = Ce(
58466
58478
  async ({
58467
58479
  format: v,
58468
58480
  tab: w,
@@ -58502,7 +58514,7 @@ ${j.getHTML()}`
58502
58514
  { id: "all", label: "All tabs" }
58503
58515
  ],
58504
58516
  []
58505
- ), N = s.length > 1, O = Ae(
58517
+ ), N = s.length > 1, O = Ce(
58506
58518
  (A = "pdf", M) => {
58507
58519
  if (w.find(
58508
58520
  (j) => j.id === A
@@ -58528,7 +58540,7 @@ ${j.getHTML()}`
58528
58540
  onClose: () => {
58529
58541
  t(!1), p(!1), c(!1);
58530
58542
  },
58531
- anchorTrigger: /* @__PURE__ */ x.jsx(hn, { text: "Export/Import", children: /* @__PURE__ */ x.jsx(
58543
+ anchorTrigger: /* @__PURE__ */ x.jsx(hn, { text: "Export/Import", asTriggerChild: !0, children: /* @__PURE__ */ x.jsx(
58532
58544
  qt,
58533
58545
  {
58534
58546
  icon: "File",
@@ -58793,7 +58805,7 @@ ${j.getHTML()}`
58793
58805
  ipfsImageFetchFn: y,
58794
58806
  onDocxImport: m,
58795
58807
  fetchV1ImageFn: F
58796
- }), H = pV(e), L = Ae(() => {
58808
+ }), H = pV(e), L = Ce(() => {
58797
58809
  }, []), P = e ? H.currentSize : void 0, K = e ? H.onSetFontSize : L, oe = e ? H.currentLineHeight : void 0, ee = e ? H.onSetLineHeight : L, J = or("(max-width: 1560px)"), le = or("(max-width: 1370px)"), G = or("(max-width: 1270px)"), Z = or("(max-width: 1160px)"), T = or("(max-width: 1030px)"), [X, Y] = Ne(!1), [pe, B] = Ne("Default"), re = wt(
58798
58810
  () => Jq(O ?? []),
58799
58811
  [O]
@@ -58812,7 +58824,7 @@ ${j.getHTML()}`
58812
58824
  e.off("selectionUpdate", ie), e.off("transaction", ce);
58813
58825
  };
58814
58826
  }, [e]);
58815
- const V = Ae(
58827
+ const V = Ce(
58816
58828
  (ie) => {
58817
58829
  switch (ie.title) {
58818
58830
  case "Highlight":
@@ -58896,9 +58908,9 @@ ${j.getHTML()}`
58896
58908
  G,
58897
58909
  le,
58898
58910
  J
58899
- ]), se = Ae(() => Y(!1), []), ye = Ae(() => {
58911
+ ]), se = Ce(() => Y(!1), []), ye = Ce(() => {
58900
58912
  Y((ie) => !ie), $(!1);
58901
- }, [$]), ke = Ae(
58913
+ }, [$]), ke = Ce(
58902
58914
  () => l((ie) => !ie),
58903
58915
  [l]
58904
58916
  );
@@ -58925,7 +58937,7 @@ ${j.getHTML()}`
58925
58937
  "markdown-dropdown-transition"
58926
58938
  ),
58927
58939
  /* @__PURE__ */ x.jsx("div", { className: "w-[1px] h-4 vertical-divider mx-1" }),
58928
- /* @__PURE__ */ x.jsx("div", { className: "flex gap-1 justify-center items-center", children: j.map((ie, ce) => ie ? /* @__PURE__ */ x.jsx(hn, { text: ie.title, children: b ? Uo(
58940
+ /* @__PURE__ */ x.jsx("div", { className: "flex gap-1 justify-center items-center", children: j.map((ie, ce) => ie ? /* @__PURE__ */ x.jsx(hn, { text: ie.title, asTriggerChild: !0, children: b ? Uo(
58929
58941
  /* @__PURE__ */ x.jsx(
58930
58942
  Tr,
58931
58943
  {
@@ -59180,7 +59192,7 @@ ${j.getHTML()}`
59180
59192
  /* @__PURE__ */ x.jsx(Tr, { className: "w-[36px] h-[36px] rounded-sm" }),
59181
59193
  ie.title + "skeleton"
59182
59194
  ) : ni(
59183
- /* @__PURE__ */ x.jsx(hn, { text: ie.title, children: /* @__PURE__ */ x.jsx(
59195
+ /* @__PURE__ */ x.jsx(hn, { text: ie.title, asTriggerChild: !0, children: /* @__PURE__ */ x.jsx(
59184
59196
  cr,
59185
59197
  {
59186
59198
  icon: ie.icon,
@@ -59202,17 +59214,24 @@ ${j.getHTML()}`
59202
59214
  ] }),
59203
59215
  /* @__PURE__ */ x.jsxs("div", { className: "flex items-center gap-1", children: [
59204
59216
  /* @__PURE__ */ x.jsx("div", { className: "w-[1px] h-4 vertical-divider mx-2" }),
59205
- N && /* @__PURE__ */ x.jsx(hn, { text: _ ? "Back to editor" : "Markdown view", children: /* @__PURE__ */ x.jsx(
59206
- qt,
59217
+ N && /* @__PURE__ */ x.jsx(
59218
+ hn,
59207
59219
  {
59208
- icon: _ ? "PenLine" : "SquareSplitHorizontal",
59209
- size: "sm",
59210
- variant: "ghost",
59211
- onClick: N,
59212
- id: "split-view-button"
59220
+ text: _ ? "Back to editor" : "Markdown view",
59221
+ asTriggerChild: !0,
59222
+ children: /* @__PURE__ */ x.jsx(
59223
+ qt,
59224
+ {
59225
+ icon: _ ? "PenLine" : "SquareSplitHorizontal",
59226
+ size: "sm",
59227
+ variant: "ghost",
59228
+ onClick: N,
59229
+ id: "split-view-button"
59230
+ }
59231
+ )
59213
59232
  }
59214
- ) }),
59215
- /* @__PURE__ */ x.jsx(hn, { text: "Enter focus mode", children: /* @__PURE__ */ x.jsx(
59233
+ ),
59234
+ /* @__PURE__ */ x.jsx(hn, { text: "Enter focus mode", asTriggerChild: !0, children: /* @__PURE__ */ x.jsx(
59216
59235
  qt,
59217
59236
  {
59218
59237
  icon: "Maximize",
@@ -65476,7 +65495,8 @@ const rke = Ct.create({
65476
65495
  isPresentationMode: !1,
65477
65496
  isPreviewEditor: !1,
65478
65497
  isCollaboratorsDoc: !1,
65479
- isSplitView: !1
65498
+ isSplitView: !1,
65499
+ isFocusMode: !1
65480
65500
  }, VK = (e) => (e == null ? void 0 : e()) ?? r7, Gc = /* @__PURE__ */ new WeakMap(), gk = /* @__PURE__ */ new Set(), yke = (e) => typeof Element < "u" && e instanceof Element, xke = (e) => e ? yke(e) ? e : typeof Node < "u" && e instanceof Node && e.parentElement ? e.parentElement : null : null, vke = (e) => (gk.add(e), Gc.set(e.dom, e), Gc.set(e.gutterElement, e), Gc.set(e.contentElement, e), () => {
65481
65501
  gk.delete(e), Gc.delete(e.dom), Gc.delete(e.gutterElement), Gc.delete(e.contentElement);
65482
65502
  }), KK = (e) => {
@@ -67754,11 +67774,11 @@ function m9e(e, t) {
67754
67774
  if (fe.content) {
67755
67775
  var Be = "aria-" + fe.content, Oe = D.id, ze = Qp(v.props.triggerTarget || e);
67756
67776
  ze.forEach(function(qe) {
67757
- var ft = qe.getAttribute(Be);
67777
+ var gt = qe.getAttribute(Be);
67758
67778
  if (v.state.isVisible)
67759
- qe.setAttribute(Be, ft ? ft + " " + Oe : Oe);
67779
+ qe.setAttribute(Be, gt ? gt + " " + Oe : Oe);
67760
67780
  else {
67761
- var at = ft && ft.replace(Oe, "").trim();
67781
+ var at = gt && gt.replace(Oe, "").trim();
67762
67782
  at ? qe.setAttribute(Be, at) : qe.removeAttribute(Be);
67763
67783
  }
67764
67784
  });
@@ -67876,7 +67896,7 @@ function m9e(e, t) {
67876
67896
  var Be = fe.target, Oe = M().contains(Be) || D.contains(Be);
67877
67897
  if (!(fe.type === "mousemove" && Oe)) {
67878
67898
  var ze = ke().concat(D).map(function(qe) {
67879
- var ft, at = qe._tippy, Mt = (ft = at.popperInstance) == null ? void 0 : ft.state;
67899
+ var gt, at = qe._tippy, Mt = (gt = at.popperInstance) == null ? void 0 : gt.state;
67880
67900
  return Mt ? {
67881
67901
  popperRect: qe.getBoundingClientRect(),
67882
67902
  popperState: Mt,
@@ -67904,7 +67924,7 @@ function m9e(e, t) {
67904
67924
  }
67905
67925
  function te() {
67906
67926
  se();
67907
- var fe = v.props, Be = fe.popperOptions, Oe = fe.placement, ze = fe.offset, qe = fe.getReferenceClientRect, ft = fe.moveTransition, at = A() ? Fk(D).arrow : null, Mt = qe ? {
67927
+ var fe = v.props, Be = fe.popperOptions, Oe = fe.placement, ze = fe.offset, qe = fe.getReferenceClientRect, gt = fe.moveTransition, at = A() ? Fk(D).arrow : null, Mt = qe ? {
67908
67928
  getBoundingClientRect: qe,
67909
67929
  contextElement: qe.contextElement || M()
67910
67930
  } : e, gn = {
@@ -67916,8 +67936,8 @@ function m9e(e, t) {
67916
67936
  var Qe = _t.state;
67917
67937
  if (A()) {
67918
67938
  var ut = j(), Vt = ut.box;
67919
- ["placement", "reference-hidden", "escaped"].forEach(function(gt) {
67920
- gt === "placement" ? Vt.setAttribute("data-placement", Qe.placement) : Qe.attributes.popper["data-popper-" + gt] ? Vt.setAttribute("data-" + gt, "") : Vt.removeAttribute("data-" + gt);
67939
+ ["placement", "reference-hidden", "escaped"].forEach(function(mt) {
67940
+ mt === "placement" ? Vt.setAttribute("data-placement", Qe.placement) : Qe.attributes.popper["data-popper-" + mt] ? Vt.setAttribute("data-" + mt, "") : Vt.removeAttribute("data-" + mt);
67921
67941
  }), Qe.attributes.popper = {};
67922
67942
  }
67923
67943
  }
@@ -67944,7 +67964,7 @@ function m9e(e, t) {
67944
67964
  }, {
67945
67965
  name: "computeStyles",
67946
67966
  options: {
67947
- adaptive: !ft
67967
+ adaptive: !gt
67948
67968
  }
67949
67969
  }, gn];
67950
67970
  A() && at && At.push({
@@ -68028,7 +68048,7 @@ function m9e(e, t) {
68028
68048
  var fe = v.state.isVisible, Be = v.state.isDestroyed, Oe = !v.state.isEnabled, ze = ka.isTouch && !v.props.touch, qe = t6(v.props.duration, 0, Ri.duration);
68029
68049
  if (!(fe || Be || Oe || ze) && !M().hasAttribute("disabled") && (U("onShow", [v], !1), v.props.onShow(v) !== !1)) {
68030
68050
  if (v.state.isVisible = !0, A() && (D.style.visibility = "visible"), R(), ee(), v.state.isMounted || (D.style.transition = "none"), A()) {
68031
- var ft = j(), at = ft.box, Mt = ft.content;
68051
+ var gt = j(), at = gt.box, Mt = gt.content;
68032
68052
  n6([at, Mt], 0);
68033
68053
  }
68034
68054
  p = function() {
@@ -68050,8 +68070,8 @@ function m9e(e, t) {
68050
68070
  var fe = !v.state.isVisible, Be = v.state.isDestroyed, Oe = !v.state.isEnabled, ze = t6(v.props.duration, 1, Ri.duration);
68051
68071
  if (!(fe || Be || Oe) && (U("onHide", [v], !1), v.props.onHide(v) !== !1)) {
68052
68072
  if (v.state.isVisible = !1, v.state.isShown = !1, u = !1, s = !1, A() && (D.style.visibility = "hidden"), L(), J(), R(!0), A()) {
68053
- var qe = j(), ft = qe.box, at = qe.content;
68054
- v.props.animation && (n6([ft, at], ze), jN([ft, at], "hidden"));
68073
+ var qe = j(), gt = qe.box, at = qe.content;
68074
+ v.props.animation && (n6([gt, at], ze), jN([gt, at], "hidden"));
68055
68075
  }
68056
68076
  $(), H(), v.props.animation ? A() && le(ze, v.unmount) : v.unmount();
68057
68077
  }
@@ -82636,9 +82656,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
82636
82656
  for (se.max_code = W, ye = te.heap_len >> 1; 1 <= ye; ye--) X(te, ie, ye);
82637
82657
  for (ge = I; ye = te.heap[1], te.heap[1] = te.heap[te.heap_len--], X(te, ie, 1), ke = te.heap[1], te.heap[--te.heap_max] = ye, te.heap[--te.heap_max] = ke, ie[2 * ge] = ie[2 * ye] + ie[2 * ke], te.depth[ge] = (te.depth[ye] >= te.depth[ke] ? te.depth[ye] : te.depth[ke]) + 1, ie[2 * ye + 1] = ie[2 * ke + 1] = ge, te.heap[1] = ge++, X(te, ie, 1), 2 <= te.heap_len; ) ;
82638
82658
  te.heap[--te.heap_max] = te.heap[1], function(Q, ae) {
82639
- var me, ve, Ee, De, fe, Be, Oe = ae.dyn_tree, ze = ae.max_code, qe = ae.stat_desc.static_tree, ft = ae.stat_desc.has_stree, at = ae.stat_desc.extra_bits, Mt = ae.stat_desc.extra_base, gn = ae.stat_desc.max_length, At = 0;
82659
+ var me, ve, Ee, De, fe, Be, Oe = ae.dyn_tree, ze = ae.max_code, qe = ae.stat_desc.static_tree, gt = ae.stat_desc.has_stree, at = ae.stat_desc.extra_bits, Mt = ae.stat_desc.extra_base, gn = ae.stat_desc.max_length, At = 0;
82640
82660
  for (De = 0; De <= m; De++) Q.bl_count[De] = 0;
82641
- for (Oe[2 * Q.heap[Q.heap_max] + 1] = 0, me = Q.heap_max + 1; me < g; me++) gn < (De = Oe[2 * Oe[2 * (ve = Q.heap[me]) + 1] + 1] + 1) && (De = gn, At++), Oe[2 * ve + 1] = De, ze < ve || (Q.bl_count[De]++, fe = 0, Mt <= ve && (fe = at[ve - Mt]), Be = Oe[2 * ve], Q.opt_len += Be * (De + fe), ft && (Q.static_len += Be * (qe[2 * ve + 1] + fe)));
82661
+ for (Oe[2 * Q.heap[Q.heap_max] + 1] = 0, me = Q.heap_max + 1; me < g; me++) gn < (De = Oe[2 * Oe[2 * (ve = Q.heap[me]) + 1] + 1] + 1) && (De = gn, At++), Oe[2 * ve + 1] = De, ze < ve || (Q.bl_count[De]++, fe = 0, Mt <= ve && (fe = at[ve - Mt]), Be = Oe[2 * ve], Q.opt_len += Be * (De + fe), gt && (Q.static_len += Be * (qe[2 * ve + 1] + fe)));
82642
82662
  if (At !== 0) {
82643
82663
  do {
82644
82664
  for (De = gn - 1; Q.bl_count[De] === 0; ) De--;
@@ -108885,19 +108905,19 @@ function Gze({
108885
108905
  var pee = Gze;
108886
108906
  const hee = Yn(
108887
108907
  (e, t) => {
108888
- const [n, r] = Ne(0), o = Ae(
108908
+ const [n, r] = Ne(0), o = Ce(
108889
108909
  (l) => {
108890
108910
  const u = e.items[l];
108891
108911
  u && e.command(u);
108892
108912
  },
108893
108913
  [e]
108894
- ), i = Ae(() => {
108914
+ ), i = Ce(() => {
108895
108915
  r(
108896
108916
  (l) => (l + e.items.length - 1) % e.items.length
108897
108917
  );
108898
- }, [e.items.length]), s = Ae(() => {
108918
+ }, [e.items.length]), s = Ce(() => {
108899
108919
  r((l) => (l + 1) % e.items.length);
108900
- }, [e.items.length]), a = Ae(() => {
108920
+ }, [e.items.length]), a = Ce(() => {
108901
108921
  o(n);
108902
108922
  }, [o, n]);
108903
108923
  return _e(() => {
@@ -169733,7 +169753,7 @@ const s$e = (e, t, { state: n, dispatch: r }) => {
169733
169753
  command: t,
169734
169754
  editor: n
169735
169755
  }) => {
169736
- const [r, o] = Ne(0), [i, s] = Ne(e), a = or("(max-width: 640px)"), l = q2(n, "callout"), u = q2(n, "codeBlock"), c = q2(n, "column"), d = q2(n, "table"), p = Ae(
169756
+ const [r, o] = Ne(0), [i, s] = Ne(e), a = or("(max-width: 640px)"), l = q2(n, "callout"), u = q2(n, "codeBlock"), c = q2(n, "column"), d = q2(n, "table"), p = Ce(
169737
169757
  (f) => {
169738
169758
  const g = i[f];
169739
169759
  g && (g.title === "Continue writing" || t(g));
@@ -171279,7 +171299,7 @@ const MR = () => {
171279
171299
  }, [u]), _e(() => {
171280
171300
  c(_), p(!!N);
171281
171301
  }, [_, N]);
171282
- const K = Ae(() => {
171302
+ const K = Ce(() => {
171283
171303
  var me, ve;
171284
171304
  if (!w) return "";
171285
171305
  const se = t.getJSON();
@@ -171311,7 +171331,7 @@ const MR = () => {
171311
171331
  }
171312
171332
  return ge = (ce + W).trim(), ge && (ge = `Document context (${be} chars before, ${Q} chars after):
171313
171333
  ${ge}`), ge;
171314
- }, [t, n, w]), oe = Ae(async () => {
171334
+ }, [t, n, w]), oe = Ce(async () => {
171315
171335
  var se;
171316
171336
  if (u.trim())
171317
171337
  try {
@@ -171368,7 +171388,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
171368
171388
  K,
171369
171389
  w,
171370
171390
  r
171371
- ]), ee = Ae(() => {
171391
+ ]), ee = Ce(() => {
171372
171392
  if ($.current) {
171373
171393
  $.current.abort(), l(!1), s(!1);
171374
171394
  const se = setTimeout(() => {
@@ -171380,7 +171400,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
171380
171400
  }, 0);
171381
171401
  return () => clearTimeout(se);
171382
171402
  }
171383
- }, []), J = Ae(() => {
171403
+ }, []), J = Ce(() => {
171384
171404
  if (typeof n == "function") {
171385
171405
  m(!0);
171386
171406
  const se = setTimeout(() => {
@@ -171399,7 +171419,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
171399
171419
  }, 150);
171400
171420
  return () => clearTimeout(se);
171401
171421
  }
171402
- }, [n, t, e.nodeSize, N, o]), le = Ae(() => {
171422
+ }, [n, t, e.nodeSize, N, o]), le = Ce(() => {
171403
171423
  if (typeof n == "function") {
171404
171424
  m(!0);
171405
171425
  const se = setTimeout(() => {
@@ -171418,14 +171438,14 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
171418
171438
  }, 150);
171419
171439
  return () => clearTimeout(se);
171420
171440
  }
171421
- }, [n, t, e.nodeSize, o]), G = Ae(
171441
+ }, [n, t, e.nodeSize, o]), G = Ce(
171422
171442
  (se) => {
171423
171443
  c(se.target.value);
171424
171444
  },
171425
171445
  []
171426
- ), Z = Ae(() => {
171446
+ ), Z = Ce(() => {
171427
171447
  r && u !== _ && r({ prompt: u });
171428
- }, [r, u, _]), T = Ae(
171448
+ }, [r, u, _]), T = Ce(
171429
171449
  (se) => {
171430
171450
  r == null || r({ model: se });
171431
171451
  const ye = U == null ? void 0 : U.defaultModels.find(
@@ -171434,22 +171454,22 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
171434
171454
  ye && (U != null && U.setActiveModel) && U.setActiveModel(ye);
171435
171455
  },
171436
171456
  [r, U]
171437
- ), X = Ae(() => {
171457
+ ), X = Ce(() => {
171438
171458
  var ye, ke;
171439
171459
  if (r == null || r({ content: "" }), p(!1), f(""), !O.current) return;
171440
171460
  (ye = O.current) == null || ye.focus();
171441
171461
  const se = O.current.value.length;
171442
171462
  (ke = O.current) == null || ke.setSelectionRange(se, se), O.current.scrollTop = O.current.scrollHeight;
171443
- }, [r]), Y = Ae(() => {
171463
+ }, [r]), Y = Ce(() => {
171444
171464
  y(!0);
171445
- }, []), pe = Ae(() => {
171465
+ }, []), pe = Ce(() => {
171446
171466
  if (P) {
171447
171467
  const se = P.getHTML();
171448
171468
  y(!1), r == null || r({ content: se }), f(se);
171449
171469
  }
171450
- }, [P, r]), B = Ae(() => {
171470
+ }, [P, r]), B = Ce(() => {
171451
171471
  y(!1), P && P.commands.setContent(h || N || "");
171452
- }, [P, h, N]), re = Ae(
171472
+ }, [P, h, N]), re = Ce(
171453
171473
  (se) => {
171454
171474
  se.key === "Enter" && (se.ctrlKey || se.metaKey) && !se.shiftKey ? (se.preventDefault(), d && J()) : se.key === "Enter" && !se.shiftKey && !b ? (se.preventDefault(), u.trim() && oe()) : se.key === "Escape" ? (se.preventDefault(), a ? ee() : le()) : se.key === " " && !u.trim() ? (se.preventDefault(), le()) : se.key === "r" && (se.ctrlKey || se.metaKey) ? (se.preventDefault(), X()) : se.key === "e" && (se.ctrlKey || se.metaKey) && (se.preventDefault(), Y());
171455
171475
  },
@@ -171465,7 +171485,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
171465
171485
  a,
171466
171486
  ee
171467
171487
  ]
171468
- ), de = Ae((se) => {
171488
+ ), de = Ce((se) => {
171469
171489
  se ? localStorage.setItem("include-ddoc-context", "true") : localStorage.removeItem("include-ddoc-context");
171470
171490
  }, []);
171471
171491
  _e(() => {
@@ -171499,7 +171519,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
171499
171519
  return () => clearInterval(se);
171500
171520
  }
171501
171521
  }, [i]);
171502
- const V = Ae(
171522
+ const V = Ce(
171503
171523
  () => /* @__PURE__ */ x.jsx("span", { className: "text-body-sm color-text-secondary pt-1 flex items-center gap-1", children: /* @__PURE__ */ x.jsx(lp, { mode: "wait", children: /* @__PURE__ */ x.jsxs(
171504
171524
  "span",
171505
171525
  {
@@ -171882,7 +171902,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
171882
171902
  }) => {
171883
171903
  const [l, u] = Ne(null), [c, d] = Ne([]), p = Se(/* @__PURE__ */ new Map()), h = Se([]), f = Se(i);
171884
171904
  f.current = i;
171885
- const g = Ae(() => {
171905
+ const g = Ce(() => {
171886
171906
  const E = n.current, _ = p.current;
171887
171907
  d(
171888
171908
  h.current.map((N) => _.get(N)).filter((N) => !!N).map((N) => ({
@@ -171891,16 +171911,16 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
171891
171911
  isActive: N.tabId === E
171892
171912
  }))
171893
171913
  );
171894
- }, [n]), m = Ae(
171914
+ }, [n]), m = Ce(
171895
171915
  (E) => {
171896
171916
  a(E.editor), r.current === E.editor && (r.current = null), (o == null ? void 0 : o.current) === E.editor && (o.current = null);
171897
171917
  },
171898
171918
  [r, a, o]
171899
- ), b = Ae(() => {
171919
+ ), b = Ce(() => {
171900
171920
  p.current.forEach((E) => {
171901
171921
  m(E);
171902
171922
  }), p.current.clear(), h.current = [], r.current = null, o && (o.current = null), u(null), d([]);
171903
- }, [r, m, o]), y = Ae(() => {
171923
+ }, [r, m, o]), y = Ce(() => {
171904
171924
  const E = n.current;
171905
171925
  p.current.forEach((_) => {
171906
171926
  const N = _.tabId === E;
@@ -171912,7 +171932,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
171912
171932
  LR(_.editor, !1), hHe(_.editor);
171913
171933
  }
171914
171934
  });
171915
- }, [n]), F = Ae(
171935
+ }, [n]), F = Ce(
171916
171936
  (E) => {
171917
171937
  const _ = p.current;
171918
171938
  let N = _.get(E);
@@ -171922,17 +171942,17 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
171922
171942
  }, _.set(E, N)), N;
171923
171943
  },
171924
171944
  [s]
171925
- ), v = Ae((E) => {
171945
+ ), v = Ce((E) => {
171926
171946
  h.current = [
171927
171947
  E,
171928
171948
  ...h.current.filter((_) => _ !== E)
171929
171949
  ].slice(0, dHe);
171930
- }, []), w = Ae(() => {
171950
+ }, []), w = Ce(() => {
171931
171951
  const E = new Set(h.current);
171932
171952
  p.current.forEach((_, N) => {
171933
171953
  E.has(N) || (m(_), p.current.delete(N));
171934
171954
  });
171935
- }, [m]), D = Ae(
171955
+ }, [m]), D = Ce(
171936
171956
  (E) => {
171937
171957
  const _ = F(E);
171938
171958
  return v(E), w(), r.current = _.editor, u(
@@ -172090,12 +172110,12 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
172090
172110
  }) => {
172091
172111
  const X = (a == null ? void 0 : a.enabled) === !0, Y = X ? a.connection : null, { activeCommentId: pe, setActiveCommentId: B, focusCommentWithActiveId: re } = yHe(), de = Se(ee);
172092
172112
  de.current = ee;
172093
- const V = Se(null), te = !!(w && k), { tocItems: se, setTocItems: ye, handleTocUpdateForTab: ke } = xHe(ee), ge = !!(o && i === "suggest"), ie = Se(r7), ce = T ?? ie, be = Ae(
172113
+ const V = Se(null), te = !!(w && k), { tocItems: se, setTocItems: ye, handleTocUpdateForTab: ke } = xHe(ee), ge = !!(o && i === "suggest"), ie = Se(r7), ce = T ?? ie, be = Ce(
172094
172114
  (Te, Re) => {
172095
172115
  de.current === Te && (B(Re || null), Re && setTimeout(() => re(Re)));
172096
172116
  },
172097
172117
  [re, B]
172098
- ), I = Ae(
172118
+ ), I = Ce(
172099
172119
  (Te, Re, ot) => {
172100
172120
  de.current === Te && ke(Te, Re, ot);
172101
172121
  },
@@ -172133,7 +172153,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
172133
172153
  _e(() => {
172134
172154
  De.current = p;
172135
172155
  }, [p]);
172136
- const fe = Ae(
172156
+ const fe = Ce(
172137
172157
  (Te, Re) => {
172138
172158
  var Gt;
172139
172159
  if (!E0(Te, V.current) || De.current)
@@ -172146,13 +172166,13 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
172146
172166
  [me]
172147
172167
  ), Be = Se(!0), [Oe, ze] = Ne([]), qe = Se(o);
172148
172168
  qe.current = o;
172149
- const ft = Se(C);
172150
- ft.current = C, _e(() => {
172169
+ const gt = Se(C);
172170
+ gt.current = C, _e(() => {
172151
172171
  ee && B(null);
172152
172172
  }, [ee, B]);
172153
- const at = Ae(
172173
+ const at = Ce(
172154
172174
  (Te) => {
172155
- const Re = !ft.current && Be.current && de.current === Te, ot = new Ug({
172175
+ const Re = !gt.current && Be.current && de.current === Te, ot = new Ug({
172156
172176
  extensions: W(Te),
172157
172177
  editorProps: {
172158
172178
  clipboardTextSerializer(ht) {
@@ -172242,7 +172262,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
172242
172262
  Ee,
172243
172263
  ve
172244
172264
  ]
172245
- ), Mt = wt(() => X, [X]), gn = wt(() => o && !ge ? !1 : Mt ? !u : !0, [o, ge, Mt, u]), At = Ae((Te) => {
172265
+ ), Mt = wt(() => X, [X]), gn = wt(() => o && !ge ? !1 : Mt ? !u : !0, [o, ge, Mt, u]), At = Ce((Te) => {
172246
172266
  Gk(Te), cHe(Te), Gk(Te);
172247
172267
  }, []), { editor: Le, cachedEditorEntries: _t } = fHe({
172248
172268
  activeTabId: ee,
@@ -172262,7 +172282,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
172262
172282
  const Te = (Re = Le.view) == null ? void 0 : Re.dom;
172263
172283
  Te && (ge ? Te.setAttribute("data-suggestion-mode", "true") : Te.removeAttribute("data-suggestion-mode"));
172264
172284
  }, [Le, ge]);
172265
- const Qe = Se(null), ut = Se(null), Vt = Se(0), gt = Se(""), xt = Ae(
172285
+ const Qe = Se(null), ut = Se(null), Vt = Se(0), mt = Se(""), xt = Ce(
172266
172286
  (Te) => {
172267
172287
  !Le || Le.isDestroyed || (Qe.current && clearTimeout(Qe.current), Qe.current = setTimeout(() => {
172268
172288
  Qe.current = null;
@@ -172276,14 +172296,14 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
172276
172296
  );
172277
172297
  _e(() => {
172278
172298
  if (!Le) return;
172279
- gt.current = zR(Le.state.doc), xt(0);
172299
+ mt.current = zR(Le.state.doc), xt(0);
172280
172300
  const Te = ({
172281
172301
  transaction: Re
172282
172302
  }) => {
172283
172303
  if (V.current !== Le || !mHe(Re))
172284
172304
  return;
172285
172305
  const ot = zR(Re.doc);
172286
- ot !== gt.current && (gt.current = ot, xt(300));
172306
+ ot !== mt.current && (mt.current = ot, xt(300));
172287
172307
  };
172288
172308
  return Le.on("transaction", Te), () => {
172289
172309
  Le.off("transaction", Te), Qe.current && clearTimeout(Qe.current), V2(ut.current), ut.current = null, Vt.current += 1;
@@ -172304,20 +172324,20 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
172304
172324
  if (!mn) return;
172305
172325
  const Ci = mn.split("-").pop();
172306
172326
  if (Ci) {
172307
- const yt = Array.from(
172327
+ const ft = Array.from(
172308
172328
  ht.querySelectorAll("[data-toc-id]")
172309
172329
  ).find((Zi) => {
172310
172330
  var As;
172311
172331
  return (As = Zi.dataset.tocId) == null ? void 0 : As.includes(Ci);
172312
172332
  });
172313
- if (yt) {
172333
+ if (ft) {
172314
172334
  Re.preventDefault(), Re.stopPropagation();
172315
172335
  const Zi = vh({
172316
- targetElement: yt,
172336
+ targetElement: ft,
172317
172337
  editorRoot: ht
172318
172338
  });
172319
172339
  Zi && requestAnimationFrame(() => {
172320
- const As = Zi.getBoundingClientRect(), al = yt.getBoundingClientRect();
172340
+ const As = Zi.getBoundingClientRect(), al = ft.getBoundingClientRect();
172321
172341
  Zi.scrollBy({
172322
172342
  top: al.top - As.top,
172323
172343
  behavior: "smooth"
@@ -172333,13 +172353,13 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
172333
172353
  }, [o]), _e(() => {
172334
172354
  Mt && M(!l && !L);
172335
172355
  }, [Mt, l, L]);
172336
- const zt = Se(!1), dt = Se(null), vt = Ae(
172356
+ const zt = Se(!1), dt = Se(null), vt = Ce(
172337
172357
  (Te) => {
172338
172358
  const Re = Te.map((ot) => Fo(ot));
172339
172359
  qs(e, ld(Re), "self");
172340
172360
  },
172341
172361
  [e]
172342
- ), St = Ae(
172362
+ ), St = Ce(
172343
172363
  (Te) => Array.isArray(Te) || typeof Te == "string" && !xee(Te),
172344
172364
  []
172345
172365
  );
@@ -172515,7 +172535,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
172515
172535
  Y == null ? void 0 : Y.roomId,
172516
172536
  Y == null ? void 0 : Y.wsUrl
172517
172537
  ]);
172518
- const rn = window.location.hash.startsWith("#") ? window.location.hash.substring(1) : window.location.hash, { isNativeMobile: bt } = Ki(), jt = new URLSearchParams(rn), kn = jt.get("heading"), wn = kn == null ? void 0 : kn.split("-").pop(), st = Ae(
172538
+ const rn = window.location.hash.startsWith("#") ? window.location.hash.substring(1) : window.location.hash, { isNativeMobile: yt } = Ki(), jt = new URLSearchParams(rn), kn = jt.get("heading"), wn = kn == null ? void 0 : kn.split("-").pop(), st = Ce(
172519
172539
  (Te) => {
172520
172540
  if (Le)
172521
172541
  try {
@@ -172537,7 +172557,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
172537
172557
  editorRoot: Le.view.dom
172538
172558
  });
172539
172559
  pn && requestAnimationFrame(() => {
172540
- const In = pn.getBoundingClientRect(), mn = ot.getBoundingClientRect(), Ci = mn.top - In.top - In.height / (bt ? 5 : 7) + mn.height / (bt ? 5 : 7);
172560
+ const In = pn.getBoundingClientRect(), mn = ot.getBoundingClientRect(), Ci = mn.top - In.top - In.height / (yt ? 5 : 7) + mn.height / (yt ? 5 : 7);
172541
172561
  pn.scrollBy({
172542
172562
  top: Ci,
172543
172563
  behavior: "smooth"
@@ -172547,7 +172567,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
172547
172567
  return;
172548
172568
  }
172549
172569
  },
172550
- [Le, bt]
172570
+ [Le, yt]
172551
172571
  );
172552
172572
  _e(() => {
172553
172573
  !o || !wn || oe || setTimeout(() => {
@@ -172556,7 +172576,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
172556
172576
  }, [
172557
172577
  Le,
172558
172578
  o,
172559
- bt,
172579
+ yt,
172560
172580
  wn,
172561
172581
  oe,
172562
172582
  st
@@ -172609,7 +172629,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
172609
172629
  storeApiRef: me
172610
172630
  };
172611
172631
  }, yHe = () => {
172612
- const [e, t] = Ne(null), n = Se(null), r = Ae((o) => {
172632
+ const [e, t] = Ne(null), n = Se(null), r = Ce((o) => {
172613
172633
  if (!n.current) return;
172614
172634
  const i = n.current.querySelector(`input#${o}`);
172615
172635
  i && i.scrollIntoView({
@@ -172632,7 +172652,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
172632
172652
  const a = o.current[e];
172633
172653
  n(a ?? []);
172634
172654
  }, [e]);
172635
- const s = Ae(
172655
+ const s = Ce(
172636
172656
  (a, l, u) => {
172637
172657
  const c = () => {
172638
172658
  o.current = {
@@ -172685,10 +172705,10 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
172685
172705
  v.current = t;
172686
172706
  const w = Se(o);
172687
172707
  w.current = o;
172688
- const D = Ae((U) => {
172708
+ const D = Ce((U) => {
172689
172709
  var $;
172690
172710
  ($ = v.current) == null || $.call(v, U);
172691
- }, []), k = Ae((U) => {
172711
+ }, []), k = Ce((U) => {
172692
172712
  var $;
172693
172713
  ($ = w.current) == null || $.call(w, U);
172694
172714
  }, []), E = Se({
@@ -172703,7 +172723,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
172703
172723
  disableInlineComment: l
172704
172724
  };
172705
172725
  }, [u, a, l]);
172706
- const _ = Ae(
172726
+ const _ = Ce(
172707
172727
  () => S$e(
172708
172728
  D,
172709
172729
  n,
@@ -172726,7 +172746,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
172726
172746
  null
172727
172747
  );
172728
172748
  return {
172729
- buildExtensionsForTab: Ae(
172749
+ buildExtensionsForTab: Ce(
172730
172750
  (U) => {
172731
172751
  const $ = _W.configure({
172732
172752
  HTMLAttributes: {
@@ -172847,7 +172867,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
172847
172867
  }, [e]), _e(() => {
172848
172868
  r.current = t;
172849
172869
  }, [t]);
172850
- const o = Ae(
172870
+ const o = Ce(
172851
172871
  (a, l, u) => {
172852
172872
  let c = !1;
172853
172873
  return a.doc.nodesBetween(l, u, (d) => {
@@ -172857,7 +172877,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
172857
172877
  }), c;
172858
172878
  },
172859
172879
  []
172860
- ), i = Ae(
172880
+ ), i = Ce(
172861
172881
  (a, l) => {
172862
172882
  var m;
172863
172883
  if (n.current)
@@ -172883,7 +172903,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
172883
172903
  return (m = r.current) == null || m.call(r, g), !1;
172884
172904
  },
172885
172905
  [o]
172886
- ), s = Ae(
172906
+ ), s = Ce(
172887
172907
  (a, l, u) => i(a, u),
172888
172908
  [i]
172889
172909
  );
@@ -172994,7 +173014,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
172994
173014
  return () => window.clearTimeout(i);
172995
173015
  }, [e, t, n]);
172996
173016
  }, kHe = (e) => {
172997
- const t = Se([]), n = Se([]), r = Se(!1), o = Ae(
173017
+ const t = Se([]), n = Se([]), r = Se(!1), o = Ce(
172998
173018
  (l, u) => {
172999
173019
  const c = xa(e);
173000
173020
  if (!ng(c, l.tabId))
@@ -173011,15 +173031,15 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
173011
173031
  return !0;
173012
173032
  },
173013
173033
  [e]
173014
- ), i = Ae(() => {
173034
+ ), i = Ce(() => {
173015
173035
  const l = t.current.length > 0 ? t.current[t.current.length - 1] : void 0;
173016
173036
  return !l || !o(l, "undo") ? !1 : (t.current.pop(), n.current.push(l), !0);
173017
- }, [o]), s = Ae(() => {
173037
+ }, [o]), s = Ce(() => {
173018
173038
  const l = n.current, u = l.length ? l[l.length - 1] : void 0;
173019
173039
  return !u || !o(u, "redo") ? !1 : (l.pop(), t.current.push(u), !0);
173020
173040
  }, [o]);
173021
173041
  return {
173022
- applyRename: Ae(
173042
+ applyRename: Ce(
173023
173043
  ({ tabId: l, newName: u, emoji: c }) => {
173024
173044
  const d = xa(e), p = ng(d, l);
173025
173045
  if (!p)
@@ -173054,7 +173074,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
173054
173074
  getEditor: c
173055
173075
  }) => {
173056
173076
  var $;
173057
- const d = n || t !== null, p = Se(!1), h = r && !n && !t, f = Ae(() => {
173077
+ const d = n || t !== null, p = Se(!1), h = r && !n && !t, f = Ce(() => {
173058
173078
  h || u == null || u();
173059
173079
  }, [h, u]), g = wt(() => {
173060
173080
  if (!e)
@@ -173117,7 +173137,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
173117
173137
  const H = m || null;
173118
173138
  l == null || l(H);
173119
173139
  }, [m, l]);
173120
- const O = Ae(
173140
+ const O = Ce(
173121
173141
  (H) => {
173122
173142
  if (!e || H === m) return;
173123
173143
  if (!i || !d) {
@@ -173180,7 +173200,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
173180
173200
  o,
173181
173201
  u
173182
173202
  ]);
173183
- const A = Ae(() => {
173203
+ const A = Ce(() => {
173184
173204
  const H = xa(e), L = H.order, P = WR(), K = {
173185
173205
  name: `Tab ${L.length + 1}`,
173186
173206
  emoji: null,
@@ -173189,7 +173209,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
173189
173209
  return e.transact(() => {
173190
173210
  H.nameById.set(K.id, K.name), H.emojiById.set(K.id, K.emoji), e.getXmlFragment(K.id), i && H.tabState.set("activeTabId", P), L.push([K.id]);
173191
173211
  }), b(P), u == null || u(), P;
173192
- }, [i, e, u]), M = Ae(
173212
+ }, [i, e, u]), M = Ce(
173193
173213
  (H) => {
173194
173214
  const L = xa(e), { order: P } = L;
173195
173215
  if (P.length <= 1)
@@ -173211,7 +173231,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
173211
173231
  }), J && le && b(le), u == null || u();
173212
173232
  },
173213
173233
  [e, i, u]
173214
- ), C = Ae(() => {
173234
+ ), C = Ce(() => {
173215
173235
  const H = w.current;
173216
173236
  if (!H) return !1;
173217
173237
  if (Date.now() - H.timestamp > HR)
@@ -173222,7 +173242,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
173222
173242
  const K = Math.min(H.orderIndex, P.length);
173223
173243
  P.insert(K, [H.tabId]), i && L.tabState.set("activeTabId", H.tabId);
173224
173244
  }), b(H.tabId), w.current = null, u == null || u(), !0);
173225
- }, [e, i, u]), j = Ae(() => {
173245
+ }, [e, i, u]), j = Ce(() => {
173226
173246
  const H = c == null ? void 0 : c();
173227
173247
  if (!H || H.isDestroyed)
173228
173248
  return !0;
@@ -173248,7 +173268,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
173248
173268
  C,
173249
173269
  _
173250
173270
  ]);
173251
- const S = Ae(
173271
+ const S = Ce(
173252
173272
  (H, { newName: L, emoji: P }) => {
173253
173273
  E({ tabId: H, newName: L, emoji: P }).tabNotFound && C8({
173254
173274
  title: "Rename tab error",
@@ -173256,7 +173276,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
173256
173276
  }), u == null || u();
173257
173277
  },
173258
173278
  [E, u]
173259
- ), R = Ae(
173279
+ ), R = Ce(
173260
173280
  (H) => {
173261
173281
  const L = xa(e), { order: P } = L, K = ng(L, H);
173262
173282
  if (!K) {
@@ -173272,7 +173292,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
173272
173292
  }), b(oe), u == null || u(), oe;
173273
173293
  },
173274
173294
  [e, i, u]
173275
- ), U = Ae(
173295
+ ), U = Ce(
173276
173296
  (H, L) => {
173277
173297
  const { order: P } = xa(e), K = P.toArray(), oe = K.indexOf(L), ee = K.indexOf(H);
173278
173298
  oe === -1 || ee === -1 || (e.transact(() => {
@@ -176908,8 +176928,8 @@ var ite = {};
176908
176928
  le[T] = G[T] - Z[T];
176909
176929
  }
176910
176930
  function k(le, G, Z) {
176911
- let T, X, Y = 0, pe = 0, B = 0, re = 0, de = 0, V = 0, te = 0, se = 0, ye = 0, ke = 0, ge = 0, ie = 0, ce = 0, be = 0, I = 0, W = 0, Q = 0, ae = 0, me = 0, ve = 0, Ee = 0, De = 0, fe = 0, Be = 0, Oe = 0, ze = 0, qe = 0, ft = 0, at = 0, Mt = 0, gn = 0, At = Z[0], Le = Z[1], _t = Z[2], Qe = Z[3], ut = Z[4], Vt = Z[5], gt = Z[6], xt = Z[7], zt = Z[8], dt = Z[9], vt = Z[10], St = Z[11], $t = Z[12], bn = Z[13], he = Z[14], Ie = Z[15];
176912
- T = G[0], Y += T * At, pe += T * Le, B += T * _t, re += T * Qe, de += T * ut, V += T * Vt, te += T * gt, se += T * xt, ye += T * zt, ke += T * dt, ge += T * vt, ie += T * St, ce += T * $t, be += T * bn, I += T * he, W += T * Ie, T = G[1], pe += T * At, B += T * Le, re += T * _t, de += T * Qe, V += T * ut, te += T * Vt, se += T * gt, ye += T * xt, ke += T * zt, ge += T * dt, ie += T * vt, ce += T * St, be += T * $t, I += T * bn, W += T * he, Q += T * Ie, T = G[2], B += T * At, re += T * Le, de += T * _t, V += T * Qe, te += T * ut, se += T * Vt, ye += T * gt, ke += T * xt, ge += T * zt, ie += T * dt, ce += T * vt, be += T * St, I += T * $t, W += T * bn, Q += T * he, ae += T * Ie, T = G[3], re += T * At, de += T * Le, V += T * _t, te += T * Qe, se += T * ut, ye += T * Vt, ke += T * gt, ge += T * xt, ie += T * zt, ce += T * dt, be += T * vt, I += T * St, W += T * $t, Q += T * bn, ae += T * he, me += T * Ie, T = G[4], de += T * At, V += T * Le, te += T * _t, se += T * Qe, ye += T * ut, ke += T * Vt, ge += T * gt, ie += T * xt, ce += T * zt, be += T * dt, I += T * vt, W += T * St, Q += T * $t, ae += T * bn, me += T * he, ve += T * Ie, T = G[5], V += T * At, te += T * Le, se += T * _t, ye += T * Qe, ke += T * ut, ge += T * Vt, ie += T * gt, ce += T * xt, be += T * zt, I += T * dt, W += T * vt, Q += T * St, ae += T * $t, me += T * bn, ve += T * he, Ee += T * Ie, T = G[6], te += T * At, se += T * Le, ye += T * _t, ke += T * Qe, ge += T * ut, ie += T * Vt, ce += T * gt, be += T * xt, I += T * zt, W += T * dt, Q += T * vt, ae += T * St, me += T * $t, ve += T * bn, Ee += T * he, De += T * Ie, T = G[7], se += T * At, ye += T * Le, ke += T * _t, ge += T * Qe, ie += T * ut, ce += T * Vt, be += T * gt, I += T * xt, W += T * zt, Q += T * dt, ae += T * vt, me += T * St, ve += T * $t, Ee += T * bn, De += T * he, fe += T * Ie, T = G[8], ye += T * At, ke += T * Le, ge += T * _t, ie += T * Qe, ce += T * ut, be += T * Vt, I += T * gt, W += T * xt, Q += T * zt, ae += T * dt, me += T * vt, ve += T * St, Ee += T * $t, De += T * bn, fe += T * he, Be += T * Ie, T = G[9], ke += T * At, ge += T * Le, ie += T * _t, ce += T * Qe, be += T * ut, I += T * Vt, W += T * gt, Q += T * xt, ae += T * zt, me += T * dt, ve += T * vt, Ee += T * St, De += T * $t, fe += T * bn, Be += T * he, Oe += T * Ie, T = G[10], ge += T * At, ie += T * Le, ce += T * _t, be += T * Qe, I += T * ut, W += T * Vt, Q += T * gt, ae += T * xt, me += T * zt, ve += T * dt, Ee += T * vt, De += T * St, fe += T * $t, Be += T * bn, Oe += T * he, ze += T * Ie, T = G[11], ie += T * At, ce += T * Le, be += T * _t, I += T * Qe, W += T * ut, Q += T * Vt, ae += T * gt, me += T * xt, ve += T * zt, Ee += T * dt, De += T * vt, fe += T * St, Be += T * $t, Oe += T * bn, ze += T * he, qe += T * Ie, T = G[12], ce += T * At, be += T * Le, I += T * _t, W += T * Qe, Q += T * ut, ae += T * Vt, me += T * gt, ve += T * xt, Ee += T * zt, De += T * dt, fe += T * vt, Be += T * St, Oe += T * $t, ze += T * bn, qe += T * he, ft += T * Ie, T = G[13], be += T * At, I += T * Le, W += T * _t, Q += T * Qe, ae += T * ut, me += T * Vt, ve += T * gt, Ee += T * xt, De += T * zt, fe += T * dt, Be += T * vt, Oe += T * St, ze += T * $t, qe += T * bn, ft += T * he, at += T * Ie, T = G[14], I += T * At, W += T * Le, Q += T * _t, ae += T * Qe, me += T * ut, ve += T * Vt, Ee += T * gt, De += T * xt, fe += T * zt, Be += T * dt, Oe += T * vt, ze += T * St, qe += T * $t, ft += T * bn, at += T * he, Mt += T * Ie, T = G[15], W += T * At, Q += T * Le, ae += T * _t, me += T * Qe, ve += T * ut, Ee += T * Vt, De += T * gt, fe += T * xt, Be += T * zt, Oe += T * dt, ze += T * vt, qe += T * St, ft += T * $t, at += T * bn, Mt += T * he, gn += T * Ie, Y += 38 * Q, pe += 38 * ae, B += 38 * me, re += 38 * ve, de += 38 * Ee, V += 38 * De, te += 38 * fe, se += 38 * Be, ye += 38 * Oe, ke += 38 * ze, ge += 38 * qe, ie += 38 * ft, ce += 38 * at, be += 38 * Mt, I += 38 * gn, X = 1, T = Y + X + 65535, X = Math.floor(T / 65536), Y = T - X * 65536, T = pe + X + 65535, X = Math.floor(T / 65536), pe = T - X * 65536, T = B + X + 65535, X = Math.floor(T / 65536), B = T - X * 65536, T = re + X + 65535, X = Math.floor(T / 65536), re = T - X * 65536, T = de + X + 65535, X = Math.floor(T / 65536), de = T - X * 65536, T = V + X + 65535, X = Math.floor(T / 65536), V = T - X * 65536, T = te + X + 65535, X = Math.floor(T / 65536), te = T - X * 65536, T = se + X + 65535, X = Math.floor(T / 65536), se = T - X * 65536, T = ye + X + 65535, X = Math.floor(T / 65536), ye = T - X * 65536, T = ke + X + 65535, X = Math.floor(T / 65536), ke = T - X * 65536, T = ge + X + 65535, X = Math.floor(T / 65536), ge = T - X * 65536, T = ie + X + 65535, X = Math.floor(T / 65536), ie = T - X * 65536, T = ce + X + 65535, X = Math.floor(T / 65536), ce = T - X * 65536, T = be + X + 65535, X = Math.floor(T / 65536), be = T - X * 65536, T = I + X + 65535, X = Math.floor(T / 65536), I = T - X * 65536, T = W + X + 65535, X = Math.floor(T / 65536), W = T - X * 65536, Y += X - 1 + 37 * (X - 1), X = 1, T = Y + X + 65535, X = Math.floor(T / 65536), Y = T - X * 65536, T = pe + X + 65535, X = Math.floor(T / 65536), pe = T - X * 65536, T = B + X + 65535, X = Math.floor(T / 65536), B = T - X * 65536, T = re + X + 65535, X = Math.floor(T / 65536), re = T - X * 65536, T = de + X + 65535, X = Math.floor(T / 65536), de = T - X * 65536, T = V + X + 65535, X = Math.floor(T / 65536), V = T - X * 65536, T = te + X + 65535, X = Math.floor(T / 65536), te = T - X * 65536, T = se + X + 65535, X = Math.floor(T / 65536), se = T - X * 65536, T = ye + X + 65535, X = Math.floor(T / 65536), ye = T - X * 65536, T = ke + X + 65535, X = Math.floor(T / 65536), ke = T - X * 65536, T = ge + X + 65535, X = Math.floor(T / 65536), ge = T - X * 65536, T = ie + X + 65535, X = Math.floor(T / 65536), ie = T - X * 65536, T = ce + X + 65535, X = Math.floor(T / 65536), ce = T - X * 65536, T = be + X + 65535, X = Math.floor(T / 65536), be = T - X * 65536, T = I + X + 65535, X = Math.floor(T / 65536), I = T - X * 65536, T = W + X + 65535, X = Math.floor(T / 65536), W = T - X * 65536, Y += X - 1 + 37 * (X - 1), le[0] = Y, le[1] = pe, le[2] = B, le[3] = re, le[4] = de, le[5] = V, le[6] = te, le[7] = se, le[8] = ye, le[9] = ke, le[10] = ge, le[11] = ie, le[12] = ce, le[13] = be, le[14] = I, le[15] = W;
176931
+ let T, X, Y = 0, pe = 0, B = 0, re = 0, de = 0, V = 0, te = 0, se = 0, ye = 0, ke = 0, ge = 0, ie = 0, ce = 0, be = 0, I = 0, W = 0, Q = 0, ae = 0, me = 0, ve = 0, Ee = 0, De = 0, fe = 0, Be = 0, Oe = 0, ze = 0, qe = 0, gt = 0, at = 0, Mt = 0, gn = 0, At = Z[0], Le = Z[1], _t = Z[2], Qe = Z[3], ut = Z[4], Vt = Z[5], mt = Z[6], xt = Z[7], zt = Z[8], dt = Z[9], vt = Z[10], St = Z[11], $t = Z[12], bn = Z[13], he = Z[14], Ie = Z[15];
176932
+ T = G[0], Y += T * At, pe += T * Le, B += T * _t, re += T * Qe, de += T * ut, V += T * Vt, te += T * mt, se += T * xt, ye += T * zt, ke += T * dt, ge += T * vt, ie += T * St, ce += T * $t, be += T * bn, I += T * he, W += T * Ie, T = G[1], pe += T * At, B += T * Le, re += T * _t, de += T * Qe, V += T * ut, te += T * Vt, se += T * mt, ye += T * xt, ke += T * zt, ge += T * dt, ie += T * vt, ce += T * St, be += T * $t, I += T * bn, W += T * he, Q += T * Ie, T = G[2], B += T * At, re += T * Le, de += T * _t, V += T * Qe, te += T * ut, se += T * Vt, ye += T * mt, ke += T * xt, ge += T * zt, ie += T * dt, ce += T * vt, be += T * St, I += T * $t, W += T * bn, Q += T * he, ae += T * Ie, T = G[3], re += T * At, de += T * Le, V += T * _t, te += T * Qe, se += T * ut, ye += T * Vt, ke += T * mt, ge += T * xt, ie += T * zt, ce += T * dt, be += T * vt, I += T * St, W += T * $t, Q += T * bn, ae += T * he, me += T * Ie, T = G[4], de += T * At, V += T * Le, te += T * _t, se += T * Qe, ye += T * ut, ke += T * Vt, ge += T * mt, ie += T * xt, ce += T * zt, be += T * dt, I += T * vt, W += T * St, Q += T * $t, ae += T * bn, me += T * he, ve += T * Ie, T = G[5], V += T * At, te += T * Le, se += T * _t, ye += T * Qe, ke += T * ut, ge += T * Vt, ie += T * mt, ce += T * xt, be += T * zt, I += T * dt, W += T * vt, Q += T * St, ae += T * $t, me += T * bn, ve += T * he, Ee += T * Ie, T = G[6], te += T * At, se += T * Le, ye += T * _t, ke += T * Qe, ge += T * ut, ie += T * Vt, ce += T * mt, be += T * xt, I += T * zt, W += T * dt, Q += T * vt, ae += T * St, me += T * $t, ve += T * bn, Ee += T * he, De += T * Ie, T = G[7], se += T * At, ye += T * Le, ke += T * _t, ge += T * Qe, ie += T * ut, ce += T * Vt, be += T * mt, I += T * xt, W += T * zt, Q += T * dt, ae += T * vt, me += T * St, ve += T * $t, Ee += T * bn, De += T * he, fe += T * Ie, T = G[8], ye += T * At, ke += T * Le, ge += T * _t, ie += T * Qe, ce += T * ut, be += T * Vt, I += T * mt, W += T * xt, Q += T * zt, ae += T * dt, me += T * vt, ve += T * St, Ee += T * $t, De += T * bn, fe += T * he, Be += T * Ie, T = G[9], ke += T * At, ge += T * Le, ie += T * _t, ce += T * Qe, be += T * ut, I += T * Vt, W += T * mt, Q += T * xt, ae += T * zt, me += T * dt, ve += T * vt, Ee += T * St, De += T * $t, fe += T * bn, Be += T * he, Oe += T * Ie, T = G[10], ge += T * At, ie += T * Le, ce += T * _t, be += T * Qe, I += T * ut, W += T * Vt, Q += T * mt, ae += T * xt, me += T * zt, ve += T * dt, Ee += T * vt, De += T * St, fe += T * $t, Be += T * bn, Oe += T * he, ze += T * Ie, T = G[11], ie += T * At, ce += T * Le, be += T * _t, I += T * Qe, W += T * ut, Q += T * Vt, ae += T * mt, me += T * xt, ve += T * zt, Ee += T * dt, De += T * vt, fe += T * St, Be += T * $t, Oe += T * bn, ze += T * he, qe += T * Ie, T = G[12], ce += T * At, be += T * Le, I += T * _t, W += T * Qe, Q += T * ut, ae += T * Vt, me += T * mt, ve += T * xt, Ee += T * zt, De += T * dt, fe += T * vt, Be += T * St, Oe += T * $t, ze += T * bn, qe += T * he, gt += T * Ie, T = G[13], be += T * At, I += T * Le, W += T * _t, Q += T * Qe, ae += T * ut, me += T * Vt, ve += T * mt, Ee += T * xt, De += T * zt, fe += T * dt, Be += T * vt, Oe += T * St, ze += T * $t, qe += T * bn, gt += T * he, at += T * Ie, T = G[14], I += T * At, W += T * Le, Q += T * _t, ae += T * Qe, me += T * ut, ve += T * Vt, Ee += T * mt, De += T * xt, fe += T * zt, Be += T * dt, Oe += T * vt, ze += T * St, qe += T * $t, gt += T * bn, at += T * he, Mt += T * Ie, T = G[15], W += T * At, Q += T * Le, ae += T * _t, me += T * Qe, ve += T * ut, Ee += T * Vt, De += T * mt, fe += T * xt, Be += T * zt, Oe += T * dt, ze += T * vt, qe += T * St, gt += T * $t, at += T * bn, Mt += T * he, gn += T * Ie, Y += 38 * Q, pe += 38 * ae, B += 38 * me, re += 38 * ve, de += 38 * Ee, V += 38 * De, te += 38 * fe, se += 38 * Be, ye += 38 * Oe, ke += 38 * ze, ge += 38 * qe, ie += 38 * gt, ce += 38 * at, be += 38 * Mt, I += 38 * gn, X = 1, T = Y + X + 65535, X = Math.floor(T / 65536), Y = T - X * 65536, T = pe + X + 65535, X = Math.floor(T / 65536), pe = T - X * 65536, T = B + X + 65535, X = Math.floor(T / 65536), B = T - X * 65536, T = re + X + 65535, X = Math.floor(T / 65536), re = T - X * 65536, T = de + X + 65535, X = Math.floor(T / 65536), de = T - X * 65536, T = V + X + 65535, X = Math.floor(T / 65536), V = T - X * 65536, T = te + X + 65535, X = Math.floor(T / 65536), te = T - X * 65536, T = se + X + 65535, X = Math.floor(T / 65536), se = T - X * 65536, T = ye + X + 65535, X = Math.floor(T / 65536), ye = T - X * 65536, T = ke + X + 65535, X = Math.floor(T / 65536), ke = T - X * 65536, T = ge + X + 65535, X = Math.floor(T / 65536), ge = T - X * 65536, T = ie + X + 65535, X = Math.floor(T / 65536), ie = T - X * 65536, T = ce + X + 65535, X = Math.floor(T / 65536), ce = T - X * 65536, T = be + X + 65535, X = Math.floor(T / 65536), be = T - X * 65536, T = I + X + 65535, X = Math.floor(T / 65536), I = T - X * 65536, T = W + X + 65535, X = Math.floor(T / 65536), W = T - X * 65536, Y += X - 1 + 37 * (X - 1), X = 1, T = Y + X + 65535, X = Math.floor(T / 65536), Y = T - X * 65536, T = pe + X + 65535, X = Math.floor(T / 65536), pe = T - X * 65536, T = B + X + 65535, X = Math.floor(T / 65536), B = T - X * 65536, T = re + X + 65535, X = Math.floor(T / 65536), re = T - X * 65536, T = de + X + 65535, X = Math.floor(T / 65536), de = T - X * 65536, T = V + X + 65535, X = Math.floor(T / 65536), V = T - X * 65536, T = te + X + 65535, X = Math.floor(T / 65536), te = T - X * 65536, T = se + X + 65535, X = Math.floor(T / 65536), se = T - X * 65536, T = ye + X + 65535, X = Math.floor(T / 65536), ye = T - X * 65536, T = ke + X + 65535, X = Math.floor(T / 65536), ke = T - X * 65536, T = ge + X + 65535, X = Math.floor(T / 65536), ge = T - X * 65536, T = ie + X + 65535, X = Math.floor(T / 65536), ie = T - X * 65536, T = ce + X + 65535, X = Math.floor(T / 65536), ce = T - X * 65536, T = be + X + 65535, X = Math.floor(T / 65536), be = T - X * 65536, T = I + X + 65535, X = Math.floor(T / 65536), I = T - X * 65536, T = W + X + 65535, X = Math.floor(T / 65536), W = T - X * 65536, Y += X - 1 + 37 * (X - 1), le[0] = Y, le[1] = pe, le[2] = B, le[3] = re, le[4] = de, le[5] = V, le[6] = te, le[7] = se, le[8] = ye, le[9] = ke, le[10] = ge, le[11] = ie, le[12] = ce, le[13] = be, le[14] = I, le[15] = W;
176913
176933
  }
176914
176934
  function E(le, G) {
176915
176935
  k(le, G, G);
@@ -177440,14 +177460,14 @@ var pte = { exports: {} };
177440
177460
  return new p(this.value * this.value);
177441
177461
  };
177442
177462
  function S(I, W) {
177443
- var Q = I.length, ae = W.length, me = r, ve = b(W.length), Ee = W[ae - 1], De = Math.ceil(me / (2 * Ee)), fe = N(I, De), Be = N(W, De), Oe, ze, qe, ft, at, Mt, gn;
177463
+ var Q = I.length, ae = W.length, me = r, ve = b(W.length), Ee = W[ae - 1], De = Math.ceil(me / (2 * Ee)), fe = N(I, De), Be = N(W, De), Oe, ze, qe, gt, at, Mt, gn;
177444
177464
  for (fe.length <= Q && fe.push(0), Be.push(0), Ee = Be[ae - 1], ze = Q - ae; ze >= 0; ze--) {
177445
- for (Oe = me - 1, fe[ze + ae] !== Ee && (Oe = Math.floor((fe[ze + ae] * me + fe[ze + ae - 1]) / Ee)), qe = 0, ft = 0, Mt = Be.length, at = 0; at < Mt; at++)
177446
- qe += Oe * Be[at], gn = Math.floor(qe / me), ft += fe[ze + at] - (qe - gn * me), qe = gn, ft < 0 ? (fe[ze + at] = ft + me, ft = -1) : (fe[ze + at] = ft, ft = 0);
177447
- for (; ft !== 0; ) {
177465
+ for (Oe = me - 1, fe[ze + ae] !== Ee && (Oe = Math.floor((fe[ze + ae] * me + fe[ze + ae - 1]) / Ee)), qe = 0, gt = 0, Mt = Be.length, at = 0; at < Mt; at++)
177466
+ qe += Oe * Be[at], gn = Math.floor(qe / me), gt += fe[ze + at] - (qe - gn * me), qe = gn, gt < 0 ? (fe[ze + at] = gt + me, gt = -1) : (fe[ze + at] = gt, gt = 0);
177467
+ for (; gt !== 0; ) {
177448
177468
  for (Oe -= 1, qe = 0, at = 0; at < Mt; at++)
177449
177469
  qe += fe[ze + at] - me + Be[at], qe < 0 ? (fe[ze + at] = qe + me, qe = 0) : (fe[ze + at] = qe, qe = 1);
177450
- ft += qe;
177470
+ gt += qe;
177451
177471
  }
177452
177472
  ve[ze] = Oe;
177453
177473
  }
@@ -177718,8 +177738,8 @@ var pte = { exports: {} };
177718
177738
  W = ce(W);
177719
177739
  for (var ae = I.isNegative(), me = W.isNegative(), ve = ae ? I.not() : I, Ee = me ? W.not() : W, De = 0, fe = 0, Be = null, Oe = null, ze = []; !ve.isZero() || !Ee.isZero(); )
177720
177740
  Be = $(ve, ee), De = Be[1].toJSNumber(), ae && (De = ee - 1 - De), Oe = $(Ee, ee), fe = Oe[1].toJSNumber(), me && (fe = ee - 1 - fe), ve = Be[0], Ee = Oe[0], ze.push(Q(De, fe));
177721
- for (var qe = Q(ae ? 1 : 0, me ? 1 : 0) !== 0 ? t(-1) : t(0), ft = ze.length - 1; ft >= 0; ft -= 1)
177722
- qe = qe.multiply(ee).add(t(ze[ft]));
177741
+ for (var qe = Q(ae ? 1 : 0, me ? 1 : 0) !== 0 ? t(-1) : t(0), gt = ze.length - 1; gt >= 0; gt -= 1)
177742
+ qe = qe.multiply(ee).add(t(ze[gt]));
177723
177743
  return qe;
177724
177744
  }
177725
177745
  c.prototype.not = function() {
@@ -182568,7 +182588,7 @@ const KGe = { status: "idle" }, GGe = (e) => {
182568
182588
  var h;
182569
182589
  (h = r.current) == null || h.forceCleanup();
182570
182590
  }, []);
182571
- const a = Ae(
182591
+ const a = Ce(
182572
182592
  (h) => {
182573
182593
  o.connect(h).catch((f) => {
182574
182594
  console.error("useSyncManager: connect failed", f);
@@ -182576,9 +182596,9 @@ const KGe = { status: "idle" }, GGe = (e) => {
182576
182596
  },
182577
182597
  // eslint-disable-next-line react-hooks/exhaustive-deps
182578
182598
  [e.ydoc]
182579
- ), l = Ae(() => {
182599
+ ), l = Ce(() => {
182580
182600
  o.disconnect();
182581
- }, [o]), u = Ae(() => {
182601
+ }, [o]), u = Ce(() => {
182582
182602
  o.terminateSession();
182583
182603
  }, [o]), c = t.status === "syncing", d = t.status === "ready" && !!s, p = t.status === "ready" || t.status === "reconnecting";
182584
182604
  return {
@@ -182612,7 +182632,7 @@ const KGe = { status: "idle" }, GGe = (e) => {
182612
182632
  callbacks: c,
182613
182633
  onLocalUpdate: e,
182614
182634
  ignoredOrigins: [d]
182615
- }), F = Ae(async () => {
182635
+ }), F = Ce(async () => {
182616
182636
  const k = d.current;
182617
182637
  if (k && await k.destroy(), t && n) {
182618
182638
  a(!1);
@@ -182632,7 +182652,7 @@ const KGe = { status: "idle" }, GGe = (e) => {
182632
182652
  _e(() => {
182633
182653
  w.current = e;
182634
182654
  }, [e]);
182635
- const D = Ae(() => {
182655
+ const D = Ce(() => {
182636
182656
  var k;
182637
182657
  v.current && (clearTimeout(v.current), v.current = null), (k = w.current) == null || k.call(w, tr(yo(i)), "");
182638
182658
  }, [i]);
@@ -182717,10 +182737,17 @@ const KGe = { status: "idle" }, GGe = (e) => {
182717
182737
  isPresentationMode: !!D,
182718
182738
  isPreviewEditor: !!$,
182719
182739
  isCollaboratorsDoc: T,
182740
+ isFocusMode: !!b,
182720
182741
  // Real value is merged in by ddoc-editor (which knows Split View state).
182721
182742
  isSplitView: !1
182722
182743
  }),
182723
- [T, D, $, e]
182744
+ [
182745
+ T,
182746
+ b,
182747
+ D,
182748
+ $,
182749
+ e
182750
+ ]
182724
182751
  ), Y = Se(X);
182725
182752
  Y.current = X;
182726
182753
  const pe = XGe({
@@ -182838,7 +182865,7 @@ const KGe = { status: "idle" }, GGe = (e) => {
182838
182865
  ipfsImageFetchFn: a,
182839
182866
  fetchV1ImageFn: l
182840
182867
  }
182841
- ), [p, h] = Ne(""), [f, g] = Ne(""), [m, b] = Ne(!0), [y, F] = Ne(!0), v = Ae(() => {
182868
+ ), [p, h] = Ne(""), [f, g] = Ne(""), [m, b] = Ne(!0), [y, F] = Ne(!0), v = Ce(() => {
182842
182869
  if (!e) return;
182843
182870
  if ((p === null || p === "") && (f === "" || f === null)) {
182844
182871
  c(tt.NONE);
@@ -182862,7 +182889,7 @@ const KGe = { status: "idle" }, GGe = (e) => {
182862
182889
  }).run(), F(!0), b(!0), c(tt.NONE);
182863
182890
  const A = I3(p);
182864
182891
  A && !A.headingEl && (t == null || t("This heading link belongs to a different document."));
182865
- }, [e, f, t, c, p]), w = Ae(() => {
182892
+ }, [e, f, t, c, p]), w = Ce(() => {
182866
182893
  if (!e) return { text: "", url: "" };
182867
182894
  const { from: k, to: E } = e.state.selection, _ = e.state.doc.textBetween(k, E), N = e.getAttributes("link");
182868
182895
  return {
@@ -182886,7 +182913,7 @@ const KGe = { status: "idle" }, GGe = (e) => {
182886
182913
  g(k), h(E);
182887
182914
  }
182888
182915
  }, [u, e, w]);
182889
- const D = Ae(
182916
+ const D = Ce(
182890
182917
  () => o((k) => !k),
182891
182918
  [o]
182892
182919
  );
@@ -183682,7 +183709,7 @@ const dXe = ({
183682
183709
  ].includes(ee.name)
183683
183710
  ),
183684
183711
  editable: !a
183685
- }), [a]), U = Ae(async () => {
183712
+ }), [a]), U = Ce(async () => {
183686
183713
  var T;
183687
183714
  if (!e || !((T = e.view) != null && T.dom)) return;
183688
183715
  if (!a && e.view.dom.querySelector(".is-editor-empty")) {
@@ -183725,13 +183752,13 @@ const dXe = ({
183725
183752
  _e(() => {
183726
183753
  U();
183727
183754
  }, [e.state.doc]);
183728
- const $ = Ae(() => {
183755
+ const $ = Ce(() => {
183729
183756
  E ? r((ee) => !ee) : document.fullscreenElement ? document.exitFullscreen ? document.exitFullscreen().then(() => r(!1)).catch(() => {
183730
183757
  r(!1);
183731
183758
  }) : r(!1) : document.documentElement.requestFullscreen ? document.documentElement.requestFullscreen().then(() => r(!0)).catch(() => {
183732
183759
  r(!0);
183733
183760
  }) : r(!0);
183734
- }, [E]), H = Ae(
183761
+ }, [E]), H = Ce(
183735
183762
  (ee) => {
183736
183763
  ee.key === "ArrowRight" || ee.key === "ArrowDown" || ee.code === "Space" ? (ee.preventDefault(), ee.stopPropagation(), j("forward"), w((J) => Math.min(J + 1, c.length - 1))) : ee.key === "ArrowLeft" || ee.key === "ArrowUp" ? (j("backward"), w((J) => Math.max(J - 1, 0))) : ee.key === "Escape" ? !a && t() : (ee.key === "f" || ee.key === "F") && $();
183737
183764
  },
@@ -183749,7 +183776,7 @@ const dXe = ({
183749
183776
  A(null), N(ee.targetTouches[0].clientX);
183750
183777
  }, P = (ee) => {
183751
183778
  A(ee.targetTouches[0].clientX);
183752
- }, K = Ae(() => {
183779
+ }, K = Ce(() => {
183753
183780
  if (!_ || !O) return;
183754
183781
  const ee = _ - O, J = ee > M, le = ee < -M;
183755
183782
  J && (j("forward"), w((G) => Math.min(G + 1, c.length - 1))), le && (j("backward"), w((G) => Math.max(G - 1, 0)));
@@ -185132,18 +185159,18 @@ const Qte = ({
185132
185159
  f
185133
185160
  ] = Ne(!1), g = r !== null && n !== null && r.location === "drawer" && // Auth-pending drafts intentionally fall back to the non-draft drawer route so
185134
185161
  // mobile can show the auth screen without discarding the tracked draft.
185135
- !r.isAuthPending, m = Ae(() => {
185162
+ !r.isAuthPending, m = Ce(() => {
185136
185163
  n && u(n);
185137
- }, [n, u]), b = Ae(() => {
185164
+ }, [n, u]), b = Ce(() => {
185138
185165
  o && (f(!1), l(o.suggestionId), t(null), a == null || a(!0));
185139
185166
  }, [
185140
185167
  o,
185141
185168
  a,
185142
185169
  t,
185143
185170
  l
185144
- ]), y = Ae(() => {
185171
+ ]), y = Ce(() => {
185145
185172
  o && (f(!1), s(o.suggestionId));
185146
- }, [o, s]), F = Ae(() => {
185173
+ }, [o, s]), F = Ce(() => {
185147
185174
  i({
185148
185175
  location: "drawer",
185149
185176
  allowEmptySelection: !0,
@@ -185186,15 +185213,15 @@ const Qte = ({
185186
185213
  ), f = i === _0 ? e : i, g = ((D = p.find((k) => k.id === i)) == null ? void 0 : D.label) ?? Xd, m = t.filter((k) => {
185187
185214
  const E = k.tabId || Nn;
185188
185215
  return !(i === _0 || E === i) || k.deleted ? !1 : r === "active" ? !k.resolved : r === "resolved" ? !!k.resolved : !0;
185189
- }), b = r === "resolved" ? "Resolved" : r === "all" ? "All comments" : "Active", y = Ae((k) => {
185216
+ }), b = r === "resolved" ? "Resolved" : r === "all" ? "All comments" : "Active", y = Ce((k) => {
185190
185217
  l(k), k && c(!1);
185191
- }, []), F = Ae((k) => {
185218
+ }, []), F = Ce((k) => {
185192
185219
  c(k), k && l(!1);
185193
- }, []), v = Ae(() => {
185220
+ }, []), v = Ce(() => {
185194
185221
  o("all"), s(_0);
185195
185222
  }, []);
185196
185223
  return {
185197
- closeFilterSelects: Ae(() => {
185224
+ closeFilterSelects: Ce(() => {
185198
185225
  l(!1), c(!1);
185199
185226
  }, []),
185200
185227
  commentType: r,
@@ -185222,7 +185249,7 @@ const Qte = ({
185222
185249
  onTabChange: o,
185223
185250
  setOpenReplyId: i
185224
185251
  }) => {
185225
- const [s, a] = Ne(null), l = Ae(
185252
+ const [s, a] = Ne(null), l = Ce(
185226
185253
  (c, d) => {
185227
185254
  const p = d || Nn;
185228
185255
  if (p !== e) {
@@ -185256,7 +185283,7 @@ const Qte = ({
185256
185283
  s,
185257
185284
  i
185258
185285
  ]), {
185259
- clearPendingCommentFocus: Ae(
185286
+ clearPendingCommentFocus: Ce(
185260
185287
  () => a(null),
185261
185288
  []
185262
185289
  ),
@@ -185320,9 +185347,9 @@ const Qte = ({
185320
185347
  [e]
185321
185348
  ), s = i.findIndex(
185322
185349
  (h) => h.id === r
185323
- ), a = s > 0, l = s >= 0 && s < i.length - 1, u = Ae(() => {
185350
+ ), a = s > 0, l = s >= 0 && s < i.length - 1, u = Ce(() => {
185324
185351
  o(null);
185325
- }, [o]), c = Ae(
185352
+ }, [o]), c = Ce(
185326
185353
  (h) => {
185327
185354
  const f = i[h];
185328
185355
  f != null && f.id && (o(f.id), n(f.id, f.tabId), requestAnimationFrame(() => {
@@ -185337,13 +185364,13 @@ const Qte = ({
185337
185364
  }));
185338
185365
  },
185339
185366
  [i, t, n, o]
185340
- ), d = Ae(() => {
185367
+ ), d = Ce(() => {
185341
185368
  a && c(s - 1);
185342
185369
  }, [
185343
185370
  a,
185344
185371
  c,
185345
185372
  s
185346
- ]), p = Ae(() => {
185373
+ ]), p = Ce(() => {
185347
185374
  l && c(s + 1);
185348
185375
  }, [l, c, s]);
185349
185376
  return {
@@ -185828,18 +185855,18 @@ const LXe = Number.POSITIVE_INFINITY, jb = (e) => e.isVisible && e.isMeasured &&
185828
185855
  lastCommittedTranslateY: e.lastCommittedTranslateY,
185829
185856
  invalidationFlags: e.invalidationFlags
185830
185857
  }), JXe = () => {
185831
- const e = Se(/* @__PURE__ */ new Map()), t = Se(/* @__PURE__ */ new Set()), n = Se(null), r = Se(null), o = Ae((l) => {
185858
+ const e = Se(/* @__PURE__ */ new Map()), t = Se(/* @__PURE__ */ new Set()), n = Se(null), r = Se(null), o = Ce((l) => {
185832
185859
  t.current.add(l);
185833
- }, []), i = Ae(
185860
+ }, []), i = Ce(
185834
185861
  (l) => {
185835
185862
  l.forEach((u) => {
185836
185863
  t.current.add(u.floatingCardId);
185837
185864
  });
185838
185865
  },
185839
185866
  []
185840
- ), s = Ae(() => {
185867
+ ), s = Ce(() => {
185841
185868
  e.current.clear(), t.current.clear(), n.current = null, r.current = null;
185842
- }, []), a = Ae(
185869
+ }, []), a = Ce(
185843
185870
  ({
185844
185871
  currentCycle: l,
185845
185872
  currentDocVersion: u,
@@ -185959,7 +185986,7 @@ const LXe = Number.POSITIVE_INFINITY, jb = (e) => e.isVisible && e.isMeasured &&
185959
185986
  ), t = Se([]), n = Se(/* @__PURE__ */ new Map()), r = Se(!0), o = Se(/* @__PURE__ */ new Set()), i = Se({
185960
185987
  recomputeFromIndex: 0
185961
185988
  // When something changes, layout restarts from recomputeFromIndex instead of from the top.
185962
- }), s = Se([]), [a, l] = Ne([]), u = Ae((v) => {
185989
+ }), s = Se([]), [a, l] = Ne([]), u = Ce((v) => {
185963
185990
  const w = e.current.get(v);
185964
185991
  if (w)
185965
185992
  return w;
@@ -185979,20 +186006,20 @@ const LXe = Number.POSITIVE_INFINITY, jb = (e) => e.isVisible && e.isMeasured &&
185979
186006
  invalidationFlags: _r.Anchor
185980
186007
  };
185981
186008
  return e.current.set(v, D), D;
185982
- }, []), c = Ae((v) => n.current.get(v) ?? null, []), d = Ae((v) => {
186009
+ }, []), c = Ce((v) => n.current.get(v) ?? null, []), d = Ce((v) => {
185983
186010
  i.current.recomputeFromIndex = Math.min(
185984
186011
  i.current.recomputeFromIndex,
185985
186012
  Math.max(0, v)
185986
186013
  );
185987
- }, []), p = Ae(
186014
+ }, []), p = Ce(
185988
186015
  (v, w) => {
185989
186016
  const D = u(v);
185990
186017
  D.invalidationFlags |= w;
185991
186018
  },
185992
186019
  [u]
185993
- ), h = Ae(() => {
186020
+ ), h = Ce(() => {
185994
186021
  r.current = !0;
185995
- }, []), f = Ae(
186022
+ }, []), f = Ce(
185996
186023
  (v) => {
185997
186024
  const w = v.map(
185998
186025
  (k) => k.floatingCardId
@@ -186017,7 +186044,7 @@ const LXe = Number.POSITIVE_INFINITY, jb = (e) => e.isVisible && e.isMeasured &&
186017
186044
  ), r.current = !1, D;
186018
186045
  },
186019
186046
  [u]
186020
- ), g = Ae(
186047
+ ), g = Ce(
186021
186048
  (v) => {
186022
186049
  Array.from(e.current.keys()).forEach(
186023
186050
  (w) => {
@@ -186026,7 +186053,7 @@ const LXe = Number.POSITIVE_INFINITY, jb = (e) => e.isVisible && e.isMeasured &&
186026
186053
  );
186027
186054
  },
186028
186055
  []
186029
- ), m = Ae(
186056
+ ), m = Ce(
186030
186057
  (v) => {
186031
186058
  const w = new Set(
186032
186059
  s.current
@@ -186043,7 +186070,7 @@ const LXe = Number.POSITIVE_INFINITY, jb = (e) => e.isVisible && e.isMeasured &&
186043
186070
  });
186044
186071
  },
186045
186072
  []
186046
- ), b = Ae(
186073
+ ), b = Ce(
186047
186074
  (v) => {
186048
186075
  t.current.forEach((w, D) => {
186049
186076
  if (D > v)
@@ -186053,12 +186080,12 @@ const LXe = Number.POSITIVE_INFINITY, jb = (e) => e.isVisible && e.isMeasured &&
186053
186080
  });
186054
186081
  },
186055
186082
  []
186056
- ), y = Ae(
186083
+ ), y = Ce(
186057
186084
  () => t.current.map(
186058
186085
  (v) => ZXe(u(v))
186059
186086
  ),
186060
186087
  [u]
186061
- ), F = Ae(() => {
186088
+ ), F = Ce(() => {
186062
186089
  e.current.clear(), t.current = [], n.current.clear(), r.current = !0, o.current.clear(), i.current.recomputeFromIndex = 0, s.current = [], l([]);
186063
186090
  }, []);
186064
186091
  return {
@@ -186157,7 +186184,7 @@ const LXe = Number.POSITIVE_INFINITY, jb = (e) => e.isVisible && e.isMeasured &&
186157
186184
  B
186158
186185
  ])
186159
186186
  );
186160
- const Y = Ae(() => {
186187
+ const Y = Ce(() => {
186161
186188
  X.current.rafId === null && (X.current.rafId = window.requestAnimationFrame(() => {
186162
186189
  var Vt;
186163
186190
  X.current.rafId = null;
@@ -186193,9 +186220,9 @@ const LXe = Number.POSITIVE_INFINITY, jb = (e) => e.isVisible && e.isMeasured &&
186193
186220
  const { orderedFloatingCardIds: I, firstChangedIndex: W } = C(ge);
186194
186221
  if (W !== null) {
186195
186222
  N(W);
186196
- const gt = I[W];
186197
- gt && E(
186198
- gt,
186223
+ const mt = I[W];
186224
+ mt && E(
186225
+ mt,
186199
186226
  _r.Anchor
186200
186227
  );
186201
186228
  }
@@ -186208,14 +186235,14 @@ const LXe = Number.POSITIVE_INFINITY, jb = (e) => e.isVisible && e.isMeasured &&
186208
186235
  le.current - ae.top
186209
186236
  ) > 0.5) && (le.current = ae.top, T.current.containerOffset += 1);
186210
186237
  const Ee = Q.height, De = Q.top - ae.top, fe = De + Ee, Be = T.current.appliedScroll !== T.current.scroll, Oe = T.current.appliedContainerOffset !== T.current.containerOffset;
186211
- A.current.forEach((gt, xt) => {
186212
- const zt = ie.get(gt);
186238
+ A.current.forEach((mt, xt) => {
186239
+ const zt = ie.get(mt);
186213
186240
  if (!zt)
186214
186241
  return;
186215
- const dt = w(gt), { anchorId: vt } = Rx(zt), St = p.current.get(vt);
186242
+ const dt = w(mt), { anchorId: vt } = Rx(zt), St = p.current.get(vt);
186216
186243
  if (!St) {
186217
186244
  dt.isInViewport && (dt.isInViewport = !1, E(
186218
- gt,
186245
+ mt,
186219
186246
  _r.Visibility
186220
186247
  ), N(xt)), dt.anchorTop = null, dt.anchorHeight = 0;
186221
186248
  return;
@@ -186234,19 +186261,19 @@ const LXe = Number.POSITIVE_INFINITY, jb = (e) => e.isVisible && e.isMeasured &&
186234
186261
  viewportHeight: Ee
186235
186262
  }), he = dt.anchorVersion !== St.anchorVersion;
186236
186263
  if ((!St.cachedRect || dt.isInViewport || bn || he || !dt.isMeasured || Oe && bn || Be && dt.isInViewport) && ML(St, re)) {
186237
- const bt = GXe({
186264
+ const yt = GXe({
186238
186265
  elements: St.elements,
186239
186266
  viewportTop: Q.top,
186240
186267
  viewportBottom: Q.bottom
186241
186268
  });
186242
- if (bt) {
186243
- const jt = bt.top - ae.top;
186244
- dt.anchorTop = jt, dt.anchorHeight = bt.height, St.cachedRect = {
186269
+ if (yt) {
186270
+ const jt = yt.top - ae.top;
186271
+ dt.anchorTop = jt, dt.anchorHeight = yt.height, St.cachedRect = {
186245
186272
  top: jt,
186246
- height: bt.height,
186273
+ height: yt.height,
186247
186274
  scrollTop: de.scrollTop,
186248
186275
  containerTop: ae.top
186249
- }, $t = { top: jt, height: bt.height };
186276
+ }, $t = { top: jt, height: yt.height };
186250
186277
  } else $t && (dt.anchorTop = $t.top, dt.anchorHeight = $t.height);
186251
186278
  }
186252
186279
  dt.anchorVersion = St.anchorVersion;
@@ -186264,45 +186291,45 @@ const LXe = Number.POSITIVE_INFINITY, jb = (e) => e.isVisible && e.isMeasured &&
186264
186291
  viewportHeight: Ee
186265
186292
  }), rn = et || Qt;
186266
186293
  if (dt.isInViewport !== rn) {
186267
- const bt = dt.isInViewport;
186294
+ const yt = dt.isInViewport;
186268
186295
  dt.isInViewport = rn, E(
186269
- gt,
186296
+ mt,
186270
186297
  _r.Visibility
186271
- ), N(xt), !bt && rn && (dt.needsTransformSync = !0, D.current.add(gt), ye = !0);
186298
+ ), N(xt), !yt && rn && (dt.needsTransformSync = !0, D.current.add(mt), ye = !0);
186272
186299
  }
186273
186300
  }), T.current.appliedScroll = T.current.scroll, T.current.appliedContainerOffset = T.current.containerOffset;
186274
- const ze = A.current.filter((gt) => {
186275
- const xt = y.current.get(gt);
186301
+ const ze = A.current.filter((mt) => {
186302
+ const xt = y.current.get(mt);
186276
186303
  return !!(xt != null && xt.isInViewport);
186277
- }), { didChange: qe, previousMountedFloatingCardIds: ft } = S(ze);
186278
- qe && ze.forEach((gt) => {
186279
- if (ft.has(gt))
186304
+ }), { didChange: qe, previousMountedFloatingCardIds: gt } = S(ze);
186305
+ qe && ze.forEach((mt) => {
186306
+ if (gt.has(mt))
186280
186307
  return;
186281
- D.current.add(gt);
186282
- const xt = v(gt);
186308
+ D.current.add(mt);
186309
+ const xt = v(mt);
186283
186310
  E(
186284
- gt,
186311
+ mt,
186285
186312
  _r.Height | _r.Visibility
186286
186313
  ), N(xt ?? 0), ye = !0;
186287
- }), D.current.forEach((gt) => {
186288
- const xt = P.current.cardNodes.get(gt), zt = y.current.get(gt);
186314
+ }), D.current.forEach((mt) => {
186315
+ const xt = P.current.cardNodes.get(mt), zt = y.current.get(mt);
186289
186316
  if (!xt || !zt)
186290
186317
  return;
186291
186318
  const dt = Math.round(xt.offsetHeight);
186292
186319
  if (dt > 0 && (!zt.isMeasured || zt.height !== dt)) {
186293
186320
  zt.height = dt, zt.isMeasured = !0;
186294
- const vt = v(gt);
186321
+ const vt = v(mt);
186295
186322
  E(
186296
- gt,
186323
+ mt,
186297
186324
  _r.Height
186298
186325
  ), N(vt ?? 0);
186299
186326
  }
186300
186327
  }), D.current.clear();
186301
186328
  let at = Number.POSITIVE_INFINITY;
186302
186329
  const Mt = A.current.reduce(
186303
- (gt, xt, zt) => {
186330
+ (mt, xt, zt) => {
186304
186331
  const dt = y.current.get(xt);
186305
- return !dt || dt.invalidationFlags === _r.None ? gt : (at = Math.min(at, zt), zt);
186332
+ return !dt || dt.invalidationFlags === _r.None ? mt : (at = Math.min(at, zt), zt);
186306
186333
  },
186307
186334
  -1
186308
186335
  ), gn = Math.min(
@@ -186318,11 +186345,11 @@ const LXe = Number.POSITIVE_INFINITY, jb = (e) => e.isVisible && e.isMeasured &&
186318
186345
  });
186319
186346
  At && Le.usedFocusedLayout && (ee.current = !1);
186320
186347
  let _t = 0;
186321
- A.current.forEach((gt) => {
186322
- const xt = y.current.get(gt), zt = P.current.cardNodes.get(gt);
186348
+ A.current.forEach((mt) => {
186349
+ const xt = y.current.get(mt), zt = P.current.cardNodes.get(mt);
186323
186350
  if (!xt)
186324
186351
  return;
186325
- const dt = Le.placements.get(gt) ?? {
186352
+ const dt = Le.placements.get(mt) ?? {
186326
186353
  translateY: xt.translateY,
186327
186354
  isVisible: xt.lastCommittedVisible
186328
186355
  }, vt = dt.translateY ?? xt.translateY ?? xt.lastCommittedTranslateY;
@@ -186335,7 +186362,7 @@ const LXe = Number.POSITIVE_INFINITY, jb = (e) => e.isVisible && e.isMeasured &&
186335
186362
  }
186336
186363
  if (!zt)
186337
186364
  return;
186338
- Le.placements.has(gt) && (xt.translateY = dt.translateY);
186365
+ Le.placements.has(mt) && (xt.translateY = dt.translateY);
186339
186366
  const St = b8(dt.translateY);
186340
186367
  (xt.needsTransformSync && St !== null || St !== xt.lastCommittedTranslateY) && St !== null && (zt.style.transform = `translateY(${St}px)`, xt.lastCommittedTranslateY = St, xt.needsTransformSync = !1);
186341
186368
  const bn = !!dt.isVisible && xt.isMeasured && xt.anchorTop !== null && !l;
@@ -186347,8 +186374,8 @@ const LXe = Number.POSITIVE_INFINITY, jb = (e) => e.isVisible && e.isMeasured &&
186347
186374
  Z.current !== ut && (V.style.setProperty(
186348
186375
  tYe,
186349
186376
  `${ut}px`
186350
- ), Z.current = ut), b(Le.stopIndex), k.current.recomputeFromIndex = A.current.length, ce.size > 0 && ce.forEach((gt) => {
186351
- t(gt);
186377
+ ), Z.current = ut), b(Le.stopIndex), k.current.recomputeFromIndex = A.current.length, ce.size > 0 && ce.forEach((mt) => {
186378
+ t(mt);
186352
186379
  }), ye && ge.length > 0 && Y();
186353
186380
  }));
186354
186381
  }, [
@@ -186376,7 +186403,7 @@ const LXe = Number.POSITIVE_INFINITY, jb = (e) => e.isVisible && e.isMeasured &&
186376
186403
  m,
186377
186404
  S,
186378
186405
  p
186379
- ]), pe = Ae(
186406
+ ]), pe = Ce(
186380
186407
  (B, re) => {
186381
186408
  var V, te;
186382
186409
  const de = P.current.cardNodes.get(B);
@@ -186722,7 +186749,7 @@ const uYe = ({
186722
186749
  isHidden: t,
186723
186750
  registerCardNode: n
186724
186751
  }) => {
186725
- const r = Me((c) => c.focusFloatingCard), o = Me((c) => c.inlineDrafts[e.draftId]), i = Me((c) => c.username), s = Me((c) => c.isConnected), a = Se(null), l = la(i), u = Ae(
186752
+ const r = Me((c) => c.focusFloatingCard), o = Me((c) => c.inlineDrafts[e.draftId]), i = Me((c) => c.username), s = Me((c) => c.isConnected), a = Se(null), l = la(i), u = Ce(
186726
186753
  (c) => {
186727
186754
  a.current = c, n(e.floatingCardId, c);
186728
186755
  },
@@ -186825,7 +186852,7 @@ const uYe = ({
186825
186852
  isHidden: t,
186826
186853
  registerCardNode: n
186827
186854
  }) => {
186828
- const r = Me((g) => g.focusFloatingCard), o = Me((g) => g.submitDraft), i = Me((g) => g.discardDraft), s = Me((g) => g.isConnected), a = !!e.selectedText, l = !!e.insertedText, u = !!e.linkHref, c = a || l || u, d = Me((g) => g.username), p = la(d), h = Ae(
186855
+ const r = Me((g) => g.focusFloatingCard), o = Me((g) => g.submitDraft), i = Me((g) => g.discardDraft), s = Me((g) => g.isConnected), a = !!e.selectedText, l = !!e.insertedText, u = !!e.linkHref, c = a || l || u, d = Me((g) => g.username), p = la(d), h = Ce(
186829
186856
  (g) => {
186830
186857
  n(e.floatingCardId, g);
186831
186858
  },
@@ -186903,7 +186930,7 @@ const uYe = ({
186903
186930
  registerCardNode: r,
186904
186931
  isCollaborationEnabled: o
186905
186932
  }) => {
186906
- const i = Me((y) => y.focusFloatingCard), s = Me((y) => y.focusCommentInEditor), a = Me((y) => y.isDDocOwner), l = Me((y) => y.username), u = Me((y) => y.acceptSuggestion), c = Me((y) => y.deleteComment), d = Ae(
186933
+ const i = Me((y) => y.focusFloatingCard), s = Me((y) => y.focusCommentInEditor), a = Me((y) => y.isDDocOwner), l = Me((y) => y.username), u = Me((y) => y.acceptSuggestion), c = Me((y) => y.deleteComment), d = Ce(
186907
186934
  (y) => {
186908
186935
  r(e.floatingCardId, y);
186909
186936
  },
@@ -187172,7 +187199,7 @@ const uYe = ({
187172
187199
  e.commentId && (f(!1), d(e.commentId));
187173
187200
  }, F = () => {
187174
187201
  s(e.floatingCardId), !e.isFocused && e.commentId && a(e.commentId);
187175
- }, v = Ae(
187202
+ }, v = Ce(
187176
187203
  (w) => {
187177
187204
  o(e.floatingCardId, w);
187178
187205
  },
@@ -187442,7 +187469,7 @@ const uYe = ({
187442
187469
  }, 500)
187443
187470
  );
187444
187471
  }
187445
- const u = Ae(
187472
+ const u = Ce(
187446
187473
  (p) => {
187447
187474
  p.preventDefault(), p.stopPropagation(), rd(a) && t(p, a);
187448
187475
  },
@@ -187509,7 +187536,7 @@ const sne = bf(
187509
187536
  const [o, i] = Ne(null), s = or("(max-width: 1280px)"), a = Se(null), l = Se(0), u = Se(null), c = wt(() => e.map((m) => ({
187510
187537
  ...m,
187511
187538
  isActive: rd(m.id) && m.id === o
187512
- })), [e, o]), d = Ae(() => {
187539
+ })), [e, o]), d = Ce(() => {
187513
187540
  var m;
187514
187541
  if (t && ((m = t.view) != null && m.dom) && (!a.current || Date.now() - l.current > 250)) {
187515
187542
  const b = /* @__PURE__ */ new Map();
@@ -187531,7 +187558,7 @@ const sne = bf(
187531
187558
  t.off("update", m), t.off("selectionUpdate", m), u.current && cancelAnimationFrame(u.current);
187532
187559
  };
187533
187560
  }, [t, d]);
187534
- const p = Ae(
187561
+ const p = Ce(
187535
187562
  (m) => {
187536
187563
  if (!t) return;
187537
187564
  const { doc: b } = t.state;
@@ -187546,7 +187573,7 @@ const sne = bf(
187546
187573
  }), y !== -1 && t.chain().setNodeSelection(y).updateAttributes("heading", { isCollapsed: !1 }).run();
187547
187574
  },
187548
187575
  [t]
187549
- ), h = Ae(
187576
+ ), h = Ce(
187550
187577
  (m) => {
187551
187578
  if (!t) return;
187552
187579
  p(m);
@@ -187574,7 +187601,7 @@ const sne = bf(
187574
187601
  }
187575
187602
  },
187576
187603
  [e, t, p]
187577
- ), f = Ae(
187604
+ ), f = Ce(
187578
187605
  (m, b) => {
187579
187606
  var y;
187580
187607
  if (m.preventDefault(), m.stopPropagation(), i(b), t && ((y = t.view) != null && y.dom)) {
@@ -187604,7 +187631,7 @@ const sne = bf(
187604
187631
  }
187605
187632
  },
187606
187633
  [t, h, d, s]
187607
- ), g = Ae(
187634
+ ), g = Ce(
187608
187635
  (m, b) => {
187609
187636
  m.preventDefault(), m.stopPropagation(), n((y) => {
187610
187637
  const F = y.findIndex((w) => w.id === b), v = y.filter((w) => w.id !== b);
@@ -187745,7 +187772,7 @@ const kYe = [
187745
187772
  // @ts-ignore
187746
187773
  !a.current.contains(g.target) && s(!1);
187747
187774
  });
187748
- const f = Ae(() => {
187775
+ const f = Ce(() => {
187749
187776
  var m;
187750
187777
  const g = (m = l.current) == null ? void 0 : m.getBoundingClientRect();
187751
187778
  if (g) {
@@ -188455,10 +188482,10 @@ const NYe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
188455
188482
  ), O = wt(
188456
188483
  () => e.find((P) => P.id === E),
188457
188484
  [e, E]
188458
- ), [A, M] = Ne(null), [C, j] = Ne(!1), [S, R] = Ne({}), U = Ae(
188485
+ ), [A, M] = Ne(null), [C, j] = Ne(!1), [S, R] = Ne({}), U = Ce(
188459
188486
  (P) => P === t ? S[P] ?? !1 : !1,
188460
188487
  [t, S]
188461
- ), $ = Ae(
188488
+ ), $ = Ce(
188462
188489
  (P, K) => {
188463
188490
  if (P !== t) {
188464
188491
  n(P), R((oe) => ({
@@ -188474,7 +188501,7 @@ const NYe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
188474
188501
  }));
188475
188502
  },
188476
188503
  [t, n]
188477
- ), H = Ae(
188504
+ ), H = Ce(
188478
188505
  (P) => {
188479
188506
  if (P !== t) {
188480
188507
  n(P), R((K) => ({
@@ -189335,15 +189362,15 @@ const NYe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
189335
189362
  )) return !1;
189336
189363
  const { state: p } = u, { selection: h } = p, f = Jx(h.$from, u.schema.marks.link);
189337
189364
  return f ? p.doc.textBetween(f.from, f.to) === c : !1;
189338
- }, i = Ae(() => {
189365
+ }, i = Ce(() => {
189339
189366
  const u = e.state.selection.to, c = e.getAttributes("link").href;
189340
189367
  e.commands.extendMarkRange("link", { href: c }), e.chain().focus().setTextSelection(u).unsetMark("link").insertContent(" ").run();
189341
- }, [e]), s = Ae(
189368
+ }, [e]), s = Ce(
189342
189369
  (u) => {
189343
189370
  r.current && r.current.contains(u.target) || i();
189344
189371
  },
189345
189372
  [i]
189346
- ), a = Ae(
189373
+ ), a = Ce(
189347
189374
  (u) => {
189348
189375
  var f, g;
189349
189376
  const { key: c } = u, d = document.activeElement;
@@ -189465,19 +189492,17 @@ const NYe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
189465
189492
  }
189466
189493
  ) });
189467
189494
  }, WYe = ({ onFocusMode: e } = {}) => {
189468
- const [t, n] = Ne(!1), r = or("(max-width: 1024px)");
189469
- _e(() => {
189495
+ const [t, n] = Ne(!1), r = or("(max-width: 1024px)"), o = Ce(async () => {
189496
+ n((i) => (e == null || e(!i), !i));
189497
+ }, [e]);
189498
+ return _e(() => {
189470
189499
  const i = (s) => {
189471
189500
  s.metaKey && s.shiftKey && s.key.toLowerCase() === "f" && (s.preventDefault(), o());
189472
189501
  };
189473
189502
  return window.addEventListener("keydown", i), () => {
189474
189503
  window.removeEventListener("keydown", i);
189475
189504
  };
189476
- }, [r]);
189477
- const o = async () => {
189478
- n((i) => (e == null || e(!i), !i));
189479
- };
189480
- return { isFocusMode: t, toggleFocusMode: o };
189505
+ }, [r, o]), { isFocusMode: t, toggleFocusMode: o };
189481
189506
  }, qYe = ({
189482
189507
  dropdownOpen: e,
189483
189508
  setDropdownOpen: t,
@@ -189556,7 +189581,7 @@ const NYe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
189556
189581
  ] });
189557
189582
  };
189558
189583
  function VYe(e) {
189559
- const [t, n] = Ne(!1), r = Se(e), o = Se(null), i = Ae(() => {
189584
+ const [t, n] = Ne(!1), r = Se(e), o = Se(null), i = Ce(() => {
189560
189585
  if (!r.current) {
189561
189586
  n(!1);
189562
189587
  return;
@@ -189587,13 +189612,13 @@ function VYe(e) {
189587
189612
  );
189588
189613
  }
189589
189614
  const KYe = (e, t) => {
189590
- const { hasAIWriter: n } = VYe(e), r = Ae(() => {
189615
+ const { hasAIWriter: n } = VYe(e), r = Ce(() => {
189591
189616
  const a = t();
189592
189617
  if (!a)
189593
189618
  return;
189594
189619
  const l = a.editor.chain();
189595
189620
  l.setNodeSelection(a.pos).unsetAllMarks(), a.node.type.name !== "paragraph" && l.setParagraph(), l.run();
189596
- }, [t]), o = Ae(() => {
189621
+ }, [t]), o = Ce(() => {
189597
189622
  if (n)
189598
189623
  return;
189599
189624
  const a = t();
@@ -189605,14 +189630,14 @@ const KYe = (e, t) => {
189605
189630
  a.pos + a.node.nodeSize,
189606
189631
  u.toJSON()
189607
189632
  ).run();
189608
- }, [n, t]), i = Ae(() => {
189633
+ }, [n, t]), i = Ce(() => {
189609
189634
  const a = t();
189610
189635
  a && (a.editor.chain().setMeta("hideDragHandle", !0).setNodeSelection(a.pos).run(), document.execCommand("copy"), C8({
189611
189636
  title: "Copied to clipboard",
189612
189637
  toastType: "mini",
189613
189638
  variant: "success"
189614
189639
  }));
189615
- }, [t]), s = Ae(() => {
189640
+ }, [t]), s = Ce(() => {
189616
189641
  const a = t();
189617
189642
  a && (pke(a.editor, a.pos), a.editor.chain().setMeta("hideDragHandle", !0).setNodeSelection(a.pos).deleteSelection().run());
189618
189643
  }, [t]);
@@ -192453,19 +192478,19 @@ const KYe = (e, t) => {
192453
192478
  name: e,
192454
192479
  className: t
192455
192480
  }
192456
- ) : typeof e == "string" ? /* @__PURE__ */ x.jsx("span", { className: t, children: e }) : null, QYe = (e, t, n, r, o, i, s) => i || s ? null : /* @__PURE__ */ x.jsxs(vre, { className: "template-buttons space-x-0 gap-2 absolute top-8 left-0 md:!left-[unset] md:-translate-y-1 md:!right-0 md:!top-0 z-40 group-has-[.is-editor-empty[dir='rtl']]/collision:md:!left-0 group-has-[.is-editor-empty[dir='rtl']]/collision:md:!right-[unset]", children: [
192457
- e.map((a, l) => /* @__PURE__ */ x.jsxs(
192481
+ ) : typeof e == "string" ? /* @__PURE__ */ x.jsx("span", { className: t, children: e }) : null, QYe = (e, t, n, r, o, i, s, a) => i || s || a ? null : /* @__PURE__ */ x.jsxs(vre, { className: "template-buttons space-x-0 gap-2 absolute top-8 left-0 md:!left-[unset] md:-translate-y-1 md:!right-0 md:!top-0 z-40 group-has-[.is-editor-empty[dir='rtl']]/collision:md:!left-0 group-has-[.is-editor-empty[dir='rtl']]/collision:md:!right-[unset]", children: [
192482
+ e.map((l, u) => /* @__PURE__ */ x.jsxs(
192458
192483
  Nt,
192459
192484
  {
192460
- onClick: a.onClick,
192485
+ onClick: l.onClick,
192461
192486
  variant: "ghost",
192462
192487
  className: "gap-2 color-bg-default-hover text-body-sm color-text-default rounded-lg hover:brightness-95 transition-all min-w-fit",
192463
192488
  children: [
192464
- RL(a.icon),
192465
- /* @__PURE__ */ x.jsx("span", { children: a.label })
192489
+ RL(l.icon),
192490
+ /* @__PURE__ */ x.jsx("span", { children: l.label })
192466
192491
  ]
192467
192492
  },
192468
- l
192493
+ u
192469
192494
  )),
192470
192495
  /* @__PURE__ */ x.jsx(
192471
192496
  Sr,
@@ -192481,18 +192506,18 @@ const KYe = (e, t) => {
192481
192506
  }
192482
192507
  ),
192483
192508
  content: /* @__PURE__ */ x.jsxs("div", { className: "flex flex-col gap-1 p-2 w-[12rem]", children: [
192484
- /* @__PURE__ */ x.jsx("div", { className: "max-h-44 overflow-auto gap-1 flex flex-col", children: t.slice(0, n).map((a, l) => /* @__PURE__ */ x.jsxs(
192509
+ /* @__PURE__ */ x.jsx("div", { className: "max-h-44 overflow-auto gap-1 flex flex-col", children: t.slice(0, n).map((l, u) => /* @__PURE__ */ x.jsxs(
192485
192510
  Nt,
192486
192511
  {
192487
- onClick: a.onClick,
192512
+ onClick: l.onClick,
192488
192513
  variant: "ghost",
192489
192514
  className: "justify-start gap-2 text-body-sm color-text-default min-w-fit px-2 rounded-lg",
192490
192515
  children: [
192491
- RL(a.icon),
192492
- /* @__PURE__ */ x.jsx("span", { children: a.label })
192516
+ RL(l.icon),
192517
+ /* @__PURE__ */ x.jsx("span", { children: l.label })
192493
192518
  ]
192494
192519
  },
192495
- l
192520
+ u
192496
192521
  )) }),
192497
192522
  /* @__PURE__ */ x.jsx(Bb, { className: "w-full !border-t-[1px]" }),
192498
192523
  /* @__PURE__ */ x.jsxs(
@@ -192959,7 +192984,7 @@ const yZe = Tt.memo(
192959
192984
  runtimeState: n,
192960
192985
  refreshKey: r
192961
192986
  }) => {
192962
- const o = or("(max-width: 1024px)"), [i, s] = Ne(!1), a = wt(() => D8(e, t), [e, t, r]), l = Ae(
192987
+ const o = or("(max-width: 1024px)"), [i, s] = Ne(!1), a = wt(() => D8(e, t), [e, t, r]), l = Ce(
192963
192988
  () => D8(e, t),
192964
192989
  [e, t]
192965
192990
  ), u = KYe(e, l);
@@ -193073,36 +193098,37 @@ const WL = (e, t) => {
193073
193098
  runtimeState: t,
193074
193099
  refreshKey: n
193075
193100
  }) => {
193076
- const [r, o] = Ne(!1), [i, s] = Ne(2), a = wt(() => WL(e, t), [e, t, n]), l = Ae(
193077
- (p) => {
193078
- const h = WL(e, t);
193079
- h && (e == null || e.commands.insertContentAt(
193080
- h.pos + h.node.nodeSize - 4,
193081
- p
193101
+ const [r, o] = Ne(!1), [i, s] = Ne(2), a = t.isFocusMode, l = wt(() => WL(e, t), [e, t, n]), u = Ce(
193102
+ (h) => {
193103
+ const f = WL(e, t);
193104
+ f && (e == null || e.commands.insertContentAt(
193105
+ f.pos + f.node.nodeSize - 4,
193106
+ h
193082
193107
  ));
193083
193108
  },
193084
193109
  [e, t]
193085
- ), u = wt(
193086
- () => JYe(l),
193087
- [l]
193088
193110
  ), c = wt(
193089
- () => ZYe(l),
193090
- [l]
193091
- ), d = Ae(() => {
193092
- o((p) => (s(p ? 2 : c.length), !p));
193093
- }, [c.length]);
193094
- return a ? yf(
193111
+ () => JYe(u),
193112
+ [u]
193113
+ ), d = wt(
193114
+ () => ZYe(u),
193115
+ [u]
193116
+ ), p = Ce(() => {
193117
+ o((h) => (s(h ? 2 : d.length), !h));
193118
+ }, [d.length]);
193119
+ return !l || a ? null : yf(
193095
193120
  QYe(
193096
- u,
193097
193121
  c,
193098
- i,
193099
193122
  d,
193123
+ i,
193124
+ p,
193100
193125
  r,
193101
193126
  t.isCollaboratorsDoc,
193102
- t.isPreviewMode
193127
+ t.isPreviewMode,
193128
+ a
193103
193129
  ),
193104
- a.handle.contentElement
193105
- ) : null;
193130
+ l.handle.contentElement
193131
+ );
193106
193132
  }, kne = ({
193107
193133
  children: e,
193108
193134
  editor: t,
@@ -193110,9 +193136,9 @@ const WL = (e, t) => {
193110
193136
  }) => {
193111
193137
  const [r, o] = Ne(
193112
193138
  null
193113
- ), [i, s] = Ne(0), a = Se(null), l = Ae((c) => {
193139
+ ), [i, s] = Ne(0), a = Se(null), l = Ce((c) => {
193114
193140
  a.current = c, o(c);
193115
- }, []), u = Ae(() => {
193141
+ }, []), u = Ce(() => {
193116
193142
  const c = a.current;
193117
193143
  if (c == null || c.refresh(), c && !D8(t, c)) {
193118
193144
  l(null);
@@ -193213,7 +193239,7 @@ const AZe = ({
193213
193239
  replaceTerm: N.replaceTerm,
193214
193240
  showSearchReplacePopover: N.showSearchReplacePopover
193215
193241
  }))
193216
- ), { setShowReplacePopover: u, setSearchTerm: c, setReplaceTerm: d } = KD((N) => N.actions), p = Ae(
193242
+ ), { setShowReplacePopover: u, setSearchTerm: c, setReplaceTerm: d } = KD((N) => N.actions), p = Ce(
193217
193243
  function() {
193218
193244
  if (!e) return;
193219
193245
  const { results: O, resultIndex: A } = e.storage.searchAndReplace, M = O[A];
@@ -193380,7 +193406,7 @@ const AZe = ({
193380
193406
  }
193381
193407
  )
193382
193408
  ] });
193383
- }, _Ze = QL(() => import("./markdown-source-pane-DVl_Wt4s.mjs")), SZe = QL(() => import("./split-view-toolbar-DOXYj9CC.mjs")), TZe = ({
193409
+ }, _Ze = QL(() => import("./markdown-source-pane-BJzKN6wC.mjs")), SZe = QL(() => import("./split-view-toolbar-BmFp8f-S.mjs")), TZe = ({
193384
193410
  markdown: e,
193385
193411
  onMarkdownChange: t,
193386
193412
  onExitSplitView: n,
@@ -193388,7 +193414,7 @@ const AZe = ({
193388
193414
  onError: o,
193389
193415
  style: i
193390
193416
  }) => {
193391
- const [s, a] = Ne(null), l = Ae((u) => {
193417
+ const [s, a] = Ne(null), l = Ce((u) => {
193392
193418
  a(u);
193393
193419
  }, []);
193394
193420
  return /* @__PURE__ */ x.jsxs(
@@ -193499,7 +193525,7 @@ const AZe = ({
193499
193525
  }) => {
193500
193526
  const [a, l] = Ne(""), u = Se(null), c = Se(null), d = Se(!1), p = Se(null), h = Se(s);
193501
193527
  h.current = s;
193502
- const f = Se(!1), g = Se(null), m = Ae(
193528
+ const f = Se(!1), g = Se(null), m = Ce(
193503
193529
  async (F) => {
193504
193530
  if (!e || e.isDestroyed) return;
193505
193531
  if (f.current) {
@@ -193558,7 +193584,7 @@ const AZe = ({
193558
193584
  e.isDestroyed || e.setEditable(!n);
193559
193585
  };
193560
193586
  }, [e, t, n, r]);
193561
- const y = Ae(
193587
+ const y = Ce(
193562
193588
  (F) => {
193563
193589
  d.current && (l(F), c.current = F, u.current && clearTimeout(u.current), u.current = setTimeout(() => {
193564
193590
  c.current = null, m(F);
@@ -193576,7 +193602,7 @@ const AZe = ({
193576
193602
  min: t = 0.2,
193577
193603
  max: n = 0.8
193578
193604
  } = {}) => {
193579
- const r = Se(null), [o, i] = Ne(e), s = Se(null), a = Ae(
193605
+ const r = Se(null), [o, i] = Ne(e), s = Se(null), a = Ce(
193580
193606
  (l) => {
193581
193607
  l.preventDefault();
193582
193608
  const u = r.current;
@@ -193674,7 +193700,7 @@ const AZe = ({
193674
193700
  connectViaWallet: Oe,
193675
193701
  isLoading: ze,
193676
193702
  connectViaUsername: qe,
193677
- isDDocOwner: ft,
193703
+ isDDocOwner: gt,
193678
193704
  isCollabDocumentPublished: at = !0,
193679
193705
  disableInlineComment: Mt,
193680
193706
  renderThemeToggle: gn,
@@ -193684,7 +193710,7 @@ const AZe = ({
193684
193710
  tabConfig: Qe,
193685
193711
  footerHeight: ut,
193686
193712
  ipfsImageFetchFn: Vt,
193687
- fetchV1ImageFn: gt,
193713
+ fetchV1ImageFn: mt,
193688
193714
  activeModel: xt,
193689
193715
  maxTokens: zt,
193690
193716
  isAIAgentEnabled: dt,
@@ -193698,7 +193724,7 @@ const AZe = ({
193698
193724
  onFocusMode: (Ye) => {
193699
193725
  te && (se == null || se(!1)), ee == null || ee(Ye);
193700
193726
  }
193701
- }), [et, pt] = Ne(!1), [Qt, rn] = Ne(!1), bt = Se(null), kn = (() => {
193727
+ }), [et, pt] = Ne(!1), [Qt, rn] = Ne(!1), yt = Se(null), kn = (() => {
193702
193728
  if (!vt)
193703
193729
  return { canvas: void 0, background: void 0 };
193704
193730
  const Ye = {}, Pt = {}, Cn = Ee ?? "light";
@@ -193734,7 +193760,7 @@ const AZe = ({
193734
193760
  k && k.length <= 4 && Ot(!1);
193735
193761
  }, [k]);
193736
193762
  const [mn, Ci] = Ne(!1), {
193737
- editor: yt,
193763
+ editor: ft,
193738
193764
  cachedEditorEntries: Zi,
193739
193765
  ref: As,
193740
193766
  isContentLoading: al,
@@ -193765,7 +193791,7 @@ const AZe = ({
193765
193791
  } = Yte({
193766
193792
  documentStyling: vt,
193767
193793
  ipfsImageFetchFn: Vt,
193768
- fetchV1ImageFn: gt,
193794
+ fetchV1ImageFn: mt,
193769
193795
  enableIndexeddbSync: M,
193770
193796
  ddocId: C,
193771
193797
  isPreviewMode: e,
@@ -193808,7 +193834,7 @@ const AZe = ({
193808
193834
  activeModel: xt,
193809
193835
  maxTokens: zt,
193810
193836
  isAIAgentEnabled: dt,
193811
- isDDocOwner: ft,
193837
+ isDDocOwner: gt,
193812
193838
  tabConfig: Qe,
193813
193839
  onNewComment: ge,
193814
193840
  fonts: St,
@@ -193835,7 +193861,7 @@ const AZe = ({
193835
193861
  onMarkdownChange: Rne,
193836
193862
  rightScrollRef: Lne
193837
193863
  } = BZe({
193838
- editor: yt,
193864
+ editor: ft,
193839
193865
  isSplitView: En,
193840
193866
  isPreviewMode: e,
193841
193867
  activeTabId: pu,
@@ -193847,7 +193873,7 @@ const AZe = ({
193847
193873
  k8(
193848
193874
  bn,
193849
193875
  () => ({
193850
- getEditor: () => yt,
193876
+ getEditor: () => ft,
193851
193877
  getYdoc: () => pa,
193852
193878
  refreshYjsIndexedDbProvider: Xf,
193853
193879
  mergeYjsContents: (Ye) => {
@@ -193859,8 +193885,8 @@ const AZe = ({
193859
193885
  ), Pt;
193860
193886
  },
193861
193887
  exportContentAsMarkDown: async (Ye) => {
193862
- if (yt) {
193863
- const Pt = await yt.commands.exportMarkdownFile();
193888
+ if (ft) {
193889
+ const Pt = await ft.commands.exportMarkdownFile();
193864
193890
  if (Pt) {
193865
193891
  const Cn = Pt, Vn = document.createElement("a");
193866
193892
  Vn.href = Cn, Vn.download = Ye, document.body.appendChild(Vn), Vn.click(), document.body.removeChild(Vn), URL.revokeObjectURL(Cn);
@@ -193868,7 +193894,7 @@ const AZe = ({
193868
193894
  }
193869
193895
  },
193870
193896
  updateCollaboratorName: (Ye) => {
193871
- if (!yt || !kp) {
193897
+ if (!ft || !kp) {
193872
193898
  console.debug("collab: cannot find editor or awareness");
193873
193899
  return;
193874
193900
  }
@@ -193877,16 +193903,16 @@ const AZe = ({
193877
193903
  color: Cn == null ? void 0 : Cn.color,
193878
193904
  isEns: Cn == null ? void 0 : Cn.isEns
193879
193905
  };
193880
- kp.setLocalStateField("user", Vn), yt.setEditable(!0);
193906
+ kp.setLocalStateField("user", Vn), ft.setEditable(!0);
193881
193907
  },
193882
193908
  exportCurrentTabOrOpenExportModal: (Ye = "pdf", Pt) => {
193883
193909
  var Cn;
193884
- (Cn = bt.current) == null || Cn.call(bt, Ye, Pt);
193910
+ (Cn = yt.current) == null || Cn.call(yt, Ye, Pt);
193885
193911
  },
193886
193912
  terminateSession: Ane
193887
193913
  }),
193888
193914
  // eslint-disable-next-line react-hooks/exhaustive-deps
193889
- [yt, kp]
193915
+ [ft, kp]
193890
193916
  );
193891
193917
  const Une = (Ye) => {
193892
193918
  E == null || E((Pt) => {
@@ -193916,23 +193942,23 @@ const AZe = ({
193916
193942
  U == null || U(!0), te && (se == null || se(!1));
193917
193943
  };
193918
193944
  _e(() => {
193919
- if (yt && ht) {
193920
- const { selection: Ye } = yt.state, Pt = Qx(Ye), Cn = () => {
193945
+ if (ft && ht) {
193946
+ const { selection: Ye } = ft.state, Pt = Qx(Ye), Cn = () => {
193921
193947
  pt(!0);
193922
193948
  }, Vn = () => {
193923
193949
  pt(!1);
193924
193950
  };
193925
- return !Pt && yt.on("focus", Cn), Pt && yt.on("blur", Vn), () => {
193926
- yt.off("focus", Cn), yt.off("blur", Vn);
193951
+ return !Pt && ft.on("focus", Cn), Pt && ft.on("blur", Vn), () => {
193952
+ ft.off("focus", Cn), ft.off("blur", Vn);
193927
193953
  };
193928
193954
  }
193929
- }, [ht, yt]), _e(() => {
193930
- if (yt)
193955
+ }, [ht, ft]), _e(() => {
193956
+ if (ft)
193931
193957
  try {
193932
- const Ye = yt.view.dom;
193958
+ const Ye = ft.view.dom;
193933
193959
  if (!Ye) return;
193934
193960
  const Pt = (Cn) => {
193935
- Cn.key === "Enter" && yt.commands.scrollIntoView();
193961
+ Cn.key === "Enter" && ft.commands.scrollIntoView();
193936
193962
  };
193937
193963
  return Ye.addEventListener("keydown", Pt), () => {
193938
193964
  Ye.removeEventListener("keydown", Pt);
@@ -193940,10 +193966,10 @@ const AZe = ({
193940
193966
  } catch {
193941
193967
  return;
193942
193968
  }
193943
- }, [yt]), _e(() => {
193944
- if (!(!ht || !yt))
193969
+ }, [ft]), _e(() => {
193970
+ if (!(!ht || !ft))
193945
193971
  try {
193946
- const Ye = yt.view.dom;
193972
+ const Ye = ft.view.dom;
193947
193973
  if (!Ye) return;
193948
193974
  const Pt = () => {
193949
193975
  As.current && As.current.scrollIntoView();
@@ -193954,7 +193980,9 @@ const AZe = ({
193954
193980
  } catch {
193955
193981
  return;
193956
193982
  }
193957
- }, [yt, As, ht]);
193983
+ }, [ft, As, ht]), _e(() => {
193984
+ !he || !ft || ft.isDestroyed || ft.commands.focus();
193985
+ }, [he, ft]);
193958
193986
  const fa = or("(max-width: 768px)"), r_ = wt(() => (ye || []).reduce(
193959
193987
  (Ye, Pt) => {
193960
193988
  if (Pt.deleted) return Ye;
@@ -193967,7 +193995,7 @@ const AZe = ({
193967
193995
  // List button in the split header), so the editor's native left rail
193968
193996
  // would just duplicate it.
193969
193997
  !En && (du.length > 0 || p4.length > 0 && !((l_ = $t.versionHistoryState) != null && l_.enabled)) && (!he || De)
193970
- ), s_ = typeof window < "u" ? window.innerWidth : 0, a_ = Bm + 148 * 2 > s_, $ne = s_ - (m4 ? 148 : 0), Hne = Bm > $ne, Nm = Se(null), Wne = Ae(
193998
+ ), s_ = typeof window < "u" ? window.innerWidth : 0, a_ = Bm + 148 * 2 > s_, $ne = s_ - (m4 ? 148 : 0), Hne = Bm > $ne, Nm = Se(null), Wne = Ce(
193971
193999
  (Ye, Pt) => {
193972
194000
  if (Pt) {
193973
194001
  Nm.current = Ye;
@@ -193978,13 +194006,13 @@ const AZe = ({
193978
194006
  []
193979
194007
  ), qne = (Ye) => {
193980
194008
  var Rc;
193981
- if (!he || !yt || Ye.button !== 0) return;
194009
+ if (!he || !ft || Ye.button !== 0) return;
193982
194010
  const Pt = Ye.target;
193983
194011
  (Rc = Nm.current) != null && Rc.contains(Pt) || Pt.closest(
193984
194012
  '[data-radix-dialog-content], [role="dialog"], [data-modal], [data-overlay]'
193985
194013
  ) || Pt.closest(
193986
194014
  "[data-radix-popper-content-wrapper], [data-floating-ui-portal]"
193987
- ) || (Ye.preventDefault(), yt.commands.focus("end", { scrollIntoView: !1 }));
194015
+ ) || (Ye.preventDefault(), ft.commands.focus("end", { scrollIntoView: !1 }));
193988
194016
  }, Vne = e ? null : /* @__PURE__ */ x.jsx(
193989
194017
  "div",
193990
194018
  {
@@ -194004,7 +194032,7 @@ const AZe = ({
194004
194032
  setIsPresentationMode: zne,
194005
194033
  enableCollaboration: r == null ? void 0 : r.enabled,
194006
194034
  onError: b,
194007
- editor: yt,
194035
+ editor: ft,
194008
194036
  zoomLevel: j,
194009
194037
  setZoomLevel: S,
194010
194038
  isNavbarVisible: L,
@@ -194017,9 +194045,9 @@ const AZe = ({
194017
194045
  onTxtExport: T,
194018
194046
  onOdtExport: X,
194019
194047
  onDocxImport: Y,
194020
- isLoading: !yt || al,
194048
+ isLoading: !ft || al,
194021
194049
  ipfsImageFetchFn: Vt,
194022
- fetchV1ImageFn: gt,
194050
+ fetchV1ImageFn: mt,
194023
194051
  isConnected: Be,
194024
194052
  tabs: du,
194025
194053
  ydoc: pa,
@@ -194030,7 +194058,7 @@ const AZe = ({
194030
194058
  H && !Tm ? () => H((Ye) => !Ye) : void 0
194031
194059
  ),
194032
194060
  onRegisterExportTrigger: (Ye) => {
194033
- bt.current = Ye;
194061
+ yt.current = Ye;
194034
194062
  },
194035
194063
  fonts: St
194036
194064
  }
@@ -194050,14 +194078,14 @@ const AZe = ({
194050
194078
  }
194051
194079
  ),
194052
194080
  !En && Vne,
194053
- (e || En) && yt && /* @__PURE__ */ x.jsx(
194081
+ (e || En) && ft && /* @__PURE__ */ x.jsx(
194054
194082
  HYe,
194055
194083
  {
194056
- editor: yt,
194084
+ editor: ft,
194057
194085
  ydoc: pa,
194058
194086
  tabs: du,
194059
194087
  onRegisterExportTrigger: (Ye) => {
194060
- bt.current = Ye;
194088
+ yt.current = Ye;
194061
194089
  },
194062
194090
  onError: b,
194063
194091
  ipfsImageUploadFn: g,
@@ -194069,14 +194097,14 @@ const AZe = ({
194069
194097
  onOdtExport: X,
194070
194098
  ipfsImageFetchFn: Vt,
194071
194099
  onDocxImport: Y,
194072
- fetchV1ImageFn: gt,
194100
+ fetchV1ImageFn: mt,
194073
194101
  isConnected: Be
194074
194102
  }
194075
194103
  ),
194076
- R && yt && /* @__PURE__ */ x.jsx(
194104
+ R && ft && /* @__PURE__ */ x.jsx(
194077
194105
  pXe,
194078
194106
  {
194079
- editor: yt,
194107
+ editor: ft,
194080
194108
  onClose: Pne,
194081
194109
  isFullscreen: Qt,
194082
194110
  setIsFullscreen: rn,
@@ -194092,7 +194120,7 @@ const AZe = ({
194092
194120
  isContentLoading: al,
194093
194121
  ipfsImageFetchFn: Vt,
194094
194122
  documentStyling: vt,
194095
- fetchV1ImageFn: gt,
194123
+ fetchV1ImageFn: mt,
194096
194124
  theme: Ee ?? "light"
194097
194125
  }
194098
194126
  ),
@@ -194112,10 +194140,10 @@ const AZe = ({
194112
194140
  he && "mt-[48px]",
194113
194141
  he && !De && a_ && "hidden"
194114
194142
  ),
194115
- children: yt && m4 && /* @__PURE__ */ x.jsx(
194143
+ children: ft && m4 && /* @__PURE__ */ x.jsx(
194116
194144
  w8,
194117
194145
  {
194118
- editor: yt,
194146
+ editor: ft,
194119
194147
  hasToC: !0,
194120
194148
  items: p4,
194121
194149
  setItems: KA,
@@ -194259,11 +194287,11 @@ const AZe = ({
194259
194287
  },
194260
194288
  children: [
194261
194289
  /* @__PURE__ */ x.jsxs("div", { children: [
194262
- yt && /* @__PURE__ */ x.jsxs(x.Fragment, { children: [
194290
+ ft && /* @__PURE__ */ x.jsxs(x.Fragment, { children: [
194263
194291
  /* @__PURE__ */ x.jsx(
194264
194292
  hV,
194265
194293
  {
194266
- editor: yt,
194294
+ editor: ft,
194267
194295
  onError: b,
194268
194296
  zoomLevel: j,
194269
194297
  disableInlineComment: Mt || !1,
@@ -194278,23 +194306,23 @@ const AZe = ({
194278
194306
  activeCommentId: ha,
194279
194307
  isCollabDocumentPublished: at,
194280
194308
  ipfsImageFetchFn: Vt,
194281
- fetchV1ImageFn: gt,
194309
+ fetchV1ImageFn: mt,
194282
194310
  ipfsImageUploadFn: g,
194283
194311
  enableCollaboration: r == null ? void 0 : r.enabled,
194284
194312
  isCollabDocOwner: r != null && r.enabled ? r.connection.isOwner : !0
194285
194313
  }
194286
194314
  ),
194287
- /* @__PURE__ */ x.jsx($Ye, { editor: yt })
194315
+ /* @__PURE__ */ x.jsx($Ye, { editor: ft })
194288
194316
  ] }),
194289
- yt && /* @__PURE__ */ x.jsx(
194317
+ ft && /* @__PURE__ */ x.jsx(
194290
194318
  r4e,
194291
194319
  {
194292
- editor: yt,
194320
+ editor: ft,
194293
194321
  appendTo: As
194294
194322
  }
194295
194323
  )
194296
194324
  ] }),
194297
- !yt || al ? Uo(
194325
+ !ft || al ? Uo(
194298
194326
  /* @__PURE__ */ x.jsx(
194299
194327
  "div",
194300
194328
  {
@@ -194394,12 +194422,12 @@ const AZe = ({
194394
194422
  /* @__PURE__ */ x.jsx(
194395
194423
  kne,
194396
194424
  {
194397
- editor: yt,
194425
+ editor: ft,
194398
194426
  runtimeState: Bne,
194399
- children: /* @__PURE__ */ x.jsx("div", { className: "grammarly-wrapper", children: (Zi != null && Zi.length ? Zi : yt ? [
194427
+ children: /* @__PURE__ */ x.jsx("div", { className: "grammarly-wrapper", children: (Zi != null && Zi.length ? Zi : ft ? [
194400
194428
  {
194401
194429
  tabId: pu,
194402
- editor: yt,
194430
+ editor: ft,
194403
194431
  isActive: !0
194404
194432
  }
194405
194433
  ] : []).map((Ye) => /* @__PURE__ */ x.jsx(
@@ -194448,10 +194476,10 @@ const AZe = ({
194448
194476
  )
194449
194477
  }
194450
194478
  ),
194451
- yt && !he && /* @__PURE__ */ x.jsx("div", { className: "comment-floating-slot absolute left-full top-0 ml-[12px] overflow-visible", children: /* @__PURE__ */ x.jsx(
194479
+ ft && !he && /* @__PURE__ */ x.jsx("div", { className: "comment-floating-slot absolute left-full top-0 ml-[12px] overflow-visible", children: /* @__PURE__ */ x.jsx(
194452
194480
  yYe,
194453
194481
  {
194454
- editor: yt,
194482
+ editor: ft,
194455
194483
  editorWrapperRef: Re,
194456
194484
  scrollContainerRef: Te,
194457
194485
  tabName: jne,
@@ -194493,7 +194521,7 @@ const AZe = ({
194493
194521
  {
194494
194522
  ref: Fe,
194495
194523
  onClick: () => {
194496
- yt && (p == null || p(yt));
194524
+ ft && (p == null || p(ft));
194497
194525
  },
194498
194526
  variant: "ghost",
194499
194527
  className: Je(
@@ -194514,19 +194542,19 @@ const AZe = ({
194514
194542
  Zte,
194515
194543
  {
194516
194544
  onError: b,
194517
- editor: yt,
194545
+ editor: ft,
194518
194546
  isKeyboardVisible: et,
194519
194547
  isNavbarVisible: L,
194520
194548
  setIsNavbarVisible: P,
194521
194549
  ipfsImageUploadFn: g,
194522
- isLoading: !yt || al,
194550
+ isLoading: !ft || al,
194523
194551
  ipfsImageFetchFn: Vt,
194524
- fetchV1ImageFn: gt
194552
+ fetchV1ImageFn: mt
194525
194553
  }
194526
194554
  )
194527
194555
  }
194528
194556
  ),
194529
- yt && /* @__PURE__ */ x.jsx(
194557
+ ft && /* @__PURE__ */ x.jsx(
194530
194558
  MXe,
194531
194559
  {
194532
194560
  isOpen: te,
@@ -194541,10 +194569,10 @@ const AZe = ({
194541
194569
  isCollaborationEnabled: (r == null ? void 0 : r.enabled) || !1
194542
194570
  }
194543
194571
  ),
194544
- /* @__PURE__ */ x.jsx("div", { children: yt && ot && !he && /* @__PURE__ */ x.jsx(
194572
+ /* @__PURE__ */ x.jsx("div", { children: ft && ot && !he && /* @__PURE__ */ x.jsx(
194545
194573
  OXe,
194546
194574
  {
194547
- editor: yt,
194575
+ editor: ft,
194548
194576
  activeCommentId: ha,
194549
194577
  commentDrawerOpen: te,
194550
194578
  isCollabDocumentPublished: at,
@@ -194586,7 +194614,7 @@ const AZe = ({
194586
194614
  ),
194587
194615
  style: he ? void 0 : st(),
194588
194616
  children: [
194589
- /* @__PURE__ */ x.jsx(AZe, { editor: yt, viewerMode: t }),
194617
+ /* @__PURE__ */ x.jsx(AZe, { editor: ft, viewerMode: t }),
194590
194618
  /* @__PURE__ */ x.jsx(
194591
194619
  "nav",
194592
194620
  {
@@ -194598,9 +194626,9 @@ const AZe = ({
194598
194626
  "translate-y-[-100%] opacity-0 pointer-events-none": he || !L || R
194599
194627
  }
194600
194628
  ),
194601
- children: yt && (s == null ? void 0 : s({
194629
+ children: ft && (s == null ? void 0 : s({
194602
194630
  get editor() {
194603
- return yt.getJSON();
194631
+ return ft.getJSON();
194604
194632
  }
194605
194633
  }))
194606
194634
  }
@@ -194608,7 +194636,7 @@ const AZe = ({
194608
194636
  /* @__PURE__ */ x.jsx(
194609
194637
  X2e,
194610
194638
  {
194611
- editor: yt ?? null,
194639
+ editor: ft ?? null,
194612
194640
  ydoc: pa,
194613
194641
  isFocusMode: he,
194614
194642
  username: o,
@@ -194632,7 +194660,7 @@ const AZe = ({
194632
194660
  connectViaWallet: Oe,
194633
194661
  isLoading: ze,
194634
194662
  connectViaUsername: qe,
194635
- isDDocOwner: ft,
194663
+ isDDocOwner: gt,
194636
194664
  onInlineComment: oe,
194637
194665
  onComment: K,
194638
194666
  setCommentDrawerOpen: se,
@@ -194648,7 +194676,7 @@ const AZe = ({
194648
194676
  En ? "flex w-full h-full p-4 color-bg-secondary overflow-hidden" : "contents"
194649
194677
  ),
194650
194678
  children: [
194651
- yt && En && /* @__PURE__ */ x.jsx(
194679
+ ft && En && /* @__PURE__ */ x.jsx(
194652
194680
  TZe,
194653
194681
  {
194654
194682
  markdown: Ine,
@@ -194659,7 +194687,7 @@ const AZe = ({
194659
194687
  style: { flexGrow: g4 }
194660
194688
  }
194661
194689
  ),
194662
- yt && En && /* @__PURE__ */ x.jsx(
194690
+ ft && En && /* @__PURE__ */ x.jsx(
194663
194691
  "div",
194664
194692
  {
194665
194693
  role: "separator",
@@ -194680,10 +194708,10 @@ const AZe = ({
194680
194708
  En ? "flex-1 min-w-0 h-full flex flex-col color-bg-default rounded border color-border-default overflow-hidden relative" : "contents"
194681
194709
  ),
194682
194710
  children: [
194683
- yt && En && /* @__PURE__ */ x.jsx(
194711
+ ft && En && /* @__PURE__ */ x.jsx(
194684
194712
  jZe,
194685
194713
  {
194686
- editor: yt,
194714
+ editor: ft,
194687
194715
  showTabsPanel: t_,
194688
194716
  onToggleTabsPanel: () => One((Ye) => !Ye)
194689
194717
  }
@@ -194706,10 +194734,10 @@ const AZe = ({
194706
194734
  children: Kne()
194707
194735
  }
194708
194736
  ),
194709
- yt && En && t_ && /* @__PURE__ */ x.jsx("div", { className: "absolute top-0 left-0 h-full w-[263px] z-20 color-bg-default border-r color-border-default shadow-elevation-3 overflow-y-auto", children: /* @__PURE__ */ x.jsx(
194737
+ ft && En && t_ && /* @__PURE__ */ x.jsx("div", { className: "absolute top-0 left-0 h-full w-[263px] z-20 color-bg-default border-r color-border-default shadow-elevation-3 overflow-y-auto", children: /* @__PURE__ */ x.jsx(
194710
194738
  w8,
194711
194739
  {
194712
- editor: yt,
194740
+ editor: ft,
194713
194741
  hasToC: !0,
194714
194742
  items: p4,
194715
194743
  setItems: KA,
@@ -195150,20 +195178,20 @@ const AZe = ({
195150
195178
  "txt",
195151
195179
  "odt"
195152
195180
  ], RZe = (e) => e !== void 0 && IZe.includes(e), NJe = (e) => {
195153
- const t = Se(null), n = Se(!1), [r, o] = Ne(null), [i, s] = Ne(!1), a = OZe(e), { getEditor: l, setContent: u } = a, c = Ae(
195181
+ const t = Se(null), n = Se(!1), [r, o] = Ne(null), [i, s] = Ne(!1), a = OZe(e), { getEditor: l, setContent: u } = a, c = Ce(
195154
195182
  (_, N) => {
195155
195183
  _ && !_.isDestroyed && _.destroy(), N && !N.isDestroyed && N.destroy();
195156
195184
  },
195157
195185
  []
195158
- ), d = Ae(
195186
+ ), d = Ce(
195159
195187
  (_) => {
195160
195188
  const N = t.current;
195161
195189
  N && c(N.editor, N.ydoc), t.current = _, o(_);
195162
195190
  },
195163
195191
  [c]
195164
- ), p = Ae(() => {
195192
+ ), p = Ce(() => {
195165
195193
  s(!1), d(null);
195166
- }, [d]), h = Ae(
195194
+ }, [d]), h = Ce(
195167
195195
  (_) => {
195168
195196
  s(_), !_ && (n.current || d(null));
195169
195197
  },
@@ -195175,15 +195203,15 @@ const AZe = ({
195175
195203
  t.current.ydoc
195176
195204
  ), t.current = null);
195177
195205
  }, [c]);
195178
- const f = Ae((_, N) => {
195206
+ const f = Ce((_, N) => {
195179
195207
  const O = _.getXmlFragment(N);
195180
195208
  return ME(O);
195181
- }, []), g = Ae((_) => ed(
195209
+ }, []), g = Ce((_) => ed(
195182
195210
  _
195183
- ) || null, []), m = Ae((_, N) => {
195211
+ ) || null, []), m = Ce((_, N) => {
195184
195212
  const O = document.createElement("a");
195185
195213
  O.href = _, O.download = N, document.body.appendChild(O), O.click(), document.body.removeChild(O), URL.revokeObjectURL(_);
195186
- }, []), b = Ae(() => {
195214
+ }, []), b = Ce(() => {
195187
195215
  if (!r) return null;
195188
195216
  const _ = r.activeTabId, N = f(r.ydoc, _);
195189
195217
  return bc(r.editor, N);
@@ -195292,7 +195320,7 @@ const AZe = ({
195292
195320
  }), w = wt(() => !r || r.tabs.length <= 1 ? [{ id: "current", label: "Current tab" }] : [
195293
195321
  { id: "current", label: "Current tab" },
195294
195322
  { id: "all", label: "All tabs" }
195295
- ], [r]), D = Ae(
195323
+ ], [r]), D = Ce(
195296
195324
  (_) => {
195297
195325
  var A;
195298
195326
  if (n.current) return;
@@ -195323,7 +195351,7 @@ const AZe = ({
195323
195351
  d,
195324
195352
  s
195325
195353
  ]
195326
- ), k = Ae(
195354
+ ), k = Ce(
195327
195355
  async ({ format: _, tab: N }) => {
195328
195356
  r && (n.current = !0, v({
195329
195357
  format: _,