@samhammer/tiptob 2.3.32 → 2.3.33

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.
@@ -3252,7 +3252,7 @@ class oe extends Y {
3252
3252
  }
3253
3253
  }
3254
3254
  Y.jsonID("replace", oe);
3255
- class _ extends Y {
3255
+ class ee extends Y {
3256
3256
  /**
3257
3257
  Create a replace-around step with the given range and gap.
3258
3258
  `insert` should be the point in the slice into which the content
@@ -3283,11 +3283,11 @@ class _ extends Y {
3283
3283
  }
3284
3284
  invert(e) {
3285
3285
  let t = this.gapTo - this.gapFrom;
3286
- return new _(this.from, this.from + this.slice.size + t, this.from + this.insert, this.from + this.insert + t, e.slice(this.from, this.to).removeBetween(this.gapFrom - this.from, this.gapTo - this.from), this.gapFrom - this.from, this.structure);
3286
+ return new ee(this.from, this.from + this.slice.size + t, this.from + this.insert, this.from + this.insert + t, e.slice(this.from, this.to).removeBetween(this.gapFrom - this.from, this.gapTo - this.from), this.gapFrom - this.from, this.structure);
3287
3287
  }
3288
3288
  map(e) {
3289
3289
  let t = e.mapResult(this.from, 1), r = e.mapResult(this.to, -1), i = this.from == this.gapFrom ? t.pos : e.map(this.gapFrom, -1), o = this.to == this.gapTo ? r.pos : e.map(this.gapTo, 1);
3290
- return t.deletedAcross && r.deletedAcross || i < t.pos || o > r.pos ? null : new _(t.pos, r.pos, i, o, this.slice, this.insert, this.structure);
3290
+ return t.deletedAcross && r.deletedAcross || i < t.pos || o > r.pos ? null : new ee(t.pos, r.pos, i, o, this.slice, this.insert, this.structure);
3291
3291
  }
3292
3292
  toJSON() {
3293
3293
  let e = {
@@ -3306,10 +3306,10 @@ class _ extends Y {
3306
3306
  static fromJSON(e, t) {
3307
3307
  if (typeof t.from != "number" || typeof t.to != "number" || typeof t.gapFrom != "number" || typeof t.gapTo != "number" || typeof t.insert != "number")
3308
3308
  throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");
3309
- return new _(t.from, t.to, t.gapFrom, t.gapTo, S.fromJSON(e, t.slice), t.insert, !!t.structure);
3309
+ return new ee(t.from, t.to, t.gapFrom, t.gapTo, S.fromJSON(e, t.slice), t.insert, !!t.structure);
3310
3310
  }
3311
3311
  }
3312
- Y.jsonID("replaceAround", _);
3312
+ Y.jsonID("replaceAround", ee);
3313
3313
  function wr(n, e, t) {
3314
3314
  let r = n.resolve(e), i = t - e, o = r.depth;
3315
3315
  for (; i > 0 && o > 0 && r.indexAfter(o) == r.node(o).childCount; )
@@ -3464,7 +3464,7 @@ class ja {
3464
3464
  for (; s && a && o.childCount == 1; )
3465
3465
  o = o.firstChild.content, s--, a--;
3466
3466
  let l = new S(o, s, a);
3467
- return e > -1 ? new _(r.pos, e, this.$to.pos, this.$to.end(), l, t) : l.size || r.pos != this.$to.pos ? new oe(r.pos, i.pos, l) : null;
3467
+ return e > -1 ? new ee(r.pos, e, this.$to.pos, this.$to.end(), l, t) : l.size || r.pos != this.$to.pos ? new oe(r.pos, i.pos, l) : null;
3468
3468
  }
3469
3469
  // Find a position on the start spine of `this.unplaced` that has
3470
3470
  // content that can be moved somewhere on the frontier. Returns two
@@ -3605,9 +3605,9 @@ function ar(n, e, t, r, i) {
3605
3605
  if (s == o.childCount && !t.compatibleContent(o.type))
3606
3606
  return null;
3607
3607
  let a = r.fillBefore(o.content, !0, s);
3608
- return a && !Wa(t, o.content, s) ? a : null;
3608
+ return a && !Ha(t, o.content, s) ? a : null;
3609
3609
  }
3610
- function Wa(n, e, t) {
3610
+ function Ha(n, e, t) {
3611
3611
  for (let r = t; r < e.childCount; r++)
3612
3612
  if (!n.allowsMarks(e.child(r).marks))
3613
3613
  return !0;
@@ -3702,7 +3702,7 @@ class D {
3702
3702
  `$head`.
3703
3703
  */
3704
3704
  constructor(e, t, r) {
3705
- this.$anchor = e, this.$head = t, this.ranges = r || [new Ha(e.min(t), e.max(t))];
3705
+ this.$anchor = e, this.$head = t, this.ranges = r || [new Wa(e.min(t), e.max(t))];
3706
3706
  }
3707
3707
  /**
3708
3708
  The selection's anchor, as an unresolved position.
@@ -3860,7 +3860,7 @@ class D {
3860
3860
  }
3861
3861
  }
3862
3862
  D.prototype.visible = !0;
3863
- class Ha {
3863
+ class Wa {
3864
3864
  /**
3865
3865
  Create a range.
3866
3866
  */
@@ -4082,7 +4082,7 @@ function Ti(n, e, t) {
4082
4082
  if (r < e)
4083
4083
  return;
4084
4084
  let i = n.steps[r];
4085
- if (!(i instanceof oe || i instanceof _))
4085
+ if (!(i instanceof oe || i instanceof ee))
4086
4086
  return;
4087
4087
  let o = n.mapping.maps[r], s;
4088
4088
  o.forEach((a, l, c, u) => {
@@ -4138,7 +4138,7 @@ class be {
4138
4138
  Create a plugin.
4139
4139
  */
4140
4140
  constructor(e) {
4141
- this.spec = e, this.props = {}, e.props && jo(e.props, this, this.props), this.key = e.key ? e.key.key : Wo("plugin");
4141
+ this.spec = e, this.props = {}, e.props && jo(e.props, this, this.props), this.key = e.key ? e.key.key : Ho("plugin");
4142
4142
  }
4143
4143
  /**
4144
4144
  Extract the plugin's state field from an editor state.
@@ -4148,7 +4148,7 @@ class be {
4148
4148
  }
4149
4149
  }
4150
4150
  const cr = /* @__PURE__ */ Object.create(null);
4151
- function Wo(n) {
4151
+ function Ho(n) {
4152
4152
  return n in cr ? n + "$" + ++cr[n] : (cr[n] = 0, n + "$");
4153
4153
  }
4154
4154
  class ge {
@@ -4156,7 +4156,7 @@ class ge {
4156
4156
  Create a plugin key.
4157
4157
  */
4158
4158
  constructor(e = "key") {
4159
- this.key = Wo(e);
4159
+ this.key = Ho(e);
4160
4160
  }
4161
4161
  /**
4162
4162
  Get the active plugin with this key, if any, from an editor
@@ -4176,7 +4176,7 @@ const ft = function(n) {
4176
4176
  for (var e = 0; ; e++)
4177
4177
  if (n = n.previousSibling, !n)
4178
4178
  return e;
4179
- }, Ho = function(n, e, t, r) {
4179
+ }, Wo = function(n, e, t, r) {
4180
4180
  return t && (Ai(n, e, t, r, -1) || Ai(n, e, t, r, 1));
4181
4181
  }, qa = /^(img|br|input|textarea|hr)$/i;
4182
4182
  function Ai(n, e, t, r, i) {
@@ -4221,7 +4221,7 @@ function $r(n) {
4221
4221
  return e && e.node && e.node.isBlock && (e.dom == n || e.contentDOM == n);
4222
4222
  }
4223
4223
  const Jo = function(n) {
4224
- return n.focusNode && Ho(n.focusNode, n.focusOffset, n.anchorNode, n.anchorOffset);
4224
+ return n.focusNode && Wo(n.focusNode, n.focusOffset, n.anchorNode, n.anchorOffset);
4225
4225
  };
4226
4226
  function qo(n, e) {
4227
4227
  let t = document.createEvent("Event");
@@ -4229,7 +4229,7 @@ function qo(n, e) {
4229
4229
  }
4230
4230
  const Ee = typeof navigator < "u" ? navigator : null, Ni = typeof document < "u" ? document : null, je = Ee && Ee.userAgent || "", Sr = /Edge\/(\d+)/.exec(je), Ko = /MSIE \d/.exec(je), Cr = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(je), on = !!(Ko || Cr || Sr), Uo = Ko ? document.documentMode : Cr ? +Cr[1] : Sr ? +Sr[1] : 0, Qn = !on && /gecko\/(\d+)/i.test(je);
4231
4231
  Qn && +(/Firefox\/(\d+)/.exec(je) || [0, 0])[1];
4232
- const Or = !on && /Chrome\/(\d+)/.exec(je), We = !!Or, Go = Or ? +Or[1] : 0, dt = !on && !!Ee && /Apple Computer/.test(Ee.vendor), Vr = dt && (/Mobile\/\w+/.test(je) || !!Ee && Ee.maxTouchPoints > 2), de = Vr || (Ee ? /Mac/.test(Ee.platform) : !1), Ua = Ee ? /Win/.test(Ee.platform) : !1, sn = /Android \d/.test(je), jr = !!Ni && "webkitFontSmoothing" in Ni.documentElement.style, Ga = jr ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
4232
+ const Or = !on && /Chrome\/(\d+)/.exec(je), He = !!Or, Go = Or ? +Or[1] : 0, dt = !on && !!Ee && /Apple Computer/.test(Ee.vendor), Vr = dt && (/Mobile\/\w+/.test(je) || !!Ee && Ee.maxTouchPoints > 2), de = Vr || (Ee ? /Mac/.test(Ee.platform) : !1), Ua = Ee ? /Win/.test(Ee.platform) : !1, sn = /Android \d/.test(je), jr = !!Ni && "webkitFontSmoothing" in Ni.documentElement.style, Ga = jr ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
4233
4233
  function Ya(n, e = null) {
4234
4234
  let t = n.domSelectionRange(), r = n.state.doc;
4235
4235
  if (!t.focusNode)
@@ -4271,12 +4271,12 @@ function Ya(n, e = null) {
4271
4271
  function Yo(n) {
4272
4272
  return n.editable ? n.hasFocus() : _a(n) && document.activeElement && document.activeElement.contains(n.dom);
4273
4273
  }
4274
- function Wr(n, e = !1) {
4274
+ function Hr(n, e = !1) {
4275
4275
  let t = n.state.selection;
4276
4276
  if (Za(n, t), !!Yo(n)) {
4277
- if (!e && n.input.mouseDown && n.input.mouseDown.allowDefault && We) {
4277
+ if (!e && n.input.mouseDown && n.input.mouseDown.allowDefault && He) {
4278
4278
  let r = n.domSelectionRange(), i = n.domObserver.currentSelection;
4279
- if (r.anchorNode && i.anchorNode && Ho(r.anchorNode, r.anchorOffset, i.anchorNode, i.anchorOffset)) {
4279
+ if (r.anchorNode && i.anchorNode && Wo(r.anchorNode, r.anchorOffset, i.anchorNode, i.anchorOffset)) {
4280
4280
  n.input.mouseDown.delayedSelectionSync = !0, n.domObserver.setCurSelection();
4281
4281
  return;
4282
4282
  }
@@ -4290,7 +4290,7 @@ function Wr(n, e = !1) {
4290
4290
  n.domObserver.setCurSelection(), n.domObserver.connectSelection();
4291
4291
  }
4292
4292
  }
4293
- const Ii = dt || We && Go < 63;
4293
+ const Ii = dt || He && Go < 63;
4294
4294
  function Di(n, e) {
4295
4295
  let { node: t, offset: r } = n.docView.domFromPos(e, 0), i = r < t.childNodes.length ? t.childNodes[r] : null, o = r ? t.childNodes[r - 1] : null;
4296
4296
  if (dt && i && i.contentEditable == "false")
@@ -4506,12 +4506,12 @@ function Tr(n, e, t) {
4506
4506
  n.domObserver.setCurSelection();
4507
4507
  let { state: i } = n;
4508
4508
  setTimeout(() => {
4509
- n.state == i && Wr(n);
4509
+ n.state == i && Hr(n);
4510
4510
  }, 50);
4511
4511
  }
4512
4512
  function zi(n, e) {
4513
4513
  let t = n.state.doc.resolve(e);
4514
- if (!(We || Ua) && t.parent.inlineContent) {
4514
+ if (!(He || Ua) && t.parent.inlineContent) {
4515
4515
  let i = n.coordsAtPos(e);
4516
4516
  if (e > t.start()) {
4517
4517
  let o = n.coordsAtPos(e - 1), s = (o.top + o.bottom) / 2;
@@ -4766,7 +4766,7 @@ function ul(n) {
4766
4766
  return t;
4767
4767
  }
4768
4768
  function fl(n) {
4769
- let e = n.querySelectorAll(We ? "span:not([class]):not([style])" : "span.Apple-converted-space");
4769
+ let e = n.querySelectorAll(He ? "span:not([class]):not([style])" : "span.Apple-converted-space");
4770
4770
  for (let t = 0; t < e.length; t++) {
4771
4771
  let r = e[t];
4772
4772
  r.childNodes.length == 1 && r.textContent == " " && r.parentNode && r.parentNode.replaceChild(n.ownerDocument.createTextNode(" "), r);
@@ -4796,7 +4796,7 @@ function $e(n, e) {
4796
4796
  }
4797
4797
  ce.keydown = (n, e) => {
4798
4798
  let t = e;
4799
- if (n.input.shiftKey = t.keyCode == 16 || t.shiftKey, !as(n, t) && (n.input.lastKeyCode = t.keyCode, n.input.lastKeyCodeTime = Date.now(), !(sn && We && t.keyCode == 13)))
4799
+ if (n.input.shiftKey = t.keyCode == 16 || t.shiftKey, !as(n, t) && (n.input.lastKeyCode = t.keyCode, n.input.lastKeyCodeTime = Date.now(), !(sn && He && t.keyCode == 13)))
4800
4800
  if (t.keyCode != 229 && n.domObserver.forceFlush(), Vr && t.keyCode == 13 && !t.ctrlKey && !t.altKey && !t.metaKey) {
4801
4801
  let r = Date.now();
4802
4802
  n.input.lastIOSEnter = r, n.input.lastIOSEnterFallbackTimeout = setTimeout(() => {
@@ -4828,7 +4828,7 @@ function pl(n, e) {
4828
4828
  let t = e.x - n.clientX, r = e.y - n.clientY;
4829
4829
  return t * t + r * r < 100;
4830
4830
  }
4831
- function Hr(n, e, t, r, i) {
4831
+ function Wr(n, e, t, r, i) {
4832
4832
  if (r == -1)
4833
4833
  return !1;
4834
4834
  let o = n.state.doc.resolve(r);
@@ -4865,13 +4865,13 @@ function ml(n, e) {
4865
4865
  return i != null ? (St(n, O.create(n.state.doc, i)), !0) : !1;
4866
4866
  }
4867
4867
  function gl(n, e, t, r, i) {
4868
- return Hr(n, "handleClickOn", e, t, r) || n.someProp("handleClick", (o) => o(n, e, r)) || (i ? ml(n, t) : hl(n, t));
4868
+ return Wr(n, "handleClickOn", e, t, r) || n.someProp("handleClick", (o) => o(n, e, r)) || (i ? ml(n, t) : hl(n, t));
4869
4869
  }
4870
4870
  function yl(n, e, t, r) {
4871
- return Hr(n, "handleDoubleClickOn", e, t, r) || n.someProp("handleDoubleClick", (i) => i(n, e, r));
4871
+ return Wr(n, "handleDoubleClickOn", e, t, r) || n.someProp("handleDoubleClick", (i) => i(n, e, r));
4872
4872
  }
4873
4873
  function vl(n, e, t, r) {
4874
- return Hr(n, "handleTripleClickOn", e, t, r) || n.someProp("handleTripleClick", (i) => i(n, e, r)) || bl(n, t, r);
4874
+ return Wr(n, "handleTripleClickOn", e, t, r) || n.someProp("handleTripleClick", (i) => i(n, e, r)) || bl(n, t, r);
4875
4875
  }
4876
4876
  function bl(n, e, t) {
4877
4877
  if (t.button != 0)
@@ -4926,7 +4926,7 @@ class xl {
4926
4926
  }, 20), this.view.domObserver.start()), e.root.addEventListener("mouseup", this.up = this.up.bind(this)), e.root.addEventListener("mousemove", this.move = this.move.bind(this)), $e(e, "pointer");
4927
4927
  }
4928
4928
  done() {
4929
- this.view.root.removeEventListener("mouseup", this.up), this.view.root.removeEventListener("mousemove", this.move), this.mightDrag && this.target && (this.view.domObserver.stop(), this.mightDrag.addAttr && this.target.removeAttribute("draggable"), this.mightDrag.setUneditable && this.target.removeAttribute("contentEditable"), this.view.domObserver.start()), this.delayedSelectionSync && setTimeout(() => Wr(this.view)), this.view.input.mouseDown = null;
4929
+ this.view.root.removeEventListener("mouseup", this.up), this.view.root.removeEventListener("mousemove", this.move), this.mightDrag && this.target && (this.view.domObserver.stop(), this.mightDrag.addAttr && this.target.removeAttribute("draggable"), this.mightDrag.setUneditable && this.target.removeAttribute("contentEditable"), this.view.domObserver.start()), this.delayedSelectionSync && setTimeout(() => Hr(this.view)), this.view.input.mouseDown = null;
4930
4930
  }
4931
4931
  up(e) {
4932
4932
  if (this.done(), !this.view.dom.contains(e.target))
@@ -4940,7 +4940,7 @@ class xl {
4940
4940
  // (hidden) cursor is doesn't change the selection, and
4941
4941
  // thus doesn't get a reaction from ProseMirror. This
4942
4942
  // works around that.
4943
- We && !this.view.state.selection.visible && Math.min(Math.abs(t.pos - this.view.state.selection.from), Math.abs(t.pos - this.view.state.selection.to)) <= 2) ? (St(this.view, D.near(this.view.state.doc.resolve(t.pos))), e.preventDefault()) : $e(this.view, "pointer");
4943
+ He && !this.view.state.selection.visible && Math.min(Math.abs(t.pos - this.view.state.selection.from), Math.abs(t.pos - this.view.state.selection.to)) <= 2) ? (St(this.view, D.near(this.view.state.doc.resolve(t.pos))), e.preventDefault()) : $e(this.view, "pointer");
4944
4944
  }
4945
4945
  move(e) {
4946
4946
  this.updateAllowDefault(e), $e(this.view, "pointer"), e.buttons == 0 && this.done();
@@ -5085,7 +5085,7 @@ xe.dragstart = (n, e) => {
5085
5085
  }
5086
5086
  }
5087
5087
  let a = (s || n.state.selection).content(), { dom: l, text: c, slice: u } = Zo(n, a);
5088
- (!t.dataTransfer.files.length || !We || Go > 120) && t.dataTransfer.clearData(), t.dataTransfer.setData(Yt ? "Text" : "text/html", l.innerHTML), t.dataTransfer.effectAllowed = "copyMove", Yt || t.dataTransfer.setData("text/plain", c), n.dragging = new Tl(u, us(n, t), s);
5088
+ (!t.dataTransfer.files.length || !He || Go > 120) && t.dataTransfer.clearData(), t.dataTransfer.setData(Yt ? "Text" : "text/html", l.innerHTML), t.dataTransfer.effectAllowed = "copyMove", Yt || t.dataTransfer.setData("text/plain", c), n.dragging = new Tl(u, us(n, t), s);
5089
5089
  };
5090
5090
  xe.dragend = (n) => {
5091
5091
  let e = n.dragging;
@@ -5134,7 +5134,7 @@ ce.drop = (n, e) => {
5134
5134
  };
5135
5135
  xe.focus = (n) => {
5136
5136
  n.input.lastFocus = Date.now(), n.focused || (n.domObserver.stop(), n.dom.classList.add("ProseMirror-focused"), n.domObserver.start(), n.focused = !0, setTimeout(() => {
5137
- n.docView && n.hasFocus() && !n.domObserver.currentSelection.eq(n.domSelectionRange()) && Wr(n);
5137
+ n.docView && n.hasFocus() && !n.domObserver.currentSelection.eq(n.domSelectionRange()) && Hr(n);
5138
5138
  }, 20));
5139
5139
  };
5140
5140
  xe.blur = (n, e) => {
@@ -5142,7 +5142,7 @@ xe.blur = (n, e) => {
5142
5142
  n.focused && (n.domObserver.stop(), n.dom.classList.remove("ProseMirror-focused"), n.domObserver.start(), t.relatedTarget && n.dom.contains(t.relatedTarget) && n.domObserver.currentSelection.clear(), n.focused = !1);
5143
5143
  };
5144
5144
  xe.beforeinput = (n, e) => {
5145
- if (We && sn && e.inputType == "deleteContentBackward") {
5145
+ if (He && sn && e.inputType == "deleteContentBackward") {
5146
5146
  n.domObserver.flushSoon();
5147
5147
  let { domChangeCount: r } = n.input;
5148
5148
  setTimeout(() => {
@@ -5166,7 +5166,7 @@ function Xt(n, e) {
5166
5166
  return !1;
5167
5167
  return !0;
5168
5168
  }
5169
- class Wn {
5169
+ class Hn {
5170
5170
  constructor(e, t) {
5171
5171
  this.toDOM = e, this.spec = t || ot, this.side = this.spec.side || 0;
5172
5172
  }
@@ -5178,7 +5178,7 @@ class Wn {
5178
5178
  return !0;
5179
5179
  }
5180
5180
  eq(e) {
5181
- return this == e || e instanceof Wn && (this.spec.key && this.spec.key == e.spec.key || this.toDOM == e.toDOM && Xt(this.spec, e.spec));
5181
+ return this == e || e instanceof Hn && (this.spec.key && this.spec.key == e.spec.key || this.toDOM == e.toDOM && Xt(this.spec, e.spec));
5182
5182
  }
5183
5183
  destroy(e) {
5184
5184
  this.spec.destroy && this.spec.destroy(e);
@@ -5259,7 +5259,7 @@ class ve {
5259
5259
  widget's current document position.
5260
5260
  */
5261
5261
  static widget(e, t, r) {
5262
- return new ve(e, e, new Wn(t, r));
5262
+ return new ve(e, e, new Hn(t, r));
5263
5263
  }
5264
5264
  /**
5265
5265
  Creates an inline decoration, which adds the given attributes to
@@ -5293,7 +5293,7 @@ class ve {
5293
5293
  @internal
5294
5294
  */
5295
5295
  get widget() {
5296
- return this.type instanceof Wn;
5296
+ return this.type instanceof Hn;
5297
5297
  }
5298
5298
  }
5299
5299
  const kt = [], ot = {};
@@ -5310,7 +5310,7 @@ class V {
5310
5310
  you must make a copy if you want need to preserve that.
5311
5311
  */
5312
5312
  static create(e, t) {
5313
- return t.length ? Hn(t, e, 0, ot) : Q;
5313
+ return t.length ? Wn(t, e, 0, ot) : Q;
5314
5314
  }
5315
5315
  /**
5316
5316
  Find all decorations in this set which touch the given range
@@ -5369,7 +5369,7 @@ class V {
5369
5369
  if (u = ds(t, a, c)) {
5370
5370
  for (i || (i = this.children.slice()); o < i.length && i[o] < l; )
5371
5371
  o += 3;
5372
- i[o] == l ? i[o + 2] = i[o + 2].addInner(a, u, c + 1) : i.splice(o, 0, l, l + a.nodeSize, Hn(u, a, c + 1, ot)), o += 3;
5372
+ i[o] == l ? i[o + 2] = i[o + 2].addInner(a, u, c + 1) : i.splice(o, 0, l, l + a.nodeSize, Wn(u, a, c + 1, ot)), o += 3;
5373
5373
  }
5374
5374
  });
5375
5375
  let s = fs(o ? ps(t) : t, -r);
@@ -5565,7 +5565,7 @@ function Al(n, e, t, r, i, o, s) {
5565
5565
  l = !0;
5566
5566
  }
5567
5567
  if (l) {
5568
- let c = Nl(a, n, e, t, i, o, s), u = Hn(c, r, 0, s);
5568
+ let c = Nl(a, n, e, t, i, o, s), u = Wn(c, r, 0, s);
5569
5569
  e = u.local;
5570
5570
  for (let f = 0; f < a.length; f += 3)
5571
5571
  a[f + 1] < 0 && (a.splice(f, 3), f -= 3);
@@ -5615,13 +5615,13 @@ function ps(n) {
5615
5615
  n[t] != null && e.push(n[t]);
5616
5616
  return e;
5617
5617
  }
5618
- function Hn(n, e, t, r) {
5618
+ function Wn(n, e, t, r) {
5619
5619
  let i = [], o = !1;
5620
5620
  e.forEach((a, l) => {
5621
5621
  let c = ds(n, a, l + t);
5622
5622
  if (c) {
5623
5623
  o = !0;
5624
- let u = Hn(c, a, t + l + 1, r);
5624
+ let u = Wn(c, a, t + l + 1, r);
5625
5625
  u != Q && i.push(l, l + a.nodeSize, u);
5626
5626
  }
5627
5627
  });
@@ -5641,17 +5641,17 @@ function Kr(n) {
5641
5641
  for (let i = t + 1; i < e.length; i++) {
5642
5642
  let o = e[i];
5643
5643
  if (o.from == r.from) {
5644
- o.to != r.to && (e == n && (e = n.slice()), e[i] = o.copy(o.from, r.to), Wi(e, i + 1, o.copy(r.to, o.to)));
5644
+ o.to != r.to && (e == n && (e = n.slice()), e[i] = o.copy(o.from, r.to), Hi(e, i + 1, o.copy(r.to, o.to)));
5645
5645
  continue;
5646
5646
  } else {
5647
- o.from < r.to && (e == n && (e = n.slice()), e[t] = r.copy(r.from, o.from), Wi(e, i, r.copy(o.from, r.to)));
5647
+ o.from < r.to && (e == n && (e = n.slice()), e[t] = r.copy(r.from, o.from), Hi(e, i, r.copy(o.from, r.to)));
5648
5648
  break;
5649
5649
  }
5650
5650
  }
5651
5651
  }
5652
5652
  return e;
5653
5653
  }
5654
- function Wi(n, e, t) {
5654
+ function Hi(n, e, t) {
5655
5655
  for (; e < n.length && st(t, n[e]) > 0; )
5656
5656
  e++;
5657
5657
  n.splice(e, 0, t);
@@ -5929,7 +5929,7 @@ function Cs(n, e, t, r) {
5929
5929
  for (let b = s.length - 1; b >= 0; b--)
5930
5930
  g = k.from(s[b].create(null, g));
5931
5931
  g = k.from(i.copy(g));
5932
- let m = n.tr.step(new _(e.pos - 1, d, e.pos, d, new S(g, 1, 0), s.length, !0)), y = m.doc.resolve(d + 2 * s.length);
5932
+ let m = n.tr.step(new ee(e.pos - 1, d, e.pos, d, new S(g, 1, 0), s.length, !0)), y = m.doc.resolve(d + 2 * s.length);
5933
5933
  y.nodeAfter && y.nodeAfter.type == i.type && ut(m.doc, y.pos) && m.join(y.pos), t(m.scrollIntoView());
5934
5934
  }
5935
5935
  return !0;
@@ -5949,7 +5949,7 @@ function Cs(n, e, t, r) {
5949
5949
  let b = k.empty;
5950
5950
  for (let T = g.length - 1; T >= 0; T--)
5951
5951
  b = k.from(g[T].copy(b));
5952
- let C = n.tr.step(new _(e.pos - g.length, e.pos + o.nodeSize, e.pos + y, e.pos + o.nodeSize - y, new S(b, g.length, 0), 0, !0));
5952
+ let C = n.tr.step(new ee(e.pos - g.length, e.pos + o.nodeSize, e.pos + y, e.pos + o.nodeSize - y, new S(b, g.length, 0), 0, !0));
5953
5953
  t(C.scrollIntoView());
5954
5954
  }
5955
5955
  return !0;
@@ -5968,14 +5968,14 @@ function Os(n) {
5968
5968
  return i.node(o).isTextblock ? (t && t(e.tr.setSelection(A.create(e.doc, n < 0 ? i.start(o) : i.end(o)))), !0) : !1;
5969
5969
  };
5970
5970
  }
5971
- const jl = Os(-1), Wl = Os(1);
5972
- function Hl(n, e = null) {
5971
+ const jl = Os(-1), Hl = Os(1);
5972
+ function Wl(n, e = null) {
5973
5973
  return function(t, r) {
5974
5974
  let { $from: i, $to: o } = t.selection, s = i.blockRange(o), a = s && Fo(s, n, e);
5975
5975
  return a ? (r && r(t.tr.wrap(s, a).scrollIntoView()), !0) : !1;
5976
5976
  };
5977
5977
  }
5978
- function Hi(n, e = null) {
5978
+ function Wi(n, e = null) {
5979
5979
  return function(t, r) {
5980
5980
  let i = !1;
5981
5981
  for (let o = 0; o < t.selection.ranges.length && !i; o++) {
@@ -6041,7 +6041,7 @@ function Kl(n, e, t, r, i) {
6041
6041
  let o = k.empty;
6042
6042
  for (let u = t.length - 1; u >= 0; u--)
6043
6043
  o = k.from(t[u].type.create(t[u].attrs, o));
6044
- n.step(new _(e.start - (r ? 2 : 0), e.end, e.start, e.end, new S(o, 0, 0), t.length, !0));
6044
+ n.step(new ee(e.start - (r ? 2 : 0), e.end, e.start, e.end, new S(o, 0, 0), t.length, !0));
6045
6045
  let s = 0;
6046
6046
  for (let u = 0; u < t.length; u++)
6047
6047
  t[u].type == i && (s = u + 1);
@@ -6058,7 +6058,7 @@ function Ul(n) {
6058
6058
  }
6059
6059
  function Gl(n, e, t, r) {
6060
6060
  let i = n.tr, o = r.end, s = r.$to.end(r.depth);
6061
- o < s && (i.step(new _(o - 1, s, o, s, new S(k.from(t.create(null, r.parent.copy())), 1, 0), 1, !0)), r = new zn(i.doc.resolve(r.$from.pos), i.doc.resolve(s), r.depth));
6061
+ o < s && (i.step(new ee(o - 1, s, o, s, new S(k.from(t.create(null, r.parent.copy())), 1, 0), 1, !0)), r = new zn(i.doc.resolve(r.$from.pos), i.doc.resolve(s), r.depth));
6062
6062
  const a = At(r);
6063
6063
  if (a == null)
6064
6064
  return !1;
@@ -6077,7 +6077,7 @@ function Yl(n, e, t) {
6077
6077
  if (!c.canReplace(u + (a ? 0 : 1), u + 1, s.content.append(l ? k.empty : k.from(i))))
6078
6078
  return !1;
6079
6079
  let f = o.pos, p = f + s.nodeSize;
6080
- return r.step(new _(f - (a ? 1 : 0), p + (l ? 1 : 0), f + 1, p - 1, new S((a ? k.empty : k.from(i.copy(k.empty))).append(l ? k.empty : k.from(i.copy(k.empty))), a ? 0 : 1, l ? 0 : 1), a ? 0 : 1)), e(r.scrollIntoView()), !0;
6080
+ return r.step(new ee(f - (a ? 1 : 0), p + (l ? 1 : 0), f + 1, p - 1, new S((a ? k.empty : k.from(i.copy(k.empty))).append(l ? k.empty : k.from(i.copy(k.empty))), a ? 0 : 1, l ? 0 : 1), a ? 0 : 1)), e(r.scrollIntoView()), !0;
6081
6081
  }
6082
6082
  function Xl(n) {
6083
6083
  return function(e, t) {
@@ -6092,7 +6092,7 @@ function Xl(n) {
6092
6092
  return !1;
6093
6093
  if (t) {
6094
6094
  let c = l.lastChild && l.lastChild.type == a.type, u = k.from(c ? n.create() : null), f = new S(k.from(n.create(null, k.from(a.type.create(null, u)))), c ? 3 : 1, 0), p = o.start, d = o.end;
6095
- t(e.tr.step(new _(p - (c ? 3 : 1), d, p, d, f, 1, !0)).scrollIntoView());
6095
+ t(e.tr.step(new ee(p - (c ? 3 : 1), d, p, d, f, 1, !0)).scrollIntoView());
6096
6096
  }
6097
6097
  return !0;
6098
6098
  };
@@ -6306,7 +6306,7 @@ class nc {
6306
6306
  this.find = e.find, this.handler = e.handler;
6307
6307
  }
6308
6308
  }
6309
- class ne {
6309
+ class _ {
6310
6310
  constructor(e = {}) {
6311
6311
  this.type = "extension", this.name = "extension", this.parent = null, this.child = null, this.config = {
6312
6312
  name: this.name,
@@ -6322,7 +6322,7 @@ class ne {
6322
6322
  })) || {};
6323
6323
  }
6324
6324
  static create(e = {}) {
6325
- return new ne(e);
6325
+ return new _(e);
6326
6326
  }
6327
6327
  configure(e = {}) {
6328
6328
  const t = this.extend({
@@ -6332,7 +6332,7 @@ class ne {
6332
6332
  return t.name = this.name, t.parent = this.parent, t;
6333
6333
  }
6334
6334
  extend(e = {}) {
6335
- const t = new ne({ ...this.config, ...e });
6335
+ const t = new _({ ...this.config, ...e });
6336
6336
  return t.parent = this, this.child = t, t.name = e.name ? e.name : t.parent.name, e.defaultOptions && Object.keys(e.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`), t.options = U(Z(t, "addOptions", {
6337
6337
  name: t.name
6338
6338
  })), t.storage = U(Z(t, "addStorage", {
@@ -6364,7 +6364,7 @@ function rc(n, e, t) {
6364
6364
  function ic(n) {
6365
6365
  return Object.fromEntries(Object.entries(n.nodes).filter(([, e]) => e.spec.toText).map(([e, t]) => [e, t.spec.toText]));
6366
6366
  }
6367
- ne.create({
6367
+ _.create({
6368
6368
  name: "clipboardTextSerializer",
6369
6369
  addOptions() {
6370
6370
  return {
@@ -6473,7 +6473,7 @@ function Zr(n, e, t) {
6473
6473
  to: c
6474
6474
  };
6475
6475
  }
6476
- function He(n, e) {
6476
+ function We(n, e) {
6477
6477
  if (typeof n == "string") {
6478
6478
  if (!e.marks[n])
6479
6479
  throw Error(`There is no mark type named '${n}'. Maybe you forgot to add the extension?`);
@@ -6482,7 +6482,7 @@ function He(n, e) {
6482
6482
  return n;
6483
6483
  }
6484
6484
  const yc = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
6485
- const o = He(n, r.schema), { doc: s, selection: a } = t, { $from: l, from: c, to: u } = a;
6485
+ const o = We(n, r.schema), { doc: s, selection: a } = t, { $from: l, from: c, to: u } = a;
6486
6486
  if (i) {
6487
6487
  const f = Zr(l, o, e);
6488
6488
  if (f && f.from <= c && f.to >= u) {
@@ -6613,7 +6613,7 @@ function Cc(n, e, t) {
6613
6613
  if (r < e)
6614
6614
  return;
6615
6615
  const i = n.steps[r];
6616
- if (!(i instanceof oe || i instanceof _))
6616
+ if (!(i instanceof oe || i instanceof ee))
6617
6617
  return;
6618
6618
  const o = n.mapping.maps[r];
6619
6619
  let s = 0;
@@ -6773,20 +6773,20 @@ function Ki(n, e) {
6773
6773
  const jc = (n, e) => ({ tr: t, state: r, dispatch: i }) => {
6774
6774
  let o = null, s = null;
6775
6775
  const a = Is(typeof n == "string" ? n : n.name, r.schema);
6776
- return a ? (a === "node" && (o = G(n, r.schema)), a === "mark" && (s = He(n, r.schema)), i && t.selection.ranges.forEach((l) => {
6776
+ return a ? (a === "node" && (o = G(n, r.schema)), a === "mark" && (s = We(n, r.schema)), i && t.selection.ranges.forEach((l) => {
6777
6777
  r.doc.nodesBetween(l.$from.pos, l.$to.pos, (c, u) => {
6778
6778
  o && o === c.type && t.setNodeMarkup(u, void 0, Ki(c.attrs, e)), s && c.marks.length && c.marks.forEach((f) => {
6779
6779
  s === f.type && t.addMark(u, u + c.nodeSize, s.create(Ki(f.attrs, e)));
6780
6780
  });
6781
6781
  });
6782
6782
  }), !0) : !1;
6783
- }, Wc = () => ({ tr: n, dispatch: e }) => (e && n.scrollIntoView(), !0), Hc = () => ({ tr: n, dispatch: e }) => {
6783
+ }, Hc = () => ({ tr: n, dispatch: e }) => (e && n.scrollIntoView(), !0), Wc = () => ({ tr: n, dispatch: e }) => {
6784
6784
  if (e) {
6785
6785
  const t = new le(n.doc);
6786
6786
  n.setSelection(t);
6787
6787
  }
6788
6788
  return !0;
6789
- }, Jc = () => ({ state: n, dispatch: e }) => ys(n, e), qc = () => ({ state: n, dispatch: e }) => xs(n, e), Kc = () => ({ state: n, dispatch: e }) => $l(n, e), Uc = () => ({ state: n, dispatch: e }) => Wl(n, e), Gc = () => ({ state: n, dispatch: e }) => jl(n, e);
6789
+ }, Jc = () => ({ state: n, dispatch: e }) => ys(n, e), qc = () => ({ state: n, dispatch: e }) => xs(n, e), Kc = () => ({ state: n, dispatch: e }) => $l(n, e), Uc = () => ({ state: n, dispatch: e }) => Hl(n, e), Gc = () => ({ state: n, dispatch: e }) => jl(n, e);
6790
6790
  function Yc(n, e, t = {}, r = {}) {
6791
6791
  return Zt(n, e, {
6792
6792
  slice: !1,
@@ -6809,7 +6809,7 @@ const Xc = (n, e = !1, t = {}, r = {}) => ({ editor: i, tr: o, dispatch: s, comm
6809
6809
  });
6810
6810
  };
6811
6811
  function Qc(n, e) {
6812
- const t = He(e, n.schema), { from: r, to: i, empty: o } = n.selection, s = [];
6812
+ const t = We(e, n.schema), { from: r, to: i, empty: o } = n.selection, s = [];
6813
6813
  o ? (n.storedMarks && s.push(...n.storedMarks), s.push(...n.selection.$head.marks())) : n.doc.nodesBetween(r, i, (l) => {
6814
6814
  s.push(...l.marks);
6815
6815
  });
@@ -6862,7 +6862,7 @@ function In(n, e, t) {
6862
6862
  }));
6863
6863
  }
6864
6864
  function eu(n, e, t = {}) {
6865
- const { empty: r, ranges: i } = n.selection, o = e ? He(e, n.schema) : null;
6865
+ const { empty: r, ranges: i } = n.selection, o = e ? We(e, n.schema) : null;
6866
6866
  if (r)
6867
6867
  return !!(n.storedMarks || n.selection.$from.marks()).filter((f) => o ? o.name === f.type.name : !0).find((f) => Jn(f.attrs, t, { strict: !1 }));
6868
6868
  let s = 0;
@@ -6959,7 +6959,7 @@ function nu(n, e, t) {
6959
6959
  });
6960
6960
  }
6961
6961
  const ru = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
6962
- const { selection: o } = t, { empty: s, ranges: a } = o, l = He(n, r.schema);
6962
+ const { selection: o } = t, { empty: s, ranges: a } = o, l = We(n, r.schema);
6963
6963
  if (i)
6964
6964
  if (s) {
6965
6965
  const c = Qc(r, l);
@@ -6984,7 +6984,7 @@ const ru = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
6984
6984
  }, iu = (n, e) => ({ tr: t }) => (t.setMeta(n, e), !0), ou = (n, e = {}) => ({ state: t, dispatch: r, chain: i }) => {
6985
6985
  const o = G(n, t.schema);
6986
6986
  let s;
6987
- return t.selection.$anchor.sameParent(t.selection.$head) && (s = t.selection.$anchor.parent.attrs), o.isTextblock ? i().command(({ commands: a }) => Hi(o, { ...s, ...e })(t) ? !0 : a.clearNodes()).command(({ state: a }) => Hi(o, { ...s, ...e })(a, r)).run() : (console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'), !1);
6987
+ return t.selection.$anchor.sameParent(t.selection.$head) && (s = t.selection.$anchor.parent.attrs), o.isTextblock ? i().command(({ commands: a }) => Wi(o, { ...s, ...e })(t) ? !0 : a.clearNodes()).command(({ state: a }) => Wi(o, { ...s, ...e })(a, r)).run() : (console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'), !1);
6988
6988
  }, su = (n) => ({ tr: e, dispatch: t }) => {
6989
6989
  if (t) {
6990
6990
  const { doc: r } = e, i = Re(n, 0, r.content.size), o = O.create(r, i);
@@ -7123,7 +7123,7 @@ const cu = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
7123
7123
  return o.ensureMarks(N), x ? !0 : c.clearNodes();
7124
7124
  }).wrapInList(d, r).command(() => dr(o, d)).command(() => pr(o, d)).run();
7125
7125
  }, du = (n, e = {}, t = {}) => ({ state: r, commands: i }) => {
7126
- const { extendEmptyMarkRange: o = !1 } = t, s = He(n, r.schema);
7126
+ const { extendEmptyMarkRange: o = !1 } = t, s = We(n, r.schema);
7127
7127
  return eu(r, s, e) ? i.unsetMark(s, { extendEmptyMarkRange: o }) : i.setMark(s, e);
7128
7128
  }, pu = (n, e, t = {}) => ({ state: r, commands: i }) => {
7129
7129
  const o = G(n, r.schema), s = G(e, r.schema), a = ei(r, o, t);
@@ -7159,7 +7159,7 @@ const cu = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
7159
7159
  }), !0;
7160
7160
  }, yu = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
7161
7161
  var o;
7162
- const { extendEmptyMarkRange: s = !1 } = e, { selection: a } = t, l = He(n, r.schema), { $from: c, empty: u, ranges: f } = a;
7162
+ const { extendEmptyMarkRange: s = !1 } = e, { selection: a } = t, l = We(n, r.schema), { $from: c, empty: u, ranges: f } = a;
7163
7163
  if (!i)
7164
7164
  return !0;
7165
7165
  if (u && s) {
@@ -7174,7 +7174,7 @@ const cu = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
7174
7174
  }, vu = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
7175
7175
  let o = null, s = null;
7176
7176
  const a = Is(typeof n == "string" ? n : n.name, r.schema);
7177
- return a ? (a === "node" && (o = G(n, r.schema)), a === "mark" && (s = He(n, r.schema)), i && t.selection.ranges.forEach((l) => {
7177
+ return a ? (a === "node" && (o = G(n, r.schema)), a === "mark" && (s = We(n, r.schema)), i && t.selection.ranges.forEach((l) => {
7178
7178
  const c = l.$from.pos, u = l.$to.pos;
7179
7179
  let f, p, d, g;
7180
7180
  t.selection.empty ? r.doc.nodesBetween(c, u, (m, y) => {
@@ -7204,7 +7204,7 @@ const cu = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
7204
7204
  }), !0) : !1;
7205
7205
  }, bu = (n, e = {}) => ({ state: t, dispatch: r }) => {
7206
7206
  const i = G(n, t.schema);
7207
- return Hl(i, e)(t, r);
7207
+ return Wl(i, e)(t, r);
7208
7208
  }, xu = (n, e = {}) => ({ state: t, dispatch: r }) => {
7209
7209
  const i = G(n, t.schema);
7210
7210
  return Jl(i, e)(t, r);
@@ -7243,8 +7243,8 @@ var ku = /* @__PURE__ */ Object.freeze({
7243
7243
  liftListItem: $c,
7244
7244
  newlineInCode: Vc,
7245
7245
  resetAttributes: jc,
7246
- scrollIntoView: Wc,
7247
- selectAll: Hc,
7246
+ scrollIntoView: Hc,
7247
+ selectAll: Wc,
7248
7248
  selectNodeBackward: Jc,
7249
7249
  selectNodeForward: qc,
7250
7250
  selectParentNode: Kc,
@@ -7270,7 +7270,7 @@ var ku = /* @__PURE__ */ Object.freeze({
7270
7270
  wrapIn: bu,
7271
7271
  wrapInList: xu
7272
7272
  });
7273
- ne.create({
7273
+ _.create({
7274
7274
  name: "commands",
7275
7275
  addCommands() {
7276
7276
  return {
@@ -7278,7 +7278,7 @@ ne.create({
7278
7278
  };
7279
7279
  }
7280
7280
  });
7281
- ne.create({
7281
+ _.create({
7282
7282
  name: "drop",
7283
7283
  addProseMirrorPlugins() {
7284
7284
  return [
@@ -7298,7 +7298,7 @@ ne.create({
7298
7298
  ];
7299
7299
  }
7300
7300
  });
7301
- ne.create({
7301
+ _.create({
7302
7302
  name: "editable",
7303
7303
  addProseMirrorPlugins() {
7304
7304
  return [
@@ -7312,7 +7312,7 @@ ne.create({
7312
7312
  }
7313
7313
  });
7314
7314
  const wu = new ge("focusEvents");
7315
- ne.create({
7315
+ _.create({
7316
7316
  name: "focusEvents",
7317
7317
  addProseMirrorPlugins() {
7318
7318
  const { editor: n } = this;
@@ -7337,7 +7337,7 @@ ne.create({
7337
7337
  ];
7338
7338
  }
7339
7339
  });
7340
- ne.create({
7340
+ _.create({
7341
7341
  name: "keymap",
7342
7342
  addKeyboardShortcuts() {
7343
7343
  const n = () => this.editor.commands.first(({ commands: s }) => [
@@ -7416,7 +7416,7 @@ ne.create({
7416
7416
  ];
7417
7417
  }
7418
7418
  });
7419
- ne.create({
7419
+ _.create({
7420
7420
  name: "paste",
7421
7421
  addProseMirrorPlugins() {
7422
7422
  return [
@@ -7435,7 +7435,7 @@ ne.create({
7435
7435
  ];
7436
7436
  }
7437
7437
  });
7438
- ne.create({
7438
+ _.create({
7439
7439
  name: "tabindex",
7440
7440
  addProseMirrorPlugins() {
7441
7441
  return [
@@ -7800,7 +7800,7 @@ function md() {
7800
7800
  }
7801
7801
  });
7802
7802
  }
7803
- var ee = "top", he = "bottom", me = "right", te = "left", ni = "auto", ln = [ee, he, me, te], Ot = "start", en = "end", Mu = "clippingParents", Bs = "viewport", Bt = "popper", Au = "reference", Yi = /* @__PURE__ */ ln.reduce(function(n, e) {
7803
+ var te = "top", he = "bottom", me = "right", ne = "left", ni = "auto", ln = [te, he, me, ne], Ot = "start", en = "end", Mu = "clippingParents", Bs = "viewport", Bt = "popper", Au = "reference", Yi = /* @__PURE__ */ ln.reduce(function(n, e) {
7804
7804
  return n.concat([e + "-" + Ot, e + "-" + en]);
7805
7805
  }, []), zs = /* @__PURE__ */ [].concat(ln, [ni]).reduce(function(n, e) {
7806
7806
  return n.concat([e, e + "-" + Ot, e + "-" + en]);
@@ -7928,7 +7928,7 @@ function $s(n, e) {
7928
7928
  function Be(n) {
7929
7929
  return ue(n).getComputedStyle(n);
7930
7930
  }
7931
- function Wu(n) {
7931
+ function Hu(n) {
7932
7932
  return ["table", "td", "th"].indexOf(Te(n)) >= 0;
7933
7933
  }
7934
7934
  function Je(n) {
@@ -7953,7 +7953,7 @@ function Xi(n) {
7953
7953
  return !pe(n) || // https://github.com/popperjs/popper-core/issues/837
7954
7954
  Be(n).position === "fixed" ? null : n.offsetParent;
7955
7955
  }
7956
- function Hu(n) {
7956
+ function Wu(n) {
7957
7957
  var e = /firefox/i.test(Nr()), t = /Trident/i.test(Nr());
7958
7958
  if (t && pe(n)) {
7959
7959
  var r = Be(n);
@@ -7970,18 +7970,18 @@ function Hu(n) {
7970
7970
  return null;
7971
7971
  }
7972
7972
  function cn(n) {
7973
- for (var e = ue(n), t = Xi(n); t && Wu(t) && Be(t).position === "static"; )
7973
+ for (var e = ue(n), t = Xi(n); t && Hu(t) && Be(t).position === "static"; )
7974
7974
  t = Xi(t);
7975
- return t && (Te(t) === "html" || Te(t) === "body" && Be(t).position === "static") ? e : t || Hu(n) || e;
7975
+ return t && (Te(t) === "html" || Te(t) === "body" && Be(t).position === "static") ? e : t || Wu(n) || e;
7976
7976
  }
7977
7977
  function oi(n) {
7978
7978
  return ["top", "bottom"].indexOf(n) >= 0 ? "x" : "y";
7979
7979
  }
7980
- function Wt(n, e, t) {
7980
+ function Ht(n, e, t) {
7981
7981
  return at(n, Kn(e, t));
7982
7982
  }
7983
7983
  function Ju(n, e, t) {
7984
- var r = Wt(n, e, t);
7984
+ var r = Ht(n, e, t);
7985
7985
  return r > t ? t : r;
7986
7986
  }
7987
7987
  function Vs() {
@@ -7995,7 +7995,7 @@ function Vs() {
7995
7995
  function js(n) {
7996
7996
  return Object.assign({}, Vs(), n);
7997
7997
  }
7998
- function Ws(n, e) {
7998
+ function Hs(n, e) {
7999
7999
  return e.reduce(function(t, r) {
8000
8000
  return t[r] = n, t;
8001
8001
  }, {});
@@ -8003,12 +8003,12 @@ function Ws(n, e) {
8003
8003
  var qu = function(e, t) {
8004
8004
  return e = typeof e == "function" ? e(Object.assign({}, t.rects, {
8005
8005
  placement: t.placement
8006
- })) : e, js(typeof e != "number" ? e : Ws(e, ln));
8006
+ })) : e, js(typeof e != "number" ? e : Hs(e, ln));
8007
8007
  };
8008
8008
  function Ku(n) {
8009
- var e, t = n.state, r = n.name, i = n.options, o = t.elements.arrow, s = t.modifiersData.popperOffsets, a = Oe(t.placement), l = oi(a), c = [te, me].indexOf(a) >= 0, u = c ? "height" : "width";
8009
+ var e, t = n.state, r = n.name, i = n.options, o = t.elements.arrow, s = t.modifiersData.popperOffsets, a = Oe(t.placement), l = oi(a), c = [ne, me].indexOf(a) >= 0, u = c ? "height" : "width";
8010
8010
  if (!(!o || !s)) {
8011
- var f = qu(i.padding, t), p = ii(o), d = l === "y" ? ee : te, g = l === "y" ? he : me, m = t.rects.reference[u] + t.rects.reference[l] - s[l] - t.rects.popper[u], y = s[l] - t.rects.reference[l], b = cn(o), C = b ? l === "y" ? b.clientHeight || 0 : b.clientWidth || 0 : 0, T = m / 2 - y / 2, h = f[d], M = C - p[u] - f[g], x = C / 2 - p[u] / 2 + T, N = Wt(h, x, M), P = l;
8011
+ var f = qu(i.padding, t), p = ii(o), d = l === "y" ? te : ne, g = l === "y" ? he : me, m = t.rects.reference[u] + t.rects.reference[l] - s[l] - t.rects.popper[u], y = s[l] - t.rects.reference[l], b = cn(o), C = b ? l === "y" ? b.clientHeight || 0 : b.clientWidth || 0 : 0, T = m / 2 - y / 2, h = f[d], M = C - p[u] - f[g], x = C / 2 - p[u] / 2 + T, N = Ht(h, x, M), P = l;
8012
8012
  t.modifiersData[r] = (e = {}, e[P] = N, e.centerOffset = N - x, e);
8013
8013
  }
8014
8014
  }
@@ -8050,10 +8050,10 @@ function Qi(n) {
8050
8050
  y: m
8051
8051
  };
8052
8052
  d = y.x, m = y.y;
8053
- var b = s.hasOwnProperty("x"), C = s.hasOwnProperty("y"), T = te, h = ee, M = window;
8053
+ var b = s.hasOwnProperty("x"), C = s.hasOwnProperty("y"), T = ne, h = te, M = window;
8054
8054
  if (c) {
8055
8055
  var x = cn(t), N = "clientHeight", P = "clientWidth";
8056
- if (x === ue(t) && (x = Je(t), Be(x).position !== "static" && a === "absolute" && (N = "scrollHeight", P = "scrollWidth")), x = x, i === ee || (i === te || i === me) && o === en) {
8056
+ if (x === ue(t) && (x = Je(t), Be(x).position !== "static" && a === "absolute" && (N = "scrollHeight", P = "scrollWidth")), x = x, i === te || (i === ne || i === me) && o === en) {
8057
8057
  h = he;
8058
8058
  var L = f && x === M && M.visualViewport ? M.visualViewport.height : (
8059
8059
  // $FlowFixMe[prop-missing]
@@ -8061,7 +8061,7 @@ function Qi(n) {
8061
8061
  );
8062
8062
  m -= L - r.height, m *= l ? 1 : -1;
8063
8063
  }
8064
- if (i === te || (i === ee || i === he) && o === en) {
8064
+ if (i === ne || (i === te || i === he) && o === en) {
8065
8065
  T = me;
8066
8066
  var F = f && x === M && M.visualViewport ? M.visualViewport.width : (
8067
8067
  // $FlowFixMe[prop-missing]
@@ -8070,7 +8070,7 @@ function Qi(n) {
8070
8070
  d -= F - r.width, d *= l ? 1 : -1;
8071
8071
  }
8072
8072
  }
8073
- var W = Object.assign({
8073
+ var H = Object.assign({
8074
8074
  position: a
8075
8075
  }, c && Yu), $ = u === !0 ? Xu({
8076
8076
  x: d,
@@ -8081,9 +8081,9 @@ function Qi(n) {
8081
8081
  };
8082
8082
  if (d = $.x, m = $.y, l) {
8083
8083
  var B;
8084
- return Object.assign({}, W, (B = {}, B[h] = C ? "0" : "", B[T] = b ? "0" : "", B.transform = (M.devicePixelRatio || 1) <= 1 ? "translate(" + d + "px, " + m + "px)" : "translate3d(" + d + "px, " + m + "px, 0)", B));
8084
+ return Object.assign({}, H, (B = {}, B[h] = C ? "0" : "", B[T] = b ? "0" : "", B.transform = (M.devicePixelRatio || 1) <= 1 ? "translate(" + d + "px, " + m + "px)" : "translate3d(" + d + "px, " + m + "px, 0)", B));
8085
8085
  }
8086
- return Object.assign({}, W, (e = {}, e[h] = C ? m + "px" : "", e[T] = b ? d + "px" : "", e.transform = "", e));
8086
+ return Object.assign({}, H, (e = {}, e[h] = C ? m + "px" : "", e[T] = b ? d + "px" : "", e.transform = "", e));
8087
8087
  }
8088
8088
  function Qu(n) {
8089
8089
  var e = n.state, t = n.options, r = t.gpuAcceleration, i = r === void 0 ? !0 : r, o = t.adaptive, s = o === void 0 ? !0 : o, a = t.roundOffsets, l = a === void 0 ? !0 : a, c = {
@@ -8194,16 +8194,16 @@ function li(n) {
8194
8194
  var e = Be(n), t = e.overflow, r = e.overflowX, i = e.overflowY;
8195
8195
  return /auto|scroll|overlay|hidden/.test(t + i + r);
8196
8196
  }
8197
- function Hs(n) {
8198
- return ["html", "body", "#document"].indexOf(Te(n)) >= 0 ? n.ownerDocument.body : pe(n) && li(n) ? n : Hs(er(n));
8197
+ function Ws(n) {
8198
+ return ["html", "body", "#document"].indexOf(Te(n)) >= 0 ? n.ownerDocument.body : pe(n) && li(n) ? n : Ws(er(n));
8199
8199
  }
8200
- function Ht(n, e) {
8200
+ function Wt(n, e) {
8201
8201
  var t;
8202
8202
  e === void 0 && (e = []);
8203
- var r = Hs(n), i = r === ((t = n.ownerDocument) == null ? void 0 : t.body), o = ue(r), s = i ? [o].concat(o.visualViewport || [], li(r) ? r : []) : r, a = e.concat(s);
8203
+ var r = Ws(n), i = r === ((t = n.ownerDocument) == null ? void 0 : t.body), o = ue(r), s = i ? [o].concat(o.visualViewport || [], li(r) ? r : []) : r, a = e.concat(s);
8204
8204
  return i ? a : (
8205
8205
  // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
8206
- a.concat(Ht(er(s)))
8206
+ a.concat(Wt(er(s)))
8207
8207
  );
8208
8208
  }
8209
8209
  function Ir(n) {
@@ -8222,7 +8222,7 @@ function _i(n, e, t) {
8222
8222
  return e === Bs ? Ir(rf(n, t)) : ct(e) ? sf(e, t) : Ir(of(Je(n)));
8223
8223
  }
8224
8224
  function af(n) {
8225
- var e = Ht(er(n)), t = ["absolute", "fixed"].indexOf(Be(n).position) >= 0, r = t && pe(n) ? cn(n) : n;
8225
+ var e = Wt(er(n)), t = ["absolute", "fixed"].indexOf(Be(n).position) >= 0, r = t && pe(n) ? cn(n) : n;
8226
8226
  return ct(r) ? e.filter(function(i) {
8227
8227
  return ct(i) && $s(i, r) && Te(i) !== "body";
8228
8228
  }) : [];
@@ -8237,7 +8237,7 @@ function lf(n, e, t, r) {
8237
8237
  function Js(n) {
8238
8238
  var e = n.reference, t = n.element, r = n.placement, i = r ? Oe(r) : null, o = r ? Mt(r) : null, s = e.x + e.width / 2 - t.width / 2, a = e.y + e.height / 2 - t.height / 2, l;
8239
8239
  switch (i) {
8240
- case ee:
8240
+ case te:
8241
8241
  l = {
8242
8242
  x: s,
8243
8243
  y: e.y - t.height
@@ -8255,7 +8255,7 @@ function Js(n) {
8255
8255
  y: a
8256
8256
  };
8257
8257
  break;
8258
- case te:
8258
+ case ne:
8259
8259
  l = {
8260
8260
  x: e.x - t.width,
8261
8261
  y: a
@@ -8283,7 +8283,7 @@ function Js(n) {
8283
8283
  }
8284
8284
  function tn(n, e) {
8285
8285
  e === void 0 && (e = {});
8286
- var t = e, r = t.placement, i = r === void 0 ? n.placement : r, o = t.strategy, s = o === void 0 ? n.strategy : o, a = t.boundary, l = a === void 0 ? Mu : a, c = t.rootBoundary, u = c === void 0 ? Bs : c, f = t.elementContext, p = f === void 0 ? Bt : f, d = t.altBoundary, g = d === void 0 ? !1 : d, m = t.padding, y = m === void 0 ? 0 : m, b = js(typeof y != "number" ? y : Ws(y, ln)), C = p === Bt ? Au : Bt, T = n.rects.popper, h = n.elements[g ? C : p], M = lf(ct(h) ? h : h.contextElement || Je(n.elements.popper), l, u, s), x = Tt(n.elements.reference), N = Js({
8286
+ var t = e, r = t.placement, i = r === void 0 ? n.placement : r, o = t.strategy, s = o === void 0 ? n.strategy : o, a = t.boundary, l = a === void 0 ? Mu : a, c = t.rootBoundary, u = c === void 0 ? Bs : c, f = t.elementContext, p = f === void 0 ? Bt : f, d = t.altBoundary, g = d === void 0 ? !1 : d, m = t.padding, y = m === void 0 ? 0 : m, b = js(typeof y != "number" ? y : Hs(y, ln)), C = p === Bt ? Au : Bt, T = n.rects.popper, h = n.elements[g ? C : p], M = lf(ct(h) ? h : h.contextElement || Je(n.elements.popper), l, u, s), x = Tt(n.elements.reference), N = Js({
8287
8287
  reference: x,
8288
8288
  element: T,
8289
8289
  placement: i
@@ -8292,11 +8292,11 @@ function tn(n, e) {
8292
8292
  bottom: L.bottom - M.bottom + b.bottom,
8293
8293
  left: M.left - L.left + b.left,
8294
8294
  right: L.right - M.right + b.right
8295
- }, W = n.modifiersData.offset;
8296
- if (p === Bt && W) {
8297
- var $ = W[i];
8295
+ }, H = n.modifiersData.offset;
8296
+ if (p === Bt && H) {
8297
+ var $ = H[i];
8298
8298
  Object.keys(F).forEach(function(B) {
8299
- var re = [me, he].indexOf(B) >= 0 ? 1 : -1, ie = [ee, he].indexOf(B) >= 0 ? "y" : "x";
8299
+ var re = [me, he].indexOf(B) >= 0 ? 1 : -1, ie = [te, he].indexOf(B) >= 0 ? "y" : "x";
8300
8300
  F[B] += $[ie] * re;
8301
8301
  });
8302
8302
  }
@@ -8341,22 +8341,22 @@ function ff(n) {
8341
8341
  allowedAutoPlacements: m
8342
8342
  }) : ye);
8343
8343
  }, []), M = e.rects.reference, x = e.rects.popper, N = /* @__PURE__ */ new Map(), P = !0, L = h[0], F = 0; F < h.length; F++) {
8344
- var W = h[F], $ = Oe(W), B = Mt(W) === Ot, re = [ee, he].indexOf($) >= 0, ie = re ? "width" : "height", q = tn(e, {
8345
- placement: W,
8344
+ var H = h[F], $ = Oe(H), B = Mt(H) === Ot, re = [te, he].indexOf($) >= 0, ie = re ? "width" : "height", q = tn(e, {
8345
+ placement: H,
8346
8346
  boundary: u,
8347
8347
  rootBoundary: f,
8348
8348
  altBoundary: p,
8349
8349
  padding: c
8350
- }), K = re ? B ? me : te : B ? he : ee;
8350
+ }), K = re ? B ? me : ne : B ? he : te;
8351
8351
  M[ie] > x[ie] && (K = Dn(K));
8352
- var H = Dn(K), ke = [];
8353
- if (o && ke.push(q[$] <= 0), a && ke.push(q[K] <= 0, q[H] <= 0), ke.every(function(Me) {
8352
+ var W = Dn(K), ke = [];
8353
+ if (o && ke.push(q[$] <= 0), a && ke.push(q[K] <= 0, q[W] <= 0), ke.every(function(Me) {
8354
8354
  return Me;
8355
8355
  })) {
8356
- L = W, P = !1;
8356
+ L = H, P = !1;
8357
8357
  break;
8358
8358
  }
8359
- N.set(W, ke);
8359
+ N.set(H, ke);
8360
8360
  }
8361
8361
  if (P)
8362
8362
  for (var we = g ? 3 : 1, qe = function(ye) {
@@ -8398,7 +8398,7 @@ function eo(n, e, t) {
8398
8398
  };
8399
8399
  }
8400
8400
  function to(n) {
8401
- return [ee, me, he, te].some(function(e) {
8401
+ return [te, me, he, ne].some(function(e) {
8402
8402
  return n[e] >= 0;
8403
8403
  });
8404
8404
  }
@@ -8426,10 +8426,10 @@ const hf = {
8426
8426
  fn: pf
8427
8427
  };
8428
8428
  function mf(n, e, t) {
8429
- var r = Oe(n), i = [te, ee].indexOf(r) >= 0 ? -1 : 1, o = typeof t == "function" ? t(Object.assign({}, e, {
8429
+ var r = Oe(n), i = [ne, te].indexOf(r) >= 0 ? -1 : 1, o = typeof t == "function" ? t(Object.assign({}, e, {
8430
8430
  placement: n
8431
8431
  })) : t, s = o[0], a = o[1];
8432
- return s = s || 0, a = (a || 0) * i, [te, me].indexOf(r) >= 0 ? {
8432
+ return s = s || 0, a = (a || 0) * i, [ne, me].indexOf(r) >= 0 ? {
8433
8433
  x: a,
8434
8434
  y: s
8435
8435
  } : {
@@ -8482,20 +8482,20 @@ function kf(n) {
8482
8482
  } : Object.assign({
8483
8483
  mainAxis: 0,
8484
8484
  altAxis: 0
8485
- }, L), W = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, $ = {
8485
+ }, L), H = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, $ = {
8486
8486
  x: 0,
8487
8487
  y: 0
8488
8488
  };
8489
8489
  if (x) {
8490
8490
  if (o) {
8491
- var B, re = h === "y" ? ee : te, ie = h === "y" ? he : me, q = h === "y" ? "height" : "width", K = x[h], H = K + y[re], ke = K - y[ie], we = d ? -P[q] / 2 : 0, qe = C === Ot ? N[q] : P[q], Se = C === Ot ? -P[q] : -N[q], Ke = e.elements.arrow, Me = d && Ke ? ii(Ke) : {
8491
+ var B, re = h === "y" ? te : ne, ie = h === "y" ? he : me, q = h === "y" ? "height" : "width", K = x[h], W = K + y[re], ke = K - y[ie], we = d ? -P[q] / 2 : 0, qe = C === Ot ? N[q] : P[q], Se = C === Ot ? -P[q] : -N[q], Ke = e.elements.arrow, Me = d && Ke ? ii(Ke) : {
8492
8492
  width: 0,
8493
8493
  height: 0
8494
- }, ye = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Vs(), Ae = ye[re], pt = ye[ie], Ne = Wt(0, N[q], Me[q]), ht = T ? N[q] / 2 - we - Ne - Ae - F.mainAxis : qe - Ne - Ae - F.mainAxis, ze = T ? -N[q] / 2 + we + Ne + pt + F.mainAxis : Se + Ne + pt + F.mainAxis, mt = e.elements.arrow && cn(e.elements.arrow), fn = mt ? h === "y" ? mt.clientTop || 0 : mt.clientLeft || 0 : 0, Nt = (B = W?.[h]) != null ? B : 0, dn = K + ht - Nt - fn, pn = K + ze - Nt, It = Wt(d ? Kn(H, dn) : H, K, d ? at(ke, pn) : ke);
8494
+ }, ye = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Vs(), Ae = ye[re], pt = ye[ie], Ne = Ht(0, N[q], Me[q]), ht = T ? N[q] / 2 - we - Ne - Ae - F.mainAxis : qe - Ne - Ae - F.mainAxis, ze = T ? -N[q] / 2 + we + Ne + pt + F.mainAxis : Se + Ne + pt + F.mainAxis, mt = e.elements.arrow && cn(e.elements.arrow), fn = mt ? h === "y" ? mt.clientTop || 0 : mt.clientLeft || 0 : 0, Nt = (B = H?.[h]) != null ? B : 0, dn = K + ht - Nt - fn, pn = K + ze - Nt, It = Ht(d ? Kn(W, dn) : W, K, d ? at(ke, pn) : ke);
8495
8495
  x[h] = It, $[h] = It - K;
8496
8496
  }
8497
8497
  if (a) {
8498
- var Dt, hn = h === "x" ? ee : te, mn = h === "x" ? he : me, Ie = x[M], Le = M === "y" ? "height" : "width", Rt = Ie + y[hn], Ue = Ie - y[mn], Pt = [ee, te].indexOf(b) !== -1, gn = (Dt = W?.[M]) != null ? Dt : 0, yn = Pt ? Rt : Ie - N[Le] - P[Le] - gn + F.altAxis, vn = Pt ? Ie + N[Le] + P[Le] - gn - F.altAxis : Ue, bn = d && Pt ? Ju(yn, Ie, vn) : Wt(d ? yn : Rt, Ie, d ? vn : Ue);
8498
+ var Dt, hn = h === "x" ? te : ne, mn = h === "x" ? he : me, Ie = x[M], Le = M === "y" ? "height" : "width", Rt = Ie + y[hn], Ue = Ie - y[mn], Pt = [te, ne].indexOf(b) !== -1, gn = (Dt = H?.[M]) != null ? Dt : 0, yn = Pt ? Rt : Ie - N[Le] - P[Le] - gn + F.altAxis, vn = Pt ? Ie + N[Le] + P[Le] - gn - F.altAxis : Ue, bn = d && Pt ? Ju(yn, Ie, vn) : Ht(d ? yn : Rt, Ie, d ? vn : Ue);
8499
8499
  x[M] = bn, $[M] = bn - Ie;
8500
8500
  }
8501
8501
  e.modifiersData[r] = $;
@@ -8620,8 +8620,8 @@ function If(n) {
8620
8620
  setOptions: function(b) {
8621
8621
  var C = typeof b == "function" ? b(u.options) : b;
8622
8622
  m(), u.options = Object.assign({}, o, u.options, C), u.scrollParents = {
8623
- reference: ct(a) ? Ht(a) : a.contextElement ? Ht(a.contextElement) : [],
8624
- popper: Ht(l)
8623
+ reference: ct(a) ? Wt(a) : a.contextElement ? Wt(a.contextElement) : [],
8624
+ popper: Wt(l)
8625
8625
  };
8626
8626
  var T = Mf(Nf([].concat(r, u.options.modifiers)));
8627
8627
  return u.orderedModifiers = T.filter(function(h) {
@@ -8775,10 +8775,10 @@ function nn(n) {
8775
8775
  function jf(n) {
8776
8776
  return ci(n, "NodeList");
8777
8777
  }
8778
- function Wf(n) {
8778
+ function Hf(n) {
8779
8779
  return ci(n, "MouseEvent");
8780
8780
  }
8781
- function Hf(n) {
8781
+ function Wf(n) {
8782
8782
  return !!(n && n._tippy && n._tippy.reference === n);
8783
8783
  }
8784
8784
  function Jf(n) {
@@ -8835,7 +8835,7 @@ function Xs() {
8835
8835
  }
8836
8836
  function Gf() {
8837
8837
  var n = document.activeElement;
8838
- if (Hf(n)) {
8838
+ if (Wf(n)) {
8839
8839
  var e = n._tippy;
8840
8840
  n.blur && !e.state.isVisible && n.blur();
8841
8841
  }
@@ -9102,7 +9102,7 @@ function ad(n, e) {
9102
9102
  var P = C.map(function(v) {
9103
9103
  return v.fn(h);
9104
9104
  }), L = n.hasAttribute("aria-expanded");
9105
- return mt(), we(), K(), H("onCreate", [h]), t.showOnCreate && Rt(), x.addEventListener("mouseenter", function() {
9105
+ return mt(), we(), K(), W("onCreate", [h]), t.showOnCreate && Rt(), x.addEventListener("mouseenter", function() {
9106
9106
  h.props.interactive && h.state.isVisible && h.clearDelayTimeouts();
9107
9107
  }), x.addEventListener("mouseleave", function() {
9108
9108
  h.props.interactive && h.props.trigger.indexOf("mouseenter") >= 0 && re().addEventListener("mousemove", g);
@@ -9111,7 +9111,7 @@ function ad(n, e) {
9111
9111
  var v = h.props.touch;
9112
9112
  return Array.isArray(v) ? v : [v, 0];
9113
9113
  }
9114
- function W() {
9114
+ function H() {
9115
9115
  return F()[0] === "hold";
9116
9116
  }
9117
9117
  function $() {
@@ -9134,7 +9134,7 @@ function ad(n, e) {
9134
9134
  function K(v) {
9135
9135
  v === void 0 && (v = !1), x.style.pointerEvents = h.props.interactive && !v ? "" : "none", x.style.zIndex = "" + h.props.zIndex;
9136
9136
  }
9137
- function H(v, w, E) {
9137
+ function W(v, w, E) {
9138
9138
  if (E === void 0 && (E = !0), P.forEach(function(I) {
9139
9139
  I[v] && I[v].apply(I, w);
9140
9140
  }), E) {
@@ -9180,7 +9180,7 @@ function ad(n, e) {
9180
9180
  if (Ce.isTouch || h.state.isVisible && h.props.trigger.indexOf("click") >= 0)
9181
9181
  return;
9182
9182
  } else
9183
- H("onClickOutside", [h, v]);
9183
+ W("onClickOutside", [h, v]);
9184
9184
  h.props.hideOnClick === !0 && (h.clearDelayTimeouts(), h.hide(), a = !0, setTimeout(function() {
9185
9185
  a = !1;
9186
9186
  }), h.state.isMounted || Ae());
@@ -9231,7 +9231,7 @@ function ad(n, e) {
9231
9231
  });
9232
9232
  }
9233
9233
  function mt() {
9234
- W() && (ze("touchstart", Nt, {
9234
+ H() && (ze("touchstart", Nt, {
9235
9235
  passive: !0
9236
9236
  }), ze("touchend", pn, {
9237
9237
  passive: !0
@@ -9260,7 +9260,7 @@ function ad(n, e) {
9260
9260
  var w, E = !1;
9261
9261
  if (!(!h.state.isEnabled || Dt(v) || a)) {
9262
9262
  var R = ((w = u) == null ? void 0 : w.type) === "focus";
9263
- u = v, m = v.currentTarget, we(), !h.state.isVisible && Wf(v) && Mn.forEach(function(I) {
9263
+ u = v, m = v.currentTarget, we(), !h.state.isVisible && Hf(v) && Mn.forEach(function(I) {
9264
9264
  return I(v);
9265
9265
  }), v.type === "click" && (h.props.trigger.indexOf("mouseenter") < 0 || s) && h.props.hideOnClick !== !1 && h.state.isVisible ? E = !0 : Rt(v), v.type === "click" && (s = !E), E && !R && Ue(v);
9266
9266
  }
@@ -9293,7 +9293,7 @@ function ad(n, e) {
9293
9293
  h.props.trigger.indexOf("focusin") < 0 && v.target !== B() || h.props.interactive && v.relatedTarget && x.contains(v.relatedTarget) || Ue(v);
9294
9294
  }
9295
9295
  function Dt(v) {
9296
- return Ce.isTouch ? W() !== v.type.indexOf("touch") >= 0 : !1;
9296
+ return Ce.isTouch ? H() !== v.type.indexOf("touch") >= 0 : !1;
9297
9297
  }
9298
9298
  function hn() {
9299
9299
  mn();
@@ -9369,14 +9369,14 @@ function ad(n, e) {
9369
9369
  return Un(x.querySelectorAll("[data-tippy-root]"));
9370
9370
  }
9371
9371
  function Rt(v) {
9372
- h.clearDelayTimeouts(), v && H("onTrigger", [h, v]), ye();
9372
+ h.clearDelayTimeouts(), v && W("onTrigger", [h, v]), ye();
9373
9373
  var w = q(!0), E = F(), R = E[0], I = E[1];
9374
9374
  Ce.isTouch && R === "hold" && I && (w = I), w ? r = setTimeout(function() {
9375
9375
  h.show();
9376
9376
  }, w) : h.show();
9377
9377
  }
9378
9378
  function Ue(v) {
9379
- if (h.clearDelayTimeouts(), H("onUntrigger", [h, v]), !h.state.isVisible) {
9379
+ if (h.clearDelayTimeouts(), W("onUntrigger", [h, v]), !h.state.isVisible) {
9380
9380
  Ae();
9381
9381
  return;
9382
9382
  }
@@ -9400,7 +9400,7 @@ function ad(n, e) {
9400
9400
  }
9401
9401
  function vn(v) {
9402
9402
  if (process.env.NODE_ENV !== "production" && De(h.state.isDestroyed, bt("setProps")), !h.state.isDestroyed) {
9403
- H("onBeforeUpdate", [h, v]), fn();
9403
+ W("onBeforeUpdate", [h, v]), fn();
9404
9404
  var w = h.props, E = fo(n, Object.assign({}, w, so(v), {
9405
9405
  ignoreAttributes: !0
9406
9406
  }));
@@ -9408,7 +9408,7 @@ function ad(n, e) {
9408
9408
  R.removeAttribute("aria-expanded");
9409
9409
  }) : E.triggerTarget && n.removeAttribute("aria-expanded"), we(), K(), N && N(w, E), h.popperInstance && (hn(), Le().forEach(function(R) {
9410
9410
  requestAnimationFrame(R._tippy.popperInstance.forceUpdate);
9411
- })), H("onAfterUpdate", [h, v]);
9411
+ })), W("onAfterUpdate", [h, v]);
9412
9412
  }
9413
9413
  }
9414
9414
  function bn(v) {
@@ -9419,7 +9419,7 @@ function ad(n, e) {
9419
9419
  function ra() {
9420
9420
  process.env.NODE_ENV !== "production" && De(h.state.isDestroyed, bt("show"));
9421
9421
  var v = h.state.isVisible, w = h.state.isDestroyed, E = !h.state.isEnabled, R = Ce.isTouch && !h.props.touch, I = hr(h.props.duration, 0, ae.duration);
9422
- if (!(v || w || E || R) && !B().hasAttribute("disabled") && (H("onShow", [h], !1), h.props.onShow(h) !== !1)) {
9422
+ if (!(v || w || E || R) && !B().hasAttribute("disabled") && (W("onShow", [h], !1), h.props.onShow(h) !== !1)) {
9423
9423
  if (h.state.isVisible = !0, $() && (x.style.visibility = "visible"), K(), ye(), h.state.isMounted || (x.style.transition = "none"), $()) {
9424
9424
  var X = ie(), fe = X.box, gt = X.content;
9425
9425
  mr([fe, gt], 0);
@@ -9431,8 +9431,8 @@ function ad(n, e) {
9431
9431
  var tr = ie(), xn = tr.box, yt = tr.content;
9432
9432
  mr([xn, yt], I), ao([xn, yt], "visible");
9433
9433
  }
9434
- ke(), we(), oo(yr, h), (Ge = h.popperInstance) == null || Ge.forceUpdate(), H("onMount", [h]), h.props.animation && $() && Ne(I, function() {
9435
- h.state.isShown = !0, H("onShown", [h]);
9434
+ ke(), we(), oo(yr, h), (Ge = h.popperInstance) == null || Ge.forceUpdate(), W("onMount", [h]), h.props.animation && $() && Ne(I, function() {
9435
+ h.state.isShown = !0, W("onShown", [h]);
9436
9436
  });
9437
9437
  }
9438
9438
  }, Ie();
@@ -9441,7 +9441,7 @@ function ad(n, e) {
9441
9441
  function ia() {
9442
9442
  process.env.NODE_ENV !== "production" && De(h.state.isDestroyed, bt("hide"));
9443
9443
  var v = !h.state.isVisible, w = h.state.isDestroyed, E = !h.state.isEnabled, R = hr(h.props.duration, 1, ae.duration);
9444
- if (!(v || w || E) && (H("onHide", [h], !1), h.props.onHide(h) !== !1)) {
9444
+ if (!(v || w || E) && (W("onHide", [h], !1), h.props.onHide(h) !== !1)) {
9445
9445
  if (h.state.isVisible = !1, h.state.isShown = !1, c = !1, s = !1, $() && (x.style.visibility = "hidden"), qe(), Ae(), K(!0), $()) {
9446
9446
  var I = ie(), X = I.box, fe = I.content;
9447
9447
  h.props.animation && (mr([X, fe], R), ao([X, fe], "hidden"));
@@ -9457,10 +9457,10 @@ function ad(n, e) {
9457
9457
  v._tippy.unmount();
9458
9458
  }), x.parentNode && x.parentNode.removeChild(x), yr = yr.filter(function(v) {
9459
9459
  return v !== h;
9460
- }), h.state.isMounted = !1, H("onHidden", [h]));
9460
+ }), h.state.isMounted = !1, W("onHidden", [h]));
9461
9461
  }
9462
9462
  function aa() {
9463
- process.env.NODE_ENV !== "production" && De(h.state.isDestroyed, bt("destroy")), !h.state.isDestroyed && (h.clearDelayTimeouts(), h.unmount(), fn(), delete n._tippy, h.state.isDestroyed = !0, H("onDestroy", [h]));
9463
+ process.env.NODE_ENV !== "production" && De(h.state.isDestroyed, bt("destroy")), !h.state.isDestroyed && (h.clearDelayTimeouts(), h.unmount(), fn(), delete n._tippy, h.state.isDestroyed = !0, W("onDestroy", [h]));
9464
9464
  }
9465
9465
  }
9466
9466
  function un(n, e) {
@@ -9605,7 +9605,7 @@ class ld {
9605
9605
  const cd = (n) => new be({
9606
9606
  key: typeof n.pluginKey == "string" ? new ge(n.pluginKey) : n.pluginKey,
9607
9607
  view: (e) => new ld({ view: e, ...n })
9608
- }), ud = ne.create({
9608
+ }), ud = _.create({
9609
9609
  name: "bubbleMenu",
9610
9610
  addOptions() {
9611
9611
  return {
@@ -9662,7 +9662,7 @@ function na(n) {
9662
9662
  const e = n.parent;
9663
9663
  return e ? na(e) : null;
9664
9664
  }
9665
- const yd = ne.create({
9665
+ const yd = _.create({
9666
9666
  name: "selectionDecoration",
9667
9667
  addProseMirrorPlugins() {
9668
9668
  return [
@@ -9755,7 +9755,7 @@ const yd = ne.create({
9755
9755
  renderHTML({ HTMLAttributes: n }) {
9756
9756
  return ["mark", an(this.options.HTMLAttributes, n), 0];
9757
9757
  }
9758
- }), bd = ne.create({
9758
+ }), bd = _.create({
9759
9759
  name: "tokenHighlight",
9760
9760
  addProseMirrorPlugins() {
9761
9761
  return [
@@ -9809,9 +9809,44 @@ const xd = _t.create({
9809
9809
  return t.classList.add("content", "is-editable"), n.append(t, e), { dom: n, contentDOM: t };
9810
9810
  };
9811
9811
  }
9812
+ }), kd = _.create({
9813
+ name: "fontSize",
9814
+ addOptions() {
9815
+ return {
9816
+ types: ["textStyle"]
9817
+ };
9818
+ },
9819
+ addGlobalAttributes() {
9820
+ return [
9821
+ {
9822
+ types: this.options.types,
9823
+ attributes: {
9824
+ fontSize: {
9825
+ default: null,
9826
+ parseHTML: (n) => n.style.fontSize || null,
9827
+ renderHTML: (n) => n.fontSize ? {
9828
+ style: `font-size: ${n.fontSize}`
9829
+ } : {}
9830
+ }
9831
+ }
9832
+ }
9833
+ ];
9834
+ },
9835
+ addCommands() {
9836
+ return {
9837
+ setFontSize: (n) => ({ chain: e }) => e().setMark("textStyle", { fontSize: n }).run(),
9838
+ unsetFontSize: () => ({ chain: n }) => {
9839
+ const e = n().setMark("textStyle", {
9840
+ fontSize: null
9841
+ });
9842
+ return e.removeEmptyTextStyle?.().run() ?? e.run();
9843
+ }
9844
+ };
9845
+ }
9812
9846
  });
9813
9847
  export {
9814
9848
  vd as ExtendedHighlight,
9849
+ kd as FontSizeExtension,
9815
9850
  hd as ImageExtension,
9816
9851
  md as KnowledgeExtension,
9817
9852
  yd as SelectionDecoration,