@fileverse-dev/ddoc 7.2.1 → 7.2.2

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.
@@ -5,7 +5,7 @@ import { v4 as lo } from "uuid";
5
5
  import nt, { useContext as Or, useState as pe, useLayoutEffect as sb, useEffect as re, useDebugValue as ib, createContext as yo, createRef as BC, memo as $C, createElement as FC, version as Vp, useRef as Oe, forwardRef as vn, useCallback as Xe, useSyncExternalStore as gl, useMemo as kt, Fragment as ab, Component as zC, cloneElement as lb, useId as HC, useReducer as jC } from "react";
6
6
  import VC, { flushSync as UC, createPortal as WC } from "react-dom";
7
7
  import { jsx as w, jsxs as z, Fragment as on } from "react/jsx-runtime";
8
- import { toast as zd, Drawer as qC, DrawerContent as KC, DrawerHeader as GC, DrawerTitle as YC, DrawerClose as JC, IconButton as dn, DropdownMenu as Hd, DropdownMenuTrigger as jd, LucideIcon as ge, DropdownMenuContent as Vd, DropdownMenuItem as Bs, Button as Qn, TextField as cb, useTheme as ub, Tooltip as Wn, Skeleton as db, Divider as XC, cn as Gt, Select as Up, SelectTrigger as Wp, SelectValue as QC, SelectContent as qp, SelectGroup as ZC, SelectLabel as e1, SelectItem as Kp, Toggle as t1 } from "@fileverse/ui";
8
+ import { toast as zd, Drawer as qC, DrawerContent as KC, DrawerHeader as GC, DrawerTitle as YC, DrawerClose as JC, IconButton as dn, DropdownMenu as Hd, DropdownMenuTrigger as jd, LucideIcon as ge, DropdownMenuContent as Vd, DropdownMenuItem as $s, Button as Qn, TextField as cb, useTheme as ub, Tooltip as Wn, Skeleton as db, Divider as XC, cn as Gt, Select as Up, SelectTrigger as Wp, SelectValue as QC, SelectContent as qp, SelectGroup as ZC, SelectLabel as e1, SelectItem as Kp, Toggle as t1 } from "@fileverse/ui";
9
9
  import ce from "classnames";
10
10
  import { fromByteArray as n1, toByteArray as yl } from "base64-js";
11
11
  import * as j from "yjs";
@@ -518,15 +518,15 @@ class _ {
518
518
  */
519
519
  findIndex(e) {
520
520
  if (e == 0)
521
- return ki(0, e);
521
+ return Ci(0, e);
522
522
  if (e == this.size)
523
- return ki(this.content.length, e);
523
+ return Ci(this.content.length, e);
524
524
  if (e > this.size || e < 0)
525
525
  throw new RangeError(`Position ${e} outside of fragment (${this})`);
526
526
  for (let n = 0, r = 0; ; n++) {
527
527
  let o = this.child(n), s = r + o.nodeSize;
528
528
  if (s >= e)
529
- return s == e ? ki(n + 1, s) : ki(n, r);
529
+ return s == e ? Ci(n + 1, s) : Ci(n, r);
530
530
  r = s;
531
531
  }
532
532
  }
@@ -592,7 +592,7 @@ class _ {
592
592
  }
593
593
  _.empty = new _([], 0);
594
594
  const sc = { index: 0, offset: 0 };
595
- function ki(t, e) {
595
+ function Ci(t, e) {
596
596
  return sc.index = t, sc.offset = e, sc;
597
597
  }
598
598
  function la(t, e) {
@@ -860,7 +860,7 @@ function Qr(t, e) {
860
860
  let n = e.length - 1;
861
861
  n >= 0 && t.isText && t.sameMarkup(e[n]) ? e[n] = t.withText(e[n].text + t.text) : e.push(t);
862
862
  }
863
- function xs(t, e, n, r) {
863
+ function ks(t, e, n, r) {
864
864
  let o = (e || t).node(n), s = 0, i = e ? e.index(n) : o.childCount;
865
865
  t && (s = t.index(n), t.depth > n ? s++ : t.textOffset && (Qr(t.nodeAfter, r), s++));
866
866
  for (let a = s; a < i; a++)
@@ -872,15 +872,15 @@ function Zr(t, e) {
872
872
  }
873
873
  function Cb(t, e, n, r, o) {
874
874
  let s = t.depth > o && hu(t, e, o + 1), i = r.depth > o && hu(n, r, o + 1), a = [];
875
- return xs(null, t, o, a), s && i && e.index(o) == n.index(o) ? (kb(s, i), Qr(Zr(s, Cb(t, e, n, r, o + 1)), a)) : (s && Qr(Zr(s, ua(t, e, o + 1)), a), xs(e, n, o, a), i && Qr(Zr(i, ua(n, r, o + 1)), a)), xs(r, null, o, a), new _(a);
875
+ return ks(null, t, o, a), s && i && e.index(o) == n.index(o) ? (kb(s, i), Qr(Zr(s, Cb(t, e, n, r, o + 1)), a)) : (s && Qr(Zr(s, ua(t, e, o + 1)), a), ks(e, n, o, a), i && Qr(Zr(i, ua(n, r, o + 1)), a)), ks(r, null, o, a), new _(a);
876
876
  }
877
877
  function ua(t, e, n) {
878
878
  let r = [];
879
- if (xs(null, t, n, r), t.depth > n) {
879
+ if (ks(null, t, n, r), t.depth > n) {
880
880
  let o = hu(t, e, n + 1);
881
881
  Qr(Zr(o, ua(t, e, n + 1)), r);
882
882
  }
883
- return xs(e, null, n, r), new _(r);
883
+ return ks(e, null, n, r), new _(r);
884
884
  }
885
885
  function j1(t, e) {
886
886
  let n = e.depth - t.openStart, o = e.node(n).copy(t.content);
@@ -891,7 +891,7 @@ function j1(t, e) {
891
891
  end: o.resolveNoCache(o.content.size - t.openEnd - n)
892
892
  };
893
893
  }
894
- class $s {
894
+ class Fs {
895
895
  /**
896
896
  @internal
897
897
  */
@@ -1076,7 +1076,7 @@ class $s {
1076
1076
  return e.blockRange(this);
1077
1077
  for (let r = this.depth - (this.parent.inlineContent || this.pos == e.pos ? 1 : 0); r >= 0; r--)
1078
1078
  if (e.pos <= this.end(r) && (!n || n(this.node(r))))
1079
- return new Fs(this, e, r);
1079
+ return new zs(this, e, r);
1080
1080
  return null;
1081
1081
  }
1082
1082
  /**
@@ -1119,7 +1119,7 @@ class $s {
1119
1119
  break;
1120
1120
  s = c - 1, o += l + 1;
1121
1121
  }
1122
- return new $s(n, r, s);
1122
+ return new Fs(n, r, s);
1123
1123
  }
1124
1124
  /**
1125
1125
  @internal
@@ -1134,7 +1134,7 @@ class $s {
1134
1134
  }
1135
1135
  else
1136
1136
  eh.set(e, r = new V1());
1137
- let o = r.elts[r.i] = $s.resolve(e, n);
1137
+ let o = r.elts[r.i] = Fs.resolve(e, n);
1138
1138
  return r.i = (r.i + 1) % U1, o;
1139
1139
  }
1140
1140
  }
@@ -1144,7 +1144,7 @@ class V1 {
1144
1144
  }
1145
1145
  }
1146
1146
  const U1 = 12, eh = /* @__PURE__ */ new WeakMap();
1147
- class Fs {
1147
+ class zs {
1148
1148
  /**
1149
1149
  Construct a node range. `$from` and `$to` should point into the
1150
1150
  same node until at least the given `depth`, since a node range
@@ -1389,13 +1389,13 @@ let Zn = class mu {
1389
1389
  [object](https://prosemirror.net/docs/ref/#model.ResolvedPos) with information about its context.
1390
1390
  */
1391
1391
  resolve(e) {
1392
- return $s.resolveCached(this, e);
1392
+ return Fs.resolveCached(this, e);
1393
1393
  }
1394
1394
  /**
1395
1395
  @internal
1396
1396
  */
1397
1397
  resolveNoCache(e) {
1398
- return $s.resolve(this, e);
1398
+ return Fs.resolve(this, e);
1399
1399
  }
1400
1400
  /**
1401
1401
  Test whether a given mark or mark type occurs in this document
@@ -2478,13 +2478,13 @@ const Ib = {
2478
2478
  script: !0,
2479
2479
  style: !0,
2480
2480
  title: !0
2481
- }, Rb = { ol: !0, ul: !0 }, zs = 1, yu = 2, ks = 4;
2481
+ }, Rb = { ol: !0, ul: !0 }, Hs = 1, yu = 2, Cs = 4;
2482
2482
  function sh(t, e, n) {
2483
- return e != null ? (e ? zs : 0) | (e === "full" ? yu : 0) : t && t.whitespace == "pre" ? zs | yu : n & ~ks;
2483
+ return e != null ? (e ? Hs : 0) | (e === "full" ? yu : 0) : t && t.whitespace == "pre" ? Hs | yu : n & ~Cs;
2484
2484
  }
2485
- class Ci {
2485
+ class Si {
2486
2486
  constructor(e, n, r, o, s, i) {
2487
- this.type = e, this.attrs = n, this.marks = r, this.solid = o, this.options = i, this.content = [], this.activeMarks = De.none, this.match = s || (i & ks ? null : e.contentMatch);
2487
+ this.type = e, this.attrs = n, this.marks = r, this.solid = o, this.options = i, this.content = [], this.activeMarks = De.none, this.match = s || (i & Cs ? null : e.contentMatch);
2488
2488
  }
2489
2489
  findWrapping(e) {
2490
2490
  if (!this.match) {
@@ -2501,7 +2501,7 @@ class Ci {
2501
2501
  return this.match.findWrapping(e.type);
2502
2502
  }
2503
2503
  finish(e) {
2504
- if (!(this.options & zs)) {
2504
+ if (!(this.options & Hs)) {
2505
2505
  let r = this.content[this.content.length - 1], o;
2506
2506
  if (r && r.isText && (o = /[ \t\r\n\u000c]+$/.exec(r.text))) {
2507
2507
  let s = r;
@@ -2518,8 +2518,8 @@ class Ci {
2518
2518
  class ih {
2519
2519
  constructor(e, n, r) {
2520
2520
  this.parser = e, this.options = n, this.isOpen = r, this.open = 0, this.localPreserveWS = !1;
2521
- let o = n.topNode, s, i = sh(null, n.preserveWhitespace, 0) | (r ? ks : 0);
2522
- o ? s = new Ci(o.type, o.attrs, De.none, !0, n.topMatch || o.type.contentMatch, i) : r ? s = new Ci(null, null, De.none, !0, null, i) : s = new Ci(e.schema.topNodeType, null, De.none, !0, null, i), this.nodes = [s], this.find = n.findPositions, this.needsBlock = !1;
2521
+ let o = n.topNode, s, i = sh(null, n.preserveWhitespace, 0) | (r ? Cs : 0);
2522
+ o ? s = new Si(o.type, o.attrs, De.none, !0, n.topMatch || o.type.contentMatch, i) : r ? s = new Si(null, null, De.none, !0, null, i) : s = new Si(e.schema.topNodeType, null, De.none, !0, null, i), this.nodes = [s], this.find = n.findPositions, this.needsBlock = !1;
2523
2523
  }
2524
2524
  get top() {
2525
2525
  return this.nodes[this.open];
@@ -2531,7 +2531,7 @@ class ih {
2531
2531
  e.nodeType == 3 ? this.addTextNode(e, n) : e.nodeType == 1 && this.addElement(e, n);
2532
2532
  }
2533
2533
  addTextNode(e, n) {
2534
- let r = e.nodeValue, o = this.top, s = o.options & yu ? "full" : this.localPreserveWS || (o.options & zs) > 0, { schema: i } = this.parser;
2534
+ let r = e.nodeValue, o = this.top, s = o.options & yu ? "full" : this.localPreserveWS || (o.options & Hs) > 0, { schema: i } = this.parser;
2535
2535
  if (s === "full" || o.inlineContext(e) || /[^ \t\r\n\u000c]/.test(r)) {
2536
2536
  if (s)
2537
2537
  if (s === "full")
@@ -2701,9 +2701,9 @@ class ih {
2701
2701
  let i = this.top;
2702
2702
  i.match = i.match && i.match.matchType(e);
2703
2703
  let a = sh(e, s, i.options);
2704
- i.options & ks && i.content.length == 0 && (a |= ks);
2704
+ i.options & Cs && i.content.length == 0 && (a |= Cs);
2705
2705
  let l = De.none;
2706
- return r = r.filter((c) => (i.type ? i.type.allowsMarkType(c.type) : lh(c.type, e)) ? (l = c.addToSet(l), !1) : !0), this.nodes.push(new Ci(e, n, l, o, null, a)), this.open++, r;
2706
+ return r = r.filter((c) => (i.type ? i.type.allowsMarkType(c.type) : lh(c.type, e)) ? (l = c.addToSet(l), !1) : !0), this.nodes.push(new Si(e, n, l, o, null, a)), this.open++, r;
2707
2707
  }
2708
2708
  // Make sure all nodes above this.open are finished and added to
2709
2709
  // their parents
@@ -2722,7 +2722,7 @@ class ih {
2722
2722
  for (let n = this.open; n >= 0; n--) {
2723
2723
  if (this.nodes[n] == e)
2724
2724
  return this.open = n, !0;
2725
- this.localPreserveWS && (this.nodes[n].options |= zs);
2725
+ this.localPreserveWS && (this.nodes[n].options |= Hs);
2726
2726
  }
2727
2727
  return !1;
2728
2728
  }
@@ -3992,9 +3992,9 @@ class AS {
3992
3992
  let { content: e, openStart: n, openEnd: r } = this.unplaced, o = lc(e, n);
3993
3993
  if (o.childCount <= 1 && n > 0) {
3994
3994
  let s = e.size - n <= n + o.size;
3995
- this.unplaced = new V(ps(e, n - 1, 1), n - 1, s ? n - 1 : r);
3995
+ this.unplaced = new V(hs(e, n - 1, 1), n - 1, s ? n - 1 : r);
3996
3996
  } else
3997
- this.unplaced = new V(ps(e, n, 1), n, r);
3997
+ this.unplaced = new V(hs(e, n, 1), n, r);
3998
3998
  }
3999
3999
  // Move content from the unplaced slice at `sliceDepth` to the
4000
4000
  // frontier node at `frontierDepth`. Close that frontier node when
@@ -4019,12 +4019,12 @@ class AS {
4019
4019
  c++, (c > 1 || l == 0 || m.content.size) && (d = g, u.push(Ub(m.mark(f.allowedMarks(m.marks)), c == 1 ? l : 0, c == a.childCount ? p : -1)));
4020
4020
  }
4021
4021
  let h = c == a.childCount;
4022
- h || (p = -1), this.placed = hs(this.placed, n, _.from(u)), this.frontier[n].match = d, h && p < 0 && r && r.type == this.frontier[this.depth].type && this.frontier.length > 1 && this.closeFrontierNode();
4022
+ h || (p = -1), this.placed = ms(this.placed, n, _.from(u)), this.frontier[n].match = d, h && p < 0 && r && r.type == this.frontier[this.depth].type && this.frontier.length > 1 && this.closeFrontierNode();
4023
4023
  for (let m = 0, g = a; m < p; m++) {
4024
4024
  let y = g.lastChild;
4025
4025
  this.frontier.push({ type: y.type, match: y.contentMatchAt(y.childCount) }), g = y.content;
4026
4026
  }
4027
- this.unplaced = h ? e == 0 ? V.empty : new V(ps(i.content, e - 1, 1), e - 1, p < 0 ? i.openEnd : e - 1) : new V(ps(i.content, e, c), i.openStart, i.openEnd);
4027
+ this.unplaced = h ? e == 0 ? V.empty : new V(hs(i.content, e - 1, 1), e - 1, p < 0 ? i.openEnd : e - 1) : new V(hs(i.content, e, c), i.openStart, i.openEnd);
4028
4028
  }
4029
4029
  mustMoveInline() {
4030
4030
  if (!this.$to.parent.isTextblock)
@@ -4056,7 +4056,7 @@ class AS {
4056
4056
  return null;
4057
4057
  for (; this.depth > n.depth; )
4058
4058
  this.closeFrontierNode();
4059
- n.fit.childCount && (this.placed = hs(this.placed, n.depth, n.fit)), e = n.move;
4059
+ n.fit.childCount && (this.placed = ms(this.placed, n.depth, n.fit)), e = n.move;
4060
4060
  for (let r = n.depth + 1; r <= e.depth; r++) {
4061
4061
  let o = e.node(r), s = o.type.contentMatch.fillBefore(o.content, !0, e.index(r));
4062
4062
  this.openFrontierNode(o.type, o.attrs, s);
@@ -4065,18 +4065,18 @@ class AS {
4065
4065
  }
4066
4066
  openFrontierNode(e, n = null, r) {
4067
4067
  let o = this.frontier[this.depth];
4068
- o.match = o.match.matchType(e), this.placed = hs(this.placed, this.depth, _.from(e.create(n, r))), this.frontier.push({ type: e, match: e.contentMatch });
4068
+ o.match = o.match.matchType(e), this.placed = ms(this.placed, this.depth, _.from(e.create(n, r))), this.frontier.push({ type: e, match: e.contentMatch });
4069
4069
  }
4070
4070
  closeFrontierNode() {
4071
4071
  let n = this.frontier.pop().match.fillBefore(_.empty, !0);
4072
- n.childCount && (this.placed = hs(this.placed, this.frontier.length, n));
4072
+ n.childCount && (this.placed = ms(this.placed, this.frontier.length, n));
4073
4073
  }
4074
4074
  }
4075
- function ps(t, e, n) {
4076
- return e == 0 ? t.cutByIndex(n, t.childCount) : t.replaceChild(0, t.firstChild.copy(ps(t.firstChild.content, e - 1, n)));
4077
- }
4078
4075
  function hs(t, e, n) {
4079
- return e == 0 ? t.append(n) : t.replaceChild(t.childCount - 1, t.lastChild.copy(hs(t.lastChild.content, e - 1, n)));
4076
+ return e == 0 ? t.cutByIndex(n, t.childCount) : t.replaceChild(0, t.firstChild.copy(hs(t.firstChild.content, e - 1, n)));
4077
+ }
4078
+ function ms(t, e, n) {
4079
+ return e == 0 ? t.append(n) : t.replaceChild(t.childCount - 1, t.lastChild.copy(ms(t.lastChild.content, e - 1, n)));
4080
4080
  }
4081
4081
  function lc(t, e) {
4082
4082
  for (let n = 0; n < e; n++)
@@ -4232,7 +4232,7 @@ class to extends gt {
4232
4232
  }
4233
4233
  }
4234
4234
  gt.jsonID("attr", to);
4235
- class Hs extends gt {
4235
+ class js extends gt {
4236
4236
  /**
4237
4237
  Construct an attribute step.
4238
4238
  */
@@ -4251,7 +4251,7 @@ class Hs extends gt {
4251
4251
  return xt.empty;
4252
4252
  }
4253
4253
  invert(e) {
4254
- return new Hs(this.attr, e.attrs[this.attr]);
4254
+ return new js(this.attr, e.attrs[this.attr]);
4255
4255
  }
4256
4256
  map(e) {
4257
4257
  return this;
@@ -4262,10 +4262,10 @@ class Hs extends gt {
4262
4262
  static fromJSON(e, n) {
4263
4263
  if (typeof n.attr != "string")
4264
4264
  throw new RangeError("Invalid input for DocAttrStep.fromJSON");
4265
- return new Hs(n.attr, n.value);
4265
+ return new js(n.attr, n.value);
4266
4266
  }
4267
4267
  }
4268
- gt.jsonID("docAttr", Hs);
4268
+ gt.jsonID("docAttr", js);
4269
4269
  let _o = class extends Error {
4270
4270
  };
4271
4271
  _o = function t(e) {
@@ -4438,7 +4438,7 @@ class El {
4438
4438
  Set a single attribute on the document to a new value.
4439
4439
  */
4440
4440
  setDocAttribute(e, n) {
4441
- return this.step(new Hs(e, n)), this;
4441
+ return this.step(new js(e, n)), this;
4442
4442
  }
4443
4443
  /**
4444
4444
  Add a mark to the node at position `pos`.
@@ -4895,7 +4895,7 @@ function mh(t, e, n) {
4895
4895
  i == null && (i = u);
4896
4896
  }), t.setSelection(ae.near(t.doc.resolve(i), n));
4897
4897
  }
4898
- const gh = 1, Si = 2, yh = 4;
4898
+ const gh = 1, Ti = 2, yh = 4;
4899
4899
  class RS extends El {
4900
4900
  /**
4901
4901
  @internal
@@ -4919,7 +4919,7 @@ class RS extends El {
4919
4919
  setSelection(e) {
4920
4920
  if (e.$from.doc != this.doc)
4921
4921
  throw new RangeError("Selection passed to setSelection must point at the current document");
4922
- return this.curSelection = e, this.curSelectionFor = this.steps.length, this.updated = (this.updated | gh) & ~Si, this.storedMarks = null, this;
4922
+ return this.curSelection = e, this.curSelectionFor = this.steps.length, this.updated = (this.updated | gh) & ~Ti, this.storedMarks = null, this;
4923
4923
  }
4924
4924
  /**
4925
4925
  Whether the selection was explicitly updated by this transaction.
@@ -4931,7 +4931,7 @@ class RS extends El {
4931
4931
  Set the current stored marks.
4932
4932
  */
4933
4933
  setStoredMarks(e) {
4934
- return this.storedMarks = e, this.updated |= Si, this;
4934
+ return this.storedMarks = e, this.updated |= Ti, this;
4935
4935
  }
4936
4936
  /**
4937
4937
  Make sure the current stored marks or, if that is null, the marks
@@ -4957,13 +4957,13 @@ class RS extends El {
4957
4957
  Whether the stored marks were explicitly set for this transaction.
4958
4958
  */
4959
4959
  get storedMarksSet() {
4960
- return (this.updated & Si) > 0;
4960
+ return (this.updated & Ti) > 0;
4961
4961
  }
4962
4962
  /**
4963
4963
  @internal
4964
4964
  */
4965
4965
  addStep(e, n) {
4966
- super.addStep(e, n), this.updated = this.updated & ~Si, this.storedMarks = null;
4966
+ super.addStep(e, n), this.updated = this.updated & ~Ti, this.storedMarks = null;
4967
4967
  }
4968
4968
  /**
4969
4969
  Update the timestamp for the transaction.
@@ -5050,13 +5050,13 @@ class RS extends El {
5050
5050
  function bh(t, e) {
5051
5051
  return !e || !t ? t : t.bind(e);
5052
5052
  }
5053
- class ms {
5053
+ class gs {
5054
5054
  constructor(e, n, r) {
5055
5055
  this.name = e, this.init = bh(n.init, r), this.apply = bh(n.apply, r);
5056
5056
  }
5057
5057
  }
5058
5058
  const LS = [
5059
- new ms("doc", {
5059
+ new gs("doc", {
5060
5060
  init(t) {
5061
5061
  return t.doc || t.schema.topNodeType.createAndFill();
5062
5062
  },
@@ -5064,7 +5064,7 @@ const LS = [
5064
5064
  return t.doc;
5065
5065
  }
5066
5066
  }),
5067
- new ms("selection", {
5067
+ new gs("selection", {
5068
5068
  init(t, e) {
5069
5069
  return t.selection || ae.atStart(e.doc);
5070
5070
  },
@@ -5072,7 +5072,7 @@ const LS = [
5072
5072
  return t.selection;
5073
5073
  }
5074
5074
  }),
5075
- new ms("storedMarks", {
5075
+ new gs("storedMarks", {
5076
5076
  init(t) {
5077
5077
  return t.storedMarks || null;
5078
5078
  },
@@ -5080,7 +5080,7 @@ const LS = [
5080
5080
  return r.selection.$cursor ? t.storedMarks : null;
5081
5081
  }
5082
5082
  }),
5083
- new ms("scrollToSelection", {
5083
+ new gs("scrollToSelection", {
5084
5084
  init() {
5085
5085
  return 0;
5086
5086
  },
@@ -5094,7 +5094,7 @@ class dc {
5094
5094
  this.schema = e, this.plugins = [], this.pluginsByKey = /* @__PURE__ */ Object.create(null), this.fields = LS.slice(), n && n.forEach((r) => {
5095
5095
  if (this.pluginsByKey[r.key])
5096
5096
  throw new RangeError("Adding different instances of a keyed plugin (" + r.key + ")");
5097
- this.plugins.push(r), this.pluginsByKey[r.key] = r, r.spec.state && this.fields.push(new ms(r.key, r.spec.state, r));
5097
+ this.plugins.push(r), this.pluginsByKey[r.key] = r, r.spec.state && this.fields.push(new gs(r.key, r.spec.state, r));
5098
5098
  });
5099
5099
  }
5100
5100
  }
@@ -5685,7 +5685,7 @@ function YS(t, e, n, r = null) {
5685
5685
  if (e.$from.index(e.depth - 1) == 0)
5686
5686
  return !1;
5687
5687
  let l = i.resolve(e.start - 2);
5688
- s = new Fs(l, l, e.depth), e.endIndex < e.parent.childCount && (e = new Fs(e.$from, i.resolve(e.$to.end(e.depth)), e.depth)), o = !0;
5688
+ s = new zs(l, l, e.depth), e.endIndex < e.parent.childCount && (e = new zs(e.$from, i.resolve(e.$to.end(e.depth)), e.depth)), o = !0;
5689
5689
  }
5690
5690
  let a = Sl(s, n, r, e);
5691
5691
  return a ? (t && JS(t, e, a, o, n), !0) : !1;
@@ -5711,7 +5711,7 @@ function XS(t) {
5711
5711
  }
5712
5712
  function QS(t, e, n, r) {
5713
5713
  let o = t.tr, s = r.end, i = r.$to.end(r.depth);
5714
- s < i && (o.step(new Ze(s - 1, i, s, i, new V(_.from(n.create(null, r.parent.copy())), 1, 0), 1, !0)), r = new Fs(o.doc.resolve(r.$from.pos), o.doc.resolve(i), r.depth));
5714
+ s < i && (o.step(new Ze(s - 1, i, s, i, new V(_.from(n.create(null, r.parent.copy())), 1, 0), 1, !0)), r = new zs(o.doc.resolve(r.$from.pos), o.doc.resolve(i), r.depth));
5715
5715
  const a = Go(r);
5716
5716
  if (a == null)
5717
5717
  return !1;
@@ -5773,7 +5773,7 @@ function wh(t, e, n, r, o) {
5773
5773
  return !0;
5774
5774
  if (e == (o < 0 ? 0 : Zt(t))) {
5775
5775
  let i = t.parentNode;
5776
- if (!i || i.nodeType != 1 || ci(t) || nT.test(t.nodeName) || t.contentEditable == "false")
5776
+ if (!i || i.nodeType != 1 || ui(t) || nT.test(t.nodeName) || t.contentEditable == "false")
5777
5777
  return !1;
5778
5778
  e = ut(t) + (o < 0 ? 0 : 1), t = i;
5779
5779
  } else if (t.nodeType == 1) {
@@ -5800,7 +5800,7 @@ function rT(t, e) {
5800
5800
  if (t.contentEditable == "false")
5801
5801
  return null;
5802
5802
  t = t.childNodes[e - 1], e = Zt(t);
5803
- } else if (t.parentNode && !ci(t))
5803
+ } else if (t.parentNode && !ui(t))
5804
5804
  e = ut(t), t = t.parentNode;
5805
5805
  else
5806
5806
  return null;
@@ -5814,7 +5814,7 @@ function oT(t, e) {
5814
5814
  if (t.contentEditable == "false")
5815
5815
  return null;
5816
5816
  t = t.childNodes[e], e = 0;
5817
- } else if (t.parentNode && !ci(t))
5817
+ } else if (t.parentNode && !ui(t))
5818
5818
  e = ut(t) + 1, t = t.parentNode;
5819
5819
  else
5820
5820
  return null;
@@ -5830,7 +5830,7 @@ function sT(t, e, n) {
5830
5830
  r = r && s == 0, o = o && s == Zt(t);
5831
5831
  }
5832
5832
  }
5833
- function ci(t) {
5833
+ function ui(t) {
5834
5834
  let e;
5835
5835
  for (let n = t; n && !(e = n.pmViewDesc); n = n.parentNode)
5836
5836
  ;
@@ -5865,7 +5865,7 @@ function aT(t, e, n) {
5865
5865
  }
5866
5866
  const Ln = typeof navigator < "u" ? navigator : null, xh = typeof document < "u" ? document : null, Dr = Ln && Ln.userAgent || "", xu = /Edge\/(\d+)/.exec(Dr), av = /MSIE \d/.exec(Dr), ku = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Dr), Lt = !!(av || ku || xu), kr = av ? document.documentMode : ku ? +ku[1] : xu ? +xu[1] : 0, en = !Lt && /gecko\/(\d+)/i.test(Dr);
5867
5867
  en && +(/Firefox\/(\d+)/.exec(Dr) || [0, 0])[1];
5868
- const Cu = !Lt && /Chrome\/(\d+)/.exec(Dr), ht = !!Cu, lv = Cu ? +Cu[1] : 0, Ct = !Lt && !!Ln && /Apple Computer/.test(Ln.vendor), Fo = Ct && (/Mobile\/\w+/.test(Dr) || !!Ln && Ln.maxTouchPoints > 2), Qt = Fo || (Ln ? /Mac/.test(Ln.platform) : !1), lT = Ln ? /Win/.test(Ln.platform) : !1, Jn = /Android \d/.test(Dr), ui = !!xh && "webkitFontSmoothing" in xh.documentElement.style, cT = ui ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
5868
+ const Cu = !Lt && /Chrome\/(\d+)/.exec(Dr), ht = !!Cu, lv = Cu ? +Cu[1] : 0, Ct = !Lt && !!Ln && /Apple Computer/.test(Ln.vendor), Fo = Ct && (/Mobile\/\w+/.test(Dr) || !!Ln && Ln.maxTouchPoints > 2), Qt = Fo || (Ln ? /Mac/.test(Ln.platform) : !1), lT = Ln ? /Win/.test(Ln.platform) : !1, Jn = /Android \d/.test(Dr), di = !!xh && "webkitFontSmoothing" in xh.documentElement.style, cT = di ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
5869
5869
  function uT(t) {
5870
5870
  let e = t.defaultView && t.defaultView.visualViewport;
5871
5871
  return e ? {
@@ -6060,7 +6060,7 @@ function vT(t, e) {
6060
6060
  u.nodeName == "IMG" && (d = u.getBoundingClientRect()).right <= e.left && d.bottom > e.top && o++;
6061
6061
  }
6062
6062
  let c;
6063
- ui && o && r.nodeType == 1 && (c = r.childNodes[o - 1]).nodeType == 1 && c.contentEditable == "false" && c.getBoundingClientRect().top >= e.top && o--, r == t.dom && o == r.childNodes.length - 1 && r.lastChild.nodeType == 1 && e.top > r.lastChild.getBoundingClientRect().bottom ? a = t.state.doc.content.size : (o == 0 || r.nodeType != 1 || r.childNodes[o - 1].nodeName != "BR") && (a = bT(t, r, o, e));
6063
+ di && o && r.nodeType == 1 && (c = r.childNodes[o - 1]).nodeType == 1 && c.contentEditable == "false" && c.getBoundingClientRect().top >= e.top && o--, r == t.dom && o == r.childNodes.length - 1 && r.lastChild.nodeType == 1 && e.top > r.lastChild.getBoundingClientRect().bottom ? a = t.state.doc.content.size : (o == 0 || r.nodeType != 1 || r.childNodes[o - 1].nodeName != "BR") && (a = bT(t, r, o, e));
6064
6064
  }
6065
6065
  a == null && (a = yT(t, i, e));
6066
6066
  let l = t.docView.nearestDesc(i, !0);
@@ -6080,7 +6080,7 @@ function fr(t, e) {
6080
6080
  }
6081
6081
  const wT = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;
6082
6082
  function pv(t, e, n) {
6083
- let { node: r, offset: o, atom: s } = t.docView.domFromPos(e, n < 0 ? -1 : 1), i = ui || en;
6083
+ let { node: r, offset: o, atom: s } = t.docView.domFromPos(e, n < 0 ? -1 : 1), i = di || en;
6084
6084
  if (r.nodeType == 3)
6085
6085
  if (i && (wT.test(r.nodeValue) || (n < 0 ? !o : o == r.nodeValue.length))) {
6086
6086
  let l = fr(qn(r, o, o), n);
@@ -6200,7 +6200,7 @@ function ST(t, e, n) {
6200
6200
  return Sh == e && Th == n ? Ah : (Sh = e, Th = n, Ah = n == "up" || n == "down" ? xT(t, e, n) : CT(t, e, n));
6201
6201
  }
6202
6202
  const tn = 0, Eh = 1, Kr = 2, Pn = 3;
6203
- class di {
6203
+ class fi {
6204
6204
  constructor(e, n, r, o) {
6205
6205
  this.parent = e, this.children = n, this.dom = r, this.contentDOM = o, this.dirty = tn, r.pmViewDesc = this;
6206
6206
  }
@@ -6544,7 +6544,7 @@ class di {
6544
6544
  return !1;
6545
6545
  }
6546
6546
  }
6547
- class mv extends di {
6547
+ class mv extends fi {
6548
6548
  constructor(e, n, r, o) {
6549
6549
  let s, i = n.type.toDOM;
6550
6550
  if (typeof i == "function" && (i = i(r, () => {
@@ -6587,7 +6587,7 @@ class mv extends di {
6587
6587
  return this.widget.type.side;
6588
6588
  }
6589
6589
  }
6590
- class TT extends di {
6590
+ class TT extends fi {
6591
6591
  constructor(e, n, r, o) {
6592
6592
  super(e, [], n, null), this.textDOM = r, this.text = o;
6593
6593
  }
@@ -6604,7 +6604,7 @@ class TT extends di {
6604
6604
  return e.type === "characterData" && e.target.nodeValue == e.oldValue;
6605
6605
  }
6606
6606
  }
6607
- class fo extends di {
6607
+ class fo extends fi {
6608
6608
  constructor(e, n, r, o, s) {
6609
6609
  super(e, [], r, o), this.mark = n, this.spec = s;
6610
6610
  }
@@ -6640,7 +6640,7 @@ class fo extends di {
6640
6640
  this.spec.destroy && this.spec.destroy(), super.destroy();
6641
6641
  }
6642
6642
  }
6643
- class Cr extends di {
6643
+ class Cr extends fi {
6644
6644
  constructor(e, n, r, o, s, i, a, l, c) {
6645
6645
  super(e, [], s, i), this.node = n, this.outerDeco = r, this.innerDeco = o, this.nodeDOM = a;
6646
6646
  }
@@ -6814,7 +6814,7 @@ class Ol extends Cr {
6814
6814
  return this.node.text == e;
6815
6815
  }
6816
6816
  }
6817
- class gv extends di {
6817
+ class gv extends fi {
6818
6818
  parseRule() {
6819
6819
  return { ignore: !0 };
6820
6820
  }
@@ -6881,22 +6881,22 @@ function yv(t, e, n) {
6881
6881
  r = Nh(r), o = !0;
6882
6882
  o && n.trackWrites == t && (n.trackWrites = null);
6883
6883
  }
6884
- const Cs = function(t) {
6884
+ const Ss = function(t) {
6885
6885
  t && (this.nodeName = t);
6886
6886
  };
6887
- Cs.prototype = /* @__PURE__ */ Object.create(null);
6888
- const Gr = [new Cs()];
6887
+ Ss.prototype = /* @__PURE__ */ Object.create(null);
6888
+ const Gr = [new Ss()];
6889
6889
  function Su(t, e, n) {
6890
6890
  if (t.length == 0)
6891
6891
  return Gr;
6892
- let r = n ? Gr[0] : new Cs(), o = [r];
6892
+ let r = n ? Gr[0] : new Ss(), o = [r];
6893
6893
  for (let s = 0; s < t.length; s++) {
6894
6894
  let i = t[s].type.attrs;
6895
6895
  if (i) {
6896
- i.nodeName && o.push(r = new Cs(i.nodeName));
6896
+ i.nodeName && o.push(r = new Ss(i.nodeName));
6897
6897
  for (let a in i) {
6898
6898
  let l = i[a];
6899
- l != null && (n && o.length == 1 && o.push(r = new Cs(e.isInline ? "span" : "div")), a == "class" ? r.class = (r.class ? r.class + " " : "") + l : a == "style" ? r.style = (r.style ? r.style + ";" : "") + l : a != "nodeName" && (r[a] = l));
6899
+ l != null && (n && o.length == 1 && o.push(r = new Ss(e.isInline ? "span" : "div")), a == "class" ? r.class = (r.class ? r.class + " " : "") + l : a == "style" ? r.style = (r.style ? r.style + ";" : "") + l : a != "nodeName" && (r[a] = l));
6900
6900
  }
6901
6901
  }
6902
6902
  }
@@ -7369,7 +7369,7 @@ function Ph(t, e, n) {
7369
7369
  if (!s || s.isText)
7370
7370
  return !1;
7371
7371
  let a = e < 0 ? o.pos - s.nodeSize : o.pos;
7372
- return s.isAtom || (i = t.docView.descAt(a)) && !i.contentDOM ? K.isSelectable(s) ? hr(t, new K(e < 0 ? t.state.doc.resolve(o.pos - s.nodeSize) : o)) : ui ? hr(t, new U(t.state.doc.resolve(e < 0 ? a : a + s.nodeSize))) : !1 : !1;
7372
+ return s.isAtom || (i = t.docView.descAt(a)) && !i.contentDOM ? K.isSelectable(s) ? hr(t, new K(e < 0 ? t.state.doc.resolve(o.pos - s.nodeSize) : o)) : di ? hr(t, new U(t.state.doc.resolve(e < 0 ? a : a + s.nodeSize))) : !1 : !1;
7373
7373
  }
7374
7374
  } else return !1;
7375
7375
  else {
@@ -7384,7 +7384,7 @@ function Ph(t, e, n) {
7384
7384
  function pa(t) {
7385
7385
  return t.nodeType == 3 ? t.nodeValue.length : t.childNodes.length;
7386
7386
  }
7387
- function Ss(t, e) {
7387
+ function Ts(t, e) {
7388
7388
  let n = t.pmViewDesc;
7389
7389
  return n && n.size == 0 && (e < 0 || t.nextSibling || t.nodeName != "BR");
7390
7390
  }
@@ -7396,13 +7396,13 @@ function BT(t) {
7396
7396
  if (!n)
7397
7397
  return;
7398
7398
  let o, s, i = !1;
7399
- for (en && n.nodeType == 1 && r < pa(n) && Ss(n.childNodes[r], -1) && (i = !0); ; )
7399
+ for (en && n.nodeType == 1 && r < pa(n) && Ts(n.childNodes[r], -1) && (i = !0); ; )
7400
7400
  if (r > 0) {
7401
7401
  if (n.nodeType != 1)
7402
7402
  break;
7403
7403
  {
7404
7404
  let a = n.childNodes[r - 1];
7405
- if (Ss(a, -1))
7405
+ if (Ts(a, -1))
7406
7406
  o = n, s = --r;
7407
7407
  else if (a.nodeType == 3)
7408
7408
  n = a, r = n.nodeValue.length;
@@ -7414,7 +7414,7 @@ function BT(t) {
7414
7414
  break;
7415
7415
  {
7416
7416
  let a = n.previousSibling;
7417
- for (; a && Ss(a, -1); )
7417
+ for (; a && Ts(a, -1); )
7418
7418
  o = n.parentNode, s = ut(a), a = a.previousSibling;
7419
7419
  if (a)
7420
7420
  n = a, r = pa(n);
@@ -7437,7 +7437,7 @@ function $T(t) {
7437
7437
  if (n.nodeType != 1)
7438
7438
  break;
7439
7439
  let a = n.childNodes[r];
7440
- if (Ss(a, 1))
7440
+ if (Ts(a, 1))
7441
7441
  s = n, i = ++r;
7442
7442
  else
7443
7443
  break;
@@ -7446,7 +7446,7 @@ function $T(t) {
7446
7446
  break;
7447
7447
  {
7448
7448
  let a = n.nextSibling;
7449
- for (; a && Ss(a, 1); )
7449
+ for (; a && Ts(a, 1); )
7450
7450
  s = a.parentNode, i = ut(a) + 1, a = a.nextSibling;
7451
7451
  if (a)
7452
7452
  n = a, r = 0, o = pa(n);
@@ -7464,7 +7464,7 @@ function Cv(t) {
7464
7464
  return e && e.node && e.node.isBlock;
7465
7465
  }
7466
7466
  function FT(t, e) {
7467
- for (; t && e == t.childNodes.length && !ci(t); )
7467
+ for (; t && e == t.childNodes.length && !ui(t); )
7468
7468
  e = ut(t) + 1, t = t.parentNode;
7469
7469
  for (; t && e < t.childNodes.length; ) {
7470
7470
  let n = t.childNodes[e];
@@ -7476,7 +7476,7 @@ function FT(t, e) {
7476
7476
  }
7477
7477
  }
7478
7478
  function zT(t, e) {
7479
- for (; t && !e && !ci(t); )
7479
+ for (; t && !e && !ui(t); )
7480
7480
  e = ut(t), t = t.parentNode;
7481
7481
  for (; t && e; ) {
7482
7482
  let n = t.childNodes[e - 1];
@@ -7650,7 +7650,7 @@ function Sv(t, e, n, r, o) {
7650
7650
  } else
7651
7651
  t.someProp("transformPastedHTML", (d) => {
7652
7652
  n = d(n, t);
7653
- }), i = KT(n), ui && GT(i);
7653
+ }), i = KT(n), di && GT(i);
7654
7654
  let c = i && i.querySelector("[data-pm-slice]"), u = c && /^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(c.getAttribute("data-pm-slice") || "");
7655
7655
  if (u && u[3])
7656
7656
  for (let d = +u[3]; d > 0; d--) {
@@ -8077,12 +8077,12 @@ function pA(t, e) {
8077
8077
  n.parentNode && n.parentNode.removeChild(n), t.focus();
8078
8078
  }, 50);
8079
8079
  }
8080
- const js = Lt && kr < 15 || Fo && cT < 604;
8080
+ const Vs = Lt && kr < 15 || Fo && cT < 604;
8081
8081
  St.copy = Tt.cut = (t, e) => {
8082
8082
  let n = e, r = t.state.selection, o = n.type == "cut";
8083
8083
  if (r.empty)
8084
8084
  return;
8085
- let s = js ? null : n.clipboardData, i = r.content(), { dom: a, text: l } = of(t, i);
8085
+ let s = Vs ? null : n.clipboardData, i = r.content(), { dom: a, text: l } = of(t, i);
8086
8086
  s ? (n.preventDefault(), s.clearData(), s.setData("text/html", a.innerHTML), s.setData("text/plain", l)) : pA(t, a), o && t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent", "cut"));
8087
8087
  };
8088
8088
  function hA(t) {
@@ -8095,10 +8095,10 @@ function mA(t, e) {
8095
8095
  n || (r.contentEditable = "true"), r.style.cssText = "position: fixed; left: -10000px; top: 10px", r.focus();
8096
8096
  let o = t.input.shiftKey && t.input.lastKeyCode != 45;
8097
8097
  setTimeout(() => {
8098
- t.focus(), r.parentNode && r.parentNode.removeChild(r), n ? Vs(t, r.value, null, o, e) : Vs(t, r.textContent, r.innerHTML, o, e);
8098
+ t.focus(), r.parentNode && r.parentNode.removeChild(r), n ? Us(t, r.value, null, o, e) : Us(t, r.textContent, r.innerHTML, o, e);
8099
8099
  }, 50);
8100
8100
  }
8101
- function Vs(t, e, n, r, o) {
8101
+ function Us(t, e, n, r, o) {
8102
8102
  let s = Sv(t, e, n, r, t.state.selection.$from);
8103
8103
  if (t.someProp("handlePaste", (l) => l(t, o, s || V.empty)))
8104
8104
  return !0;
@@ -8118,8 +8118,8 @@ Tt.paste = (t, e) => {
8118
8118
  let n = e;
8119
8119
  if (t.composing && !Jn)
8120
8120
  return;
8121
- let r = js ? null : n.clipboardData, o = t.input.shiftKey && t.input.lastKeyCode != 45;
8122
- r && Vs(t, Lv(r), r.getData("text/html"), o, n) ? n.preventDefault() : mA(t, n);
8121
+ let r = Vs ? null : n.clipboardData, o = t.input.shiftKey && t.input.lastKeyCode != 45;
8122
+ r && Us(t, Lv(r), r.getData("text/html"), o, n) ? n.preventDefault() : mA(t, n);
8123
8123
  };
8124
8124
  class Pv {
8125
8125
  constructor(e, n, r) {
@@ -8145,7 +8145,7 @@ St.dragstart = (t, e) => {
8145
8145
  }
8146
8146
  }
8147
8147
  let a = (i || t.state.selection).content(), { dom: l, text: c, slice: u } = of(t, a);
8148
- (!n.dataTransfer.files.length || !ht || lv > 120) && n.dataTransfer.clearData(), n.dataTransfer.setData(js ? "Text" : "text/html", l.innerHTML), n.dataTransfer.effectAllowed = "copyMove", js || n.dataTransfer.setData("text/plain", c), t.dragging = new Pv(u, _v(t, n), i);
8148
+ (!n.dataTransfer.files.length || !ht || lv > 120) && n.dataTransfer.clearData(), n.dataTransfer.setData(Vs ? "Text" : "text/html", l.innerHTML), n.dataTransfer.effectAllowed = "copyMove", Vs || n.dataTransfer.setData("text/plain", c), t.dragging = new Pv(u, _v(t, n), i);
8149
8149
  };
8150
8150
  St.dragend = (t) => {
8151
8151
  let e = t.dragging;
@@ -8164,7 +8164,7 @@ Tt.drop = (t, e) => {
8164
8164
  let s = t.state.doc.resolve(o.pos), i = r && r.slice;
8165
8165
  i ? t.someProp("transformPasted", (h) => {
8166
8166
  i = h(i, t, !1);
8167
- }) : i = Sv(t, Lv(n.dataTransfer), js ? null : n.dataTransfer.getData("text/html"), !1, s);
8167
+ }) : i = Sv(t, Lv(n.dataTransfer), Vs ? null : n.dataTransfer.getData("text/html"), !1, s);
8168
8168
  let a = !!(r && _v(t, n));
8169
8169
  if (t.someProp("handleDrop", (h) => h(t, n, i || V.empty, a))) {
8170
8170
  n.preventDefault();
@@ -8215,7 +8215,7 @@ St.beforeinput = (t, e) => {
8215
8215
  };
8216
8216
  for (let t in Tt)
8217
8217
  St[t] = Tt[t];
8218
- function Us(t, e) {
8218
+ function Ws(t, e) {
8219
8219
  if (t == e)
8220
8220
  return !0;
8221
8221
  for (let n in t)
@@ -8238,7 +8238,7 @@ class ma {
8238
8238
  return !0;
8239
8239
  }
8240
8240
  eq(e) {
8241
- return this == e || e instanceof ma && (this.spec.key && this.spec.key == e.spec.key || this.toDOM == e.toDOM && Us(this.spec, e.spec));
8241
+ return this == e || e instanceof ma && (this.spec.key && this.spec.key == e.spec.key || this.toDOM == e.toDOM && Ws(this.spec, e.spec));
8242
8242
  }
8243
8243
  destroy(e) {
8244
8244
  this.spec.destroy && this.spec.destroy(e);
@@ -8256,7 +8256,7 @@ class Sr {
8256
8256
  return n.from < n.to;
8257
8257
  }
8258
8258
  eq(e) {
8259
- return this == e || e instanceof Sr && Us(this.attrs, e.attrs) && Us(this.spec, e.spec);
8259
+ return this == e || e instanceof Sr && Ws(this.attrs, e.attrs) && Ws(this.spec, e.spec);
8260
8260
  }
8261
8261
  static is(e) {
8262
8262
  return e.type instanceof Sr;
@@ -8280,7 +8280,7 @@ class cf {
8280
8280
  return o == n.from && !(s = e.child(r)).isText && o + s.nodeSize == n.to;
8281
8281
  }
8282
8282
  eq(e) {
8283
- return this == e || e instanceof cf && Us(this.attrs, e.attrs) && Us(this.spec, e.spec);
8283
+ return this == e || e instanceof cf && Ws(this.attrs, e.attrs) && Ws(this.spec, e.spec);
8284
8284
  }
8285
8285
  destroy() {
8286
8286
  }
@@ -9390,13 +9390,13 @@ class zv {
9390
9390
  [`handlePaste`](https://prosemirror.net/docs/ref/#view.EditorProps.handlePaste) hook.
9391
9391
  */
9392
9392
  pasteHTML(e, n) {
9393
- return Vs(this, "", e, !1, n || new ClipboardEvent("paste"));
9393
+ return Us(this, "", e, !1, n || new ClipboardEvent("paste"));
9394
9394
  }
9395
9395
  /**
9396
9396
  Run the editor's paste logic with the given plain-text input.
9397
9397
  */
9398
9398
  pasteText(e, n) {
9399
- return Vs(this, e, null, !0, n || new ClipboardEvent("paste"));
9399
+ return Us(this, e, null, !0, n || new ClipboardEvent("paste"));
9400
9400
  }
9401
9401
  /**
9402
9402
  Serialize the given slice as it would be if it was copied from
@@ -9733,8 +9733,8 @@ var Rl = class {
9733
9733
  };
9734
9734
  return i;
9735
9735
  }
9736
- }, Ws = {};
9737
- ff(Ws, {
9736
+ }, qs = {};
9737
+ ff(qs, {
9738
9738
  blur: () => UA,
9739
9739
  clearContent: () => WA,
9740
9740
  clearNodes: () => qA,
@@ -9966,13 +9966,13 @@ var oE = (t = null, e = {}) => ({ editor: n, view: r, tr: o, dispatch: s }) => {
9966
9966
  }
9967
9967
  return t;
9968
9968
  };
9969
- function Ti(t) {
9969
+ function Ai(t) {
9970
9970
  if (typeof window > "u")
9971
9971
  throw new Error("[tiptap error]: there is no window object available, so this function cannot be used");
9972
9972
  const e = `<body>${t}</body>`, n = new window.DOMParser().parseFromString(e, "text/html").body;
9973
9973
  return Wv(n);
9974
9974
  }
9975
- function qs(t, e, n) {
9975
+ function Ks(t, e, n) {
9976
9976
  if (t instanceof Zn || t instanceof _)
9977
9977
  return t;
9978
9978
  n = {
@@ -9990,7 +9990,7 @@ function qs(t, e, n) {
9990
9990
  } catch (s) {
9991
9991
  if (n.errorOnInvalidContent)
9992
9992
  throw new Error("[tiptap error]: Invalid JSON content", { cause: s });
9993
- return console.warn("[tiptap warn]: Invalid content.", "Passed value:", t, "Error:", s), qs("", e, n);
9993
+ return console.warn("[tiptap warn]: Invalid content.", "Passed value:", t, "Error:", s), Ks("", e, n);
9994
9994
  }
9995
9995
  if (o) {
9996
9996
  if (n.errorOnInvalidContent) {
@@ -10013,15 +10013,15 @@ function qs(t, e, n) {
10013
10013
  }
10014
10014
  })
10015
10015
  });
10016
- if (n.slice ? eo.fromSchema(l).parseSlice(Ti(t), n.parseOptions) : eo.fromSchema(l).parse(Ti(t), n.parseOptions), n.errorOnInvalidContent && i)
10016
+ if (n.slice ? eo.fromSchema(l).parseSlice(Ai(t), n.parseOptions) : eo.fromSchema(l).parse(Ai(t), n.parseOptions), n.errorOnInvalidContent && i)
10017
10017
  throw new Error("[tiptap error]: Invalid HTML content", {
10018
10018
  cause: new Error(`Invalid element found: ${a}`)
10019
10019
  });
10020
10020
  }
10021
10021
  const s = eo.fromSchema(e);
10022
- return n.slice ? s.parseSlice(Ti(t), n.parseOptions).content : s.parse(Ti(t), n.parseOptions);
10022
+ return n.slice ? s.parseSlice(Ai(t), n.parseOptions).content : s.parse(Ai(t), n.parseOptions);
10023
10023
  }
10024
- return qs("", e, n);
10024
+ return Ks("", e, n);
10025
10025
  }
10026
10026
  function aE(t, e, n) {
10027
10027
  const r = t.steps.length - 1;
@@ -10061,7 +10061,7 @@ var lE = (t) => !("type" in t), cE = (t, e, n) => ({ tr: r, dispatch: o, editor:
10061
10061
  };
10062
10062
  if (!n.errorOnInvalidContent && !s.options.enableContentCheck && s.options.emitContentError)
10063
10063
  try {
10064
- qs(e, s.schema, {
10064
+ Ks(e, s.schema, {
10065
10065
  parseOptions: c,
10066
10066
  errorOnInvalidContent: !0
10067
10067
  });
@@ -10069,7 +10069,7 @@ var lE = (t) => !("type" in t), cE = (t, e, n) => ({ tr: r, dispatch: o, editor:
10069
10069
  l(g);
10070
10070
  }
10071
10071
  try {
10072
- a = qs(e, s.schema, {
10072
+ a = Ks(e, s.schema, {
10073
10073
  parseOptions: c,
10074
10074
  errorOnInvalidContent: (i = n.errorOnInvalidContent) != null ? i : s.options.enableContentCheck
10075
10075
  });
@@ -10213,7 +10213,7 @@ var SE = (t, e) => ({ tr: n, state: r, dispatch: o }) => {
10213
10213
  return !0;
10214
10214
  }, EE = () => ({ state: t, dispatch: e }) => Qb(t, e), ME = () => ({ state: t, dispatch: e }) => tv(t, e), NE = () => ({ state: t, dispatch: e }) => VS(t, e), OE = () => ({ state: t, dispatch: e }) => qS(t, e), DE = () => ({ state: t, dispatch: e }) => WS(t, e);
10215
10215
  function Ou(t, e, n = {}, r = {}) {
10216
- return qs(t, e, {
10216
+ return Ks(t, e, {
10217
10217
  slice: !1,
10218
10218
  parseOptions: n,
10219
10219
  errorOnInvalidContent: r.errorOnInvalidContent
@@ -10305,7 +10305,7 @@ function $l(t) {
10305
10305
  return r ? [e, ...$l(r())] : e;
10306
10306
  }).flat(10);
10307
10307
  }
10308
- function fi(t, e) {
10308
+ function pi(t, e) {
10309
10309
  const n = Rn.fromSchema(e).serializeFragment(t), o = document.implementation.createHTMLDocument().createElement("div");
10310
10310
  return o.appendChild(n), o.innerHTML;
10311
10311
  }
@@ -10414,7 +10414,7 @@ function ye(...t) {
10414
10414
  }), r;
10415
10415
  }, {});
10416
10416
  }
10417
- function Ks(t, e) {
10417
+ function Gs(t, e) {
10418
10418
  return e.filter((n) => n.type === t.type.name).filter((n) => n.attribute.rendered).map((n) => n.attribute.renderHTML ? n.attribute.renderHTML(t.attrs) || {} : {
10419
10419
  [n.name]: t.attrs[n.name]
10420
10420
  }).reduce((n, r) => ye(n, r), {});
@@ -10490,7 +10490,7 @@ function BE(t, e) {
10490
10490
  const m = te(c, "renderHTML", d);
10491
10491
  m && (p.toDOM = (y) => m({
10492
10492
  node: y,
10493
- HTMLAttributes: Ks(y, u)
10493
+ HTMLAttributes: Gs(y, u)
10494
10494
  }));
10495
10495
  const g = te(c, "renderText", d);
10496
10496
  return g && (p.toText = g), [c.name, p];
@@ -10523,7 +10523,7 @@ function BE(t, e) {
10523
10523
  const m = te(c, "renderHTML", d);
10524
10524
  return m && (p.toDOM = (g) => m({
10525
10525
  mark: g,
10526
- HTMLAttributes: Ks(g, u)
10526
+ HTMLAttributes: Gs(g, u)
10527
10527
  })), [c.name, p];
10528
10528
  })
10529
10529
  );
@@ -11143,7 +11143,7 @@ var nM = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, editor
11143
11143
  const r = [n.text];
11144
11144
  return r.index = n.index, r.input = t, r.data = n.data, n.replaceWith && (n.text.includes(n.replaceWith) || console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'), r.push(n.replaceWith)), r;
11145
11145
  };
11146
- function Ai(t) {
11146
+ function Ei(t) {
11147
11147
  var e;
11148
11148
  const { editor: n, from: r, to: o, text: s, rules: i, plugin: a } = t, { view: l } = n;
11149
11149
  if (l.composing)
@@ -11200,9 +11200,9 @@ function yM(t) {
11200
11200
  const l = o.getMeta("applyInputRules");
11201
11201
  return !!l && setTimeout(() => {
11202
11202
  let { text: u } = l;
11203
- typeof u == "string" ? u = u : u = fi(_.from(u), i.schema);
11203
+ typeof u == "string" ? u = u : u = pi(_.from(u), i.schema);
11204
11204
  const { from: d } = l, f = d + u.length;
11205
- Ai({
11205
+ Ei({
11206
11206
  editor: e,
11207
11207
  from: d,
11208
11208
  to: f,
@@ -11215,7 +11215,7 @@ function yM(t) {
11215
11215
  },
11216
11216
  props: {
11217
11217
  handleTextInput(o, s, i, a) {
11218
- return Ai({
11218
+ return Ei({
11219
11219
  editor: e,
11220
11220
  from: s,
11221
11221
  to: i,
@@ -11227,7 +11227,7 @@ function yM(t) {
11227
11227
  handleDOMEvents: {
11228
11228
  compositionend: (o) => (setTimeout(() => {
11229
11229
  const { $cursor: s } = o.state.selection;
11230
- s && Ai({
11230
+ s && Ei({
11231
11231
  editor: e,
11232
11232
  from: s.pos,
11233
11233
  to: s.pos,
@@ -11243,7 +11243,7 @@ function yM(t) {
11243
11243
  if (s.key !== "Enter")
11244
11244
  return !1;
11245
11245
  const { $cursor: i } = o.state.selection;
11246
- return i ? Ai({
11246
+ return i ? Ei({
11247
11247
  editor: e,
11248
11248
  from: i.pos,
11249
11249
  to: i.pos,
@@ -11262,13 +11262,13 @@ function yM(t) {
11262
11262
  function bM(t) {
11263
11263
  return Object.prototype.toString.call(t).slice(8, -1);
11264
11264
  }
11265
- function Ei(t) {
11265
+ function Mi(t) {
11266
11266
  return bM(t) !== "Object" ? !1 : t.constructor === Object && Object.getPrototypeOf(t) === Object.prototype;
11267
11267
  }
11268
11268
  function t0(t, e) {
11269
11269
  const n = { ...t };
11270
- return Ei(t) && Ei(e) && Object.keys(e).forEach((r) => {
11271
- Ei(e[r]) && Ei(t[r]) ? n[r] = t0(t[r], e[r]) : n[r] = e[r];
11270
+ return Mi(t) && Mi(e) && Object.keys(e).forEach((r) => {
11271
+ Mi(e[r]) && Mi(t[r]) ? n[r] = t0(t[r], e[r]) : n[r] = e[r];
11272
11272
  }), n;
11273
11273
  }
11274
11274
  var vf = class {
@@ -11390,7 +11390,7 @@ function xM(t) {
11390
11390
  });
11391
11391
  }), d.every((p) => p !== null);
11392
11392
  }
11393
- var Mi = null, kM = (t) => {
11393
+ var Ni = null, kM = (t) => {
11394
11394
  var e;
11395
11395
  const n = new ClipboardEvent("paste", {
11396
11396
  clipboardData: new DataTransfer()
@@ -11438,9 +11438,9 @@ function CM(t) {
11438
11438
  view(d) {
11439
11439
  const f = (h) => {
11440
11440
  var m;
11441
- r = (m = d.dom.parentElement) != null && m.contains(h.target) ? d.dom.parentElement : null, r && (Mi = e);
11441
+ r = (m = d.dom.parentElement) != null && m.contains(h.target) ? d.dom.parentElement : null, r && (Ni = e);
11442
11442
  }, p = () => {
11443
- Mi && (Mi = null);
11443
+ Ni && (Ni = null);
11444
11444
  };
11445
11445
  return window.addEventListener("dragstart", f), window.addEventListener("dragend", p), {
11446
11446
  destroy() {
@@ -11452,7 +11452,7 @@ function CM(t) {
11452
11452
  handleDOMEvents: {
11453
11453
  drop: (d, f) => {
11454
11454
  if (s = r === d.dom.parentElement, a = f, !s) {
11455
- const p = Mi;
11455
+ const p = Ni;
11456
11456
  p != null && p.isEditable && setTimeout(() => {
11457
11457
  const h = p.state.selection;
11458
11458
  h && p.commands.deleteRange({ from: h.from, to: h.to });
@@ -11473,7 +11473,7 @@ function CM(t) {
11473
11473
  return;
11474
11474
  if (v) {
11475
11475
  let { text: x } = y;
11476
- typeof x == "string" ? x = x : x = fi(_.from(x), p.schema);
11476
+ typeof x == "string" ? x = x : x = pi(_.from(x), p.schema);
11477
11477
  const { from: S } = y, k = S + x.length, N = kM(x);
11478
11478
  return l({
11479
11479
  rule: u,
@@ -11604,7 +11604,7 @@ var zl = class {
11604
11604
  if (!i)
11605
11605
  return [];
11606
11606
  const a = (l, c, u, d, f) => {
11607
- const p = Ks(l, r);
11607
+ const p = Gs(l, r);
11608
11608
  return i({
11609
11609
  // pass-through
11610
11610
  node: l,
@@ -11636,7 +11636,7 @@ var zl = class {
11636
11636
  if (!s)
11637
11637
  return [];
11638
11638
  const i = (a, l, c) => {
11639
- const u = Ks(a, r);
11639
+ const u = Gs(a, r);
11640
11640
  return s()({
11641
11641
  // pass-through
11642
11642
  mark: a,
@@ -11745,7 +11745,7 @@ var J = class r0 extends vf {
11745
11745
  name: "commands",
11746
11746
  addCommands() {
11747
11747
  return {
11748
- ...Ws
11748
+ ...qs
11749
11749
  };
11750
11750
  }
11751
11751
  }), i0 = J.create({
@@ -12586,7 +12586,7 @@ var Hl = class extends mM {
12586
12586
  * Get the document as HTML.
12587
12587
  */
12588
12588
  getHTML() {
12589
- return fi(this.state.doc.content, this.schema);
12589
+ return pi(this.state.doc.content, this.schema);
12590
12590
  }
12591
12591
  /**
12592
12592
  * Get the document as text.
@@ -14039,7 +14039,7 @@ var eN = class extends _M {
14039
14039
  if (this.options.attrs) {
14040
14040
  let t = {};
14041
14041
  if (typeof this.options.attrs == "function") {
14042
- const e = this.editor.extensionManager.attributes, n = Ks(this.node, e);
14042
+ const e = this.editor.extensionManager.attributes, n = Gs(this.node, e);
14043
14043
  t = this.options.attrs({ node: this.node, HTMLAttributes: n });
14044
14044
  } else
14045
14045
  t = this.options.attrs;
@@ -14979,7 +14979,7 @@ function mm(t, e, n) {
14979
14979
  }
14980
14980
  return !0;
14981
14981
  }
14982
- function Gs(t, e) {
14982
+ function Ys(t, e) {
14983
14983
  return e = e || { useDeprecatedLogic: !1 }, e.useDeprecatedLogic ? MN(t) : function(n, r) {
14984
14984
  if (!wn(n)) return !1;
14985
14985
  if (r) {
@@ -15006,13 +15006,13 @@ function Gs(t, e) {
15006
15006
  return !0;
15007
15007
  };
15008
15008
  }
15009
- Gs("row", {
15009
+ Ys("row", {
15010
15010
  useDeprecatedLogic: !0
15011
15011
  });
15012
- Gs("column", {
15012
+ Ys("column", {
15013
15013
  useDeprecatedLogic: !0
15014
15014
  });
15015
- var NN = Gs("cell", {
15015
+ var NN = Ys("cell", {
15016
15016
  useDeprecatedLogic: !0
15017
15017
  });
15018
15018
  function ON(t, e) {
@@ -15060,7 +15060,7 @@ function DN(t, e) {
15060
15060
  ), !0;
15061
15061
  return !1;
15062
15062
  }
15063
- function Ni(t, e) {
15063
+ function Oi(t, e) {
15064
15064
  const n = t.selection;
15065
15065
  if (!(n instanceof $e)) return !1;
15066
15066
  if (e) {
@@ -15272,23 +15272,23 @@ function vm(t, e, n, r, o) {
15272
15272
  ), e(d);
15273
15273
  }
15274
15274
  var _N = df({
15275
- ArrowLeft: Oi("horiz", -1),
15276
- ArrowRight: Oi("horiz", 1),
15277
- ArrowUp: Oi("vert", -1),
15278
- ArrowDown: Oi("vert", 1),
15279
- "Shift-ArrowLeft": Di("horiz", -1),
15280
- "Shift-ArrowRight": Di("horiz", 1),
15281
- "Shift-ArrowUp": Di("vert", -1),
15282
- "Shift-ArrowDown": Di("vert", 1),
15283
- Backspace: Ni,
15284
- "Mod-Backspace": Ni,
15285
- Delete: Ni,
15286
- "Mod-Delete": Ni
15275
+ ArrowLeft: Di("horiz", -1),
15276
+ ArrowRight: Di("horiz", 1),
15277
+ ArrowUp: Di("vert", -1),
15278
+ ArrowDown: Di("vert", 1),
15279
+ "Shift-ArrowLeft": Ii("horiz", -1),
15280
+ "Shift-ArrowRight": Ii("horiz", 1),
15281
+ "Shift-ArrowUp": Ii("vert", -1),
15282
+ "Shift-ArrowDown": Ii("vert", 1),
15283
+ Backspace: Oi,
15284
+ "Mod-Backspace": Oi,
15285
+ Delete: Oi,
15286
+ "Mod-Delete": Oi
15287
15287
  });
15288
15288
  function Zi(t, e, n) {
15289
15289
  return n.eq(t.selection) ? !1 : (e && e(t.tr.setSelection(n).scrollIntoView()), !0);
15290
15290
  }
15291
- function Oi(t, e) {
15291
+ function Di(t, e) {
15292
15292
  return (n, r, o) => {
15293
15293
  if (!o) return !1;
15294
15294
  const s = n.selection;
@@ -15314,7 +15314,7 @@ function Oi(t, e) {
15314
15314
  }
15315
15315
  };
15316
15316
  }
15317
- function Di(t, e) {
15317
+ function Ii(t, e) {
15318
15318
  return (n, r, o) => {
15319
15319
  if (!o) return !1;
15320
15320
  const s = n.selection;
@@ -15737,13 +15737,13 @@ function XN({
15737
15737
  }
15738
15738
  });
15739
15739
  }
15740
- const QN = /* @__PURE__ */ new Set(["bulletList", "orderedList", "taskList"]), ZN = /* @__PURE__ */ new Set(["listItem", "taskItem"]), Uu = "listToggle", O0 = (t) => !!t && QN.has(t.type.name), Ac = (t) => !!t && ZN.has(t.type.name), pi = (t) => (t == null ? void 0 : t.type.name) === "dBlock", D0 = (t, e) => {
15740
+ const QN = /* @__PURE__ */ new Set(["bulletList", "orderedList", "taskList"]), ZN = /* @__PURE__ */ new Set(["listItem", "taskItem"]), Uu = "listToggle", O0 = (t) => !!t && QN.has(t.type.name), Ac = (t) => !!t && ZN.has(t.type.name), hi = (t) => (t == null ? void 0 : t.type.name) === "dBlock", D0 = (t, e) => {
15741
15741
  for (let n = Math.min(t.depth, e.depth); n >= 1; n--)
15742
15742
  if (t.before(n) === e.before(n) && O0(t.node(n)))
15743
15743
  return { node: t.node(n), depth: n, pos: t.before(n) };
15744
15744
  return null;
15745
15745
  }, eO = (t) => {
15746
- const e = t.parent, n = pi(e.child(t.startIndex)), r = [];
15746
+ const e = t.parent, n = hi(e.child(t.startIndex)), r = [];
15747
15747
  let o = t.start;
15748
15748
  for (let s = t.startIndex; s < t.endIndex; s++) {
15749
15749
  const i = e.child(s);
@@ -15760,14 +15760,14 @@ const QN = /* @__PURE__ */ new Set(["bulletList", "orderedList", "taskList"]), Z
15760
15760
  const n = t.doc.resolve(e), r = t.doc.resolve(
15761
15761
  e + n.nodeAfter.nodeSize
15762
15762
  );
15763
- return new Fs(n, r, n.depth);
15763
+ return new zs(n, r, n.depth);
15764
15764
  }, Wu = (t) => (t.setMeta("preventDispatch", !0), !1), Ef = (t, e) => {
15765
15765
  var p, h;
15766
15766
  const n = t.selection.$from;
15767
15767
  if (n.depth < e) return;
15768
15768
  const r = n.node(e);
15769
15769
  if (!O0(r)) return;
15770
- const o = pi(n.node(e - 1)), s = o ? n.before(e) - 1 : n.before(e), i = t.doc.resolve(s), a = i.nodeAfter, l = (m) => (o ? m == null ? void 0 : m.firstChild : m) ?? null, c = o ? 2 : 1, u = i.index(), d = u + 1 < i.parent.childCount ? i.parent.child(u + 1) : null;
15770
+ const o = hi(n.node(e - 1)), s = o ? n.before(e) - 1 : n.before(e), i = t.doc.resolve(s), a = i.nodeAfter, l = (m) => (o ? m == null ? void 0 : m.firstChild : m) ?? null, c = o ? 2 : 1, u = i.index(), d = u + 1 < i.parent.childCount ? i.parent.child(u + 1) : null;
15771
15771
  d && ((p = l(d)) == null ? void 0 : p.type) === r.type && t.join(s + a.nodeSize, c);
15772
15772
  const f = i.nodeBefore;
15773
15773
  f && ((h = l(f)) == null ? void 0 : h.type) === r.type && t.join(s, c);
@@ -15802,7 +15802,7 @@ const QN = /* @__PURE__ */ new Set(["bulletList", "orderedList", "taskList"]), Z
15802
15802
  t.setNodeMarkup(u, void 0, { ...d.attrs, ...f });
15803
15803
  }));
15804
15804
  }, rO = (t, e, n) => (t.setNodeMarkup(e.pos, n), Ef(t, e.depth), !0), oO = (t, e, n, r, o, s) => {
15805
- const { node: i, depth: a, pos: l } = e, c = pi(t.doc.resolve(l).parent) ? 2 : 1, u = s.name === "taskItem";
15805
+ const { node: i, depth: a, pos: l } = e, c = hi(t.doc.resolve(l).parent) ? 2 : 1, u = s.name === "taskItem";
15806
15806
  for (let p = r; p >= n; p--) {
15807
15807
  const h = va(i, l, p), m = t.doc.nodeAt(h), g = I0(t, h, c), y = g - 1;
15808
15808
  u && Mf(t, g, m);
@@ -15849,7 +15849,7 @@ const QN = /* @__PURE__ */ new Set(["bulletList", "orderedList", "taskList"]), Z
15849
15849
  )
15850
15850
  );
15851
15851
  }, iO = (t, e, n, r, o) => {
15852
- const { node: s, depth: i, pos: a } = e, l = pi(t.doc.resolve(a).parent), c = l ? 2 : 1, u = l ? i - 2 : i - 1, d = l ? o : null;
15852
+ const { node: s, depth: i, pos: a } = e, l = hi(t.doc.resolve(a).parent), c = l ? 2 : 1, u = l ? i - 2 : i - 1, d = l ? o : null;
15853
15853
  for (let f = r; f >= n; f--) {
15854
15854
  const p = va(s, a, f), h = t.doc.nodeAt(p);
15855
15855
  Mf(t, p, h);
@@ -15869,7 +15869,7 @@ const QN = /* @__PURE__ */ new Set(["bulletList", "orderedList", "taskList"]), Z
15869
15869
  const c = va(e.node, e.pos, l);
15870
15870
  Mf(a, c, a.doc.nodeAt(c));
15871
15871
  }
15872
- return Ws.liftListItem(i)(t) || Wu(a);
15872
+ return qs.liftListItem(i)(t) || Wu(a);
15873
15873
  }, lO = /* @__PURE__ */ new Set(["paragraph", "heading"]), cO = (t, e) => Object.fromEntries(
15874
15874
  Object.entries(t.attrs).filter(
15875
15875
  ([n]) => n in (e.spec.attrs ?? {})
@@ -15878,7 +15878,7 @@ const QN = /* @__PURE__ */ new Set(["bulletList", "orderedList", "taskList"]), Z
15878
15878
  const { blocks: o, throughDBlock: s } = eO(e);
15879
15879
  if (!o.every((l) => lO.has(l.node.type.name)))
15880
15880
  return !1;
15881
- const i = s || pi(e.parent) ? 2 : 1;
15881
+ const i = s || hi(e.parent) ? 2 : 1;
15882
15882
  for (const l of [...o].reverse()) {
15883
15883
  let c = t.doc.nodeAt(l.pos);
15884
15884
  c.type.name === "heading" && (t.setBlockType(
@@ -16242,7 +16242,7 @@ function IO(t) {
16242
16242
  return !e || !Rf.has(e) ? Promise.resolve() : document.fonts.load(`16px "${e}"`).catch(() => {
16243
16243
  });
16244
16244
  }
16245
- const Se = new Z("y-sync"), Dn = new Z("y-undo"), Ii = new Z("yjs-cursor"), RO = (t) => {
16245
+ const Se = new Z("y-sync"), Dn = new Z("y-undo"), Ri = new Z("yjs-cursor"), RO = (t) => {
16246
16246
  for (let n = 6; n < t.length; n++)
16247
16247
  t[n % 6] = t[n % 6] ^ t[n];
16248
16248
  return t.slice(0, 6);
@@ -16752,11 +16752,11 @@ const $0 = (t, e, n, r, o, s) => {
16752
16752
  )) == null ? void 0 : u.attrs) : !1;
16753
16753
  })
16754
16754
  );
16755
- }, Ys = (t, e) => {
16755
+ }, Js = (t, e) => {
16756
16756
  if (t instanceof j.XmlElement && !(e instanceof Array) && Ju(t, e)) {
16757
16757
  const n = Vl(e);
16758
16758
  return t._length === n.length && Pf(t.getAttributes(), e.attrs) && t.toArray().every(
16759
- (r, o) => Ys(r, n[o])
16759
+ (r, o) => Js(r, n[o])
16760
16760
  );
16761
16761
  }
16762
16762
  return t instanceof j.XmlText && e instanceof Array && F0(t, e);
@@ -16769,14 +16769,14 @@ const $0 = (t, e, n, r, o, s) => {
16769
16769
  const d = r[l], f = o[l];
16770
16770
  if (Sa(n.mapping.get(d), f))
16771
16771
  u = !0;
16772
- else if (!Ys(d, f))
16772
+ else if (!Js(d, f))
16773
16773
  break;
16774
16774
  }
16775
16775
  for (; l + c < a; c++) {
16776
16776
  const d = r[i - c - 1], f = o[s - c - 1];
16777
16777
  if (Sa(n.mapping.get(d), f))
16778
16778
  u = !0;
16779
- else if (!Ys(d, f))
16779
+ else if (!Js(d, f))
16780
16780
  break;
16781
16781
  }
16782
16782
  return {
@@ -16838,7 +16838,7 @@ const $0 = (t, e, n, r, o, s) => {
16838
16838
  for (; c < l; c++) {
16839
16839
  const d = i[c], f = o[c];
16840
16840
  if (!Sa(r.mapping.get(d), f))
16841
- if (Ys(d, f))
16841
+ if (Js(d, f))
16842
16842
  r.mapping.set(d, f);
16843
16843
  else
16844
16844
  break;
@@ -16846,7 +16846,7 @@ const $0 = (t, e, n, r, o, s) => {
16846
16846
  for (; u + c + 1 < l; u++) {
16847
16847
  const d = i[a - u - 1], f = o[s - u - 1];
16848
16848
  if (!Sa(r.mapping.get(d), f))
16849
- if (Ys(d, f))
16849
+ if (Js(d, f))
16850
16850
  r.mapping.set(d, f);
16851
16851
  else
16852
16852
  break;
@@ -16902,20 +16902,20 @@ const $0 = (t, e, n, r, o, s) => {
16902
16902
  }
16903
16903
  }, Se);
16904
16904
  }, Ju = (t, e) => !(e instanceof Array) && t.nodeName === e.type.name;
16905
- let Ts = null;
16905
+ let As = null;
16906
16906
  const GO = () => {
16907
16907
  const t = (
16908
16908
  /** @type {Map<EditorView, Map<any, any>>} */
16909
- Ts
16909
+ As
16910
16910
  );
16911
- Ts = null, t.forEach((e, n) => {
16911
+ As = null, t.forEach((e, n) => {
16912
16912
  const r = n.state.tr, o = Se.getState(n.state);
16913
16913
  o && o.binding && !o.binding.isDestroyed && (e.forEach((s, i) => {
16914
16914
  r.setMeta(i, s);
16915
16915
  }), n.dispatch(r));
16916
16916
  });
16917
16917
  }, YO = (t, e, n) => {
16918
- Ts || (Ts = /* @__PURE__ */ new Map(), Ud.timeout(0, GO)), du.setIfUndefined(Ts, t, du.create).set(e, n);
16918
+ As || (As = /* @__PURE__ */ new Map(), Ud.timeout(0, GO)), du.setIfUndefined(As, t, du.create).set(e, n);
16919
16919
  }, mo = (t, e, n) => {
16920
16920
  if (t === 0)
16921
16921
  return j.createRelativePositionFromTypeIndex(e, 0, -1);
@@ -17112,7 +17112,7 @@ const QO = (t, e, n) => t !== e, ZO = (t) => {
17112
17112
  selectionBuilder: r = eD,
17113
17113
  getSelection: o = (i) => i.selection
17114
17114
  } = {}, s = "cursor") => new Y({
17115
- key: Ii,
17115
+ key: Ri,
17116
17116
  state: {
17117
17117
  init(i, a) {
17118
17118
  return Dm(
@@ -17124,7 +17124,7 @@ const QO = (t, e, n) => t !== e, ZO = (t) => {
17124
17124
  );
17125
17125
  },
17126
17126
  apply(i, a, l, c) {
17127
- const u = Se.getState(c), d = i.getMeta(Ii);
17127
+ const u = Se.getState(c), d = i.getMeta(Ri);
17128
17128
  return u && u.isChangeOrigin || d && d.awarenessUpdated ? Dm(
17129
17129
  c,
17130
17130
  t,
@@ -17135,11 +17135,11 @@ const QO = (t, e, n) => t !== e, ZO = (t) => {
17135
17135
  }
17136
17136
  },
17137
17137
  props: {
17138
- decorations: (i) => Ii.getState(i)
17138
+ decorations: (i) => Ri.getState(i)
17139
17139
  },
17140
17140
  view: (i) => {
17141
17141
  const a = () => {
17142
- i.docView && YO(i, Ii, { awarenessUpdated: !0 });
17142
+ i.docView && YO(i, Ri, { awarenessUpdated: !0 });
17143
17143
  }, l = () => {
17144
17144
  const c = Se.getState(i.state), u = t.getLocalState() || {};
17145
17145
  if (i.hasFocus()) {
@@ -17367,7 +17367,7 @@ const Im = {
17367
17367
  oldCaret: o,
17368
17368
  pending: Rm(t, e.pending, r, n)
17369
17369
  };
17370
- }, Ri = new Z(
17370
+ }, Li = new Z(
17371
17371
  "paragraphSpacingListExit"
17372
17372
  ), pD = (t) => {
17373
17373
  for (let e = t.depth - 1; e > 0; e--) {
@@ -17531,11 +17531,11 @@ const Im = {
17531
17531
  // item that owned the spacing; BlockId's appended setNodeMarkup then
17532
17532
  // replaces the node object — so capture by identity, apply by position.
17533
17533
  new Y({
17534
- key: Ri,
17534
+ key: Li,
17535
17535
  state: {
17536
17536
  init: () => null,
17537
17537
  apply: (t, e, n, r) => {
17538
- if (t.getMeta(Ri) === "applied" || t.getMeta(Uu)) return null;
17538
+ if (t.getMeta(Li) === "applied" || t.getMeta(Uu)) return null;
17539
17539
  if (!H0(t))
17540
17540
  return e && { ...e, pos: t.mapping.map(e.pos) };
17541
17541
  if (!t.docChanged || !j0(t)) return null;
@@ -17549,14 +17549,14 @@ const Im = {
17549
17549
  }
17550
17550
  },
17551
17551
  appendTransaction: (t, e, n) => {
17552
- const r = Ri.getState(n);
17552
+ const r = Li.getState(n);
17553
17553
  if (!r) return null;
17554
17554
  const o = n.doc.nodeAt(r.pos);
17555
17555
  return !(o != null && o.isTextblock) || o.attrs.spaceBefore !== null || o.attrs.spaceAfter !== null ? null : n.tr.setNodeMarkup(r.pos, void 0, {
17556
17556
  ...o.attrs,
17557
17557
  spaceBefore: r.spaceBefore,
17558
17558
  spaceAfter: r.spaceAfter
17559
- }).setMeta(Ri, "applied");
17559
+ }).setMeta(Li, "applied");
17560
17560
  }
17561
17561
  })
17562
17562
  ];
@@ -17573,7 +17573,7 @@ const Im = {
17573
17573
  if (!t) return null;
17574
17574
  const e = /^(-?\d*\.?\d+)pt$/.exec(t.trim());
17575
17575
  return e ? Number.parseFloat(e[1]) : null;
17576
- }, _m = (t, e) => typeof e == "number" ? { style: `${t}: ${e}pt` } : {}, Js = [
17576
+ }, _m = (t, e) => typeof e == "number" ? { style: `${t}: ${e}pt` } : {}, Xs = [
17577
17577
  8,
17578
17578
  9,
17579
17579
  10,
@@ -17604,7 +17604,7 @@ const Im = {
17604
17604
  "Times New Roman": "Times New Roman, serif",
17605
17605
  "Trebuchet MS": "Trebuchet MS, sans-serif",
17606
17606
  Verdana: "Verdana, Geneva, sans-serif"
17607
- }, mD = (t) => U0[t] ?? t, W0 = (t) => Js.map((e) => ({
17607
+ }, mD = (t) => U0[t] ?? t, W0 = (t) => Xs.map((e) => ({
17608
17608
  title: `${e}`,
17609
17609
  value: `${e}px`,
17610
17610
  label: e.toString(),
@@ -17759,7 +17759,7 @@ const X0 = (t) => yl(t).buffer, Ta = (t) => {
17759
17759
  } catch (o) {
17760
17760
  console.error("Error decrypting and displaying the image:", o);
17761
17761
  }
17762
- }, Li = (t) => {
17762
+ }, Pi = (t) => {
17763
17763
  if (!t) return !1;
17764
17764
  const e = t.trim();
17765
17765
  return e === "" || e.includes("%") ? !1 : parseFloat(e) > 0;
@@ -17774,12 +17774,12 @@ const X0 = (t) => yl(t).buffer, Ta = (t) => {
17774
17774
  if (!n || n.nodeName.toLowerCase() !== "svg" || e.getElementsByTagName("parsererror").length > 0)
17775
17775
  return null;
17776
17776
  const r = n.getAttribute("width"), o = n.getAttribute("height");
17777
- if (Li(r) && Li(o))
17777
+ if (Pi(r) && Pi(o))
17778
17778
  return null;
17779
17779
  const s = (n.getAttribute("viewBox") || "").trim().split(/[\s,]+/), i = parseFloat(s[2]), a = parseFloat(s[3]);
17780
17780
  if (!(i > 0) || !(a > 0)) return null;
17781
17781
  let l, c;
17782
- return Li(r) ? (l = parseFloat(r), c = l * a / i) : Li(o) ? (c = parseFloat(o), l = c * i / a) : (l = i, c = a), n.setAttribute("width", $m(l)), n.setAttribute("height", $m(c)), new XMLSerializer().serializeToString(n);
17782
+ return Pi(r) ? (l = parseFloat(r), c = l * a / i) : Pi(o) ? (c = parseFloat(o), l = c * i / a) : (l = i, c = a), n.setAttribute("width", $m(l)), n.setAttribute("height", $m(c)), new XMLSerializer().serializeToString(n);
17783
17783
  }, ew = (t) => typeof t.text == "function" ? t.text() : new Promise((e, n) => {
17784
17784
  const r = new FileReader();
17785
17785
  r.onload = () => e(r.result), r.onerror = () => n(r.error), r.readAsText(t);
@@ -17791,7 +17791,7 @@ const X0 = (t) => yl(t).buffer, Ta = (t) => {
17791
17791
  } catch {
17792
17792
  return t;
17793
17793
  }
17794
- }, Xs = new Z("upload-image"), nw = /* @__PURE__ */ new WeakSet(), MD = (t, e) => {
17794
+ }, Qs = new Z("upload-image"), nw = /* @__PURE__ */ new WeakSet(), MD = (t, e) => {
17795
17795
  const n = t.content.findDiffStart(e.content);
17796
17796
  if (n == null) return new Nn();
17797
17797
  const r = t.content.findDiffEnd(e.content);
@@ -17800,7 +17800,7 @@ const X0 = (t) => yl(t).buffer, Ta = (t) => {
17800
17800
  const i = n - Math.min(o, s);
17801
17801
  return i > 0 && (o += i, s += i), new Nn([new xt([n, o - n, s - n])]);
17802
17802
  }, ND = () => new Y({
17803
- key: Xs,
17803
+ key: Qs,
17804
17804
  state: {
17805
17805
  init() {
17806
17806
  return le.empty;
@@ -17843,14 +17843,14 @@ const X0 = (t) => yl(t).buffer, Ta = (t) => {
17843
17843
  }
17844
17844
  });
17845
17845
  function rw(t, e) {
17846
- const r = Xs.getState(t).find(null, null, (o) => o.id == e);
17846
+ const r = Qs.getState(t).find(null, null, (o) => o.id == e);
17847
17847
  return r.length ? r[0].from : null;
17848
17848
  }
17849
17849
  function OD(t, e, n) {
17850
17850
  const r = rw(t.state, e);
17851
17851
  if (r == null) return !1;
17852
17852
  const o = t.state.tr, s = t.state.doc.resolve(r), i = s.parent;
17853
- return i.isTextblock && i.content.size === 0 ? o.replaceWith(s.before(), s.after(), n) : o.replaceRangeWith(r, r, n), o.setMeta(Xs, { remove: { id: e } }), t.dispatch(o), !0;
17853
+ return i.isTextblock && i.content.size === 0 ? o.replaceWith(s.before(), s.after(), n) : o.replaceRangeWith(r, r, n), o.setMeta(Qs, { remove: { id: e } }), t.dispatch(o), !0;
17854
17854
  }
17855
17855
  function Fm(t, e, n) {
17856
17856
  if (t.isDestroyed) {
@@ -17861,7 +17861,7 @@ function Fm(t, e, n) {
17861
17861
  const { $to: r } = t.state.selection, o = r.depth > 0 ? r.after(1) : r.pos;
17862
17862
  t.dispatch(t.state.tr.replaceRangeWith(o, o, n));
17863
17863
  }
17864
- async function Qs(t, e, n, r, { replaceSelection: o = !0 } = {}) {
17864
+ async function Zs(t, e, n, r, { replaceSelection: o = !0 } = {}) {
17865
17865
  if (!t.type.includes("image/")) {
17866
17866
  console.log("file is not an image");
17867
17867
  return;
@@ -17869,7 +17869,7 @@ async function Qs(t, e, n, r, { replaceSelection: o = !0 } = {}) {
17869
17869
  const s = {};
17870
17870
  try {
17871
17871
  const i = e.state.tr;
17872
- o && !i.selection.empty && i.deleteSelection(), i.setMeta(Xs, {
17872
+ o && !i.selection.empty && i.deleteSelection(), i.setMeta(Qs, {
17873
17873
  add: {
17874
17874
  id: s,
17875
17875
  pos: n - 1,
@@ -17904,11 +17904,11 @@ async function Qs(t, e, n, r, { replaceSelection: o = !0 } = {}) {
17904
17904
  }
17905
17905
  } catch (i) {
17906
17906
  console.error("Error during image upload: ", i);
17907
- const a = e.state.tr.setMeta(Xs, { remove: { id: s } });
17907
+ const a = e.state.tr.setMeta(Qs, { remove: { id: s } });
17908
17908
  e.dispatch(a);
17909
17909
  }
17910
17910
  }
17911
- const Zs = (t, e) => t.type.includes("image") && !["image/png", "image/jpeg", "image/gif", "image/svg+xml"].includes(
17911
+ const ei = (t, e) => t.type.includes("image") && !["image/png", "image/jpeg", "image/gif", "image/svg+xml"].includes(
17912
17912
  t.type
17913
17913
  ) ? (e && typeof e == "function" && e("Invalid image type. Try PNG, JPEG, GIF or SVG."), !1) : !0, Qu = (t, e) => {
17914
17914
  const { $from: n } = t.selection, r = n.parent;
@@ -18040,11 +18040,11 @@ const Zs = (t, e) => t.type.includes("image") && !["image/png", "image/jpeg", "i
18040
18040
  return {
18041
18041
  // A `can()` probe has no dispatch and never declares, so it needs no capture.
18042
18042
  splitBlock: (t) => (e) => {
18043
- const n = e.dispatch && (t == null ? void 0 : t.keepMarks) !== !1 ? Qu(e.tr, e.editor) : null, r = Ws.splitBlock(t)(e);
18043
+ const n = e.dispatch && (t == null ? void 0 : t.keepMarks) !== !1 ? Qu(e.tr, e.editor) : null, r = qs.splitBlock(t)(e);
18044
18044
  return r && n && Aa(e.tr, n), r;
18045
18045
  },
18046
18046
  splitListItem: (t, e) => (n) => {
18047
- const r = n.dispatch ? Qu(n.tr, n.editor) : null, o = Ws.splitListItem(t, e)(n);
18047
+ const r = n.dispatch ? Qu(n.tr, n.editor) : null, o = qs.splitListItem(t, e)(n);
18048
18048
  return o && r && Aa(n.tr, r), o;
18049
18049
  }
18050
18050
  };
@@ -18059,7 +18059,7 @@ const Zs = (t, e) => t.type.includes("image") && !["image/png", "image/jpeg", "i
18059
18059
  var o;
18060
18060
  if ((o = r.files) != null && o.length) {
18061
18061
  const s = r.files[0];
18062
- if (!Zs(s, e))
18062
+ if (!ei(s, e))
18063
18063
  return;
18064
18064
  const i = s.size, a = n ? xr.Extended : xr.Base;
18065
18065
  if (i > a.maxSize) {
@@ -18067,7 +18067,7 @@ const Zs = (t, e) => t.type.includes("image") && !["image/png", "image/jpeg", "i
18067
18067
  return;
18068
18068
  }
18069
18069
  const l = t.view.state.selection.from;
18070
- Qs(s, t.view, l, n);
18070
+ Zs(s, t.view, l, n);
18071
18071
  }
18072
18072
  }, r.click();
18073
18073
  }, vt = (t, e) => {
@@ -18609,7 +18609,7 @@ function Ma(t, e, n) {
18609
18609
  (d, f) => c !== null ? !1 : d.isTextblock && f >= l ? (c = f + 1, !1) : !0
18610
18610
  ), c;
18611
18611
  }
18612
- function As(t, e) {
18612
+ function Es(t, e) {
18613
18613
  return t.isSuggestion && t.suggestionType === "add" ? nn(t, e) !== null : wt(t, e) !== null;
18614
18614
  }
18615
18615
  function rI(t, e) {
@@ -19103,7 +19103,7 @@ const MU = J.create({
19103
19103
  ];
19104
19104
  }
19105
19105
  });
19106
- function Es(t, e, n) {
19106
+ function Ms(t, e, n) {
19107
19107
  return pw(t.state, e, n);
19108
19108
  }
19109
19109
  function ed(t, e, n = -1) {
@@ -19468,7 +19468,7 @@ const jr = new Z(
19468
19468
  }), n && o.forEach((s) => {
19469
19469
  Na(s, !0);
19470
19470
  });
19471
- }, gs = (t, e) => {
19471
+ }, ys = (t, e) => {
19472
19472
  const n = t.storage.comment;
19473
19473
  if (!n || !e) return !1;
19474
19474
  const r = n.activeCommentId;
@@ -19675,13 +19675,13 @@ const jr = new Z(
19675
19675
  // Public API. In-package callers use setActiveComment /
19676
19676
  // clearActiveComment directly so they do not pay for a dispatch; these
19677
19677
  // keep working for anyone who calls or chains the commands.
19678
- setCommentActive: (t) => () => gs(this.editor, t),
19678
+ setCommentActive: (t) => () => ys(this.editor, t),
19679
19679
  unsetCommentActive: () => () => No(this.editor),
19680
19680
  setDraftComment: (t) => ({ state: e, tr: n, dispatch: r }) => {
19681
19681
  if (!t || e.selection.empty) return !1;
19682
19682
  const { from: o, to: s } = e.selection;
19683
19683
  if (o >= s) return !1;
19684
- const i = Es(
19684
+ const i = Ms(
19685
19685
  this.editor,
19686
19686
  o,
19687
19687
  s
@@ -19928,7 +19928,7 @@ function ww(t, e, n) {
19928
19928
  function eg(t) {
19929
19929
  return t.hadDeletion && t.insertedText.length === 0;
19930
19930
  }
19931
- function ys(t, e, n, r, o) {
19931
+ function bs(t, e, n, r, o) {
19932
19932
  t({
19933
19933
  drafts: e,
19934
19934
  floatingCards: n,
@@ -19958,7 +19958,7 @@ function tg({
19958
19958
  to: a,
19959
19959
  collapseTo: l
19960
19960
  }) {
19961
- const c = Es(o, i, a);
19961
+ const c = Ms(o, i, a);
19962
19962
  if (!c) return !1;
19963
19963
  const u = o.state.doc.textBetween(i, a, `
19964
19964
  `), d = {
@@ -19969,7 +19969,7 @@ function tg({
19969
19969
  }, f = { ...e, [r.id]: d }, p = n.map(
19970
19970
  (m) => m.type === "suggestion-draft" && m.suggestionId === r.id ? { ...m, selectedText: u } : m
19971
19971
  );
19972
- ys(
19972
+ bs(
19973
19973
  t,
19974
19974
  f,
19975
19975
  p,
@@ -20031,7 +20031,7 @@ const xw = "inlineCommentExplicitFocus", ng = (t, e) => t.map((n) => ({
20031
20031
  decorationAnchorById: e,
20032
20032
  commentAnchorsRef: n
20033
20033
  });
20034
- return !!(o && !o.deleted && !o.resolved && As(o, r.state));
20034
+ return !!(o && !o.deleted && !o.resolved && Es(o, r.state));
20035
20035
  }, og = ({
20036
20036
  comment: t,
20037
20037
  decorationAnchorById: e,
@@ -20049,10 +20049,10 @@ const xw = "inlineCommentExplicitFocus", ng = (t, e) => t.map((n) => ({
20049
20049
  commentAnchorsRef: n
20050
20050
  });
20051
20051
  if (i)
20052
- return i.deleted || i.resolved ? !1 : As(i, r.state);
20052
+ return i.deleted || i.resolved ? !1 : Es(i, r.state);
20053
20053
  }
20054
20054
  return !!((s = r.view) != null && s.dom.querySelector(zI(o)));
20055
- }, jI = (t, e) => !e || t.includes(e) ? t : [...t, e], Pi = (t, e) => {
20055
+ }, jI = (t, e) => !e || t.includes(e) ? t : [...t, e], _i = (t, e) => {
20056
20056
  const n = /* @__PURE__ */ new Set();
20057
20057
  for (const o of e)
20058
20058
  o && n.add(o);
@@ -20217,7 +20217,7 @@ const qI = () => T1((t, e) => ({
20217
20217
  openReplyId: p,
20218
20218
  // External comment rehydration is the handoff point. Once the comment
20219
20219
  // arrives through props, stop treating it as a local preserve exception.
20220
- pendingPrehydrationFloatingThreadIds: Pi(
20220
+ pendingPrehydrationFloatingThreadIds: _i(
20221
20221
  l,
20222
20222
  h
20223
20223
  )
@@ -20563,7 +20563,7 @@ const qI = () => T1((t, e) => ({
20563
20563
  }
20564
20564
  let v = null;
20565
20565
  if (l && y && f) {
20566
- const b = Es(
20566
+ const b = Ms(
20567
20567
  l,
20568
20568
  y.from,
20569
20569
  y.to
@@ -20651,14 +20651,14 @@ const qI = () => T1((t, e) => ({
20651
20651
  });
20652
20652
  t({
20653
20653
  floatingCards: a
20654
- }), o(n), gs(r, n);
20654
+ }), o(n), ys(r, n);
20655
20655
  },
20656
20656
  focusSubmittedSuggestionFromEditor: (n) => {
20657
20657
  var a;
20658
20658
  const { editor: r, setActiveCommentId: o } = he(e), s = e(), i = s.tabComments.find(
20659
20659
  (l) => l.id === n && l.isSuggestion && !l.deleted && !l.resolved
20660
20660
  );
20661
- return !r || !i ? !1 : s.isDesktopFloatingEnabled ? (s.setActiveCommentId(n), o(n), s.openFloatingThread(n), !0) : (s.setActiveCommentId(n), o(n), gs(r, n), t({
20661
+ return !r || !i ? !1 : s.isDesktopFloatingEnabled ? (s.setActiveCommentId(n), o(n), s.openFloatingThread(n), !0) : (s.setActiveCommentId(n), o(n), ys(r, n), t({
20662
20662
  openReplyId: n
20663
20663
  }), (a = s.setCommentDrawerOpen) == null || a.call(s, !0), !0);
20664
20664
  },
@@ -20696,7 +20696,7 @@ const qI = () => T1((t, e) => ({
20696
20696
  n
20697
20697
  )
20698
20698
  })), s.type === "thread") {
20699
- e().setActiveCommentId(s.commentId), o(s.commentId), gs(r, s.commentId);
20699
+ e().setActiveCommentId(s.commentId), o(s.commentId), ys(r, s.commentId);
20700
20700
  return;
20701
20701
  }
20702
20702
  e().setActiveCommentId(null), o(null), No(r);
@@ -20768,7 +20768,7 @@ const qI = () => T1((t, e) => ({
20768
20768
  tabId: a,
20769
20769
  selectedContent: g.selectedText
20770
20770
  }));
20771
- const v = Pi(
20771
+ const v = _i(
20772
20772
  u,
20773
20773
  h
20774
20774
  ), C = v !== u, b = WI(l), x = (b && f.has(b) ? b : null) ?? (i && f.has(i) ? i : null), S = !!(b && !f.has(b)), k = !!(i && UI(l, i) && !f.has(i)), N = /* @__PURE__ */ new Set(), T = [];
@@ -20902,7 +20902,7 @@ const qI = () => T1((t, e) => ({
20902
20902
  ),
20903
20903
  // Local resolves can happen before props rehydrate, so remove the
20904
20904
  // temporary preserve marker immediately.
20905
- pendingPrehydrationFloatingThreadIds: Pi(
20905
+ pendingPrehydrationFloatingThreadIds: _i(
20906
20906
  l.pendingPrehydrationFloatingThreadIds,
20907
20907
  [n]
20908
20908
  )
@@ -20962,7 +20962,7 @@ const qI = () => T1((t, e) => ({
20962
20962
  ),
20963
20963
  // Deletes invalidate the prehydration exception immediately; reconcile
20964
20964
  // must not preserve a thread whose local lifecycle already ended.
20965
- pendingPrehydrationFloatingThreadIds: Pi(
20965
+ pendingPrehydrationFloatingThreadIds: _i(
20966
20966
  u.pendingPrehydrationFloatingThreadIds,
20967
20967
  [n]
20968
20968
  )
@@ -21095,7 +21095,7 @@ const qI = () => T1((t, e) => ({
21095
21095
  ...e().drafts,
21096
21096
  [u.id]: { ...u, followUpAddAfterBreak: !0 }
21097
21097
  };
21098
- ys(
21098
+ bs(
21099
21099
  t,
21100
21100
  v,
21101
21101
  e().floatingCards,
@@ -21132,7 +21132,7 @@ const qI = () => T1((t, e) => ({
21132
21132
  }, g = { ...e().drafts, [m.id]: m }, y = e().floatingCards.map(
21133
21133
  (v) => v.type === "suggestion-draft" && v.suggestionId === m.id ? { ...v, insertedText: m.insertedText } : v
21134
21134
  );
21135
- ys(
21135
+ bs(
21136
21136
  t,
21137
21137
  g,
21138
21138
  y,
@@ -21143,7 +21143,7 @@ const qI = () => T1((t, e) => ({
21143
21143
  startDeleteDraft: (n, r, o) => {
21144
21144
  const s = he(e), { editor: i, draftAnchorsRef: a } = s;
21145
21145
  if (!i || n >= r) return;
21146
- const l = Es(i, n, r);
21146
+ const l = Ms(i, n, r);
21147
21147
  if (!l) return;
21148
21148
  const c = i.state.doc.textBetween(n, r, `
21149
21149
  `), u = `suggestion-${Jt()}`, d = {
@@ -21165,7 +21165,7 @@ const qI = () => T1((t, e) => ({
21165
21165
  ...e().floatingCards.map((y) => ({ ...y, isFocused: !1 })),
21166
21166
  f
21167
21167
  ];
21168
- ys(t, p, h, a, u);
21168
+ bs(t, p, h, a, u);
21169
21169
  const m = o ?? r, g = i.state.tr.setSelection(
21170
21170
  U.near(i.state.doc.resolve(m))
21171
21171
  );
@@ -21174,7 +21174,7 @@ const qI = () => T1((t, e) => ({
21174
21174
  startLinkDraft: (n, r, o) => {
21175
21175
  const s = he(e), { editor: i, draftAnchorsRef: a } = s;
21176
21176
  if (!i || n >= r || !o) return;
21177
- const l = Es(i, n, r);
21177
+ const l = Ms(i, n, r);
21178
21178
  if (!l) return;
21179
21179
  const c = i.state.doc.textBetween(n, r, `
21180
21180
  `);
@@ -21200,7 +21200,7 @@ const qI = () => T1((t, e) => ({
21200
21200
  ...e().floatingCards.map((m) => ({ ...m, isFocused: !1 })),
21201
21201
  f
21202
21202
  ];
21203
- ys(t, p, h, a, u), ot(i);
21203
+ bs(t, p, h, a, u), ot(i);
21204
21204
  },
21205
21205
  deleteAtCursorOrUndoActiveDraft: (n) => {
21206
21206
  const r = he(e), { editor: o, draftAnchorsRef: s } = r;
@@ -21538,7 +21538,7 @@ const qI = () => T1((t, e) => ({
21538
21538
  c.to
21539
21539
  )
21540
21540
  );
21541
- (r == null ? void 0 : r.source) === "explicit-ui" && u.setMeta(xw, { commentId: n }), o.view.dispatch(u), t({ isBubbleMenuSuppressed: !0 }), gs(o, n), requestAnimationFrame(() => {
21541
+ (r == null ? void 0 : r.source) === "explicit-ui" && u.setMeta(xw, { commentId: n }), o.view.dispatch(u), t({ isBubbleMenuSuppressed: !0 }), ys(o, n), requestAnimationFrame(() => {
21542
21542
  requestAnimationFrame(() => {
21543
21543
  rd({
21544
21544
  editor: o,
@@ -21715,7 +21715,7 @@ const KI = Wd()((t) => ({
21715
21715
  if (t.isActive({ textAlign: e })) return e;
21716
21716
  return null;
21717
21717
  }, ag = (t, e) => {
21718
- const n = parseInt(eR(t), 10), r = e > 0 ? Js.find((o) => o > n) : [...Js].reverse().find((o) => o < n);
21718
+ const n = parseInt(eR(t), 10), r = e > 0 ? Xs.find((o) => o > n) : [...Xs].reverse().find((o) => o < n);
21719
21719
  r && t.chain().focus().setFontSize(`${r}px`).run();
21720
21720
  }, oR = (t, e = {}) => {
21721
21721
  const { onError: n, ipfsImageUploadFn: r } = e, o = ig(
@@ -22100,7 +22100,7 @@ const KI = Wd()((t) => ({
22100
22100
  r ? "w-full gap-0 max-h-[min(320px,var(--radix-dropdown-menu-content-available-height))]" : "gap-1 max-h-[var(--radix-dropdown-menu-content-available-height)]"
22101
22101
  ),
22102
22102
  children: o.map((s) => /* @__PURE__ */ w(
22103
- Bs,
22103
+ $s,
22104
22104
  {
22105
22105
  onMouseDown: (i) => i.preventDefault(),
22106
22106
  onClick: () => n(s.value),
@@ -22405,7 +22405,7 @@ const fR = nt.forwardRef(({ className: t, ...e }, n) => {
22405
22405
  });
22406
22406
  fR.displayName = "CarouselNext";
22407
22407
  const pR = yo(null), hR = /^\s*\(\s*(min|max)-width\s*:\s*([\d.]+)px\s*\)\s*$/, mR = () => () => {
22408
- }, _i = (t, e) => {
22408
+ }, ss = (t, e) => {
22409
22409
  const n = Or(pR), r = e ?? n, o = hb(t), s = kt(() => {
22410
22410
  const l = hR.exec(t);
22411
22411
  return l ? { bound: l[1], px: Number(l[2]) } : null;
@@ -23049,7 +23049,7 @@ const xR = (t, e = "light") => {
23049
23049
  } catch {
23050
23050
  return t;
23051
23051
  }
23052
- }, bs = 96, sd = 16, id = 20, kR = {
23052
+ }, vs = 96, sd = 16, id = 20, kR = {
23053
23053
  a4: { width: 794, height: 1123 },
23054
23054
  letter: { width: 816, height: 1056 }
23055
23055
  }, Vf = (t, e = "portrait") => {
@@ -23063,7 +23063,7 @@ class Da {
23063
23063
  me(this, "textWidth");
23064
23064
  me(this, "textHeight");
23065
23065
  const { width: r, height: o } = Vf(e, n);
23066
- this.width = r, this.height = o, this.textWidth = r - 2 * bs, this.textHeight = o - 2 * bs;
23066
+ this.width = r, this.height = o, this.textWidth = r - 2 * vs, this.textHeight = o - 2 * vs;
23067
23067
  }
23068
23068
  get cycle() {
23069
23069
  return this.height + sd;
@@ -23073,10 +23073,10 @@ class Da {
23073
23073
  return e - n * this.cycle >= this.height ? n + 1 : n;
23074
23074
  }
23075
23075
  contentTopOf(e) {
23076
- return e * this.cycle + bs;
23076
+ return e * this.cycle + vs;
23077
23077
  }
23078
23078
  contentBottomOf(e) {
23079
- return e * this.cycle + this.height - bs;
23079
+ return e * this.cycle + this.height - vs;
23080
23080
  }
23081
23081
  }
23082
23082
  const IU = ({
@@ -23829,7 +23829,7 @@ const IU = ({
23829
23829
  .${Te} .print-content-root {
23830
23830
  box-sizing: border-box;
23831
23831
  width: ${n}px;
23832
- padding: 0 ${bs}px !important;
23832
+ padding: 0 ${vs}px !important;
23833
23833
  color-scheme: light;
23834
23834
  color: #0D0D0D;
23835
23835
  background: #fff;
@@ -24186,13 +24186,13 @@ const XR = Number.POSITIVE_INFINITY, na = (t) => t.isVisible && t.isMeasured &&
24186
24186
  if (t <= 0 || e <= 0) return 1;
24187
24187
  const r = (t - n) / e, o = Math.min(tL, Math.max(eL, r));
24188
24188
  return Math.floor(o * 100 + 1e-9) / 100;
24189
- }, hi = (t) => {
24189
+ }, mi = (t) => {
24190
24190
  var n;
24191
24191
  const e = Number(
24192
24192
  (n = t == null ? void 0 : t.closest("[data-ddoc-zoom-layer]")) == null ? void 0 : n.getAttribute("data-ddoc-zoom")
24193
24193
  );
24194
24194
  return Number.isFinite(e) && e > 0 ? e : 1;
24195
- }, VU = (t, e, n, r) => t > e ? e + (t - e) * r / n : t, UU = (t) => t === 1 ? void 0 : { transform: `scale(${1 / t})`, transformOrigin: "center" }, WU = (t, e, n) => (t - (e - 1) * n / 2) / e, qU = (t, e) => -((t - 1) * e) / 2, zw = (t, e) => t / hi(e), KU = (t, e, n) => t === void 0 || !!e || !!n, iL = 181, aL = 182, lL = 24, GU = ({
24195
+ }, VU = (t, e, n, r) => t > e ? e + (t - e) * r / n : t, UU = (t) => t === 1 ? void 0 : { transform: `scale(${1 / t})`, transformOrigin: "center" }, WU = (t, e, n) => (t - (e - 1) * n / 2) / e, qU = (t, e) => -((t - 1) * e) / 2, zw = (t, e) => t / mi(e), KU = (t, e, n) => t === void 0 || !!e || !!n, iL = 181, aL = 182, lL = 24, GU = ({
24196
24196
  hasLeftRail: t,
24197
24197
  isCommentColumnVisible: e,
24198
24198
  isLandscape: n = !1,
@@ -24343,7 +24343,7 @@ const jw = "138%", dL = J.create({
24343
24343
  }
24344
24344
  };
24345
24345
  }
24346
- }), Gf = new Z("inline-ui"), ei = [], fL = () => new Y({
24346
+ }), Gf = new Z("inline-ui"), ti = [], fL = () => new Y({
24347
24347
  key: Gf,
24348
24348
  state: {
24349
24349
  init() {
@@ -24379,8 +24379,8 @@ const jw = "138%", dL = J.create({
24379
24379
  let i = null;
24380
24380
  if (!o || s.empty && o === 2) {
24381
24381
  i = document.createElement("div"), i.textContent = n;
24382
- const l = ei.length * 60;
24383
- return i.className = "py-2 px-4 animate-pulse bg-black text-white text-sm font-medium rounded text-center w-fit mx-auto z-[999] left-0 right-0 absolute transition-all", i.style.bottom = `${30 + l}px`, i.style.transform = "translateY(-1px)", ei.push(i), document.body.appendChild(i), i;
24382
+ const l = ti.length * 60;
24383
+ return i.className = "py-2 px-4 animate-pulse bg-black text-white text-sm font-medium rounded text-center w-fit mx-auto z-[999] left-0 right-0 absolute transition-all", i.style.bottom = `${30 + l}px`, i.style.transform = "translateY(-1px)", ti.push(i), document.body.appendChild(i), i;
24384
24384
  }
24385
24385
  r.setMeta(Gf, {
24386
24386
  add: {
@@ -24391,8 +24391,8 @@ const jw = "138%", dL = J.create({
24391
24391
  }), t.view.dispatch(r);
24392
24392
  }, hL = (t, e, n) => {
24393
24393
  if (n) {
24394
- const o = ei.indexOf(n);
24395
- o > -1 && ei.splice(o, 1), n.remove(), mL();
24394
+ const o = ti.indexOf(n);
24395
+ o > -1 && ti.splice(o, 1), n.remove(), mL();
24396
24396
  return;
24397
24397
  }
24398
24398
  const r = t.view.state.tr;
@@ -24402,7 +24402,7 @@ const jw = "138%", dL = J.create({
24402
24402
  }
24403
24403
  }), t.view.dispatch(r);
24404
24404
  }, mL = () => {
24405
- ei.forEach((t, e) => {
24405
+ ti.forEach((t, e) => {
24406
24406
  const n = e * 60;
24407
24407
  t.style.bottom = `${30 + n}px`;
24408
24408
  });
@@ -24865,11 +24865,11 @@ Me.addRule("table", {
24865
24865
  filter: "table",
24866
24866
  replacement: function(t, e) {
24867
24867
  const n = e, r = Array.from(n.rows), o = Array.from(r[0].cells).map((d) => {
24868
- vs = !0;
24868
+ ws = !0;
24869
24869
  try {
24870
24870
  return Me.turndown(d.innerHTML).trim();
24871
24871
  } finally {
24872
- vs = !1;
24872
+ ws = !1;
24873
24873
  }
24874
24874
  }), s = o.map((d) => d.length), i = r.slice(1).map((d) => Array.from(d.cells).map((f, p) => {
24875
24875
  let h = f.innerHTML.trim();
@@ -24884,11 +24884,11 @@ Me.addRule("table", {
24884
24884
  "</li><li>"
24885
24885
  )}</li></${m}>`;
24886
24886
  } else {
24887
- vs = !0;
24887
+ ws = !0;
24888
24888
  try {
24889
24889
  h = Me.turndown(h);
24890
24890
  } finally {
24891
- vs = !1;
24891
+ ws = !1;
24892
24892
  }
24893
24893
  }
24894
24894
  return s[p] = Math.max(
@@ -25062,7 +25062,7 @@ const Jw = (t, e, n) => {
25062
25062
  Me.addRule("img", {
25063
25063
  filter: ["img"],
25064
25064
  replacement: function(t, e) {
25065
- const n = e, r = n.getAttribute("src") || "", o = vs ? null : Jw(
25065
+ const n = e, r = n.getAttribute("src") || "", o = ws ? null : Jw(
25066
25066
  r,
25067
25067
  n.getAttribute("width"),
25068
25068
  fd(n)
@@ -25175,7 +25175,7 @@ let Zw = !1;
25175
25175
  const gg = (t) => {
25176
25176
  Zw = t;
25177
25177
  };
25178
- let vs = !1;
25178
+ let ws = !1;
25179
25179
  Me.addRule("inlineTextStyle", {
25180
25180
  filter: (t) => {
25181
25181
  var e, n, r;
@@ -25544,9 +25544,9 @@ function aP(t, e) {
25544
25544
  const s = new Blob([o], { type: e });
25545
25545
  return new File([s], "image", { type: e });
25546
25546
  }
25547
- const ss = /* @__PURE__ */ new Map(), lP = 20;
25547
+ const is = /* @__PURE__ */ new Map(), lP = 20;
25548
25548
  async function cP(t, e) {
25549
- const n = ss.get(t);
25549
+ const n = is.get(t);
25550
25550
  if (n) return n;
25551
25551
  const r = t.match(
25552
25552
  /^(data:(image\/[a-zA-Z0-9.+-]+);base64,)/
@@ -25562,7 +25562,7 @@ async function cP(t, e) {
25562
25562
  authTag: d,
25563
25563
  contentType: o
25564
25564
  };
25565
- return ss.set(t, f), ss.size > lP && ss.delete(ss.keys().next().value), f;
25565
+ return is.set(t, f), is.size > lP && is.delete(is.keys().next().value), f;
25566
25566
  }
25567
25567
  const uP = (t) => {
25568
25568
  const e = /^---\n[\s\S]*?\n---\n*/;
@@ -25944,7 +25944,7 @@ const Ic = (t) => {
25944
25944
  return ((e = t.pmViewDesc) == null ? void 0 : e.contentDOM) ?? t;
25945
25945
  };
25946
25946
  function nx(t, e) {
25947
- const n = hi(t.dom), r = t.dom.getBoundingClientRect().top, o = document.createRange(), s = [];
25947
+ const n = mi(t.dom), r = t.dom.getBoundingClientRect().top, o = document.createRange(), s = [];
25948
25948
  let i = 0;
25949
25949
  const a = (M, O) => {
25950
25950
  let E = M[O];
@@ -26533,7 +26533,7 @@ const MP = [
26533
26533
  }), !0;
26534
26534
  }), e;
26535
26535
  }, RP = (t, e) => {
26536
- const { doc: n } = t.state, r = hi(t.view.dom), o = /* @__PURE__ */ new Set();
26536
+ const { doc: n } = t.state, r = mi(t.view.dom), o = /* @__PURE__ */ new Set();
26537
26537
  e.breaks.forEach((i) => {
26538
26538
  var l;
26539
26539
  if (i.kind !== "before" || ((l = n.nodeAt(i.pos)) == null ? void 0 : l.type.name) !== "tableRow")
@@ -26629,19 +26629,20 @@ async function xg(t) {
26629
26629
  });
26630
26630
  return ad(n, r), !0;
26631
26631
  }
26632
- const is = () => {
26632
+ const as = () => {
26633
26633
  var t;
26634
26634
  return (t = R1.os) == null ? void 0 : t.family;
26635
26635
  }, ix = (t) => {
26636
- const e = _i("(max-width: 1280px)", t), n = _i("(max-width: 1023px)", t), r = _i("(max-width: 768px)", t), o = _i("(max-width: 480px)", t), s = is() === "iOS", i = is() === "Windows", a = is() === "iOS" || is() === "Android" || is() === "Windows Phone" || r;
26636
+ const e = ss("(max-width: 1280px)", t), n = ss("(max-width: 1150px)", t), r = ss("(max-width: 1023px)", t), o = ss("(max-width: 768px)", t), s = ss("(max-width: 480px)", t), i = as() === "iOS", a = as() === "Windows", l = as() === "iOS" || as() === "Android" || as() === "Windows Phone" || o;
26637
26637
  return {
26638
- isBelow1024px: n,
26638
+ isBelow1024px: r,
26639
+ isBelow1150px: n,
26639
26640
  isBelow1280px: e,
26640
- isMobileScreen: r,
26641
- isNativeMobile: a,
26642
- isIOS: s,
26643
- isMobile: o,
26644
- isWindows: i
26641
+ isMobileScreen: o,
26642
+ isNativeMobile: l,
26643
+ isIOS: i,
26644
+ isMobile: s,
26645
+ isWindows: a
26645
26646
  };
26646
26647
  }, FP = (t) => !t || t.length === 0 ? null : t.map(
26647
26648
  (e) => JSON.stringify([
@@ -26749,7 +26750,7 @@ const is = () => {
26749
26750
  [Ie, x, e]
26750
26751
  ), Fe = Xe(() => {
26751
26752
  const be = e && x ? x.current.filter(
26752
- (Ae) => !Ae.deleted && !(Ae.isSuggestion && Ae.resolved) && As(Ae, e.state)
26753
+ (Ae) => !Ae.deleted && !(Ae.isSuggestion && Ae.resolved) && Es(Ae, e.state)
26753
26754
  ).map((Ae) => Ae.id) : [], Ee = `${E}:${be.join(",")}`;
26754
26755
  (Ee !== yt.current || et.current !== E) && (yt.current = Ee, ne(new Set(be)), et.current = E, rt(E));
26755
26756
  }, [E, x, e]), At = Oe({
@@ -27005,9 +27006,9 @@ const is = () => {
27005
27006
  );
27006
27007
  lr(un);
27007
27008
  }
27008
- const Be = qe, Cn = (He == null ? void 0 : He.commentId) ?? null, xe = Cn ?? (Be == null ? void 0 : Be.id) ?? null, ur = (Cn ? He == null ? void 0 : He.resolved : void 0) ?? (Be == null ? void 0 : Be.resolved) ?? !1, NC = !!(Cn && !ur), OC = !!(Be && !Be.resolved), ec = !!xe, tc = !!xe && ur, nc = !!(G != null && G.getMeta(xw)), xi = W ? ue.floatingCards.find(
27009
+ const Be = qe, Cn = (He == null ? void 0 : He.commentId) ?? null, xe = Cn ?? (Be == null ? void 0 : Be.id) ?? null, ur = (Cn ? He == null ? void 0 : He.resolved : void 0) ?? (Be == null ? void 0 : Be.resolved) ?? !1, NC = !!(Cn && !ur), OC = !!(Be && !Be.resolved), ec = !!xe, tc = !!xe && ur, nc = !!(G != null && G.getMeta(xw)), ki = W ? ue.floatingCards.find(
27009
27010
  (un) => un.type === "thread" && un.isFocused
27010
- ) : null, _p = (xi == null ? void 0 : xi.type) === "thread" ? xi.commentId : null, Bp = !xe || (W ? !_p || _p === xe : ue.openReplyId === xe) || bt || nc, $p = !!(r && xe && bt && !nc), DC = !!(xe && !$p && Bp && W && (NC || OC)), IC = ec !== be, RC = tc !== Ee;
27011
+ ) : null, _p = (ki == null ? void 0 : ki.type) === "thread" ? ki.commentId : null, Bp = !xe || (W ? !_p || _p === xe : ue.openReplyId === xe) || bt || nc, $p = !!(r && xe && bt && !nc), DC = !!(xe && !$p && Bp && W && (NC || OC)), IC = ec !== be, RC = tc !== Ee;
27011
27012
  if (IC && (be = ec, ue.setIsCommentActive(ec)), RC && (Ee = tc, ue.setIsCommentResolved(tc)), xe && Bp && !$p) {
27012
27013
  const un = !W && !!(bt || ue.openReplyId !== xe);
27013
27014
  ue.activeCommentId !== xe && ue.setActiveCommentId(xe), W || (ue.setOpenReplyId(xe), (Hp = ue.setCommentDrawerOpen) == null || Hp.call(ue, !0), un && ke(xe));
@@ -27031,7 +27032,7 @@ const is = () => {
27031
27032
  return !1;
27032
27033
  const qt = [];
27033
27034
  if (oe.current.forEach((He, bt) => {
27034
- As(He, e.state) && (qt.push(He), oe.current.delete(bt));
27035
+ Es(He, e.state) && (qt.push(He), oe.current.delete(bt));
27035
27036
  }), qt.length === 0)
27036
27037
  return !1;
27037
27038
  const qe = new Set(
@@ -27109,7 +27110,7 @@ const is = () => {
27109
27110
  ])
27110
27111
  ) : null, cr = We ? Kt.filter((Be) => {
27111
27112
  const Cn = lr == null ? void 0 : lr.get(Be.id);
27112
- return Cn ? !As(
27113
+ return Cn ? !Es(
27113
27114
  Cn,
27114
27115
  e.state
27115
27116
  ) : !0;
@@ -27207,7 +27208,7 @@ const is = () => {
27207
27208
  "useCommentAnchors must be used within CommentStoreProvider"
27208
27209
  );
27209
27210
  return t;
27210
- }, kg = (t) => (t == null ? void 0 : t.type) === "dBlock" && Array.isArray(t.content) ? t.content : [t], Cg = (t) => !(t != null && t.content) || !Array.isArray(t.content) ? "" : t.content.filter((e) => e.type === "text").map((e) => e.text).filter(Boolean).join("").trim(), as = (t) => {
27211
+ }, kg = (t) => (t == null ? void 0 : t.type) === "dBlock" && Array.isArray(t.content) ? t.content : [t], Cg = (t) => !(t != null && t.content) || !Array.isArray(t.content) ? "" : t.content.filter((e) => e.type === "text").map((e) => e.text).filter(Boolean).join("").trim(), ls = (t) => {
27211
27212
  var e;
27212
27213
  try {
27213
27214
  if (!t || !Array.isArray(t.content))
@@ -27549,7 +27550,7 @@ const Sg = (t, e) => {
27549
27550
  var L;
27550
27551
  if ((L = A.files) != null && L.length) {
27551
27552
  const I = A.files[0];
27552
- if (!Zs(I, e))
27553
+ if (!ei(I, e))
27553
27554
  return;
27554
27555
  const D = I.size, $ = s ? xr.Extended : xr.Base;
27555
27556
  if (D > $.maxSize) {
@@ -27557,7 +27558,7 @@ const Sg = (t, e) => {
27557
27558
  return;
27558
27559
  }
27559
27560
  const F = t.view.state.selection.from;
27560
- Qs(I, t.view, F, s);
27561
+ Zs(I, t.view, F, s);
27561
27562
  }
27562
27563
  }, A.click();
27563
27564
  },
@@ -27731,7 +27732,7 @@ const Sg = (t, e) => {
27731
27732
  title: "Web page (.html)",
27732
27733
  onClick: async (A) => {
27733
27734
  if (t) {
27734
- const L = t.getJSON(), I = as(
27735
+ const L = t.getJSON(), I = ls(
27735
27736
  L
27736
27737
  ), D = A || I || "Untitled", $ = await t.commands.exportHtmlFile({
27737
27738
  title: D
@@ -27759,7 +27760,7 @@ const Sg = (t, e) => {
27759
27760
  title: "Plain Text (.txt)",
27760
27761
  onClick: async (A) => {
27761
27762
  if (t) {
27762
- const L = t.getJSON(), I = as(
27763
+ const L = t.getJSON(), I = ls(
27763
27764
  L
27764
27765
  ), D = A || I || "Untitled", $ = await t.commands.exportTxtFile();
27765
27766
  if ($) {
@@ -27776,7 +27777,7 @@ const Sg = (t, e) => {
27776
27777
  title: "Markdown (.md)",
27777
27778
  onClick: async () => {
27778
27779
  if (t) {
27779
- const A = t == null ? void 0 : t.getJSON(), L = as(
27780
+ const A = t == null ? void 0 : t.getJSON(), L = ls(
27780
27781
  A
27781
27782
  ), I = await t.commands.exportMarkdownFile({
27782
27783
  title: L || "Untitled"
@@ -27796,7 +27797,7 @@ const Sg = (t, e) => {
27796
27797
  subtitle: "Keeps colors, fonts & highlights",
27797
27798
  onClick: async () => {
27798
27799
  if (t) {
27799
- const A = t == null ? void 0 : t.getJSON(), L = as(
27800
+ const A = t == null ? void 0 : t.getJSON(), L = ls(
27800
27801
  A
27801
27802
  ), I = await t.commands.exportMarkdownFile({
27802
27803
  title: L || "Untitled",
@@ -27817,7 +27818,7 @@ const Sg = (t, e) => {
27817
27818
  subtitle: "Image support is coming soon",
27818
27819
  onClick: async (A) => {
27819
27820
  if (t) {
27820
- const L = t.getJSON(), I = as(L), D = A || I || "Untitled", $ = await t.commands.exportOdtFile({
27821
+ const L = t.getJSON(), I = ls(L), D = A || I || "Untitled", $ = await t.commands.exportOdtFile({
27821
27822
  title: D
27822
27823
  });
27823
27824
  if ($) {
@@ -27904,7 +27905,7 @@ const Sg = (t, e) => {
27904
27905
  var L;
27905
27906
  if ((L = A.files) != null && L.length) {
27906
27907
  const I = A.files[0];
27907
- if (!Zs(I, e))
27908
+ if (!ei(I, e))
27908
27909
  return;
27909
27910
  const D = I.size, $ = s ? xr.Extended : xr.Base;
27910
27911
  if (D > $.maxSize) {
@@ -27912,7 +27913,7 @@ const Sg = (t, e) => {
27912
27913
  return;
27913
27914
  }
27914
27915
  const F = t.view.state.selection.from;
27915
- Qs(I, t.view, F, s);
27916
+ Zs(I, t.view, F, s);
27916
27917
  }
27917
27918
  }, A.click();
27918
27919
  },
@@ -28005,7 +28006,7 @@ const Sg = (t, e) => {
28005
28006
  }) => {
28006
28007
  const c = n[t], u = r.isActive("textStyle", { fontFamily: c.value }), d = s === c.value;
28007
28008
  return /* @__PURE__ */ z(
28008
- Bs,
28009
+ $s,
28009
28010
  {
28010
28011
  style: e,
28011
28012
  onSelect: (f) => f.preventDefault(),
@@ -28359,7 +28360,7 @@ const Sg = (t, e) => {
28359
28360
  "z-50 flex w-48 flex-col overflow-hidden rounded color-bg-default p-1 shadow-elevation-1"
28360
28361
  ),
28361
28362
  children: e.map((n) => /* @__PURE__ */ z(
28362
- Bs,
28363
+ $s,
28363
28364
  {
28364
28365
  onMouseDown: (r) => r.preventDefault(),
28365
28366
  onClick: () => n.command(t),
@@ -29165,7 +29166,7 @@ const _a = de.create({
29165
29166
  isPresentationMode: !1,
29166
29167
  isCollaboratorsDoc: !1,
29167
29168
  isSuggestionMode: !1
29168
- }), mi = () => {
29169
+ }), gi = () => {
29169
29170
  const t = Or(px);
29170
29171
  if (!t)
29171
29172
  throw new Error("useEditingContext must be used within an EditingProvider");
@@ -29933,12 +29934,12 @@ ${n}
29933
29934
  ];
29934
29935
  }
29935
29936
  }), O_ = xx;
29936
- const D_ = "aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2", I_ = "ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2", md = "numeric", gd = "ascii", yd = "alpha", Ms = "asciinumeric", ws = "alphanumeric", bd = "domain", kx = "emoji", R_ = "scheme", L_ = "slashscheme", Lc = "whitespace";
29937
+ const D_ = "aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2", I_ = "ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2", md = "numeric", gd = "ascii", yd = "alpha", Ns = "asciinumeric", xs = "alphanumeric", bd = "domain", kx = "emoji", R_ = "scheme", L_ = "slashscheme", Lc = "whitespace";
29937
29938
  function P_(t, e) {
29938
29939
  return t in e || (e[t] = []), e[t];
29939
29940
  }
29940
29941
  function Xr(t, e, n) {
29941
- e[md] && (e[Ms] = !0, e[ws] = !0), e[gd] && (e[Ms] = !0, e[yd] = !0), e[Ms] && (e[ws] = !0), e[yd] && (e[ws] = !0), e[ws] && (e[bd] = !0), e[kx] && (e[bd] = !0);
29942
+ e[md] && (e[Ns] = !0, e[xs] = !0), e[gd] && (e[Ns] = !0, e[yd] = !0), e[Ns] && (e[xs] = !0), e[yd] && (e[xs] = !0), e[xs] && (e[bd] = !0), e[kx] && (e[bd] = !0);
29942
29943
  for (const r in e) {
29943
29944
  const o = P_(r, n);
29944
29945
  o.indexOf(t) < 0 && o.push(t);
@@ -30074,7 +30075,7 @@ Ot.prototype = {
30074
30075
  return o.j[t] = i, i;
30075
30076
  }
30076
30077
  };
30077
- const we = (t, e, n, r, o) => t.ta(e, n, r, o), Ke = (t, e, n, r, o) => t.tr(e, n, r, o), Rg = (t, e, n, r, o) => t.ts(e, n, r, o), H = (t, e, n, r, o) => t.tt(e, n, r, o), Un = "WORD", vd = "UWORD", Cx = "ASCIINUMERICAL", Sx = "ALPHANUMERICAL", ti = "LOCALHOST", wd = "TLD", xd = "UTLD", sa = "SCHEME", Oo = "SLASH_SCHEME", rp = "NUM", kd = "WS", op = "NL", Ns = "OPENBRACE", Os = "CLOSEBRACE", $a = "OPENBRACKET", Fa = "CLOSEBRACKET", za = "OPENPAREN", Ha = "CLOSEPAREN", ja = "OPENANGLEBRACKET", Va = "CLOSEANGLEBRACKET", Ua = "FULLWIDTHLEFTPAREN", Wa = "FULLWIDTHRIGHTPAREN", qa = "LEFTCORNERBRACKET", Ka = "RIGHTCORNERBRACKET", Ga = "LEFTWHITECORNERBRACKET", Ya = "RIGHTWHITECORNERBRACKET", Ja = "FULLWIDTHLESSTHAN", Xa = "FULLWIDTHGREATERTHAN", Qa = "AMPERSAND", Za = "APOSTROPHE", el = "ASTERISK", mr = "AT", tl = "BACKSLASH", nl = "BACKTICK", rl = "CARET", vr = "COLON", sp = "COMMA", ol = "DOLLAR", Tn = "DOT", sl = "EQUALS", ip = "EXCLAMATION", Xt = "HYPHEN", Ds = "PERCENT", il = "PIPE", al = "PLUS", ll = "POUND", Is = "QUERY", ap = "QUOTE", Tx = "FULLWIDTHMIDDLEDOT", lp = "SEMI", An = "SLASH", Rs = "TILDE", cl = "UNDERSCORE", Ax = "EMOJI", ul = "SYM";
30078
+ const we = (t, e, n, r, o) => t.ta(e, n, r, o), Ke = (t, e, n, r, o) => t.tr(e, n, r, o), Rg = (t, e, n, r, o) => t.ts(e, n, r, o), H = (t, e, n, r, o) => t.tt(e, n, r, o), Un = "WORD", vd = "UWORD", Cx = "ASCIINUMERICAL", Sx = "ALPHANUMERICAL", ni = "LOCALHOST", wd = "TLD", xd = "UTLD", sa = "SCHEME", Oo = "SLASH_SCHEME", rp = "NUM", kd = "WS", op = "NL", Os = "OPENBRACE", Ds = "CLOSEBRACE", $a = "OPENBRACKET", Fa = "CLOSEBRACKET", za = "OPENPAREN", Ha = "CLOSEPAREN", ja = "OPENANGLEBRACKET", Va = "CLOSEANGLEBRACKET", Ua = "FULLWIDTHLEFTPAREN", Wa = "FULLWIDTHRIGHTPAREN", qa = "LEFTCORNERBRACKET", Ka = "RIGHTCORNERBRACKET", Ga = "LEFTWHITECORNERBRACKET", Ya = "RIGHTWHITECORNERBRACKET", Ja = "FULLWIDTHLESSTHAN", Xa = "FULLWIDTHGREATERTHAN", Qa = "AMPERSAND", Za = "APOSTROPHE", el = "ASTERISK", mr = "AT", tl = "BACKSLASH", nl = "BACKTICK", rl = "CARET", vr = "COLON", sp = "COMMA", ol = "DOLLAR", Tn = "DOT", sl = "EQUALS", ip = "EXCLAMATION", Xt = "HYPHEN", Is = "PERCENT", il = "PIPE", al = "PLUS", ll = "POUND", Rs = "QUERY", ap = "QUOTE", Tx = "FULLWIDTHMIDDLEDOT", lp = "SEMI", An = "SLASH", Ls = "TILDE", cl = "UNDERSCORE", Ax = "EMOJI", ul = "SYM";
30078
30079
  var Ex = /* @__PURE__ */ Object.freeze({
30079
30080
  __proto__: null,
30080
30081
  ALPHANUMERICAL: Sx,
@@ -30087,7 +30088,7 @@ var Ex = /* @__PURE__ */ Object.freeze({
30087
30088
  BACKTICK: nl,
30088
30089
  CARET: rl,
30089
30090
  CLOSEANGLEBRACKET: Va,
30090
- CLOSEBRACE: Os,
30091
+ CLOSEBRACE: Ds,
30091
30092
  CLOSEBRACKET: Fa,
30092
30093
  CLOSEPAREN: Ha,
30093
30094
  COLON: vr,
@@ -30105,18 +30106,18 @@ var Ex = /* @__PURE__ */ Object.freeze({
30105
30106
  HYPHEN: Xt,
30106
30107
  LEFTCORNERBRACKET: qa,
30107
30108
  LEFTWHITECORNERBRACKET: Ga,
30108
- LOCALHOST: ti,
30109
+ LOCALHOST: ni,
30109
30110
  NL: op,
30110
30111
  NUM: rp,
30111
30112
  OPENANGLEBRACKET: ja,
30112
- OPENBRACE: Ns,
30113
+ OPENBRACE: Os,
30113
30114
  OPENBRACKET: $a,
30114
30115
  OPENPAREN: za,
30115
- PERCENT: Ds,
30116
+ PERCENT: Is,
30116
30117
  PIPE: il,
30117
30118
  PLUS: al,
30118
30119
  POUND: ll,
30119
- QUERY: Is,
30120
+ QUERY: Rs,
30120
30121
  QUOTE: ap,
30121
30122
  RIGHTCORNERBRACKET: Ka,
30122
30123
  RIGHTWHITECORNERBRACKET: Ya,
@@ -30125,7 +30126,7 @@ var Ex = /* @__PURE__ */ Object.freeze({
30125
30126
  SLASH: An,
30126
30127
  SLASH_SCHEME: Oo,
30127
30128
  SYM: ul,
30128
- TILDE: Rs,
30129
+ TILDE: Ls,
30129
30130
  TLD: wd,
30130
30131
  UNDERSCORE: cl,
30131
30132
  UTLD: xd,
@@ -30133,30 +30134,30 @@ var Ex = /* @__PURE__ */ Object.freeze({
30133
30134
  WORD: Un,
30134
30135
  WS: kd
30135
30136
  });
30136
- const Hn = /[a-z]/, ls = new RegExp("\\p{L}", "u"), Pc = new RegExp("\\p{Emoji}", "u"), jn = /\d/, _c = /\s/, Lg = "\r", Bc = `
30137
+ const Hn = /[a-z]/, cs = new RegExp("\\p{L}", "u"), Pc = new RegExp("\\p{Emoji}", "u"), jn = /\d/, _c = /\s/, Lg = "\r", Bc = `
30137
30138
  `, B_ = "️", $_ = "‍", $c = "";
30138
30139
  let $i = null, Fi = null;
30139
30140
  function F_(t = []) {
30140
30141
  const e = {};
30141
30142
  Ot.groups = e;
30142
30143
  const n = new Ot();
30143
- $i == null && ($i = Pg(D_)), Fi == null && (Fi = Pg(I_)), H(n, "'", Za), H(n, "{", Ns), H(n, "}", Os), H(n, "[", $a), H(n, "]", Fa), H(n, "(", za), H(n, ")", Ha), H(n, "<", ja), H(n, ">", Va), H(n, "(", Ua), H(n, ")", Wa), H(n, "「", qa), H(n, "」", Ka), H(n, "『", Ga), H(n, "』", Ya), H(n, "<", Ja), H(n, ">", Xa), H(n, "&", Qa), H(n, "*", el), H(n, "@", mr), H(n, "`", nl), H(n, "^", rl), H(n, ":", vr), H(n, ",", sp), H(n, "$", ol), H(n, ".", Tn), H(n, "=", sl), H(n, "!", ip), H(n, "-", Xt), H(n, "%", Ds), H(n, "|", il), H(n, "+", al), H(n, "#", ll), H(n, "?", Is), H(n, '"', ap), H(n, "/", An), H(n, ";", lp), H(n, "~", Rs), H(n, "_", cl), H(n, "\\", tl), H(n, "・", Tx);
30144
+ $i == null && ($i = Pg(D_)), Fi == null && (Fi = Pg(I_)), H(n, "'", Za), H(n, "{", Os), H(n, "}", Ds), H(n, "[", $a), H(n, "]", Fa), H(n, "(", za), H(n, ")", Ha), H(n, "<", ja), H(n, ">", Va), H(n, "(", Ua), H(n, ")", Wa), H(n, "「", qa), H(n, "」", Ka), H(n, "『", Ga), H(n, "』", Ya), H(n, "<", Ja), H(n, ">", Xa), H(n, "&", Qa), H(n, "*", el), H(n, "@", mr), H(n, "`", nl), H(n, "^", rl), H(n, ":", vr), H(n, ",", sp), H(n, "$", ol), H(n, ".", Tn), H(n, "=", sl), H(n, "!", ip), H(n, "-", Xt), H(n, "%", Is), H(n, "|", il), H(n, "+", al), H(n, "#", ll), H(n, "?", Rs), H(n, '"', ap), H(n, "/", An), H(n, ";", lp), H(n, "~", Ls), H(n, "_", cl), H(n, "\\", tl), H(n, "・", Tx);
30144
30145
  const r = Ke(n, jn, rp, {
30145
30146
  [md]: !0
30146
30147
  });
30147
30148
  Ke(r, jn, r);
30148
30149
  const o = Ke(r, Hn, Cx, {
30149
- [Ms]: !0
30150
- }), s = Ke(r, ls, Sx, {
30151
- [ws]: !0
30150
+ [Ns]: !0
30151
+ }), s = Ke(r, cs, Sx, {
30152
+ [xs]: !0
30152
30153
  }), i = Ke(n, Hn, Un, {
30153
30154
  [gd]: !0
30154
30155
  });
30155
30156
  Ke(i, jn, o), Ke(i, Hn, i), Ke(o, jn, o), Ke(o, Hn, o);
30156
- const a = Ke(n, ls, vd, {
30157
+ const a = Ke(n, cs, vd, {
30157
30158
  [yd]: !0
30158
30159
  });
30159
- Ke(a, Hn), Ke(a, jn, s), Ke(a, ls, a), Ke(s, jn, s), Ke(s, Hn), Ke(s, ls, s);
30160
+ Ke(a, Hn), Ke(a, jn, s), Ke(a, cs, a), Ke(s, jn, s), Ke(s, Hn), Ke(s, cs, s);
30160
30161
  const l = H(n, Bc, op, {
30161
30162
  [Lc]: !0
30162
30163
  }), c = H(n, Lg, kd, {
@@ -30171,7 +30172,7 @@ function F_(t = []) {
30171
30172
  H(d, "#"), Ke(d, Pc, d), H(d, B_, d);
30172
30173
  const f = H(d, $_);
30173
30174
  H(f, "#"), Ke(f, Pc, d);
30174
- const p = [[Hn, i], [jn, o]], h = [[Hn, null], [ls, a], [jn, s]];
30175
+ const p = [[Hn, i], [jn, o]], h = [[Hn, null], [cs, a], [jn, s]];
30175
30176
  for (let m = 0; m < $i.length; m++)
30176
30177
  dr(n, $i[m], wd, Un, p);
30177
30178
  for (let m = 0; m < Fi.length; m++)
@@ -30195,9 +30196,9 @@ function F_(t = []) {
30195
30196
  } : {
30196
30197
  [L_]: !0
30197
30198
  };
30198
- g.indexOf("-") >= 0 ? v[bd] = !0 : Hn.test(g) ? jn.test(g) ? v[Ms] = !0 : v[gd] = !0 : v[md] = !0, Rg(n, g, g, v);
30199
+ g.indexOf("-") >= 0 ? v[bd] = !0 : Hn.test(g) ? jn.test(g) ? v[Ns] = !0 : v[gd] = !0 : v[md] = !0, Rg(n, g, g, v);
30199
30200
  }
30200
- return Rg(n, "localhost", ti, {
30201
+ return Rg(n, "localhost", ni, {
30201
30202
  ascii: !0
30202
30203
  }), n.jd = new Ot(ul), {
30203
30204
  start: n,
@@ -30261,7 +30262,7 @@ function Pg(t) {
30261
30262
  }
30262
30263
  return e;
30263
30264
  }
30264
- const ni = {
30265
+ const ri = {
30265
30266
  defaultProtocol: "http",
30266
30267
  events: null,
30267
30268
  format: _g,
@@ -30278,7 +30279,7 @@ const ni = {
30278
30279
  render: null
30279
30280
  };
30280
30281
  function cp(t, e = null) {
30281
- let n = Object.assign({}, ni);
30282
+ let n = Object.assign({}, ri);
30282
30283
  t && (n = Object.assign(n, t instanceof cp ? t.o : t));
30283
30284
  const r = n.ignoreTags, o = [];
30284
30285
  for (let s = 0; s < r.length; s++)
@@ -30286,7 +30287,7 @@ function cp(t, e = null) {
30286
30287
  this.o = n, e && (this.defaultRender = e), this.ignoreTags = o;
30287
30288
  }
30288
30289
  cp.prototype = {
30289
- o: ni,
30290
+ o: ri,
30290
30291
  /**
30291
30292
  * @type string[]
30292
30293
  */
@@ -30322,7 +30323,7 @@ cp.prototype = {
30322
30323
  get(t, e, n) {
30323
30324
  const r = e != null;
30324
30325
  let o = this.o[t];
30325
- return o && (typeof o == "object" ? (o = n.t in o ? o[n.t] : ni[t], typeof o == "function" && r && (o = o(e, n))) : typeof o == "function" && r && (o = o(e, n.t, n)), o);
30326
+ return o && (typeof o == "object" ? (o = n.t in o ? o[n.t] : ri[t], typeof o == "function" && r && (o = o(e, n))) : typeof o == "function" && r && (o = o(e, n.t, n)), o);
30326
30327
  },
30327
30328
  /**
30328
30329
  * @template {keyof Opts} L
@@ -30411,7 +30412,7 @@ Nx.prototype = {
30411
30412
  @method toObject
30412
30413
  @param {string} [protocol] `'http'` by default
30413
30414
  */
30414
- toObject(t = ni.defaultProtocol) {
30415
+ toObject(t = ri.defaultProtocol) {
30415
30416
  return {
30416
30417
  type: this.t,
30417
30418
  value: this.toString(),
@@ -30481,7 +30482,7 @@ const Bg = Yl("email", {
30481
30482
  @param {string} [scheme] default scheme (e.g., 'https')
30482
30483
  @return {string} the full href
30483
30484
  */
30484
- toHref(t = ni.defaultProtocol) {
30485
+ toHref(t = ri.defaultProtocol) {
30485
30486
  return this.hasProtocol() ? this.v : `${t}://${this.v}`;
30486
30487
  },
30487
30488
  /**
@@ -30490,13 +30491,13 @@ const Bg = Yl("email", {
30490
30491
  */
30491
30492
  hasProtocol() {
30492
30493
  const t = this.tk;
30493
- return t.length >= 2 && t[0].t !== ti && t[1].t === vr;
30494
+ return t.length >= 2 && t[0].t !== ni && t[1].t === vr;
30494
30495
  }
30495
30496
  }), Yt = (t) => new Ot(t);
30496
30497
  function j_({
30497
30498
  groups: t
30498
30499
  }) {
30499
- const e = t.domain.concat([Qa, el, mr, tl, nl, rl, ol, sl, Xt, rp, Ds, il, al, ll, An, ul, Rs, cl]), n = [Za, vr, sp, Tn, ip, Ds, Is, ap, lp, ja, Va, Ns, Os, Fa, $a, za, Ha, Ua, Wa, qa, Ka, Ga, Ya, Ja, Xa], r = [Qa, Za, el, tl, nl, rl, ol, sl, Xt, Ns, Os, Ds, il, al, ll, Is, An, ul, Rs, cl], o = Yt(), s = H(o, Rs);
30500
+ const e = t.domain.concat([Qa, el, mr, tl, nl, rl, ol, sl, Xt, rp, Is, il, al, ll, An, ul, Ls, cl]), n = [Za, vr, sp, Tn, ip, Is, Rs, ap, lp, ja, Va, Os, Ds, Fa, $a, za, Ha, Ua, Wa, qa, Ka, Ga, Ya, Ja, Xa], r = [Qa, Za, el, tl, nl, rl, ol, sl, Xt, Os, Ds, Is, il, al, ll, Rs, An, ul, Ls, cl], o = Yt(), s = H(o, Ls);
30500
30501
  we(s, r, s), we(s, t.domain, s);
30501
30502
  const i = Yt(), a = Yt(), l = Yt();
30502
30503
  we(o, t.domain, i), we(o, t.scheme, a), we(o, t.slashscheme, l), we(i, r, s), we(i, t.domain, i);
@@ -30509,7 +30510,7 @@ function j_({
30509
30510
  const f = H(d, Tn);
30510
30511
  we(f, t.domain, d);
30511
30512
  const p = Yt(Bg);
30512
- we(f, t.tld, p), we(f, t.utld, p), H(c, ti, p);
30513
+ we(f, t.tld, p), we(f, t.utld, p), H(c, ni, p);
30513
30514
  const h = H(d, Xt);
30514
30515
  H(h, Xt, h), we(h, t.domain, d), we(p, t.domain, d), H(p, Tn, f), H(p, Xt, h);
30515
30516
  const m = H(p, vr);
@@ -30523,9 +30524,9 @@ function j_({
30523
30524
  const x = Yt(zi), S = Yt();
30524
30525
  we(x, e, x), we(x, n, S), we(S, e, x), we(S, n, S), H(v, An, x), H(b, An, x);
30525
30526
  const k = H(a, vr), N = H(l, vr), T = H(N, An), R = H(T, An);
30526
- we(a, t.domain, i), H(a, Tn, y), H(a, Xt, g), we(l, t.domain, i), H(l, Tn, y), H(l, Xt, g), we(k, t.domain, x), H(k, An, x), H(k, Is, x), we(R, t.domain, x), we(R, e, x), H(R, An, x);
30527
+ we(a, t.domain, i), H(a, Tn, y), H(a, Xt, g), we(l, t.domain, i), H(l, Tn, y), H(l, Xt, g), we(k, t.domain, x), H(k, An, x), H(k, Rs, x), we(R, t.domain, x), we(R, e, x), H(R, An, x);
30527
30528
  const M = [
30528
- [Ns, Os],
30529
+ [Os, Ds],
30529
30530
  // {}
30530
30531
  [$a, Fa],
30531
30532
  // []
@@ -30550,7 +30551,7 @@ function j_({
30550
30551
  const I = Yt();
30551
30552
  we(A, n), we(L, e, L), we(L, n, I), we(I, e, L), we(I, n, I), H(L, P, x), H(I, P, x);
30552
30553
  }
30553
- return H(o, ti, v), H(o, op, H_), {
30554
+ return H(o, ni, v), H(o, op, H_), {
30554
30555
  start: o,
30555
30556
  tokens: Ex
30556
30557
  };
@@ -31045,7 +31046,7 @@ var Dx = it.create({
31045
31046
  }
31046
31047
  }), sB = {};
31047
31048
  rB(sB, {
31048
- findListItemPos: () => gi,
31049
+ findListItemPos: () => yi,
31049
31050
  getNextListDepth: () => hp,
31050
31051
  handleBackspace: () => Cd,
31051
31052
  handleDelete: () => Sd,
@@ -31056,14 +31057,14 @@ rB(sB, {
31056
31057
  nextListIsDeeper: () => Px,
31057
31058
  nextListIsHigher: () => _x
31058
31059
  });
31059
- var gi = (t, e) => {
31060
+ var yi = (t, e) => {
31060
31061
  const { $from: n } = e.selection, r = Qe(t, e.schema);
31061
31062
  let o = null, s = n.depth, i = n.pos, a = null;
31062
31063
  for (; s > 0 && a === null; )
31063
31064
  o = n.node(s), o.type === r ? a = s : (s -= 1, i -= 1);
31064
31065
  return a === null ? null : { $pos: e.doc.resolve(i), depth: a };
31065
31066
  }, hp = (t, e) => {
31066
- const n = gi(t, e);
31067
+ const n = yi(t, e);
31067
31068
  if (!n)
31068
31069
  return !1;
31069
31070
  const [, r] = VE(e, t, n.$pos.pos + 4);
@@ -31101,16 +31102,16 @@ var gi = (t, e) => {
31101
31102
  }
31102
31103
  if (!Mr(t.state, e) || !KE(t.state))
31103
31104
  return !1;
31104
- const r = gi(e, t.state);
31105
+ const r = yi(e, t.state);
31105
31106
  if (!r)
31106
31107
  return !1;
31107
31108
  const s = t.state.doc.resolve(r.$pos.pos - 2).node(r.depth), i = Lx(e, t.state, s);
31108
31109
  return Rx(e, t.state) && !i ? t.commands.joinItemBackward() : t.chain().liftListItem(e).run();
31109
31110
  }, Px = (t, e) => {
31110
- const n = hp(t, e), r = gi(t, e);
31111
+ const n = hp(t, e), r = yi(t, e);
31111
31112
  return !r || !n ? !1 : n > r.depth;
31112
31113
  }, _x = (t, e) => {
31113
- const n = hp(t, e), r = gi(t, e);
31114
+ const n = hp(t, e), r = yi(t, e);
31114
31115
  return !r || !n ? !1 : n < r.depth;
31115
31116
  }, Sd = (t, e) => {
31116
31117
  if (!Mr(t.state, e) || !qE(t.state, e))
@@ -33505,7 +33506,7 @@ const r2 = Jx.extend({
33505
33506
  /* @__PURE__ */ w(Vd, { className: "p-0 b-0", children: /* @__PURE__ */ z("div", { className: "h-auto rounded color-bg-default px-3 py-3 shadow-elevation-3 max-w-fit", children: [
33506
33507
  /* @__PURE__ */ z("div", { className: "flex gap-1", children: [
33507
33508
  /* @__PURE__ */ w(
33508
- Bs,
33509
+ $s,
33509
33510
  {
33510
33511
  onMouseDown: (s) => s.preventDefault(),
33511
33512
  onClick: () => e(null),
@@ -33514,7 +33515,7 @@ const r2 = Jx.extend({
33514
33515
  }
33515
33516
  ),
33516
33517
  g2.map((s) => /* @__PURE__ */ w(
33517
- Bs,
33518
+ $s,
33518
33519
  {
33519
33520
  onMouseDown: (i) => i.preventDefault(),
33520
33521
  onClick: () => e(s.value),
@@ -33744,7 +33745,7 @@ const r2 = Jx.extend({
33744
33745
  editor: i,
33745
33746
  getPos: a
33746
33747
  }) => {
33747
- const { isPreviewMode: l } = mi(), c = n.attrs["media-type"], u = c === "img" || c === "secure-img", d = c === "iframe" && URL.canParse(n.attrs.src) && new URL(n.attrs.src).hostname === "w.soundcloud.com", [f, p] = pe(0), [h, m] = pe(0), [g, y] = pe({}), v = Oe(null), C = Oe(-1), [b, x] = pe(!1), [S, k] = pe(!1), [N, T] = pe(null), R = Oe(null), M = () => {
33748
+ const { isPreviewMode: l } = gi(), c = n.attrs["media-type"], u = c === "img" || c === "secure-img", d = c === "iframe" && URL.canParse(n.attrs.src) && new URL(n.attrs.src).hostname === "w.soundcloud.com", [f, p] = pe(0), [h, m] = pe(0), [g, y] = pe({}), v = Oe(null), C = Oe(-1), [b, x] = pe(!1), [S, k] = pe(!1), [N, T] = pe(null), R = Oe(null), M = () => {
33748
33749
  const q = {};
33749
33750
  Yg.forEach(({ tooltip: ee, isActive: Ie }) => {
33750
33751
  q[ee] = !!(Ie != null && Ie(n.attrs, n));
@@ -34535,7 +34536,7 @@ function Qg(t) {
34535
34536
  type: "text"
34536
34537
  }
34537
34538
  ];
34538
- return cs(n, "hashtag", t.entities.hashtags), cs(n, "mention", t.entities.user_mentions), cs(n, "url", t.entities.urls), cs(n, "symbol", t.entities.symbols), t.entities.media && cs(n, "media", t.entities.media), b$(t, n), n.map((r) => {
34539
+ return us(n, "hashtag", t.entities.hashtags), us(n, "mention", t.entities.user_mentions), us(n, "url", t.entities.urls), us(n, "symbol", t.entities.symbols), t.entities.media && us(n, "media", t.entities.media), b$(t, n), n.map((r) => {
34539
34540
  const o = e.slice(r.indices[0], r.indices[1]).join("");
34540
34541
  switch (r.type) {
34541
34542
  case "hashtag":
@@ -34566,7 +34567,7 @@ function Qg(t) {
34566
34567
  }
34567
34568
  });
34568
34569
  }
34569
- function cs(t, e, n) {
34570
+ function us(t, e, n) {
34570
34571
  for (const r of n)
34571
34572
  for (const [o, s] of t.entries()) {
34572
34573
  if (s.indices[0] > r.indices[0] || s.indices[1] < r.indices[1])
@@ -35080,14 +35081,14 @@ const v$ = (t) => ({
35080
35081
  })
35081
35082
  ]
35082
35083
  });
35083
- }, us = (t) => Array.isArray(t) ? t : [], ty = (t) => {
35084
+ }, ds = (t) => Array.isArray(t) ? t : [], ty = (t) => {
35084
35085
  const e = t ?? {};
35085
35086
  return {
35086
- hashtags: us(e.hashtags),
35087
- user_mentions: us(e.user_mentions),
35088
- urls: us(e.urls),
35089
- symbols: us(e.symbols),
35090
- ...e.media != null ? { media: us(e.media) } : {}
35087
+ hashtags: ds(e.hashtags),
35088
+ user_mentions: ds(e.user_mentions),
35089
+ urls: ds(e.urls),
35090
+ symbols: ds(e.symbols),
35091
+ ...e.media != null ? { media: ds(e.media) } : {}
35091
35092
  };
35092
35093
  }, MF = (t) => t && {
35093
35094
  ...t,
@@ -35224,8 +35225,8 @@ const OF = ({ node: t }) => {
35224
35225
  function IF(t) {
35225
35226
  return t.split(/\s+/).slice(0, 10).join(" ").toLowerCase().trim().replace(/[^a-z0-9\s-]/g, "").replace(/\s+/g, "-").replace(/-+/g, "-");
35226
35227
  }
35227
- const lk = 'xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"', ck = `<svg ${lk}><path d="m6 9 6 6 6-6"/></svg>`, uk = `<svg ${lk}><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"/><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"/></svg>`, ri = "ddocPagination", Ad = new Z("pagination"), dk = (t) => t.getMeta(ri) === void 0 || !t.steps.length ? !1 : (console.error("ddoc pagination: refusing a transaction with steps"), !0), ny = (t, e) => {
35228
- const n = t.state.tr.setMeta(ri, e);
35228
+ const lk = 'xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"', ck = `<svg ${lk}><path d="m6 9 6 6 6-6"/></svg>`, uk = `<svg ${lk}><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"/><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"/></svg>`, oi = "ddocPagination", Ad = new Z("pagination"), dk = (t) => t.getMeta(oi) === void 0 || !t.steps.length ? !1 : (console.error("ddoc pagination: refusing a transaction with steps"), !0), ny = (t, e) => {
35229
+ const n = t.state.tr.setMeta(oi, e);
35229
35230
  dk(n) || t.dispatch(n);
35230
35231
  };
35231
35232
  function RF(t) {
@@ -35534,7 +35535,7 @@ function ry(t) {
35534
35535
  e = e.previousElementSibling;
35535
35536
  if (!e) return 0;
35536
35537
  const n = t.dom.getBoundingClientRect().top;
35537
- return (e.getBoundingClientRect().bottom - n) / hi(t.dom);
35538
+ return (e.getBoundingClientRect().bottom - n) / mi(t.dom);
35538
35539
  }
35539
35540
  const Gc = (t, e) => {
35540
35541
  const n = performance.now();
@@ -35632,7 +35633,7 @@ class az {
35632
35633
  if (!(o instanceof HTMLElement)) return !1;
35633
35634
  const s = o.getBoundingClientRect();
35634
35635
  if (!s.height) return !1;
35635
- const i = this.view.dom.getBoundingClientRect().top, a = (s.bottom - i) / hi(this.view.dom), l = new Da(e.paper, n), c = l.pageAt(a);
35636
+ const i = this.view.dom.getBoundingClientRect().top, a = (s.bottom - i) / mi(this.view.dom), l = new Da(e.paper, n), c = l.pageAt(a);
35636
35637
  return a > l.contentBottomOf(c) || a < l.contentTopOf(c) || c >= (this.storage.store.get().pageCount ?? 1);
35637
35638
  }
35638
35639
  observeChildren(e) {
@@ -35745,7 +35746,7 @@ const gW = J.create({
35745
35746
  enabled: r.enabled,
35746
35747
  running: r.running
35747
35748
  };
35748
- return JSON.stringify(i) === JSON.stringify(a) || (Object.assign(r, i), o !== a.enabled && (e.setMeta(ri, { enabled: o }), r.store.set(o ? { enabled: o } : fk)), (c = Wr.get(r)) == null || c.sync()), !0;
35749
+ return JSON.stringify(i) === JSON.stringify(a) || (Object.assign(r, i), o !== a.enabled && (e.setMeta(oi, { enabled: o }), r.store.set(o ? { enabled: o } : fk)), (c = Wr.get(r)) == null || c.sync()), !0;
35749
35750
  }
35750
35751
  };
35751
35752
  },
@@ -35758,7 +35759,7 @@ const gW = J.create({
35758
35759
  init: () => le.empty,
35759
35760
  apply(e, n) {
35760
35761
  var o;
35761
- const r = e.getMeta(ri);
35762
+ const r = e.getMeta(oi);
35762
35763
  return r && "spacers" in r ? nz(e.doc, r.spacers) : (r == null ? void 0 : r.enabled) === !1 ? le.empty : !e.docChanged || ((o = Wr.get(t)) == null || o.noteEdit(e, n), n === le.empty) ? n : n.map(RF(e), e.doc);
35763
35764
  }
35764
35765
  },
@@ -35773,15 +35774,15 @@ const gW = J.create({
35773
35774
  })
35774
35775
  ];
35775
35776
  }
35776
- }), yp = "d-block-hidden", gk = "dblock-collapse", yi = (t) => t.content.firstChild, bo = (t) => !!t.type.schema.nodes.dBlock, bn = (t, e) => {
35777
+ }), yp = "d-block-hidden", gk = "dblock-collapse", bi = (t) => t.content.firstChild, bo = (t) => !!t.type.schema.nodes.dBlock, bn = (t, e) => {
35777
35778
  if (!e) return null;
35778
35779
  if (bo(t)) {
35779
- const n = e.type.name === "dBlock" ? yi(e) : null;
35780
+ const n = e.type.name === "dBlock" ? bi(e) : null;
35780
35781
  return (n == null ? void 0 : n.type.name) === "heading" ? n : null;
35781
35782
  }
35782
35783
  return e.type.name === "heading" ? e : null;
35783
35784
  }, lz = (t, e) => e + (bo(t) ? 1 : 0), cz = (t, e) => {
35784
- const n = t.type.name === "dBlock" ? yi(t) : t ?? null, r = (n == null ? void 0 : n.type.name) === "heading";
35785
+ const n = t.type.name === "dBlock" ? bi(t) : t ?? null, r = (n == null ? void 0 : n.type.name) === "heading";
35785
35786
  return {
35786
35787
  isHeading: r,
35787
35788
  headingId: r ? (n == null ? void 0 : n.attrs.id) || `heading-${e}` : null,
@@ -35790,7 +35791,7 @@ const gW = J.create({
35790
35791
  isTable: (n == null ? void 0 : n.type.name) === "table"
35791
35792
  };
35792
35793
  }, yk = (t, e) => {
35793
- const n = t.type.name === "dBlock" ? yi(t) : t ?? null;
35794
+ const n = t.type.name === "dBlock" ? bi(t) : t ?? null;
35794
35795
  if ((n == null ? void 0 : n.type.name) !== "heading")
35795
35796
  return null;
35796
35797
  const r = n.attrs.id || `heading-${e}`, o = n.textContent;
@@ -35876,7 +35877,7 @@ const gW = J.create({
35876
35877
  }, vk = (t, e) => {
35877
35878
  if (!e) return !1;
35878
35879
  if (bo(t)) {
35879
- const n = yi(e);
35880
+ const n = bi(e);
35880
35881
  return e.type.name === "dBlock" && (n == null ? void 0 : n.type.name) === "paragraph" && n.content.size === 0;
35881
35882
  }
35882
35883
  return e.type.name === "paragraph" && e.content.size === 0;
@@ -36066,7 +36067,7 @@ const gW = J.create({
36066
36067
  return;
36067
36068
  }
36068
36069
  if (n && r.type.name === "dBlock") {
36069
- e.push(((s = yi(r)) == null ? void 0 : s.type.name) ?? "empty");
36070
+ e.push(((s = bi(r)) == null ? void 0 : s.type.name) ?? "empty");
36070
36071
  return;
36071
36072
  }
36072
36073
  e.push(r.type.name);
@@ -36103,7 +36104,7 @@ const gW = J.create({
36103
36104
  state: {
36104
36105
  init: (e, n) => oy(n.doc, t),
36105
36106
  apply: (e, n) => {
36106
- const r = e.getMeta(ri);
36107
+ const r = e.getMeta(oi);
36107
36108
  if (r && typeof r.enabled == "boolean" && r.enabled !== n.expandAll)
36108
36109
  return oy(
36109
36110
  e.doc,
@@ -37079,8 +37080,8 @@ const eH = de.create({
37079
37080
  deleteTable: () => ({ state: t, dispatch: e }) => DN(t, e),
37080
37081
  mergeCells: () => ({ state: t, dispatch: e }) => pm(t, e),
37081
37082
  splitCell: () => ({ state: t, dispatch: e }) => hm(t, e),
37082
- toggleHeaderColumn: () => ({ state: t, dispatch: e }) => Gs("column")(t, e),
37083
- toggleHeaderRow: () => ({ state: t, dispatch: e }) => Gs("row")(t, e),
37083
+ toggleHeaderColumn: () => ({ state: t, dispatch: e }) => Ys("column")(t, e),
37084
+ toggleHeaderRow: () => ({ state: t, dispatch: e }) => Ys("row")(t, e),
37084
37085
  toggleHeaderCell: () => ({ state: t, dispatch: e }) => NN(t, e),
37085
37086
  mergeOrSplit: () => ({ state: t, dispatch: e }) => pm(t, e) ? !0 : hm(t, e),
37086
37087
  setCellAttribute: (t, e) => ({ state: n, dispatch: r }) => EN(t, e)(n, r),
@@ -37138,10 +37139,10 @@ const eH = de.create({
37138
37139
  };
37139
37140
  }
37140
37141
  });
37141
- var Pt = "top", an = "bottom", ln = "right", _t = "left", vp = "auto", bi = [Pt, an, ln, _t], Uo = "start", oi = "end", tH = "clippingParents", Nk = "viewport", ds = "popper", nH = "reference", uy = /* @__PURE__ */ bi.reduce(function(t, e) {
37142
- return t.concat([e + "-" + Uo, e + "-" + oi]);
37143
- }, []), Ok = /* @__PURE__ */ [].concat(bi, [vp]).reduce(function(t, e) {
37144
- return t.concat([e, e + "-" + Uo, e + "-" + oi]);
37142
+ var Pt = "top", an = "bottom", ln = "right", _t = "left", vp = "auto", vi = [Pt, an, ln, _t], Uo = "start", si = "end", tH = "clippingParents", Nk = "viewport", fs = "popper", nH = "reference", uy = /* @__PURE__ */ vi.reduce(function(t, e) {
37143
+ return t.concat([e + "-" + Uo, e + "-" + si]);
37144
+ }, []), Ok = /* @__PURE__ */ [].concat(vi, [vp]).reduce(function(t, e) {
37145
+ return t.concat([e, e + "-" + Uo, e + "-" + si]);
37145
37146
  }, []), rH = "beforeRead", oH = "read", sH = "afterRead", iH = "beforeMain", aH = "main", lH = "afterMain", cH = "beforeWrite", uH = "write", dH = "afterWrite", fH = [rH, oH, sH, iH, aH, lH, cH, uH, dH];
37146
37147
  function _n(t) {
37147
37148
  return t ? (t.nodeName || "").toLowerCase() : null;
@@ -37307,7 +37308,7 @@ function gH(t) {
37307
37308
  }
37308
37309
  return null;
37309
37310
  }
37310
- function vi(t) {
37311
+ function wi(t) {
37311
37312
  for (var e = Ut(t), n = dy(t); n && mH(n) && nr(n).position === "static"; )
37312
37313
  n = dy(n);
37313
37314
  return n && (_n(n) === "html" || _n(n) === "body" && nr(n).position === "static") ? e : n || gH(t) || e;
@@ -37315,11 +37316,11 @@ function vi(t) {
37315
37316
  function kp(t) {
37316
37317
  return ["top", "bottom"].indexOf(t) >= 0 ? "x" : "y";
37317
37318
  }
37318
- function Ls(t, e, n) {
37319
+ function Ps(t, e, n) {
37319
37320
  return ao(t, fl(e, n));
37320
37321
  }
37321
37322
  function yH(t, e, n) {
37322
- var r = Ls(t, e, n);
37323
+ var r = Ps(t, e, n);
37323
37324
  return r > n ? n : r;
37324
37325
  }
37325
37326
  function Lk() {
@@ -37341,12 +37342,12 @@ function _k(t, e) {
37341
37342
  var bH = function(e, n) {
37342
37343
  return e = typeof e == "function" ? e(Object.assign({}, n.rects, {
37343
37344
  placement: n.placement
37344
- })) : e, Pk(typeof e != "number" ? e : _k(e, bi));
37345
+ })) : e, Pk(typeof e != "number" ? e : _k(e, vi));
37345
37346
  };
37346
37347
  function vH(t) {
37347
37348
  var e, n = t.state, r = t.name, o = t.options, s = n.elements.arrow, i = n.modifiersData.popperOffsets, a = In(n.placement), l = kp(a), c = [_t, ln].indexOf(a) >= 0, u = c ? "height" : "width";
37348
37349
  if (!(!s || !i)) {
37349
- var d = bH(o.padding, n), f = xp(s), p = l === "y" ? Pt : _t, h = l === "y" ? an : ln, m = n.rects.reference[u] + n.rects.reference[l] - i[l] - n.rects.popper[u], g = i[l] - n.rects.reference[l], y = vi(s), v = y ? l === "y" ? y.clientHeight || 0 : y.clientWidth || 0 : 0, C = m / 2 - g / 2, b = d[p], x = v - f[u] - d[h], S = v / 2 - f[u] / 2 + C, k = Ls(b, S, x), N = l;
37350
+ var d = bH(o.padding, n), f = xp(s), p = l === "y" ? Pt : _t, h = l === "y" ? an : ln, m = n.rects.reference[u] + n.rects.reference[l] - i[l] - n.rects.popper[u], g = i[l] - n.rects.reference[l], y = wi(s), v = y ? l === "y" ? y.clientHeight || 0 : y.clientWidth || 0 : 0, C = m / 2 - g / 2, b = d[p], x = v - f[u] - d[h], S = v / 2 - f[u] / 2 + C, k = Ps(b, S, x), N = l;
37350
37351
  n.modifiersData[r] = (e = {}, e[N] = k, e.centerOffset = k - S, e);
37351
37352
  }
37352
37353
  }
@@ -37390,8 +37391,8 @@ function fy(t) {
37390
37391
  p = g.x, m = g.y;
37391
37392
  var y = i.hasOwnProperty("x"), v = i.hasOwnProperty("y"), C = _t, b = Pt, x = window;
37392
37393
  if (c) {
37393
- var S = vi(n), k = "clientHeight", N = "clientWidth";
37394
- if (S === Ut(n) && (S = Lr(n), nr(S).position !== "static" && a === "absolute" && (k = "scrollHeight", N = "scrollWidth")), S = S, o === Pt || (o === _t || o === ln) && s === oi) {
37394
+ var S = wi(n), k = "clientHeight", N = "clientWidth";
37395
+ if (S === Ut(n) && (S = Lr(n), nr(S).position !== "static" && a === "absolute" && (k = "scrollHeight", N = "scrollWidth")), S = S, o === Pt || (o === _t || o === ln) && s === si) {
37395
37396
  b = an;
37396
37397
  var T = d && S === x && x.visualViewport ? x.visualViewport.height : (
37397
37398
  // $FlowFixMe[prop-missing]
@@ -37399,7 +37400,7 @@ function fy(t) {
37399
37400
  );
37400
37401
  m -= T - r.height, m *= l ? 1 : -1;
37401
37402
  }
37402
- if (o === _t || (o === Pt || o === an) && s === oi) {
37403
+ if (o === _t || (o === Pt || o === an) && s === si) {
37403
37404
  C = ln;
37404
37405
  var R = d && S === x && x.visualViewport ? x.visualViewport.width : (
37405
37406
  // $FlowFixMe[prop-missing]
@@ -37535,13 +37536,13 @@ function Tp(t) {
37535
37536
  function Bk(t) {
37536
37537
  return ["html", "body", "#document"].indexOf(_n(t)) >= 0 ? t.ownerDocument.body : rn(t) && Tp(t) ? t : Bk(Jl(t));
37537
37538
  }
37538
- function Ps(t, e) {
37539
+ function _s(t, e) {
37539
37540
  var n;
37540
37541
  e === void 0 && (e = []);
37541
37542
  var r = Bk(t), o = r === ((n = t.ownerDocument) == null ? void 0 : n.body), s = Ut(r), i = o ? [s].concat(s.visualViewport || [], Tp(r) ? r : []) : r, a = e.concat(i);
37542
37543
  return o ? a : (
37543
37544
  // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
37544
- a.concat(Ps(Jl(i)))
37545
+ a.concat(_s(Jl(i)))
37545
37546
  );
37546
37547
  }
37547
37548
  function Od(t) {
@@ -37560,7 +37561,7 @@ function hy(t, e, n) {
37560
37561
  return e === Nk ? Od(OH(t, n)) : go(e) ? IH(e, n) : Od(DH(Lr(t)));
37561
37562
  }
37562
37563
  function RH(t) {
37563
- var e = Ps(Jl(t)), n = ["absolute", "fixed"].indexOf(nr(t).position) >= 0, r = n && rn(t) ? vi(t) : t;
37564
+ var e = _s(Jl(t)), n = ["absolute", "fixed"].indexOf(nr(t).position) >= 0, r = n && rn(t) ? wi(t) : t;
37564
37565
  return go(r) ? e.filter(function(o) {
37565
37566
  return go(o) && Rk(o, r) && _n(o) !== "body";
37566
37567
  }) : [];
@@ -37612,26 +37613,26 @@ function $k(t) {
37612
37613
  case Uo:
37613
37614
  l[c] = l[c] - (e[u] / 2 - n[u] / 2);
37614
37615
  break;
37615
- case oi:
37616
+ case si:
37616
37617
  l[c] = l[c] + (e[u] / 2 - n[u] / 2);
37617
37618
  break;
37618
37619
  }
37619
37620
  }
37620
37621
  return l;
37621
37622
  }
37622
- function si(t, e) {
37623
+ function ii(t, e) {
37623
37624
  e === void 0 && (e = {});
37624
- var n = e, r = n.placement, o = r === void 0 ? t.placement : r, s = n.strategy, i = s === void 0 ? t.strategy : s, a = n.boundary, l = a === void 0 ? tH : a, c = n.rootBoundary, u = c === void 0 ? Nk : c, d = n.elementContext, f = d === void 0 ? ds : d, p = n.altBoundary, h = p === void 0 ? !1 : p, m = n.padding, g = m === void 0 ? 0 : m, y = Pk(typeof g != "number" ? g : _k(g, bi)), v = f === ds ? nH : ds, C = t.rects.popper, b = t.elements[h ? v : f], x = LH(go(b) ? b : b.contextElement || Lr(t.elements.popper), l, u, i), S = qo(t.elements.reference), k = $k({
37625
+ var n = e, r = n.placement, o = r === void 0 ? t.placement : r, s = n.strategy, i = s === void 0 ? t.strategy : s, a = n.boundary, l = a === void 0 ? tH : a, c = n.rootBoundary, u = c === void 0 ? Nk : c, d = n.elementContext, f = d === void 0 ? fs : d, p = n.altBoundary, h = p === void 0 ? !1 : p, m = n.padding, g = m === void 0 ? 0 : m, y = Pk(typeof g != "number" ? g : _k(g, vi)), v = f === fs ? nH : fs, C = t.rects.popper, b = t.elements[h ? v : f], x = LH(go(b) ? b : b.contextElement || Lr(t.elements.popper), l, u, i), S = qo(t.elements.reference), k = $k({
37625
37626
  reference: S,
37626
37627
  element: C,
37627
37628
  placement: o
37628
- }), N = Od(Object.assign({}, C, k)), T = f === ds ? N : S, R = {
37629
+ }), N = Od(Object.assign({}, C, k)), T = f === fs ? N : S, R = {
37629
37630
  top: x.top - T.top + y.top,
37630
37631
  bottom: T.bottom - x.bottom + y.bottom,
37631
37632
  left: x.left - T.left + y.left,
37632
37633
  right: T.right - x.right + y.right
37633
37634
  }, M = t.modifiersData.offset;
37634
- if (f === ds && M) {
37635
+ if (f === fs && M) {
37635
37636
  var O = M[o];
37636
37637
  Object.keys(R).forEach(function(E) {
37637
37638
  var P = [ln, an].indexOf(E) >= 0 ? 1 : -1, A = [Pt, an].indexOf(E) >= 0 ? "y" : "x";
@@ -37644,12 +37645,12 @@ function PH(t, e) {
37644
37645
  e === void 0 && (e = {});
37645
37646
  var n = e, r = n.placement, o = n.boundary, s = n.rootBoundary, i = n.padding, a = n.flipVariations, l = n.allowedAutoPlacements, c = l === void 0 ? Ok : l, u = Ko(r), d = u ? a ? uy : uy.filter(function(h) {
37646
37647
  return Ko(h) === u;
37647
- }) : bi, f = d.filter(function(h) {
37648
+ }) : vi, f = d.filter(function(h) {
37648
37649
  return c.indexOf(h) >= 0;
37649
37650
  });
37650
37651
  f.length === 0 && (f = d);
37651
37652
  var p = f.reduce(function(h, m) {
37652
- return h[m] = si(t, {
37653
+ return h[m] = ii(t, {
37653
37654
  placement: m,
37654
37655
  boundary: o,
37655
37656
  rootBoundary: s,
@@ -37679,7 +37680,7 @@ function BH(t) {
37679
37680
  allowedAutoPlacements: m
37680
37681
  }) : ne);
37681
37682
  }, []), x = e.rects.reference, S = e.rects.popper, k = /* @__PURE__ */ new Map(), N = !0, T = b[0], R = 0; R < b.length; R++) {
37682
- var M = b[R], O = In(M), E = Ko(M) === Uo, P = [Pt, an].indexOf(O) >= 0, A = P ? "width" : "height", L = si(e, {
37683
+ var M = b[R], O = In(M), E = Ko(M) === Uo, P = [Pt, an].indexOf(O) >= 0, A = P ? "width" : "height", L = ii(e, {
37683
37684
  placement: M,
37684
37685
  boundary: u,
37685
37686
  rootBoundary: d,
@@ -37741,9 +37742,9 @@ function gy(t) {
37741
37742
  });
37742
37743
  }
37743
37744
  function FH(t) {
37744
- var e = t.state, n = t.name, r = e.rects.reference, o = e.rects.popper, s = e.modifiersData.preventOverflow, i = si(e, {
37745
+ var e = t.state, n = t.name, r = e.rects.reference, o = e.rects.popper, s = e.modifiersData.preventOverflow, i = ii(e, {
37745
37746
  elementContext: "reference"
37746
- }), a = si(e, {
37747
+ }), a = ii(e, {
37747
37748
  altBoundary: !0
37748
37749
  }), l = my(i, r), c = my(a, o, s), u = gy(l), d = gy(c);
37749
37750
  e.modifiersData[n] = {
@@ -37807,7 +37808,7 @@ function qH(t) {
37807
37808
  return t === "x" ? "y" : "x";
37808
37809
  }
37809
37810
  function KH(t) {
37810
- var e = t.state, n = t.options, r = t.name, o = n.mainAxis, s = o === void 0 ? !0 : o, i = n.altAxis, a = i === void 0 ? !1 : i, l = n.boundary, c = n.rootBoundary, u = n.altBoundary, d = n.padding, f = n.tether, p = f === void 0 ? !0 : f, h = n.tetherOffset, m = h === void 0 ? 0 : h, g = si(e, {
37811
+ var e = t.state, n = t.options, r = t.name, o = n.mainAxis, s = o === void 0 ? !0 : o, i = n.altAxis, a = i === void 0 ? !1 : i, l = n.boundary, c = n.rootBoundary, u = n.altBoundary, d = n.padding, f = n.tether, p = f === void 0 ? !0 : f, h = n.tetherOffset, m = h === void 0 ? 0 : h, g = ii(e, {
37811
37812
  boundary: l,
37812
37813
  rootBoundary: c,
37813
37814
  padding: d,
@@ -37829,11 +37830,11 @@ function KH(t) {
37829
37830
  var E, P = b === "y" ? Pt : _t, A = b === "y" ? an : ln, L = b === "y" ? "height" : "width", I = S[b], D = I + g[P], $ = I - g[A], F = p ? -N[L] / 2 : 0, W = v === Uo ? k[L] : N[L], Q = v === Uo ? -N[L] : -k[L], oe = e.elements.arrow, se = p && oe ? xp(oe) : {
37830
37831
  width: 0,
37831
37832
  height: 0
37832
- }, ne = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Lk(), Pe = ne[P], rt = ne[A], et = Ls(0, k[L], se[L]), yt = C ? k[L] / 2 - F - et - Pe - R.mainAxis : W - et - Pe - R.mainAxis, q = C ? -k[L] / 2 + F + et + rt + R.mainAxis : Q + et + rt + R.mainAxis, ee = e.elements.arrow && vi(e.elements.arrow), Ie = ee ? b === "y" ? ee.clientTop || 0 : ee.clientLeft || 0 : 0, ke = (E = M == null ? void 0 : M[b]) != null ? E : 0, Fe = I + yt - ke - Ie, At = I + q - ke, ft = Ls(p ? fl(D, Fe) : D, I, p ? ao($, At) : $);
37833
+ }, ne = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Lk(), Pe = ne[P], rt = ne[A], et = Ps(0, k[L], se[L]), yt = C ? k[L] / 2 - F - et - Pe - R.mainAxis : W - et - Pe - R.mainAxis, q = C ? -k[L] / 2 + F + et + rt + R.mainAxis : Q + et + rt + R.mainAxis, ee = e.elements.arrow && wi(e.elements.arrow), Ie = ee ? b === "y" ? ee.clientTop || 0 : ee.clientLeft || 0 : 0, ke = (E = M == null ? void 0 : M[b]) != null ? E : 0, Fe = I + yt - ke - Ie, At = I + q - ke, ft = Ps(p ? fl(D, Fe) : D, I, p ? ao($, At) : $);
37833
37834
  S[b] = ft, O[b] = ft - I;
37834
37835
  }
37835
37836
  if (a) {
37836
- var Et, Pr = b === "x" ? Pt : _t, _r = b === "x" ? an : ln, Bt = S[x], Wt = x === "y" ? "height" : "width", Fn = Bt + g[Pr], cn = Bt - g[_r], Br = [Pt, _t].indexOf(y) !== -1, $r = (Et = M == null ? void 0 : M[x]) != null ? Et : 0, vo = Br ? Fn : Bt - k[Wt] - N[Wt] - $r + R.altAxis, be = Br ? Bt + k[Wt] + N[Wt] - $r - R.altAxis : cn, Ee = p && Br ? yH(vo, Bt, be) : Ls(p ? vo : Fn, Bt, p ? be : cn);
37837
+ var Et, Pr = b === "x" ? Pt : _t, _r = b === "x" ? an : ln, Bt = S[x], Wt = x === "y" ? "height" : "width", Fn = Bt + g[Pr], cn = Bt - g[_r], Br = [Pt, _t].indexOf(y) !== -1, $r = (Et = M == null ? void 0 : M[x]) != null ? Et : 0, vo = Br ? Fn : Bt - k[Wt] - N[Wt] - $r + R.altAxis, be = Br ? Bt + k[Wt] + N[Wt] - $r - R.altAxis : cn, Ee = p && Br ? yH(vo, Bt, be) : Ps(p ? vo : Fn, Bt, p ? be : cn);
37837
37838
  S[x] = Ee, O[x] = Ee - Bt;
37838
37839
  }
37839
37840
  e.modifiersData[r] = O;
@@ -37958,8 +37959,8 @@ function r3(t) {
37958
37959
  setOptions: function(y) {
37959
37960
  var v = typeof y == "function" ? y(u.options) : y;
37960
37961
  m(), u.options = Object.assign({}, s, u.options, v), u.scrollParents = {
37961
- reference: go(a) ? Ps(a) : a.contextElement ? Ps(a.contextElement) : [],
37962
- popper: Ps(l)
37962
+ reference: go(a) ? _s(a) : a.contextElement ? _s(a.contextElement) : [],
37963
+ popper: _s(l)
37963
37964
  };
37964
37965
  var C = e3(n3([].concat(r, u.options.modifiers)));
37965
37966
  return u.orderedModifiers = C.filter(function(b) {
@@ -37976,7 +37977,7 @@ function r3(t) {
37976
37977
  var y = u.elements, v = y.reference, C = y.popper;
37977
37978
  if (by(v, C)) {
37978
37979
  u.rects = {
37979
- reference: QH(v, vi(C), u.options.strategy === "fixed"),
37980
+ reference: QH(v, wi(C), u.options.strategy === "fixed"),
37980
37981
  popper: xp(C)
37981
37982
  }, u.reset = !1, u.placement = u.options.placement, u.orderedModifiers.forEach(function(R) {
37982
37983
  return u.modifiersData[R.name] = Object.assign({}, R.data);
@@ -38102,10 +38103,10 @@ function xy(t) {
38102
38103
  return t[n] !== void 0 && (e[n] = t[n]), e;
38103
38104
  }, {});
38104
38105
  }
38105
- function _s() {
38106
+ function Bs() {
38106
38107
  return document.createElement("div");
38107
38108
  }
38108
- function ii(t) {
38109
+ function ai(t) {
38109
38110
  return ["Element", "Fragment"].some(function(e) {
38110
38111
  return Ap(t, e);
38111
38112
  });
@@ -38120,7 +38121,7 @@ function m3(t) {
38120
38121
  return !!(t && t._tippy && t._tippy.reference === t);
38121
38122
  }
38122
38123
  function g3(t) {
38123
- return ii(t) ? [t] : p3(t) ? pl(t) : Array.isArray(t) ? t : pl(document.querySelectorAll(t));
38124
+ return ai(t) ? [t] : p3(t) ? pl(t) : Array.isArray(t) ? t : pl(document.querySelectorAll(t));
38124
38125
  }
38125
38126
  function Qc(t, e) {
38126
38127
  t.forEach(function(n) {
@@ -38213,21 +38214,21 @@ function Wk(t) {
38213
38214
  "color: #a6a095;"
38214
38215
  ];
38215
38216
  }
38216
- var ai;
38217
+ var li;
38217
38218
  process.env.NODE_ENV !== "production" && T3();
38218
38219
  function T3() {
38219
- ai = /* @__PURE__ */ new Set();
38220
+ li = /* @__PURE__ */ new Set();
38220
38221
  }
38221
38222
  function Kn(t, e) {
38222
- if (t && !ai.has(e)) {
38223
+ if (t && !li.has(e)) {
38223
38224
  var n;
38224
- ai.add(e), (n = console).warn.apply(n, Wk(e));
38225
+ li.add(e), (n = console).warn.apply(n, Wk(e));
38225
38226
  }
38226
38227
  }
38227
38228
  function Dd(t, e) {
38228
- if (t && !ai.has(e)) {
38229
+ if (t && !li.has(e)) {
38229
38230
  var n;
38230
- ai.add(e), (n = console).error.apply(n, Wk(e));
38231
+ li.add(e), (n = console).error.apply(n, Wk(e));
38231
38232
  }
38232
38233
  }
38233
38234
  function A3(t) {
@@ -38363,11 +38364,11 @@ function Id(t, e) {
38363
38364
  t[D3()] = e;
38364
38365
  }
38365
38366
  function Ey(t) {
38366
- var e = _s();
38367
- return t === !0 ? e.className = zk : (e.className = Hk, ii(t) ? e.appendChild(t) : Id(e, t)), e;
38367
+ var e = Bs();
38368
+ return t === !0 ? e.className = zk : (e.className = Hk, ai(t) ? e.appendChild(t) : Id(e, t)), e;
38368
38369
  }
38369
38370
  function My(t, e) {
38370
- ii(e.content) ? (Id(t, ""), t.appendChild(e.content)) : typeof e.content != "function" && (e.allowHTML ? Id(t, e.content) : t.textContent = e.content);
38371
+ ai(e.content) ? (Id(t, ""), t.appendChild(e.content)) : typeof e.content != "function" && (e.allowHTML ? Id(t, e.content) : t.textContent = e.content);
38371
38372
  }
38372
38373
  function Rd(t) {
38373
38374
  var e = t.firstElementChild, n = pl(e.children);
@@ -38385,9 +38386,9 @@ function Rd(t) {
38385
38386
  };
38386
38387
  }
38387
38388
  function Yk(t) {
38388
- var e = _s(), n = _s();
38389
+ var e = Bs(), n = Bs();
38389
38390
  n.className = i3, n.setAttribute("data-state", "hidden"), n.setAttribute("tabindex", "-1");
38390
- var r = _s();
38391
+ var r = Bs();
38391
38392
  r.className = Fk, r.setAttribute("data-state", "hidden"), My(r, t.props), e.appendChild(n), n.appendChild(r), o(t.props, t.props);
38392
38393
  function o(s, i) {
38393
38394
  var a = Rd(e), l = a.box, c = a.content, u = a.arrow;
@@ -38416,7 +38417,7 @@ function R3(t, e) {
38416
38417
  // properties
38417
38418
  id: g,
38418
38419
  reference: t,
38419
- popper: _s(),
38420
+ popper: Bs(),
38420
38421
  popperInstance: y,
38421
38422
  props: n,
38422
38423
  state: C,
@@ -38809,7 +38810,7 @@ function Qo(t, e) {
38809
38810
  plugins: n
38810
38811
  }), o = g3(t);
38811
38812
  if (process.env.NODE_ENV !== "production") {
38812
- var s = ii(r.content), i = o.length > 1;
38813
+ var s = ai(r.content), i = o.length > 1;
38813
38814
  Kn(s && i, ["tippy() was passed an Element as the `content` prop, but more than", "one tippy instance was created by this invocation. This means the", "content element will only be appended to the last tippy instance.", `
38814
38815
 
38815
38816
  `, "Instead, pass the .innerHTML of the element, or use a function that", "returns a cloned version of the element instead.", `
@@ -38821,7 +38822,7 @@ function Qo(t, e) {
38821
38822
  var u = c && R3(c, r);
38822
38823
  return u && l.push(u), l;
38823
38824
  }, []);
38824
- return ii(t) ? a[0] : a;
38825
+ return ai(t) ? a[0] : a;
38825
38826
  }
38826
38827
  Qo.defaultProps = Vt;
38827
38828
  Qo.setDefaultProps = N3;
@@ -39125,7 +39126,7 @@ const j3 = [
39125
39126
  selected: e,
39126
39127
  getPos: n
39127
39128
  }) => {
39128
- const [r, o] = pe(!1), { isPreviewMode: s } = mi(), i = Oe(null), a = Oe(
39129
+ const [r, o] = pe(!1), { isPreviewMode: s } = gi(), i = Oe(null), a = Oe(
39129
39130
  null
39130
39131
  ), l = () => {
39131
39132
  a.current !== null && (window.clearTimeout(a.current), a.current = null), o(!0);
@@ -39613,7 +39614,7 @@ const e4 = (t) => ({ node: e, editor: n, getPos: r, deleteNode: o, ...s }) => /*
39613
39614
  deleteNode: r,
39614
39615
  onError: o
39615
39616
  }) => {
39616
- const [s, i] = pe(""), { isPreviewMode: a } = mi(), l = ["https://twitter.com", "https://x.com"], c = () => {
39617
+ const [s, i] = pe(""), { isPreviewMode: a } = gi(), l = ["https://twitter.com", "https://x.com"], c = () => {
39617
39618
  switch (t.attrs.data) {
39618
39619
  case "twitter":
39619
39620
  return /* @__PURE__ */ w(ge, { name: "XSocial", size: "md" });
@@ -40081,7 +40082,7 @@ class s4 {
40081
40082
  return this.addNode(e.type, e.attrs, e.content);
40082
40083
  }
40083
40084
  }
40084
- function fs(t, e, n, r) {
40085
+ function ps(t, e, n, r) {
40085
40086
  return t.getAttrs ? t.getAttrs(e, n, r) : t.attrs instanceof Function ? t.attrs(e) : t.attrs;
40086
40087
  }
40087
40088
  function ru(t, e) {
@@ -40100,16 +40101,16 @@ function i4(t, e) {
40100
40101
  if (o.block) {
40101
40102
  let s = t.nodeType(o.block);
40102
40103
  ru(o, r) ? n[r] = (i, a, l, c) => {
40103
- i.openNode(s, fs(o, a, l, c)), i.addText(Ly(a.content)), i.closeNode();
40104
- } : (n[r + "_open"] = (i, a, l, c) => i.openNode(s, fs(o, a, l, c)), n[r + "_close"] = (i) => i.closeNode());
40104
+ i.openNode(s, ps(o, a, l, c)), i.addText(Ly(a.content)), i.closeNode();
40105
+ } : (n[r + "_open"] = (i, a, l, c) => i.openNode(s, ps(o, a, l, c)), n[r + "_close"] = (i) => i.closeNode());
40105
40106
  } else if (o.node) {
40106
40107
  let s = t.nodeType(o.node);
40107
- n[r] = (i, a, l, c) => i.addNode(s, fs(o, a, l, c));
40108
+ n[r] = (i, a, l, c) => i.addNode(s, ps(o, a, l, c));
40108
40109
  } else if (o.mark) {
40109
40110
  let s = t.marks[o.mark];
40110
40111
  ru(o, r) ? n[r] = (i, a, l, c) => {
40111
- i.openMark(s.create(fs(o, a, l, c))), i.addText(Ly(a.content)), i.closeMark(s);
40112
- } : (n[r + "_open"] = (i, a, l, c) => i.openMark(s.create(fs(o, a, l, c))), n[r + "_close"] = (i) => i.closeMark(s));
40112
+ i.openMark(s.create(ps(o, a, l, c))), i.addText(Ly(a.content)), i.closeMark(s);
40113
+ } : (n[r + "_open"] = (i, a, l, c) => i.openMark(s.create(ps(o, a, l, c))), n[r + "_close"] = (i) => i.closeMark(s));
40113
40114
  } else if (o.ignore)
40114
40115
  ru(o, r) ? n[r] = ou : (n[r + "_open"] = ou, n[r + "_close"] = ou);
40115
40116
  else
@@ -40715,7 +40716,7 @@ const iC = it.create({
40715
40716
  }
40716
40717
  });
40717
40718
  function Fy(t) {
40718
- const e = t.type.schema, n = e.text(" ", [t]), o = fi(_.from(n), e).match(/^(<.*?>) (<\/.*?>)$/);
40719
+ const e = t.type.schema, n = e.text(" ", [t]), o = pi(_.from(n), e).match(/^(<.*?>) (<\/.*?>)$/);
40719
40720
  return o ? [o[1], o[2]] : null;
40720
40721
  }
40721
40722
  function Ep(t) {
@@ -40753,7 +40754,7 @@ const Xl = de.create({
40753
40754
  }
40754
40755
  });
40755
40756
  function L4(t, e) {
40756
- const n = t.type.schema, r = fi(_.from(t), n);
40757
+ const n = t.type.schema, r = pi(_.from(t), n);
40757
40758
  return t.isBlock && (e instanceof _ || e.type.name === n.topNodeType.name) ? P4(r) : r;
40758
40759
  }
40759
40760
  function P4(t) {
@@ -41913,7 +41914,7 @@ ${u}
41913
41914
  f = h.showLoader(), p = h.removeLoader;
41914
41915
  }
41915
41916
  try {
41916
- const h = await a.arrayBuffer(), { default: m } = await import("./index-DgCwQfoD.mjs").then((v) => v.i), { value: g } = await m.convertToHtml(
41917
+ const h = await a.arrayBuffer(), { default: m } = await import("./index-B1mVtyXJ.mjs").then((v) => v.i), { value: g } = await m.convertToHtml(
41917
41918
  { arrayBuffer: h },
41918
41919
  {
41919
41920
  styleMap: hC,
@@ -41948,8 +41949,8 @@ ${u}
41948
41949
  };
41949
41950
  }
41950
41951
  });
41951
- var mC = {}, Op = {}, wi = {};
41952
- Object.defineProperty(wi, "__esModule", {
41952
+ var mC = {}, Op = {}, xi = {};
41953
+ Object.defineProperty(xi, "__esModule", {
41953
41954
  value: !0
41954
41955
  });
41955
41956
  var wj = /* @__PURE__ */ function() {
@@ -42020,7 +42021,7 @@ Le.patterns = /* @__PURE__ */ new Map([
42020
42021
  [Le.TYPE_POWER, /\^/],
42021
42022
  [Le.TYPE_NUMBER, /\d+(\.\d+)?/]
42022
42023
  ]);
42023
- wi.default = Le;
42024
+ xi.default = Le;
42024
42025
  var kj = ["TPLUS", "TMINUS", "TTIMES", "TDIVIDE", "TWS", "TABS", "TBANG", "TCOMMA", "TPOWER"], Ql = {};
42025
42026
  Object.defineProperty(Ql, "__esModule", {
42026
42027
  value: !0
@@ -42087,7 +42088,7 @@ Object.defineProperty(Dp, "__esModule", {
42087
42088
  value: !0
42088
42089
  });
42089
42090
  Dp.default = Ij;
42090
- var Oj = wi, lu = Dj(Oj);
42091
+ var Oj = xi, lu = Dj(Oj);
42091
42092
  function Dj(t) {
42092
42093
  return t && t.__esModule ? t : { default: t };
42093
42094
  }
@@ -42133,7 +42134,7 @@ var Rj = /* @__PURE__ */ function() {
42133
42134
  };
42134
42135
  }();
42135
42136
  Op.default = Wj;
42136
- var Pj = wi, zt = Zl(Pj), _j = Ql, Bj = Zl(_j), $j = kn, Fj = Zl($j), zj = Dp, Hj = Zl(zj);
42137
+ var Pj = xi, zt = Zl(Pj), _j = Ql, Bj = Zl(_j), $j = kn, Fj = Zl($j), zj = Dp, Hj = Zl(zj);
42137
42138
  function Zl(t) {
42138
42139
  return t && t.__esModule ? t : { default: t };
42139
42140
  }
@@ -42450,7 +42451,7 @@ var Zj = /* @__PURE__ */ function() {
42450
42451
  };
42451
42452
  }();
42452
42453
  Ip.default = iV;
42453
- var eV = Rp, je = Lp(eV), tV = wi, Ge = Lp(tV), nV = Ql, rV = Lp(nV), oV = kn;
42454
+ var eV = Rp, je = Lp(eV), tV = xi, Ge = Lp(tV), nV = Ql, rV = Lp(nV), oV = kn;
42454
42455
  function Lp(t) {
42455
42456
  return t && t.__esModule ? t : { default: t };
42456
42457
  }
@@ -43060,11 +43061,11 @@ const SV = (t, e) => new Y({
43060
43061
  (d) => (d == null ? void 0 : d.type.indexOf("image")) === 0
43061
43062
  ) && e ? (Object.values(s ?? {}).forEach((d) => {
43062
43063
  if ((d == null ? void 0 : d.type.indexOf("image")) === 0) {
43063
- if (!Zs(d, t))
43064
+ if (!ei(d, t))
43064
43065
  return;
43065
43066
  if (d.size > a.maxSize)
43066
43067
  throw t(a.errorMsg), new Error(a.errorMsg);
43067
- Qs(d, n, i, e);
43068
+ Zs(d, n, i, e);
43068
43069
  }
43069
43070
  }), !0) : (o.forEach((d) => {
43070
43071
  const f = d.getAsFile();
@@ -43087,10 +43088,10 @@ const SV = (t, e) => new Y({
43087
43088
  });
43088
43089
  return a ? (s.forEach(async (c) => {
43089
43090
  const u = new FileReader();
43090
- if (Zs(c, t))
43091
+ if (ei(c, t))
43091
43092
  if (typeof e == "function")
43092
43093
  try {
43093
- Qs(
43094
+ Zs(
43094
43095
  c,
43095
43096
  n,
43096
43097
  a.pos,
@@ -43801,7 +43802,7 @@ const SV = (t, e) => new Y({
43801
43802
  const r = t(this.editor);
43802
43803
  let o = parseInt(r.fontSize || "16");
43803
43804
  isNaN(o) && (o = 16);
43804
- const s = Js.find((l) => l > o);
43805
+ const s = Xs.find((l) => l > o);
43805
43806
  if (!s) return !1;
43806
43807
  const i = `${s}px`, { selection: a } = n;
43807
43808
  return e().setMark(
@@ -43813,7 +43814,7 @@ const SV = (t, e) => new Y({
43813
43814
  const r = t(this.editor);
43814
43815
  let o = parseInt(r.fontSize || "16");
43815
43816
  isNaN(o) && (o = 16);
43816
- const s = [...Js].reverse().find((l) => l < o);
43817
+ const s = [...Xs].reverse().find((l) => l < o);
43817
43818
  if (!s) return !1;
43818
43819
  const i = `${s}px`, { selection: a } = n;
43819
43820
  return e().setMark(
@@ -44094,7 +44095,7 @@ function VV({
44094
44095
  deleteNode: r,
44095
44096
  innerDecorations: o
44096
44097
  }) {
44097
- const s = Oe(null), [i, a] = pe("Copy"), { isSuggestionMode: l } = mi(), c = t.attrs.language || "plaintext", u = c === "mermaid", d = !n.isEditable || !!l, f = t.attrs.lineNumbers && !d && !u, p = t.attrs.wordWrap && !d && !u, h = t.attrs.tabSize ?? 2, m = t.attrs.shouldFocus, { isMobile: g } = ix(), y = t.textContent || t.attrs.code || "", v = Oe(null), C = `mermaid-${HC().replace(/:/g, "")}`, [b, x] = jC(
44098
+ const s = Oe(null), [i, a] = pe("Copy"), { isSuggestionMode: l } = gi(), c = t.attrs.language || "plaintext", u = c === "mermaid", d = !n.isEditable || !!l, f = t.attrs.lineNumbers && !d && !u, p = t.attrs.wordWrap && !d && !u, h = t.attrs.tabSize ?? 2, m = t.attrs.shouldFocus, { isMobile: g } = ix(), y = t.textContent || t.attrs.code || "", v = Oe(null), C = `mermaid-${HC().replace(/:/g, "")}`, [b, x] = jC(
44098
44099
  (I, D) => {
44099
44100
  switch (D.type) {
44100
44101
  case "toggleView":
@@ -45317,10 +45318,10 @@ const c6 = (t, e, { state: n, dispatch: r }) => {
45317
45318
  "Mod-Shift-Alt-^": e
45318
45319
  };
45319
45320
  }
45320
- }), m6 = B1($1), uu = /* @__PURE__ */ new WeakSet(), li = (t) => typeof t == "string" && t.length > 0, g6 = (t) => li(t) && /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(
45321
+ }), m6 = B1($1), uu = /* @__PURE__ */ new WeakSet(), ci = (t) => typeof t == "string" && t.length > 0, g6 = (t) => ci(t) && /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(
45321
45322
  t
45322
45323
  ), ob = (t, e) => {
45323
- li(e) && t.set(e, (t.get(e) ?? 0) + 1);
45324
+ ci(e) && t.set(e, (t.get(e) ?? 0) + 1);
45324
45325
  }, y6 = (t) => {
45325
45326
  const e = /* @__PURE__ */ new Map();
45326
45327
  return t.state.doc.descendants((n) => {
@@ -45340,7 +45341,7 @@ const c6 = (t, e, { state: n, dispatch: r }) => {
45340
45341
  const r = y6(e);
45341
45342
  let o = e.state.tr;
45342
45343
  e.state.doc.descendants((s, i) => {
45343
- if (s.type.name !== "heading" || s.textContent.length === 0 || li(s.attrs["data-toc-id"]))
45344
+ if (s.type.name !== "heading" || s.textContent.length === 0 || ci(s.attrs["data-toc-id"]))
45344
45345
  return;
45345
45346
  const a = v6(s.attrs.id, r);
45346
45347
  if (a) {
@@ -45470,7 +45471,7 @@ const c6 = (t, e, { state: n, dispatch: r }) => {
45470
45471
  i6.configure({
45471
45472
  getIndex: XB,
45472
45473
  onUpdate: (u, d) => {
45473
- const f = u.filter((m) => !li(m.id)), p = u.filter((m) => li(m.id));
45474
+ const f = u.filter((m) => !ci(m.id)), p = u.filter((m) => ci(m.id));
45474
45475
  f.length > 0 && w6(f);
45475
45476
  const h = p.map((m) => ({
45476
45477
  id: m.id,
@@ -45931,7 +45932,7 @@ const c6 = (t, e, { state: n, dispatch: r }) => {
45931
45932
  deleteNode: e
45932
45933
  }) => {
45933
45934
  var d;
45934
- const { isPreviewMode: n } = mi(), r = (d = t.storage.pagination) == null ? void 0 : d.store, o = gl(
45935
+ const { isPreviewMode: n } = gi(), r = (d = t.storage.pagination) == null ? void 0 : d.store, o = gl(
45935
45936
  (r == null ? void 0 : r.subscribe) ?? S6,
45936
45937
  () => (r == null ? void 0 : r.get().enabled) ?? !1
45937
45938
  ), { documentStyling: s, theme: i, isFocusMode: a } = n_(), l = () => {
@@ -46313,7 +46314,7 @@ const M6 = (t, e) => {
46313
46314
  async function d(f, p, h) {
46314
46315
  if (f.type === "application/vnd.openxmlformats-officedocument.wordprocessingml.document" || f.name.endsWith(".docx"))
46315
46316
  try {
46316
- const m = await f.arrayBuffer(), { default: g } = await import("./index-DgCwQfoD.mjs").then((k) => k.i), { value: y } = await g.convertToHtml(
46317
+ const m = await f.arrayBuffer(), { default: g } = await import("./index-B1mVtyXJ.mjs").then((k) => k.i), { value: y } = await g.convertToHtml(
46317
46318
  { arrayBuffer: m },
46318
46319
  {
46319
46320
  styleMap: hC,
@@ -46367,10 +46368,10 @@ export {
46367
46368
  eW as D,
46368
46369
  J as E,
46369
46370
  iW as F,
46370
- mi as G,
46371
+ gi as G,
46371
46372
  s_ as H,
46372
46373
  fe as I,
46373
- as as J,
46374
+ ls as J,
46374
46375
  jo as K,
46375
46376
  aW as L,
46376
46377
  $P as M,
@@ -46399,7 +46400,7 @@ export {
46399
46400
  hW as a6,
46400
46401
  fW as a7,
46401
46402
  at as a8,
46402
- Zs as a9,
46403
+ ei as a9,
46403
46404
  O6 as aA,
46404
46405
  RU as aB,
46405
46406
  IF as aC,
@@ -46418,7 +46419,7 @@ export {
46418
46419
  Rz as aP,
46419
46420
  rb as aQ,
46420
46421
  TU as aR,
46421
- Ii as aS,
46422
+ Ri as aS,
46422
46423
  VP as aT,
46423
46424
  CW as aU,
46424
46425
  LU as aV,
@@ -46428,7 +46429,7 @@ export {
46428
46429
  YI as aZ,
46429
46430
  lW as a_,
46430
46431
  xr as aa,
46431
- Qs as ab,
46432
+ Zs as ab,
46432
46433
  XV as ac,
46433
46434
  w0 as ad,
46434
46435
  Qo as ae,
@@ -46463,7 +46464,7 @@ export {
46463
46464
  dW as b5,
46464
46465
  QU as b6,
46465
46466
  ns as b7,
46466
- gs as b8,
46467
+ ys as b8,
46467
46468
  Yr as b9,
46468
46469
  yk as bA,
46469
46470
  Fd as bB,
@@ -46479,7 +46480,7 @@ export {
46479
46480
  VU as bL,
46480
46481
  JU as bM,
46481
46482
  sd as bN,
46482
- bs as bO,
46483
+ vs as bO,
46483
46484
  Ww as bP,
46484
46485
  IU as bQ,
46485
46486
  DU as bR,
@@ -46508,13 +46509,13 @@ export {
46508
46509
  xD as bn,
46509
46510
  wD as bo,
46510
46511
  ae as bp,
46511
- Fs as bq,
46512
+ zs as bq,
46512
46513
  Gd as br,
46513
46514
  Jo as bs,
46514
46515
  mo as bt,
46515
46516
  gn as bu,
46516
46517
  yW as bv,
46517
- hi as bw,
46518
+ mi as bw,
46518
46519
  cz as bx,
46519
46520
  Pp as by,
46520
46521
  hz as bz,
@@ -46526,7 +46527,7 @@ export {
46526
46527
  AL as c4,
46527
46528
  bU as c5,
46528
46529
  yU as c6,
46529
- _i as d,
46530
+ ss as d,
46530
46531
  OU as e,
46531
46532
  ix as f,
46532
46533
  FE as g,