@fileverse-dev/ddoc 3.2.6 → 3.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -4,7 +4,7 @@ var Qe = (e, t, n) => Cte(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  import * as Sn from "react";
5
5
  import kt, { createRef as _te, memo as ig, createContext as Wd, createElement as nb, useContext as qd, version as w_, useRef as je, useState as Ne, useDebugValue as Vk, useEffect as _e, forwardRef as lr, useLayoutEffect as qh, useCallback as Te, useMemo as Dt, Fragment as Ate, useReducer as Ste, cloneElement as $R, useImperativeHandle as HR } from "react";
6
6
  import WR, { flushSync as Tte, createPortal as dx } from "react-dom";
7
- import { Drawer as qR, DrawerContent as jte, DrawerHeader as Bte, DrawerTitle as Nte, DrawerClose as Mte, LucideIcon as Ue, TextField as Hu, Button as Ut, useTheme as Ote, DynamicDropdown as wr, Tooltip as cn, IconButton as dn, Dialog as Ite, DialogContent as Rte, cn as Ve, DialogHeader as Lte, DialogTitle as Ute, DialogFooter as Pte, DialogClose as zte, Avatar as Vd, Skeleton as Dr, PopoverClose as Kk, TextAreaFieldV2 as md, DynamicModal as Gk, Select as bd, SelectTrigger as yd, SelectValue as uh, SelectContent as xd, SelectItem as vd, DynamicDropdownV2 as px, Popover as q0, PopoverTrigger as V0, PopoverContent as K0, toast as Xk, ButtonGroup as $te, Divider as rb, UltimateIcons as Hte, SelectGroup as VR, SelectLabel as Wte, Checkbox as qte, DrawerTrigger as D_, AnimatedLoader as Vte, Label as Kte, DynamicDrawerV2 as Gte, BottomDrawer as Xte, Tag as ob, TagInput as KR } from "@fileverse/ui";
7
+ import { Drawer as qR, DrawerContent as jte, DrawerHeader as Bte, DrawerTitle as Nte, DrawerClose as Mte, LucideIcon as Le, TextField as Hu, Button as Ut, useTheme as Ote, DynamicDropdown as wr, Tooltip as cn, IconButton as dn, Dialog as Ite, DialogContent as Rte, cn as qe, DialogHeader as Lte, DialogTitle as Ute, DialogFooter as Pte, DialogClose as zte, Avatar as Vd, Skeleton as Dr, PopoverClose as Kk, TextAreaFieldV2 as md, DynamicModal as Gk, Select as bd, SelectTrigger as yd, SelectValue as uh, SelectContent as xd, SelectItem as vd, DynamicDropdownV2 as px, Popover as q0, PopoverTrigger as V0, PopoverContent as K0, toast as Xk, ButtonGroup as $te, Divider as rb, UltimateIcons as Hte, SelectGroup as VR, SelectLabel as Wte, Checkbox as qte, DrawerTrigger as D_, AnimatedLoader as Vte, Label as Kte, DynamicDrawerV2 as Gte, BottomDrawer as Xte, Tag as ob, TagInput as KR } from "@fileverse/ui";
8
8
  import { isAddress as Yte, createPublicClient as Zte, http as Jte, isHex as Qte } from "viem";
9
9
  import { mainnet as ene } from "viem/chains";
10
10
  import { motion as hl, AnimatePresence as Vh, MotionConfig as tne } from "framer-motion";
@@ -521,11 +521,11 @@ Check the render method of \`` + be + "`.";
521
521
  return "";
522
522
  }
523
523
  }
524
- function qe(be) {
524
+ function Ve(be) {
525
525
  return "";
526
526
  }
527
- var vt = {};
528
- function Le(be) {
527
+ var Ft = {};
528
+ function Ue(be) {
529
529
  {
530
530
  var Me = Xe();
531
531
  if (!Me) {
@@ -537,15 +537,15 @@ Check the top-level render call using <` + at + ">.");
537
537
  return Me;
538
538
  }
539
539
  }
540
- function Ye(be, Me) {
540
+ function Je(be, Me) {
541
541
  {
542
542
  if (!be._store || be._store.validated || be.key != null)
543
543
  return;
544
544
  be._store.validated = !0;
545
- var at = Le(Me);
546
- if (vt[at])
545
+ var at = Ue(Me);
546
+ if (Ft[at])
547
547
  return;
548
- vt[at] = !0;
548
+ Ft[at] = !0;
549
549
  var ut = "";
550
550
  be && be._owner && be._owner !== He.current && (ut = " It was passed a child from " + N(be._owner.type) + "."), bt(be), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', at, ut), bt(null);
551
551
  }
@@ -557,7 +557,7 @@ Check the top-level render call using <` + at + ">.");
557
557
  if (ye(be))
558
558
  for (var at = 0; at < be.length; at++) {
559
559
  var ut = be[at];
560
- it(ut) && Ye(ut, Me);
560
+ it(ut) && Je(ut, Me);
561
561
  }
562
562
  else if (it(be))
563
563
  be._store && (be._store.validated = !0);
@@ -565,7 +565,7 @@ Check the top-level render call using <` + at + ">.");
565
565
  var Ot = m(be);
566
566
  if (typeof Ot == "function" && Ot !== be.entries)
567
567
  for (var Qt = Ot.call(be), Yt; !(Yt = Qt.next()).done; )
568
- it(Yt.value) && Ye(Yt.value, Me);
568
+ it(Yt.value) && Je(Yt.value, Me);
569
569
  }
570
570
  }
571
571
  }
@@ -606,14 +606,14 @@ Check the top-level render call using <` + at + ">.");
606
606
  be.ref !== null && (bt(be), y("Invalid attribute `ref` supplied to `React.Fragment`."), bt(null));
607
607
  }
608
608
  }
609
- var Ft = {};
610
- function Je(be, Me, at, ut, Ot, Qt) {
609
+ var vt = {};
610
+ function Ze(be, Me, at, ut, Ot, Qt) {
611
611
  {
612
612
  var Yt = O(be);
613
613
  if (!Yt) {
614
614
  var Kt = "";
615
615
  (be === void 0 || typeof be == "object" && be !== null && Object.keys(be).length === 0) && (Kt += " 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
- var cr = qe();
616
+ var cr = Ve();
617
617
  cr ? Kt += cr : Kt += Xe();
618
618
  var ot;
619
619
  be === null ? ot = "null" : ye(be) ? ot = "array" : be !== void 0 && be.$$typeof === t ? (ot = "<" + (N(be.type) || "Unknown") + " />", Kt = " Did you accidentally export a JSX literal instead of a component?") : ot = typeof be, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ot, Kt);
@@ -638,24 +638,24 @@ Check the top-level render call using <` + at + ">.");
638
638
  var sn = N(be), un = Object.keys(Me).filter(function(bi) {
639
639
  return bi !== "key";
640
640
  }), Nn = un.length > 0 ? "{key: someKey, " + un.join(": ..., ") + ": ...}" : "{key: someKey}";
641
- if (!Ft[sn + Nn]) {
641
+ if (!vt[sn + Nn]) {
642
642
  var vr = un.length > 0 ? "{" + un.join(": ..., ") + ": ...}" : "{}";
643
643
  y(`A props object containing a "key" prop is being spread into JSX:
644
644
  let props = %s;
645
645
  <%s {...props} />
646
646
  React keys must be passed directly to JSX without using spread:
647
647
  let props = %s;
648
- <%s key={someKey} {...props} />`, Nn, sn, vr, sn), Ft[sn + Nn] = !0;
648
+ <%s key={someKey} {...props} />`, Nn, sn, vr, sn), vt[sn + Nn] = !0;
649
649
  }
650
650
  }
651
651
  return be === r ? St(De) : st(De), De;
652
652
  }
653
653
  }
654
654
  function Bt(be, Me, at) {
655
- return Je(be, Me, at, !0);
655
+ return Ze(be, Me, at, !0);
656
656
  }
657
657
  function Mt(be, Me, at) {
658
- return Je(be, Me, at, !1);
658
+ return Ze(be, Me, at, !1);
659
659
  }
660
660
  var Lt = Mt, fn = Bt;
661
661
  kf.Fragment = r, kf.jsx = Lt, kf.jsxs = fn;
@@ -18123,7 +18123,7 @@ const Pue = ({
18123
18123
  children: [
18124
18124
  /* @__PURE__ */ F.jsx(Bte, { className: "p-4", children: /* @__PURE__ */ F.jsxs(Nte, { className: "flex justify-between items-center text-left sm:text-center text-base", children: [
18125
18125
  e,
18126
- /* @__PURE__ */ F.jsx(Mte, { children: /* @__PURE__ */ F.jsx(Ue, { name: "X", size: "sm" }) })
18126
+ /* @__PURE__ */ F.jsx(Mte, { children: /* @__PURE__ */ F.jsx(Le, { name: "X", size: "sm" }) })
18127
18127
  ] }) }),
18128
18128
  /* @__PURE__ */ F.jsx(
18129
18129
  "div",
@@ -19115,10 +19115,10 @@ function mce(e, t, n, r, o, i, s) {
19115
19115
  loop: lt
19116
19116
  }
19117
19117
  }, it) => {
19118
- const Xe = me.settled(), qe = !bt.shouldConstrain(), vt = lt ? Xe : Xe && qe, Le = vt && !Oe.pointerDown();
19119
- Le && He.stop();
19120
- const Ye = ke.get() * it + ge.get() * (1 - it);
19121
- Ee.set(Ye), lt && (Se.loop(me.direction()), Be.loop()), pe.to(Ee.get()), Le && xt.emit("settle"), vt || xt.emit("scroll");
19118
+ const Xe = me.settled(), Ve = !bt.shouldConstrain(), Ft = lt ? Xe : Xe && Ve, Ue = Ft && !Oe.pointerDown();
19119
+ Ue && He.stop();
19120
+ const Je = ke.get() * it + ge.get() * (1 - it);
19121
+ Ee.set(Je), lt && (Se.loop(me.direction()), Be.loop()), pe.to(Ee.get()), Ue && xt.emit("settle"), Ft || xt.emit("scroll");
19122
19122
  }, M = Kue(r, o, () => G(he), (me) => se(he, me)), ie = 0.68, ae = ee[Q.get()], Z = n0(ae), K = n0(ae), ce = n0(ae), ve = n0(ae), we = ece(Z, ce, K, ve, p, ie), ye = lce(d, ee, le, Y, ve), ue = uce(M, Q, S, we, ye, ve, s), ne = ice(Y), fe = u1(), I = hce(t, n, s, g), {
19123
19123
  slideRegistry: q
19124
19124
  } = ace(j, y, ee, J, z, V), oe = cce(e, n, q, ue, we, fe, s, D), he = {
@@ -21428,7 +21428,7 @@ let Ss = class tz {
21428
21428
  range(t, n) {
21429
21429
  return new tz(n, Zo.range(this, t));
21430
21430
  }
21431
- }, Ze = class nz {
21431
+ }, Ye = class nz {
21432
21432
  // Error start position based on passed-in Token or ParseNode.
21433
21433
  // Length of affected text based on passed-in Token or ParseNode.
21434
21434
  // The underlying error message without any context added.
@@ -21447,7 +21447,7 @@ let Ss = class tz {
21447
21447
  return d.name = "ParseError", d.__proto__ = nz.prototype, d.position = o, o != null && i != null && (d.length = i - o), d.rawMessage = t, d;
21448
21448
  }
21449
21449
  };
21450
- Ze.prototype.__proto__ = Error.prototype;
21450
+ Ye.prototype.__proto__ = Error.prototype;
21451
21451
  var $ce = function(t, n) {
21452
21452
  return t === void 0 ? n : t;
21453
21453
  }, Hce = /([A-Z])/g, Wce = function(t) {
@@ -21602,7 +21602,7 @@ class H8 {
21602
21602
  var o = this.strict;
21603
21603
  if (typeof o == "function" && (o = o(t, n, r)), !(!o || o === "ignore")) {
21604
21604
  if (o === !0 || o === "error")
21605
- throw new Ze("LaTeX-incompatible input and strict mode is set to 'error': " + (n + " [" + t + "]"), r);
21605
+ throw new Ye("LaTeX-incompatible input and strict mode is set to 'error': " + (n + " [" + t + "]"), r);
21606
21606
  o === "warn" ? typeof console < "u" && console.warn("LaTeX-incompatible input and strict mode is set to 'warn': " + (n + " [" + t + "]")) : typeof console < "u" && console.warn("LaTeX-incompatible input and strict mode is set to " + ("unrecognized '" + o + "': " + n + " [" + t + "]"));
21607
21607
  }
21608
21608
  }
@@ -24745,7 +24745,7 @@ var _5 = {
24745
24745
  else if (t.unit === "em")
24746
24746
  r = o.fontMetrics().quad;
24747
24747
  else
24748
- throw new Ze("Invalid unit: '" + t.unit + "'");
24748
+ throw new Ye("Invalid unit: '" + t.unit + "'");
24749
24749
  o !== n && (r *= o.sizeMultiplier / n.sizeMultiplier);
24750
24750
  }
24751
24751
  return Math.min(t.number * r, n.maxSize);
@@ -24779,7 +24779,7 @@ var _5 = {
24779
24779
  for (var i in this.attributes)
24780
24780
  if (this.attributes.hasOwnProperty(i)) {
24781
24781
  if (xde.test(i))
24782
- throw new Ze("Invalid attribute name '" + i + "'");
24782
+ throw new Ye("Invalid attribute name '" + i + "'");
24783
24783
  n += " " + i + '="' + gn.escape(this.attributes[i]) + '"';
24784
24784
  }
24785
24785
  n += ">";
@@ -25701,7 +25701,7 @@ var ym = [
25701
25701
  return [ym[0][2], ym[0][s]];
25702
25702
  if (120486 < i && i < 120782)
25703
25703
  return ["", ""];
25704
- throw new Ze("Unsupported character: " + t);
25704
+ throw new Ye("Unsupported character: " + t);
25705
25705
  }
25706
25706
  }, Px = function(t, n, r) {
25707
25707
  return Rn[r][t] && Rn[r][t].replace && (t = Rn[r][t].replace), {
@@ -26211,7 +26211,7 @@ var kb = function(t) {
26211
26211
  }
26212
26212
  return o;
26213
26213
  } else
26214
- throw new Ze("Got group of unknown type: '" + t.type + "'");
26214
+ throw new Ye("Got group of unknown type: '" + t.type + "'");
26215
26215
  };
26216
26216
  function vm(e, t) {
26217
26217
  var n = kl(["base"], e, t), r = kl(["strut"]);
@@ -26451,7 +26451,7 @@ var pi = function(t, n, r) {
26451
26451
  var r = Db[t.type](t, n);
26452
26452
  return r;
26453
26453
  } else
26454
- throw new Ze("Got group of unknown type: '" + t.type + "'");
26454
+ throw new Ye("Got group of unknown type: '" + t.type + "'");
26455
26455
  };
26456
26456
  function ES(e, t, n, r, o) {
26457
26457
  var i = pi(e, n), s;
@@ -27136,7 +27136,7 @@ function ipe(e) {
27136
27136
  t[t.length - 1].length === 0 && t.pop();
27137
27137
  break;
27138
27138
  } else
27139
- throw new Ze("Expected \\\\ or \\cr or \\end", e.nextToken);
27139
+ throw new Ye("Expected \\\\ or \\cr or \\end", e.nextToken);
27140
27140
  }
27141
27141
  for (var r = [], o = [r], i = 0; i < t.length; i++) {
27142
27142
  for (var s = t[i], a = CS(), l = 0; l < s.length; l++)
@@ -27161,14 +27161,14 @@ function ipe(e) {
27161
27161
  break;
27162
27162
  }
27163
27163
  if (_S(s[h]))
27164
- throw new Ze("Missing a " + u + " character to complete a CD arrow.", s[h]);
27164
+ throw new Ye("Missing a " + u + " character to complete a CD arrow.", s[h]);
27165
27165
  c[d].body.push(s[h]);
27166
27166
  }
27167
27167
  if (p)
27168
- throw new Ze("Missing a " + u + " character to complete a CD arrow.", s[l]);
27168
+ throw new Ye("Missing a " + u + " character to complete a CD arrow.", s[l]);
27169
27169
  }
27170
27170
  else
27171
- throw new Ze('Expected one of "<>AV=|." after @', s[l]);
27171
+ throw new Ye('Expected one of "<>AV=|." after @', s[l]);
27172
27172
  var f = ope(u, c, e), g = {
27173
27173
  type: "styling",
27174
27174
  body: [f],
@@ -27268,9 +27268,9 @@ dt({
27268
27268
  }
27269
27269
  var l = parseInt(i), u;
27270
27270
  if (isNaN(l))
27271
- throw new Ze("\\@char has non-numeric argument " + i);
27271
+ throw new Ye("\\@char has non-numeric argument " + i);
27272
27272
  if (l < 0 || l >= 1114111)
27273
- throw new Ze("\\@char with invalid code point " + i);
27273
+ throw new Ye("\\@char with invalid code point " + i);
27274
27274
  return l <= 65535 ? u = String.fromCharCode(l) : (l -= 65536, u = String.fromCharCode((l >> 10) + 55296, (l & 1023) + 56320)), {
27275
27275
  type: "textord",
27276
27276
  mode: n.mode,
@@ -27375,7 +27375,7 @@ var B5 = {
27375
27375
  }, Ez = (e) => {
27376
27376
  var t = e.text;
27377
27377
  if (/^(?:[\\{}$&#^_]|EOF)$/.test(t))
27378
- throw new Ze("Expected a control sequence", e);
27378
+ throw new Ye("Expected a control sequence", e);
27379
27379
  return t;
27380
27380
  }, spe = (e) => {
27381
27381
  var t = e.gullet.popToken();
@@ -27410,7 +27410,7 @@ dt({
27410
27410
  var r = t.fetch();
27411
27411
  if (B5[r.text])
27412
27412
  return (n === "\\global" || n === "\\\\globallong") && (r.text = B5[r.text]), Jt(t.parseFunction(), "internal");
27413
- throw new Ze("Invalid token after macro prefix", r);
27413
+ throw new Ye("Invalid token after macro prefix", r);
27414
27414
  }
27415
27415
  });
27416
27416
  dt({
@@ -27427,7 +27427,7 @@ dt({
27427
27427
  funcName: n
27428
27428
  } = e, r = t.gullet.popToken(), o = r.text;
27429
27429
  if (/^(?:[\\{}$&#^_]|EOF)$/.test(o))
27430
- throw new Ze("Expected a control sequence", r);
27430
+ throw new Ye("Expected a control sequence", r);
27431
27431
  for (var i = 0, s, a = [[]]; t.gullet.future().text !== "{"; )
27432
27432
  if (r = t.gullet.popToken(), r.text === "#") {
27433
27433
  if (t.gullet.future().text === "{") {
@@ -27435,13 +27435,13 @@ dt({
27435
27435
  break;
27436
27436
  }
27437
27437
  if (r = t.gullet.popToken(), !/^[1-9]$/.test(r.text))
27438
- throw new Ze('Invalid argument number "' + r.text + '"');
27438
+ throw new Ye('Invalid argument number "' + r.text + '"');
27439
27439
  if (parseInt(r.text) !== i + 1)
27440
- throw new Ze('Argument number "' + r.text + '" out of order');
27440
+ throw new Ye('Argument number "' + r.text + '" out of order');
27441
27441
  i++, a.push([]);
27442
27442
  } else {
27443
27443
  if (r.text === "EOF")
27444
- throw new Ze("Expected a macro definition");
27444
+ throw new Ye("Expected a macro definition");
27445
27445
  a[i].push(r.text);
27446
27446
  }
27447
27447
  var {
@@ -27612,7 +27612,7 @@ var r0 = function(t, n, r) {
27612
27612
  return Az(t, n, !1, r, o, i);
27613
27613
  if (ppe.includes(t))
27614
27614
  return Sz(t, x0[n], !1, r, o, i);
27615
- throw new Ze("Illegal delimiter: '" + t + "'");
27615
+ throw new Ye("Illegal delimiter: '" + t + "'");
27616
27616
  }, fpe = [{
27617
27617
  type: "small",
27618
27618
  style: jt.SCRIPTSCRIPT
@@ -27784,7 +27784,7 @@ function Hx(e, t) {
27784
27784
  var n = zx(e);
27785
27785
  if (n && ype.includes(n.text))
27786
27786
  return n;
27787
- throw n ? new Ze("Invalid delimiter '" + n.text + "' after '" + t.funcName + "'", e) : new Ze("Invalid delimiter type '" + e.type + "'", e);
27787
+ throw n ? new Ye("Invalid delimiter '" + n.text + "' after '" + t.funcName + "'", e) : new Ye("Invalid delimiter type '" + e.type + "'", e);
27788
27788
  }
27789
27789
  dt({
27790
27790
  type: "delimsizing",
@@ -27827,7 +27827,7 @@ dt({
27827
27827
  handler: (e, t) => {
27828
27828
  var n = e.parser.gullet.macros.get("\\current@color");
27829
27829
  if (n && typeof n != "string")
27830
- throw new Ze("\\current@color set to non-string in \\right");
27830
+ throw new Ye("\\current@color set to non-string in \\right");
27831
27831
  return {
27832
27832
  type: "leftright-right",
27833
27833
  mode: e.parser.mode,
@@ -27903,7 +27903,7 @@ dt({
27903
27903
  handler: (e, t) => {
27904
27904
  var n = Hx(t[0], e);
27905
27905
  if (!e.parser.leftrightDepth)
27906
- throw new Ze("\\middle without preceding \\left", n);
27906
+ throw new Ye("\\middle without preceding \\left", n);
27907
27907
  return {
27908
27908
  type: "middle",
27909
27909
  mode: e.parser.mode,
@@ -28183,7 +28183,7 @@ function TS(e) {
28183
28183
  var Wx = (e) => {
28184
28184
  var t = e.parser.settings;
28185
28185
  if (!t.displayMode)
28186
- throw new Ze("{" + e.envName + "} can be used only in display mode.");
28186
+ throw new Ye("{" + e.envName + "} can be used only in display mode.");
28187
28187
  };
28188
28188
  function t9(e) {
28189
28189
  if (e.indexOf("ed") === -1)
@@ -28207,7 +28207,7 @@ function dc(e, t, n) {
28207
28207
  if (h == null)
28208
28208
  s = 1;
28209
28209
  else if (s = parseFloat(h), !s || s < 0)
28210
- throw new Ze("Invalid \\arraystretch: " + h);
28210
+ throw new Ye("Invalid \\arraystretch: " + h);
28211
28211
  }
28212
28212
  e.gullet.beginGroup();
28213
28213
  var f = [], g = [f], m = [], b = [], y = l != null ? [] : void 0;
@@ -28233,7 +28233,7 @@ function dc(e, t, n) {
28233
28233
  if (D === "&") {
28234
28234
  if (d && f.length === d) {
28235
28235
  if (u || a)
28236
- throw new Ze("Too many tab characters: &", e.nextToken);
28236
+ throw new Ye("Too many tab characters: &", e.nextToken);
28237
28237
  e.settings.reportNonstrict("textEnv", "Too few columns specified in the {array} column argument.");
28238
28238
  }
28239
28239
  e.consume();
@@ -28245,7 +28245,7 @@ function dc(e, t, n) {
28245
28245
  var k = void 0;
28246
28246
  e.gullet.future().text !== " " && (k = e.parseSizeGroup(!0)), m.push(k ? k.value : null), x(), b.push(TS(e)), f = [], g.push(f), v();
28247
28247
  } else
28248
- throw new Ze("Expected & or \\\\ or \\cr or \\end", e.nextToken);
28248
+ throw new Ye("Expected & or \\\\ or \\cr or \\end", e.nextToken);
28249
28249
  }
28250
28250
  return e.gullet.endGroup(), e.gullet.endGroup(), {
28251
28251
  type: "array",
@@ -28322,7 +28322,7 @@ var Ma = function(t, n) {
28322
28322
  var J = v - _;
28323
28323
  J && (te.style.verticalAlign = nt(-J)), C.push(te);
28324
28324
  } else
28325
- throw new Ze("Invalid separator type: " + U.separator);
28325
+ throw new Ye("Invalid separator type: " + U.separator);
28326
28326
  B++, U = N[B] || {}, X = !1;
28327
28327
  }
28328
28328
  if (!(o >= a)) {
@@ -28438,7 +28438,7 @@ var Ma = function(t, n) {
28438
28438
  else {
28439
28439
  var w = b.length / 2;
28440
28440
  if (a < w)
28441
- throw new Ze("Too many math in a row: " + ("expected " + a + ", but got " + w), b[0]);
28441
+ throw new Ye("Too many math in a row: " + ("expected " + a + ", but got " + w), b[0]);
28442
28442
  }
28443
28443
  });
28444
28444
  for (var f = 0; f < l; ++f) {
@@ -28476,7 +28476,7 @@ Na({
28476
28476
  type: "separator",
28477
28477
  separator: ":"
28478
28478
  };
28479
- throw new Ze("Unknown column alignment: " + l, s);
28479
+ throw new Ye("Unknown column alignment: " + l, s);
28480
28480
  }), i = {
28481
28481
  cols: o,
28482
28482
  hskipBeforeAndAfter: !0,
@@ -28513,7 +28513,7 @@ Na({
28513
28513
  var o = e.parser;
28514
28514
  if (o.consumeSpaces(), o.fetch().text === "[") {
28515
28515
  if (o.consume(), o.consumeSpaces(), n = o.fetch().text, "lcr".indexOf(n) === -1)
28516
- throw new Ze("Expected l or c or r", o.nextToken);
28516
+ throw new Ye("Expected l or c or r", o.nextToken);
28517
28517
  o.consume(), o.consumeSpaces(), o.expect("]"), o.consume(), r.cols = [{
28518
28518
  type: "align",
28519
28519
  align: n
@@ -28566,17 +28566,17 @@ Na({
28566
28566
  type: "align",
28567
28567
  align: l
28568
28568
  };
28569
- throw new Ze("Unknown column alignment: " + l, s);
28569
+ throw new Ye("Unknown column alignment: " + l, s);
28570
28570
  });
28571
28571
  if (o.length > 1)
28572
- throw new Ze("{subarray} can contain only one column");
28572
+ throw new Ye("{subarray} can contain only one column");
28573
28573
  var i = {
28574
28574
  cols: o,
28575
28575
  hskipBeforeAndAfter: !1,
28576
28576
  arraystretch: 0.5
28577
28577
  };
28578
28578
  if (i = dc(e.parser, i, "script"), i.body.length > 0 && i.body[0].length > 1)
28579
- throw new Ze("{subarray} can contain only one column");
28579
+ throw new Ye("{subarray} can contain only one column");
28580
28580
  return i;
28581
28581
  },
28582
28582
  htmlBuilder: Ma,
@@ -28708,7 +28708,7 @@ dt({
28708
28708
  allowedInMath: !0
28709
28709
  },
28710
28710
  handler(e, t) {
28711
- throw new Ze(e.funcName + " valid only within array environment");
28711
+ throw new Ye(e.funcName + " valid only within array environment");
28712
28712
  }
28713
28713
  });
28714
28714
  var jS = Oz;
@@ -28725,12 +28725,12 @@ dt({
28725
28725
  funcName: r
28726
28726
  } = e, o = t[0];
28727
28727
  if (o.type !== "ordgroup")
28728
- throw new Ze("Invalid environment name", o);
28728
+ throw new Ye("Invalid environment name", o);
28729
28729
  for (var i = "", s = 0; s < o.body.length; ++s)
28730
28730
  i += Jt(o.body[s], "textord").text;
28731
28731
  if (r === "\\begin") {
28732
28732
  if (!jS.hasOwnProperty(i))
28733
- throw new Ze("No such environment: " + i, o);
28733
+ throw new Ye("No such environment: " + i, o);
28734
28734
  var a = jS[i], {
28735
28735
  args: l,
28736
28736
  optArgs: u
@@ -28742,7 +28742,7 @@ dt({
28742
28742
  n.expect("\\end", !1);
28743
28743
  var p = n.nextToken, h = Jt(n.parseFunction(), "environment");
28744
28744
  if (h.name !== i)
28745
- throw new Ze("Mismatch: \\begin{" + i + "} matched by \\end{" + h.name + "}", p);
28745
+ throw new Ye("Mismatch: \\begin{" + i + "} matched by \\end{" + h.name + "}", p);
28746
28746
  return d;
28747
28747
  }
28748
28748
  return {
@@ -29394,7 +29394,7 @@ dt({
29394
29394
  for (var u = i.split(","), c = 0; c < u.length; c++) {
29395
29395
  var d = u[c].split("=");
29396
29396
  if (d.length !== 2)
29397
- throw new Ze("Error parsing key-value for \\htmlData");
29397
+ throw new Ye("Error parsing key-value for \\htmlData");
29398
29398
  l["data-" + d[0].trim()] = d[1].trim();
29399
29399
  }
29400
29400
  a = {
@@ -29455,14 +29455,14 @@ var x4 = function(t) {
29455
29455
  };
29456
29456
  var n = /([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);
29457
29457
  if (!n)
29458
- throw new Ze("Invalid size: '" + t + "' in \\includegraphics");
29458
+ throw new Ye("Invalid size: '" + t + "' in \\includegraphics");
29459
29459
  var r = {
29460
29460
  number: +(n[1] + n[2]),
29461
29461
  // sign + magnitude, cast to number
29462
29462
  unit: n[3]
29463
29463
  };
29464
29464
  if (!sz(r))
29465
- throw new Ze("Invalid unit: '" + r.unit + "' in \\includegraphics.");
29465
+ throw new Ye("Invalid unit: '" + r.unit + "' in \\includegraphics.");
29466
29466
  return r;
29467
29467
  };
29468
29468
  dt({
@@ -29506,7 +29506,7 @@ dt({
29506
29506
  s = x4(p);
29507
29507
  break;
29508
29508
  default:
29509
- throw new Ze("Invalid key: '" + d[0] + "' in \\includegraphics.");
29509
+ throw new Ye("Invalid key: '" + d[0] + "' in \\includegraphics.");
29510
29510
  }
29511
29511
  }
29512
29512
  }
@@ -29646,7 +29646,7 @@ dt({
29646
29646
  allowedInMath: !1
29647
29647
  },
29648
29648
  handler(e, t) {
29649
- throw new Ze("Mismatched " + e.funcName);
29649
+ throw new Ye("Mismatched " + e.funcName);
29650
29650
  }
29651
29651
  });
29652
29652
  var OS = (e, t) => {
@@ -30666,7 +30666,7 @@ Gd({
30666
30666
  } else {
30667
30667
  if (v4.hasOwnProperty(e.text))
30668
30668
  return Ae.makeSpan(["mspace", v4[e.text]], [], t);
30669
- throw new Ze('Unknown type of space "' + e.text + '"');
30669
+ throw new Ye('Unknown type of space "' + e.text + '"');
30670
30670
  }
30671
30671
  },
30672
30672
  mathmlBuilder(e, t) {
@@ -30676,7 +30676,7 @@ Gd({
30676
30676
  else {
30677
30677
  if (v4.hasOwnProperty(e.text))
30678
30678
  return new Ke.MathNode("mspace");
30679
- throw new Ze('Unknown type of space "' + e.text + '"');
30679
+ throw new Ye('Unknown type of space "' + e.text + '"');
30680
30680
  }
30681
30681
  return n;
30682
30682
  }
@@ -30846,7 +30846,7 @@ dt({
30846
30846
  allowedInText: !0
30847
30847
  },
30848
30848
  handler(e, t, n) {
30849
- throw new Ze("\\verb ended by end of line instead of matching delimiter");
30849
+ throw new Ye("\\verb ended by end of line instead of matching delimiter");
30850
30850
  },
30851
30851
  htmlBuilder(e, t) {
30852
30852
  for (var n = $S(e), r = [], o = t.havingStyle(t.style.text()), i = 0; i < n.length; i++) {
@@ -30895,7 +30895,7 @@ let HS = class {
30895
30895
  return new Ss("EOF", new Zo(this, n, n));
30896
30896
  var r = this.tokenRegex.exec(t);
30897
30897
  if (r === null || r.index !== n)
30898
- throw new Ze("Unexpected character: '" + t[n] + "'", new Ss(t[n], new Zo(this, n, n + 1)));
30898
+ throw new Ye("Unexpected character: '" + t[n] + "'", new Ss(t[n], new Zo(this, n, n + 1)));
30899
30899
  var o = r[6] || r[3] || (r[2] ? "\\ " : " ");
30900
30900
  if (this.catcodes[o] === 14) {
30901
30901
  var i = t.indexOf(`
@@ -30926,7 +30926,7 @@ class Npe {
30926
30926
  */
30927
30927
  endGroup() {
30928
30928
  if (this.undefStack.length === 0)
30929
- throw new Ze("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");
30929
+ throw new Ye("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");
30930
30930
  var t = this.undefStack.pop();
30931
30931
  for (var n in t)
30932
30932
  t.hasOwnProperty(n) && (t[n] == null ? delete this.current[n] : this.current[n] = t[n]);
@@ -31063,14 +31063,14 @@ de("\\char", function(e) {
31063
31063
  r = t.text.charCodeAt(1);
31064
31064
  else {
31065
31065
  if (t.text === "EOF")
31066
- throw new Ze("\\char` missing argument");
31066
+ throw new Ye("\\char` missing argument");
31067
31067
  r = t.text.charCodeAt(0);
31068
31068
  }
31069
31069
  else
31070
31070
  n = 10;
31071
31071
  if (n) {
31072
31072
  if (r = WS[t.text], r == null || r >= n)
31073
- throw new Ze("Invalid base-" + n + " digit " + t.text);
31073
+ throw new Ye("Invalid base-" + n + " digit " + t.text);
31074
31074
  for (var o; (o = WS[e.future().text]) != null && o < n; )
31075
31075
  r *= n, r += o, e.popToken();
31076
31076
  }
@@ -31079,18 +31079,18 @@ de("\\char", function(e) {
31079
31079
  var i9 = (e, t, n, r) => {
31080
31080
  var o = e.consumeArg().tokens;
31081
31081
  if (o.length !== 1)
31082
- throw new Ze("\\newcommand's first argument must be a macro name");
31082
+ throw new Ye("\\newcommand's first argument must be a macro name");
31083
31083
  var i = o[0].text, s = e.isDefined(i);
31084
31084
  if (s && !t)
31085
- throw new Ze("\\newcommand{" + i + "} attempting to redefine " + (i + "; use \\renewcommand"));
31085
+ throw new Ye("\\newcommand{" + i + "} attempting to redefine " + (i + "; use \\renewcommand"));
31086
31086
  if (!s && !n)
31087
- throw new Ze("\\renewcommand{" + i + "} when command " + i + " does not yet exist; use \\newcommand");
31087
+ throw new Ye("\\renewcommand{" + i + "} when command " + i + " does not yet exist; use \\newcommand");
31088
31088
  var a = 0;
31089
31089
  if (o = e.consumeArg().tokens, o.length === 1 && o[0].text === "[") {
31090
31090
  for (var l = "", u = e.expandNextToken(); u.text !== "]" && u.text !== "EOF"; )
31091
31091
  l += u.text, u = e.expandNextToken();
31092
31092
  if (!l.match(/^\s*[0-9]+\s*$/))
31093
- throw new Ze("Invalid number of arguments: " + l);
31093
+ throw new Ye("Invalid number of arguments: " + l);
31094
31094
  a = parseInt(l), o = e.consumeArg().tokens;
31095
31095
  }
31096
31096
  return s && r || e.macros.set(i, {
@@ -31311,7 +31311,7 @@ de("\\tag", "\\@ifstar\\tag@literal\\tag@paren");
31311
31311
  de("\\tag@paren", "\\tag@literal{({#1})}");
31312
31312
  de("\\tag@literal", (e) => {
31313
31313
  if (e.macros.get("\\df@tag"))
31314
- throw new Ze("Multiple \\tag");
31314
+ throw new Ye("Multiple \\tag");
31315
31315
  return "\\gdef\\df@tag{\\text{#1}}";
31316
31316
  });
31317
31317
  de("\\bmod", "\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");
@@ -31675,9 +31675,9 @@ class Ope {
31675
31675
  ++s;
31676
31676
  else if (i.text === "}") {
31677
31677
  if (--s, s === -1)
31678
- throw new Ze("Extra }", i);
31678
+ throw new Ye("Extra }", i);
31679
31679
  } else if (i.text === "EOF")
31680
- throw new Ze("Unexpected end of input in a macro argument, expected '" + (t && r ? t[a] : "}") + "'", i);
31680
+ throw new Ye("Unexpected end of input in a macro argument, expected '" + (t && r ? t[a] : "}") + "'", i);
31681
31681
  if (t && r)
31682
31682
  if ((s === 0 || s === 1 && t[a] === "{") && i.text === t[a]) {
31683
31683
  if (++a, a === t.length) {
@@ -31700,11 +31700,11 @@ class Ope {
31700
31700
  consumeArgs(t, n) {
31701
31701
  if (n) {
31702
31702
  if (n.length !== t + 1)
31703
- throw new Ze("The length of delimiters doesn't match the number of args!");
31703
+ throw new Ye("The length of delimiters doesn't match the number of args!");
31704
31704
  for (var r = n[0], o = 0; o < r.length; o++) {
31705
31705
  var i = this.popToken();
31706
31706
  if (r[o] !== i.text)
31707
- throw new Ze("Use of the macro doesn't match its definition", i);
31707
+ throw new Ye("Use of the macro doesn't match its definition", i);
31708
31708
  }
31709
31709
  }
31710
31710
  for (var s = [], a = 0; a < t; a++)
@@ -31717,7 +31717,7 @@ class Ope {
31717
31717
  */
31718
31718
  countExpansion(t) {
31719
31719
  if (this.expansionCount += t, this.expansionCount > this.settings.maxExpand)
31720
- throw new Ze("Too many expansions: infinite loop or need to increase maxExpand setting");
31720
+ throw new Ye("Too many expansions: infinite loop or need to increase maxExpand setting");
31721
31721
  }
31722
31722
  /**
31723
31723
  * Expand the next token only once if possible.
@@ -31742,7 +31742,7 @@ class Ope {
31742
31742
  var n = this.popToken(), r = n.text, o = n.noexpand ? null : this._getExpansion(r);
31743
31743
  if (o == null || t && o.unexpandable) {
31744
31744
  if (t && o == null && r[0] === "\\" && !this.isDefined(r))
31745
- throw new Ze("Undefined control sequence: " + r);
31745
+ throw new Ye("Undefined control sequence: " + r);
31746
31746
  return this.pushToken(n), !1;
31747
31747
  }
31748
31748
  this.countExpansion(1);
@@ -31753,13 +31753,13 @@ class Ope {
31753
31753
  var l = i[a];
31754
31754
  if (l.text === "#") {
31755
31755
  if (a === 0)
31756
- throw new Ze("Incomplete placeholder at end of macro body", l);
31756
+ throw new Ye("Incomplete placeholder at end of macro body", l);
31757
31757
  if (l = i[--a], l.text === "#")
31758
31758
  i.splice(a + 1, 1);
31759
31759
  else if (/^[1-9]$/.test(l.text))
31760
31760
  i.splice(a, 2, ...s[+l.text - 1]);
31761
31761
  else
31762
- throw new Ze("Not a valid argument number", l);
31762
+ throw new Ye("Not a valid argument number", l);
31763
31763
  }
31764
31764
  }
31765
31765
  }
@@ -32367,7 +32367,7 @@ let Zz = class Jz {
32367
32367
  */
32368
32368
  expect(t, n) {
32369
32369
  if (n === void 0 && (n = !0), this.fetch().text !== t)
32370
- throw new Ze("Expected '" + t + "', got '" + this.fetch().text + "'", this.fetch());
32370
+ throw new Ye("Expected '" + t + "', got '" + this.fetch().text + "'", this.fetch());
32371
32371
  n && this.consume();
32372
32372
  }
32373
32373
  /**
@@ -32449,7 +32449,7 @@ let Zz = class Jz {
32449
32449
  for (var n = -1, r, o = 0; o < t.length; o++)
32450
32450
  if (t[o].type === "infix") {
32451
32451
  if (n !== -1)
32452
- throw new Ze("only one infix operator per group", t[o].token);
32452
+ throw new Ye("only one infix operator per group", t[o].token);
32453
32453
  n = o, r = t[o].replaceWith;
32454
32454
  }
32455
32455
  if (n !== -1 && r) {
@@ -32480,7 +32480,7 @@ let Zz = class Jz {
32480
32480
  o = this.parseGroup(t);
32481
32481
  } while (((i = o) == null ? void 0 : i.type) === "internal");
32482
32482
  if (!o)
32483
- throw new Ze("Expected group after '" + r + "'", n);
32483
+ throw new Ye("Expected group after '" + r + "'", n);
32484
32484
  return o;
32485
32485
  }
32486
32486
  /**
@@ -32523,19 +32523,19 @@ let Zz = class Jz {
32523
32523
  } else if (n && n.type === "operatorname")
32524
32524
  n.alwaysHandleSupSub && (n.limits = i.text === "\\limits");
32525
32525
  else
32526
- throw new Ze("Limit controls must follow a math operator", i);
32526
+ throw new Ye("Limit controls must follow a math operator", i);
32527
32527
  this.consume();
32528
32528
  } else if (i.text === "^") {
32529
32529
  if (r)
32530
- throw new Ze("Double superscript", i);
32530
+ throw new Ye("Double superscript", i);
32531
32531
  r = this.handleSupSubscript("superscript");
32532
32532
  } else if (i.text === "_") {
32533
32533
  if (o)
32534
- throw new Ze("Double subscript", i);
32534
+ throw new Ye("Double subscript", i);
32535
32535
  o = this.handleSupSubscript("subscript");
32536
32536
  } else if (i.text === "'") {
32537
32537
  if (r)
32538
- throw new Ze("Double superscript", i);
32538
+ throw new Ye("Double superscript", i);
32539
32539
  var a = {
32540
32540
  type: "textord",
32541
32541
  mode: this.mode,
@@ -32585,11 +32585,11 @@ let Zz = class Jz {
32585
32585
  if (!i)
32586
32586
  return null;
32587
32587
  if (this.consume(), n && n !== "atom" && !i.allowedInArgument)
32588
- throw new Ze("Got function '" + o + "' with no arguments" + (n ? " as " + n : ""), r);
32588
+ throw new Ye("Got function '" + o + "' with no arguments" + (n ? " as " + n : ""), r);
32589
32589
  if (this.mode === "text" && !i.allowedInText)
32590
- throw new Ze("Can't use function '" + o + "' in text mode", r);
32590
+ throw new Ye("Can't use function '" + o + "' in text mode", r);
32591
32591
  if (this.mode === "math" && i.allowedInMath === !1)
32592
- throw new Ze("Can't use function '" + o + "' in math mode", r);
32592
+ throw new Ye("Can't use function '" + o + "' in math mode", r);
32593
32593
  var {
32594
32594
  args: s,
32595
32595
  optArgs: a
@@ -32608,7 +32608,7 @@ let Zz = class Jz {
32608
32608
  }, a = ku[t];
32609
32609
  if (a && a.handler)
32610
32610
  return a.handler(s, n, r);
32611
- throw new Ze("No function handler for " + t);
32611
+ throw new Ye("No function handler for " + t);
32612
32612
  }
32613
32613
  /**
32614
32614
  * Parses the arguments of a function or environment
@@ -32630,7 +32630,7 @@ let Zz = class Jz {
32630
32630
  else if (u != null)
32631
32631
  o.push(u);
32632
32632
  else
32633
- throw new Ze("Null argument, please report this as a bug");
32633
+ throw new Ye("Null argument, please report this as a bug");
32634
32634
  }
32635
32635
  return {
32636
32636
  args: o,
@@ -32671,10 +32671,10 @@ let Zz = class Jz {
32671
32671
  }
32672
32672
  case "primitive": {
32673
32673
  if (r)
32674
- throw new Ze("A primitive argument cannot be optional");
32674
+ throw new Ye("A primitive argument cannot be optional");
32675
32675
  var s = this.parseGroup(t);
32676
32676
  if (s == null)
32677
- throw new Ze("Expected group as " + t, this.fetch());
32677
+ throw new Ye("Expected group as " + t, this.fetch());
32678
32678
  return s;
32679
32679
  }
32680
32680
  case "original":
@@ -32682,7 +32682,7 @@ let Zz = class Jz {
32682
32682
  case void 0:
32683
32683
  return this.parseArgumentGroup(r);
32684
32684
  default:
32685
- throw new Ze("Unknown group type as " + t, this.fetch());
32685
+ throw new Ye("Unknown group type as " + t, this.fetch());
32686
32686
  }
32687
32687
  }
32688
32688
  /**
@@ -32713,7 +32713,7 @@ let Zz = class Jz {
32713
32713
  for (var r = this.fetch(), o = r, i = "", s; (s = this.fetch()).text !== "EOF" && t.test(i + s.text); )
32714
32714
  o = s, i += o.text, this.consume();
32715
32715
  if (i === "")
32716
- throw new Ze("Invalid " + n + ": '" + r.text + "'", r);
32716
+ throw new Ye("Invalid " + n + ": '" + r.text + "'", r);
32717
32717
  return r.range(o, i);
32718
32718
  }
32719
32719
  /**
@@ -32725,7 +32725,7 @@ let Zz = class Jz {
32725
32725
  return null;
32726
32726
  var r = /^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(n.text);
32727
32727
  if (!r)
32728
- throw new Ze("Invalid color: '" + n.text + "'", n);
32728
+ throw new Ye("Invalid color: '" + n.text + "'", n);
32729
32729
  var o = r[0];
32730
32730
  return /^[0-9a-f]{6}$/i.test(o) && (o = "#" + o), {
32731
32731
  type: "color-token",
@@ -32743,14 +32743,14 @@ let Zz = class Jz {
32743
32743
  !t && n.text.length === 0 && (n.text = "0pt", r = !0);
32744
32744
  var o = /([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(n.text);
32745
32745
  if (!o)
32746
- throw new Ze("Invalid size: '" + n.text + "'", n);
32746
+ throw new Ye("Invalid size: '" + n.text + "'", n);
32747
32747
  var i = {
32748
32748
  number: +(o[1] + o[2]),
32749
32749
  // sign + magnitude, cast to number
32750
32750
  unit: o[3]
32751
32751
  };
32752
32752
  if (!sz(i))
32753
- throw new Ze("Invalid unit: '" + i.unit + "'", n);
32753
+ throw new Ye("Invalid unit: '" + i.unit + "'", n);
32754
32754
  return {
32755
32755
  type: "size",
32756
32756
  mode: this.mode,
@@ -32819,7 +32819,7 @@ let Zz = class Jz {
32819
32819
  };
32820
32820
  } else if (i = this.parseFunction(n, t) || this.parseSymbol(), i == null && o[0] === "\\" && !Yz.hasOwnProperty(o)) {
32821
32821
  if (this.settings.throwOnError)
32822
- throw new Ze("Undefined control sequence: " + o, r);
32822
+ throw new Ye("Undefined control sequence: " + o, r);
32823
32823
  i = this.formatUnsupportedCmd(o), this.consume();
32824
32824
  }
32825
32825
  return i;
@@ -32863,7 +32863,7 @@ let Zz = class Jz {
32863
32863
  this.consume();
32864
32864
  var r = n.slice(5), o = r.charAt(0) === "*";
32865
32865
  if (o && (r = r.slice(1)), r.length < 2 || r.charAt(0) !== r.slice(-1))
32866
- throw new Ze(`\\verb assertion failed --
32866
+ throw new Ye(`\\verb assertion failed --
32867
32867
  please report what input caused this bug`);
32868
32868
  return r = r.slice(1, -1), {
32869
32869
  type: "verb",
@@ -32909,10 +32909,10 @@ let Zz = class Jz {
32909
32909
  for (var d = 0; d < i[0].length; d++) {
32910
32910
  var p = i[0][d];
32911
32911
  if (!w4[p])
32912
- throw new Ze("Unknown accent ' " + p + "'", t);
32912
+ throw new Ye("Unknown accent ' " + p + "'", t);
32913
32913
  var h = w4[p][this.mode] || w4[p].text;
32914
32914
  if (!h)
32915
- throw new Ze("Accent " + p + " unsupported in " + this.mode + " mode", t);
32915
+ throw new Ye("Accent " + p + " unsupported in " + this.mode + " mode", t);
32916
32916
  s = {
32917
32917
  type: "accent",
32918
32918
  mode: this.mode,
@@ -32936,7 +32936,7 @@ var a9 = function(t, n) {
32936
32936
  var o = r.parse();
32937
32937
  if (delete r.gullet.macros.current["\\current@color"], delete r.gullet.macros.current["\\color"], r.gullet.macros.get("\\df@tag")) {
32938
32938
  if (!n.displayMode)
32939
- throw new Ze("\\tag works only in display equations");
32939
+ throw new Ye("\\tag works only in display equations");
32940
32940
  o = [{
32941
32941
  type: "tag",
32942
32942
  mode: "text",
@@ -32951,7 +32951,7 @@ var a9 = function(t, n) {
32951
32951
  n.appendChild(o);
32952
32952
  };
32953
32953
  typeof document < "u" && document.compatMode !== "CSS1Compat" && (typeof console < "u" && console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."), Qz = function() {
32954
- throw new Ze("KaTeX doesn't work in quirks mode.");
32954
+ throw new Ye("KaTeX doesn't work in quirks mode.");
32955
32955
  });
32956
32956
  var Ipe = function(t, n) {
32957
32957
  var r = l9(t, n).toMarkup();
@@ -32960,7 +32960,7 @@ var Ipe = function(t, n) {
32960
32960
  var r = new H8(n);
32961
32961
  return a9(t, r);
32962
32962
  }, e$ = function(t, n, r) {
32963
- if (r.throwOnError || !(t instanceof Ze))
32963
+ if (r.throwOnError || !(t instanceof Ye))
32964
32964
  throw t;
32965
32965
  var o = Ae.makeSpan(["katex-error"], [new ls(n)]);
32966
32966
  return o.setAttribute("title", t.toString()), o.setAttribute("style", "color:" + r.errorColor), o;
@@ -33005,7 +33005,7 @@ var Ipe = function(t, n) {
33005
33005
  /**
33006
33006
  * KaTeX error, usually during parsing.
33007
33007
  */
33008
- ParseError: Ze,
33008
+ ParseError: Ye,
33009
33009
  /**
33010
33010
  * The schema of Settings
33011
33011
  */
@@ -43570,23 +43570,20 @@ const Qge = () => Cge((e, t) => ({
43570
43570
  editCommentContent: (n, r) => {
43571
43571
  if (!r.trim())
43572
43572
  return;
43573
- const { onEditComment: o, setInitialComments: i } = Dn(t), s = t().initialComments;
43574
- if (!nD(s, n))
43573
+ const { setInitialComments: o } = Dn(t), i = t().initialComments;
43574
+ if (!nD(i, n))
43575
43575
  return;
43576
- const l = s.map(
43577
- (d) => d.id === n ? { ...d, content: r } : d
43578
- ), u = {
43579
- type: "edit",
43580
- content: r
43581
- };
43582
- t().setInitialComments(l), i == null || i(l), o == null || o(n, u);
43583
- const c = t().replyEditTarget;
43584
- c && c.kind === "comment" && c.commentId === n && e({ reply: "", replyEditTarget: null }), e((d) => {
43585
- var p;
43576
+ const a = i.map(
43577
+ (u) => u.id === n ? { ...u, content: r } : u
43578
+ );
43579
+ t().setInitialComments(a), o == null || o(a);
43580
+ const l = t().replyEditTarget;
43581
+ l && l.kind === "comment" && l.commentId === n && e({ reply: "", replyEditTarget: null }), e((u) => {
43582
+ var c;
43586
43583
  return {
43587
43584
  // Notify local-state inputs (floating / drawer) to clear their drafts.
43588
43585
  editCompletion: {
43589
- nonce: (((p = d.editCompletion) == null ? void 0 : p.nonce) ?? 0) + 1,
43586
+ nonce: (((c = u.editCompletion) == null ? void 0 : c.nonce) ?? 0) + 1,
43590
43587
  kind: "comment",
43591
43588
  commentId: n
43592
43589
  }
@@ -43994,10 +43991,10 @@ const eme = ({
43994
43991
  );
43995
43992
  xt(ut);
43996
43993
  }
43997
- const lt = Be, it = (Oe == null ? void 0 : Oe.commentId) ?? null, Xe = it ?? (lt == null ? void 0 : lt.id) ?? null, qe = (it ? Oe == null ? void 0 : Oe.resolved : void 0) ?? (lt == null ? void 0 : lt.resolved) ?? !1, vt = !!(it && !qe), Le = !!(lt && !lt.resolved), Ye = !!Xe, ht = !!Xe && qe, st = !!(he != null && he.getMeta(IH)), St = P ? me.floatingCards.find(
43994
+ const lt = Be, it = (Oe == null ? void 0 : Oe.commentId) ?? null, Xe = it ?? (lt == null ? void 0 : lt.id) ?? null, Ve = (it ? Oe == null ? void 0 : Oe.resolved : void 0) ?? (lt == null ? void 0 : lt.resolved) ?? !1, Ft = !!(it && !Ve), Ue = !!(lt && !lt.resolved), Je = !!Xe, ht = !!Xe && Ve, st = !!(he != null && he.getMeta(IH)), St = P ? me.floatingCards.find(
43998
43995
  (ut) => ut.type === "thread" && ut.isFocused
43999
- ) : null, Ft = (St == null ? void 0 : St.type) === "thread" ? St.commentId : null, Je = !Xe || (P ? !Ft || Ft === Xe : me.openReplyId === Xe) || He || st, Bt = !!(r && Xe && He && !st), Mt = !!(Xe && !Bt && Je && P && (vt || Le)), Lt = Ye !== ue, fn = ht !== ne;
44000
- if (Lt && (ue = Ye, me.setIsCommentActive(Ye)), fn && (ne = ht, me.setIsCommentResolved(ht)), Xe && Je && !Bt) {
43996
+ ) : null, vt = (St == null ? void 0 : St.type) === "thread" ? St.commentId : null, Ze = !Xe || (P ? !vt || vt === Xe : me.openReplyId === Xe) || He || st, Bt = !!(r && Xe && He && !st), Mt = !!(Xe && !Bt && Ze && P && (Ft || Ue)), Lt = Je !== ue, fn = ht !== ne;
43997
+ if (Lt && (ue = Je, me.setIsCommentActive(Je)), fn && (ne = ht, me.setIsCommentResolved(ht)), Xe && Ze && !Bt) {
44001
43998
  const ut = !P && !!(He || me.openReplyId !== Xe);
44002
43999
  me.activeCommentId !== Xe && me.setActiveCommentId(Xe), P || (me.setOpenReplyId(Xe), (at = me.setCommentDrawerOpen) == null || at.call(me, !0), ut && S(Xe));
44003
44000
  }
@@ -44052,51 +44049,44 @@ const eme = ({
44052
44049
  );
44053
44050
  if (He.length > 0) {
44054
44051
  const it = new Map(
44055
- He.map((qe) => [qe.id, qe])
44056
- ), Xe = He.map((qe) => ({
44057
- commentId: qe.id,
44052
+ He.map((Ve) => [Ve.id, Ve])
44053
+ ), Xe = He.map((Ve) => ({
44054
+ commentId: Ve.id,
44058
44055
  selectedContent: t.state.doc.textBetween(
44059
- qe.from,
44060
- qe.to,
44056
+ Ve.from,
44057
+ Ve.to,
44061
44058
  " "
44062
44059
  ),
44063
44060
  mutationMeta: {
44064
44061
  type: "edit",
44065
44062
  anchorFrom: or(
44066
- _b(qe.anchorFrom)
44063
+ _b(Ve.anchorFrom)
44067
44064
  ),
44068
44065
  anchorTo: or(
44069
- _b(qe.anchorTo)
44066
+ _b(Ve.anchorTo)
44070
44067
  ),
44071
44068
  selectedContent: t.state.doc.textBetween(
44072
- qe.from,
44073
- qe.to,
44069
+ Ve.from,
44070
+ Ve.to,
44074
44071
  " "
44075
44072
  )
44076
44073
  }
44077
44074
  }));
44078
44075
  w.current = w.current.map(
44079
- (qe) => {
44080
- const vt = it.get(qe.id);
44081
- return vt ? {
44082
- ...qe,
44083
- anchorFrom: vt.anchorFrom,
44084
- anchorTo: vt.anchorTo
44085
- } : qe;
44076
+ (Ve) => {
44077
+ const Ft = it.get(Ve.id);
44078
+ return Ft ? {
44079
+ ...Ve,
44080
+ anchorFrom: Ft.anchorFrom,
44081
+ anchorTo: Ft.anchorTo
44082
+ } : Ve;
44086
44083
  }
44087
44084
  ), j.getState().applyCommentAnchorEdits(
44088
- Xe.map(({ commentId: qe, selectedContent: vt }) => ({
44089
- commentId: qe,
44090
- selectedContent: vt
44085
+ Xe.map(({ commentId: Ve, selectedContent: Ft }) => ({
44086
+ commentId: Ve,
44087
+ selectedContent: Ft
44091
44088
  }))
44092
- ), ke = !0, Xe.forEach(({ commentId: qe, mutationMeta: vt }) => {
44093
- var Le, Ye;
44094
- (Ye = (Le = G.current).onEditComment) == null || Ye.call(
44095
- Le,
44096
- qe,
44097
- vt
44098
- );
44099
- });
44089
+ ), ke = !0;
44100
44090
  }
44101
44091
  Ee = ge();
44102
44092
  const bt = Ee && xt.length > 0 ? new Map(
@@ -44113,10 +44103,10 @@ const eme = ({
44113
44103
  }) : xt;
44114
44104
  if (lt.length > 0) {
44115
44105
  const it = lt.map(
44116
- (qe) => qe.id
44106
+ (Ve) => Ve.id
44117
44107
  ), Xe = new Set(it);
44118
44108
  w.current = w.current.filter(
44119
- (qe) => Xe.has(qe.id) ? (H.current.set(qe.id, qe), !1) : !0
44109
+ (Ve) => Xe.has(Ve.id) ? (H.current.set(Ve.id, Ve), !1) : !0
44120
44110
  ), ke = !0;
44121
44111
  }
44122
44112
  }
@@ -47521,15 +47511,15 @@ function mW() {
47521
47511
  let bt = on({}, ["mi", "mo", "mn", "ms", "mtext"]), lt = on({}, ["annotation-xml"]);
47522
47512
  const it = on({}, ["title", "style", "font", "a", "script"]);
47523
47513
  let Xe = null;
47524
- const qe = ["application/xhtml+xml", "text/html"], vt = "text/html";
47525
- let Le = null, Ye = null;
47514
+ const Ve = ["application/xhtml+xml", "text/html"], Ft = "text/html";
47515
+ let Ue = null, Je = null;
47526
47516
  const ht = n.createElement("form"), st = function(De) {
47527
47517
  return De instanceof RegExp || De instanceof Function;
47528
47518
  }, St = function() {
47529
47519
  let De = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
47530
- if (!(Ye && Ye === De)) {
47520
+ if (!(Je && Je === De)) {
47531
47521
  if ((!De || typeof De != "object") && (De = {}), De = tl(De), Xe = // eslint-disable-next-line unicorn/prefer-includes
47532
- qe.indexOf(De.PARSER_MEDIA_TYPE) === -1 ? vt : De.PARSER_MEDIA_TYPE, Le = Xe === "application/xhtml+xml" ? q4 : U2, z = bs(De, "ALLOWED_TAGS") ? on({}, De.ALLOWED_TAGS, Le) : U, X = bs(De, "ALLOWED_ATTR") ? on({}, De.ALLOWED_ATTR, Le) : le, He = bs(De, "ALLOWED_NAMESPACES") ? on({}, De.ALLOWED_NAMESPACES, q4) : xt, pe = bs(De, "ADD_URI_SAFE_ATTR") ? on(tl(ke), De.ADD_URI_SAFE_ATTR, Le) : ke, he = bs(De, "ADD_DATA_URI_TAGS") ? on(tl(me), De.ADD_DATA_URI_TAGS, Le) : me, q = bs(De, "FORBID_CONTENTS") ? on({}, De.FORBID_CONTENTS, Le) : oe, J = bs(De, "FORBID_TAGS") ? on({}, De.FORBID_TAGS, Le) : tl({}), ee = bs(De, "FORBID_ATTR") ? on({}, De.FORBID_ATTR, Le) : tl({}), I = bs(De, "USE_PROFILES") ? De.USE_PROFILES : !1, Q = De.ALLOW_ARIA_ATTR !== !1, S = De.ALLOW_DATA_ATTR !== !1, V = De.ALLOW_UNKNOWN_PROTOCOLS || !1, G = De.ALLOW_SELF_CLOSE_IN_ATTR !== !1, se = De.SAFE_FOR_TEMPLATES || !1, M = De.SAFE_FOR_XML !== !1, ie = De.WHOLE_DOCUMENT || !1, K = De.RETURN_DOM || !1, ce = De.RETURN_DOM_FRAGMENT || !1, ve = De.RETURN_TRUSTED_TYPE || !1, Z = De.FORCE_BODY || !1, we = De.SANITIZE_DOM !== !1, ye = De.SANITIZE_NAMED_PROPS || !1, ne = De.KEEP_CONTENT !== !1, fe = De.IN_PLACE || !1, H = De.ALLOWED_URI_REGEXP || fW, Be = De.NAMESPACE || Se, bt = De.MATHML_TEXT_INTEGRATION_POINTS || bt, lt = De.HTML_INTEGRATION_POINTS || lt, te = De.CUSTOM_ELEMENT_HANDLING || {}, De.CUSTOM_ELEMENT_HANDLING && st(De.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (te.tagNameCheck = De.CUSTOM_ELEMENT_HANDLING.tagNameCheck), De.CUSTOM_ELEMENT_HANDLING && st(De.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (te.attributeNameCheck = De.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), De.CUSTOM_ELEMENT_HANDLING && typeof De.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (te.allowCustomizedBuiltInElements = De.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), se && (S = !1), ce && (K = !0), I && (z = on({}, lj), X = [], I.html === !0 && (on(z, aj), on(X, uj)), I.svg === !0 && (on(z, K4), on(X, Y4), on(X, Bm)), I.svgFilters === !0 && (on(z, G4), on(X, Y4), on(X, Bm)), I.mathMl === !0 && (on(z, X4), on(X, cj), on(X, Bm))), De.ADD_TAGS && (typeof De.ADD_TAGS == "function" ? Y.tagCheck = De.ADD_TAGS : (z === U && (z = tl(z)), on(z, De.ADD_TAGS, Le))), De.ADD_ATTR && (typeof De.ADD_ATTR == "function" ? Y.attributeCheck = De.ADD_ATTR : (X === le && (X = tl(X)), on(X, De.ADD_ATTR, Le))), De.ADD_URI_SAFE_ATTR && on(pe, De.ADD_URI_SAFE_ATTR, Le), De.FORBID_CONTENTS && (q === oe && (q = tl(q)), on(q, De.FORBID_CONTENTS, Le)), ne && (z["#text"] = !0), ie && on(z, ["html", "head", "body"]), z.table && (on(z, ["tbody"]), delete J.tbody), De.TRUSTED_TYPES_POLICY) {
47522
+ Ve.indexOf(De.PARSER_MEDIA_TYPE) === -1 ? Ft : De.PARSER_MEDIA_TYPE, Ue = Xe === "application/xhtml+xml" ? q4 : U2, z = bs(De, "ALLOWED_TAGS") ? on({}, De.ALLOWED_TAGS, Ue) : U, X = bs(De, "ALLOWED_ATTR") ? on({}, De.ALLOWED_ATTR, Ue) : le, He = bs(De, "ALLOWED_NAMESPACES") ? on({}, De.ALLOWED_NAMESPACES, q4) : xt, pe = bs(De, "ADD_URI_SAFE_ATTR") ? on(tl(ke), De.ADD_URI_SAFE_ATTR, Ue) : ke, he = bs(De, "ADD_DATA_URI_TAGS") ? on(tl(me), De.ADD_DATA_URI_TAGS, Ue) : me, q = bs(De, "FORBID_CONTENTS") ? on({}, De.FORBID_CONTENTS, Ue) : oe, J = bs(De, "FORBID_TAGS") ? on({}, De.FORBID_TAGS, Ue) : tl({}), ee = bs(De, "FORBID_ATTR") ? on({}, De.FORBID_ATTR, Ue) : tl({}), I = bs(De, "USE_PROFILES") ? De.USE_PROFILES : !1, Q = De.ALLOW_ARIA_ATTR !== !1, S = De.ALLOW_DATA_ATTR !== !1, V = De.ALLOW_UNKNOWN_PROTOCOLS || !1, G = De.ALLOW_SELF_CLOSE_IN_ATTR !== !1, se = De.SAFE_FOR_TEMPLATES || !1, M = De.SAFE_FOR_XML !== !1, ie = De.WHOLE_DOCUMENT || !1, K = De.RETURN_DOM || !1, ce = De.RETURN_DOM_FRAGMENT || !1, ve = De.RETURN_TRUSTED_TYPE || !1, Z = De.FORCE_BODY || !1, we = De.SANITIZE_DOM !== !1, ye = De.SANITIZE_NAMED_PROPS || !1, ne = De.KEEP_CONTENT !== !1, fe = De.IN_PLACE || !1, H = De.ALLOWED_URI_REGEXP || fW, Be = De.NAMESPACE || Se, bt = De.MATHML_TEXT_INTEGRATION_POINTS || bt, lt = De.HTML_INTEGRATION_POINTS || lt, te = De.CUSTOM_ELEMENT_HANDLING || {}, De.CUSTOM_ELEMENT_HANDLING && st(De.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (te.tagNameCheck = De.CUSTOM_ELEMENT_HANDLING.tagNameCheck), De.CUSTOM_ELEMENT_HANDLING && st(De.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (te.attributeNameCheck = De.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), De.CUSTOM_ELEMENT_HANDLING && typeof De.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (te.allowCustomizedBuiltInElements = De.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), se && (S = !1), ce && (K = !0), I && (z = on({}, lj), X = [], I.html === !0 && (on(z, aj), on(X, uj)), I.svg === !0 && (on(z, K4), on(X, Y4), on(X, Bm)), I.svgFilters === !0 && (on(z, G4), on(X, Y4), on(X, Bm)), I.mathMl === !0 && (on(z, X4), on(X, cj), on(X, Bm))), De.ADD_TAGS && (typeof De.ADD_TAGS == "function" ? Y.tagCheck = De.ADD_TAGS : (z === U && (z = tl(z)), on(z, De.ADD_TAGS, Ue))), De.ADD_ATTR && (typeof De.ADD_ATTR == "function" ? Y.attributeCheck = De.ADD_ATTR : (X === le && (X = tl(X)), on(X, De.ADD_ATTR, Ue))), De.ADD_URI_SAFE_ATTR && on(pe, De.ADD_URI_SAFE_ATTR, Ue), De.FORBID_CONTENTS && (q === oe && (q = tl(q)), on(q, De.FORBID_CONTENTS, Ue)), ne && (z["#text"] = !0), ie && on(z, ["html", "head", "body"]), z.table && (on(z, ["tbody"]), delete J.tbody), De.TRUSTED_TYPES_POLICY) {
47533
47523
  if (typeof De.TRUSTED_TYPES_POLICY.createHTML != "function")
47534
47524
  throw Tf('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
47535
47525
  if (typeof De.TRUSTED_TYPES_POLICY.createScriptURL != "function")
@@ -47537,16 +47527,16 @@ function mW() {
47537
47527
  x = De.TRUSTED_TYPES_POLICY, w = x.createHTML("");
47538
47528
  } else
47539
47529
  x === void 0 && (x = aye(h, o)), x !== null && typeof w == "string" && (w = x.createHTML(""));
47540
- Po && Po(De), Ye = De;
47530
+ Po && Po(De), Je = De;
47541
47531
  }
47542
- }, Ft = on({}, [...K4, ...G4, ...Ybe]), Je = on({}, [...X4, ...Zbe]), Bt = function(De) {
47532
+ }, vt = on({}, [...K4, ...G4, ...Ybe]), Ze = on({}, [...X4, ...Zbe]), Bt = function(De) {
47543
47533
  let Pe = v(De);
47544
47534
  (!Pe || !Pe.tagName) && (Pe = {
47545
47535
  namespaceURI: Be,
47546
47536
  tagName: "template"
47547
47537
  });
47548
47538
  const ft = U2(De.tagName), sn = U2(Pe.tagName);
47549
- return He[De.namespaceURI] ? De.namespaceURI === ge ? Pe.namespaceURI === Se ? ft === "svg" : Pe.namespaceURI === Ee ? ft === "svg" && (sn === "annotation-xml" || bt[sn]) : !!Ft[ft] : De.namespaceURI === Ee ? Pe.namespaceURI === Se ? ft === "math" : Pe.namespaceURI === ge ? ft === "math" && lt[sn] : !!Je[ft] : De.namespaceURI === Se ? Pe.namespaceURI === ge && !lt[sn] || Pe.namespaceURI === Ee && !bt[sn] ? !1 : !Je[ft] && (it[ft] || !Ft[ft]) : !!(Xe === "application/xhtml+xml" && He[De.namespaceURI]) : !1;
47539
+ return He[De.namespaceURI] ? De.namespaceURI === ge ? Pe.namespaceURI === Se ? ft === "svg" : Pe.namespaceURI === Ee ? ft === "svg" && (sn === "annotation-xml" || bt[sn]) : !!vt[ft] : De.namespaceURI === Ee ? Pe.namespaceURI === Se ? ft === "math" : Pe.namespaceURI === ge ? ft === "math" && lt[sn] : !!Ze[ft] : De.namespaceURI === Se ? Pe.namespaceURI === ge && !lt[sn] || Pe.namespaceURI === Ee && !bt[sn] ? !1 : !Ze[ft] && (it[ft] || !vt[ft]) : !!(Xe === "application/xhtml+xml" && He[De.namespaceURI]) : !1;
47550
47540
  }, Mt = function(De) {
47551
47541
  Af(t.removed, {
47552
47542
  element: De
@@ -47618,14 +47608,14 @@ function mW() {
47618
47608
  };
47619
47609
  function ut(ot, De, Pe) {
47620
47610
  jm(ot, (ft) => {
47621
- ft.call(t, De, Pe, Ye);
47611
+ ft.call(t, De, Pe, Je);
47622
47612
  });
47623
47613
  }
47624
47614
  const Ot = function(De) {
47625
47615
  let Pe = null;
47626
47616
  if (ut(T.beforeSanitizeElements, De, null), Me(De))
47627
47617
  return Mt(De), !0;
47628
- const ft = Le(De.nodeName);
47618
+ const ft = Ue(De.nodeName);
47629
47619
  if (ut(T.uponSanitizeElement, De, {
47630
47620
  tagName: ft,
47631
47621
  allowedTags: z
@@ -47702,7 +47692,7 @@ function mW() {
47702
47692
  name: Nn,
47703
47693
  namespaceURI: vr,
47704
47694
  value: bi
47705
- } = un, Yl = Le(Nn), Ct = bi;
47695
+ } = un, Yl = Ue(Nn), Ct = bi;
47706
47696
  let Vn = Nn === "value" ? Ct : Kbe(Ct);
47707
47697
  if (ft.attrName = Yl, ft.attrValue = Vn, ft.keepAttr = !0, ft.forceKeepAttr = void 0, ut(T.uponSanitizeAttribute, De, ft), Vn = ft.attrValue, ye && (Yl === "id" || Yl === "name") && (Lt(Nn, De), Vn = ue + Vn), M && Co(/((--!?|])>)|<\/(style|title|textarea)/i, Vn)) {
47708
47698
  Lt(Nn, De);
@@ -47725,7 +47715,7 @@ function mW() {
47725
47715
  se && jm([_, N, C], (Ha) => {
47726
47716
  Vn = Sf(Vn, Ha, " ");
47727
47717
  });
47728
- const wc = Le(De.nodeName);
47718
+ const wc = Ue(De.nodeName);
47729
47719
  if (!Qt(wc, Yl, Vn)) {
47730
47720
  Lt(Nn, De);
47731
47721
  continue;
@@ -47768,7 +47758,7 @@ function mW() {
47768
47758
  return ot;
47769
47759
  if (ae || St(De), t.removed = [], typeof ot == "string" && (fe = !1), fe) {
47770
47760
  if (ot.nodeName) {
47771
- const bi = Le(ot.nodeName);
47761
+ const bi = Ue(ot.nodeName);
47772
47762
  if (!z[bi] || J[bi])
47773
47763
  throw Tf("root node is forbidden and cannot be sanitized in-place");
47774
47764
  }
@@ -47804,10 +47794,10 @@ function mW() {
47804
47794
  let ot = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
47805
47795
  St(ot), ae = !0;
47806
47796
  }, t.clearConfig = function() {
47807
- Ye = null, ae = !1;
47797
+ Je = null, ae = !1;
47808
47798
  }, t.isValidAttribute = function(ot, De, Pe) {
47809
- Ye || St({});
47810
- const ft = Le(ot), sn = Le(De);
47799
+ Je || St({});
47800
+ const ft = Ue(ot), sn = Ue(De);
47811
47801
  return Qt(ft, sn, Pe);
47812
47802
  }, t.addHook = function(ot, De) {
47813
47803
  typeof De == "function" && Af(T[ot], De);
@@ -50866,7 +50856,7 @@ const Pp = (e) => {
50866
50856
  r.code
50867
50857
  ),
50868
50858
  children: /* @__PURE__ */ F.jsx(
50869
- Ue,
50859
+ Le,
50870
50860
  {
50871
50861
  name: "Check",
50872
50862
  className: tt(
@@ -50892,7 +50882,7 @@ const Pp = (e) => {
50892
50882
  },
50893
50883
  className: "w-full justify-start mt-2 gap-1 !p-1 h-fit",
50894
50884
  children: [
50895
- /* @__PURE__ */ F.jsx(Ue, { name: "Ban", className: "w-[18px] aspect-square" }),
50885
+ /* @__PURE__ */ F.jsx(Le, { name: "Ban", className: "w-[18px] aspect-square" }),
50896
50886
  /* @__PURE__ */ F.jsx("span", { children: "None" })
50897
50887
  ]
50898
50888
  }
@@ -50951,7 +50941,7 @@ const Pp = (e) => {
50951
50941
  "rounded w-8 h-8 p-1 flex justify-center items-center cursor-pointer transition",
50952
50942
  t.isActive({ textAlign: "left" }) ? "color-bg-brand xl:hover:brightness-90 color-text-on-brand" : "hover:color-bg-default-hover"
50953
50943
  ),
50954
- children: /* @__PURE__ */ F.jsx(Ue, { name: "AlignLeft" })
50944
+ children: /* @__PURE__ */ F.jsx(Le, { name: "AlignLeft" })
50955
50945
  }
50956
50946
  ),
50957
50947
  /* @__PURE__ */ F.jsx(
@@ -50965,7 +50955,7 @@ const Pp = (e) => {
50965
50955
  "rounded w-8 h-8 p-1 flex justify-center items-center cursor-pointer transition",
50966
50956
  t.isActive({ textAlign: "center" }) ? "color-bg-brand xl:hover:brightness-90 color-text-on-brand" : "hover:color-bg-default-hover"
50967
50957
  ),
50968
- children: /* @__PURE__ */ F.jsx(Ue, { name: "AlignCenter" })
50958
+ children: /* @__PURE__ */ F.jsx(Le, { name: "AlignCenter" })
50969
50959
  }
50970
50960
  ),
50971
50961
  /* @__PURE__ */ F.jsx(
@@ -50979,7 +50969,7 @@ const Pp = (e) => {
50979
50969
  "rounded w-8 h-8 p-1 flex justify-center items-center cursor-pointer transition",
50980
50970
  t.isActive({ textAlign: "right" }) ? "color-bg-brand xl:hover:brightness-90 color-text-on-brand" : "hover:color-bg-default-hover"
50981
50971
  ),
50982
- children: /* @__PURE__ */ F.jsx(Ue, { name: "AlignRight" })
50972
+ children: /* @__PURE__ */ F.jsx(Le, { name: "AlignRight" })
50983
50973
  }
50984
50974
  ),
50985
50975
  /* @__PURE__ */ F.jsx(
@@ -50993,7 +50983,7 @@ const Pp = (e) => {
50993
50983
  "rounded w-8 h-8 p-1 flex justify-center items-center cursor-pointer transition",
50994
50984
  t.isActive({ textAlign: "justify" }) ? "color-bg-brand xl:hover:brightness-90 color-text-on-brand" : "hover:color-bg-default-hover"
50995
50985
  ),
50996
- children: /* @__PURE__ */ F.jsx(Ue, { name: "AlignJustify" })
50986
+ children: /* @__PURE__ */ F.jsx(Le, { name: "AlignJustify" })
50997
50987
  }
50998
50988
  )
50999
50989
  ]
@@ -51093,10 +51083,10 @@ const Pp = (e) => {
51093
51083
  ),
51094
51084
  children: [
51095
51085
  /* @__PURE__ */ F.jsxs("div", { className: "flex items-center gap-2", children: [
51096
- /* @__PURE__ */ F.jsx("div", { className: "rounded color-bg-default color-text-default p-1", children: /* @__PURE__ */ F.jsx(Ue, { name: r.icon, size: "sm" }) }),
51086
+ /* @__PURE__ */ F.jsx("div", { className: "rounded color-bg-default color-text-default p-1", children: /* @__PURE__ */ F.jsx(Le, { name: r.icon, size: "sm" }) }),
51097
51087
  /* @__PURE__ */ F.jsx("span", { children: r.title })
51098
51088
  ] }),
51099
- r.isActive() && /* @__PURE__ */ F.jsx(Ue, { name: "Check", size: "sm", className: "ml-2" })
51089
+ r.isActive() && /* @__PURE__ */ F.jsx(Le, { name: "Check", size: "sm", className: "ml-2" })
51100
51090
  ]
51101
51091
  },
51102
51092
  r.title
@@ -51129,7 +51119,7 @@ const Pp = (e) => {
51129
51119
  ),
51130
51120
  style: { backgroundColor: a },
51131
51121
  children: /* @__PURE__ */ F.jsx(
51132
- Ue,
51122
+ Le,
51133
51123
  {
51134
51124
  name: "Check",
51135
51125
  className: tt(
@@ -51155,7 +51145,7 @@ const Pp = (e) => {
51155
51145
  },
51156
51146
  className: "w-full justify-center mt-2 gap-1 !p-1 h-fit min-w-fit",
51157
51147
  children: [
51158
- /* @__PURE__ */ F.jsx(Ue, { name: "Ban", className: "w-[18px] aspect-square" }),
51148
+ /* @__PURE__ */ F.jsx(Le, { name: "Ban", className: "w-[18px] aspect-square" }),
51159
51149
  /* @__PURE__ */ F.jsx("span", { children: "None" })
51160
51150
  ]
51161
51151
  }
@@ -51226,7 +51216,7 @@ const Pp = (e) => {
51226
51216
  }
51227
51217
  ),
51228
51218
  children: [
51229
- /* @__PURE__ */ F.jsx("div", { className: "flex h-10 w-10 items-center justify-center rounded color-bg-default color-text-default", children: /* @__PURE__ */ F.jsx(Ue, { name: o.icon, size: "md" }) }),
51219
+ /* @__PURE__ */ F.jsx("div", { className: "flex h-10 w-10 items-center justify-center rounded color-bg-default color-text-default", children: /* @__PURE__ */ F.jsx(Le, { name: o.icon, size: "md" }) }),
51230
51220
  /* @__PURE__ */ F.jsxs("div", { children: [
51231
51221
  /* @__PURE__ */ F.jsx("p", { className: "font-medium", children: o.title }),
51232
51222
  /* @__PURE__ */ F.jsxs("p", { className: "text-xs text-stone-500", children: [
@@ -51305,7 +51295,7 @@ const Pp = (e) => {
51305
51295
  }
51306
51296
  ),
51307
51297
  children: [
51308
- n === i.value ? /* @__PURE__ */ F.jsx(Ue, { name: "Check", size: "sm" }) : /* @__PURE__ */ F.jsx("div", { className: "w-4" }),
51298
+ n === i.value ? /* @__PURE__ */ F.jsx(Le, { name: "Check", size: "sm" }) : /* @__PURE__ */ F.jsx("div", { className: "w-4" }),
51309
51299
  /* @__PURE__ */ F.jsx("span", { className: "font-medium", children: i.label }),
51310
51300
  /* @__PURE__ */ F.jsx("span", { className: "text-xs color-text-secondary", children: i.description })
51311
51301
  ]
@@ -51566,7 +51556,7 @@ const Pp = (e) => {
51566
51556
  "hover:color-bg-default-hover": !u.isActive()
51567
51557
  }
51568
51558
  ),
51569
- children: /* @__PURE__ */ F.jsx(Ue, { name: u.icon, size: "md" })
51559
+ children: /* @__PURE__ */ F.jsx(Le, { name: u.icon, size: "md" })
51570
51560
  },
51571
51561
  u.title
51572
51562
  )) }),
@@ -51581,7 +51571,7 @@ const Pp = (e) => {
51581
51571
  "hover:color-bg-default-hover": !u.isActive()
51582
51572
  }
51583
51573
  ),
51584
- children: /* @__PURE__ */ F.jsx(Ue, { name: u.icon, size: "md" })
51574
+ children: /* @__PURE__ */ F.jsx(Le, { name: u.icon, size: "md" })
51585
51575
  },
51586
51576
  u.title
51587
51577
  )) })
@@ -51598,7 +51588,7 @@ const Pp = (e) => {
51598
51588
  "hover:color-bg-default-hover": !u.isActive()
51599
51589
  }
51600
51590
  ),
51601
- children: /* @__PURE__ */ F.jsx(Ue, { name: u.icon, size: "sm" })
51591
+ children: /* @__PURE__ */ F.jsx(Le, { name: u.icon, size: "sm" })
51602
51592
  },
51603
51593
  u.title
51604
51594
  )) }),
@@ -51613,7 +51603,7 @@ const Pp = (e) => {
51613
51603
  "hover:color-bg-default-hover": !u.isActive()
51614
51604
  }
51615
51605
  ),
51616
- children: /* @__PURE__ */ F.jsx(Ue, { name: u.icon, size: "sm" })
51606
+ children: /* @__PURE__ */ F.jsx(Le, { name: u.icon, size: "sm" })
51617
51607
  },
51618
51608
  u.title
51619
51609
  )) })
@@ -51629,7 +51619,7 @@ const Pp = (e) => {
51629
51619
  "hover:color-bg-default-hover": !u.isActive()
51630
51620
  }
51631
51621
  ),
51632
- children: /* @__PURE__ */ F.jsx(Ue, { name: u.icon, size: "md" })
51622
+ children: /* @__PURE__ */ F.jsx(Le, { name: u.icon, size: "md" })
51633
51623
  },
51634
51624
  u.title
51635
51625
  )) }),
@@ -51659,7 +51649,7 @@ const Pp = (e) => {
51659
51649
  onClick: () => {
51660
51650
  e && e.chain().unsetColor().run();
51661
51651
  },
51662
- children: /* @__PURE__ */ F.jsx(Ue, { name: "Ban", className: "w-6 h-6" })
51652
+ children: /* @__PURE__ */ F.jsx(Le, { name: "Ban", className: "w-6 h-6" })
51663
51653
  }
51664
51654
  )
51665
51655
  }
@@ -51681,7 +51671,7 @@ const Pp = (e) => {
51681
51671
  u.code
51682
51672
  ),
51683
51673
  children: /* @__PURE__ */ F.jsx(
51684
- Ue,
51674
+ Le,
51685
51675
  {
51686
51676
  name: "Check",
51687
51677
  className: tt(
@@ -52032,7 +52022,7 @@ const Pp = (e) => {
52032
52022
  onMouseDown: (o) => o.preventDefault(),
52033
52023
  children: [
52034
52024
  /* @__PURE__ */ F.jsx("span", { className: "text-body-sm truncate", children: r.name }),
52035
- /* @__PURE__ */ F.jsx(Ue, { name: "ChevronDown", size: "sm", className: "mt-1" })
52025
+ /* @__PURE__ */ F.jsx(Le, { name: "ChevronDown", size: "sm", className: "mt-1" })
52036
52026
  ]
52037
52027
  }
52038
52028
  ),
@@ -52057,10 +52047,10 @@ const Pp = (e) => {
52057
52047
  ),
52058
52048
  children: [
52059
52049
  /* @__PURE__ */ F.jsxs("div", { className: "flex items-center space-x-2", children: [
52060
- /* @__PURE__ */ F.jsx("div", { className: "rounded color-bg-default color-text-default p-1", children: /* @__PURE__ */ F.jsx(Ue, { name: o.icon, size: "sm" }) }),
52050
+ /* @__PURE__ */ F.jsx("div", { className: "rounded color-bg-default color-text-default p-1", children: /* @__PURE__ */ F.jsx(Le, { name: o.icon, size: "sm" }) }),
52061
52051
  /* @__PURE__ */ F.jsx("span", { children: o.name })
52062
52052
  ] }),
52063
- r.name === o.name && /* @__PURE__ */ F.jsx(Ue, { name: "Check", size: "sm" })
52053
+ r.name === o.name && /* @__PURE__ */ F.jsx(Le, { name: "Check", size: "sm" })
52064
52054
  ]
52065
52055
  },
52066
52056
  i
@@ -52104,7 +52094,7 @@ const Pp = (e) => {
52104
52094
  );
52105
52095
  }
52106
52096
  ), Pl = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cpath%20d='M0%2012C0%205.37258%205.37258%200%2012%200C18.6274%200%2024%205.37258%2024%2012C24%2018.6274%2018.6274%2024%2012%2024C5.37258%2024%200%2018.6274%200%2012Z'%20fill='url(%23pattern0_2594_44493)'/%3e%3cdefs%3e%3cpattern%20id='pattern0_2594_44493'%20patternContentUnits='objectBoundingBox'%20width='1'%20height='1'%3e%3cuse%20xlink:href='%23image0_2594_44493'%20transform='translate(0%20-0.0714286)%20scale(0.0102041)'/%3e%3c/pattern%3e%3cimage%20id='image0_2594_44493'%20width='98'%20height='112'%20xlink:href='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGIAAABwCAYAAADlu6WeAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABJOSURBVHgB7Z0LeFXVlcf/+9xcQgCBovazWhVRrFP5KFrbiuUhmhBEBPohtGodwVpbdfCBUkAeOSHhpShaqq2vGSxYHcXailISQgIKfTjWMs44MrU6tIOOjxFQECXJPbv/dU4SktzXed3kXMLv+3I53LvPueeetffaa6+19t4K+YbWCotqj0fCmAjdkIA5+mct75fX3s2jdeh3cBtuHHsQeYSBfMKsOw5mzU1oRA104ieA+mLLZ1OeMiiMkVD6OewurIRZfTzyCIV8oGx9bxjdh/LhL+Itnw37vtVOoOGrMMfsbim3oPZiGNYTPOrBv5cQ01djfsnryAOi3SKufTmOhVvOguq2Atr6FR/+V2ELQVuAdV8bIQh7Pqvh6yNOGZyLhHoR5TXfg2lGvuVH9wYXv3AsTth7G6zGZ/m/q/nXvdWn/wYUrEo6ZyX7BR1bDo3tTe8czeMHgWFPY+66ExBhoqeazLoCWIlJVCsV0GpgcgH1CWv6SFRc8Me011hYOxKW9TREEIfYxVY0H9i7FuaU/YgY0WoRFdUD2dmu5V2tSS0EQT+cUQiCpf7A1/vbvcuO3VhJ2SyGuXEAIkY0WoRZR7XDjlUlTArg2PQF1V/4MIfCHPX/2S7Jh30Sy27idU9LcZ2XqPIqcUyiOipmbue3CLPuDCCxmtX43sxCsDvoMldCsK9b8jeqpzt4lOJB66/DiK2imTud398LEaDzBCF9wcKa24FGUSOX8q8g8wnGc8C2J+AFY5tYUI+n+bQfBbuMlWALFlZ9A51M56gmR20s5QBsCu8glv0E9S4f2pWs5TXwivn8cTS4trIVnJqh1EdQxjK2yDvZ4hrRCXRsixB73qwdC6U288Fc5k4IgvoFBwkvwA/mxe/ye2YipYpqoQ8Hi5VsHWs4ePwiOgGXDyIEZHSsBsxlzV7BB/t5D2dyTKBnw7zkffjl/AF/Bk4SS2lI+kJKtMMg1s1LcMHUXfY5mzdrdBAd0yLMDafBKPwlHygFoXp4OPMA1dcSYOtfEATTZEd/cA6//52sZRXNZq3ZAkc85Ki1jiH3fUT5pov4wx7mkQ8nnH6MffjU0PT2gk3f50DxPo624+5OUG+xBdNFUrIZOSZ3ghCrSFm3Uggm2ronXCIddOMomKU7EBaTn4zhzH6/5tHFHs46wL+7qMXvYIXI2Yg8N6pJBmgqcQ9N/8XwJQTBeiRUIQhPTUnw9UdsaV76G1GldI1YVaio/RJyRPiCqKg6hS2B8QLcwFrt7/oKr1ElLUcuMIv/iy6QGfyOBk/nQZ+HhPV7Bp9m4pbfFiFkwhXEom1DkChYT3X0TfiHHlTjdqqBvcgVRuxfOWZYC+/0ZSu/A30+peOw5nSESHiCkE654bMNrDlnIAgKHEGr9cgldudvzebR3+ALPZYvm1BRNzGsWEc4nfXCmqGwIA+vL4Kg9Acw2Jrmj34DHUE5w64a98A/n7ETn453jnoUD57jUdW1Jbg0y+uuoBDYEgIKgVWUD2V2hwlB0LH7KP1q+IeGSOMDOP6jNTCfCfT7gwlChKATkkXRG8H5Ld0Ya9CR2CpKT+dRgP5IDBL6zHDUapjPHgOf+BdEee2EJiGE4UYWnU2H25R6dDRmMd0fehGCMw7o+ajfkKw/QSyu+TIdZD9FOEIginHpeG476IwUSGqOP6diG/RoxHss9dMyvHfWtv+lcB2PzkE4cAQdk6jbTnQmplQu/Ts+kqBqtp593TqofdfA/JZrleetRYjbAt1ktByWEIgu63QhCDLQA1YgON1YvSexz1gB88lubk/yJgiVGMWXyxAaog72rEJU0A2SsvkSwkDjSuCYH9qpoC5wr5rsAH+CwXich3BgB62+AfPCVxAlFlaPpAtkvUd3fRr0HgpkLMpLfp+tpIcWkRjDC4epkh6PnBCEBSVspepehIL6HOMbD7iJ+nlRTdfwwq51XhbExb0AkURp6PqlsMc1oTDYThm1NUp63AnC3NCPSiy81qBQCfOinYgq5WM/pm6/lUdhxR8mAg3fyVTAnSCMbqfwxj6HcKCLPPYooo7axk6b0bxwoLWp5qKsLq2KcicIC2eGpJZ28zpluYx0hYYd59Y/5v3+J0JBncY4zYJ0VpQ7QWirPwKjLbpl6Ol8MasFERnM0e/QjUMVpUNyvegrUF6VMr/KnSCU9u3ManWRV6C7PeLUtDxCxWv5mMJSpTSJ4z9KFcNwaTWpoPlPB1kbfgpzWPZ0lqghHtr6hjIaGG8iFDQHxMOSEqNdqiZ8iiAo8fl/+izylcVj/o+adQYfxMcIDh2l+rr25uwhQUhzkfiCnZfaDsN4G/55n4KkuTreXRZ3ZBHvsPHPkGoZGEX3B/q3fqdVixh6Pjumh/k15yadZ1j/4+8GJJXeYMzixZeR7zhBpH+h1RMs69DhaBiNl9p5Vk20EkTBtyChPwPJgY36RhHEJ/CM2g6tHsq7DjodZvGrVLOMXegDCIo2JmJgYYsR1EoQdmaCFBicdFKs8E12Vh/CG/TFG4tQPmoXDid0/SonkBVQRWnrLMR7faX5v44g5lWdwk/628dKfzPJLyIDMK09RrBsD2YnRt1yhLg/ALGiAqooxrqVmtL8P0cQ8diIlqw8jS/QLzIo6TzLeh52+oib78B7lPhKCtBd+XzDjnOrJfydwaxJbY1oPmx++Oe3+rgXhw2lSSc1FNU6s/2zYlG9/dzx1RzGaONxPrcgqTiifU7F3KoT5bC5j2gb7NHWd52waCuWjPiAMQlaDUhkvjj+A/X77jpsOuh0SGtP6HJIjNo31ELdYqPlyOADl567XR4nHVRoTDZjYT3MB/3f6S8M6Utuw+IJ76ErUFHyJ2fyTQA0iuUftojGQSk+FrfttCSfiL32hZIAe5qJI2qtrwmHeU2BpGxuh3/sCi89d7qcfwYzhqeYc/bhz5E6ekUztSGMRK38QgZ6mi6LtJUzK/1FKxnsdAakKSDzkG9LbhWSjdc4004YboNVzhYTxqgz/3CSA5bAN/WD2SL0iekLqAlsFcl9hTnmJeo2mdXvDGqkg0Z8Fbo0uyv5HP4EXxScLgm0mWZO9qCgZidZUDZ7GL3SMmCT+cu3dtZE8chgawo93/tMJME6laqpzVI6qRhDVTQ+5RcfLJwGS09CWfFGHIHeuKIX+Dyfh1e0cbKCWSMOvf4ZCyr8O/T/ngtz2uE5Ug6T+RvPQkyEob7g+hyFOrd5TYOhTpqWWkUdoQ079tBDiwp4saKoldxG6BT12EwkGv8BR8iMTCHWBU/x6DkPZ/Vyn+mn1SmIqZvtNTWOkBlZUypBq1KpD1yeYVAQykuO0eUw4iVuM5y7NHvrX6HH+jG3xY3kgVlGutvu3/kbT8MRMiMrbqr6ZTza6aY4zVe1B17QGIiC2IxsSbVdikWbzk45KcVeK0otzuqxBj6WPsLHpG8tWQghpujnMSaF0KAZq+l3Z8rPtbGawsiWPLFXVJOfmHJPWmdzWmchdElsc17LXIo+/LueY7JLk8tIlFIvzZK2+b64OPwm2Y7BoH4/RFdGWZfYi6U4yBhrEeZuSeG7iz2XcWK9Um8bsApeg7+7EPfIUpi/6Y+uiMyu1bi73Qo8pyPecEdyWTsnSjruNBaqfsNoSnd5F/7oRa/rSnRFdPfb+HJy0vsKE1BedVHyCQXiKt+c+lp4s1maQVLlx8GsnoquhLlxGPvWHyDVZFCNIujYvCQryvFOy8SXFK6P2PYmQahNCISxEpXPn4yugL34iboLmVddoEXZ9/Kkd3v32MLXv7Z7920K6V1HEEZDHYJlrvVConDmYe8UFI+C6sOwqB6SpSRbg7oG5rNtpwjPOE/yoJ5uV3arvDiCWDBGOuxgcxdkgnesKW3zcKWi7st0fl7nahqbUvRY905e6tqwnYGtwgmqlSAErYJOZ+1N34qJuZsivWGGb0Tn64QstHWiq/IaR8FqHJ70/seJV/jZey2lHG3UOgnZWuuk0QdA4yuI60ova1DkDeo4OjvVt72dg1FJrqDlpZ/w/Wbj6J0mbdQmLZ8twvgzgiHXmwh19CQcTsg8c10vawB6DQEMRKwhuQUp3bQRid7S/NYhQSgZSySqEJy+drZfqplH+YidThS7utUI2gufR32qFaCNXXaSgYUnW9459IW0cxMFqyFL+AdnMCWbF7tdZSU26kv8LdPhbw3bOOPXyVv0qIZXWVnvxr49LW6PtuZmbP/r0EXV7PEnIxhy3euB4TI+8TivIkJINNJKSG6r/9atYsnGi9MvzG79VrssvvEyJUnWLAojW+MY6sLlWPbro5CvGIWltF/GIwja9sxm/6qkd1SB+M69BL4z3cTXcKDnLXkZWp1TI/leN/EvWEXS7izRZEE4SbUyhA8nc8/ADFRUDUY+IX1bd0xlaxiKoBjaVQQ0dQdkz/ax1iEMpGla8R9j8S+zZRRGiOFDWBlnwO8i862xYq4WFE79RfZsH2Megro9WtAj0ND72rxQUc4AbD6FEMbuvwfYT+50UzC9xJ1VH+8NPNpuQd+CyppgC7h3CIlxvNeJCAX9Fh/xW25KZm56uv5nrBmbEQay2V9CLY509ofsly3pQuHxqtsNDDMLQuYUJ4wbqef/inCg+6PhKkQWPS/1lpq+kFU8n3FbOHtnVHHBa+z5b0BYVhRUhbPqcMQwq2Srzu8jNNQOjpA3uC3tMgl522/sXXPDwN6PlOZxDraH8Y3jT1qB8FbxZKVtXORlyTyXq1yKFVUg+7iF4RQURqPvgasRFdQIWRBmDMKDA+JunrbO8WZOStAnrtfau98GtbEl51Yztiu77HYmZjXNVLXFmVseCrSSYhd6Xe/c28NcdKEsoMXONlYbPIgkKspY0fke2lh5aEJQ2IcEvutn0XnvD8FeEMSSrc1CWAzLor0+bAo6i4W1I1kjpiIc6BpSt6Oi+Hfwgb/aaAsjdpVjGQTBVm/LaLF42UQ2HCSca1mzkHUfbVc0OruyyGpt/vCvFsxROxj0GNe0iFQQ6OuP3dvhCc3q2Mv48EoRHEkupkALKoNMcQ6mn+df+CY+KvoOf5CsRxFgnKGn4Mx+Ie5LkQXpoLVVGYJT7zNYaiqw9Z6g88zDccJd+3IcJ+y5mVbQPP9bw+gdONgwAkvGepnB5B3bOBj2II++h2DsZR83HWUljzGiGXjly3AsFtkMr6zkTt6QOMtehS/UGSiML8i5FWWcN9xZBDcAskIbrKtgjl4ThhDs20KYlBXX0U1QwqNH4EtVKQ7yhp+PXGHW9YJlLA20W4rCG7SOxlIIoS4oHH7tM0vfp1V1DWudCGQnvMEHZD2Qu53V9RxnMOoThWegY1/PxU4wuVMDsiu6rqcaUE/AU+uQwVVhBcLGnlBjXe+zg2601za36qfmalfh3Orj8rG7+BVX8sfLwlJefsDl9NCG5/txtm2THVL87Ccqy4veRPP0xqalRnNCx4Uuzeoh/DqZvlTsslYybr6v1Mumemkpr5W0GHHCedxJ0t7E4waqopznZnWcn8ccvZ21agLswY/srJIFha8BfW5HUCq3nEghmPAiBCXzotUvEN9f3BFCcL6yMzCrz7FnGSHFgvBt+YS6eZzd3/hBxjfH75llb6fj1pWh1If2bpE69kBHLgbWeVkVZh31dUJG5JLqnj6OLWtFHdAjsazEe05uWd25UAmZoeMmI0PGA3+AkfgnLCj9IzqYznNBi/VhFk/l0TQ+7UyT7gejyN6KzOP1OTBUlpyXXQj20tLG/bTySjtDCM4tRAE7e0I2CFQUSsrWsY81+wqUlbpPejOrx/N6T7kIf25lmVnsC8LaANAX0Un4ksxrFf9H3pLU4v7JBTTjH59e5GpnFhlBw2JcQA9KW0ax/9Ga/VTBslyNDbwQnfkLto2+7X4+IekzfoWkQaA6G6rnZFczV5XY/WmFoO1lQbVtBMyJghCEaKZAOqrqZh5d186by/i2NYmmcProoJ0WE5MoWYrBm95Nt/Vy9Oz+E8watg8RItq5qI6Z+xCPWs1rZqD/4MHJKd3lszb2QZHtUmk/Kt/P81YzfLDQXkMpgkR7apVd82Pir1qOlskz1nAUFf4gpYoqoimsUdLqHUlwqGHrmoz9jTOjKgQhfyaQOL4nWctiAGRknsBEBupfPPS5TCnu93rT5/LL3mY/QEusYL0ssYCIE+0W0RqzeAMHgBPsrRFkmm0Bytt8ro6diWYhSQvSCfq0tq3KByEI+TelyjFzGQk0vo3XPhxvr7MqmDX3SNYa1RCDUt125Nta5X8H3LvgGvQafyIAAAAASUVORK5CYII='/%3e%3c/defs%3e%3c/svg%3e", Y9 = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M7.76891%200.220314C7.29839%20-0.0734379%206.70161%20-0.0734378%206.23109%200.220314L4.81636%201.10354C4.68024%201.18851%204.53098%201.25034%204.37464%201.2865L2.74974%201.66233C2.20932%201.78733%201.78733%202.20932%201.66233%202.74974L1.2865%204.37464C1.25034%204.53098%201.18851%204.68024%201.10354%204.81636L0.220314%206.23109C-0.0734379%206.70161%20-0.0734378%207.29839%200.220314%207.76891L1.10354%209.18364C1.18851%209.31976%201.25034%209.46902%201.2865%209.62537L1.66233%2011.2503C1.78733%2011.7907%202.20932%2012.2127%202.74974%2012.3377L4.37464%2012.7135C4.53098%2012.7497%204.68024%2012.8115%204.81636%2012.8965L6.23109%2013.7797C6.70161%2014.0734%207.29839%2014.0734%207.76891%2013.7797L9.18364%2012.8965C9.31976%2012.8115%209.46902%2012.7497%209.62537%2012.7135L11.2503%2012.3377C11.7907%2012.2127%2012.2127%2011.7907%2012.3377%2011.2503L12.7135%209.62536C12.7497%209.46902%2012.8115%209.31976%2012.8965%209.18364L13.7797%207.76891C14.0734%207.29839%2014.0734%206.70161%2013.7797%206.23109L12.8965%204.81636C12.8115%204.68024%2012.7497%204.53098%2012.7135%204.37464L12.3377%202.74974C12.2127%202.20932%2011.7907%201.78733%2011.2503%201.66233L9.62537%201.2865C9.46902%201.25034%209.31976%201.18851%209.18364%201.10354L7.76891%200.220314ZM9.45472%204.37291C9.70279%204.12484%2010.105%204.12484%2010.3531%204.37291C10.6011%204.62098%2010.6011%205.02318%2010.3531%205.27126L6.36021%209.2641C6.11214%209.51218%205.70994%209.51218%205.46187%209.2641L3.64694%207.44917C3.39887%207.2011%203.39887%206.7989%203.64694%206.55083C3.89501%206.30276%204.29721%206.30276%204.54528%206.55083L5.91104%207.91659L9.45472%204.37291Z'%20fill='%234A99E9'/%3e%3c/svg%3e", Ixe = ({ size: e = "lg" }) => /* @__PURE__ */ F.jsx("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ F.jsx(
52107
- Ue,
52097
+ Le,
52108
52098
  {
52109
52099
  name: "LoaderCircle",
52110
52100
  size: e,
@@ -52133,12 +52123,12 @@ const Pp = (e) => {
52133
52123
  children: /* @__PURE__ */ F.jsxs(
52134
52124
  Rte,
52135
52125
  {
52136
- className: Ve(" !max-w-[336px] border-radius-xlg ## !rounded-[16px]"),
52126
+ className: qe(" !max-w-[336px] border-radius-xlg ## !rounded-[16px]"),
52137
52127
  dismissable: !1,
52138
52128
  children: [
52139
52129
  /* @__PURE__ */ F.jsx(Lte, { className: "space-md border-b-[1px]", children: /* @__PURE__ */ F.jsx(Ute, { className: "", children: /* @__PURE__ */ F.jsxs("div", { className: "flex items-center gap-4", children: [
52140
52130
  /* @__PURE__ */ F.jsx(
52141
- Ue,
52131
+ Le,
52142
52132
  {
52143
52133
  stroke: "#FB3449",
52144
52134
  name: "Info",
@@ -52179,7 +52169,7 @@ const Pp = (e) => {
52179
52169
  ) : /* @__PURE__ */ F.jsxs(
52180
52170
  "div",
52181
52171
  {
52182
- className: Ve(
52172
+ className: qe(
52183
52173
  "absolute inset-0 z-10 flex flex-col rounded-[12px] items-center justify-center gap-[12px] bg-black/75",
52184
52174
  o
52185
52175
  ),
@@ -52347,7 +52337,7 @@ const Pp = (e) => {
52347
52337
  return /* @__PURE__ */ F.jsxs(
52348
52338
  "div",
52349
52339
  {
52350
- className: Ve(
52340
+ className: qe(
52351
52341
  "flex group relative flex-col gap-2 p-[4px]",
52352
52342
  l && "min-h-[100px]"
52353
52343
  ),
@@ -52379,7 +52369,7 @@ const Pp = (e) => {
52379
52369
  className: "flex items-center h-[32px] color-text-danger text-sm font-medium gap-[12px] rounded p-2 transition-all hover:color-bg-default-hover w-full",
52380
52370
  onClick: () => u(!0),
52381
52371
  children: [
52382
- /* @__PURE__ */ F.jsx(Ue, { name: "Trash2", size: "sm", stroke: "#FB3449" }),
52372
+ /* @__PURE__ */ F.jsx(Le, { name: "Trash2", size: "sm", stroke: "#FB3449" }),
52383
52373
  /* @__PURE__ */ F.jsx("p", { className: "text-body-sm color-text-danger", children: "Delete" })
52384
52374
  ]
52385
52375
  }
@@ -52458,7 +52448,7 @@ const Pp = (e) => {
52458
52448
  "div",
52459
52449
  {
52460
52450
  ref: h,
52461
- className: Ve(
52451
+ className: qe(
52462
52452
  "flex flex-col gap-3 px-3 group comment-card",
52463
52453
  !d && "!px-6",
52464
52454
  d && "py-3"
@@ -52477,7 +52467,7 @@ const Pp = (e) => {
52477
52467
  ref: h,
52478
52468
  "data-testid": a ? `comment-card-${a}` : "comment-card",
52479
52469
  onClick: y,
52480
- className: Ve(
52470
+ className: qe(
52481
52471
  "flex flex-col gap-[4px] group comment-card",
52482
52472
  o && "opacity-70",
52483
52473
  c ? "p-3 pb-0" : "px-3"
@@ -52495,7 +52485,7 @@ const Pp = (e) => {
52495
52485
  children: /* @__PURE__ */ F.jsxs(
52496
52486
  "div",
52497
52487
  {
52498
- className: Ve(
52488
+ className: qe(
52499
52489
  !E && "opacity-0 group-hover:opacity-100",
52500
52490
  "flex gap-[4px]"
52501
52491
  ),
@@ -52545,7 +52535,7 @@ const Pp = (e) => {
52545
52535
  className: "flex items-center h-[32px] color-text-default gap-[12px] rounded p-2 transition-all hover:color-bg-default-hover w-full",
52546
52536
  onClick: k,
52547
52537
  children: [
52548
- /* @__PURE__ */ F.jsx(Ue, { name: "RotateCcw", size: "sm" }),
52538
+ /* @__PURE__ */ F.jsx(Le, { name: "RotateCcw", size: "sm" }),
52549
52539
  /* @__PURE__ */ F.jsx("p", { className: "text-body-sm color-text-default", children: "Unresolve" })
52550
52540
  ]
52551
52541
  }
@@ -52557,7 +52547,7 @@ const Pp = (e) => {
52557
52547
  onClick: w,
52558
52548
  children: [
52559
52549
  /* @__PURE__ */ F.jsx(
52560
- Ue,
52550
+ Le,
52561
52551
  {
52562
52552
  name: "Trash2",
52563
52553
  size: "sm",
@@ -52585,7 +52575,7 @@ const Pp = (e) => {
52585
52575
  variant: "ghost",
52586
52576
  disabled: !0,
52587
52577
  size: "sm",
52588
- className: Ve(
52578
+ className: qe(
52589
52579
  "opacity-0 group-hover:opacity-100 transition-opacity duration-300 disabled:bg-transparent"
52590
52580
  )
52591
52581
  }
@@ -52594,7 +52584,7 @@ const Pp = (e) => {
52594
52584
  /* @__PURE__ */ F.jsx(
52595
52585
  "div",
52596
52586
  {
52597
- className: Ve(
52587
+ className: qe(
52598
52588
  "flex flex-col gap-2 pl-[18px] custom-border py-0",
52599
52589
  (E ? O : R.length > 0) ? "border-l ml-[13px]" : "ml-[15px]"
52600
52590
  ),
@@ -52633,7 +52623,7 @@ const Pp = (e) => {
52633
52623
  "div",
52634
52624
  {
52635
52625
  onClick: x,
52636
- className: Ve(
52626
+ className: qe(
52637
52627
  "text-helper-text-sm color-text-secondary min-h-[28px] mb-[4px] hover:underline custom-border cursor-pointer flex items-center gap-2 pr-[8px] pl-[4px]",
52638
52628
  !N && "justify-center mt-[4px]"
52639
52629
  ),
@@ -52809,7 +52799,7 @@ const Pp = (e) => {
52809
52799
  icon: "Ellipsis",
52810
52800
  variant: "ghost",
52811
52801
  disabled: n,
52812
- className: Ve({
52802
+ className: qe({
52813
52803
  "!bg-transparent": n
52814
52804
  })
52815
52805
  }
@@ -52827,7 +52817,7 @@ const Pp = (e) => {
52827
52817
  onClick: J,
52828
52818
  onTouchEnd: J,
52829
52819
  children: [
52830
- /* @__PURE__ */ F.jsx(Ue, { name: "Trash2", size: "sm" }),
52820
+ /* @__PURE__ */ F.jsx(Le, { name: "Trash2", size: "sm" }),
52831
52821
  "Delete thread"
52832
52822
  ]
52833
52823
  }
@@ -52850,7 +52840,7 @@ const Pp = (e) => {
52850
52840
  icon: p != null && p.resolved ? "CircleCheck2" : "CircleCheck",
52851
52841
  variant: "ghost",
52852
52842
  disabled: n,
52853
- className: Ve({
52843
+ className: qe({
52854
52844
  "!bg-transparent": n
52855
52845
  }),
52856
52846
  onClick: () => p != null && p.resolved ? A(e) : E(e)
@@ -53182,7 +53172,7 @@ const Pp = (e) => {
53182
53172
  shift: !0
53183
53173
  },
53184
53174
  shouldShow: R,
53185
- className: Ve(
53175
+ className: qe(
53186
53176
  "flex gap-2 overflow-hidden rounded-lg min-w-fit w-full p-1 border color-bg-default items-center shadow-elevation-3",
53187
53177
  A || k === et.LINK_POPUP || N ? "!invisible" : "!visible",
53188
53178
  v ? "!-translate-y-[120%]" : ""
@@ -53194,7 +53184,7 @@ const Pp = (e) => {
53194
53184
  children: v ? /* @__PURE__ */ F.jsx(
53195
53185
  "div",
53196
53186
  {
53197
- className: Ve(
53187
+ className: qe(
53198
53188
  "relative",
53199
53189
  A ? "left-1/2 translate-x-1/2" : ""
53200
53190
  ),
@@ -53283,7 +53273,7 @@ const Pp = (e) => {
53283
53273
  t ?? null,
53284
53274
  f
53285
53275
  ) }),
53286
- /* @__PURE__ */ F.jsx(Ue, { name: "ChevronDown", size: "sm" })
53276
+ /* @__PURE__ */ F.jsx(Le, { name: "ChevronDown", size: "sm" })
53287
53277
  ]
53288
53278
  }
53289
53279
  ),
@@ -53668,7 +53658,7 @@ const Gb = Pt.create({
53668
53658
  return u;
53669
53659
  }, J9 = lr(
53670
53660
  ({ children: e, className: t, withShadow: n = !0, withBorder: r = !1, ...o }, i) => {
53671
- const s = Ve(
53661
+ const s = qe(
53672
53662
  t,
53673
53663
  "color-bg-default rounded",
53674
53664
  n ? "shadow-lg" : "",
@@ -56647,7 +56637,7 @@ ${j.getHTML()}`
56647
56637
  variant: "ghost",
56648
56638
  size: "sm",
56649
56639
  isActive: e,
56650
- className: Ve(
56640
+ className: qe(
56651
56641
  "color-text-default",
56652
56642
  e && "color-text-on-brand"
56653
56643
  ),
@@ -56672,10 +56662,10 @@ ${j.getHTML()}`
56672
56662
  "data-testid": "export-dropdown",
56673
56663
  children: [
56674
56664
  /* @__PURE__ */ F.jsxs("div", { className: "flex items-center space-x-2", children: [
56675
- /* @__PURE__ */ F.jsx(Ue, { name: "FileExport", className: "w-5 h-5" }),
56665
+ /* @__PURE__ */ F.jsx(Le, { name: "FileExport", className: "w-5 h-5" }),
56676
56666
  /* @__PURE__ */ F.jsx("span", { className: "text-body-sm", children: "Export" })
56677
56667
  ] }),
56678
- /* @__PURE__ */ F.jsx(Ue, { name: "ChevronRight", className: "w-5 h-5" })
56668
+ /* @__PURE__ */ F.jsx(Le, { name: "ChevronRight", className: "w-5 h-5" })
56679
56669
  ]
56680
56670
  }
56681
56671
  ) }),
@@ -56703,7 +56693,7 @@ ${j.getHTML()}`
56703
56693
  const B = k(T.title);
56704
56694
  O(B || void 0);
56705
56695
  },
56706
- className: Ve(
56696
+ className: qe(
56707
56697
  "min-h-8 rounded p-2 w-full text-left flex items-center justify-between transition text-body-sm",
56708
56698
  T != null && T.disabled ? "opacity-50 cursor-not-allowed" : "hover:color-bg-default-hover"
56709
56699
  ),
@@ -56736,10 +56726,10 @@ ${j.getHTML()}`
56736
56726
  "data-testid": "import-dropdown",
56737
56727
  children: [
56738
56728
  /* @__PURE__ */ F.jsxs("div", { className: "flex items-center space-x-2", children: [
56739
- /* @__PURE__ */ F.jsx(Ue, { name: "FileImport", className: "w-5 h-5" }),
56729
+ /* @__PURE__ */ F.jsx(Le, { name: "FileImport", className: "w-5 h-5" }),
56740
56730
  /* @__PURE__ */ F.jsx("span", { className: "text-body-sm", children: "Import" })
56741
56731
  ] }),
56742
- /* @__PURE__ */ F.jsx(Ue, { name: "ChevronRight", className: "w-5 h-5" })
56732
+ /* @__PURE__ */ F.jsx(Le, { name: "ChevronRight", className: "w-5 h-5" })
56743
56733
  ]
56744
56734
  }
56745
56735
  ) }),
@@ -57015,7 +57005,7 @@ ${j.getHTML()}`
57015
57005
  },
57016
57006
  children: [
57017
57007
  /* @__PURE__ */ F.jsx("span", { className: "text-body-sm-bold line-clamp-1 w-fit", children: ((S = Yb.find((V) => V.value === n)) == null ? void 0 : S.title) || "100%" }),
57018
- /* @__PURE__ */ F.jsx(Ue, { name: "ChevronDown", size: "sm" })
57008
+ /* @__PURE__ */ F.jsx(Le, { name: "ChevronDown", size: "sm" })
57019
57009
  ]
57020
57010
  }
57021
57011
  ),
@@ -57061,7 +57051,7 @@ ${j.getHTML()}`
57061
57051
  }
57062
57052
  ),
57063
57053
  /* @__PURE__ */ F.jsx(
57064
- Ue,
57054
+ Le,
57065
57055
  {
57066
57056
  name: "ChevronDown",
57067
57057
  size: "sm",
@@ -57105,7 +57095,7 @@ ${j.getHTML()}`
57105
57095
  (e == null ? void 0 : e.isActive("heading", { level: 3 })) && "Heading 3",
57106
57096
  !(e != null && e.isActive("heading")) && "Text"
57107
57097
  ] }),
57108
- /* @__PURE__ */ F.jsx(Ue, { name: "ChevronDown", size: "sm" })
57098
+ /* @__PURE__ */ F.jsx(Le, { name: "ChevronDown", size: "sm" })
57109
57099
  ]
57110
57100
  }
57111
57101
  ),
@@ -57138,7 +57128,7 @@ ${j.getHTML()}`
57138
57128
  onClick: () => k(et.FONT_SIZE),
57139
57129
  children: [
57140
57130
  /* @__PURE__ */ F.jsx("span", { className: "text-body-sm-bold line-clamp-1", children: LW(e, j) }),
57141
- /* @__PURE__ */ F.jsx(Ue, { name: "ChevronDown", size: "sm" })
57131
+ /* @__PURE__ */ F.jsx(Le, { name: "ChevronDown", size: "sm" })
57142
57132
  ]
57143
57133
  }
57144
57134
  ),
@@ -66783,7 +66773,7 @@ const R5e = (e) => {
66783
66773
  content: n
66784
66774
  };
66785
66775
  }, P5e = (e) => L5e.map((t) => jV(t, e)), z5e = (e) => U5e.map((t) => jV(t, e)), xB = (e, t) => typeof e == "string" && Hte[e] ? /* @__PURE__ */ F.jsx(
66786
- Ue,
66776
+ Le,
66787
66777
  {
66788
66778
  name: e,
66789
66779
  className: t
@@ -66812,7 +66802,7 @@ const R5e = (e) => {
66812
66802
  {
66813
66803
  variant: "ghost",
66814
66804
  className: "gap-2 color-bg-default-hover text-body-sm color-text-default rounded-lg hover:brightness-95 transition-all w-full min-w-0 !p-[10px]",
66815
- children: /* @__PURE__ */ F.jsx(Ue, { name: "Ellipsis", className: "color-text-default" })
66805
+ children: /* @__PURE__ */ F.jsx(Le, { name: "Ellipsis", className: "color-text-default" })
66816
66806
  }
66817
66807
  ),
66818
66808
  content: /* @__PURE__ */ F.jsxs("div", { className: "flex flex-col gap-1 p-2 w-[12rem]", children: [
@@ -66839,11 +66829,11 @@ const R5e = (e) => {
66839
66829
  children: [
66840
66830
  /* @__PURE__ */ F.jsx("span", { children: o ? "Less" : "More" }),
66841
66831
  /* @__PURE__ */ F.jsx(
66842
- Ue,
66832
+ Le,
66843
66833
  {
66844
66834
  name: "ChevronDown",
66845
66835
  size: "sm",
66846
- className: Ve(o ? "rotate-180" : "")
66836
+ className: qe(o ? "rotate-180" : "")
66847
66837
  }
66848
66838
  )
66849
66839
  ]
@@ -66862,7 +66852,7 @@ const R5e = (e) => {
66862
66852
  onClick: e,
66863
66853
  className: `justify-start gap-2 ${o}`,
66864
66854
  children: [
66865
- /* @__PURE__ */ F.jsx(Ue, { name: t, size: "sm" }),
66855
+ /* @__PURE__ */ F.jsx(Le, { name: t, size: "sm" }),
66866
66856
  n
66867
66857
  ]
66868
66858
  }
@@ -66881,14 +66871,14 @@ const $5e = kt.memo(
66881
66871
  draggable: !0,
66882
66872
  "data-drag-handle": !0,
66883
66873
  onClick: e,
66884
- children: /* @__PURE__ */ F.jsx(Ue, { name: "GripVertical", size: "sm" })
66874
+ children: /* @__PURE__ */ F.jsx(Le, { name: "GripVertical", size: "sm" })
66885
66875
  }
66886
66876
  )
66887
66877
  ), H5e = kt.memo(
66888
66878
  ({
66889
66879
  onClick: e,
66890
66880
  className: t
66891
- }) => /* @__PURE__ */ F.jsx("div", { className: t, contentEditable: !1, onClick: e, children: /* @__PURE__ */ F.jsx(Ue, { name: "Plus", size: "sm" }) })
66881
+ }) => /* @__PURE__ */ F.jsx("div", { className: t, contentEditable: !1, onClick: e, children: /* @__PURE__ */ F.jsx(Le, { name: "Plus", size: "sm" }) })
66892
66882
  ), W5e = kt.memo(
66893
66883
  ({
66894
66884
  isCollapsed: e,
@@ -66902,7 +66892,7 @@ const $5e = kt.memo(
66902
66892
  onClick: t,
66903
66893
  "data-test": "collapse-button",
66904
66894
  children: /* @__PURE__ */ F.jsx(
66905
- Ue,
66895
+ Le,
66906
66896
  {
66907
66897
  name: e ? "ChevronRight" : "ChevronDown",
66908
66898
  size: "sm"
@@ -66914,11 +66904,11 @@ const $5e = kt.memo(
66914
66904
  ({ onClick: e, className: t }) => /* @__PURE__ */ F.jsx(
66915
66905
  "div",
66916
66906
  {
66917
- className: Ve(t),
66907
+ className: qe(t),
66918
66908
  contentEditable: !1,
66919
66909
  onClick: e,
66920
66910
  "data-test": "copy-heading-link-button",
66921
- children: /* @__PURE__ */ F.jsx(Ue, { name: "Link", size: "sm" })
66911
+ children: /* @__PURE__ */ F.jsx(Le, { name: "Link", size: "sm" })
66922
66912
  }
66923
66913
  )
66924
66914
  ), g3 = kt.memo(
@@ -67413,14 +67403,14 @@ const fDe = kt.memo(
67413
67403
  return g && f ? /* @__PURE__ */ F.jsx(
67414
67404
  wl,
67415
67405
  {
67416
- className: Ve(
67406
+ className: qe(
67417
67407
  "flex px-4 md:px-[80px] gap-2 group w-full relative justify-center items-start",
67418
67408
  E && "pointer-events-auto"
67419
67409
  ),
67420
67410
  children: /* @__PURE__ */ F.jsxs(
67421
67411
  "div",
67422
67412
  {
67423
- className: Ve("node-view-content w-full relative", {
67413
+ className: qe("node-view-content w-full relative", {
67424
67414
  "is-table": E,
67425
67415
  "invalid-content": (Y = e.attrs) == null ? void 0 : Y.isCorrupted,
67426
67416
  "pointer-events-none": f
@@ -67443,7 +67433,7 @@ const fDe = kt.memo(
67443
67433
  ) : /* @__PURE__ */ F.jsxs(
67444
67434
  wl,
67445
67435
  {
67446
- className: Ve(
67436
+ className: qe(
67447
67437
  "flex px-4 pl-2 md:pr-8 lg:pr-[80px] lg:pl-[8px] gap-2 group w-full relative justify-center items-center",
67448
67438
  E && "pointer-events-auto",
67449
67439
  x && "!hidden"
@@ -67452,7 +67442,7 @@ const fDe = kt.memo(
67452
67442
  /* @__PURE__ */ F.jsxs(
67453
67443
  "section",
67454
67444
  {
67455
- className: Ve("flex gap-[2px] min-w-5 lg:min-w-16 justify-end"),
67445
+ className: qe("flex gap-[2px] min-w-5 lg:min-w-16 justify-end"),
67456
67446
  "aria-label": "left-menu",
67457
67447
  contentEditable: !1,
67458
67448
  suppressContentEditableWarning: !0,
@@ -67462,7 +67452,7 @@ const fDe = kt.memo(
67462
67452
  H5e,
67463
67453
  {
67464
67454
  onClick: C,
67465
- className: Ve(
67455
+ className: qe(
67466
67456
  "d-block-button opacity-0 color-text-default hover:color-bg-default-hover aspect-square min-w-5",
67467
67457
  !f && "group-hover:opacity-100"
67468
67458
  )
@@ -67477,7 +67467,7 @@ const fDe = kt.memo(
67477
67467
  $5e,
67478
67468
  {
67479
67469
  onClick: R,
67480
- className: Ve(
67470
+ className: qe(
67481
67471
  "d-block-button opacity-0 color-text-default hover:color-bg-default-hover aspect-square min-w-5",
67482
67472
  !f && "group-hover:opacity-100"
67483
67473
  )
@@ -67492,7 +67482,7 @@ const fDe = kt.memo(
67492
67482
  {
67493
67483
  isCollapsed: v,
67494
67484
  onToggle: w,
67495
- className: Ve(
67485
+ className: qe(
67496
67486
  "d-block-button opacity-0 color-text-default hover:color-bg-default-hover aspect-square min-w-5",
67497
67487
  "group-hover:opacity-100",
67498
67488
  v || s ? "opacity-100" : "opacity-0"
@@ -67505,7 +67495,7 @@ const fDe = kt.memo(
67505
67495
  /* @__PURE__ */ F.jsxs(
67506
67496
  "div",
67507
67497
  {
67508
- className: Ve(
67498
+ className: qe(
67509
67499
  "node-view-content w-full relative self-center group/collision",
67510
67500
  {
67511
67501
  "is-table max-w-full lg:max-w-[90%]": E,
@@ -67528,7 +67518,7 @@ const fDe = kt.memo(
67528
67518
  q5e,
67529
67519
  {
67530
67520
  onClick: k,
67531
- className: Ve(
67521
+ className: qe(
67532
67522
  "d-block-button lg:opacity-0 color-text-default color-bg-default-hover aspect-square w-6 h-6",
67533
67523
  "group-hover:opacity-100"
67534
67524
  )
@@ -69753,13 +69743,13 @@ function Qke(e, t) {
69753
69743
  enabled: !0,
69754
69744
  phase: "beforeWrite",
69755
69745
  requires: ["computeStyles"],
69756
- fn: function(vt) {
69757
- var Le = vt.state;
69746
+ fn: function(Ft) {
69747
+ var Ue = Ft.state;
69758
69748
  if (_()) {
69759
- var Ye = j(), ht = Ye.box;
69749
+ var Je = j(), ht = Je.box;
69760
69750
  ["placement", "reference-hidden", "escaped"].forEach(function(st) {
69761
- st === "placement" ? ht.setAttribute("data-placement", Le.placement) : Le.attributes.popper["data-popper-" + st] ? ht.setAttribute("data-" + st, "") : ht.removeAttribute("data-" + st);
69762
- }), Le.attributes.popper = {};
69751
+ st === "placement" ? ht.setAttribute("data-placement", Ue.placement) : Ue.attributes.popper["data-popper-" + st] ? ht.setAttribute("data-" + st, "") : ht.removeAttribute("data-" + st);
69752
+ }), Ue.attributes.popper = {};
69763
69753
  }
69764
69754
  }
69765
69755
  }, Xe = [{
@@ -69876,8 +69866,8 @@ function Qke(e, t) {
69876
69866
  var Xe;
69877
69867
  if (!(!x.state.isVisible || u)) {
69878
69868
  if (u = !0, D.offsetHeight, D.style.transition = x.props.moveTransition, _() && x.props.animation) {
69879
- var qe = j(), vt = qe.box, Le = qe.content;
69880
- AF([vt, Le], He), zB([vt, Le], "visible");
69869
+ var Ve = j(), Ft = Ve.box, Ue = Ve.content;
69870
+ AF([Ft, Ue], He), zB([Ft, Ue], "visible");
69881
69871
  }
69882
69872
  $(), H(), UB(TF, x), (Xe = x.popperInstance) == null || Xe.forceUpdate(), P("onMount", [x]), x.props.animation && _() && Y(He, function() {
69883
69873
  x.state.isShown = !0, P("onShown", [x]);
@@ -70161,37 +70151,37 @@ const l8e = [
70161
70151
  {
70162
70152
  name: "Add row above",
70163
70153
  action: (e) => e.chain().focus().addRowBefore().run(),
70164
- icon: /* @__PURE__ */ F.jsx(Ue, { name: "AddRowAbove", size: "md" }),
70154
+ icon: /* @__PURE__ */ F.jsx(Le, { name: "AddRowAbove", size: "md" }),
70165
70155
  group: "row"
70166
70156
  },
70167
70157
  {
70168
70158
  name: "Add row below",
70169
70159
  action: (e) => e.chain().focus().addRowAfter().run(),
70170
- icon: /* @__PURE__ */ F.jsx(Ue, { name: "AddRowBelow", size: "md" }),
70160
+ icon: /* @__PURE__ */ F.jsx(Le, { name: "AddRowBelow", size: "md" }),
70171
70161
  group: "row"
70172
70162
  },
70173
70163
  {
70174
70164
  name: "Remove row",
70175
70165
  action: (e) => e.chain().focus().deleteRow().run(),
70176
- icon: /* @__PURE__ */ F.jsx(Ue, { name: "Trash2", size: "md" }),
70166
+ icon: /* @__PURE__ */ F.jsx(Le, { name: "Trash2", size: "md" }),
70177
70167
  group: "row"
70178
70168
  },
70179
70169
  {
70180
70170
  name: "Add left column",
70181
70171
  action: (e) => e.chain().focus().addColumnBefore().run(),
70182
- icon: /* @__PURE__ */ F.jsx(Ue, { name: "AddLeftColumn", size: "md" }),
70172
+ icon: /* @__PURE__ */ F.jsx(Le, { name: "AddLeftColumn", size: "md" }),
70183
70173
  group: "column"
70184
70174
  },
70185
70175
  {
70186
70176
  name: "Add right column",
70187
70177
  action: (e) => e.chain().focus().addColumnAfter().run(),
70188
- icon: /* @__PURE__ */ F.jsx(Ue, { name: "AddRightColumn", size: "md" }),
70178
+ icon: /* @__PURE__ */ F.jsx(Le, { name: "AddRightColumn", size: "md" }),
70189
70179
  group: "column"
70190
70180
  },
70191
70181
  {
70192
70182
  name: "Remove column",
70193
70183
  action: (e) => e.chain().focus().deleteColumn().run(),
70194
- icon: /* @__PURE__ */ F.jsx(Ue, { name: "Trash2", size: "md" }),
70184
+ icon: /* @__PURE__ */ F.jsx(Le, { name: "Trash2", size: "md" }),
70195
70185
  group: "column"
70196
70186
  },
70197
70187
  // {
@@ -70209,25 +70199,25 @@ const l8e = [
70209
70199
  {
70210
70200
  name: "Toggle header row",
70211
70201
  action: (e) => e.chain().focus().toggleHeaderRow().run(),
70212
- icon: /* @__PURE__ */ F.jsx(Ue, { name: "ToggleHeaderRow", size: "md" }),
70202
+ icon: /* @__PURE__ */ F.jsx(Le, { name: "ToggleHeaderRow", size: "md" }),
70213
70203
  group: "table"
70214
70204
  },
70215
70205
  {
70216
70206
  name: "Toggle header cell",
70217
70207
  action: (e) => e.chain().focus().toggleHeaderCell().run(),
70218
- icon: /* @__PURE__ */ F.jsx(Ue, { name: "ToggleHeaderCell", size: "md" }),
70208
+ icon: /* @__PURE__ */ F.jsx(Le, { name: "ToggleHeaderCell", size: "md" }),
70219
70209
  group: "table"
70220
70210
  },
70221
70211
  {
70222
70212
  name: "Toggle header column",
70223
70213
  action: (e) => e.chain().focus().toggleHeaderColumn().run(),
70224
- icon: /* @__PURE__ */ F.jsx(Ue, { name: "ToggleHeaderColumn", size: "md" }),
70214
+ icon: /* @__PURE__ */ F.jsx(Le, { name: "ToggleHeaderColumn", size: "md" }),
70225
70215
  group: "table"
70226
70216
  },
70227
70217
  {
70228
70218
  name: "Remove table",
70229
70219
  action: (e) => e.chain().focus().deleteTable().run(),
70230
- icon: /* @__PURE__ */ F.jsx(Ue, { name: "Trash2", size: "md" }),
70220
+ icon: /* @__PURE__ */ F.jsx(Le, { name: "Trash2", size: "md" }),
70231
70221
  group: "other"
70232
70222
  }
70233
70223
  ], uK = ({
@@ -70335,7 +70325,7 @@ const l8e = [
70335
70325
  p.preventDefault(), p.stopPropagation();
70336
70326
  },
70337
70327
  children: /* @__PURE__ */ F.jsx(
70338
- Ue,
70328
+ Le,
70339
70329
  {
70340
70330
  name: "Ellipsis",
70341
70331
  className: "color-icon-secondary",
@@ -70652,9 +70642,9 @@ const f8e = Et.create({
70652
70642
  const [i, s] = Ne(""), { isPreviewMode: a } = _g(), l = ["https://twitter.com", "https://x.com"], u = () => {
70653
70643
  switch (e.attrs.data) {
70654
70644
  case "twitter":
70655
- return /* @__PURE__ */ F.jsx(Ue, { name: "XSocial", size: "md" });
70645
+ return /* @__PURE__ */ F.jsx(Le, { name: "XSocial", size: "md" });
70656
70646
  case "iframe-video":
70657
- return /* @__PURE__ */ F.jsx(Ue, { name: "Youtube", size: "md" });
70647
+ return /* @__PURE__ */ F.jsx(Le, { name: "Youtube", size: "md" });
70658
70648
  case "iframe-soundcloud":
70659
70649
  return /* @__PURE__ */ F.jsx(
70660
70650
  "svg",
@@ -70676,7 +70666,7 @@ const f8e = Et.create({
70676
70666
  }
70677
70667
  );
70678
70668
  default:
70679
- return /* @__PURE__ */ F.jsx(Ue, { name: "Sparkles", size: "md" });
70669
+ return /* @__PURE__ */ F.jsx(Le, { name: "Sparkles", size: "md" });
70680
70670
  }
70681
70671
  }, c = () => {
70682
70672
  switch (e.attrs.data) {
@@ -97082,12 +97072,12 @@ function nUe({
97082
97072
  return /* @__PURE__ */ F.jsx(wl, { className: "w-full", children: /* @__PURE__ */ F.jsxs(
97083
97073
  "pre",
97084
97074
  {
97085
- className: Ve("rounded-lg border color-border-default w-full relative"),
97075
+ className: qe("rounded-lg border color-border-default w-full relative"),
97086
97076
  children: [
97087
97077
  /* @__PURE__ */ F.jsxs(
97088
97078
  "div",
97089
97079
  {
97090
- className: Ve(
97080
+ className: qe(
97091
97081
  "flex flex-row gap-2 items-center justify-between color-bg-secondary absolute top-0 left-0 z-10 rounded-t-lg w-full border-b color-border-default px-2 py-1",
97092
97082
  l && "hidden"
97093
97083
  ),
@@ -97128,22 +97118,22 @@ function nUe({
97128
97118
  className: "min-w-fit p-2 relative",
97129
97119
  children: /* @__PURE__ */ F.jsxs("div", { className: "relative w-4 h-4", children: [
97130
97120
  /* @__PURE__ */ F.jsx(
97131
- Ue,
97121
+ Le,
97132
97122
  {
97133
97123
  name: i,
97134
97124
  size: "sm",
97135
- className: Ve(
97125
+ className: qe(
97136
97126
  "transition-all duration-300 absolute inset-0",
97137
97127
  i === "Check" ? "opacity-100 scale-100" : "opacity-0 scale-0"
97138
97128
  )
97139
97129
  }
97140
97130
  ),
97141
97131
  /* @__PURE__ */ F.jsx(
97142
- Ue,
97132
+ Le,
97143
97133
  {
97144
97134
  name: "Copy",
97145
97135
  size: "sm",
97146
- className: Ve(
97136
+ className: qe(
97147
97137
  "transition-all duration-300 absolute inset-0",
97148
97138
  i === "Check" ? "opacity-0 scale-0" : "opacity-100 scale-100"
97149
97139
  )
@@ -97159,11 +97149,11 @@ function nUe({
97159
97149
  variant: "ghost",
97160
97150
  size: "sm",
97161
97151
  onClick: () => t({ lineNumbers: !u }),
97162
- className: Ve(
97152
+ className: qe(
97163
97153
  "min-w-fit p-2",
97164
97154
  u && "color-bg-brand color-text-on-brand hover:bg-[hsla(var(--color-bg-brand-hover))]"
97165
97155
  ),
97166
- children: /* @__PURE__ */ F.jsx(Ue, { name: "List", size: "sm" })
97156
+ children: /* @__PURE__ */ F.jsx(Le, { name: "List", size: "sm" })
97167
97157
  }
97168
97158
  ) }),
97169
97159
  /* @__PURE__ */ F.jsx("div", { className: "w-[1px] h-4 vertical-divider mx-1" }),
@@ -97173,11 +97163,11 @@ function nUe({
97173
97163
  variant: "ghost",
97174
97164
  size: "sm",
97175
97165
  onClick: () => t({ wordWrap: !c }),
97176
- className: Ve(
97166
+ className: qe(
97177
97167
  "min-w-fit p-2",
97178
97168
  c && "color-bg-brand color-text-on-brand hover:bg-[hsla(var(--color-bg-brand-hover))]"
97179
97169
  ),
97180
- children: /* @__PURE__ */ F.jsx(Ue, { name: "WrapText", size: "sm" })
97170
+ children: /* @__PURE__ */ F.jsx(Le, { name: "WrapText", size: "sm" })
97181
97171
  }
97182
97172
  ) }),
97183
97173
  /* @__PURE__ */ F.jsx("div", { className: "w-[1px] h-4 vertical-divider mx-1" }),
@@ -97215,7 +97205,7 @@ function nUe({
97215
97205
  )
97216
97206
  ] }),
97217
97207
  /* @__PURE__ */ F.jsx(cn, { text: "Delete code block", children: /* @__PURE__ */ F.jsx(
97218
- Ue,
97208
+ Le,
97219
97209
  {
97220
97210
  name: "Trash2",
97221
97211
  size: "sm",
@@ -97229,28 +97219,28 @@ function nUe({
97229
97219
  /* @__PURE__ */ F.jsx(
97230
97220
  "div",
97231
97221
  {
97232
- className: Ve(
97222
+ className: qe(
97233
97223
  "absolute top-3 right-3 hidden z-10 color-bg-default",
97234
97224
  l && "flex"
97235
97225
  ),
97236
97226
  children: /* @__PURE__ */ F.jsx(cn, { text: "Copy code", children: /* @__PURE__ */ F.jsxs("div", { className: "relative w-4 h-4", onClick: b, children: [
97237
97227
  /* @__PURE__ */ F.jsx(
97238
- Ue,
97228
+ Le,
97239
97229
  {
97240
97230
  name: i,
97241
97231
  size: "sm",
97242
- className: Ve(
97232
+ className: qe(
97243
97233
  "transition-all duration-200 absolute inset-0",
97244
97234
  i === "Check" ? "opacity-100 scale-100" : "opacity-0 scale-50"
97245
97235
  )
97246
97236
  }
97247
97237
  ),
97248
97238
  /* @__PURE__ */ F.jsx(
97249
- Ue,
97239
+ Le,
97250
97240
  {
97251
97241
  name: "Copy",
97252
97242
  size: "sm",
97253
- className: Ve(
97243
+ className: qe(
97254
97244
  "transition-all duration-200 absolute inset-0",
97255
97245
  i === "Check" ? "opacity-0 scale-50" : "opacity-100 scale-100"
97256
97246
  )
@@ -97262,7 +97252,7 @@ function nUe({
97262
97252
  /* @__PURE__ */ F.jsx(
97263
97253
  "div",
97264
97254
  {
97265
- className: Ve(
97255
+ className: qe(
97266
97256
  "bg-transparent w-full p-0 font-mono select-text pointer-events-auto overflow-y-auto no-scrollbar max-w-[650px]",
97267
97257
  !l && "pt-8",
97268
97258
  g.length > 20 && "max-h-[500px]"
@@ -97270,7 +97260,7 @@ function nUe({
97270
97260
  children: /* @__PURE__ */ F.jsxs(
97271
97261
  "div",
97272
97262
  {
97273
- className: Ve(
97263
+ className: qe(
97274
97264
  "flex flex-row gap-3",
97275
97265
  c ? h ? "w-[330px]" : "w-[650px]" : "w-[720px]"
97276
97266
  ),
@@ -97288,7 +97278,7 @@ function nUe({
97288
97278
  {
97289
97279
  ref: o,
97290
97280
  as: "div",
97291
- className: Ve(
97281
+ className: qe(
97292
97282
  "leading-5 font-mono pl-4 flex-1",
97293
97283
  e.textContent.length === 0 && "min-h-[20px]"
97294
97284
  ),
@@ -170829,7 +170819,7 @@ const OPe = 200, IPe = new Rt("emoji"), RPe = Pt.create({
170829
170819
  title: "AI Writer",
170830
170820
  description: "Generate text with AI assistance.",
170831
170821
  searchTerms: ["ai", "generate", "writer", "assistant", "text"],
170832
- icon: /* @__PURE__ */ F.jsx(Ue, { name: "Sparkles", size: "md" }),
170822
+ icon: /* @__PURE__ */ F.jsx(Le, { name: "Sparkles", size: "md" }),
170833
170823
  image: "",
170834
170824
  command: ({ editor: u, range: c }) => {
170835
170825
  if (!a) {
@@ -170850,7 +170840,7 @@ const OPe = 200, IPe = new Rt("emoji"), RPe = Pt.create({
170850
170840
  title: "Text",
170851
170841
  description: "Just start typing with plain text.",
170852
170842
  searchTerms: ["p", "paragraph"],
170853
- icon: /* @__PURE__ */ F.jsx(Ue, { name: "Text", size: "md" }),
170843
+ icon: /* @__PURE__ */ F.jsx(Le, { name: "Text", size: "md" }),
170854
170844
  image: "",
170855
170845
  command: ({ editor: u, range: c }) => {
170856
170846
  u.chain().focus().deleteRange(c).toggleNode("paragraph", "paragraph").run();
@@ -170860,7 +170850,7 @@ const OPe = 200, IPe = new Rt("emoji"), RPe = Pt.create({
170860
170850
  title: "To-do List",
170861
170851
  description: "Track tasks with a to-do list.",
170862
170852
  searchTerms: ["todo", "task", "list", "check", "checkbox"],
170863
- icon: /* @__PURE__ */ F.jsx(Ue, { name: "ListChecks", size: "md" }),
170853
+ icon: /* @__PURE__ */ F.jsx(Le, { name: "ListChecks", size: "md" }),
170864
170854
  image: "",
170865
170855
  command: ({ editor: u, range: c }) => {
170866
170856
  u.chain().focus().deleteRange(c).toggleTaskList().run();
@@ -170870,7 +170860,7 @@ const OPe = 200, IPe = new Rt("emoji"), RPe = Pt.create({
170870
170860
  title: "Heading 1",
170871
170861
  description: "Big section heading.",
170872
170862
  searchTerms: ["title", "big", "large"],
170873
- icon: /* @__PURE__ */ F.jsx(Ue, { name: "Heading1", size: "md" }),
170863
+ icon: /* @__PURE__ */ F.jsx(Le, { name: "Heading1", size: "md" }),
170874
170864
  image: "",
170875
170865
  command: ({ editor: u, range: c }) => {
170876
170866
  u.chain().focus().deleteRange(c).setNode("heading", { level: 1 }).run();
@@ -170880,7 +170870,7 @@ const OPe = 200, IPe = new Rt("emoji"), RPe = Pt.create({
170880
170870
  title: "Heading 2",
170881
170871
  description: "Medium section heading.",
170882
170872
  searchTerms: ["subtitle", "medium"],
170883
- icon: /* @__PURE__ */ F.jsx(Ue, { name: "Heading2", size: "md" }),
170873
+ icon: /* @__PURE__ */ F.jsx(Le, { name: "Heading2", size: "md" }),
170884
170874
  image: "",
170885
170875
  command: ({ editor: u, range: c }) => {
170886
170876
  u.chain().focus().deleteRange(c).setNode("heading", { level: 2 }).run();
@@ -170890,7 +170880,7 @@ const OPe = 200, IPe = new Rt("emoji"), RPe = Pt.create({
170890
170880
  title: "Heading 3",
170891
170881
  description: "Small section heading.",
170892
170882
  searchTerms: ["subtitle", "small"],
170893
- icon: /* @__PURE__ */ F.jsx(Ue, { name: "Heading3", size: "md" }),
170883
+ icon: /* @__PURE__ */ F.jsx(Le, { name: "Heading3", size: "md" }),
170894
170884
  image: "",
170895
170885
  command: ({ editor: u, range: c }) => {
170896
170886
  u.chain().focus().deleteRange(c).setNode("heading", { level: 3 }).run();
@@ -170900,7 +170890,7 @@ const OPe = 200, IPe = new Rt("emoji"), RPe = Pt.create({
170900
170890
  title: "Bullet List",
170901
170891
  description: "Create a simple bullet list.",
170902
170892
  searchTerms: ["unordered", "point"],
170903
- icon: /* @__PURE__ */ F.jsx(Ue, { name: "List", size: "md" }),
170893
+ icon: /* @__PURE__ */ F.jsx(Le, { name: "List", size: "md" }),
170904
170894
  image: "",
170905
170895
  command: ({ editor: u, range: c }) => {
170906
170896
  u.chain().focus().deleteRange(c).toggleBulletList().run();
@@ -170910,7 +170900,7 @@ const OPe = 200, IPe = new Rt("emoji"), RPe = Pt.create({
170910
170900
  title: "Numbered List",
170911
170901
  description: "Create a list with numbering.",
170912
170902
  searchTerms: ["ordered"],
170913
- icon: /* @__PURE__ */ F.jsx(Ue, { name: "ListOrdered", size: "md" }),
170903
+ icon: /* @__PURE__ */ F.jsx(Le, { name: "ListOrdered", size: "md" }),
170914
170904
  image: "",
170915
170905
  command: ({ editor: u, range: c }) => {
170916
170906
  u.chain().focus().deleteRange(c).toggleOrderedList().run();
@@ -170920,7 +170910,7 @@ const OPe = 200, IPe = new Rt("emoji"), RPe = Pt.create({
170920
170910
  title: "Callout",
170921
170911
  description: "Make writing stand out",
170922
170912
  searchTerms: ["callout", "note", "highlight", "box"],
170923
- icon: /* @__PURE__ */ F.jsx(Ue, { name: "Callout", size: "md" }),
170913
+ icon: /* @__PURE__ */ F.jsx(Le, { name: "Callout", size: "md" }),
170924
170914
  image: "",
170925
170915
  command: ({ editor: u, range: c }) => {
170926
170916
  const d = u.getAttributes("textStyle"), { selection: p } = u.state, h = p.$from, f = h.node(h.depth);
@@ -170942,7 +170932,7 @@ const OPe = 200, IPe = new Rt("emoji"), RPe = Pt.create({
170942
170932
  title: "Page breaker",
170943
170933
  description: "Insert page break that will split your document into pages.",
170944
170934
  searchTerms: ["pagebreak", "break", "line", "page"],
170945
- icon: /* @__PURE__ */ F.jsx(Ue, { name: "PageBreak", size: "md" }),
170935
+ icon: /* @__PURE__ */ F.jsx(Le, { name: "PageBreak", size: "md" }),
170946
170936
  image: "",
170947
170937
  command: ({ editor: u, range: c }) => {
170948
170938
  u.chain().focus().deleteRange(c).setPageBreak().run();
@@ -170952,7 +170942,7 @@ const OPe = 200, IPe = new Rt("emoji"), RPe = Pt.create({
170952
170942
  title: "Divider",
170953
170943
  description: "Visually divide content.",
170954
170944
  searchTerms: ["hr", "divider", "break", "line", "delimiter"],
170955
- icon: /* @__PURE__ */ F.jsx(Ue, { name: "Minus", size: "md" }),
170945
+ icon: /* @__PURE__ */ F.jsx(Le, { name: "Minus", size: "md" }),
170956
170946
  image: "",
170957
170947
  command: ({ editor: u, range: c }) => {
170958
170948
  u.chain().focus().deleteRange(c).setHorizontalRule().run();
@@ -170962,7 +170952,7 @@ const OPe = 200, IPe = new Rt("emoji"), RPe = Pt.create({
170962
170952
  title: "Quote",
170963
170953
  description: "Capture a quote.",
170964
170954
  searchTerms: ["blockquote"],
170965
- icon: /* @__PURE__ */ F.jsx(Ue, { name: "TextQuote", size: "md" }),
170955
+ icon: /* @__PURE__ */ F.jsx(Le, { name: "TextQuote", size: "md" }),
170966
170956
  image: "",
170967
170957
  command: ({ editor: u, range: c }) => u.chain().focus().deleteRange(c).toggleNode("paragraph", "paragraph").toggleBlockquote().run()
170968
170958
  },
@@ -170970,7 +170960,7 @@ const OPe = 200, IPe = new Rt("emoji"), RPe = Pt.create({
170970
170960
  title: "Code",
170971
170961
  description: "Capture a code snippet.",
170972
170962
  searchTerms: ["codeblock"],
170973
- icon: /* @__PURE__ */ F.jsx(Ue, { name: "Code", size: "md" }),
170963
+ icon: /* @__PURE__ */ F.jsx(Le, { name: "Code", size: "md" }),
170974
170964
  image: "",
170975
170965
  command: ({ editor: u, range: c }) => u.chain().focus().deleteRange(c).toggleCodeBlock().run()
170976
170966
  },
@@ -170978,7 +170968,7 @@ const OPe = 200, IPe = new Rt("emoji"), RPe = Pt.create({
170978
170968
  title: "Table",
170979
170969
  description: "Create a table.",
170980
170970
  searchTerms: ["table"],
170981
- icon: /* @__PURE__ */ F.jsx(Ue, { name: "Table", size: "md" }),
170971
+ icon: /* @__PURE__ */ F.jsx(Le, { name: "Table", size: "md" }),
170982
170972
  image: "",
170983
170973
  command: ({ editor: u, range: c }) => u.chain().focus().deleteRange(c).insertTable({ rows: 3, cols: 2, withHeaderRow: !0 }).run()
170984
170974
  },
@@ -170986,7 +170976,7 @@ const OPe = 200, IPe = new Rt("emoji"), RPe = Pt.create({
170986
170976
  title: "Image",
170987
170977
  description: "Upload an image from your computer.",
170988
170978
  searchTerms: ["photo", "picture", "media"],
170989
- icon: /* @__PURE__ */ F.jsx(Ue, { name: "ImageUp", size: "md" }),
170979
+ icon: /* @__PURE__ */ F.jsx(Le, { name: "ImageUp", size: "md" }),
170990
170980
  image: "",
170991
170981
  command: ({ editor: u, range: c }) => {
170992
170982
  u.chain().focus().deleteRange(c).run();
@@ -171012,7 +171002,7 @@ const OPe = 200, IPe = new Rt("emoji"), RPe = Pt.create({
171012
171002
  title: "Video Embed",
171013
171003
  description: "Embed a video from YouTube, Vimeo, etc.",
171014
171004
  searchTerms: ["iframe", "embed", "video", "youtube"],
171015
- icon: /* @__PURE__ */ F.jsx(Ue, { name: "Youtube", size: "md" }),
171005
+ icon: /* @__PURE__ */ F.jsx(Le, { name: "Youtube", size: "md" }),
171016
171006
  image: "",
171017
171007
  command: ({ editor: u, range: c }) => {
171018
171008
  u.chain().focus().deleteRange(c).setActionButton("iframe-video").run();
@@ -171022,7 +171012,7 @@ const OPe = 200, IPe = new Rt("emoji"), RPe = Pt.create({
171022
171012
  title: "X",
171023
171013
  description: "Embed a X post.",
171024
171014
  searchTerms: ["X", "embed", "twitter", "tweet"],
171025
- icon: /* @__PURE__ */ F.jsx(Ue, { name: "XSocial", size: "md" }),
171015
+ icon: /* @__PURE__ */ F.jsx(Le, { name: "XSocial", size: "md" }),
171026
171016
  image: "",
171027
171017
  command: ({ editor: u, range: c }) => {
171028
171018
  u.chain().focus().deleteRange(c).setActionButton("twitter").run();
@@ -171063,7 +171053,7 @@ const OPe = 200, IPe = new Rt("emoji"), RPe = Pt.create({
171063
171053
  title: "2 Columns",
171064
171054
  description: "Create 2 columns of block",
171065
171055
  searchTerms: ["col", "column", "2", "layout"],
171066
- icon: /* @__PURE__ */ F.jsx(Ue, { name: "Columns2", size: "md" }),
171056
+ icon: /* @__PURE__ */ F.jsx(Le, { name: "Columns2", size: "md" }),
171067
171057
  image: "",
171068
171058
  command: ({ editor: u }) => {
171069
171059
  u.chain().focus().setColumns(2).focus(u.state.selection.head - 1).run();
@@ -171073,7 +171063,7 @@ const OPe = 200, IPe = new Rt("emoji"), RPe = Pt.create({
171073
171063
  title: "3 Columns",
171074
171064
  description: "Create 3 columns of block",
171075
171065
  searchTerms: ["col", "column", "3", "layout"],
171076
- icon: /* @__PURE__ */ F.jsx(Ue, { name: "Columns3", size: "md" }),
171066
+ icon: /* @__PURE__ */ F.jsx(Le, { name: "Columns3", size: "md" }),
171077
171067
  image: "",
171078
171068
  command: ({ editor: u }) => {
171079
171069
  u.chain().focus().setColumns(3).focus(u.state.selection.head - 1).run();
@@ -171192,7 +171182,7 @@ const OPe = 200, IPe = new Rt("emoji"), RPe = Pt.create({
171192
171182
  children: i.map((f, g) => /* @__PURE__ */ F.jsxs(
171193
171183
  "button",
171194
171184
  {
171195
- className: Ve(
171185
+ className: qe(
171196
171186
  "flex w-full items-center space-x-2 rounded-md px-2 py-1 text-left text-sm border border-transparent transition-all",
171197
171187
  g === r && "color-bg-default-hover",
171198
171188
  f.isDisabled ? "cursor-not-allowed color-text-disabled" : "hover:color-bg-default-hover cursor-pointer"
@@ -171206,7 +171196,7 @@ const OPe = 200, IPe = new Rt("emoji"), RPe = Pt.create({
171206
171196
  /* @__PURE__ */ F.jsx(
171207
171197
  "p",
171208
171198
  {
171209
- className: Ve(
171199
+ className: qe(
171210
171200
  "text-xs",
171211
171201
  f.isDisabled && "color-text-disabled"
171212
171202
  ),
@@ -171607,7 +171597,7 @@ const OPe = 200, IPe = new Rt("emoji"), RPe = Pt.create({
171607
171597
  position: "bottom",
171608
171598
  text: "Remove page breaker",
171609
171599
  children: /* @__PURE__ */ F.jsx(
171610
- Ue,
171600
+ Le,
171611
171601
  {
171612
171602
  name: "PageBreakRemove",
171613
171603
  onClick: s,
@@ -172932,7 +172922,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
172932
172922
  "div",
172933
172923
  {
172934
172924
  ref: _,
172935
- className: Ve(
172925
+ className: qe(
172936
172926
  "color-bg-default overflow-hidden flex flex-col rounded-lg w-full",
172937
172927
  k ? "opacity-0" : g ? "animate-aiwriter-scale-out" : "animate-aiwriter-scale-in"
172938
172928
  ),
@@ -172977,7 +172967,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
172977
172967
  /* @__PURE__ */ F.jsxs(
172978
172968
  "div",
172979
172969
  {
172980
- className: Ve(
172970
+ className: qe(
172981
172971
  "flex items-center flex-col justify-between border color-border-default rounded-lg mb-4 mx-3 flex-1 shadow-elevation-3 ",
172982
172972
  !d && "px-3 py-2"
172983
172973
  ),
@@ -172985,7 +172975,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
172985
172975
  /* @__PURE__ */ F.jsxs(
172986
172976
  "div",
172987
172977
  {
172988
- className: Ve(
172978
+ className: qe(
172989
172979
  "flex items-start gap-2 w-full",
172990
172980
  d && "px-3 py-2"
172991
172981
  ),
@@ -173011,7 +173001,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
173011
173001
  /* @__PURE__ */ F.jsxs(
173012
173002
  "div",
173013
173003
  {
173014
- className: Ve(
173004
+ className: qe(
173015
173005
  "flex justify-between gap-2 w-full",
173016
173006
  d && "px-3 pb-2"
173017
173007
  ),
@@ -173054,7 +173044,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
173054
173044
  "label",
173055
173045
  {
173056
173046
  htmlFor: "include-context",
173057
- className: Ve(
173047
+ className: qe(
173058
173048
  "text-xs md:text-sm color-text-default",
173059
173049
  i && "color-text-disabled"
173060
173050
  ),
@@ -173068,8 +173058,8 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
173068
173058
  {
173069
173059
  onClick: a ? le : X,
173070
173060
  disabled: !u.trim() || i && !a,
173071
- className: Ve("p-2 min-w-0 rounded-full w-8 h-8"),
173072
- children: a ? /* @__PURE__ */ F.jsx(Ue, { name: "Square", size: "sm" }) : /* @__PURE__ */ F.jsx(Ue, { name: "ArrowUp", size: "sm" })
173061
+ className: qe("p-2 min-w-0 rounded-full w-8 h-8"),
173062
+ children: a ? /* @__PURE__ */ F.jsx(Le, { name: "Square", size: "sm" }) : /* @__PURE__ */ F.jsx(Le, { name: "ArrowUp", size: "sm" })
173073
173063
  }
173074
173064
  )
173075
173065
  ]
@@ -173290,8 +173280,8 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
173290
173280
  isAIAgentEnabled: D,
173291
173281
  hasAvailableModels: G,
173292
173282
  activeCommentId: Q,
173293
- onCommentActivated: (Le) => {
173294
- S(Le || null), Le && setTimeout(() => V(Le));
173283
+ onCommentActivated: (Ue) => {
173284
+ S(Ue || null), Ue && setTimeout(() => V(Ue));
173295
173285
  },
173296
173286
  onTocUpdate: ie,
173297
173287
  externalExtensions: z,
@@ -173308,16 +173298,16 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
173308
173298
  {
173309
173299
  extensions: ue,
173310
173300
  editorProps: {
173311
- clipboardTextSerializer(Le) {
173312
- return Le.content.textBetween(0, Le.content.size, `
173301
+ clipboardTextSerializer(Ue) {
173302
+ return Ue.content.textBetween(0, Ue.content.size, `
173313
173303
 
173314
173304
  `);
173315
173305
  },
173316
173306
  ...Rve,
173317
173307
  handleDOMEvents: {
173318
173308
  mouseover: K,
173319
- keydown: (Le, Ye) => {
173320
- if (["ArrowUp", "ArrowDown", "Enter"].includes(Ye.key)) {
173309
+ keydown: (Ue, Je) => {
173310
+ if (["ArrowUp", "ArrowDown", "Enter"].includes(Je.key)) {
173321
173311
  const ht = document.querySelector("#slash-command"), st = document.querySelector("#emoji-list");
173322
173312
  if (ht || st)
173323
173313
  return !0;
@@ -173331,11 +173321,11 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
173331
173321
  });
173332
173322
  }
173333
173323
  },
173334
- handleClick: (Le, Ye, ht) => {
173335
- var Je;
173336
- const st = ht.metaKey || ht.ctrlKey, St = VI(ht.target), Ft = St == null ? void 0 : St.closest("a");
173337
- if (Ft != null && Ft.href) {
173338
- const Bt = new URL(Ft.href, window.location.href);
173324
+ handleClick: (Ue, Je, ht) => {
173325
+ var Ze;
173326
+ const st = ht.metaKey || ht.ctrlKey, St = VI(ht.target), vt = St == null ? void 0 : St.closest("a");
173327
+ if (vt != null && vt.href) {
173328
+ const Bt = new URL(vt.href, window.location.href);
173339
173329
  if (Bt.hash && Bt.origin === window.location.origin) {
173340
173330
  const Lt = decodeURIComponent(Bt.hash.slice(1)), be = new URLSearchParams(Lt).get("heading");
173341
173331
  if (be) {
@@ -173351,7 +173341,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
173351
173341
  if (ut) {
173352
173342
  const Ot = k0({
173353
173343
  targetElement: ut,
173354
- editorRoot: Le.dom
173344
+ editorRoot: Ue.dom
173355
173345
  });
173356
173346
  return Ot && requestAnimationFrame(() => {
173357
173347
  const Qt = Ot.getBoundingClientRect(), Yt = ut.getBoundingClientRect();
@@ -173366,13 +173356,13 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
173366
173356
  }
173367
173357
  if (o)
173368
173358
  return !1;
173369
- if (((Je = Ft == null ? void 0 : Ft.textContent) == null ? void 0 : Je.match(XC)) ?? !1) {
173359
+ if (((Ze = vt == null ? void 0 : vt.textContent) == null ? void 0 : Ze.match(XC)) ?? !1) {
173370
173360
  if (st)
173371
- return ht.preventDefault(), window.open(Ft.href, "_blank"), !0;
173361
+ return ht.preventDefault(), window.open(vt.href, "_blank"), !0;
173372
173362
  } else
173373
- return ht.preventDefault(), window.open(Ft.href, "_blank"), !0;
173363
+ return ht.preventDefault(), window.open(vt.href, "_blank"), !0;
173374
173364
  }
173375
- return ce ? ce(Le, Ye, ht) : !1;
173365
+ return ce ? ce(Ue, Je, ht) : !1;
173376
173366
  },
173377
173367
  attributes: {
173378
173368
  spellCheck: "true"
@@ -173395,13 +173385,13 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
173395
173385
  const I = je(null);
173396
173386
  _e(() => {
173397
173387
  if (!ne) return;
173398
- const Le = () => {
173388
+ const Ue = () => {
173399
173389
  ne && !ne.isDestroyed && (I.current && clearTimeout(I.current), I.current = setTimeout(() => {
173400
173390
  I.current = null, ne.isDestroyed || ne.commands.updateTableOfContents();
173401
173391
  }, 300));
173402
173392
  };
173403
- return ne.on("update", Le), () => {
173404
- ne.off("update", Le), I.current && clearTimeout(I.current);
173393
+ return ne.on("update", Ue), () => {
173394
+ ne.off("update", Ue), I.current && clearTimeout(I.current);
173405
173395
  };
173406
173396
  }, [ne]);
173407
173397
  const q = Dt(() => o ? !1 : fe ? !l : !0, [o, fe, l]);
@@ -173409,16 +173399,16 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
173409
173399
  ne == null || ne.setEditable(q);
173410
173400
  }, [ne, q]), _e(() => {
173411
173401
  if (!o) return;
173412
- const Le = (Ye) => {
173402
+ const Ue = (Je) => {
173413
173403
  var St;
173414
- const ht = VI(Ye.target);
173404
+ const ht = VI(Je.target);
173415
173405
  if (!((St = ht == null ? void 0 : ht.closest) != null && St.call(ht, "#editor"))) return;
173416
173406
  const st = ht.closest("a");
173417
173407
  if (st != null && st.href)
173418
173408
  try {
173419
- const Ft = new URL(st.href, window.location.href);
173420
- if (!Ft.hash || Ft.origin !== window.location.origin) return;
173421
- const Je = decodeURIComponent(Ft.hash.slice(1)), Mt = new URLSearchParams(Je).get("heading");
173409
+ const vt = new URL(st.href, window.location.href);
173410
+ if (!vt.hash || vt.origin !== window.location.origin) return;
173411
+ const Ze = decodeURIComponent(vt.hash.slice(1)), Mt = new URLSearchParams(Ze).get("heading");
173422
173412
  if (!Mt) return;
173423
173413
  const Lt = Mt.split("-").pop();
173424
173414
  if (Lt) {
@@ -173429,7 +173419,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
173429
173419
  return (Me = be.dataset.tocId) == null ? void 0 : Me.includes(Lt);
173430
173420
  });
173431
173421
  if (fn) {
173432
- Ye.preventDefault(), Ye.stopPropagation();
173422
+ Je.preventDefault(), Je.stopPropagation();
173433
173423
  const be = k0({
173434
173424
  targetElement: fn
173435
173425
  });
@@ -173446,18 +173436,18 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
173446
173436
  } catch {
173447
173437
  }
173448
173438
  };
173449
- return document.addEventListener("click", Le, !0), () => document.removeEventListener("click", Le, !0);
173439
+ return document.addEventListener("click", Ue, !0), () => document.removeEventListener("click", Ue, !0);
173450
173440
  }, [o]), _e(() => {
173451
173441
  fe && T(!a && !$);
173452
173442
  }, [fe, a, $]);
173453
173443
  const oe = je(!1), he = je(null), me = Te(
173454
- (Le) => {
173455
- const Ye = Le.map((ht) => ho(ht));
173456
- js(e, Vc(Ye), "self");
173444
+ (Ue) => {
173445
+ const Je = Ue.map((ht) => ho(ht));
173446
+ js(e, Vc(Je), "self");
173457
173447
  },
173458
173448
  [e]
173459
173449
  ), pe = Te(
173460
- (Le) => Array.isArray(Le) || typeof Le == "string" && !lQ(Le),
173450
+ (Ue) => Array.isArray(Ue) || typeof Ue == "string" && !lQ(Ue),
173461
173451
  []
173462
173452
  );
173463
173453
  _e(() => {
@@ -173475,12 +173465,12 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
173475
173465
  O(!0);
173476
173466
  return;
173477
173467
  }
173478
- const Ye = `${r || "no-version-id"}:${X || "default"}`;
173468
+ const Je = `${r || "no-version-id"}:${X || "default"}`;
173479
173469
  if (!t && oe.current) {
173480
173470
  O(!1);
173481
173471
  return;
173482
173472
  }
173483
- if (t && he.current === Ye) {
173473
+ if (t && he.current === Je) {
173484
173474
  O(!1);
173485
173475
  return;
173486
173476
  }
@@ -173492,7 +173482,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
173492
173482
  onInvalidContentError: j
173493
173483
  })
173494
173484
  )), N && cw.setZoom(N), t) {
173495
- he.current = Ye, O(!1);
173485
+ he.current = Je, O(!1);
173496
173486
  return;
173497
173487
  }
173498
173488
  H().finally(() => {
@@ -173528,36 +173518,36 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
173528
173518
  }), _e(() => {
173529
173519
  if (!N) return;
173530
173520
  cw.setZoom(N);
173531
- const Le = window.setTimeout(() => {
173521
+ const Ue = window.setTimeout(() => {
173532
173522
  cw.setZoom(N);
173533
173523
  }, 100);
173534
- return () => clearTimeout(Le);
173524
+ return () => clearTimeout(Ue);
173535
173525
  }, [N, U, i, ne == null ? void 0 : ne.isEmpty]), _e(() => {
173536
173526
  if (!ne) return;
173537
- const Le = ({ editor: Ye }) => {
173538
- const ht = Ye.state.selection.from;
173527
+ const Ue = ({ editor: Je }) => {
173528
+ const ht = Je.state.selection.from;
173539
173529
  setTimeout(() => {
173540
- const st = Ye.state.selection.from, St = [];
173541
- Ye.state.doc.nodesBetween(
173530
+ const st = Je.state.selection.from, St = [];
173531
+ Je.state.doc.nodesBetween(
173542
173532
  ht,
173543
173533
  st,
173544
- (Ft, Je) => {
173545
- Ft.marks && Ft.marks.forEach((Bt) => {
173534
+ (vt, Ze) => {
173535
+ vt.marks && vt.marks.forEach((Bt) => {
173546
173536
  Bt.type.name === "textStyle" && Bt.attrs.color && St.push({
173547
- from: Je,
173548
- to: Je + Ft.nodeSize,
173537
+ from: Ze,
173538
+ to: Ze + vt.nodeSize,
173549
173539
  mark: Bt
173550
173540
  });
173551
173541
  });
173552
173542
  }
173553
- ), Ye.chain().setTextSelection({ from: ht, to: st }).setColor("").run(), St.forEach(({ from: Ft, to: Je, mark: Bt }) => {
173543
+ ), Je.chain().setTextSelection({ from: ht, to: st }).setColor("").run(), St.forEach(({ from: vt, to: Ze, mark: Bt }) => {
173554
173544
  const Mt = Bt.attrs.color;
173555
- OW(Mt) || Ye.chain().setTextSelection({ from: Ft, to: Je }).setColor(Mt).run();
173556
- }), Ye.commands.setTextSelection(st);
173545
+ OW(Mt) || Je.chain().setTextSelection({ from: vt, to: Ze }).setColor(Mt).run();
173546
+ }), Je.commands.setTextSelection(st);
173557
173547
  }, 0);
173558
173548
  };
173559
- return ne.on("paste", Le), () => {
173560
- ne.off("paste", Le);
173549
+ return ne.on("paste", Ue), () => {
173550
+ ne.off("paste", Ue);
173561
173551
  };
173562
173552
  }, [ne]);
173563
173553
  const ge = je(null), Se = je(null), Be = je(0), Oe = je(
@@ -173566,21 +173556,21 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
173566
173556
  _e(() => {
173567
173557
  if (!A)
173568
173558
  return;
173569
- const Le = phe();
173570
- return Oe.current = Le, () => {
173571
- Oe.current === Le && (Oe.current = null), Le.destroy();
173559
+ const Ue = phe();
173560
+ return Oe.current = Ue, () => {
173561
+ Oe.current === Ue && (Oe.current = null), Ue.destroy();
173572
173562
  };
173573
173563
  }, [A]), _e(() => {
173574
173564
  if (!ne || !k && !E && !A) return;
173575
- const Le = () => {
173565
+ const Ue = () => {
173576
173566
  ge.current && clearTimeout(ge.current), ge.current = setTimeout(() => {
173577
173567
  if (ge.current = null, ne && !ne.isDestroyed && (k == null || k(ne.storage.characterCount.characters() ?? 0), E == null || E(ne.storage.characterCount.words() ?? 0), A)) {
173578
- const Ye = Oe.current;
173579
- if (!Ye)
173568
+ const Je = Oe.current;
173569
+ if (!Je)
173580
173570
  return;
173581
173571
  const ht = ne.getHTML(), st = ++Be.current;
173582
173572
  qI(Se.current), Se.current = Bze(() => {
173583
- Se.current = null, Ye.getPageCount(ht).then((St) => {
173573
+ Se.current = null, Je.getPageCount(ht).then((St) => {
173584
173574
  st === Be.current && ne && !ne.isDestroyed && (He.current[X] = St, A(St));
173585
173575
  }).catch(() => {
173586
173576
  st === Be.current && ne && !ne.isDestroyed && A(
@@ -173591,15 +173581,15 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
173591
173581
  }
173592
173582
  }, 500);
173593
173583
  };
173594
- return Le(), ne.on("update", Le), () => {
173595
- ne.off("update", Le), ge.current && clearTimeout(ge.current), qI(Se.current), Se.current = null, Be.current += 1;
173584
+ return Ue(), ne.on("update", Ue), () => {
173585
+ ne.off("update", Ue), ge.current && clearTimeout(ge.current), qI(Se.current), Se.current = null, Be.current += 1;
173596
173586
  };
173597
173587
  }, [X, ne, k, A, E]), _e(() => {
173598
- const Le = (Ye) => {
173599
- (Ye.ctrlKey || Ye.metaKey) && Ye.key === "p" && (Ye.preventDefault(), ne && (C ? l$(we) : qx(ne.getHTML())));
173588
+ const Ue = (Je) => {
173589
+ (Je.ctrlKey || Je.metaKey) && Je.key === "p" && (Je.preventDefault(), ne && (C ? l$(we) : qx(ne.getHTML())));
173600
173590
  };
173601
- return window.addEventListener("keydown", Le), () => {
173602
- window.removeEventListener("keydown", Le);
173591
+ return window.addEventListener("keydown", Ue), () => {
173592
+ window.removeEventListener("keydown", Ue);
173603
173593
  };
173604
173594
  }, [ne, C, we]), _e(() => (ee && Y && P(Y), () => {
173605
173595
  ke.current();
@@ -173609,23 +173599,23 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
173609
173599
  Y == null ? void 0 : Y.roomId,
173610
173600
  Y == null ? void 0 : Y.wsUrl
173611
173601
  ]);
173612
- const xt = window.location.hash.startsWith("#") ? window.location.hash.substring(1) : window.location.hash, { isNativeMobile: bt } = Ri(), lt = new URLSearchParams(xt), it = lt.get("heading"), Xe = it == null ? void 0 : it.split("-").pop(), qe = Te(
173613
- (Le) => {
173602
+ const xt = window.location.hash.startsWith("#") ? window.location.hash.substring(1) : window.location.hash, { isNativeMobile: bt } = Ri(), lt = new URLSearchParams(xt), it = lt.get("heading"), Xe = it == null ? void 0 : it.split("-").pop(), Ve = Te(
173603
+ (Ue) => {
173614
173604
  if (ne)
173615
173605
  try {
173616
- const Ye = ne.view.dom.querySelectorAll("[data-toc-id]"), ht = Array.from(Ye).find(
173606
+ const Je = ne.view.dom.querySelectorAll("[data-toc-id]"), ht = Array.from(Je).find(
173617
173607
  (Mt) => {
173618
173608
  var Lt;
173619
- return (Lt = Mt.dataset.tocId) == null ? void 0 : Lt.includes(Le);
173609
+ return (Lt = Mt.dataset.tocId) == null ? void 0 : Lt.includes(Ue);
173620
173610
  }
173621
173611
  );
173622
173612
  if (!ht) return;
173623
173613
  const st = wE(
173624
173614
  ht == null ? void 0 : ht.textContent
173625
173615
  ), St = it == null ? void 0 : it.split("-").slice(0, -1).join("-");
173626
- st !== St && (lt.set("heading", `${st}-${Le}`), window.location.hash = lt.toString());
173627
- const Ft = ne.view.posAtDOM(ht, 0), Je = ne.view.state.tr;
173628
- Je.setSelection(new gt(Je.doc.resolve(Ft))), ne.view.dispatch(Je);
173616
+ st !== St && (lt.set("heading", `${st}-${Ue}`), window.location.hash = lt.toString());
173617
+ const vt = ne.view.posAtDOM(ht, 0), Ze = ne.view.state.tr;
173618
+ Ze.setSelection(new gt(Ze.doc.resolve(vt))), ne.view.dispatch(Ze);
173629
173619
  const Bt = k0({
173630
173620
  targetElement: ht,
173631
173621
  editorRoot: ne.view.dom
@@ -173645,7 +173635,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
173645
173635
  );
173646
173636
  _e(() => {
173647
173637
  !o || !Xe || U || setTimeout(() => {
173648
- qe(Xe);
173638
+ Ve(Xe);
173649
173639
  }, 100);
173650
173640
  }, [
173651
173641
  ne,
@@ -173653,41 +173643,41 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
173653
173643
  bt,
173654
173644
  Xe,
173655
173645
  U,
173656
- qe
173646
+ Ve
173657
173647
  ]), _e(() => {
173658
173648
  if (!ne || U || !i)
173659
173649
  return;
173660
- const Le = setTimeout(() => {
173661
- const { tr: Ye, doc: ht } = ne.state;
173650
+ const Ue = setTimeout(() => {
173651
+ const { tr: Je, doc: ht } = ne.state;
173662
173652
  let st = !1;
173663
- ht.descendants((St, Ft) => {
173653
+ ht.descendants((St, vt) => {
173664
173654
  if (!St.marks || St.marks.length === 0) return;
173665
- const Je = St.marks.find(
173655
+ const Ze = St.marks.find(
173666
173656
  (Lt) => Lt.type.name === "textStyle" && Lt.attrs.color
173667
173657
  );
173668
- if (!Je) return;
173669
- const Bt = Je.attrs["data-original-color"] || Je.attrs.color;
173658
+ if (!Ze) return;
173659
+ const Bt = Ze.attrs["data-original-color"] || Ze.attrs.color;
173670
173660
  if (Bt.startsWith("var(--color-editor-") || Bt === "inherit")
173671
173661
  return;
173672
173662
  const Mt = ez(Bt, le);
173673
- if (Mt !== Je.attrs.color) {
173663
+ if (Mt !== Ze.attrs.color) {
173674
173664
  st = !0;
173675
- const Lt = Je.type.create({
173676
- ...Je.attrs,
173665
+ const Lt = Ze.type.create({
173666
+ ...Ze.attrs,
173677
173667
  color: Mt,
173678
173668
  "data-original-color": Bt
173679
173669
  });
173680
- Ye.removeMark(Ft, Ft + St.nodeSize, Je), Ye.addMark(Ft, Ft + St.nodeSize, Lt);
173670
+ Je.removeMark(vt, vt + St.nodeSize, Ze), Je.addMark(vt, vt + St.nodeSize, Lt);
173681
173671
  }
173682
- }), st && (Ye.setMeta("addToHistory", !1), ne.view.dispatch(Ye));
173672
+ }), st && (Je.setMeta("addToHistory", !1), ne.view.dispatch(Je));
173683
173673
  }, 0);
173684
- return () => clearTimeout(Le);
173674
+ return () => clearTimeout(Ue);
173685
173675
  }, [ne, i, U, le]), _e(() => () => {
173686
173676
  ne && ne.destroy();
173687
173677
  }, [ne]), Pze(ne, i, !1);
173688
- const vt = je(null);
173678
+ const Ft = je(null);
173689
173679
  return _e(() => {
173690
- ne && vt.current !== Q && (vt.current = Q, Gc(ne));
173680
+ ne && Ft.current !== Q && (Ft.current = Q, Gc(ne));
173691
173681
  }, [Q, ne]), {
173692
173682
  editor: ne,
173693
173683
  ref: Ee,
@@ -177938,8 +177928,8 @@ var GQ = {};
177938
177928
  ee[S] = Y[S] - Q[S];
177939
177929
  }
177940
177930
  function k(ee, Y, Q) {
177941
- let S, V, G = 0, se = 0, M = 0, ie = 0, ae = 0, Z = 0, K = 0, ce = 0, ve = 0, we = 0, ye = 0, ue = 0, ne = 0, fe = 0, I = 0, q = 0, oe = 0, he = 0, me = 0, pe = 0, ke = 0, Ee = 0, ge = 0, Se = 0, Be = 0, Oe = 0, He = 0, xt = 0, bt = 0, lt = 0, it = 0, Xe = Q[0], qe = Q[1], vt = Q[2], Le = Q[3], Ye = Q[4], ht = Q[5], st = Q[6], St = Q[7], Ft = Q[8], Je = Q[9], Bt = Q[10], Mt = Q[11], Lt = Q[12], fn = Q[13], be = Q[14], Me = Q[15];
177942
- S = Y[0], G += S * Xe, se += S * qe, M += S * vt, ie += S * Le, ae += S * Ye, Z += S * ht, K += S * st, ce += S * St, ve += S * Ft, we += S * Je, ye += S * Bt, ue += S * Mt, ne += S * Lt, fe += S * fn, I += S * be, q += S * Me, S = Y[1], se += S * Xe, M += S * qe, ie += S * vt, ae += S * Le, Z += S * Ye, K += S * ht, ce += S * st, ve += S * St, we += S * Ft, ye += S * Je, ue += S * Bt, ne += S * Mt, fe += S * Lt, I += S * fn, q += S * be, oe += S * Me, S = Y[2], M += S * Xe, ie += S * qe, ae += S * vt, Z += S * Le, K += S * Ye, ce += S * ht, ve += S * st, we += S * St, ye += S * Ft, ue += S * Je, ne += S * Bt, fe += S * Mt, I += S * Lt, q += S * fn, oe += S * be, he += S * Me, S = Y[3], ie += S * Xe, ae += S * qe, Z += S * vt, K += S * Le, ce += S * Ye, ve += S * ht, we += S * st, ye += S * St, ue += S * Ft, ne += S * Je, fe += S * Bt, I += S * Mt, q += S * Lt, oe += S * fn, he += S * be, me += S * Me, S = Y[4], ae += S * Xe, Z += S * qe, K += S * vt, ce += S * Le, ve += S * Ye, we += S * ht, ye += S * st, ue += S * St, ne += S * Ft, fe += S * Je, I += S * Bt, q += S * Mt, oe += S * Lt, he += S * fn, me += S * be, pe += S * Me, S = Y[5], Z += S * Xe, K += S * qe, ce += S * vt, ve += S * Le, we += S * Ye, ye += S * ht, ue += S * st, ne += S * St, fe += S * Ft, I += S * Je, q += S * Bt, oe += S * Mt, he += S * Lt, me += S * fn, pe += S * be, ke += S * Me, S = Y[6], K += S * Xe, ce += S * qe, ve += S * vt, we += S * Le, ye += S * Ye, ue += S * ht, ne += S * st, fe += S * St, I += S * Ft, q += S * Je, oe += S * Bt, he += S * Mt, me += S * Lt, pe += S * fn, ke += S * be, Ee += S * Me, S = Y[7], ce += S * Xe, ve += S * qe, we += S * vt, ye += S * Le, ue += S * Ye, ne += S * ht, fe += S * st, I += S * St, q += S * Ft, oe += S * Je, he += S * Bt, me += S * Mt, pe += S * Lt, ke += S * fn, Ee += S * be, ge += S * Me, S = Y[8], ve += S * Xe, we += S * qe, ye += S * vt, ue += S * Le, ne += S * Ye, fe += S * ht, I += S * st, q += S * St, oe += S * Ft, he += S * Je, me += S * Bt, pe += S * Mt, ke += S * Lt, Ee += S * fn, ge += S * be, Se += S * Me, S = Y[9], we += S * Xe, ye += S * qe, ue += S * vt, ne += S * Le, fe += S * Ye, I += S * ht, q += S * st, oe += S * St, he += S * Ft, me += S * Je, pe += S * Bt, ke += S * Mt, Ee += S * Lt, ge += S * fn, Se += S * be, Be += S * Me, S = Y[10], ye += S * Xe, ue += S * qe, ne += S * vt, fe += S * Le, I += S * Ye, q += S * ht, oe += S * st, he += S * St, me += S * Ft, pe += S * Je, ke += S * Bt, Ee += S * Mt, ge += S * Lt, Se += S * fn, Be += S * be, Oe += S * Me, S = Y[11], ue += S * Xe, ne += S * qe, fe += S * vt, I += S * Le, q += S * Ye, oe += S * ht, he += S * st, me += S * St, pe += S * Ft, ke += S * Je, Ee += S * Bt, ge += S * Mt, Se += S * Lt, Be += S * fn, Oe += S * be, He += S * Me, S = Y[12], ne += S * Xe, fe += S * qe, I += S * vt, q += S * Le, oe += S * Ye, he += S * ht, me += S * st, pe += S * St, ke += S * Ft, Ee += S * Je, ge += S * Bt, Se += S * Mt, Be += S * Lt, Oe += S * fn, He += S * be, xt += S * Me, S = Y[13], fe += S * Xe, I += S * qe, q += S * vt, oe += S * Le, he += S * Ye, me += S * ht, pe += S * st, ke += S * St, Ee += S * Ft, ge += S * Je, Se += S * Bt, Be += S * Mt, Oe += S * Lt, He += S * fn, xt += S * be, bt += S * Me, S = Y[14], I += S * Xe, q += S * qe, oe += S * vt, he += S * Le, me += S * Ye, pe += S * ht, ke += S * st, Ee += S * St, ge += S * Ft, Se += S * Je, Be += S * Bt, Oe += S * Mt, He += S * Lt, xt += S * fn, bt += S * be, lt += S * Me, S = Y[15], q += S * Xe, oe += S * qe, he += S * vt, me += S * Le, pe += S * Ye, ke += S * ht, Ee += S * st, ge += S * St, Se += S * Ft, Be += S * Je, Oe += S * Bt, He += S * Mt, xt += S * Lt, bt += S * fn, lt += S * be, it += S * Me, G += 38 * oe, se += 38 * he, M += 38 * me, ie += 38 * pe, ae += 38 * ke, Z += 38 * Ee, K += 38 * ge, ce += 38 * Se, ve += 38 * Be, we += 38 * Oe, ye += 38 * He, ue += 38 * xt, ne += 38 * bt, fe += 38 * lt, I += 38 * it, V = 1, S = G + V + 65535, V = Math.floor(S / 65536), G = S - V * 65536, S = se + V + 65535, V = Math.floor(S / 65536), se = S - V * 65536, S = M + V + 65535, V = Math.floor(S / 65536), M = S - V * 65536, S = ie + V + 65535, V = Math.floor(S / 65536), ie = S - V * 65536, S = ae + V + 65535, V = Math.floor(S / 65536), ae = S - V * 65536, S = Z + V + 65535, V = Math.floor(S / 65536), Z = S - V * 65536, S = K + V + 65535, V = Math.floor(S / 65536), K = S - V * 65536, S = ce + V + 65535, V = Math.floor(S / 65536), ce = S - V * 65536, S = ve + V + 65535, V = Math.floor(S / 65536), ve = S - V * 65536, S = we + V + 65535, V = Math.floor(S / 65536), we = S - V * 65536, S = ye + V + 65535, V = Math.floor(S / 65536), ye = S - V * 65536, S = ue + V + 65535, V = Math.floor(S / 65536), ue = S - V * 65536, S = ne + V + 65535, V = Math.floor(S / 65536), ne = S - V * 65536, S = fe + V + 65535, V = Math.floor(S / 65536), fe = S - V * 65536, S = I + V + 65535, V = Math.floor(S / 65536), I = S - V * 65536, S = q + V + 65535, V = Math.floor(S / 65536), q = S - V * 65536, G += V - 1 + 37 * (V - 1), V = 1, S = G + V + 65535, V = Math.floor(S / 65536), G = S - V * 65536, S = se + V + 65535, V = Math.floor(S / 65536), se = S - V * 65536, S = M + V + 65535, V = Math.floor(S / 65536), M = S - V * 65536, S = ie + V + 65535, V = Math.floor(S / 65536), ie = S - V * 65536, S = ae + V + 65535, V = Math.floor(S / 65536), ae = S - V * 65536, S = Z + V + 65535, V = Math.floor(S / 65536), Z = S - V * 65536, S = K + V + 65535, V = Math.floor(S / 65536), K = S - V * 65536, S = ce + V + 65535, V = Math.floor(S / 65536), ce = S - V * 65536, S = ve + V + 65535, V = Math.floor(S / 65536), ve = S - V * 65536, S = we + V + 65535, V = Math.floor(S / 65536), we = S - V * 65536, S = ye + V + 65535, V = Math.floor(S / 65536), ye = S - V * 65536, S = ue + V + 65535, V = Math.floor(S / 65536), ue = S - V * 65536, S = ne + V + 65535, V = Math.floor(S / 65536), ne = S - V * 65536, S = fe + V + 65535, V = Math.floor(S / 65536), fe = S - V * 65536, S = I + V + 65535, V = Math.floor(S / 65536), I = S - V * 65536, S = q + V + 65535, V = Math.floor(S / 65536), q = S - V * 65536, G += V - 1 + 37 * (V - 1), ee[0] = G, ee[1] = se, ee[2] = M, ee[3] = ie, ee[4] = ae, ee[5] = Z, ee[6] = K, ee[7] = ce, ee[8] = ve, ee[9] = we, ee[10] = ye, ee[11] = ue, ee[12] = ne, ee[13] = fe, ee[14] = I, ee[15] = q;
177931
+ let S, V, G = 0, se = 0, M = 0, ie = 0, ae = 0, Z = 0, K = 0, ce = 0, ve = 0, we = 0, ye = 0, ue = 0, ne = 0, fe = 0, I = 0, q = 0, oe = 0, he = 0, me = 0, pe = 0, ke = 0, Ee = 0, ge = 0, Se = 0, Be = 0, Oe = 0, He = 0, xt = 0, bt = 0, lt = 0, it = 0, Xe = Q[0], Ve = Q[1], Ft = Q[2], Ue = Q[3], Je = Q[4], ht = Q[5], st = Q[6], St = Q[7], vt = Q[8], Ze = Q[9], Bt = Q[10], Mt = Q[11], Lt = Q[12], fn = Q[13], be = Q[14], Me = Q[15];
177932
+ S = Y[0], G += S * Xe, se += S * Ve, M += S * Ft, ie += S * Ue, ae += S * Je, Z += S * ht, K += S * st, ce += S * St, ve += S * vt, we += S * Ze, ye += S * Bt, ue += S * Mt, ne += S * Lt, fe += S * fn, I += S * be, q += S * Me, S = Y[1], se += S * Xe, M += S * Ve, ie += S * Ft, ae += S * Ue, Z += S * Je, K += S * ht, ce += S * st, ve += S * St, we += S * vt, ye += S * Ze, ue += S * Bt, ne += S * Mt, fe += S * Lt, I += S * fn, q += S * be, oe += S * Me, S = Y[2], M += S * Xe, ie += S * Ve, ae += S * Ft, Z += S * Ue, K += S * Je, ce += S * ht, ve += S * st, we += S * St, ye += S * vt, ue += S * Ze, ne += S * Bt, fe += S * Mt, I += S * Lt, q += S * fn, oe += S * be, he += S * Me, S = Y[3], ie += S * Xe, ae += S * Ve, Z += S * Ft, K += S * Ue, ce += S * Je, ve += S * ht, we += S * st, ye += S * St, ue += S * vt, ne += S * Ze, fe += S * Bt, I += S * Mt, q += S * Lt, oe += S * fn, he += S * be, me += S * Me, S = Y[4], ae += S * Xe, Z += S * Ve, K += S * Ft, ce += S * Ue, ve += S * Je, we += S * ht, ye += S * st, ue += S * St, ne += S * vt, fe += S * Ze, I += S * Bt, q += S * Mt, oe += S * Lt, he += S * fn, me += S * be, pe += S * Me, S = Y[5], Z += S * Xe, K += S * Ve, ce += S * Ft, ve += S * Ue, we += S * Je, ye += S * ht, ue += S * st, ne += S * St, fe += S * vt, I += S * Ze, q += S * Bt, oe += S * Mt, he += S * Lt, me += S * fn, pe += S * be, ke += S * Me, S = Y[6], K += S * Xe, ce += S * Ve, ve += S * Ft, we += S * Ue, ye += S * Je, ue += S * ht, ne += S * st, fe += S * St, I += S * vt, q += S * Ze, oe += S * Bt, he += S * Mt, me += S * Lt, pe += S * fn, ke += S * be, Ee += S * Me, S = Y[7], ce += S * Xe, ve += S * Ve, we += S * Ft, ye += S * Ue, ue += S * Je, ne += S * ht, fe += S * st, I += S * St, q += S * vt, oe += S * Ze, he += S * Bt, me += S * Mt, pe += S * Lt, ke += S * fn, Ee += S * be, ge += S * Me, S = Y[8], ve += S * Xe, we += S * Ve, ye += S * Ft, ue += S * Ue, ne += S * Je, fe += S * ht, I += S * st, q += S * St, oe += S * vt, he += S * Ze, me += S * Bt, pe += S * Mt, ke += S * Lt, Ee += S * fn, ge += S * be, Se += S * Me, S = Y[9], we += S * Xe, ye += S * Ve, ue += S * Ft, ne += S * Ue, fe += S * Je, I += S * ht, q += S * st, oe += S * St, he += S * vt, me += S * Ze, pe += S * Bt, ke += S * Mt, Ee += S * Lt, ge += S * fn, Se += S * be, Be += S * Me, S = Y[10], ye += S * Xe, ue += S * Ve, ne += S * Ft, fe += S * Ue, I += S * Je, q += S * ht, oe += S * st, he += S * St, me += S * vt, pe += S * Ze, ke += S * Bt, Ee += S * Mt, ge += S * Lt, Se += S * fn, Be += S * be, Oe += S * Me, S = Y[11], ue += S * Xe, ne += S * Ve, fe += S * Ft, I += S * Ue, q += S * Je, oe += S * ht, he += S * st, me += S * St, pe += S * vt, ke += S * Ze, Ee += S * Bt, ge += S * Mt, Se += S * Lt, Be += S * fn, Oe += S * be, He += S * Me, S = Y[12], ne += S * Xe, fe += S * Ve, I += S * Ft, q += S * Ue, oe += S * Je, he += S * ht, me += S * st, pe += S * St, ke += S * vt, Ee += S * Ze, ge += S * Bt, Se += S * Mt, Be += S * Lt, Oe += S * fn, He += S * be, xt += S * Me, S = Y[13], fe += S * Xe, I += S * Ve, q += S * Ft, oe += S * Ue, he += S * Je, me += S * ht, pe += S * st, ke += S * St, Ee += S * vt, ge += S * Ze, Se += S * Bt, Be += S * Mt, Oe += S * Lt, He += S * fn, xt += S * be, bt += S * Me, S = Y[14], I += S * Xe, q += S * Ve, oe += S * Ft, he += S * Ue, me += S * Je, pe += S * ht, ke += S * st, Ee += S * St, ge += S * vt, Se += S * Ze, Be += S * Bt, Oe += S * Mt, He += S * Lt, xt += S * fn, bt += S * be, lt += S * Me, S = Y[15], q += S * Xe, oe += S * Ve, he += S * Ft, me += S * Ue, pe += S * Je, ke += S * ht, Ee += S * st, ge += S * St, Se += S * vt, Be += S * Ze, Oe += S * Bt, He += S * Mt, xt += S * Lt, bt += S * fn, lt += S * be, it += S * Me, G += 38 * oe, se += 38 * he, M += 38 * me, ie += 38 * pe, ae += 38 * ke, Z += 38 * Ee, K += 38 * ge, ce += 38 * Se, ve += 38 * Be, we += 38 * Oe, ye += 38 * He, ue += 38 * xt, ne += 38 * bt, fe += 38 * lt, I += 38 * it, V = 1, S = G + V + 65535, V = Math.floor(S / 65536), G = S - V * 65536, S = se + V + 65535, V = Math.floor(S / 65536), se = S - V * 65536, S = M + V + 65535, V = Math.floor(S / 65536), M = S - V * 65536, S = ie + V + 65535, V = Math.floor(S / 65536), ie = S - V * 65536, S = ae + V + 65535, V = Math.floor(S / 65536), ae = S - V * 65536, S = Z + V + 65535, V = Math.floor(S / 65536), Z = S - V * 65536, S = K + V + 65535, V = Math.floor(S / 65536), K = S - V * 65536, S = ce + V + 65535, V = Math.floor(S / 65536), ce = S - V * 65536, S = ve + V + 65535, V = Math.floor(S / 65536), ve = S - V * 65536, S = we + V + 65535, V = Math.floor(S / 65536), we = S - V * 65536, S = ye + V + 65535, V = Math.floor(S / 65536), ye = S - V * 65536, S = ue + V + 65535, V = Math.floor(S / 65536), ue = S - V * 65536, S = ne + V + 65535, V = Math.floor(S / 65536), ne = S - V * 65536, S = fe + V + 65535, V = Math.floor(S / 65536), fe = S - V * 65536, S = I + V + 65535, V = Math.floor(S / 65536), I = S - V * 65536, S = q + V + 65535, V = Math.floor(S / 65536), q = S - V * 65536, G += V - 1 + 37 * (V - 1), V = 1, S = G + V + 65535, V = Math.floor(S / 65536), G = S - V * 65536, S = se + V + 65535, V = Math.floor(S / 65536), se = S - V * 65536, S = M + V + 65535, V = Math.floor(S / 65536), M = S - V * 65536, S = ie + V + 65535, V = Math.floor(S / 65536), ie = S - V * 65536, S = ae + V + 65535, V = Math.floor(S / 65536), ae = S - V * 65536, S = Z + V + 65535, V = Math.floor(S / 65536), Z = S - V * 65536, S = K + V + 65535, V = Math.floor(S / 65536), K = S - V * 65536, S = ce + V + 65535, V = Math.floor(S / 65536), ce = S - V * 65536, S = ve + V + 65535, V = Math.floor(S / 65536), ve = S - V * 65536, S = we + V + 65535, V = Math.floor(S / 65536), we = S - V * 65536, S = ye + V + 65535, V = Math.floor(S / 65536), ye = S - V * 65536, S = ue + V + 65535, V = Math.floor(S / 65536), ue = S - V * 65536, S = ne + V + 65535, V = Math.floor(S / 65536), ne = S - V * 65536, S = fe + V + 65535, V = Math.floor(S / 65536), fe = S - V * 65536, S = I + V + 65535, V = Math.floor(S / 65536), I = S - V * 65536, S = q + V + 65535, V = Math.floor(S / 65536), q = S - V * 65536, G += V - 1 + 37 * (V - 1), ee[0] = G, ee[1] = se, ee[2] = M, ee[3] = ie, ee[4] = ae, ee[5] = Z, ee[6] = K, ee[7] = ce, ee[8] = ve, ee[9] = we, ee[10] = ye, ee[11] = ue, ee[12] = ne, ee[13] = fe, ee[14] = I, ee[15] = q;
177943
177933
  }
177944
177934
  function E(ee, Y) {
177945
177935
  k(ee, Y, Y);
@@ -183934,7 +183924,7 @@ const cKe = { status: "idle" }, dKe = (e) => {
183934
183924
  )),
183935
183925
  /* @__PURE__ */ F.jsx("div", { className: "w-[1px] h-4 vertical-divider mx-2" }),
183936
183926
  /* @__PURE__ */ F.jsx("div", { className: "w-9 h-9 flex justify-center items-center", children: /* @__PURE__ */ F.jsx(
183937
- Ue,
183927
+ Le,
183938
183928
  {
183939
183929
  size: "md",
183940
183930
  name: r ? "ChevronUp" : "ChevronDown",
@@ -184152,7 +184142,7 @@ const gKe = async (e, t, n) => {
184152
184142
  "div",
184153
184143
  {
184154
184144
  ref: s,
184155
- className: Ve(
184145
+ className: qe(
184156
184146
  "color-bg-default flex gap-3 py-4 px-4 color-border-default-hover relative",
184157
184147
  l ? "flex-row overflow-x-auto border-t min-h-[12rem] order-2 w-full pt-10 xl:pt-0" : "w-[251px] h-full overflow-y-auto overflow-x-hidden flex-col py-16 border-r",
184158
184148
  a && "min-h-[20rem]"
@@ -184166,7 +184156,7 @@ const gKe = async (e, t, n) => {
184166
184156
  "div",
184167
184157
  {
184168
184158
  ref: (f) => i.current[h] = f,
184169
- className: Ve(
184159
+ className: qe(
184170
184160
  "flex p-2 rounded-xl w-[219px] h-[122px] transition-all",
184171
184161
  t === h ? "color-bg-brand hover:color-bg-brand-hover" : "color-bg-default hover:color-bg-default-hover"
184172
184162
  ),
@@ -184174,7 +184164,7 @@ const gKe = async (e, t, n) => {
184174
184164
  /* @__PURE__ */ F.jsx(
184175
184165
  "span",
184176
184166
  {
184177
- className: Ve(
184167
+ className: qe(
184178
184168
  "text-body-sm h-full w-[20px] pr-1 text-center",
184179
184169
  t === h ? "color-text-on-brand" : "color-text-default"
184180
184170
  ),
@@ -184185,14 +184175,14 @@ const gKe = async (e, t, n) => {
184185
184175
  "div",
184186
184176
  {
184187
184177
  onClick: () => n(h),
184188
- className: Ve(
184178
+ className: qe(
184189
184179
  "border rounded-lg cursor-pointer transition-all transform overflow-hidden aspect-video w-[188px] h-[106px]",
184190
184180
  t === h ? "border-[#FFDF0A]" : "color-border-default"
184191
184181
  ),
184192
184182
  children: /* @__PURE__ */ F.jsx(
184193
184183
  "div",
184194
184184
  {
184195
- className: Ve(
184185
+ className: qe(
184196
184186
  "presentation-mode preview-slide w-[400%] h-[400%]",
184197
184187
  !u && "color-bg-default"
184198
184188
  ),
@@ -184622,7 +184612,7 @@ const AKe = ({
184622
184612
  Tx,
184623
184613
  {
184624
184614
  editor: t,
184625
- className: Ve("presentation-mode", {
184615
+ className: qe("presentation-mode", {
184626
184616
  fullscreen: i
184627
184617
  }),
184628
184618
  style: d,
@@ -184753,7 +184743,7 @@ const AKe = ({
184753
184743
  ) }) }) : c.length === 0 || !R ? null : /* @__PURE__ */ F.jsxs(
184754
184744
  "div",
184755
184745
  {
184756
- className: Ve(
184746
+ className: qe(
184757
184747
  "fixed inset-0 color-bg-secondary flex z-50",
184758
184748
  E ? "flex-col" : "flex-col xl:flex-row",
184759
184749
  "items-center justify-center w-screen h-screen"
@@ -184772,7 +184762,7 @@ const AKe = ({
184772
184762
  /* @__PURE__ */ F.jsxs(
184773
184763
  "div",
184774
184764
  {
184775
- className: Ve(
184765
+ className: qe(
184776
184766
  "flex-1 h-full flex flex-col items-center justify-center",
184777
184767
  {
184778
184768
  "w-full": n
@@ -184858,14 +184848,14 @@ const AKe = ({
184858
184848
  /* @__PURE__ */ F.jsx(
184859
184849
  "div",
184860
184850
  {
184861
- className: Ve(
184851
+ className: qe(
184862
184852
  "w-full flex items-center justify-center",
184863
184853
  n ? "h-screen p-0" : "h-[75vh] p-8"
184864
184854
  ),
184865
184855
  children: /* @__PURE__ */ F.jsx(
184866
184856
  "div",
184867
184857
  {
184868
- className: Ve(
184858
+ className: qe(
184869
184859
  "w-full rounded-lg overflow-hidden relative",
184870
184860
  !B && "color-bg-default",
184871
184861
  n ? "h-full max-w-none flex items-start justify-center" : "px-8 md:px-0 scale-[0.35] md:scale-[0.75] xl:scale-100 min-w-[1080px] max-w-[1080px] aspect-video py-[48px]"
@@ -184892,7 +184882,7 @@ const AKe = ({
184892
184882
  children: /* @__PURE__ */ F.jsx(
184893
184883
  "div",
184894
184884
  {
184895
- className: Ve(
184885
+ className: qe(
184896
184886
  "presentation-mode fullscreen w-full h-full"
184897
184887
  ),
184898
184888
  dangerouslySetInnerHTML: { __html: c[x] },
@@ -184958,16 +184948,16 @@ const AKe = ({
184958
184948
  "div",
184959
184949
  {
184960
184950
  "data-testid": "comment-auth-modal",
184961
- className: Ve("flex flex-col !color-bg-default !rounded-b-lg"),
184951
+ className: qe("flex flex-col !color-bg-default !rounded-b-lg"),
184962
184952
  children: /* @__PURE__ */ F.jsxs(
184963
184953
  "div",
184964
184954
  {
184965
- className: Ve(
184955
+ className: qe(
184966
184956
  "w-full px-6 h-full flex flex-col justify-center items-center"
184967
184957
  ),
184968
184958
  children: [
184969
184959
  /* @__PURE__ */ F.jsxs("div", { className: "inline-flex gap-2", children: [
184970
- /* @__PURE__ */ F.jsx(Ue, { name: "Users", className: "w-6 h-6" }),
184960
+ /* @__PURE__ */ F.jsx(Le, { name: "Users", className: "w-6 h-6" }),
184971
184961
  "What would you like to be identified with"
184972
184962
  ] }),
184973
184963
  /* @__PURE__ */ F.jsxs("div", { className: "pt-4 w-full", children: [
@@ -185119,7 +185109,7 @@ const AKe = ({
185119
185109
  /* @__PURE__ */ F.jsxs(
185120
185110
  "div",
185121
185111
  {
185122
- className: Ve(
185112
+ className: qe(
185123
185113
  "border flex px-[12px] py-[8px] gap-[8px] rounded-[4px]",
185124
185114
  g && "items-center justify-between ",
185125
185115
  n ? "color-bg-disabled" : "color-bg-default"
@@ -185159,7 +185149,7 @@ const AKe = ({
185159
185149
  },
185160
185150
  icon: "SendHorizontal",
185161
185151
  variant: "ghost",
185162
- className: Ve(
185152
+ className: qe(
185163
185153
  "!min-w-[24px] !w-[24px] !min-h-[24px] !h-[24px]",
185164
185154
  !g && "hidden"
185165
185155
  )
@@ -185171,7 +185161,7 @@ const AKe = ({
185171
185161
  /* @__PURE__ */ F.jsxs(
185172
185162
  "div",
185173
185163
  {
185174
- className: g ? "hidden" : Ve(
185164
+ className: g ? "hidden" : qe(
185175
185165
  "items-center justify-end gap-2 pt-2",
185176
185166
  m ? "flex" : "hidden group-focus-within:flex"
185177
185167
  ),
@@ -185214,7 +185204,7 @@ const AKe = ({
185214
185204
  /* @__PURE__ */ F.jsxs(
185215
185205
  "div",
185216
185206
  {
185217
- className: Ve(
185207
+ className: qe(
185218
185208
  "border mx-4 flex px-[12px] color-bg-default py-[8px] gap-[8px] rounded-[4px]",
185219
185209
  t && "color-bg-disabled"
185220
185210
  ),
@@ -185300,7 +185290,7 @@ const LR = ({
185300
185290
  Y && /* @__PURE__ */ F.jsxs(
185301
185291
  "p",
185302
185292
  {
185303
- className: Ve(
185293
+ className: qe(
185304
185294
  "text-body-sm-bold color-text-secondary",
185305
185295
  C && "mb-[4px]"
185306
185296
  ),
@@ -185383,7 +185373,7 @@ const LR = ({
185383
185373
  "div",
185384
185374
  {
185385
185375
  "data-testid": "comment-section",
185386
- className: Ve(
185376
+ className: qe(
185387
185377
  (!r || !u) && "flex flex-col",
185388
185378
  !r && "h-[100dvh] sm:h-[calc(100dvh-40px)] xl:h-[calc(100dvh-292px)] !rounded-b-lg",
185389
185379
  r && !u && "h-full",
@@ -185396,7 +185386,7 @@ const LR = ({
185396
185386
  /* @__PURE__ */ F.jsx(
185397
185387
  "div",
185398
185388
  {
185399
- className: Ve(
185389
+ className: qe(
185400
185390
  !C && "px-4 pb-4",
185401
185391
  " w-full overflow-y-auto h-full"
185402
185392
  ),
@@ -185413,7 +185403,7 @@ const LR = ({
185413
185403
  /* @__PURE__ */ F.jsx(
185414
185404
  "div",
185415
185405
  {
185416
- className: Ve(
185406
+ className: qe(
185417
185407
  z.length > 0 && !j && "mt-[16px]"
185418
185408
  )
185419
185409
  }
@@ -185474,7 +185464,7 @@ const LR = ({
185474
185464
  "div",
185475
185465
  {
185476
185466
  "data-comment-id": e.id,
185477
- className: Ve(
185467
+ className: qe(
185478
185468
  "relative flex cursor-pointer flex-col w-full mt-[8px] pb-[12px] box-border transition-all color-border-default rounded-[12px]",
185479
185469
  r && a !== e.id && "hidden",
185480
185470
  e.id === n && (r || !b) ? "color-bg-default border" : "hover:color-bg-default-hover bg-[#00000005] ",
@@ -185493,7 +185483,7 @@ const LR = ({
185493
185483
  variant: "ghost",
185494
185484
  className: "flex w-[104px] gap-[8px]",
185495
185485
  children: [
185496
- /* @__PURE__ */ F.jsx(Ue, { className: "w-[16px] h-[16px]", name: "RefreshCw" }),
185486
+ /* @__PURE__ */ F.jsx(Le, { className: "w-[16px] h-[16px]", name: "RefreshCw" }),
185497
185487
  /* @__PURE__ */ F.jsx("p", { className: "text-body-sm-bold", children: "Re-open" })
185498
185488
  ]
185499
185489
  }
@@ -185530,7 +185520,7 @@ const LR = ({
185530
185520
  "div",
185531
185521
  {
185532
185522
  ref: l,
185533
- className: Ve("flex flex-col gap-2", e.resolved && "hidden"),
185523
+ className: qe("flex flex-col gap-2", e.resolved && "hidden"),
185534
185524
  onClick: (D) => D.stopPropagation(),
185535
185525
  children: a === e.id && /* @__PURE__ */ F.jsx(
185536
185526
  OKe,
@@ -185565,7 +185555,7 @@ const LR = ({
185565
185555
  children: /* @__PURE__ */ F.jsxs("div", { className: "flex h-[46px] items-center space-x-sm rounded-[8px] border color-button-default color-border-default", children: [
185566
185556
  /* @__PURE__ */ F.jsxs("div", { className: "mr-[8px] flex gap-[8px] pl-[12px]", children: [
185567
185557
  /* @__PURE__ */ F.jsx(
185568
- Ue,
185558
+ Le,
185569
185559
  {
185570
185560
  name: "Check",
185571
185561
  stroke: "#FFFFFF",
@@ -186032,7 +186022,7 @@ const LR = ({
186032
186022
  }
186033
186023
  },
186034
186024
  editor: e,
186035
- className: Ve(
186025
+ className: qe(
186036
186026
  "shadow-elevation-4 rounded-lg color-bg-default border color-border-default",
186037
186027
  (n || c) && "hidden"
186038
186028
  ),
@@ -186630,45 +186620,45 @@ const HKe = Number.POSITIVE_INFINITY, tb = (e) => e.isVisible && e.isMeasured &&
186630
186620
  const Xe = we.get(lt);
186631
186621
  if (!Xe)
186632
186622
  return;
186633
- const qe = w(lt), { anchorId: vt } = ux(Xe), Le = p.current.get(vt);
186634
- if (!Le) {
186635
- qe.isInViewport && (qe.isInViewport = !1, E(
186623
+ const Ve = w(lt), { anchorId: Ft } = ux(Xe), Ue = p.current.get(Ft);
186624
+ if (!Ue) {
186625
+ Ve.isInViewport && (Ve.isInViewport = !1, E(
186636
186626
  lt,
186637
186627
  Tr.Visibility
186638
- ), O(it)), qe.anchorTop = null, qe.anchorHeight = 0;
186628
+ ), O(it)), Ve.anchorTop = null, Ve.anchorHeight = 0;
186639
186629
  return;
186640
186630
  }
186641
- let Ye = Le.cachedRect ? ZKe({
186642
- cachedRect: Le.cachedRect,
186631
+ let Je = Ue.cachedRect ? ZKe({
186632
+ cachedRect: Ue.cachedRect,
186643
186633
  scrollTop: M.scrollTop,
186644
186634
  containerTop: q.top
186645
186635
  }) : null;
186646
- Ye && (qe.anchorTop = Ye.top, qe.anchorHeight = Ye.height);
186647
- const ht = Ye !== null && Ye.top >= he - oe * k2 && Ye.top <= me + oe * k2, st = qe.anchorVersion !== Le.anchorVersion;
186648
- if ((!Le.cachedRect || qe.isInViewport || ht || st || !qe.isMeasured || ke && ht || pe && qe.isInViewport) && UR(Le, se)) {
186649
- const Je = JKe({
186650
- elements: Le.elements,
186636
+ Je && (Ve.anchorTop = Je.top, Ve.anchorHeight = Je.height);
186637
+ const ht = Je !== null && Je.top >= he - oe * k2 && Je.top <= me + oe * k2, st = Ve.anchorVersion !== Ue.anchorVersion;
186638
+ if ((!Ue.cachedRect || Ve.isInViewport || ht || st || !Ve.isMeasured || ke && ht || pe && Ve.isInViewport) && UR(Ue, se)) {
186639
+ const Ze = JKe({
186640
+ elements: Ue.elements,
186651
186641
  viewportTop: I.top,
186652
186642
  viewportBottom: I.bottom
186653
186643
  });
186654
- if (Je) {
186655
- const Bt = Je.top - q.top;
186656
- qe.anchorTop = Bt, qe.anchorHeight = Je.height, Le.cachedRect = {
186644
+ if (Ze) {
186645
+ const Bt = Ze.top - q.top;
186646
+ Ve.anchorTop = Bt, Ve.anchorHeight = Ze.height, Ue.cachedRect = {
186657
186647
  top: Bt,
186658
- height: Je.height,
186648
+ height: Ze.height,
186659
186649
  scrollTop: M.scrollTop,
186660
186650
  containerTop: q.top
186661
- }, Ye = { top: Bt, height: Je.height };
186662
- } else Ye && (qe.anchorTop = Ye.top, qe.anchorHeight = Ye.height);
186663
- }
186664
- qe.anchorVersion = Le.anchorVersion;
186665
- const Ft = qe.anchorTop !== null && qe.anchorTop >= he - oe * k2 && qe.anchorTop <= me + oe * k2;
186666
- if (qe.isInViewport !== Ft) {
186667
- const Je = qe.isInViewport;
186668
- qe.isInViewport = Ft, E(
186651
+ }, Je = { top: Bt, height: Ze.height };
186652
+ } else Je && (Ve.anchorTop = Je.top, Ve.anchorHeight = Je.height);
186653
+ }
186654
+ Ve.anchorVersion = Ue.anchorVersion;
186655
+ const vt = Ve.anchorTop !== null && Ve.anchorTop >= he - oe * k2 && Ve.anchorTop <= me + oe * k2;
186656
+ if (Ve.isInViewport !== vt) {
186657
+ const Ze = Ve.isInViewport;
186658
+ Ve.isInViewport = vt, E(
186669
186659
  lt,
186670
186660
  Tr.Visibility
186671
- ), O(it), !Je && Ft && (qe.needsTransformSync = !0, D.current.add(lt), K = !0);
186661
+ ), O(it), !Ze && vt && (Ve.needsTransformSync = !0, D.current.add(lt), K = !0);
186672
186662
  }
186673
186663
  }), Y.current.appliedScroll = Y.current.scroll, Y.current.appliedContainerOffset = Y.current.containerOffset;
186674
186664
  const Ee = _.current.filter((lt) => {
@@ -186688,21 +186678,21 @@ const HKe = Number.POSITIVE_INFINITY, tb = (e) => e.isVisible && e.isMeasured &&
186688
186678
  const it = U.current.cardNodes.get(lt), Xe = y.current.get(lt);
186689
186679
  if (!it || !Xe)
186690
186680
  return;
186691
- const qe = Math.round(it.offsetHeight);
186692
- if (qe > 0 && (!Xe.isMeasured || Xe.height !== qe)) {
186693
- Xe.height = qe, Xe.isMeasured = !0;
186694
- const vt = x(lt);
186681
+ const Ve = Math.round(it.offsetHeight);
186682
+ if (Ve > 0 && (!Xe.isMeasured || Xe.height !== Ve)) {
186683
+ Xe.height = Ve, Xe.isMeasured = !0;
186684
+ const Ft = x(lt);
186695
186685
  E(
186696
186686
  lt,
186697
186687
  Tr.Height
186698
- ), O(vt ?? 0);
186688
+ ), O(Ft ?? 0);
186699
186689
  }
186700
186690
  }), D.current.clear();
186701
186691
  let Be = Number.POSITIVE_INFINITY;
186702
186692
  const Oe = _.current.reduce(
186703
186693
  (lt, it, Xe) => {
186704
- const qe = y.current.get(it);
186705
- return !qe || qe.invalidationFlags === Tr.None ? lt : (Be = Math.min(Be, Xe), Xe);
186694
+ const Ve = y.current.get(it);
186695
+ return !Ve || Ve.invalidationFlags === Tr.None ? lt : (Be = Math.min(Be, Xe), Xe);
186706
186696
  },
186707
186697
  -1
186708
186698
  ), He = Math.min(
@@ -186720,15 +186710,15 @@ const HKe = Number.POSITIVE_INFINITY, tb = (e) => e.isVisible && e.isMeasured &&
186720
186710
  const it = y.current.get(lt), Xe = U.current.cardNodes.get(lt);
186721
186711
  if (!it || !Xe)
186722
186712
  return;
186723
- const qe = bt.placements.get(lt) ?? {
186713
+ const Ve = bt.placements.get(lt) ?? {
186724
186714
  translateY: it.translateY,
186725
186715
  isVisible: it.lastCommittedVisible
186726
186716
  };
186727
- bt.placements.has(lt) && (it.translateY = qe.translateY);
186728
- const vt = $ee(qe.translateY);
186729
- (it.needsTransformSync && vt !== null || vt !== it.lastCommittedTranslateY) && vt !== null && (Xe.style.transform = `translateY(${vt}px)`, it.lastCommittedTranslateY = vt, it.needsTransformSync = !1);
186730
- const Ye = !!qe.isVisible && it.isMeasured && it.anchorTop !== null && !l;
186731
- (Ye !== it.lastCommittedVisible || (it.invalidationFlags & (Tr.Visibility | Tr.Height)) !== 0) && (Xe.style.visibility = Ye ? "visible" : "hidden", Xe.style.opacity = Ye ? "1" : "0", it.lastCommittedVisible = Ye);
186717
+ bt.placements.has(lt) && (it.translateY = Ve.translateY);
186718
+ const Ft = $ee(Ve.translateY);
186719
+ (it.needsTransformSync && Ft !== null || Ft !== it.lastCommittedTranslateY) && Ft !== null && (Xe.style.transform = `translateY(${Ft}px)`, it.lastCommittedTranslateY = Ft, it.needsTransformSync = !1);
186720
+ const Je = !!Ve.isVisible && it.isMeasured && it.anchorTop !== null && !l;
186721
+ (Je !== it.lastCommittedVisible || (it.invalidationFlags & (Tr.Visibility | Tr.Height)) !== 0) && (Xe.style.visibility = Je ? "visible" : "hidden", Xe.style.opacity = Je ? "1" : "0", it.lastCommittedVisible = Je);
186732
186722
  }), b(bt.stopIndex), k.current.recomputeFromIndex = _.current.length, ye.size > 0 && ye.forEach((lt) => {
186733
186723
  t(lt);
186734
186724
  }), K && ve.length > 0 && S();
@@ -187069,7 +187059,7 @@ const HKe = Number.POSITIVE_INFINITY, tb = (e) => e.isVisible && e.isMeasured &&
187069
187059
  return /* @__PURE__ */ F.jsxs(
187070
187060
  "div",
187071
187061
  {
187072
- className: Ve(
187062
+ className: qe(
187073
187063
  "p-3 color-bg-secondary mx-[12px] rounded-[8px] flex flex-col gap-[12px]",
187074
187064
  e && "mt-[12px]"
187075
187065
  ),
@@ -187122,7 +187112,7 @@ const HKe = Number.POSITIVE_INFINITY, tb = (e) => e.isVisible && e.isMeasured &&
187122
187112
  {
187123
187113
  ref: i,
187124
187114
  "data-floating-comment-card": e,
187125
- className: Ve(
187115
+ className: qe(
187126
187116
  "absolute left-0 top-0 pb-[12px] border cursor-pointer rounded-[12px] will-change-transform transition-[box-shadow,border-color] duration-150 ease-out",
187127
187117
  n ? "shadow-elevation-3 color-bg-default color-border-default" : "color-bg-transparent border-transparent hover:color-bg-default-hover hover:color-border-default"
187128
187118
  ),
@@ -187350,7 +187340,7 @@ const pGe = ({
187350
187340
  /* @__PURE__ */ F.jsxs(
187351
187341
  "div",
187352
187342
  {
187353
- className: Ve(
187343
+ className: qe(
187354
187344
  "border flex px-[12px] py-[8px] gap-[8px] rounded-[4px]",
187355
187345
  n ? "color-bg-disabled" : "color-bg-default"
187356
187346
  ),
@@ -187389,7 +187379,7 @@ const pGe = ({
187389
187379
  /* @__PURE__ */ F.jsxs(
187390
187380
  "div",
187391
187381
  {
187392
- className: Ve(
187382
+ className: qe(
187393
187383
  "items-center justify-end gap-2 pt-2",
187394
187384
  k || o ? "flex" : "hidden"
187395
187385
  ),
@@ -187441,7 +187431,7 @@ const pGe = ({
187441
187431
  "div",
187442
187432
  {
187443
187433
  ref: a,
187444
- className: Ve(
187434
+ className: qe(
187445
187435
  "comment-floating-comments relative shrink-0",
187446
187436
  o && "pointer-events-none"
187447
187437
  ),
@@ -187505,7 +187495,7 @@ const pGe = ({
187505
187495
  ), u = Dt(() => {
187506
187496
  const d = wE(e.textContent), p = e.id.replace(/-/g, "").substring(0, 8), h = `${d}-${p}`, f = new URL(globalThis.location.href), g = f.hash.startsWith("#") ? f.hash.substring(1) : f.hash, m = new URLSearchParams(g);
187507
187497
  return m.set("heading", h), f.hash = m.toString(), f.toString();
187508
- }, [e.id, e.textContent]), c = Dt(() => Ve(
187498
+ }, [e.id, e.textContent]), c = Dt(() => qe(
187509
187499
  `flex items-center transition-all text-body-sm-bold max-[1280px]:h-[32px] max-[1280px]:px-2 max-[1280px]:py-1 h-5 max-[1280px]:max-w-full ${r === "landscape" ? "xl:!max-w-[160px] min-[1750px]:!max-w-[240px]" : "xl:!max-w-[160px] min-[1410px]:!max-w-[240px] min-[1600px]:!max-w-[320px]"} xl:border-l-2`,
187510
187500
  e.isActive ? "color-border-active color-text-default max-[1280px]:border-none max-[1280px]:bg-[#F8F9FA] max-[1280px]:rounded max-[1280px]:text-[#363B3F]" : "color-text-secondary border-transparent lg:hover:!brightness-90"
187511
187501
  ), [e.isActive, r]);
@@ -187537,7 +187527,7 @@ const pGe = ({
187537
187527
  icon: i ? "Check" : "Clipboard",
187538
187528
  size: "sm",
187539
187529
  variant: "ghost",
187540
- className: Ve(
187530
+ className: qe(
187541
187531
  "!bg-transparent group-hover/toc-item:opacity-100 opacity-0 transition-all color-text-secondary active:scale-75",
187542
187532
  e.isActive ? "max-[1280px]:visible" : "max-[1280px]:invisible"
187543
187533
  ),
@@ -187834,7 +187824,7 @@ const wGe = [
187834
187824
  l.current = g;
187835
187825
  },
187836
187826
  variant: "ghost",
187837
- className: Ve(
187827
+ className: qe(
187838
187828
  "!min-w-[16px] !min-h-[16px] !w-[16px] !h-[16px] !p-0 flex items-center justify-center !hover:bg-transparent"
187839
187829
  ),
187840
187830
  onClick: (g) => {
@@ -187864,7 +187854,7 @@ const wGe = [
187864
187854
  },
187865
187855
  className: "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30px] border-radius-sm flex items-center",
187866
187856
  children: [
187867
- /* @__PURE__ */ F.jsx(Ue, { name: "Pencil", className: "w-[16px] h-[16px]" }),
187857
+ /* @__PURE__ */ F.jsx(Le, { name: "Pencil", className: "w-[16px] h-[16px]" }),
187868
187858
  /* @__PURE__ */ F.jsx("p", { className: "text-heading-xsm color-text-default", children: "Choose emoji" })
187869
187859
  ]
187870
187860
  }
@@ -187876,12 +187866,12 @@ const wGe = [
187876
187866
  onClick: () => {
187877
187867
  t(""), c(!1);
187878
187868
  },
187879
- className: Ve(
187869
+ className: qe(
187880
187870
  "space-xsm cursor-pointer min-w-[144px] gap-xsm hover:color-bg-default-hover border-radius-sm h-[30px] color-border-default flex items-center"
187881
187871
  ),
187882
187872
  children: [
187883
- /* @__PURE__ */ F.jsx(Ue, { name: "X", className: Ve("w-[16px] h-[16px]") }),
187884
- /* @__PURE__ */ F.jsx("p", { className: Ve("text-heading-xsm"), children: "Clear emoji" })
187873
+ /* @__PURE__ */ F.jsx(Le, { name: "X", className: qe("w-[16px] h-[16px]") }),
187874
+ /* @__PURE__ */ F.jsx("p", { className: qe("text-heading-xsm"), children: "Clear emoji" })
187885
187875
  ]
187886
187876
  }
187887
187877
  )
@@ -187899,7 +187889,7 @@ const wGe = [
187899
187889
  l.current = g;
187900
187890
  },
187901
187891
  children: /* @__PURE__ */ F.jsx(cn, { position: "top", text: "Choose emoji", children: /* @__PURE__ */ F.jsx(
187902
- Ue,
187892
+ Le,
187903
187893
  {
187904
187894
  onClick: () => {
187905
187895
  if (!o) {
@@ -187923,12 +187913,12 @@ const wGe = [
187923
187913
  ref: (g) => {
187924
187914
  a.current = g;
187925
187915
  },
187926
- className: Ve("fixed z-50"),
187916
+ className: qe("fixed z-50"),
187927
187917
  style: { top: d.top, left: d.left },
187928
187918
  children: /* @__PURE__ */ F.jsxs(
187929
187919
  kGe,
187930
187920
  {
187931
- className: Ve(
187921
+ className: qe(
187932
187922
  "color-bg-default rounded-lg border shadow-md",
187933
187923
  h ? "h-[287px]" : "h-[340px]"
187934
187924
  ),
@@ -187953,7 +187943,7 @@ function kGe({
187953
187943
  return /* @__PURE__ */ F.jsx(
187954
187944
  Hc.Root,
187955
187945
  {
187956
- className: Ve(
187946
+ className: qe(
187957
187947
  "bg-popover text-popover-foreground isolate flex h-full w-fit flex-col overflow-hidden rounded-md",
187958
187948
  e
187959
187949
  ),
@@ -187969,7 +187959,7 @@ function EGe({
187969
187959
  return /* @__PURE__ */ F.jsxs(
187970
187960
  "div",
187971
187961
  {
187972
- className: Ve("flex h-9 items-center gap-2 border-b px-3", e),
187962
+ className: qe("flex h-9 items-center gap-2 border-b px-3", e),
187973
187963
  "data-slot": "emoji-picker-search-wrapper",
187974
187964
  children: [
187975
187965
  /* @__PURE__ */ F.jsx(DGe, { className: "size-4 shrink-0 opacity-50" }),
@@ -188000,7 +187990,7 @@ function _Ge({
188000
187990
  "button",
188001
187991
  {
188002
187992
  ...n,
188003
- className: Ve(
187993
+ className: qe(
188004
187994
  "data-[active]:bg-accent flex size-7 items-center justify-center rounded-sm text-base",
188005
187995
  t
188006
187996
  ),
@@ -188030,7 +188020,7 @@ function SGe({
188030
188020
  return /* @__PURE__ */ F.jsxs(
188031
188021
  Hc.Viewport,
188032
188022
  {
188033
- className: Ve("outline-hidden relative flex-1", e),
188023
+ className: qe("outline-hidden relative flex-1", e),
188034
188024
  "data-slot": "emoji-picker-viewport",
188035
188025
  ...t,
188036
188026
  children: [
@@ -188073,7 +188063,7 @@ function TGe({
188073
188063
  return /* @__PURE__ */ F.jsx(
188074
188064
  "div",
188075
188065
  {
188076
- className: Ve(
188066
+ className: qe(
188077
188067
  "max-w-(--frimousse-viewport-width) flex w-full min-w-0 items-center gap-1 border-t p-2",
188078
188068
  e
188079
188069
  ),
@@ -188320,7 +188310,7 @@ const jGe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
188320
188310
  className: `
188321
188311
  flex items-center gap-[8px] px-[12px] py-[8px] w-[231px] h-[40px] rounded-[4px] color-bg-secondary shadow-elevation-3`,
188322
188312
  children: [
188323
- t ? /* @__PURE__ */ F.jsx("span", { className: " text-[16px] leading-[16px] w-[16px] flex items-center justify-center", children: t }) : /* @__PURE__ */ F.jsx(Ue, { name: "FileText", className: "w-[16px]" }),
188313
+ t ? /* @__PURE__ */ F.jsx("span", { className: " text-[16px] leading-[16px] w-[16px] flex items-center justify-center", children: t }) : /* @__PURE__ */ F.jsx(Le, { name: "FileText", className: "w-[16px]" }),
188324
188314
  /* @__PURE__ */ F.jsx("span", { className: "text-heading-xsm color-text-default truncate", children: e })
188325
188315
  ]
188326
188316
  }
@@ -188338,7 +188328,7 @@ const jGe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
188338
188328
  },
188339
188329
  children: [
188340
188330
  /* @__PURE__ */ F.jsx(
188341
- Ue,
188331
+ Le,
188342
188332
  {
188343
188333
  name: e.icon,
188344
188334
  stroke: e.iconStroke,
@@ -188379,7 +188369,7 @@ const jGe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
188379
188369
  {
188380
188370
  "data-testid": "tab-context-menu-trigger",
188381
188371
  className: "h-[24px] rounded-[4px] w-[24px] hover:color-bg-secondary-hover min-w-[24px] flex items-center justify-center",
188382
- children: /* @__PURE__ */ F.jsx(Ue, { name: "EllipsisVertical", className: "h-[16px] w-[16px]" })
188372
+ children: /* @__PURE__ */ F.jsx(Le, { name: "EllipsisVertical", className: "h-[16px] w-[16px]" })
188383
188373
  }
188384
188374
  ) }),
188385
188375
  /* @__PURE__ */ F.jsx(
@@ -188419,7 +188409,7 @@ const jGe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
188419
188409
  !d && !r && e();
188420
188410
  },
188421
188411
  hasCloseIcon: a,
188422
- className: Ve(
188412
+ className: qe(
188423
188413
  "gap-md !z-[70]",
188424
188414
  !c && "!w-[400px] border-radius-lg"
188425
188415
  ),
@@ -188447,7 +188437,7 @@ const jGe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
188447
188437
  disableOutsideClick: !0,
188448
188438
  title: /* @__PURE__ */ F.jsxs("div", { className: "flex items-center gap-sm", children: [
188449
188439
  !u && /* @__PURE__ */ F.jsx(
188450
- Ue,
188440
+ Le,
188451
188441
  {
188452
188442
  name: "Trash2",
188453
188443
  stroke: "#FB3449",
@@ -188589,7 +188579,7 @@ const jGe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
188589
188579
  ),
188590
188580
  children: [
188591
188581
  /* @__PURE__ */ F.jsx(
188592
- Ue,
188582
+ Le,
188593
188583
  {
188594
188584
  name: r ? "ChevronLeft" : "List",
188595
188585
  className: "!w-[16px]"
@@ -188912,7 +188902,7 @@ const jGe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
188912
188902
  children: [
188913
188903
  /* @__PURE__ */ F.jsx("h2", { className: "text-heading-xsm color-text-default", children: "Document tabs" }),
188914
188904
  /* @__PURE__ */ F.jsx(
188915
- Ue,
188905
+ Le,
188916
188906
  {
188917
188907
  "data-testid": "mobile-tab-close",
188918
188908
  onClick: () => y(!1),
@@ -189001,7 +188991,7 @@ const jGe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
189001
188991
  "h-[36px] w-[36px] flex items-center justify-center transition-opacity duration-200",
189002
188992
  j ? "cursor-pointer" : "opacity-40 cursor-not-allowed"
189003
188993
  ),
189004
- children: /* @__PURE__ */ F.jsx(Ue, { name: "ChevronLeft", className: "w-[20px] h-[20px]" })
188994
+ children: /* @__PURE__ */ F.jsx(Le, { name: "ChevronLeft", className: "w-[20px] h-[20px]" })
189005
188995
  }
189006
188996
  ),
189007
188997
  /* @__PURE__ */ F.jsxs(
@@ -189051,7 +189041,7 @@ const jGe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
189051
189041
  "h-[36px] w-[36px] flex items-center justify-center transition-opacity duration-200",
189052
189042
  B ? "cursor-pointer" : "opacity-40 cursor-not-allowed"
189053
189043
  ),
189054
- children: /* @__PURE__ */ F.jsx(Ue, { name: "ChevronRight", className: "w-[20px] h-[20px]" })
189044
+ children: /* @__PURE__ */ F.jsx(Le, { name: "ChevronRight", className: "w-[20px] h-[20px]" })
189055
189045
  }
189056
189046
  )
189057
189047
  ]
@@ -189175,7 +189165,7 @@ const jGe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
189175
189165
  hasCloseIcon: !0,
189176
189166
  content: /* @__PURE__ */ F.jsxs(F.Fragment, { children: [
189177
189167
  /* @__PURE__ */ F.jsx("div", { className: "flex justify-between items-center p-4", children: /* @__PURE__ */ F.jsx("h2", { className: "text-heading-sm-bold", children: "Document outline" }) }),
189178
- /* @__PURE__ */ F.jsx("div", { className: Ve("table-of-contents px-4"), children: /* @__PURE__ */ F.jsx(
189168
+ /* @__PURE__ */ F.jsx("div", { className: qe("table-of-contents px-4"), children: /* @__PURE__ */ F.jsx(
189179
189169
  cx,
189180
189170
  {
189181
189171
  editor: e,
@@ -189190,7 +189180,7 @@ const jGe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
189190
189180
  ) : /* @__PURE__ */ F.jsxs(
189191
189181
  "div",
189192
189182
  {
189193
- className: Ve(
189183
+ className: qe(
189194
189184
  "flex flex-col gap-4 items-start px-3 justify-start z-20",
189195
189185
  (!t || l) && "hidden"
189196
189186
  ),
@@ -189215,7 +189205,7 @@ const jGe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
189215
189205
  /* @__PURE__ */ F.jsx(
189216
189206
  "div",
189217
189207
  {
189218
- className: Ve(
189208
+ className: qe(
189219
189209
  "table-of-contents animate-in fade-in slide-in-from-left-5",
189220
189210
  o ? "block" : "hidden"
189221
189211
  ),
@@ -189323,7 +189313,7 @@ const jGe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
189323
189313
  orientation: a
189324
189314
  }
189325
189315
  );
189326
- }, UGe = "h-6 bg-gradient-to-r [--from:210,_17%,_98%,_1] [--to:0,_0%,_93%,_1] dark:[--from:0,0%,16%,1] dark:[--to:0,0%,12%,1] from-[hsl(var(--from))] to-[hsl(var(--to))]", Hi = ({ className: e }) => /* @__PURE__ */ F.jsx("div", { className: Ve(UGe, e) }), tte = () => /* @__PURE__ */ F.jsx("div", { className: "flex flex-col gap-8", children: /* @__PURE__ */ F.jsxs(
189316
+ }, UGe = "h-6 bg-gradient-to-r [--from:210,_17%,_98%,_1] [--to:0,_0%,_93%,_1] dark:[--from:0,0%,16%,1] dark:[--to:0,0%,12%,1] from-[hsl(var(--from))] to-[hsl(var(--to))]", Hi = ({ className: e }) => /* @__PURE__ */ F.jsx("div", { className: qe(UGe, e) }), tte = () => /* @__PURE__ */ F.jsx("div", { className: "flex flex-col gap-8", children: /* @__PURE__ */ F.jsxs(
189327
189317
  tne,
189328
189318
  {
189329
189319
  transition: {
@@ -189448,7 +189438,7 @@ const jGe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
189448
189438
  onClick: () => l(e),
189449
189439
  ref: (u) => n.current[0] = u,
189450
189440
  children: [
189451
- /* @__PURE__ */ F.jsx(Ue, { name: "GalleryVertical", className: "size-4 mr-2" }),
189441
+ /* @__PURE__ */ F.jsx(Le, { name: "GalleryVertical", className: "size-4 mr-2" }),
189452
189442
  /* @__PURE__ */ F.jsx("span", { className: "mr-4", children: "Embed Tweet" }),
189453
189443
  /* @__PURE__ */ F.jsx("span", { className: "text-helper-sm text-xs color-text-secondary ml-auto", children: "⮐" })
189454
189444
  ]
@@ -189462,7 +189452,7 @@ const jGe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
189462
189452
  onClick: i,
189463
189453
  ref: (u) => n.current[1] = u,
189464
189454
  children: [
189465
- /* @__PURE__ */ F.jsx(Ue, { name: "Link", className: "size-4 mr-2" }),
189455
+ /* @__PURE__ */ F.jsx(Le, { name: "Link", className: "size-4 mr-2" }),
189466
189456
  /* @__PURE__ */ F.jsx("span", { className: "mr-4", children: "URL" }),
189467
189457
  /* @__PURE__ */ F.jsx("span", { className: "text-helper-sm text-xs color-text-secondary ml-auto", children: "Esc" })
189468
189458
  ]
@@ -189561,7 +189551,7 @@ const jGe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
189561
189551
  },
189562
189552
  children: [
189563
189553
  /* @__PURE__ */ F.jsx("span", { className: "text-body-sm-bold line-clamp-1 w-fit", children: ((a = Yb.find((l) => l.value === n)) == null ? void 0 : a.title) || "100%" }),
189564
- /* @__PURE__ */ F.jsx(Ue, { name: "ChevronDown", size: "sm" })
189554
+ /* @__PURE__ */ F.jsx(Le, { name: "ChevronDown", size: "sm" })
189565
189555
  ]
189566
189556
  }
189567
189557
  ),
@@ -189689,17 +189679,17 @@ const jGe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
189689
189679
  onCopyHeadingLink: lt,
189690
189680
  tabConfig: it,
189691
189681
  footerHeight: Xe,
189692
- ipfsImageFetchFn: qe,
189693
- fetchV1ImageFn: vt,
189694
- activeModel: Le,
189695
- maxTokens: Ye,
189682
+ ipfsImageFetchFn: Ve,
189683
+ fetchV1ImageFn: Ft,
189684
+ activeModel: Ue,
189685
+ maxTokens: Je,
189696
189686
  isAIAgentEnabled: ht,
189697
189687
  // Document styling object
189698
189688
  documentStyling: st,
189699
189689
  ...St
189700
- }, Ft) => {
189690
+ }, vt) => {
189701
189691
  var F_;
189702
- const { isFocusMode: Je, toggleFocusMode: Bt } = $Ge({
189692
+ const { isFocusMode: Ze, toggleFocusMode: Bt } = $Ge({
189703
189693
  onFocusMode: (pt) => {
189704
189694
  M && (ie == null || ie(!1)), z == null || z(pt);
189705
189695
  }
@@ -189765,8 +189755,8 @@ const jGe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
189765
189755
  commentAnchorsRef: gte
189766
189756
  } = Uee({
189767
189757
  documentStyling: st,
189768
- ipfsImageFetchFn: qe,
189769
- fetchV1ImageFn: vt,
189758
+ ipfsImageFetchFn: Ve,
189759
+ fetchV1ImageFn: Ft,
189770
189760
  enableIndexeddbSync: T,
189771
189761
  ddocId: _,
189772
189762
  isPreviewMode: e,
@@ -189801,11 +189791,11 @@ const jGe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
189801
189791
  metadataProxyUrl: xt,
189802
189792
  extensions: bt,
189803
189793
  disableInlineComment: Oe,
189804
- isFocusMode: Je,
189794
+ isFocusMode: Ze,
189805
189795
  onCopyHeadingLink: lt,
189806
189796
  isConnected: pe,
189807
- activeModel: Le,
189808
- maxTokens: Ye,
189797
+ activeModel: Ue,
189798
+ maxTokens: Je,
189809
189799
  isAIAgentEnabled: ht,
189810
189800
  isDDocOwner: Se,
189811
189801
  tabConfig: it,
@@ -189818,7 +189808,7 @@ const jGe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
189818
189808
  [Ff, Dc]
189819
189809
  );
189820
189810
  HR(
189821
- Ft,
189811
+ vt,
189822
189812
  () => ({
189823
189813
  getEditor: () => Ct,
189824
189814
  getYdoc: () => Ha,
@@ -189933,9 +189923,9 @@ const jGe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
189933
189923
  return pt[mn] = (pt[mn] || 0) + 1, pt;
189934
189924
  },
189935
189925
  {}
189936
- ), [ae]), m_ = (st == null ? void 0 : st.orientation) === "landscape", b_ = m_ ? 1190 : 850, nm = Number(N), rm = b_ * nm, Iv = (Dc.length > 0 || h_.length > 0 && !((F_ = St.versionHistoryState) != null && F_.enabled)) && (!Je || he), y_ = typeof window < "u" ? window.innerWidth : 0, x_ = rm + 148 * 2 > y_, vte = y_ - (Iv ? 148 : 0), Fte = rm > vte, v_ = je(null), wte = (pt) => {
189926
+ ), [ae]), m_ = (st == null ? void 0 : st.orientation) === "landscape", b_ = m_ ? 1190 : 850, nm = Number(N), rm = b_ * nm, Iv = (Dc.length > 0 || h_.length > 0 && !((F_ = St.versionHistoryState) != null && F_.enabled)) && (!Ze || he), y_ = typeof window < "u" ? window.innerWidth : 0, x_ = rm + 148 * 2 > y_, vte = y_ - (Iv ? 148 : 0), Fte = rm > vte, v_ = je(null), wte = (pt) => {
189937
189927
  var kc;
189938
- if (!Je || !Ct || pt.button !== 0) return;
189928
+ if (!Ze || !Ct || pt.button !== 0) return;
189939
189929
  const zt = pt.target;
189940
189930
  (kc = v_.current) != null && kc.contains(zt) || zt.closest(
189941
189931
  '[data-radix-dialog-content], [role="dialog"], [data-modal], [data-overlay]'
@@ -189943,7 +189933,7 @@ const jGe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
189943
189933
  "[data-radix-popper-content-wrapper], [data-floating-ui-portal]"
189944
189934
  ) || (pt.preventDefault(), Ct.commands.focus("end", { scrollIntoView: !1 }));
189945
189935
  }, Dte = () => /* @__PURE__ */ F.jsx(Vh, { children: /* @__PURE__ */ F.jsxs(F.Fragment, { children: [
189946
- Je && /* @__PURE__ */ F.jsx(
189936
+ Ze && /* @__PURE__ */ F.jsx(
189947
189937
  HGe,
189948
189938
  {
189949
189939
  dropdownOpen: bi,
@@ -189962,9 +189952,9 @@ const jGe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
189962
189952
  className: tt(
189963
189953
  "z-[45] hidden mobile:flex items-center justify-center w-full h-[52px] fixed left-0 color-bg-default border-b color-border-default transition-all duration-300 top-[3.5rem]",
189964
189954
  {
189965
- "translate-y-0 opacity-100": !Je && R,
189966
- "translate-y-[-108%] opacity-100": !Je && !R,
189967
- "translate-y-[-108%] opacity-0 pointer-events-none": Je
189955
+ "translate-y-0 opacity-100": !Ze && R,
189956
+ "translate-y-[-108%] opacity-100": !Ze && !R,
189957
+ "translate-y-[-108%] opacity-0 pointer-events-none": Ze
189968
189958
  }
189969
189959
  ),
189970
189960
  children: /* @__PURE__ */ F.jsx("div", { className: "justify-center items-center grow relative color-text-default", children: /* @__PURE__ */ F.jsx(
@@ -189985,8 +189975,8 @@ const jGe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
189985
189975
  onOdtExport: ee,
189986
189976
  onDocxImport: Y,
189987
189977
  isLoading: !Ct || wc,
189988
- ipfsImageFetchFn: qe,
189989
- fetchV1ImageFn: vt,
189978
+ ipfsImageFetchFn: Ve,
189979
+ fetchV1ImageFn: Ft,
189990
189980
  isConnected: pe,
189991
189981
  tabs: Dc,
189992
189982
  ydoc: Ha,
@@ -190015,9 +190005,9 @@ const jGe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
190015
190005
  onHtmlExport: te,
190016
190006
  onTxtExport: J,
190017
190007
  onOdtExport: ee,
190018
- ipfsImageFetchFn: qe,
190008
+ ipfsImageFetchFn: Ve,
190019
190009
  onDocxImport: Y,
190020
- fetchV1ImageFn: vt,
190010
+ fetchV1ImageFn: Ft,
190021
190011
  isConnected: pe
190022
190012
  }
190023
190013
  ),
@@ -190038,9 +190028,9 @@ const jGe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
190038
190028
  setSlides: ste,
190039
190029
  renderThemeToggle: He,
190040
190030
  isContentLoading: wc,
190041
- ipfsImageFetchFn: qe,
190031
+ ipfsImageFetchFn: Ve,
190042
190032
  documentStyling: st,
190043
- fetchV1ImageFn: vt,
190033
+ fetchV1ImageFn: Ft,
190044
190034
  theme: oe ?? "light"
190045
190035
  }
190046
190036
  ),
@@ -190051,14 +190041,14 @@ const jGe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
190051
190041
  "editor-left-rail",
190052
190042
  Iv && "editor-left-rail-has-outline",
190053
190043
  !Gs && "flex-[1_1_263px]",
190054
- !e && !Je && R && "-mt-[1.5rem] md:!mt-[0.8rem]",
190044
+ !e && !Ze && R && "-mt-[1.5rem] md:!mt-[0.8rem]",
190055
190045
  e && "md:!mt-[1rem]",
190056
- { "md:!mt-[0.7rem]": !e && !Je },
190046
+ { "md:!mt-[0.7rem]": !e && !Ze },
190057
190047
  {
190058
190048
  "-mt-[1.5rem] md:!mt-[0.7rem]": !R && !e
190059
190049
  },
190060
- Je && "mt-[48px]",
190061
- Je && !he && x_ && "hidden"
190050
+ Ze && "mt-[48px]",
190051
+ Ze && !he && x_ && "hidden"
190062
190052
  ),
190063
190053
  children: Ct && Iv && /* @__PURE__ */ F.jsx(
190064
190054
  ete,
@@ -190084,7 +190074,7 @@ const jGe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
190084
190074
  tabCommentCounts: xte,
190085
190075
  tabConfig: it,
190086
190076
  isConnected: pe,
190087
- isFocusMode: Je
190077
+ isFocusMode: Ze
190088
190078
  }
190089
190079
  )
190090
190080
  }
@@ -190116,7 +190106,7 @@ const jGe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
190116
190106
  ),
190117
190107
  "data-zoom-below-100": nm < 1 ? "true" : "false",
190118
190108
  style: {
190119
- minHeight: Je ? "100vh" : `calc(100dvh - 108px - ${Xe || "0px"})`
190109
+ minHeight: Ze ? "100vh" : `calc(100dvh - 108px - ${Xe || "0px"})`
190120
190110
  },
190121
190111
  children: /* @__PURE__ */ F.jsxs(
190122
190112
  "div",
@@ -190136,14 +190126,14 @@ const jGe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
190136
190126
  ref: cr,
190137
190127
  className: tt(
190138
190128
  "w-full flex-grow min-w-0 no-scrollbar rounded transition-all mx-auto duration-300 ease-in-out",
190139
- !(st != null && st.canvasBackground) && !Je && "color-bg-default",
190140
- !e && !Je && (R ? "-mt-[1.5rem] md:!mt-[0.8rem] pt-0 md:pt-[5rem]" : "pt-0 md:pt-[1.5rem]"),
190129
+ !(st != null && st.canvasBackground) && !Ze && "color-bg-default",
190130
+ !e && !Ze && (R ? "-mt-[1.5rem] md:!mt-[0.8rem] pt-0 md:pt-[5rem]" : "pt-0 md:pt-[1.5rem]"),
190141
190131
  e && "md:!mt-[1rem] pt-0 md:!pt-[5rem]",
190142
- { "md:!mt-[0.7rem]": !e && !Je },
190132
+ { "md:!mt-[0.7rem]": !e && !Ze },
190143
190133
  {
190144
190134
  "-mt-[1.5rem] md:!mt-[0.7rem]": !R && !e
190145
190135
  },
190146
- Je && "mt-[48px]"
190136
+ Ze && "mt-[48px]"
190147
190137
  ),
190148
190138
  style: {
190149
190139
  ...Gs ? {} : {
@@ -190152,12 +190142,12 @@ const jGe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
190152
190142
  },
190153
190143
  flexShrink: 0,
190154
190144
  minHeight: "100%",
190155
- ...Je ? {} : Ot() || {}
190145
+ ...Ze ? {} : Ot() || {}
190156
190146
  },
190157
190147
  children: [
190158
190148
  Gs && e && /* @__PURE__ */ F.jsxs("p", { className: "text-center color-text-secondary text-helper-text-sm flex gap-2 items-center justify-center mt-3", children: [
190159
190149
  /* @__PURE__ */ F.jsx(
190160
- Ue,
190150
+ Le,
190161
190151
  {
190162
190152
  name: "LockKeyhole",
190163
190153
  className: "w-[14px] h-[14px]"
@@ -190173,7 +190163,7 @@ const jGe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
190173
190163
  "w-full pt-8 md:pt-0",
190174
190164
  { "custom-ios-padding": Pe },
190175
190165
  {
190176
- "color-bg-default": !(st != null && st.canvasBackground) && (N === "1.4" || N === "1.5") && !Je
190166
+ "color-bg-default": !(st != null && st.canvasBackground) && (N === "1.4" || N === "1.5") && !Ze
190177
190167
  },
190178
190168
  e && "pt-3"
190179
190169
  ),
@@ -190203,8 +190193,8 @@ const jGe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
190203
190193
  setCommentDrawerOpen: ie,
190204
190194
  activeCommentId: tm,
190205
190195
  isCollabDocumentPublished: Be,
190206
- ipfsImageFetchFn: qe,
190207
- fetchV1ImageFn: vt,
190196
+ ipfsImageFetchFn: Ve,
190197
+ fetchV1ImageFn: Ft,
190208
190198
  ipfsImageUploadFn: f,
190209
190199
  enableCollaboration: n == null ? void 0 : n.enabled,
190210
190200
  isCollabDocOwner: n != null && n.enabled ? n.connection.isOwner : !0
@@ -190249,7 +190239,7 @@ const jGe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
190249
190239
  "flex flex-wrap px-4 md:px-8 lg:px-[80px] mb-8 items-center gap-1 mt-4 lg:!mt-0",
190250
190240
  { "pt-12": e }
190251
190241
  ),
190252
- ...!Je && Ot() && {
190242
+ ...!Ze && Ot() && {
190253
190243
  style: Ot()
190254
190244
  },
190255
190245
  children: [
@@ -190325,7 +190315,7 @@ const jGe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
190325
190315
  className: tt(
190326
190316
  "w-full h-auto",
190327
190317
  e && "preview-mode",
190328
- Le !== void 0 && ht && "has-available-models",
190318
+ Ue !== void 0 && ht && "has-available-models",
190329
190319
  Oe && "hide-inline-comments"
190330
190320
  )
190331
190321
  }
@@ -190341,7 +190331,7 @@ const jGe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
190341
190331
  ]
190342
190332
  }
190343
190333
  ),
190344
- Ct && !Je && /* @__PURE__ */ F.jsx("div", { className: "comment-floating-slot absolute left-full top-0 ml-[12px] overflow-visible", children: /* @__PURE__ */ F.jsx(
190334
+ Ct && !Ze && /* @__PURE__ */ F.jsx("div", { className: "comment-floating-slot absolute left-full top-0 ml-[12px] overflow-visible", children: /* @__PURE__ */ F.jsx(
190345
190335
  mGe,
190346
190336
  {
190347
190337
  editor: Ct,
@@ -190365,14 +190355,14 @@ const jGe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
190365
190355
  className: tt(
190366
190356
  "editor-right-rail",
190367
190357
  !Gs && "flex-[1_1_263px]",
190368
- !e && !Je && R && "-mt-[1.5rem] md:!mt-[0.8rem]",
190358
+ !e && !Ze && R && "-mt-[1.5rem] md:!mt-[0.8rem]",
190369
190359
  e && "md:!mt-[1rem]",
190370
- { "md:!mt-[0.7rem]": !e && !Je },
190360
+ { "md:!mt-[0.7rem]": !e && !Ze },
190371
190361
  {
190372
190362
  "-mt-[1.5rem] md:!mt-[0.7rem]": !R && !e
190373
190363
  },
190374
- Je && "mt-[48px]",
190375
- Je && !he && x_ && "hidden"
190364
+ Ze && "mt-[48px]",
190365
+ Ze && !he && x_ && "hidden"
190376
190366
  )
190377
190367
  }
190378
190368
  )
@@ -190390,7 +190380,7 @@ const jGe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
190390
190380
  className: tt(
190391
190381
  "absolute w-12 h-12 color-bg-default rounded-full shadow-xl top-[70px] right-[-23px]"
190392
190382
  ),
190393
- children: /* @__PURE__ */ F.jsx(Ue, { name: "MessageSquareText", size: "sm" })
190383
+ children: /* @__PURE__ */ F.jsx(Le, { name: "MessageSquareText", size: "sm" })
190394
190384
  }
190395
190385
  ),
190396
190386
  !e && !g && /* @__PURE__ */ F.jsx(
@@ -190411,8 +190401,8 @@ const jGe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
190411
190401
  setIsNavbarVisible: P,
190412
190402
  ipfsImageUploadFn: f,
190413
190403
  isLoading: !Ct || wc,
190414
- ipfsImageFetchFn: qe,
190415
- fetchV1ImageFn: vt
190404
+ ipfsImageFetchFn: Ve,
190405
+ fetchV1ImageFn: Ft
190416
190406
  }
190417
190407
  )
190418
190408
  }
@@ -190432,7 +190422,7 @@ const jGe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
190432
190422
  isCollaborationEnabled: (n == null ? void 0 : n.enabled) || !1
190433
190423
  }
190434
190424
  ),
190435
- /* @__PURE__ */ F.jsx("div", { children: Ct && ot && !Je && /* @__PURE__ */ F.jsx(
190425
+ /* @__PURE__ */ F.jsx("div", { children: Ct && ot && !Ze && /* @__PURE__ */ F.jsx(
190436
190426
  $Ke,
190437
190427
  {
190438
190428
  editor: Ct,
@@ -190448,7 +190438,7 @@ const jGe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
190448
190438
  {
190449
190439
  documentStyling: st,
190450
190440
  theme: oe ?? "light",
190451
- isFocusMode: Je,
190441
+ isFocusMode: Ze,
190452
190442
  children: /* @__PURE__ */ F.jsx(
190453
190443
  "div",
190454
190444
  {
@@ -190457,7 +190447,7 @@ const jGe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
190457
190447
  j ? "color-bg-default" : "color-bg-secondary"
190458
190448
  ),
190459
190449
  style: {
190460
- height: Je ? "100vh" : e ? `calc(100dvh - 52px - ${Xe || "0px"})` : R ? `calc(100dvh - 108px - ${Xe || "0px"})` : `calc(100dvh - 52px - ${Xe || "0px"})`
190450
+ height: Ze ? "100vh" : e ? `calc(100dvh - 52px - ${Xe || "0px"})` : R ? `calc(100dvh - 108px - ${Xe || "0px"})` : `calc(100dvh - 52px - ${Xe || "0px"})`
190461
190451
  },
190462
190452
  children: /* @__PURE__ */ F.jsxs(
190463
190453
  "div",
@@ -190466,12 +190456,12 @@ const jGe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
190466
190456
  onMouseDown: wte,
190467
190457
  className: tt(
190468
190458
  "h-[100%] flex w-full overflow-auto relative",
190469
- !e && !Je && (R ? "mt-[6.7rem]" : "mt-[3.3rem]"),
190470
- e && !Je && "mt-[3.5rem]",
190459
+ !e && !Ze && (R ? "mt-[6.7rem]" : "mt-[3.3rem]"),
190460
+ e && !Ze && "mt-[3.5rem]",
190471
190461
  j ? "color-bg-default" : "color-bg-secondary",
190472
190462
  Q
190473
190463
  ),
190474
- style: Je ? void 0 : Qt(),
190464
+ style: Ze ? void 0 : Qt(),
190475
190465
  children: [
190476
190466
  /* @__PURE__ */ F.jsx(
190477
190467
  "nav",
@@ -190480,8 +190470,8 @@ const jGe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
190480
190470
  className: tt(
190481
190471
  "h-14 color-bg-default py-2 px-0 md:px-4 flex gap-2 items-center justify-between w-screen fixed left-0 top-0 border-b color-border-default z-[45] transition-all duration-300",
190482
190472
  {
190483
- "translate-y-0 opacity-100": !Je && R && !j,
190484
- "translate-y-[-100%] opacity-0 pointer-events-none": Je || !R || j
190473
+ "translate-y-0 opacity-100": !Ze && R && !j,
190474
+ "translate-y-[-100%] opacity-0 pointer-events-none": Ze || !R || j
190485
190475
  }
190486
190476
  ),
190487
190477
  children: Ct && (i == null ? void 0 : i({ editor: Ct.getJSON() }))
@@ -190492,7 +190482,7 @@ const jGe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
190492
190482
  {
190493
190483
  editor: Ct ?? null,
190494
190484
  ydoc: Ha,
190495
- isFocusMode: Je,
190485
+ isFocusMode: Ze,
190496
190486
  username: r,
190497
190487
  setUsername: o,
190498
190488
  activeCommentId: tm,
@@ -190659,7 +190649,7 @@ const jGe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
190659
190649
  }
190660
190650
  ),
190661
190651
  !$ || z || D ? jo(
190662
- /* @__PURE__ */ F.jsxs("div", { className: Ve(`${J ? "mx-10 mt-10" : "mx-20"}`), children: [
190652
+ /* @__PURE__ */ F.jsxs("div", { className: qe(`${J ? "mx-10 mt-10" : "mx-20"}`), children: [
190663
190653
  /* @__PURE__ */ F.jsx(
190664
190654
  Dr,
190665
190655
  {
@@ -190679,7 +190669,7 @@ const jGe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
190679
190669
  "div",
190680
190670
  {
190681
190671
  ref: H,
190682
- className: Ve("overflow-x-hidden", b),
190672
+ className: qe("overflow-x-hidden", b),
190683
190673
  children: /* @__PURE__ */ F.jsxs(
190684
190674
  Q9,
190685
190675
  {
@@ -190753,7 +190743,7 @@ const jGe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
190753
190743
  {
190754
190744
  editor: $,
190755
190745
  id: "editor",
190756
- className: Ve("w-full h-auto py-8", w)
190746
+ className: qe("w-full h-auto py-8", w)
190757
190747
  }
190758
190748
  )
190759
190749
  ]