@knime/jsonforms 1.15.33 → 1.15.35

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.
Files changed (67) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/{AnyOfTwinlist-CW7KcqmV.js → AnyOfTwinlist-BxxV-vXH.js} +1 -1
  3. package/dist/{Button-DY4ubq27.js → Button-C1YbM3aI.js} +1 -1
  4. package/dist/{CheckboxControl-BeMHGgde.js → CheckboxControl-Br6yNvvQ.js} +1 -1
  5. package/dist/{Checkboxes-DWz6axAZ.js → Checkboxes-Cq8yG3IF.js} +1 -1
  6. package/dist/{CheckboxesControl-ZwvPXrMe.js → CheckboxesControl-DFGrfGnh.js} +3 -3
  7. package/dist/{ComboBoxControl-8qMNjfQo.js → ComboBoxControl-XXv-bHn8.js} +2 -2
  8. package/dist/{DateControl-BeoHB-oc.js → DateControl-CU7oiLe8.js} +1 -1
  9. package/dist/{DateTimeControl-B6hodgEZ.js → DateTimeControl-DVPVqdQ1.js} +1 -1
  10. package/dist/{DateTimeFormatInput-BmcSEr6M.js → DateTimeFormatInput-Cb3oICrR.js} +3 -3
  11. package/dist/{DateTimeFormatPickerControl-F-3VM2NQ.js → DateTimeFormatPickerControl-CYy0llzC.js} +2 -2
  12. package/dist/{DateTimeFormatPickerWithTypeControl-BY1s8V_M.js → DateTimeFormatPickerWithTypeControl-BddMp7Jk.js} +3 -3
  13. package/dist/{Dropdown-3ruXMqTa.js → Dropdown-cU7QSWA2.js} +2 -2
  14. package/dist/{DropdownControl-CLoNfpW1.js → DropdownControl-CZ-y9hDR.js} +2 -2
  15. package/dist/{HorizontalLayout-BCtmi5_B.js → HorizontalLayout-yAUmGkR2.js} +1 -1
  16. package/dist/{InputField-nE7YlOjq.js → InputField-CS5yFxgB.js} +1 -1
  17. package/dist/{IntegerControl-F9V64ENJ.js → IntegerControl-Cli0AQRY.js} +1 -1
  18. package/dist/{IntervalControl-Dw363E-g.js → IntervalControl-CXMo5jZF.js} +3 -3
  19. package/dist/{LoadingDropdown-1H8kTJJd.js → LoadingDropdown-AM-gEPfk.js} +3 -3
  20. package/dist/{LoadingIcon-BA1R8ss6.js → LoadingIcon-oWPAdW1o.js} +1 -1
  21. package/dist/{ManualTwinlistControl-BHM1Nuag.js → ManualTwinlistControl-kS4s8uyn.js} +4 -4
  22. package/dist/{MultiSelectListBoxControl-Mi9Bg2JZ.js → MultiSelectListBoxControl-BCvcSoqh.js} +2 -2
  23. package/dist/{MultimodeTwinlistControl-Bq1ytH6z.js → MultimodeTwinlistControl-CAxo_Ngb.js} +6 -6
  24. package/dist/{MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_a6fd4504_lang-BesWQz2c.js → MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_a6fd4504_lang-BYga7onx.js} +1 -1
  25. package/dist/{MultiselectListBox-CSJHr1sx.js → MultiselectListBox-clSTp1-1.js} +2 -2
  26. package/dist/{NameFilter-Bez3BKrb.js → NameFilter-CnWwCZpN.js} +1 -1
  27. package/dist/{NumberControl-DWC9olEp.js → NumberControl-tB_MjxGQ.js} +1 -1
  28. package/dist/{NumberControlBase.vue_vue_type_script_setup_true_lang-Dvk-1EM_.js → NumberControlBase.vue_vue_type_script_setup_true_lang-CTnlXQBz.js} +2 -2
  29. package/dist/{NumberInput-Dp4N98CC.js → NumberInput-BNheesNm.js} +1 -1
  30. package/dist/{OneOfDropdown-Cxm1eLTI.js → OneOfDropdown-D2mbeDYO.js} +1 -1
  31. package/dist/{RadioControl-CLc3dsvN.js → RadioControl-txJeApK9.js} +2 -2
  32. package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-D92MNC8N.js → RadioControlBase.vue_vue_type_script_setup_true_lang-P8DY-oIn.js} +3 -3
  33. package/dist/{RichTextControl-iaqOEHpE.js → RichTextControl-Bk7bf81X.js} +683 -671
  34. package/dist/{SectionHeading-Dltr_kZH.js → SectionHeading-CMpUCBtM.js} +1 -1
  35. package/dist/{SectionHeading.vue_vue_type_style_index_0_scoped_c541eb08_lang-D4vcU0IR.js → SectionHeading.vue_vue_type_style_index_0_scoped_c541eb08_lang-Do0etb2v.js} +34 -34
  36. package/dist/{SectionLayout-BEeFdTG9.js → SectionLayout-CA5sy4yp.js} +3 -3
  37. package/dist/{SettingsSubPanel-r7Tnr2Hs.js → SettingsSubPanel-Bw3bHKkG.js} +1 -1
  38. package/dist/{SettingsSubPanelLayout-DHI_PRkQ.js → SettingsSubPanelLayout-9TsjJKug.js} +4 -4
  39. package/dist/{SimpleButtonControl-BtJ_Q0-K.js → SimpleButtonControl-ogvNWx25.js} +2 -2
  40. package/dist/{SimpleTwinlistControl-BKXS46ox.js → SimpleTwinlistControl-BqT1pxMU.js} +2 -2
  41. package/dist/{SingleSelectControl-B01L1_wX.js → SingleSelectControl-Bx7mOJM0.js} +2 -2
  42. package/dist/{SingleSelectListBoxControl-7uiW_H2z.js → SingleSelectListBoxControl-qjXOElDT.js} +3 -3
  43. package/dist/{SortListControl-VvEJ4u4i.js → SortListControl-CmHm1Sz5.js} +6 -6
  44. package/dist/{StyledListItem-BQGmmkpp.js → StyledListItem-D0mZZhK0.js} +1 -1
  45. package/dist/{TextAreaControl-DxcfWaj1.js → TextAreaControl-B18dd6_s.js} +1 -1
  46. package/dist/{TextControl-ipJvsnxN.js → TextControl-Dpfk3z7N.js} +1 -1
  47. package/dist/{TextControl.vue_vue_type_script_setup_true_lang-DZ4R3WWY.js → TextControl.vue_vue_type_script_setup_true_lang-30D3WpVY.js} +3 -3
  48. package/dist/{TimeControl-Dso-cL8j.js → TimeControl-DC6f3AOm.js} +1 -1
  49. package/dist/{TwinlistControlBase-DgMxOQNp.js → TwinlistControlBase-5Hq8wJ7U.js} +3 -3
  50. package/dist/{TwinlistLoadingInfo-CQCA3I4o.js → TwinlistLoadingInfo-9NuaQllh.js} +4 -4
  51. package/dist/{TypedStringFilter-64jcVhSC.js → TypedStringFilter-kAtL2VnN.js} +1 -1
  52. package/dist/{ValueSwitch-woxZw8Ij.js → ValueSwitch-CYYZDFP_.js} +1 -1
  53. package/dist/{ValueSwitchControl-yLHSsLP3.js → ValueSwitchControl-B1b_4stQ.js} +1 -1
  54. package/dist/{VerticalLayout-BWokOEoa.js → VerticalLayout-dU4Lhcag.js} +2 -2
  55. package/dist/{VerticalLayoutBase-D4e_ae45.js → VerticalLayoutBase-C7eckPND.js} +1 -1
  56. package/dist/{ZonedDateTimeControl-UqRT_wYZ.js → ZonedDateTimeControl-xOiRSrD6.js} +3 -3
  57. package/dist/{_baseEach-DOvUm3R9.js → _baseEach-CuUdn735.js} +2 -2
  58. package/dist/{_baseIteratee-DqI1LMoq.js → _baseIteratee-Dp4yBmhi.js} +3 -3
  59. package/dist/{_getTag-DvSmio3K.js → _getTag-CBwdewIU.js} +1 -1
  60. package/dist/knime-jsonforms.css +1 -1
  61. package/dist/knime-jsonforms.js +7 -7
  62. package/dist/{localTimeUtils-BZb02fjo.js → localTimeUtils-BlRVDpai.js} +6 -6
  63. package/dist/testing.js +2 -2
  64. package/dist/{toString-IuiRs6iL.js → toString-nVzS6mO9.js} +1 -1
  65. package/dist/{useBuiltinValidations-Dp59fT26.js → useBuiltinValidations-CrJ2Uydv.js} +1 -1
  66. package/dist/{usePossibleValues-irtfnsJj.js → usePossibleValues-6lsPicV7.js} +1 -1
  67. package/package.json +3 -3
@@ -1,20 +1,20 @@
1
- import { defineComponent as de, resolveComponent as Ht, createBlock as ne, openBlock as N, Transition as bs, withCtx as q, createCommentVNode as ee, createElementVNode as L, withModifiers as Hn, createVNode as Z, createElementBlock as H, renderSlot as Ne, normalizeClass as $e, toDisplayString as wt, useCssVars as Fa, ref as J, watch as Ut, unref as V, onUnmounted as $a, Fragment as tr, createTextVNode as Td, resolveDynamicComponent as ks, mergeProps as nr, toRef as Fi, onBeforeUpdate as Ed, computed as ye, normalizeStyle as vs, renderList as Ha, nextTick as yi, toRefs as Va, inject as Od, Teleport as Ad, withDirectives as ja, vShow as _a, shallowRef as Nd, onMounted as rr, onBeforeUnmount as bi, h as ir, getCurrentInstance as Id, watchEffect as Dd, markRaw as Rd, customRef as Ld, withKeys as Pd, useSlots as Bd, toHandlers as Wa } from "vue";
2
- import { c as zd, a as Fd } from "./popper-LGjf7Wza.js";
1
+ import { defineComponent as de, resolveComponent as Ht, createBlock as ne, openBlock as N, Transition as bs, withCtx as q, createCommentVNode as ee, createElementVNode as L, withModifiers as Hn, createVNode as Z, createElementBlock as H, renderSlot as Ne, normalizeClass as $e, toDisplayString as wt, useCssVars as Fa, ref as J, watch as Ut, unref as V, onUnmounted as $a, Fragment as tr, createTextVNode as Md, resolveDynamicComponent as ks, mergeProps as nr, toRef as Fi, onBeforeUpdate as Td, computed as ye, normalizeStyle as xs, renderList as Ha, nextTick as yi, toRefs as Va, inject as Ed, Teleport as Od, withDirectives as ja, vShow as _a, shallowRef as Ad, onMounted as rr, onBeforeUnmount as bi, h as ir, getCurrentInstance as Nd, watchEffect as Id, markRaw as Dd, customRef as Rd, withKeys as Ld, useSlots as Pd, toHandlers as Wa } from "vue";
2
+ import { c as Bd, a as zd } from "./popper-LGjf7Wza.js";
3
3
  import { g as Ka } from "./hotkeys-rxnt4egK.js";
4
4
  import { i as Ua } from "./navigator-e30QQMkl.js";
5
- import { C as $d } from "./close-DGt8x-x_.js";
6
- import { _ as Ve, v as Qs, W as $i, P as Hd, M as tl, y as Vd, z as nl, A as jd, B as wn, D as _d, G as Wd, H as rl, I as Kd, J as Ud, C as qd, K as il } from "./SectionHeading.vue_vue_type_style_index_0_scoped_c541eb08_lang-D4vcU0IR.js";
7
- import { F as Jd, u as Gd } from "./useDropdownNavigation-BfCXUheD.js";
8
- import { B as Hi } from "./Button-DY4ubq27.js";
9
- import { I as sl } from "./InputField-nE7YlOjq.js";
10
- import { u as qa, a as Ja, f as Ga, s as Ya } from "./floating-ui.vue-CDo9Kas1.js";
5
+ import { C as Fd } from "./close-DGt8x-x_.js";
6
+ import { _ as Ve, v as Qs, W as $i, P as $d, M as tl, y as Hd, z as nl, A as Vd, B as wn, D as jd, G as _d, H as rl, I as Wd, J as Kd, C as Ud, K as il } from "./SectionHeading.vue_vue_type_style_index_0_scoped_c541eb08_lang-Do0etb2v.js";
7
+ import { F as qd, u as Jd } from "./useDropdownNavigation-BfCXUheD.js";
8
+ import { B as Hi } from "./Button-C1YbM3aI.js";
9
+ import { I as sl } from "./InputField-CS5yFxgB.js";
10
+ import { u as qa, a as Ja, f as Ga, s as Gd } from "./floating-ui.vue-CDo9Kas1.js";
11
11
  import { o as Yd } from "./index-CpKfM262.js";
12
12
  import { N as Xd } from "./arrow-next-BQVCxGb8.js";
13
- import { t as Qd } from "./toString-IuiRs6iL.js";
13
+ import { t as Qd } from "./toString-nVzS6mO9.js";
14
14
  const Zd = (n, e) => (n % e + e) % e, ef = de({
15
15
  name: "BaseModal",
16
16
  components: {
17
- FocusTrap: Jd
17
+ FocusTrap: qd
18
18
  },
19
19
  props: {
20
20
  /**
@@ -128,7 +128,7 @@ const sf = /* @__PURE__ */ Ve(ef, [["render", rf], ["__scopeId", "data-v-7a47e15
128
128
  name: "Modal",
129
129
  components: {
130
130
  BaseModal: sf,
131
- CloseIcon: $d,
131
+ CloseIcon: Fd,
132
132
  FunctionButton: Qs
133
133
  },
134
134
  props: {
@@ -225,7 +225,7 @@ const hf = /* @__PURE__ */ Ve(of, [["render", ff], ["__scopeId", "data-v-7c4d6c5
225
225
  }));
226
226
  const e = n, t = {
227
227
  default: {
228
- background: Ud,
228
+ background: Kd,
229
229
  foreground: wn,
230
230
  text: wn
231
231
  },
@@ -235,27 +235,27 @@ const hf = /* @__PURE__ */ Ve(of, [["render", ff], ["__scopeId", "data-v-7c4d6c5
235
235
  text: wn
236
236
  },
237
237
  info: {
238
- background: Kd,
238
+ background: Wd,
239
239
  foreground: rl,
240
240
  text: rl
241
241
  },
242
242
  warning: {
243
- background: Wd,
244
- foreground: _d,
243
+ background: _d,
244
+ foreground: jd,
245
245
  text: wn
246
246
  },
247
247
  error: {
248
- background: jd,
248
+ background: Vd,
249
249
  foreground: nl,
250
250
  text: nl
251
251
  },
252
252
  success: {
253
- background: Vd,
253
+ background: Hd,
254
254
  foreground: tl,
255
255
  text: tl
256
256
  },
257
257
  promotion: {
258
- background: Hd,
258
+ background: $d,
259
259
  foreground: $i,
260
260
  text: $i
261
261
  }
@@ -305,13 +305,13 @@ const hf = /* @__PURE__ */ Ve(of, [["render", ff], ["__scopeId", "data-v-7c4d6c5
305
305
  class: "badge-text"
306
306
  }, {
307
307
  default: q(() => [
308
- Td(wt(e.badgeText), 1)
308
+ Md(wt(e.badgeText), 1)
309
309
  ]),
310
310
  _: 1
311
311
  })) : ee("", !0)
312
312
  ], 64));
313
313
  }
314
- }), ol = /* @__PURE__ */ Ve(bf, [["__scopeId", "data-v-ad759757"]]), kf = { class: "label" }, vf = { class: "text-and-hotkey" }, xf = {
314
+ }), ol = /* @__PURE__ */ Ve(bf, [["__scopeId", "data-v-ad759757"]]), kf = { class: "label" }, xf = { class: "text-and-hotkey" }, vf = {
315
315
  key: 0,
316
316
  class: "description"
317
317
  }, wf = /* @__PURE__ */ de({
@@ -347,8 +347,8 @@ const hf = /* @__PURE__ */ Ve(of, [["render", ff], ["__scopeId", "data-v-7c4d6c5
347
347
  class: "item-icon"
348
348
  })) : ee("", !0),
349
349
  L("div", kf, [
350
- L("div", vf, [
351
- r.item.checkbox ? (N(), ne(qd, {
350
+ L("div", xf, [
351
+ r.item.checkbox ? (N(), ne(Ud, {
352
352
  key: 0,
353
353
  "model-value": r.item.checkbox.checked,
354
354
  class: "checkbox"
@@ -373,13 +373,13 @@ const hf = /* @__PURE__ */ Ve(of, [["render", ff], ["__scopeId", "data-v-7c4d6c5
373
373
  }, void 0, !0)
374
374
  ], 64))
375
375
  ]),
376
- r.item.description ? (N(), H("div", xf, wt(r.item.description), 1)) : ee("", !0)
376
+ r.item.description ? (N(), H("div", vf, wt(r.item.description), 1)) : ee("", !0)
377
377
  ])
378
378
  ]),
379
379
  _: 3
380
380
  }, 16, ["class", "to", "href"]));
381
381
  }
382
- }), Xa = /* @__PURE__ */ Ve(wf, [["__scopeId", "data-v-55633a4a"]]);
382
+ }), Ya = /* @__PURE__ */ Ve(wf, [["__scopeId", "data-v-55633a4a"]]);
383
383
  var Sf = 0;
384
384
  function Cf(n) {
385
385
  var e = ++Sf;
@@ -402,16 +402,13 @@ const Mf = ["aria-label"], Tf = ["data-index", "title", "onClick", "onPointerent
402
402
  return !("$el" in g);
403
403
  }
404
404
  const i = n, s = t, o = J([]), l = Fi(i, "positionRelativeToElement"), a = J();
405
- Ed(() => {
405
+ Td(() => {
406
406
  o.value = [];
407
407
  });
408
408
  const { floatingStyles: c } = l.value ? qa(l, a, {
409
409
  strategy: "fixed",
410
410
  placement: "right-start",
411
- middleware: [
412
- Ga({ boundary: i.clippingBoundary }),
413
- Ya({ boundary: i.clippingBoundary })
414
- ],
411
+ middleware: [Ga({ boundary: i.clippingBoundary })],
415
412
  whileElementsMounted: Ja
416
413
  }) : { floatingStyles: null }, u = c, d = ye(() => !!i.maxMenuWidth), f = ye(() => i.items.map((g, S) => ({ item: g, index: S })).filter(({ item: g }) => !g.disabled).map(({ index: g }) => g)), h = (g) => `menu-item-${i.id}-${g}`, p = () => {
417
414
  if (i.focusedItemIndex === null) {
@@ -439,25 +436,25 @@ const Mf = ["aria-label"], Tf = ["data-index", "title", "onClick", "onPointerent
439
436
  };
440
437
  e({ scrollTo: (g) => {
441
438
  if (a.value && a.value.scrollHeight > a.value.clientHeight) {
442
- const S = a.value.clientHeight + a.value.scrollTop, v = g.offsetTop + g.offsetHeight;
443
- v > S ? a.value.scrollTop = v - a.value.clientHeight : g.offsetTop < a.value.scrollTop && (a.value.scrollTop = g.offsetTop);
439
+ const S = a.value.clientHeight + a.value.scrollTop, x = g.offsetTop + g.offsetHeight;
440
+ x > S ? a.value.scrollTop = x - a.value.clientHeight : g.offsetTop < a.value.scrollTop && (a.value.scrollTop = g.offsetTop);
444
441
  }
445
442
  }, getEnabledListItems: () => o.value.map((g, S) => {
446
- const v = g.children[0];
443
+ const x = g.children[0];
447
444
  return {
448
445
  element: g,
449
446
  index: S,
450
- onClick: r(v) ? () => v.click() : () => v.$el.click()
447
+ onClick: r(x) ? () => x.click() : () => x.$el.click()
451
448
  };
452
449
  }).filter(({ index: g }) => f.value.includes(g)) });
453
- const C = (g, S, v) => {
450
+ const C = (g, S, x) => {
454
451
  s(
455
452
  "item-hovered",
456
453
  S.disabled || S.sectionHeadline ? null : S,
457
454
  i.id,
458
- v
455
+ x
459
456
  );
460
- }, M = (g, S, v) => {
457
+ }, M = (g, S, x) => {
461
458
  if (S.disabled || S.sectionHeadline || S.children?.length)
462
459
  return;
463
460
  if (!(S.href || S.to) && (g.preventDefault(), g.stopPropagation(), g.stopImmediatePropagation()), S.checkbox) {
@@ -465,40 +462,40 @@ const Mf = ["aria-label"], Tf = ["data-index", "title", "onClick", "onPointerent
465
462
  S.checkbox.setBoolean(T);
466
463
  return;
467
464
  }
468
- s("item-click", g, S, v);
465
+ s("item-click", g, S, x);
469
466
  };
470
467
  return (g, S) => (N(), H("ul", {
471
468
  ref_key: "listContainer",
472
469
  ref: a,
473
470
  "aria-label": g.menuAriaLabel,
474
471
  class: "base-menu-items",
475
- style: vs(V(u)),
472
+ style: xs(V(u)),
476
473
  role: "menu",
477
474
  tabindex: "-1",
478
- onPointerleave: S[0] || (S[0] = (v) => g.$emit("item-hovered", null, g.id, null))
475
+ onPointerleave: S[0] || (S[0] = (x) => g.$emit("item-hovered", null, g.id, null))
479
476
  }, [
480
- (N(!0), H(tr, null, Ha(g.items, (v, P) => (N(), H("li", {
477
+ (N(!0), H(tr, null, Ha(g.items, (x, P) => (N(), H("li", {
481
478
  key: P,
482
479
  ref_for: !0,
483
480
  ref: (T) => m(T, P),
484
481
  "data-index": P,
485
- class: $e([{ separator: v.separator }]),
486
- style: vs(d.value ? { "max-width": `${g.maxMenuWidth}px` } : {}),
487
- title: v.title,
488
- onClick: (T) => M(T, v, g.id),
489
- onPointerenter: (T) => C(T, v, P)
482
+ class: $e([{ separator: x.separator }]),
483
+ style: xs(d.value ? { "max-width": `${g.maxMenuWidth}px` } : {}),
484
+ title: x.title,
485
+ onClick: (T) => M(T, x, g.id),
486
+ onPointerenter: (T) => C(T, x, P)
490
487
  }, [
491
488
  Ne(g.$slots, "item", {
492
- item: v,
489
+ item: x,
493
490
  index: P,
494
491
  menuId: g.id,
495
492
  menuItemId: h,
496
493
  maxMenuWidth: g.maxMenuWidth,
497
494
  focusedItemIndex: g.focusedItemIndex
498
495
  }, () => [
499
- Z(Xa, {
496
+ Z(Ya, {
500
497
  id: h(P),
501
- item: v,
498
+ item: x,
502
499
  index: P,
503
500
  "use-max-menu-width": !!g.maxMenuWidth,
504
501
  "has-focus": P === g.focusedItemIndex
@@ -507,7 +504,7 @@ const Mf = ["aria-label"], Tf = ["data-index", "title", "onClick", "onPointerent
507
504
  ], 46, Tf))), 128))
508
505
  ], 44, Mf));
509
506
  }
510
- }), Of = /* @__PURE__ */ Ve(Ef, [["__scopeId", "data-v-a034f5d2"]]), Af = /* @__PURE__ */ de({
507
+ }), Of = /* @__PURE__ */ Ve(Ef, [["__scopeId", "data-v-41efc99c"]]), Af = /* @__PURE__ */ de({
511
508
  __name: "MenuItems",
512
509
  props: {
513
510
  items: {},
@@ -526,10 +523,10 @@ const Mf = ["aria-label"], Tf = ["data-index", "title", "onClick", "onPointerent
526
523
  index: -1
527
524
  };
528
525
  const S = s.value.getEnabledListItems();
529
- let v = S.map(({ index: Ee }) => Ee).indexOf(M);
530
- v === -1 && g === -1 && (v = 0);
526
+ let x = S.map(({ index: Ee }) => Ee).indexOf(M);
527
+ x === -1 && g === -1 && (x = 0);
531
528
  const P = Zd(
532
- v + g,
529
+ x + g,
533
530
  S.length
534
531
  ), { element: T, index: z, onClick: j } = S[P];
535
532
  return s.value.scrollTo(T), { index: z, onClick: j };
@@ -538,7 +535,7 @@ const Mf = ["aria-label"], Tf = ["data-index", "title", "onClick", "onPointerent
538
535
  onKeydown: u,
539
536
  resetNavigation: d,
540
537
  setElement: f
541
- } = Gd({
538
+ } = Jd({
542
539
  disableSpaceToClick: r.disableSpaceToClick,
543
540
  getNextElement: a,
544
541
  close: () => i("close")
@@ -584,33 +581,33 @@ const Mf = ["aria-label"], Tf = ["data-index", "title", "onClick", "onPointerent
584
581
  "menu-aria-label": r.menuAriaLabel,
585
582
  "focused-item-index": V(c),
586
583
  "clipping-boundary": M.clippingBoundary,
587
- onKeydown: g[5] || (g[5] = (v) => r.registerKeydown && b(v)),
588
- onItemClick: g[6] || (g[6] = (...v) => M.$emit("item-click", ...v)),
589
- onItemHovered: g[7] || (g[7] = (...v) => y(...v)),
590
- onItemFocused: g[8] || (g[8] = (...v) => M.$emit("item-focused", ...v))
584
+ onKeydown: g[5] || (g[5] = (x) => r.registerKeydown && b(x)),
585
+ onItemClick: g[6] || (g[6] = (...x) => M.$emit("item-click", ...x)),
586
+ onItemHovered: g[7] || (g[7] = (...x) => y(...x)),
587
+ onItemFocused: g[8] || (g[8] = (...x) => M.$emit("item-focused", ...x))
591
588
  }), {
592
589
  item: q(({
593
- item: v,
590
+ item: x,
594
591
  menuId: P,
595
592
  menuItemId: T,
596
593
  index: z,
597
594
  maxMenuWidth: j,
598
595
  focusedItemIndex: Ee
599
596
  }) => [
600
- Z(Xa, {
597
+ Z(Ya, {
601
598
  id: T(z),
602
- item: v,
599
+ item: x,
603
600
  index: z,
604
601
  "use-max-menu-width": !!j,
605
602
  "has-focus": z === Ee,
606
603
  class: "base-item"
607
604
  }, {
608
605
  submenu: q(({ itemElement: se }) => [
609
- v.children && v.children.length ? (N(), H("span", {
606
+ x.children && x.children.length ? (N(), H("span", {
610
607
  key: 0,
611
608
  class: $e([
612
609
  "sub-menu-indicator",
613
- { highlight: C(v) }
610
+ { highlight: C(x) }
614
611
  ])
615
612
  }, [
616
613
  Z(V(Xd), { class: "icon" }),
@@ -620,8 +617,8 @@ const Mf = ["aria-label"], Tf = ["data-index", "title", "onClick", "onPointerent
620
617
  ref_key: "subLevelItems",
621
618
  ref: l,
622
619
  class: "menu-items-sub-level",
623
- "menu-aria-label": `${v.text} sub menu`,
624
- items: v.children,
620
+ "menu-aria-label": `${x.text} sub menu`,
621
+ items: x.children,
625
622
  "max-menu-width": j,
626
623
  "position-relative-to-element": se,
627
624
  "clipping-boundary": M.clippingBoundary,
@@ -674,6 +671,10 @@ const Mf = ["aria-label"], Tf = ["data-index", "title", "onClick", "onPointerent
674
671
  type: String,
675
672
  default: ""
676
673
  },
674
+ maxHeight: {
675
+ type: String,
676
+ default: ""
677
+ },
677
678
  /**
678
679
  * Alignment of the submenu with the menu button left or right. Defaults to 'right'.
679
680
  */
@@ -734,7 +735,7 @@ const Mf = ["aria-label"], Tf = ["data-index", "title", "onClick", "onPointerent
734
735
  },
735
736
  emits: ["item-click", "toggle", "open", "close"],
736
737
  setup(n) {
737
- const { positioningStrategy: e } = Va(n), t = J(null), r = J(null), i = J(null), s = J(!1), o = Od("shadowRoot", null), l = ye(
738
+ const { positioningStrategy: e } = Va(n), t = J(null), r = J(null), i = J(null), s = J(!1), o = Ed("shadowRoot", null), l = ye(
738
739
  () => o || document?.body
739
740
  ), a = () => {
740
741
  s.value = !1;
@@ -744,7 +745,7 @@ const Mf = ["aria-label"], Tf = ["data-index", "title", "onClick", "onPointerent
744
745
  s
745
746
  );
746
747
  const c = ye(() => If[n.orientation]), u = ye(() => [
747
- Ya({ mainAxis: n.allowOverflowMainAxis }),
748
+ Gd({ mainAxis: n.allowOverflowMainAxis }),
748
749
  Ga()
749
750
  ]), {
750
751
  floatingStyles: d,
@@ -772,6 +773,16 @@ const Mf = ["aria-label"], Tf = ["data-index", "title", "onClick", "onPointerent
772
773
  activeDescendant: void 0
773
774
  };
774
775
  },
776
+ computed: {
777
+ maxHeightStyle() {
778
+ return {
779
+ ...this.maxHeight ? {
780
+ "max-height": this.maxHeight,
781
+ "overflow-y": "auto"
782
+ } : {}
783
+ };
784
+ }
785
+ },
775
786
  methods: {
776
787
  toggleMenu(n) {
777
788
  if (this.disabled)
@@ -829,20 +840,21 @@ function Lf(n, e, t, r, i, s) {
829
840
  ]),
830
841
  _: 3
831
842
  }, 8, ["title", "class", "aria-expanded", "disabled", "active", "compact", "onClick"]),
832
- (N(), ne(Ad, {
843
+ (N(), ne(Od, {
833
844
  to: r.shadowRoot || "body",
834
845
  disabled: !t.teleportToBody
835
846
  }, [
836
847
  ja(L("div", {
837
848
  ref: "menuWrapper",
838
- style: vs(r.menuWrapperFloatingStyles),
839
- class: $e(["menu-wrapper", { disabled: t.disabled }])
849
+ class: $e(["menu-wrapper", { disabled: t.disabled }]),
850
+ style: xs(r.menuWrapperFloatingStyles)
840
851
  }, [
841
852
  r.expanded ? (N(), ne(l, nr({
842
853
  key: 0,
843
854
  id: t.id,
844
855
  ref: "menuItems",
845
856
  class: ["menu-items", `orient-${t.orientation}`],
857
+ style: { ...s.maxHeightStyle },
846
858
  items: t.items,
847
859
  "max-menu-width": t.maxMenuWidth,
848
860
  "clipping-boundary": r.clippingBoundary
@@ -851,14 +863,14 @@ function Lf(n, e, t, r, i, s) {
851
863
  onItemClick: s.onItemClick,
852
864
  onClose: r.closeMenu,
853
865
  onItemFocused: s.setActiveDescendant
854
- }), null, 16, ["id", "class", "items", "max-menu-width", "clipping-boundary", "onItemClick", "onClose", "onItemFocused"])) : ee("", !0)
866
+ }), null, 16, ["id", "class", "style", "items", "max-menu-width", "clipping-boundary", "onItemClick", "onClose", "onItemFocused"])) : ee("", !0)
855
867
  ], 6), [
856
868
  [_a, r.expanded]
857
869
  ])
858
870
  ], 8, ["to", "disabled"]))
859
871
  ], 42, Rf);
860
872
  }
861
- const Pf = /* @__PURE__ */ Ve(Df, [["render", Lf], ["__scopeId", "data-v-6ab15d08"]]), Bf = {
873
+ const Pf = /* @__PURE__ */ Ve(Df, [["render", Lf], ["__scopeId", "data-v-7335dd6b"]]), Bf = {
862
874
  xmlns: "http://www.w3.org/2000/svg",
863
875
  fill: "none",
864
876
  stroke: "#000",
@@ -1003,7 +1015,7 @@ const Ff = { render: zf }, $f = {
1003
1015
  [_a, f.isActive.value]
1004
1016
  ]);
1005
1017
  }
1006
- }), Qa = /* @__PURE__ */ Ve(Vf, [["__scopeId", "data-v-5cf1f560"]]);
1018
+ }), Xa = /* @__PURE__ */ Ve(Vf, [["__scopeId", "data-v-5cf1f560"]]);
1007
1019
  function fe(n) {
1008
1020
  this.content = n;
1009
1021
  }
@@ -1104,7 +1116,7 @@ fe.from = function(n) {
1104
1116
  if (n) for (var t in n) e.push(t, n[t]);
1105
1117
  return new fe(e);
1106
1118
  };
1107
- function Za(n, e, t) {
1119
+ function Qa(n, e, t) {
1108
1120
  for (let r = 0; ; r++) {
1109
1121
  if (r == n.childCount || r == e.childCount)
1110
1122
  return n.childCount == e.childCount ? null : t;
@@ -1121,14 +1133,14 @@ function Za(n, e, t) {
1121
1133
  return t;
1122
1134
  }
1123
1135
  if (i.content.size || s.content.size) {
1124
- let o = Za(i.content, s.content, t + 1);
1136
+ let o = Qa(i.content, s.content, t + 1);
1125
1137
  if (o != null)
1126
1138
  return o;
1127
1139
  }
1128
1140
  t += i.nodeSize;
1129
1141
  }
1130
1142
  }
1131
- function ec(n, e, t, r) {
1143
+ function Za(n, e, t, r) {
1132
1144
  for (let i = n.childCount, s = e.childCount; ; ) {
1133
1145
  if (i == 0 || s == 0)
1134
1146
  return i == s ? null : { a: t, b: r };
@@ -1146,14 +1158,14 @@ function ec(n, e, t, r) {
1146
1158
  return { a: t, b: r };
1147
1159
  }
1148
1160
  if (o.content.size || l.content.size) {
1149
- let c = ec(o.content, l.content, t - 1, r - 1);
1161
+ let c = Za(o.content, l.content, t - 1, r - 1);
1150
1162
  if (c)
1151
1163
  return c;
1152
1164
  }
1153
1165
  t -= a, r -= a;
1154
1166
  }
1155
1167
  }
1156
- class x {
1168
+ class v {
1157
1169
  /**
1158
1170
  @internal
1159
1171
  */
@@ -1208,7 +1220,7 @@ class x {
1208
1220
  let t = this.lastChild, r = e.firstChild, i = this.content.slice(), s = 0;
1209
1221
  for (t.isText && t.sameMarkup(r) && (i[i.length - 1] = t.withText(t.text + r.text), s = 1); s < e.content.length; s++)
1210
1222
  i.push(e.content[s]);
1211
- return new x(i, this.size + e.size);
1223
+ return new v(i, this.size + e.size);
1212
1224
  }
1213
1225
  /**
1214
1226
  Cut out the sub-fragment between the two given positions.
@@ -1222,13 +1234,13 @@ class x {
1222
1234
  let l = this.content[s], a = o + l.nodeSize;
1223
1235
  a > e && ((o < e || a > t) && (l.isText ? l = l.cut(Math.max(0, e - o), Math.min(l.text.length, t - o)) : l = l.cut(Math.max(0, e - o - 1), Math.min(l.content.size, t - o - 1))), r.push(l), i += l.nodeSize), o = a;
1224
1236
  }
1225
- return new x(r, i);
1237
+ return new v(r, i);
1226
1238
  }
1227
1239
  /**
1228
1240
  @internal
1229
1241
  */
1230
1242
  cutByIndex(e, t) {
1231
- return e == t ? x.empty : e == 0 && t == this.content.length ? this : new x(this.content.slice(e, t));
1243
+ return e == t ? v.empty : e == 0 && t == this.content.length ? this : new v(this.content.slice(e, t));
1232
1244
  }
1233
1245
  /**
1234
1246
  Create a new fragment in which the node at the given index is
@@ -1239,21 +1251,21 @@ class x {
1239
1251
  if (r == t)
1240
1252
  return this;
1241
1253
  let i = this.content.slice(), s = this.size + t.nodeSize - r.nodeSize;
1242
- return i[e] = t, new x(i, s);
1254
+ return i[e] = t, new v(i, s);
1243
1255
  }
1244
1256
  /**
1245
1257
  Create a new fragment by prepending the given node to this
1246
1258
  fragment.
1247
1259
  */
1248
1260
  addToStart(e) {
1249
- return new x([e].concat(this.content), this.size + e.nodeSize);
1261
+ return new v([e].concat(this.content), this.size + e.nodeSize);
1250
1262
  }
1251
1263
  /**
1252
1264
  Create a new fragment by appending the given node to this
1253
1265
  fragment.
1254
1266
  */
1255
1267
  addToEnd(e) {
1256
- return new x(this.content.concat(e), this.size + e.nodeSize);
1268
+ return new v(this.content.concat(e), this.size + e.nodeSize);
1257
1269
  }
1258
1270
  /**
1259
1271
  Compare this fragment to another one.
@@ -1315,7 +1327,7 @@ class x {
1315
1327
  fragment differ, or `null` if they are the same.
1316
1328
  */
1317
1329
  findDiffStart(e, t = 0) {
1318
- return Za(this, e, t);
1330
+ return Qa(this, e, t);
1319
1331
  }
1320
1332
  /**
1321
1333
  Find the first position, searching from the end, at which this
@@ -1324,7 +1336,7 @@ class x {
1324
1336
  nodes, an object with two separate positions is returned.
1325
1337
  */
1326
1338
  findDiffEnd(e, t = this.size, r = e.size) {
1327
- return ec(this, e, t, r);
1339
+ return Za(this, e, t, r);
1328
1340
  }
1329
1341
  /**
1330
1342
  Find the index and inner offset corresponding to a given relative
@@ -1368,10 +1380,10 @@ class x {
1368
1380
  */
1369
1381
  static fromJSON(e, t) {
1370
1382
  if (!t)
1371
- return x.empty;
1383
+ return v.empty;
1372
1384
  if (!Array.isArray(t))
1373
1385
  throw new RangeError("Invalid input for Fragment.fromJSON");
1374
- return new x(t.map(e.nodeFromJSON));
1386
+ return new v(t.map(e.nodeFromJSON));
1375
1387
  }
1376
1388
  /**
1377
1389
  Build a fragment from an array of nodes. Ensures that adjacent
@@ -1379,13 +1391,13 @@ class x {
1379
1391
  */
1380
1392
  static fromArray(e) {
1381
1393
  if (!e.length)
1382
- return x.empty;
1394
+ return v.empty;
1383
1395
  let t, r = 0;
1384
1396
  for (let i = 0; i < e.length; i++) {
1385
1397
  let s = e[i];
1386
1398
  r += s.nodeSize, i && s.isText && e[i - 1].sameMarkup(s) ? (t || (t = e.slice(0, i)), t[t.length - 1] = s.withText(t[t.length - 1].text + s.text)) : t && t.push(s);
1387
1399
  }
1388
- return new x(t || e, r);
1400
+ return new v(t || e, r);
1389
1401
  }
1390
1402
  /**
1391
1403
  Create a fragment from something that can be interpreted as a
@@ -1395,17 +1407,17 @@ class x {
1395
1407
  */
1396
1408
  static from(e) {
1397
1409
  if (!e)
1398
- return x.empty;
1399
- if (e instanceof x)
1410
+ return v.empty;
1411
+ if (e instanceof v)
1400
1412
  return e;
1401
1413
  if (Array.isArray(e))
1402
1414
  return this.fromArray(e);
1403
1415
  if (e.attrs)
1404
- return new x([e], e.nodeSize);
1416
+ return new v([e], e.nodeSize);
1405
1417
  throw new RangeError("Can not convert " + e + " to a Fragment" + (e.nodesBetween ? " (looks like multiple versions of prosemirror-model were loaded)" : ""));
1406
1418
  }
1407
1419
  }
1408
- x.empty = new x([], 0);
1420
+ v.empty = new v([], 0);
1409
1421
  const Vi = { index: 0, offset: 0 };
1410
1422
  function fr(n, e) {
1411
1423
  return Vi.index = n, Vi.offset = e, Vi;
@@ -1434,7 +1446,7 @@ function Nr(n, e) {
1434
1446
  }
1435
1447
  return !0;
1436
1448
  }
1437
- let K = class xs {
1449
+ let K = class vs {
1438
1450
  /**
1439
1451
  @internal
1440
1452
  */
@@ -1532,8 +1544,8 @@ let K = class xs {
1532
1544
  */
1533
1545
  static setFrom(e) {
1534
1546
  if (!e || Array.isArray(e) && e.length == 0)
1535
- return xs.none;
1536
- if (e instanceof xs)
1547
+ return vs.none;
1548
+ if (e instanceof vs)
1537
1549
  return [e];
1538
1550
  let t = e.slice();
1539
1551
  return t.sort((r, i) => r.type.rank - i.type.rank), t;
@@ -1568,14 +1580,14 @@ class E {
1568
1580
  @internal
1569
1581
  */
1570
1582
  insertAt(e, t) {
1571
- let r = nc(this.content, e + this.openStart, t);
1583
+ let r = tc(this.content, e + this.openStart, t);
1572
1584
  return r && new E(r, this.openStart, this.openEnd);
1573
1585
  }
1574
1586
  /**
1575
1587
  @internal
1576
1588
  */
1577
1589
  removeBetween(e, t) {
1578
- return new E(tc(this.content, e + this.openStart, t + this.openStart), this.openStart, this.openEnd);
1590
+ return new E(ec(this.content, e + this.openStart, t + this.openStart), this.openStart, this.openEnd);
1579
1591
  }
1580
1592
  /**
1581
1593
  Tests whether this slice is equal to another slice.
@@ -1607,7 +1619,7 @@ class E {
1607
1619
  let r = t.openStart || 0, i = t.openEnd || 0;
1608
1620
  if (typeof r != "number" || typeof i != "number")
1609
1621
  throw new RangeError("Invalid input for Slice.fromJSON");
1610
- return new E(x.fromJSON(e, t.content), r, i);
1622
+ return new E(v.fromJSON(e, t.content), r, i);
1611
1623
  }
1612
1624
  /**
1613
1625
  Create a slice from a fragment by taking the maximum possible
@@ -1622,8 +1634,8 @@ class E {
1622
1634
  return new E(e, r, i);
1623
1635
  }
1624
1636
  }
1625
- E.empty = new E(x.empty, 0, 0);
1626
- function tc(n, e, t) {
1637
+ E.empty = new E(v.empty, 0, 0);
1638
+ function ec(n, e, t) {
1627
1639
  let { index: r, offset: i } = n.findIndex(e), s = n.maybeChild(r), { index: o, offset: l } = n.findIndex(t);
1628
1640
  if (i == e || s.isText) {
1629
1641
  if (l != t && !n.child(o).isText)
@@ -1632,13 +1644,13 @@ function tc(n, e, t) {
1632
1644
  }
1633
1645
  if (r != o)
1634
1646
  throw new RangeError("Removing non-flat range");
1635
- return n.replaceChild(r, s.copy(tc(s.content, e - i - 1, t - i - 1)));
1647
+ return n.replaceChild(r, s.copy(ec(s.content, e - i - 1, t - i - 1)));
1636
1648
  }
1637
- function nc(n, e, t, r) {
1649
+ function tc(n, e, t, r) {
1638
1650
  let { index: i, offset: s } = n.findIndex(e), o = n.maybeChild(i);
1639
1651
  if (s == e || o.isText)
1640
1652
  return n.cut(0, e).append(t).append(n.cut(e));
1641
- let l = nc(o.content, e - s - 1, t);
1653
+ let l = tc(o.content, e - s - 1, t);
1642
1654
  return l && n.replaceChild(i, o.copy(l));
1643
1655
  }
1644
1656
  function jf(n, e, t) {
@@ -1646,12 +1658,12 @@ function jf(n, e, t) {
1646
1658
  throw new Ir("Inserted content deeper than insertion position");
1647
1659
  if (n.depth - t.openStart != e.depth - t.openEnd)
1648
1660
  throw new Ir("Inconsistent open depths");
1649
- return rc(n, e, t, 0);
1661
+ return nc(n, e, t, 0);
1650
1662
  }
1651
- function rc(n, e, t, r) {
1663
+ function nc(n, e, t, r) {
1652
1664
  let i = n.index(r), s = n.node(r);
1653
1665
  if (i == e.index(r) && r < n.depth - t.openStart) {
1654
- let o = rc(n, e, t, r + 1);
1666
+ let o = nc(n, e, t, r + 1);
1655
1667
  return s.copy(s.content.replaceChild(i, o));
1656
1668
  } else if (t.content.size)
1657
1669
  if (!t.openStart && !t.openEnd && n.depth == r && e.depth == r) {
@@ -1659,17 +1671,17 @@ function rc(n, e, t, r) {
1659
1671
  return jt(o, l.cut(0, n.parentOffset).append(t.content).append(l.cut(e.parentOffset)));
1660
1672
  } else {
1661
1673
  let { start: o, end: l } = _f(t, n);
1662
- return jt(s, sc(n, o, l, e, r));
1674
+ return jt(s, ic(n, o, l, e, r));
1663
1675
  }
1664
1676
  else return jt(s, Dr(n, e, r));
1665
1677
  }
1666
- function ic(n, e) {
1678
+ function rc(n, e) {
1667
1679
  if (!e.type.compatibleContent(n.type))
1668
1680
  throw new Ir("Cannot join " + e.type.name + " onto " + n.type.name);
1669
1681
  }
1670
1682
  function ws(n, e, t) {
1671
1683
  let r = n.node(t);
1672
- return ic(r, e.node(t)), r;
1684
+ return rc(r, e.node(t)), r;
1673
1685
  }
1674
1686
  function Vt(n, e) {
1675
1687
  let t = e.length - 1;
@@ -1685,9 +1697,9 @@ function An(n, e, t, r) {
1685
1697
  function jt(n, e) {
1686
1698
  return n.type.checkContent(e), n.copy(e);
1687
1699
  }
1688
- function sc(n, e, t, r, i) {
1700
+ function ic(n, e, t, r, i) {
1689
1701
  let s = n.depth > i && ws(n, e, i + 1), o = r.depth > i && ws(t, r, i + 1), l = [];
1690
- return An(null, n, i, l), s && o && e.index(i) == t.index(i) ? (ic(s, o), Vt(jt(s, sc(n, e, t, r, i + 1)), l)) : (s && Vt(jt(s, Dr(n, e, i + 1)), l), An(e, t, i, l), o && Vt(jt(o, Dr(t, r, i + 1)), l)), An(r, null, i, l), new x(l);
1702
+ return An(null, n, i, l), s && o && e.index(i) == t.index(i) ? (rc(s, o), Vt(jt(s, ic(n, e, t, r, i + 1)), l)) : (s && Vt(jt(s, Dr(n, e, i + 1)), l), An(e, t, i, l), o && Vt(jt(o, Dr(t, r, i + 1)), l)), An(r, null, i, l), new v(l);
1691
1703
  }
1692
1704
  function Dr(n, e, t) {
1693
1705
  let r = [];
@@ -1695,12 +1707,12 @@ function Dr(n, e, t) {
1695
1707
  let i = ws(n, e, t + 1);
1696
1708
  Vt(jt(i, Dr(n, e, t + 1)), r);
1697
1709
  }
1698
- return An(e, null, t, r), new x(r);
1710
+ return An(e, null, t, r), new v(r);
1699
1711
  }
1700
1712
  function _f(n, e) {
1701
1713
  let t = e.depth - n.openStart, i = e.node(t).copy(n.content);
1702
1714
  for (let s = t - 1; s >= 0; s--)
1703
- i = e.node(s).copy(x.from(i));
1715
+ i = e.node(s).copy(v.from(i));
1704
1716
  return {
1705
1717
  start: i.resolveNoCache(n.openStart + t),
1706
1718
  end: i.resolveNoCache(i.content.size - n.openEnd - t)
@@ -2005,7 +2017,7 @@ let St = class Ss {
2005
2017
  @internal
2006
2018
  */
2007
2019
  constructor(e, t, r, i = K.none) {
2008
- this.type = e, this.attrs = t, this.marks = i, this.content = r || x.empty;
2020
+ this.type = e, this.attrs = t, this.marks = i, this.content = r || v.empty;
2009
2021
  }
2010
2022
  /**
2011
2023
  The array of this node's child nodes.
@@ -2276,7 +2288,7 @@ let St = class Ss {
2276
2288
  if (this.type.spec.toDebugString)
2277
2289
  return this.type.spec.toDebugString(this);
2278
2290
  let e = this.type.name;
2279
- return this.content.size && (e += "(" + this.content.toStringInner() + ")"), oc(this.marks, e);
2291
+ return this.content.size && (e += "(" + this.content.toStringInner() + ")"), sc(this.marks, e);
2280
2292
  }
2281
2293
  /**
2282
2294
  Get the content match in this node at the given index.
@@ -2294,7 +2306,7 @@ let St = class Ss {
2294
2306
  can optionally pass `start` and `end` indices into the
2295
2307
  replacement fragment.
2296
2308
  */
2297
- canReplace(e, t, r = x.empty, i = 0, s = r.childCount) {
2309
+ canReplace(e, t, r = v.empty, i = 0, s = r.childCount) {
2298
2310
  let o = this.contentMatchAt(e).matchFragment(r, i, s), l = o && o.matchFragment(this.content, t);
2299
2311
  if (!l || !l.validEnd)
2300
2312
  return !1;
@@ -2365,7 +2377,7 @@ let St = class Ss {
2365
2377
  throw new RangeError("Invalid text node in JSON");
2366
2378
  return e.text(t.text, r);
2367
2379
  }
2368
- let i = x.fromJSON(e, t.content), s = e.nodeType(t.type).create(t.attrs, i, r);
2380
+ let i = v.fromJSON(e, t.content), s = e.nodeType(t.type).create(t.attrs, i, r);
2369
2381
  return s.type.checkAttrs(s.attrs), s;
2370
2382
  }
2371
2383
  };
@@ -2380,7 +2392,7 @@ class Lr extends St {
2380
2392
  this.text = r;
2381
2393
  }
2382
2394
  toString() {
2383
- return this.type.spec.toDebugString ? this.type.spec.toDebugString(this) : oc(this.marks, JSON.stringify(this.text));
2395
+ return this.type.spec.toDebugString ? this.type.spec.toDebugString(this) : sc(this.marks, JSON.stringify(this.text));
2384
2396
  }
2385
2397
  get textContent() {
2386
2398
  return this.text;
@@ -2408,7 +2420,7 @@ class Lr extends St {
2408
2420
  return e.text = this.text, e;
2409
2421
  }
2410
2422
  }
2411
- function oc(n, e) {
2423
+ function sc(n, e) {
2412
2424
  for (let t = n.length - 1; t >= 0; t--)
2413
2425
  e = n[t].type.name + "(" + e + ")";
2414
2426
  return e;
@@ -2427,7 +2439,7 @@ class qt {
2427
2439
  let r = new qf(e, t);
2428
2440
  if (r.next == null)
2429
2441
  return qt.empty;
2430
- let i = lc(r);
2442
+ let i = oc(r);
2431
2443
  r.next && r.err("Unexpected trailing text");
2432
2444
  let s = eh(Zf(i));
2433
2445
  return th(s, r), s;
@@ -2493,7 +2505,7 @@ class qt {
2493
2505
  function s(o, l) {
2494
2506
  let a = o.matchFragment(e, r);
2495
2507
  if (a && (!t || a.validEnd))
2496
- return x.from(l.map((c) => c.createAndFill()));
2508
+ return v.from(l.map((c) => c.createAndFill()));
2497
2509
  for (let c = 0; c < o.next.length; c++) {
2498
2510
  let { type: u, next: d } = o.next[c];
2499
2511
  if (!(u.isText || u.hasRequiredAttrs()) && i.indexOf(d) == -1) {
@@ -2590,7 +2602,7 @@ class qf {
2590
2602
  throw new SyntaxError(e + " (in content expression '" + this.string + "')");
2591
2603
  }
2592
2604
  }
2593
- function lc(n) {
2605
+ function oc(n) {
2594
2606
  let e = [];
2595
2607
  do
2596
2608
  e.push(Jf(n));
@@ -2641,7 +2653,7 @@ function Xf(n, e) {
2641
2653
  }
2642
2654
  function Qf(n) {
2643
2655
  if (n.eat("(")) {
2644
- let e = lc(n);
2656
+ let e = oc(n);
2645
2657
  return n.eat(")") || n.err("Missing closing paren"), e;
2646
2658
  } else if (/\W/.test(n.next))
2647
2659
  n.err("Unexpected token '" + n.next + "'");
@@ -2704,12 +2716,12 @@ function Zf(n) {
2704
2716
  }
2705
2717
  }
2706
2718
  }
2707
- function ac(n, e) {
2719
+ function lc(n, e) {
2708
2720
  return e - n;
2709
2721
  }
2710
2722
  function cl(n, e) {
2711
2723
  let t = [];
2712
- return r(e), t.sort(ac);
2724
+ return r(e), t.sort(lc);
2713
2725
  function r(i) {
2714
2726
  let s = n[i];
2715
2727
  if (s.length == 1 && !s[0].term)
@@ -2740,7 +2752,7 @@ function eh(n) {
2740
2752
  });
2741
2753
  let s = e[r.join(",")] = new qt(r.indexOf(n.length - 1) > -1);
2742
2754
  for (let o = 0; o < i.length; o++) {
2743
- let l = i[o][1].sort(ac);
2755
+ let l = i[o][1].sort(lc);
2744
2756
  s.next.push({ type: i[o][0], next: e[l.join(",")] || t(l) });
2745
2757
  }
2746
2758
  return s;
@@ -2756,7 +2768,7 @@ function th(n, e) {
2756
2768
  s && e.err("Only non-generatable nodes (" + o.join(", ") + ") in a required position (see https://prosemirror.net/docs/guide/#generatable)");
2757
2769
  }
2758
2770
  }
2759
- function cc(n) {
2771
+ function ac(n) {
2760
2772
  let e = /* @__PURE__ */ Object.create(null);
2761
2773
  for (let t in n) {
2762
2774
  let r = n[t];
@@ -2766,7 +2778,7 @@ function cc(n) {
2766
2778
  }
2767
2779
  return e;
2768
2780
  }
2769
- function uc(n, e) {
2781
+ function cc(n, e) {
2770
2782
  let t = /* @__PURE__ */ Object.create(null);
2771
2783
  for (let r in n) {
2772
2784
  let i = e && e[r];
@@ -2781,7 +2793,7 @@ function uc(n, e) {
2781
2793
  }
2782
2794
  return t;
2783
2795
  }
2784
- function dc(n, e, t, r) {
2796
+ function uc(n, e, t, r) {
2785
2797
  for (let i in e)
2786
2798
  if (!(i in n))
2787
2799
  throw new RangeError(`Unsupported attribute ${i} for ${t} of type ${i}`);
@@ -2790,19 +2802,19 @@ function dc(n, e, t, r) {
2790
2802
  s.validate && s.validate(e[i]);
2791
2803
  }
2792
2804
  }
2793
- function fc(n, e) {
2805
+ function dc(n, e) {
2794
2806
  let t = /* @__PURE__ */ Object.create(null);
2795
2807
  if (e)
2796
2808
  for (let r in e)
2797
2809
  t[r] = new rh(n, r, e[r]);
2798
2810
  return t;
2799
2811
  }
2800
- let ul = class hc {
2812
+ let ul = class fc {
2801
2813
  /**
2802
2814
  @internal
2803
2815
  */
2804
2816
  constructor(e, t, r) {
2805
- this.name = e, this.schema = t, this.spec = r, this.markSet = null, this.groups = r.group ? r.group.split(" ") : [], this.attrs = fc(e, r.attrs), this.defaultAttrs = cc(this.attrs), this.contentMatch = null, this.inlineContent = null, this.isBlock = !(r.inline || e == "text"), this.isText = e == "text";
2817
+ this.name = e, this.schema = t, this.spec = r, this.markSet = null, this.groups = r.group ? r.group.split(" ") : [], this.attrs = dc(e, r.attrs), this.defaultAttrs = ac(this.attrs), this.contentMatch = null, this.inlineContent = null, this.isBlock = !(r.inline || e == "text"), this.isText = e == "text";
2806
2818
  }
2807
2819
  /**
2808
2820
  True if this is an inline type.
@@ -2863,7 +2875,7 @@ let ul = class hc {
2863
2875
  @internal
2864
2876
  */
2865
2877
  computeAttrs(e) {
2866
- return !e && this.defaultAttrs ? this.defaultAttrs : uc(this.attrs, e);
2878
+ return !e && this.defaultAttrs ? this.defaultAttrs : cc(this.attrs, e);
2867
2879
  }
2868
2880
  /**
2869
2881
  Create a `Node` of this type. The given attributes are
@@ -2876,7 +2888,7 @@ let ul = class hc {
2876
2888
  create(e = null, t, r) {
2877
2889
  if (this.isText)
2878
2890
  throw new Error("NodeType.create can't construct text nodes");
2879
- return new St(this, this.computeAttrs(e), x.from(t), K.setFrom(r));
2891
+ return new St(this, this.computeAttrs(e), v.from(t), K.setFrom(r));
2880
2892
  }
2881
2893
  /**
2882
2894
  Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but check the given content
@@ -2884,7 +2896,7 @@ let ul = class hc {
2884
2896
  if it doesn't match.
2885
2897
  */
2886
2898
  createChecked(e = null, t, r) {
2887
- return t = x.from(t), this.checkContent(t), new St(this, this.computeAttrs(e), t, K.setFrom(r));
2899
+ return t = v.from(t), this.checkContent(t), new St(this, this.computeAttrs(e), t, K.setFrom(r));
2888
2900
  }
2889
2901
  /**
2890
2902
  Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but see if it is
@@ -2895,13 +2907,13 @@ let ul = class hc {
2895
2907
  `Fragment.empty` as content.
2896
2908
  */
2897
2909
  createAndFill(e = null, t, r) {
2898
- if (e = this.computeAttrs(e), t = x.from(t), t.size) {
2910
+ if (e = this.computeAttrs(e), t = v.from(t), t.size) {
2899
2911
  let o = this.contentMatch.fillBefore(t);
2900
2912
  if (!o)
2901
2913
  return null;
2902
2914
  t = o.append(t);
2903
2915
  }
2904
- let i = this.contentMatch.matchFragment(t), s = i && i.fillBefore(x.empty, !0);
2916
+ let i = this.contentMatch.matchFragment(t), s = i && i.fillBefore(v.empty, !0);
2905
2917
  return s ? new St(this, e, t.append(s), K.setFrom(r)) : null;
2906
2918
  }
2907
2919
  /**
@@ -2930,7 +2942,7 @@ let ul = class hc {
2930
2942
  @internal
2931
2943
  */
2932
2944
  checkAttrs(e) {
2933
- dc(this.attrs, e, "node", this.name);
2945
+ uc(this.attrs, e, "node", this.name);
2934
2946
  }
2935
2947
  /**
2936
2948
  Check whether the given mark type is allowed in this node.
@@ -2965,7 +2977,7 @@ let ul = class hc {
2965
2977
  */
2966
2978
  static compile(e, t) {
2967
2979
  let r = /* @__PURE__ */ Object.create(null);
2968
- e.forEach((s, o) => r[s] = new hc(s, t, o));
2980
+ e.forEach((s, o) => r[s] = new fc(s, t, o));
2969
2981
  let i = t.spec.topNode || "doc";
2970
2982
  if (!r[i])
2971
2983
  throw new RangeError("Schema is missing its top node type ('" + i + "')");
@@ -2997,8 +3009,8 @@ class ki {
2997
3009
  @internal
2998
3010
  */
2999
3011
  constructor(e, t, r, i) {
3000
- this.name = e, this.rank = t, this.schema = r, this.spec = i, this.attrs = fc(e, i.attrs), this.excluded = null;
3001
- let s = cc(this.attrs);
3012
+ this.name = e, this.rank = t, this.schema = r, this.spec = i, this.attrs = dc(e, i.attrs), this.excluded = null;
3013
+ let s = ac(this.attrs);
3002
3014
  this.instance = s ? new K(this, s) : null;
3003
3015
  }
3004
3016
  /**
@@ -3007,7 +3019,7 @@ class ki {
3007
3019
  they have defaults, will be added.
3008
3020
  */
3009
3021
  create(e = null) {
3010
- return !e && this.instance ? this.instance : new K(this, uc(this.attrs, e));
3022
+ return !e && this.instance ? this.instance : new K(this, cc(this.attrs, e));
3011
3023
  }
3012
3024
  /**
3013
3025
  @internal
@@ -3037,7 +3049,7 @@ class ki {
3037
3049
  @internal
3038
3050
  */
3039
3051
  checkAttrs(e) {
3040
- dc(this.attrs, e, "mark", this.name);
3052
+ uc(this.attrs, e, "mark", this.name);
3041
3053
  }
3042
3054
  /**
3043
3055
  Queries whether a given mark type is
@@ -3047,7 +3059,7 @@ class ki {
3047
3059
  return this.excluded.indexOf(e) > -1;
3048
3060
  }
3049
3061
  }
3050
- class pc {
3062
+ class hc {
3051
3063
  /**
3052
3064
  Construct a schema from a schema [specification](https://prosemirror.net/docs/ref/#model.SchemaSpec).
3053
3065
  */
@@ -3253,7 +3265,7 @@ class Ct {
3253
3265
  return e.cached.domParser || (e.cached.domParser = new Ct(e, Ct.schemaRules(e)));
3254
3266
  }
3255
3267
  }
3256
- const mc = {
3268
+ const pc = {
3257
3269
  address: !0,
3258
3270
  article: !0,
3259
3271
  aside: !0,
@@ -3293,7 +3305,7 @@ const mc = {
3293
3305
  script: !0,
3294
3306
  style: !0,
3295
3307
  title: !0
3296
- }, gc = { ol: !0, ul: !0 }, jn = 1, Cs = 2, Nn = 4;
3308
+ }, mc = { ol: !0, ul: !0 }, jn = 1, Cs = 2, Nn = 4;
3297
3309
  function fl(n, e, t) {
3298
3310
  return e != null ? (e ? jn : 0) | (e === "full" ? Cs : 0) : n && n.whitespace == "pre" ? jn | Cs : t & ~Nn;
3299
3311
  }
@@ -3305,7 +3317,7 @@ class hr {
3305
3317
  if (!this.match) {
3306
3318
  if (!this.type)
3307
3319
  return [];
3308
- let t = this.type.contentMatch.fillBefore(x.from(e));
3320
+ let t = this.type.contentMatch.fillBefore(v.from(e));
3309
3321
  if (t)
3310
3322
  this.match = this.type.contentMatch.matchFragment(t);
3311
3323
  else {
@@ -3323,11 +3335,11 @@ class hr {
3323
3335
  r.text.length == i[0].length ? this.content.pop() : this.content[this.content.length - 1] = s.withText(s.text.slice(0, s.text.length - i[0].length));
3324
3336
  }
3325
3337
  }
3326
- let t = x.from(this.content);
3327
- return !e && this.match && (t = t.append(this.match.fillBefore(x.empty, !0))), this.type ? this.type.create(this.attrs, t, this.marks) : t;
3338
+ let t = v.from(this.content);
3339
+ return !e && this.match && (t = t.append(this.match.fillBefore(v.empty, !0))), this.type ? this.type.create(this.attrs, t, this.marks) : t;
3328
3340
  }
3329
3341
  inlineContext(e) {
3330
- return this.type ? this.type.inlineContent : this.content.length ? this.content[0].isInline : e.parentNode && !mc.hasOwnProperty(e.parentNode.nodeName.toLowerCase());
3342
+ return this.type ? this.type.inlineContent : this.content.length ? this.content[0].isInline : e.parentNode && !pc.hasOwnProperty(e.parentNode.nodeName.toLowerCase());
3331
3343
  }
3332
3344
  }
3333
3345
  class hl {
@@ -3365,14 +3377,14 @@ class hl {
3365
3377
  let i = this.localPreserveWS, s = this.top;
3366
3378
  (e.tagName == "PRE" || /pre/.test(e.style && e.style.whiteSpace)) && (this.localPreserveWS = !0);
3367
3379
  let o = e.nodeName.toLowerCase(), l;
3368
- gc.hasOwnProperty(o) && this.parser.normalizeLists && lh(e);
3380
+ mc.hasOwnProperty(o) && this.parser.normalizeLists && lh(e);
3369
3381
  let a = this.options.ruleFromNode && this.options.ruleFromNode(e) || (l = this.parser.matchTag(e, this, r));
3370
3382
  e: if (a ? a.ignore : oh.hasOwnProperty(o))
3371
3383
  this.findInside(e), this.ignoreFallback(e, t);
3372
3384
  else if (!a || a.skip || a.closeParent) {
3373
3385
  a && a.closeParent ? this.open = Math.max(0, this.open - 1) : a && a.skip.nodeType && (e = a.skip);
3374
3386
  let c, u = this.needsBlock;
3375
- if (mc.hasOwnProperty(o))
3387
+ if (pc.hasOwnProperty(o))
3376
3388
  s.content.length && s.content[0].isInline && this.open && (this.open--, s = this.top), c = !0, s.type || (this.needsBlock = !0);
3377
3389
  else if (!e.firstChild) {
3378
3390
  this.leafFallback(e, t);
@@ -3607,7 +3619,7 @@ class hl {
3607
3619
  function lh(n) {
3608
3620
  for (let e = n.firstChild, t = null; e; e = e.nextSibling) {
3609
3621
  let r = e.nodeType == 1 ? e.nodeName.toLowerCase() : null;
3610
- r && gc.hasOwnProperty(r) && t ? (t.appendChild(e), e = t) : r == "li" ? t = e : r && (t = null);
3622
+ r && mc.hasOwnProperty(r) && t ? (t.appendChild(e), e = t) : r == "li" ? t = e : r && (t = null);
3611
3623
  }
3612
3624
  }
3613
3625
  function ah(n, e) {
@@ -3813,17 +3825,17 @@ function Cr(n, e, t, r) {
3813
3825
  }
3814
3826
  return { dom: a, contentDOM: l };
3815
3827
  }
3816
- const yc = 65535, bc = Math.pow(2, 16);
3828
+ const gc = 65535, yc = Math.pow(2, 16);
3817
3829
  function dh(n, e) {
3818
- return n + e * bc;
3830
+ return n + e * yc;
3819
3831
  }
3820
3832
  function bl(n) {
3821
- return n & yc;
3833
+ return n & gc;
3822
3834
  }
3823
3835
  function fh(n) {
3824
- return (n - (n & yc)) / bc;
3836
+ return (n - (n & gc)) / yc;
3825
3837
  }
3826
- const kc = 1, vc = 2, Mr = 4, xc = 8;
3838
+ const bc = 1, kc = 2, Mr = 4, xc = 8;
3827
3839
  class Ms {
3828
3840
  /**
3829
3841
  @internal
@@ -3843,13 +3855,13 @@ class Ms {
3843
3855
  Tells you whether the token before the mapped position was deleted.
3844
3856
  */
3845
3857
  get deletedBefore() {
3846
- return (this.delInfo & (kc | Mr)) > 0;
3858
+ return (this.delInfo & (bc | Mr)) > 0;
3847
3859
  }
3848
3860
  /**
3849
3861
  True when the token after the mapped position was deleted.
3850
3862
  */
3851
3863
  get deletedAfter() {
3852
- return (this.delInfo & (vc | Mr)) > 0;
3864
+ return (this.delInfo & (kc | Mr)) > 0;
3853
3865
  }
3854
3866
  /**
3855
3867
  Tells whether any of the steps mapped through deletes across the
@@ -3900,7 +3912,7 @@ class Oe {
3900
3912
  let f = c ? e == a ? -1 : e == d ? 1 : t : t, h = a + i + (f < 0 ? 0 : u);
3901
3913
  if (r)
3902
3914
  return h;
3903
- let p = e == (t < 0 ? a : d) ? null : dh(l / 3, e - a), m = e == a ? vc : e == d ? kc : Mr;
3915
+ let p = e == (t < 0 ? a : d) ? null : dh(l / 3, e - a), m = e == a ? kc : e == d ? bc : Mr;
3904
3916
  return (t < 0 ? e != a : e != d) && (m |= xc), new Ms(h, m, p);
3905
3917
  }
3906
3918
  i += u - c;
@@ -4146,7 +4158,7 @@ function Zs(n, e, t) {
4146
4158
  let s = n.child(i);
4147
4159
  s.content.size && (s = s.copy(Zs(s.content, e, s))), s.isInline && (s = e(s, t, i)), r.push(s);
4148
4160
  }
4149
- return x.fromArray(r);
4161
+ return v.fromArray(r);
4150
4162
  }
4151
4163
  class kt extends ke {
4152
4164
  /**
@@ -4226,7 +4238,7 @@ class Ye extends ke {
4226
4238
  }
4227
4239
  }
4228
4240
  ke.jsonID("removeMark", Ye);
4229
- class vt extends ke {
4241
+ class xt extends ke {
4230
4242
  /**
4231
4243
  Create a node mark step.
4232
4244
  */
@@ -4238,7 +4250,7 @@ class vt extends ke {
4238
4250
  if (!t)
4239
4251
  return te.fail("No node at mark step's position");
4240
4252
  let r = t.type.create(t.attrs, null, this.mark.addToSet(t.marks));
4241
- return te.fromReplace(e, this.pos, this.pos + 1, new E(x.from(r), 0, t.isLeaf ? 0 : 1));
4253
+ return te.fromReplace(e, this.pos, this.pos + 1, new E(v.from(r), 0, t.isLeaf ? 0 : 1));
4242
4254
  }
4243
4255
  invert(e) {
4244
4256
  let t = e.nodeAt(this.pos);
@@ -4247,15 +4259,15 @@ class vt extends ke {
4247
4259
  if (r.length == t.marks.length) {
4248
4260
  for (let i = 0; i < t.marks.length; i++)
4249
4261
  if (!t.marks[i].isInSet(r))
4250
- return new vt(this.pos, t.marks[i]);
4251
- return new vt(this.pos, this.mark);
4262
+ return new xt(this.pos, t.marks[i]);
4263
+ return new xt(this.pos, this.mark);
4252
4264
  }
4253
4265
  }
4254
4266
  return new Jt(this.pos, this.mark);
4255
4267
  }
4256
4268
  map(e) {
4257
4269
  let t = e.mapResult(this.pos, 1);
4258
- return t.deletedAfter ? null : new vt(t.pos, this.mark);
4270
+ return t.deletedAfter ? null : new xt(t.pos, this.mark);
4259
4271
  }
4260
4272
  toJSON() {
4261
4273
  return { stepType: "addNodeMark", pos: this.pos, mark: this.mark.toJSON() };
@@ -4266,10 +4278,10 @@ class vt extends ke {
4266
4278
  static fromJSON(e, t) {
4267
4279
  if (typeof t.pos != "number")
4268
4280
  throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");
4269
- return new vt(t.pos, e.markFromJSON(t.mark));
4281
+ return new xt(t.pos, e.markFromJSON(t.mark));
4270
4282
  }
4271
4283
  }
4272
- ke.jsonID("addNodeMark", vt);
4284
+ ke.jsonID("addNodeMark", xt);
4273
4285
  class Jt extends ke {
4274
4286
  /**
4275
4287
  Create a mark-removing step.
@@ -4282,11 +4294,11 @@ class Jt extends ke {
4282
4294
  if (!t)
4283
4295
  return te.fail("No node at mark step's position");
4284
4296
  let r = t.type.create(t.attrs, null, this.mark.removeFromSet(t.marks));
4285
- return te.fromReplace(e, this.pos, this.pos + 1, new E(x.from(r), 0, t.isLeaf ? 0 : 1));
4297
+ return te.fromReplace(e, this.pos, this.pos + 1, new E(v.from(r), 0, t.isLeaf ? 0 : 1));
4286
4298
  }
4287
4299
  invert(e) {
4288
4300
  let t = e.nodeAt(this.pos);
4289
- return !t || !this.mark.isInSet(t.marks) ? this : new vt(this.pos, this.mark);
4301
+ return !t || !this.mark.isInSet(t.marks) ? this : new xt(this.pos, this.mark);
4290
4302
  }
4291
4303
  map(e) {
4292
4304
  let t = e.mapResult(this.pos, 1);
@@ -4481,13 +4493,13 @@ function eo(n, e, t, r = t.contentMatch, i = !0) {
4481
4493
  if (i && c.isText && t.whitespace != "pre") {
4482
4494
  let f, h = /\r?\n|\r/g, p;
4483
4495
  for (; f = h.exec(c.text); )
4484
- p || (p = new E(x.from(t.schema.text(" ", t.allowedMarks(c.marks))), 0, 0)), o.push(new oe(l + f.index, l + f.index + f[0].length, p));
4496
+ p || (p = new E(v.from(t.schema.text(" ", t.allowedMarks(c.marks))), 0, 0)), o.push(new oe(l + f.index, l + f.index + f[0].length, p));
4485
4497
  }
4486
4498
  }
4487
4499
  l = u;
4488
4500
  }
4489
4501
  if (!r.validEnd) {
4490
- let a = r.fillBefore(x.empty, !0);
4502
+ let a = r.fillBefore(v.empty, !0);
4491
4503
  n.replace(l, l, new E(a, 0, 0));
4492
4504
  }
4493
4505
  for (let a = o.length - 1; a >= 0; a--)
@@ -4508,12 +4520,12 @@ function kn(n) {
4508
4520
  return null;
4509
4521
  }
4510
4522
  function gh(n, e, t) {
4511
- let { $from: r, $to: i, depth: s } = e, o = r.before(s + 1), l = i.after(s + 1), a = o, c = l, u = x.empty, d = 0;
4523
+ let { $from: r, $to: i, depth: s } = e, o = r.before(s + 1), l = i.after(s + 1), a = o, c = l, u = v.empty, d = 0;
4512
4524
  for (let p = s, m = !1; p > t; p--)
4513
- m || r.index(p) > 0 ? (m = !0, u = x.from(r.node(p).copy(u)), d++) : a--;
4514
- let f = x.empty, h = 0;
4525
+ m || r.index(p) > 0 ? (m = !0, u = v.from(r.node(p).copy(u)), d++) : a--;
4526
+ let f = v.empty, h = 0;
4515
4527
  for (let p = s, m = !1; p > t; p--)
4516
- m || i.after(p + 1) < i.end(p) ? (m = !0, f = x.from(i.node(p).copy(f)), h++) : c++;
4528
+ m || i.after(p + 1) < i.end(p) ? (m = !0, f = v.from(i.node(p).copy(f)), h++) : c++;
4517
4529
  n.step(new le(a, c, o, l, new E(u.append(f), d, h), u.size - d, !0));
4518
4530
  }
4519
4531
  function to(n, e, t = null, r = n) {
@@ -4540,37 +4552,37 @@ function bh(n, e) {
4540
4552
  return !a || !a.validEnd ? null : o;
4541
4553
  }
4542
4554
  function kh(n, e, t) {
4543
- let r = x.empty;
4555
+ let r = v.empty;
4544
4556
  for (let o = t.length - 1; o >= 0; o--) {
4545
4557
  if (r.size) {
4546
4558
  let l = t[o].type.contentMatch.matchFragment(r);
4547
4559
  if (!l || !l.validEnd)
4548
4560
  throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper");
4549
4561
  }
4550
- r = x.from(t[o].type.create(t[o].attrs, r));
4562
+ r = v.from(t[o].type.create(t[o].attrs, r));
4551
4563
  }
4552
4564
  let i = e.start, s = e.end;
4553
4565
  n.step(new le(i, s, i, s, new E(r, 0, 0), t.length, !0));
4554
4566
  }
4555
- function vh(n, e, t, r, i) {
4567
+ function xh(n, e, t, r, i) {
4556
4568
  if (!r.isTextblock)
4557
4569
  throw new RangeError("Type given to setBlockType should be a textblock");
4558
4570
  let s = n.steps.length;
4559
4571
  n.doc.nodesBetween(e, t, (o, l) => {
4560
4572
  let a = typeof i == "function" ? i(o) : i;
4561
- if (o.isTextblock && !o.hasMarkup(r, a) && xh(n.doc, n.mapping.slice(s).map(l), r)) {
4573
+ if (o.isTextblock && !o.hasMarkup(r, a) && vh(n.doc, n.mapping.slice(s).map(l), r)) {
4562
4574
  let c = null;
4563
4575
  if (r.schema.linebreakReplacement) {
4564
4576
  let h = r.whitespace == "pre", p = !!r.contentMatch.matchType(r.schema.linebreakReplacement);
4565
4577
  h && !p ? c = !1 : !h && p && (c = !0);
4566
4578
  }
4567
- c === !1 && Sc(n, o, l, s), eo(n, n.mapping.slice(s).map(l, 1), r, void 0, c === null);
4579
+ c === !1 && wc(n, o, l, s), eo(n, n.mapping.slice(s).map(l, 1), r, void 0, c === null);
4568
4580
  let u = n.mapping.slice(s), d = u.map(l, 1), f = u.map(l + o.nodeSize, 1);
4569
- return n.step(new le(d, f, d + 1, f - 1, new E(x.from(r.create(a, null, o.marks)), 0, 0), 1, !0)), c === !0 && wc(n, o, l, s), !1;
4581
+ return n.step(new le(d, f, d + 1, f - 1, new E(v.from(r.create(a, null, o.marks)), 0, 0), 1, !0)), c === !0 && vc(n, o, l, s), !1;
4570
4582
  }
4571
4583
  });
4572
4584
  }
4573
- function wc(n, e, t, r) {
4585
+ function vc(n, e, t, r) {
4574
4586
  e.forEach((i, s) => {
4575
4587
  if (i.isText) {
4576
4588
  let o, l = /\r?\n|\r/g;
@@ -4581,7 +4593,7 @@ function wc(n, e, t, r) {
4581
4593
  }
4582
4594
  });
4583
4595
  }
4584
- function Sc(n, e, t, r) {
4596
+ function wc(n, e, t, r) {
4585
4597
  e.forEach((i, s) => {
4586
4598
  if (i.type == i.type.schema.linebreakReplacement) {
4587
4599
  let o = n.mapping.slice(r).map(t + 1 + s);
@@ -4590,7 +4602,7 @@ function Sc(n, e, t, r) {
4590
4602
  }
4591
4603
  });
4592
4604
  }
4593
- function xh(n, e, t) {
4605
+ function vh(n, e, t) {
4594
4606
  let r = n.resolve(e), i = r.index();
4595
4607
  return r.parent.canReplaceWith(i, i + 1, t);
4596
4608
  }
@@ -4604,7 +4616,7 @@ function wh(n, e, t, r, i) {
4604
4616
  return n.replaceWith(e, e + s.nodeSize, o);
4605
4617
  if (!t.validContent(s.content))
4606
4618
  throw new RangeError("Invalid content for node type " + t.name);
4607
- n.step(new le(e, e + s.nodeSize, e + 1, e + s.nodeSize - 1, new E(x.from(o), 0, 0), 1, !0));
4619
+ n.step(new le(e, e + s.nodeSize, e + 1, e + s.nodeSize - 1, new E(v.from(o), 0, 0), 1, !0));
4608
4620
  }
4609
4621
  function ut(n, e, t = 1, r) {
4610
4622
  let i = n.resolve(e), s = i.depth - t, o = r && r[r.length - 1] || i.parent;
@@ -4624,17 +4636,17 @@ function ut(n, e, t = 1, r) {
4624
4636
  return i.node(s).canReplaceWith(l, l, a ? a.type : i.node(s + 1).type);
4625
4637
  }
4626
4638
  function Sh(n, e, t = 1, r) {
4627
- let i = n.doc.resolve(e), s = x.empty, o = x.empty;
4639
+ let i = n.doc.resolve(e), s = v.empty, o = v.empty;
4628
4640
  for (let l = i.depth, a = i.depth - t, c = t - 1; l > a; l--, c--) {
4629
- s = x.from(i.node(l).copy(s));
4641
+ s = v.from(i.node(l).copy(s));
4630
4642
  let u = r && r[c];
4631
- o = x.from(u ? u.type.create(u.attrs, o) : i.node(l).copy(o));
4643
+ o = v.from(u ? u.type.create(u.attrs, o) : i.node(l).copy(o));
4632
4644
  }
4633
4645
  n.step(new oe(e, e, new E(s.append(o), t, t), !0));
4634
4646
  }
4635
4647
  function At(n, e) {
4636
4648
  let t = n.resolve(e), r = t.index();
4637
- return Cc(t.nodeBefore, t.nodeAfter) && t.parent.canReplace(r, r + 1);
4649
+ return Sc(t.nodeBefore, t.nodeAfter) && t.parent.canReplace(r, r + 1);
4638
4650
  }
4639
4651
  function Ch(n, e) {
4640
4652
  e.content.size || n.type.compatibleContent(e.type);
@@ -4646,14 +4658,14 @@ function Ch(n, e) {
4646
4658
  }
4647
4659
  return t.validEnd;
4648
4660
  }
4649
- function Cc(n, e) {
4661
+ function Sc(n, e) {
4650
4662
  return !!(n && e && !n.isLeaf && Ch(n, e));
4651
4663
  }
4652
- function vi(n, e, t = -1) {
4664
+ function xi(n, e, t = -1) {
4653
4665
  let r = n.resolve(e);
4654
4666
  for (let i = r.depth; ; i--) {
4655
4667
  let s, o, l = r.index(i);
4656
- if (i == r.depth ? (s = r.nodeBefore, o = r.nodeAfter) : t > 0 ? (s = r.node(i + 1), l++, o = r.node(i).maybeChild(l)) : (s = r.node(i).maybeChild(l - 1), o = r.node(i + 1)), s && !s.isTextblock && Cc(s, o) && r.node(i).canReplace(l, l + 1))
4668
+ if (i == r.depth ? (s = r.nodeBefore, o = r.nodeAfter) : t > 0 ? (s = r.node(i + 1), l++, o = r.node(i).maybeChild(l)) : (s = r.node(i).maybeChild(l - 1), o = r.node(i + 1)), s && !s.isTextblock && Sc(s, o) && r.node(i).canReplace(l, l + 1))
4657
4669
  return e;
4658
4670
  if (i == 0)
4659
4671
  break;
@@ -4669,13 +4681,13 @@ function Mh(n, e, t) {
4669
4681
  let l = n.steps.length;
4670
4682
  if (r === !1) {
4671
4683
  let u = n.doc.resolve(e + t);
4672
- Sc(n, u.node(), u.before(), l);
4684
+ wc(n, u.node(), u.before(), l);
4673
4685
  }
4674
4686
  o.inlineContent && eo(n, e + t - 1, o, s.node().contentMatchAt(s.index()), r == null);
4675
4687
  let a = n.mapping.slice(l), c = a.map(e - t);
4676
4688
  if (n.step(new oe(c, a.map(e + t, -1), E.empty, !0)), r === !0) {
4677
4689
  let u = n.doc.resolve(c);
4678
- wc(n, u.node(), u.before(), n.steps.length);
4690
+ vc(n, u.node(), u.before(), n.steps.length);
4679
4691
  }
4680
4692
  return n;
4681
4693
  }
@@ -4701,7 +4713,7 @@ function Th(n, e, t) {
4701
4713
  }
4702
4714
  return null;
4703
4715
  }
4704
- function Mc(n, e, t) {
4716
+ function Cc(n, e, t) {
4705
4717
  let r = n.resolve(e);
4706
4718
  if (!t.content.size)
4707
4719
  return e;
@@ -4722,18 +4734,18 @@ function Mc(n, e, t) {
4722
4734
  }
4723
4735
  return null;
4724
4736
  }
4725
- function xi(n, e, t = e, r = E.empty) {
4737
+ function vi(n, e, t = e, r = E.empty) {
4726
4738
  if (e == t && !r.size)
4727
4739
  return null;
4728
4740
  let i = n.resolve(e), s = n.resolve(t);
4729
- return Tc(i, s, r) ? new oe(e, t, r) : new Eh(i, s, r).fit();
4741
+ return Mc(i, s, r) ? new oe(e, t, r) : new Eh(i, s, r).fit();
4730
4742
  }
4731
- function Tc(n, e, t) {
4743
+ function Mc(n, e, t) {
4732
4744
  return !t.openStart && !t.openEnd && n.start() == e.start() && n.parent.canReplace(n.index(), e.index(), t.content);
4733
4745
  }
4734
4746
  class Eh {
4735
4747
  constructor(e, t, r) {
4736
- this.$from = e, this.$to = t, this.unplaced = r, this.frontier = [], this.placed = x.empty;
4748
+ this.$from = e, this.$to = t, this.unplaced = r, this.frontier = [], this.placed = v.empty;
4737
4749
  for (let i = 0; i <= e.depth; i++) {
4738
4750
  let s = e.node(i);
4739
4751
  this.frontier.push({
@@ -4742,7 +4754,7 @@ class Eh {
4742
4754
  });
4743
4755
  }
4744
4756
  for (let i = e.depth; i > 0; i--)
4745
- this.placed = x.from(e.node(i).copy(this.placed));
4757
+ this.placed = v.from(e.node(i).copy(this.placed));
4746
4758
  }
4747
4759
  get depth() {
4748
4760
  return this.frontier.length - 1;
@@ -4781,7 +4793,7 @@ class Eh {
4781
4793
  let o = i.firstChild;
4782
4794
  for (let l = this.depth; l >= 0; l--) {
4783
4795
  let { type: a, match: c } = this.frontier[l], u, d = null;
4784
- if (t == 1 && (o ? c.matchType(o.type) || (d = c.fillBefore(x.from(o), !1)) : s && a.compatibleContent(s.type)))
4796
+ if (t == 1 && (o ? c.matchType(o.type) || (d = c.fillBefore(v.from(o), !1)) : s && a.compatibleContent(s.type)))
4785
4797
  return { sliceDepth: r, frontierDepth: l, parent: s, inject: d };
4786
4798
  if (t == 2 && o && (u = c.findWrapping(o.type)))
4787
4799
  return { sliceDepth: r, frontierDepth: l, parent: s, wrap: u };
@@ -4822,10 +4834,10 @@ class Eh {
4822
4834
  let m = l.child(c), y = d.matchType(m.type);
4823
4835
  if (!y)
4824
4836
  break;
4825
- c++, (c > 1 || a == 0 || m.content.size) && (d = y, u.push(Ec(m.mark(f.allowedMarks(m.marks)), c == 1 ? a : 0, c == l.childCount ? h : -1)));
4837
+ c++, (c > 1 || a == 0 || m.content.size) && (d = y, u.push(Tc(m.mark(f.allowedMarks(m.marks)), c == 1 ? a : 0, c == l.childCount ? h : -1)));
4826
4838
  }
4827
4839
  let p = c == l.childCount;
4828
- p || (h = -1), this.placed = Tn(this.placed, t, x.from(u)), this.frontier[t].match = d, p && h < 0 && r && r.type == this.frontier[this.depth].type && this.frontier.length > 1 && this.closeFrontierNode();
4840
+ p || (h = -1), this.placed = Tn(this.placed, t, v.from(u)), this.frontier[t].match = d, p && h < 0 && r && r.type == this.frontier[this.depth].type && this.frontier.length > 1 && this.closeFrontierNode();
4829
4841
  for (let m = 0, y = l; m < h; m++) {
4830
4842
  let b = y.lastChild;
4831
4843
  this.frontier.push({ type: b.type, match: b.contentMatchAt(b.childCount) }), y = b.content;
@@ -4871,10 +4883,10 @@ class Eh {
4871
4883
  }
4872
4884
  openFrontierNode(e, t = null, r) {
4873
4885
  let i = this.frontier[this.depth];
4874
- i.match = i.match.matchType(e), this.placed = Tn(this.placed, this.depth, x.from(e.create(t, r))), this.frontier.push({ type: e, match: e.contentMatch });
4886
+ i.match = i.match.matchType(e), this.placed = Tn(this.placed, this.depth, v.from(e.create(t, r))), this.frontier.push({ type: e, match: e.contentMatch });
4875
4887
  }
4876
4888
  closeFrontierNode() {
4877
- let t = this.frontier.pop().match.fillBefore(x.empty, !0);
4889
+ let t = this.frontier.pop().match.fillBefore(v.empty, !0);
4878
4890
  t.childCount && (this.placed = Tn(this.placed, this.frontier.length, t));
4879
4891
  }
4880
4892
  }
@@ -4889,11 +4901,11 @@ function Wi(n, e) {
4889
4901
  n = n.firstChild.content;
4890
4902
  return n;
4891
4903
  }
4892
- function Ec(n, e, t) {
4904
+ function Tc(n, e, t) {
4893
4905
  if (e <= 0)
4894
4906
  return n;
4895
4907
  let r = n.content;
4896
- return e > 1 && (r = r.replaceChild(0, Ec(r.firstChild, e - 1, r.childCount == 1 ? t - 1 : 0))), e > 0 && (r = n.type.contentMatch.fillBefore(r).append(r), t <= 0 && (r = r.append(n.type.contentMatch.matchFragment(r).fillBefore(x.empty, !0)))), n.copy(r);
4908
+ return e > 1 && (r = r.replaceChild(0, Tc(r.firstChild, e - 1, r.childCount == 1 ? t - 1 : 0))), e > 0 && (r = n.type.contentMatch.fillBefore(r).append(r), t <= 0 && (r = r.append(n.type.contentMatch.matchFragment(r).fillBefore(v.empty, !0)))), n.copy(r);
4897
4909
  }
4898
4910
  function Ki(n, e, t, r, i) {
4899
4911
  let s = n.node(e), o = i ? n.indexAfter(e) : n.index(e);
@@ -4915,9 +4927,9 @@ function Nh(n, e, t, r) {
4915
4927
  if (!r.size)
4916
4928
  return n.deleteRange(e, t);
4917
4929
  let i = n.doc.resolve(e), s = n.doc.resolve(t);
4918
- if (Tc(i, s, r))
4930
+ if (Mc(i, s, r))
4919
4931
  return n.step(new oe(e, t, r));
4920
- let o = Ac(i, n.doc.resolve(t));
4932
+ let o = Oc(i, n.doc.resolve(t));
4921
4933
  o[o.length - 1] == 0 && o.pop();
4922
4934
  let l = -(i.depth + 1);
4923
4935
  o.unshift(l);
@@ -4949,7 +4961,7 @@ function Nh(n, e, t, r) {
4949
4961
  y < 0 && (b = !1, y = -y);
4950
4962
  let C = i.node(y - 1), M = i.index(y - 1);
4951
4963
  if (C.canReplaceWith(M, M, p.type, p.marks))
4952
- return n.replace(i.before(y), b ? s.after(y) : t, new E(Oc(r.content, 0, r.openStart, h), h, r.openEnd));
4964
+ return n.replace(i.before(y), b ? s.after(y) : t, new E(Ec(r.content, 0, r.openStart, h), h, r.openEnd));
4953
4965
  }
4954
4966
  }
4955
4967
  let d = n.steps.length;
@@ -4958,14 +4970,14 @@ function Nh(n, e, t, r) {
4958
4970
  h < 0 || (e = i.before(h), t = s.after(h));
4959
4971
  }
4960
4972
  }
4961
- function Oc(n, e, t, r, i) {
4973
+ function Ec(n, e, t, r, i) {
4962
4974
  if (e < t) {
4963
4975
  let s = n.firstChild;
4964
- n = n.replaceChild(0, s.copy(Oc(s.content, e + 1, t, r, s)));
4976
+ n = n.replaceChild(0, s.copy(Ec(s.content, e + 1, t, r, s)));
4965
4977
  }
4966
4978
  if (e > r) {
4967
4979
  let s = i.contentMatchAt(0), o = s.fillBefore(n).append(n);
4968
- n = o.append(s.matchFragment(o).fillBefore(x.empty, !0));
4980
+ n = o.append(s.matchFragment(o).fillBefore(v.empty, !0));
4969
4981
  }
4970
4982
  return n;
4971
4983
  }
@@ -4974,10 +4986,10 @@ function Ih(n, e, t, r) {
4974
4986
  let i = Th(n.doc, e, r.type);
4975
4987
  i != null && (e = t = i);
4976
4988
  }
4977
- n.replaceRange(e, t, new E(x.from(r), 0, 0));
4989
+ n.replaceRange(e, t, new E(v.from(r), 0, 0));
4978
4990
  }
4979
4991
  function Dh(n, e, t) {
4980
- let r = n.doc.resolve(e), i = n.doc.resolve(t), s = Ac(r, i);
4992
+ let r = n.doc.resolve(e), i = n.doc.resolve(t), s = Oc(r, i);
4981
4993
  for (let o = 0; o < s.length; o++) {
4982
4994
  let l = s[o], a = o == s.length - 1;
4983
4995
  if (a && l == 0 || r.node(l).type.contentMatch.validEnd)
@@ -4990,7 +5002,7 @@ function Dh(n, e, t) {
4990
5002
  return n.delete(r.before(o), t);
4991
5003
  n.delete(e, t);
4992
5004
  }
4993
- function Ac(n, e) {
5005
+ function Oc(n, e) {
4994
5006
  let t = [], r = Math.min(n.depth, e.depth);
4995
5007
  for (let i = r; i >= 0; i--) {
4996
5008
  let s = n.start(i);
@@ -5016,7 +5028,7 @@ class fn extends ke {
5016
5028
  r[s] = t.attrs[s];
5017
5029
  r[this.attr] = this.value;
5018
5030
  let i = t.type.create(r, null, t.marks);
5019
- return te.fromReplace(e, this.pos, this.pos + 1, new E(x.from(i), 0, t.isLeaf ? 0 : 1));
5031
+ return te.fromReplace(e, this.pos, this.pos + 1, new E(v.from(i), 0, t.isLeaf ? 0 : 1));
5020
5032
  }
5021
5033
  getMap() {
5022
5034
  return Oe.empty;
@@ -5081,7 +5093,7 @@ pn = function n(e) {
5081
5093
  pn.prototype = Object.create(Error.prototype);
5082
5094
  pn.prototype.constructor = pn;
5083
5095
  pn.prototype.name = "TransformError";
5084
- class Nc {
5096
+ class Ac {
5085
5097
  /**
5086
5098
  Create a transform that starts with the given document.
5087
5099
  */
@@ -5130,7 +5142,7 @@ class Nc {
5130
5142
  given `slice`.
5131
5143
  */
5132
5144
  replace(e, t = e, r = E.empty) {
5133
- let i = xi(this.doc, e, t, r);
5145
+ let i = vi(this.doc, e, t, r);
5134
5146
  return i && this.step(i), this;
5135
5147
  }
5136
5148
  /**
@@ -5138,7 +5150,7 @@ class Nc {
5138
5150
  fragment, node, or array of nodes.
5139
5151
  */
5140
5152
  replaceWith(e, t, r) {
5141
- return this.replace(e, t, new E(x.from(r), 0, 0));
5153
+ return this.replace(e, t, new E(v.from(r), 0, 0));
5142
5154
  }
5143
5155
  /**
5144
5156
  Delete the content between the given positions.
@@ -5223,7 +5235,7 @@ class Nc {
5223
5235
  the given node type with the given attributes.
5224
5236
  */
5225
5237
  setBlockType(e, t = e, r, i = null) {
5226
- return vh(this, e, t, r, i), this;
5238
+ return xh(this, e, t, r, i), this;
5227
5239
  }
5228
5240
  /**
5229
5241
  Change the type, attributes, and/or marks of the node at `pos`.
@@ -5250,7 +5262,7 @@ class Nc {
5250
5262
  Add a mark to the node at position `pos`.
5251
5263
  */
5252
5264
  addNodeMark(e, t) {
5253
- return this.step(new vt(e, t)), this;
5265
+ return this.step(new xt(e, t)), this;
5254
5266
  }
5255
5267
  /**
5256
5268
  Remove a mark (or all marks of the given type) from the node at
@@ -5480,16 +5492,16 @@ class Rh {
5480
5492
  this.$from = e, this.$to = t;
5481
5493
  }
5482
5494
  }
5483
- let vl = !1;
5484
- function xl(n) {
5485
- !vl && !n.parent.inlineContent && (vl = !0, console.warn("TextSelection endpoint not pointing into a node with inline content (" + n.parent.type.name + ")"));
5495
+ let xl = !1;
5496
+ function vl(n) {
5497
+ !xl && !n.parent.inlineContent && (xl = !0, console.warn("TextSelection endpoint not pointing into a node with inline content (" + n.parent.type.name + ")"));
5486
5498
  }
5487
5499
  class R extends B {
5488
5500
  /**
5489
5501
  Construct a text selection between the given points.
5490
5502
  */
5491
5503
  constructor(e, t = e) {
5492
- xl(e), xl(t), super(e, t);
5504
+ vl(e), vl(t), super(e, t);
5493
5505
  }
5494
5506
  /**
5495
5507
  Returns a resolved position if this is a cursor selection (an
@@ -5581,7 +5593,7 @@ class I extends B {
5581
5593
  return r ? B.near(s) : new I(s);
5582
5594
  }
5583
5595
  content() {
5584
- return new E(x.from(this.node), 0, 0);
5596
+ return new E(v.from(this.node), 0, 0);
5585
5597
  }
5586
5598
  eq(e) {
5587
5599
  return e instanceof I && e.anchor == this.anchor;
@@ -5702,7 +5714,7 @@ function wl(n, e, t) {
5702
5714
  }), n.setSelection(B.near(n.doc.resolve(o), t));
5703
5715
  }
5704
5716
  const Sl = 1, pr = 2, Cl = 4;
5705
- class Ph extends Nc {
5717
+ class Ph extends Ac {
5706
5718
  /**
5707
5719
  @internal
5708
5720
  */
@@ -6069,10 +6081,10 @@ class un {
6069
6081
  }), s;
6070
6082
  }
6071
6083
  }
6072
- function Ic(n, e, t) {
6084
+ function Nc(n, e, t) {
6073
6085
  for (let r in n) {
6074
6086
  let i = n[r];
6075
- i instanceof Function ? i = i.bind(e) : r == "handleDOMEvents" && (i = Ic(i, e, {})), t[r] = i;
6087
+ i instanceof Function ? i = i.bind(e) : r == "handleDOMEvents" && (i = Nc(i, e, {})), t[r] = i;
6076
6088
  }
6077
6089
  return t;
6078
6090
  }
@@ -6081,7 +6093,7 @@ class Q {
6081
6093
  Create a plugin.
6082
6094
  */
6083
6095
  constructor(e) {
6084
- this.spec = e, this.props = {}, e.props && Ic(e.props, this, this.props), this.key = e.key ? e.key.key : Dc("plugin");
6096
+ this.spec = e, this.props = {}, e.props && Nc(e.props, this, this.props), this.key = e.key ? e.key.key : Ic("plugin");
6085
6097
  }
6086
6098
  /**
6087
6099
  Extract the plugin's state field from an editor state.
@@ -6091,7 +6103,7 @@ class Q {
6091
6103
  }
6092
6104
  }
6093
6105
  const Ji = /* @__PURE__ */ Object.create(null);
6094
- function Dc(n) {
6106
+ function Ic(n) {
6095
6107
  return n in Ji ? n + "$" + ++Ji[n] : (Ji[n] = 0, n + "$");
6096
6108
  }
6097
6109
  class me {
@@ -6099,7 +6111,7 @@ class me {
6099
6111
  Create a plugin key.
6100
6112
  */
6101
6113
  constructor(e = "key") {
6102
- this.key = Dc(e);
6114
+ this.key = Ic(e);
6103
6115
  }
6104
6116
  /**
6105
6117
  Get the active plugin with this key, if any, from an editor
@@ -6228,9 +6240,9 @@ function _h(n, e, t) {
6228
6240
  return { node: r.startContainer, offset: Math.min(ze(r.startContainer), r.startOffset) };
6229
6241
  }
6230
6242
  }
6231
- const Xe = typeof navigator < "u" ? navigator : null, El = typeof document < "u" ? document : null, Nt = Xe && Xe.userAgent || "", Os = /Edge\/(\d+)/.exec(Nt), Rc = /MSIE \d/.exec(Nt), As = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Nt), Me = !!(Rc || As || Os), Mt = Rc ? document.documentMode : As ? +As[1] : Os ? +Os[1] : 0, _e = !Me && /gecko\/(\d+)/i.test(Nt);
6243
+ const Xe = typeof navigator < "u" ? navigator : null, El = typeof document < "u" ? document : null, Nt = Xe && Xe.userAgent || "", Os = /Edge\/(\d+)/.exec(Nt), Dc = /MSIE \d/.exec(Nt), As = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Nt), Me = !!(Dc || As || Os), Mt = Dc ? document.documentMode : As ? +As[1] : Os ? +Os[1] : 0, _e = !Me && /gecko\/(\d+)/i.test(Nt);
6232
6244
  _e && +(/Firefox\/(\d+)/.exec(Nt) || [0, 0])[1];
6233
- const Ns = !Me && /Chrome\/(\d+)/.exec(Nt), be = !!Ns, Lc = Ns ? +Ns[1] : 0, xe = !Me && !!Xe && /Apple Computer/.test(Xe.vendor), gn = xe && (/Mobile\/\w+/.test(Nt) || !!Xe && Xe.maxTouchPoints > 2), Be = gn || (Xe ? /Mac/.test(Xe.platform) : !1), Wh = Xe ? /Win/.test(Xe.platform) : !1, at = /Android \d/.test(Nt), or = !!El && "webkitFontSmoothing" in El.documentElement.style, Kh = or ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
6245
+ const Ns = !Me && /Chrome\/(\d+)/.exec(Nt), be = !!Ns, Rc = Ns ? +Ns[1] : 0, ve = !Me && !!Xe && /Apple Computer/.test(Xe.vendor), gn = ve && (/Mobile\/\w+/.test(Nt) || !!Xe && Xe.maxTouchPoints > 2), Be = gn || (Xe ? /Mac/.test(Xe.platform) : !1), Wh = Xe ? /Win/.test(Xe.platform) : !1, at = /Android \d/.test(Nt), or = !!El && "webkitFontSmoothing" in El.documentElement.style, Kh = or ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
6234
6246
  function Uh(n) {
6235
6247
  let e = n.defaultView && n.defaultView.visualViewport;
6236
6248
  return e ? {
@@ -6292,9 +6304,9 @@ function Jh(n) {
6292
6304
  break;
6293
6305
  }
6294
6306
  }
6295
- return { refDOM: r, refTop: i, stack: Pc(n.dom) };
6307
+ return { refDOM: r, refTop: i, stack: Lc(n.dom) };
6296
6308
  }
6297
- function Pc(n) {
6309
+ function Lc(n) {
6298
6310
  let e = [], t = n.ownerDocument;
6299
6311
  for (let r = n; r && (e.push({ dom: r, top: r.scrollTop, left: r.scrollLeft }), n != t); r = mn(r))
6300
6312
  ;
@@ -6302,9 +6314,9 @@ function Pc(n) {
6302
6314
  }
6303
6315
  function Gh({ refDOM: n, refTop: e, stack: t }) {
6304
6316
  let r = n ? n.getBoundingClientRect().top : 0;
6305
- Bc(t, r == 0 ? 0 : r - e);
6317
+ Pc(t, r == 0 ? 0 : r - e);
6306
6318
  }
6307
- function Bc(n, e) {
6319
+ function Pc(n, e) {
6308
6320
  for (let t = 0; t < n.length; t++) {
6309
6321
  let { dom: r, top: i, left: s } = n[t];
6310
6322
  r.scrollTop != i + e && (r.scrollTop = i + e), r.scrollLeft != s && (r.scrollLeft = s);
@@ -6316,14 +6328,14 @@ function Yh(n) {
6316
6328
  return n.setActive();
6317
6329
  if (nn)
6318
6330
  return n.focus(nn);
6319
- let e = Pc(n);
6331
+ let e = Lc(n);
6320
6332
  n.focus(nn == null ? {
6321
6333
  get preventScroll() {
6322
6334
  return nn = { preventScroll: !0 }, !0;
6323
6335
  }
6324
- } : void 0), nn || (nn = !1, Bc(e, 0));
6336
+ } : void 0), nn || (nn = !1, Pc(e, 0));
6325
6337
  }
6326
- function zc(n, e) {
6338
+ function Bc(n, e) {
6327
6339
  let t, r = 2e8, i, s = 0, o = e.top, l = e.top, a, c;
6328
6340
  for (let u = n.firstChild, d = 0; u; u = u.nextSibling, d++) {
6329
6341
  let f;
@@ -6349,7 +6361,7 @@ function zc(n, e) {
6349
6361
  !t && (e.left >= p.right && e.top >= p.top || e.left >= p.left && e.top >= p.bottom) && (s = d + 1);
6350
6362
  }
6351
6363
  }
6352
- return !t && a && (t = a, i = c, r = 0), t && t.nodeType == 3 ? Xh(t, i) : !t || r && t.nodeType == 1 ? { node: n, offset: s } : zc(t, i);
6364
+ return !t && a && (t = a, i = c, r = 0), t && t.nodeType == 3 ? Xh(t, i) : !t || r && t.nodeType == 1 ? { node: n, offset: s } : Bc(t, i);
6353
6365
  }
6354
6366
  function Xh(n, e) {
6355
6367
  let t = n.nodeValue.length, r = document.createRange();
@@ -6369,7 +6381,7 @@ function Qh(n, e) {
6369
6381
  return t && /^li$/i.test(t.nodeName) && e.left < n.getBoundingClientRect().left ? t : n;
6370
6382
  }
6371
6383
  function Zh(n, e, t) {
6372
- let { node: r, offset: i } = zc(e, t), s = -1;
6384
+ let { node: r, offset: i } = Bc(e, t), s = -1;
6373
6385
  if (r.nodeType == 1 && !r.firstChild) {
6374
6386
  let o = r.getBoundingClientRect();
6375
6387
  s = o.left != o.right && t.left > (o.left + o.right) / 2 ? 1 : -1;
@@ -6389,7 +6401,7 @@ function ep(n, e, t, r) {
6389
6401
  }
6390
6402
  return i > -1 ? i : n.docView.posFromDOM(e, t, -1);
6391
6403
  }
6392
- function Fc(n, e, t) {
6404
+ function zc(n, e, t) {
6393
6405
  let r = n.childNodes.length;
6394
6406
  if (r && t.top < t.bottom)
6395
6407
  for (let i = Math.max(0, Math.min(r - 1, Math.floor(r * (e.top - t.top) / (t.bottom - t.top)) - 2)), s = i; ; ) {
@@ -6399,7 +6411,7 @@ function Fc(n, e, t) {
6399
6411
  for (let a = 0; a < l.length; a++) {
6400
6412
  let c = l[a];
6401
6413
  if (ro(e, c))
6402
- return Fc(o, e, c);
6414
+ return zc(o, e, c);
6403
6415
  }
6404
6416
  }
6405
6417
  if ((s = (s + 1) % r) == i)
@@ -6413,10 +6425,10 @@ function tp(n, e) {
6413
6425
  let o = (n.root.elementFromPoint ? n.root : t).elementFromPoint(e.left, e.top), l;
6414
6426
  if (!o || !n.dom.contains(o.nodeType != 1 ? o.parentNode : o)) {
6415
6427
  let c = n.dom.getBoundingClientRect();
6416
- if (!ro(e, c) || (o = Fc(n.dom, e, c), !o))
6428
+ if (!ro(e, c) || (o = zc(n.dom, e, c), !o))
6417
6429
  return null;
6418
6430
  }
6419
- if (xe)
6431
+ if (ve)
6420
6432
  for (let c = o; r && c; c = mn(c))
6421
6433
  c.draggable && (r = void 0);
6422
6434
  if (o = Qh(o, e), r) {
@@ -6444,7 +6456,7 @@ function ht(n, e) {
6444
6456
  return Array.prototype.find.call(t, Al) || n.getBoundingClientRect();
6445
6457
  }
6446
6458
  const np = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;
6447
- function $c(n, e, t) {
6459
+ function Fc(n, e, t) {
6448
6460
  let { node: r, offset: i, atom: s } = n.docView.domFromPos(e, t < 0 ? -1 : 1), o = or || _e;
6449
6461
  if (r.nodeType == 3)
6450
6462
  if (o && (np.test(r.nodeValue) || (t < 0 ? !i : i == r.nodeValue.length))) {
@@ -6502,7 +6514,7 @@ function Gi(n, e) {
6502
6514
  let t = e ? n.top : n.bottom;
6503
6515
  return { top: t, bottom: t, left: n.left, right: n.right };
6504
6516
  }
6505
- function Hc(n, e, t) {
6517
+ function $c(n, e, t) {
6506
6518
  let r = n.state, i = n.root.activeElement;
6507
6519
  r != e && n.updateState(e), i != n.dom && n.focus();
6508
6520
  try {
@@ -6513,7 +6525,7 @@ function Hc(n, e, t) {
6513
6525
  }
6514
6526
  function rp(n, e, t) {
6515
6527
  let r = e.selection, i = t == "up" ? r.$from : r.$to;
6516
- return Hc(n, e, () => {
6528
+ return $c(n, e, () => {
6517
6529
  let { node: s } = n.docView.domFromPos(i.pos, t == "up" ? -1 : 1);
6518
6530
  for (; ; ) {
6519
6531
  let l = n.docView.nearestDesc(s, !0);
@@ -6525,7 +6537,7 @@ function rp(n, e, t) {
6525
6537
  }
6526
6538
  s = l.dom.parentNode;
6527
6539
  }
6528
- let o = $c(n, i.pos, 1);
6540
+ let o = Fc(n, i.pos, 1);
6529
6541
  for (let l = s.firstChild; l; l = l.nextSibling) {
6530
6542
  let a;
6531
6543
  if (l.nodeType == 1)
@@ -6549,7 +6561,7 @@ function sp(n, e, t) {
6549
6561
  if (!r.parent.isTextblock)
6550
6562
  return !1;
6551
6563
  let i = r.parentOffset, s = !i, o = i == r.parent.content.size, l = n.domSelection();
6552
- return l ? !ip.test(r.parent.textContent) || !l.modify ? t == "left" || t == "backward" ? s : o : Hc(n, e, () => {
6564
+ return l ? !ip.test(r.parent.textContent) || !l.modify ? t == "left" || t == "backward" ? s : o : $c(n, e, () => {
6553
6565
  let { focusNode: a, focusOffset: c, anchorNode: u, anchorOffset: d } = n.domSelectionRange(), f = l.caretBidiLevel;
6554
6566
  l.modify("move", t, "character");
6555
6567
  let h = r.depth ? n.docView.domAfterPos(r.before()) : n.dom, { focusNode: p, focusOffset: m } = n.domSelectionRange(), y = p && !h.contains(p.nodeType == 1 ? p : p.parentNode) || a == p && c == m;
@@ -6736,7 +6748,7 @@ class lr {
6736
6748
  let r = 0, i = 0;
6737
6749
  for (let s = 0; r < this.children.length; r++) {
6738
6750
  let o = this.children[r], l = s + o.size;
6739
- if (l > e || o instanceof jc) {
6751
+ if (l > e || o instanceof Vc) {
6740
6752
  i = e - s;
6741
6753
  break;
6742
6754
  }
@@ -6744,7 +6756,7 @@ class lr {
6744
6756
  }
6745
6757
  if (i)
6746
6758
  return this.children[r].domFromPos(i - this.children[r].border, t);
6747
- for (let s; r && !(s = this.children[r - 1]).size && s instanceof Vc && s.side >= 0; r--)
6759
+ for (let s; r && !(s = this.children[r - 1]).size && s instanceof Hc && s.side >= 0; r--)
6748
6760
  ;
6749
6761
  if (t <= 0) {
6750
6762
  let s, o = !0;
@@ -6824,7 +6836,7 @@ class lr {
6824
6836
  p = y;
6825
6837
  }
6826
6838
  let l = this.domFromPos(e, e ? -1 : 1), a = t == e ? l : this.domFromPos(t, t ? -1 : 1), c = r.root.getSelection(), u = r.domSelectionRange(), d = !1;
6827
- if ((_e || xe) && e == t) {
6839
+ if ((_e || ve) && e == t) {
6828
6840
  let { node: h, offset: p } = l;
6829
6841
  if (h.nodeType == 3) {
6830
6842
  if (d = !!(p && h.nodeValue[p - 1] == `
@@ -6847,7 +6859,7 @@ class lr {
6847
6859
  let h = u.focusNode.childNodes[u.focusOffset];
6848
6860
  h && h.contentEditable == "false" && (i = !0);
6849
6861
  }
6850
- if (!(i || d && xe) && Gt(l.node, l.offset, u.anchorNode, u.anchorOffset) && Gt(a.node, a.offset, u.focusNode, u.focusOffset))
6862
+ if (!(i || d && ve) && Gt(l.node, l.offset, u.anchorNode, u.anchorOffset) && Gt(a.node, a.offset, u.focusNode, u.focusOffset))
6851
6863
  return;
6852
6864
  let f = !1;
6853
6865
  if ((c.extend || e == t) && !d) {
@@ -6909,7 +6921,7 @@ class lr {
6909
6921
  return !1;
6910
6922
  }
6911
6923
  }
6912
- class Vc extends lr {
6924
+ class Hc extends lr {
6913
6925
  constructor(e, t, r, i) {
6914
6926
  let s, o = t.type.toDOM;
6915
6927
  if (typeof o == "function" && (o = o(r, () => {
@@ -7033,7 +7045,7 @@ class Tt extends lr {
7033
7045
  } else u || ({ dom: u, contentDOM: d } = Qt.renderSpec(document, t.type.spec.toDOM(t), null, t.attrs));
7034
7046
  !d && !t.isText && u.nodeName != "BR" && (u.hasAttribute("contenteditable") || (u.contentEditable = "false"), t.type.spec.draggable && (u.draggable = !0));
7035
7047
  let f = u;
7036
- return u = Kc(u, r, t), c ? a = new ap(e, t, r, i, u, d || null, f, c, s, o + 1) : t.isText ? new Ci(e, t, r, i, u, f, s) : new Tt(e, t, r, i, u, d || null, f, s, o + 1);
7048
+ return u = Wc(u, r, t), c ? a = new ap(e, t, r, i, u, d || null, f, c, s, o + 1) : t.isText ? new Ci(e, t, r, i, u, f, s) : new Tt(e, t, r, i, u, d || null, f, s, o + 1);
7037
7049
  }
7038
7050
  parseRule() {
7039
7051
  if (this.node.type.spec.reparseInView)
@@ -7051,7 +7063,7 @@ class Tt extends lr {
7051
7063
  break;
7052
7064
  }
7053
7065
  }
7054
- e.contentElement || (e.getContent = () => x.empty);
7066
+ e.contentElement || (e.getContent = () => v.empty);
7055
7067
  }
7056
7068
  return e;
7057
7069
  }
@@ -7076,7 +7088,7 @@ class Tt extends lr {
7076
7088
  a.syncToMarks(c.marks, r, e);
7077
7089
  let h;
7078
7090
  a.findNodeMatch(c, u, d, f) || l && e.state.selection.from > i && e.state.selection.to < i + c.nodeSize && (h = a.findIndexWithChild(s.node)) > -1 && a.updateNodeAt(c, u, d, h, e) || a.updateNextNode(c, u, d, e, f, i) || a.addNode(c, u, d, e, i), i += c.nodeSize;
7079
- }), a.syncToMarks([], r, e), this.node.isTextblock && a.addTextblockHacks(), a.destroyRest(), (a.changed || this.dirty == zt) && (o && this.protectLocalComposition(e, o), _c(this.contentDOM, this.children, e), gn && pp(this.dom));
7091
+ }), a.syncToMarks([], r, e), this.node.isTextblock && a.addTextblockHacks(), a.destroyRest(), (a.changed || this.dirty == zt) && (o && this.protectLocalComposition(e, o), jc(this.contentDOM, this.children, e), gn && pp(this.dom));
7080
7092
  }
7081
7093
  localCompositionInfo(e, t) {
7082
7094
  let { from: r, to: i } = e.state.selection;
@@ -7117,7 +7129,7 @@ class Tt extends lr {
7117
7129
  if (Pr(e, this.outerDeco))
7118
7130
  return;
7119
7131
  let t = this.nodeDOM.nodeType != 1, r = this.dom;
7120
- this.dom = Wc(this.dom, this.nodeDOM, Is(this.outerDeco, this.node, t), Is(e, this.node, t)), this.dom != r && (r.pmViewDesc = void 0, this.dom.pmViewDesc = this), this.outerDeco = e;
7132
+ this.dom = _c(this.dom, this.nodeDOM, Is(this.outerDeco, this.node, t), Is(e, this.node, t)), this.dom != r && (r.pmViewDesc = void 0, this.dom.pmViewDesc = this), this.outerDeco = e;
7121
7133
  }
7122
7134
  // Mark this node as being the selected node.
7123
7135
  selectNode() {
@@ -7132,7 +7144,7 @@ class Tt extends lr {
7132
7144
  }
7133
7145
  }
7134
7146
  function Ll(n, e, t, r, i) {
7135
- Kc(r, e, n);
7147
+ Wc(r, e, n);
7136
7148
  let s = new Tt(void 0, n, e, t, r, r, r, i, 0);
7137
7149
  return s.contentDOM && s.updateChildren(i, 0), s;
7138
7150
  }
@@ -7179,7 +7191,7 @@ class Ci extends Tt {
7179
7191
  return this.node.text == e;
7180
7192
  }
7181
7193
  }
7182
- class jc extends lr {
7194
+ class Vc extends lr {
7183
7195
  parseRule() {
7184
7196
  return { ignore: !0 };
7185
7197
  }
@@ -7227,7 +7239,7 @@ class ap extends Tt {
7227
7239
  return this.spec.ignoreMutation ? this.spec.ignoreMutation(e) : super.ignoreMutation(e);
7228
7240
  }
7229
7241
  }
7230
- function _c(n, e, t) {
7242
+ function jc(n, e, t) {
7231
7243
  let r = n.firstChild, i = !1;
7232
7244
  for (let s = 0; s < e.length; s++) {
7233
7245
  let o = e[s], l = o.dom;
@@ -7239,7 +7251,7 @@ function _c(n, e, t) {
7239
7251
  i = !0, n.insertBefore(l, r);
7240
7252
  if (o instanceof Yt) {
7241
7253
  let a = r ? r.previousSibling : n.lastChild;
7242
- _c(o.contentDOM, o.children, t), r = a ? a.nextSibling : n.firstChild;
7254
+ jc(o.contentDOM, o.children, t), r = a ? a.nextSibling : n.firstChild;
7243
7255
  }
7244
7256
  }
7245
7257
  for (; r; )
@@ -7267,7 +7279,7 @@ function Is(n, e, t) {
7267
7279
  }
7268
7280
  return i;
7269
7281
  }
7270
- function Wc(n, e, t, r) {
7282
+ function _c(n, e, t, r) {
7271
7283
  if (t == Ft && r == Ft)
7272
7284
  return e;
7273
7285
  let i = e;
@@ -7303,8 +7315,8 @@ function cp(n, e, t) {
7303
7315
  t.style && (n.style.cssText += t.style);
7304
7316
  }
7305
7317
  }
7306
- function Kc(n, e, t) {
7307
- return Wc(n, n, Ft, Is(e, t, n.nodeType != 1));
7318
+ function Wc(n, e, t) {
7319
+ return _c(n, n, Ft, Is(e, t, n.nodeType != 1));
7308
7320
  }
7309
7321
  function Pr(n, e) {
7310
7322
  if (n.length != e.length)
@@ -7441,7 +7453,7 @@ class up {
7441
7453
  if (i && i.matchesWidget(e) && (e == i.widget || !i.widget.type.toDOM.parentNode))
7442
7454
  this.index++;
7443
7455
  else {
7444
- let s = new Vc(this.top, e, t, r);
7456
+ let s = new Hc(this.top, e, t, r);
7445
7457
  this.top.children.splice(this.index++, 0, s), this.changed = !0;
7446
7458
  }
7447
7459
  }
@@ -7452,7 +7464,7 @@ class up {
7452
7464
  for (; e instanceof Yt; )
7453
7465
  t = e, e = t.children[t.children.length - 1];
7454
7466
  (!e || // Empty textblock
7455
- !(e instanceof Ci) || /\n$/.test(e.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(e.node.text)) && ((xe || be) && e && e.dom.contentEditable == "false" && this.addHackNode("IMG", t), this.addHackNode("BR", this.top));
7467
+ !(e instanceof Ci) || /\n$/.test(e.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(e.node.text)) && ((ve || be) && e && e.dom.contentEditable == "false" && this.addHackNode("IMG", t), this.addHackNode("BR", this.top));
7456
7468
  }
7457
7469
  addHackNode(e, t) {
7458
7470
  if (t == this.top && this.index < t.children.length && t.children[this.index].matchesHack(e))
@@ -7460,7 +7472,7 @@ class up {
7460
7472
  else {
7461
7473
  let r = document.createElement(e);
7462
7474
  e == "IMG" && (r.className = "ProseMirror-separator", r.alt = ""), e == "BR" && (r.className = "ProseMirror-trailingBreak");
7463
- let i = new jc(this.top, [], r, null);
7475
+ let i = new Vc(this.top, [], r, null);
7464
7476
  t != this.top ? t.children.push(i) : t.children.splice(this.index++, 0, i), this.changed = !0;
7465
7477
  }
7466
7478
  }
@@ -7622,12 +7634,12 @@ function io(n, e = null) {
7622
7634
  }
7623
7635
  return c;
7624
7636
  }
7625
- function Uc(n) {
7626
- return n.editable ? n.hasFocus() : Jc(n) && document.activeElement && document.activeElement.contains(n.dom);
7637
+ function Kc(n) {
7638
+ return n.editable ? n.hasFocus() : qc(n) && document.activeElement && document.activeElement.contains(n.dom);
7627
7639
  }
7628
7640
  function dt(n, e = !1) {
7629
7641
  let t = n.state.selection;
7630
- if (qc(n, t), !!Uc(n)) {
7642
+ if (Uc(n, t), !!Kc(n)) {
7631
7643
  if (!e && n.input.mouseDown && n.input.mouseDown.allowDefault && be) {
7632
7644
  let r = n.domSelectionRange(), i = n.domObserver.currentSelection;
7633
7645
  if (r.anchorNode && i.anchorNode && Gt(r.anchorNode, r.anchorOffset, i.anchorNode, i.anchorOffset)) {
@@ -7644,10 +7656,10 @@ function dt(n, e = !1) {
7644
7656
  n.domObserver.setCurSelection(), n.domObserver.connectSelection();
7645
7657
  }
7646
7658
  }
7647
- const Bl = xe || be && Lc < 63;
7659
+ const Bl = ve || be && Rc < 63;
7648
7660
  function zl(n, e) {
7649
7661
  let { node: t, offset: r } = n.docView.domFromPos(e, 0), i = r < t.childNodes.length ? t.childNodes[r] : null, s = r ? t.childNodes[r - 1] : null;
7650
- if (xe && i && i.contentEditable == "false")
7662
+ if (ve && i && i.contentEditable == "false")
7651
7663
  return Yi(i);
7652
7664
  if ((!i || i.contentEditable == "false") && (!s || s.contentEditable == "false")) {
7653
7665
  if (i)
@@ -7657,7 +7669,7 @@ function zl(n, e) {
7657
7669
  }
7658
7670
  }
7659
7671
  function Yi(n) {
7660
- return n.contentEditable = "true", xe && n.draggable && (n.draggable = !1, n.wasDraggable = !0), n;
7672
+ return n.contentEditable = "true", ve && n.draggable && (n.draggable = !1, n.wasDraggable = !0), n;
7661
7673
  }
7662
7674
  function Fl(n) {
7663
7675
  n.contentEditable = "false", n.wasDraggable && (n.draggable = !0, n.wasDraggable = null);
@@ -7668,7 +7680,7 @@ function gp(n) {
7668
7680
  let t = n.domSelectionRange(), r = t.anchorNode, i = t.anchorOffset;
7669
7681
  e.addEventListener("selectionchange", n.input.hideSelectionGuard = () => {
7670
7682
  (t.anchorNode != r || t.anchorOffset != i) && (e.removeEventListener("selectionchange", n.input.hideSelectionGuard), setTimeout(() => {
7671
- (!Uc(n) || n.state.selection.visible) && n.dom.classList.remove("ProseMirror-hideselection");
7683
+ (!Kc(n) || n.state.selection.visible) && n.dom.classList.remove("ProseMirror-hideselection");
7672
7684
  }, 20));
7673
7685
  });
7674
7686
  }
@@ -7679,7 +7691,7 @@ function yp(n) {
7679
7691
  let r = n.cursorWrapper.dom, i = r.nodeName == "IMG";
7680
7692
  i ? t.setStart(r.parentNode, he(r) + 1) : t.setStart(r, 0), t.collapse(!0), e.removeAllRanges(), e.addRange(t), !i && !n.state.selection.visible && Me && Mt <= 11 && (r.disabled = !0, r.disabled = !1);
7681
7693
  }
7682
- function qc(n, e) {
7694
+ function Uc(n, e) {
7683
7695
  if (e instanceof I) {
7684
7696
  let t = n.docView.descAt(e.from);
7685
7697
  t != n.lastSelectedViewDesc && ($l(n), t && t.selectNode(), n.lastSelectedViewDesc = t);
@@ -7693,9 +7705,9 @@ function so(n, e, t, r) {
7693
7705
  return n.someProp("createSelectionBetween", (i) => i(n, e, t)) || R.between(e, t, r);
7694
7706
  }
7695
7707
  function Hl(n) {
7696
- return n.editable && !n.hasFocus() ? !1 : Jc(n);
7708
+ return n.editable && !n.hasFocus() ? !1 : qc(n);
7697
7709
  }
7698
- function Jc(n) {
7710
+ function qc(n) {
7699
7711
  let e = n.domSelectionRange();
7700
7712
  if (!e.anchorNode)
7701
7713
  return !1;
@@ -7754,7 +7766,7 @@ function Dn(n, e) {
7754
7766
  return t && t.size == 0 && (e < 0 || n.nextSibling || n.nodeName != "BR");
7755
7767
  }
7756
7768
  function rn(n, e) {
7757
- return e < 0 ? kp(n) : vp(n);
7769
+ return e < 0 ? kp(n) : xp(n);
7758
7770
  }
7759
7771
  function kp(n) {
7760
7772
  let e = n.domSelectionRange(), t = e.focusNode, r = e.focusOffset;
@@ -7775,7 +7787,7 @@ function kp(n) {
7775
7787
  break;
7776
7788
  }
7777
7789
  } else {
7778
- if (Gc(t))
7790
+ if (Jc(t))
7779
7791
  break;
7780
7792
  {
7781
7793
  let l = t.previousSibling;
@@ -7792,7 +7804,7 @@ function kp(n) {
7792
7804
  }
7793
7805
  o ? Ls(n, t, r) : i && Ls(n, i, s);
7794
7806
  }
7795
- function vp(n) {
7807
+ function xp(n) {
7796
7808
  let e = n.domSelectionRange(), t = e.focusNode, r = e.focusOffset;
7797
7809
  if (!t)
7798
7810
  return;
@@ -7807,7 +7819,7 @@ function vp(n) {
7807
7819
  else
7808
7820
  break;
7809
7821
  } else {
7810
- if (Gc(t))
7822
+ if (Jc(t))
7811
7823
  break;
7812
7824
  {
7813
7825
  let l = t.nextSibling;
@@ -7824,11 +7836,11 @@ function vp(n) {
7824
7836
  }
7825
7837
  s && Ls(n, s, o);
7826
7838
  }
7827
- function Gc(n) {
7839
+ function Jc(n) {
7828
7840
  let e = n.pmViewDesc;
7829
7841
  return e && e.node && e.node.isBlock;
7830
7842
  }
7831
- function xp(n, e) {
7843
+ function vp(n, e) {
7832
7844
  for (; n && e == n.childNodes.length && !sr(n); )
7833
7845
  e = he(n) + 1, n = n.parentNode;
7834
7846
  for (; n && e < n.childNodes.length; ) {
@@ -7855,7 +7867,7 @@ function wp(n, e) {
7855
7867
  function Ls(n, e, t) {
7856
7868
  if (e.nodeType != 3) {
7857
7869
  let s, o;
7858
- (o = xp(e, t)) ? (e = o, t = 0) : (s = wp(e, t)) && (e = s, t = s.nodeValue.length);
7870
+ (o = vp(e, t)) ? (e = o, t = 0) : (s = wp(e, t)) && (e = s, t = s.nodeValue.length);
7859
7871
  }
7860
7872
  let r = n.domSelection();
7861
7873
  if (!r)
@@ -7924,7 +7936,7 @@ function Kl(n, e, t) {
7924
7936
  n.domObserver.stop(), e.contentEditable = t, n.domObserver.start();
7925
7937
  }
7926
7938
  function Sp(n) {
7927
- if (!xe || n.state.selection.$head.parentOffset > 0)
7939
+ if (!ve || n.state.selection.$head.parentOffset > 0)
7928
7940
  return !1;
7929
7941
  let { focusNode: e, focusOffset: t } = n.domSelectionRange();
7930
7942
  if (e && e.nodeType == 1 && t == 0 && e.firstChild && e.firstChild.contentEditable == "false") {
@@ -7971,10 +7983,10 @@ function oo(n, e) {
7971
7983
  let h = r.firstChild;
7972
7984
  t.push(h.type.name, h.attrs != h.type.defaultAttrs ? h.attrs : null), r = h.content;
7973
7985
  }
7974
- let o = n.someProp("clipboardSerializer") || Qt.fromSchema(n.state.schema), l = tu(), a = l.createElement("div");
7986
+ let o = n.someProp("clipboardSerializer") || Qt.fromSchema(n.state.schema), l = eu(), a = l.createElement("div");
7975
7987
  a.appendChild(o.serializeFragment(r, { document: l }));
7976
7988
  let c = a.firstChild, u, d = 0;
7977
- for (; c && c.nodeType == 1 && (u = eu[c.nodeName.toLowerCase()]); ) {
7989
+ for (; c && c.nodeType == 1 && (u = Zc[c.nodeName.toLowerCase()]); ) {
7978
7990
  for (let h = u.length - 1; h >= 0; h--) {
7979
7991
  let p = l.createElement(u[h]);
7980
7992
  for (; a.firstChild; )
@@ -7989,7 +8001,7 @@ function oo(n, e) {
7989
8001
  `);
7990
8002
  return { dom: a, text: f, slice: e };
7991
8003
  }
7992
- function Yc(n, e, t, r, i) {
8004
+ function Gc(n, e, t, r, i) {
7993
8005
  let s = i.parent.type.spec.code, o, l;
7994
8006
  if (!t && !e)
7995
8007
  return null;
@@ -7998,7 +8010,7 @@ function Yc(n, e, t, r, i) {
7998
8010
  if (n.someProp("transformPastedText", (f) => {
7999
8011
  e = f(e, s || r, n);
8000
8012
  }), s)
8001
- return e ? new E(x.from(n.state.schema.text(e.replace(/\r\n?/g, `
8013
+ return e ? new E(v.from(n.state.schema.text(e.replace(/\r\n?/g, `
8002
8014
  `))), 0, 0) : E.empty;
8003
8015
  let d = n.someProp("clipboardTextParser", (f) => f(e, i, r, n));
8004
8016
  if (d)
@@ -8056,46 +8068,46 @@ function Ep(n, e) {
8056
8068
  let a = i.findWrapping(l.type), c;
8057
8069
  if (!a)
8058
8070
  return o = null;
8059
- if (c = o.length && s.length && Qc(a, s, l, o[o.length - 1], 0))
8071
+ if (c = o.length && s.length && Xc(a, s, l, o[o.length - 1], 0))
8060
8072
  o[o.length - 1] = c;
8061
8073
  else {
8062
- o.length && (o[o.length - 1] = Zc(o[o.length - 1], s.length));
8063
- let u = Xc(l, a);
8074
+ o.length && (o[o.length - 1] = Qc(o[o.length - 1], s.length));
8075
+ let u = Yc(l, a);
8064
8076
  o.push(u), i = i.matchType(u.type), s = a;
8065
8077
  }
8066
8078
  }), o)
8067
- return x.from(o);
8079
+ return v.from(o);
8068
8080
  }
8069
8081
  return n;
8070
8082
  }
8071
- function Xc(n, e, t = 0) {
8083
+ function Yc(n, e, t = 0) {
8072
8084
  for (let r = e.length - 1; r >= t; r--)
8073
- n = e[r].create(null, x.from(n));
8085
+ n = e[r].create(null, v.from(n));
8074
8086
  return n;
8075
8087
  }
8076
- function Qc(n, e, t, r, i) {
8088
+ function Xc(n, e, t, r, i) {
8077
8089
  if (i < n.length && i < e.length && n[i] == e[i]) {
8078
- let s = Qc(n, e, t, r.lastChild, i + 1);
8090
+ let s = Xc(n, e, t, r.lastChild, i + 1);
8079
8091
  if (s)
8080
8092
  return r.copy(r.content.replaceChild(r.childCount - 1, s));
8081
8093
  if (r.contentMatchAt(r.childCount).matchType(i == n.length - 1 ? t.type : n[i + 1]))
8082
- return r.copy(r.content.append(x.from(Xc(t, n, i + 1))));
8094
+ return r.copy(r.content.append(v.from(Yc(t, n, i + 1))));
8083
8095
  }
8084
8096
  }
8085
- function Zc(n, e) {
8097
+ function Qc(n, e) {
8086
8098
  if (e == 0)
8087
8099
  return n;
8088
- let t = n.content.replaceChild(n.childCount - 1, Zc(n.lastChild, e - 1)), r = n.contentMatchAt(n.childCount).fillBefore(x.empty, !0);
8100
+ let t = n.content.replaceChild(n.childCount - 1, Qc(n.lastChild, e - 1)), r = n.contentMatchAt(n.childCount).fillBefore(v.empty, !0);
8089
8101
  return n.copy(t.append(r));
8090
8102
  }
8091
8103
  function Ps(n, e, t, r, i, s) {
8092
8104
  let o = e < 0 ? n.firstChild : n.lastChild, l = o.content;
8093
- return n.childCount > 1 && (s = 0), i < r - 1 && (l = Ps(l, e, t, r, i + 1, s)), i >= t && (l = e < 0 ? o.contentMatchAt(0).fillBefore(l, s <= i).append(l) : l.append(o.contentMatchAt(o.childCount).fillBefore(x.empty, !0))), n.replaceChild(e < 0 ? 0 : n.childCount - 1, o.copy(l));
8105
+ return n.childCount > 1 && (s = 0), i < r - 1 && (l = Ps(l, e, t, r, i + 1, s)), i >= t && (l = e < 0 ? o.contentMatchAt(0).fillBefore(l, s <= i).append(l) : l.append(o.contentMatchAt(o.childCount).fillBefore(v.empty, !0))), n.replaceChild(e < 0 ? 0 : n.childCount - 1, o.copy(l));
8094
8106
  }
8095
8107
  function Ul(n, e, t) {
8096
8108
  return e < n.openStart && (n = new E(Ps(n.content, -1, e, n.openStart, 0, n.openEnd), e, n.openEnd)), t < n.openEnd && (n = new E(Ps(n.content, 1, t, n.openEnd, 0, 0), n.openStart, t)), n;
8097
8109
  }
8098
- const eu = {
8110
+ const Zc = {
8099
8111
  thead: ["table"],
8100
8112
  tbody: ["table"],
8101
8113
  tfoot: ["table"],
@@ -8107,7 +8119,7 @@ const eu = {
8107
8119
  th: ["table", "tbody", "tr"]
8108
8120
  };
8109
8121
  let ql = null;
8110
- function tu() {
8122
+ function eu() {
8111
8123
  return ql || (ql = document.implementation.createHTMLDocument("title"));
8112
8124
  }
8113
8125
  let Xi = null;
@@ -8118,8 +8130,8 @@ function Op(n) {
8118
8130
  function Ap(n) {
8119
8131
  let e = /^(\s*<meta [^>]*>)*/.exec(n);
8120
8132
  e && (n = n.slice(e[0].length));
8121
- let t = tu().createElement("div"), r = /<([a-z][^>\s]+)/i.exec(n), i;
8122
- if ((i = r && eu[r[1].toLowerCase()]) && (n = i.map((s) => "<" + s + ">").join("") + n + i.map((s) => "</" + s + ">").reverse().join("")), t.innerHTML = Op(n), i)
8133
+ let t = eu().createElement("div"), r = /<([a-z][^>\s]+)/i.exec(n), i;
8134
+ if ((i = r && Zc[r[1].toLowerCase()]) && (n = i.map((s) => "<" + s + ">").join("") + n + i.map((s) => "</" + s + ">").reverse().join("")), t.innerHTML = Op(n), i)
8123
8135
  for (let s = 0; s < i.length; s++)
8124
8136
  t = t.querySelector(i[s]) || t;
8125
8137
  return t;
@@ -8145,7 +8157,7 @@ function Ip(n, e) {
8145
8157
  let a = t.nodes[r[l]];
8146
8158
  if (!a || a.hasRequiredAttrs())
8147
8159
  break;
8148
- i = x.from(a.create(r[l + 1], i)), s++, o++;
8160
+ i = v.from(a.create(r[l + 1], i)), s++, o++;
8149
8161
  }
8150
8162
  return new E(i, s, o);
8151
8163
  }
@@ -8162,9 +8174,9 @@ function Lp(n) {
8162
8174
  Bp(n, r) && !lo(n, r) && (n.editable || !(r.type in Se)) && t(n, r);
8163
8175
  }, Dp[e] ? { passive: !0 } : void 0);
8164
8176
  }
8165
- xe && n.dom.addEventListener("input", () => null), Bs(n);
8177
+ ve && n.dom.addEventListener("input", () => null), Bs(n);
8166
8178
  }
8167
- function xt(n, e) {
8179
+ function vt(n, e) {
8168
8180
  n.input.lastSelectionOrigin = e, n.input.lastSelectionTime = Date.now();
8169
8181
  }
8170
8182
  function Pp(n) {
@@ -8200,20 +8212,20 @@ function zp(n, e) {
8200
8212
  }
8201
8213
  Se.keydown = (n, e) => {
8202
8214
  let t = e;
8203
- if (n.input.shiftKey = t.keyCode == 16 || t.shiftKey, !ru(n, t) && (n.input.lastKeyCode = t.keyCode, n.input.lastKeyCodeTime = Date.now(), !(at && be && t.keyCode == 13)))
8215
+ if (n.input.shiftKey = t.keyCode == 16 || t.shiftKey, !nu(n, t) && (n.input.lastKeyCode = t.keyCode, n.input.lastKeyCodeTime = Date.now(), !(at && be && t.keyCode == 13)))
8204
8216
  if (t.keyCode != 229 && n.domObserver.forceFlush(), gn && t.keyCode == 13 && !t.ctrlKey && !t.altKey && !t.metaKey) {
8205
8217
  let r = Date.now();
8206
8218
  n.input.lastIOSEnter = r, n.input.lastIOSEnterFallbackTimeout = setTimeout(() => {
8207
8219
  n.input.lastIOSEnter == r && (n.someProp("handleKeyDown", (i) => i(n, Pt(13, "Enter"))), n.input.lastIOSEnter = 0);
8208
8220
  }, 200);
8209
- } else n.someProp("handleKeyDown", (r) => r(n, t)) || Mp(n, t) ? t.preventDefault() : xt(n, "key");
8221
+ } else n.someProp("handleKeyDown", (r) => r(n, t)) || Mp(n, t) ? t.preventDefault() : vt(n, "key");
8210
8222
  };
8211
8223
  Se.keyup = (n, e) => {
8212
8224
  e.keyCode == 16 && (n.input.shiftKey = !1);
8213
8225
  };
8214
8226
  Se.keypress = (n, e) => {
8215
8227
  let t = e;
8216
- if (ru(n, t) || !t.charCode || t.ctrlKey && !t.altKey || Be && t.metaKey)
8228
+ if (nu(n, t) || !t.charCode || t.ctrlKey && !t.altKey || Be && t.metaKey)
8217
8229
  return;
8218
8230
  if (n.someProp("handleKeyPress", (i) => i(n, t))) {
8219
8231
  t.preventDefault();
@@ -8298,18 +8310,18 @@ function Wp(n, e, t) {
8298
8310
  function co(n) {
8299
8311
  return zr(n);
8300
8312
  }
8301
- const nu = Be ? "metaKey" : "ctrlKey";
8313
+ const tu = Be ? "metaKey" : "ctrlKey";
8302
8314
  we.mousedown = (n, e) => {
8303
8315
  let t = e;
8304
8316
  n.input.shiftKey = t.shiftKey;
8305
8317
  let r = co(n), i = Date.now(), s = "singleClick";
8306
- i - n.input.lastClick.time < 500 && Fp(t, n.input.lastClick) && !t[nu] && n.input.lastClick.button == t.button && (n.input.lastClick.type == "singleClick" ? s = "doubleClick" : n.input.lastClick.type == "doubleClick" && (s = "tripleClick")), n.input.lastClick = { time: i, x: t.clientX, y: t.clientY, type: s, button: t.button };
8318
+ i - n.input.lastClick.time < 500 && Fp(t, n.input.lastClick) && !t[tu] && n.input.lastClick.button == t.button && (n.input.lastClick.type == "singleClick" ? s = "doubleClick" : n.input.lastClick.type == "doubleClick" && (s = "tripleClick")), n.input.lastClick = { time: i, x: t.clientX, y: t.clientY, type: s, button: t.button };
8307
8319
  let o = n.posAtCoords(Mi(t));
8308
- o && (s == "singleClick" ? (n.input.mouseDown && n.input.mouseDown.done(), n.input.mouseDown = new Kp(n, o, t, !!r)) : (s == "doubleClick" ? jp : _p)(n, o.pos, o.inside, t) ? t.preventDefault() : xt(n, "pointer"));
8320
+ o && (s == "singleClick" ? (n.input.mouseDown && n.input.mouseDown.done(), n.input.mouseDown = new Kp(n, o, t, !!r)) : (s == "doubleClick" ? jp : _p)(n, o.pos, o.inside, t) ? t.preventDefault() : vt(n, "pointer"));
8309
8321
  };
8310
8322
  class Kp {
8311
8323
  constructor(e, t, r, i) {
8312
- this.view = e, this.pos = t, this.event = r, this.flushed = i, this.delayedSelectionSync = !1, this.mightDrag = null, this.startDoc = e.state.doc, this.selectNode = !!r[nu], this.allowDefault = r.shiftKey;
8324
+ this.view = e, this.pos = t, this.event = r, this.flushed = i, this.delayedSelectionSync = !1, this.mightDrag = null, this.startDoc = e.state.doc, this.selectNode = !!r[tu], this.allowDefault = r.shiftKey;
8313
8325
  let s, o;
8314
8326
  if (t.inside > -1)
8315
8327
  s = e.state.doc.nodeAt(t.inside), o = t.inside;
@@ -8327,7 +8339,7 @@ class Kp {
8327
8339
  setUneditable: !!(this.target && _e && !this.target.hasAttribute("contentEditable"))
8328
8340
  }), this.target && this.mightDrag && (this.mightDrag.addAttr || this.mightDrag.setUneditable) && (this.view.domObserver.stop(), this.mightDrag.addAttr && (this.target.draggable = !0), this.mightDrag.setUneditable && setTimeout(() => {
8329
8341
  this.view.input.mouseDown == this && this.target.setAttribute("contentEditable", "false");
8330
- }, 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)), xt(e, "pointer");
8342
+ }, 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)), vt(e, "pointer");
8331
8343
  }
8332
8344
  done() {
8333
8345
  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(() => dt(this.view)), this.view.input.mouseDown = null;
@@ -8336,32 +8348,32 @@ class Kp {
8336
8348
  if (this.done(), !this.view.dom.contains(e.target))
8337
8349
  return;
8338
8350
  let t = this.pos;
8339
- this.view.state.doc != this.startDoc && (t = this.view.posAtCoords(Mi(e))), this.updateAllowDefault(e), this.allowDefault || !t ? xt(this.view, "pointer") : Vp(this.view, t.pos, t.inside, e, this.selectNode) ? e.preventDefault() : e.button == 0 && (this.flushed || // Safari ignores clicks on draggable elements
8340
- xe && this.mightDrag && !this.mightDrag.node.isAtom || // Chrome will sometimes treat a node selection as a
8351
+ this.view.state.doc != this.startDoc && (t = this.view.posAtCoords(Mi(e))), this.updateAllowDefault(e), this.allowDefault || !t ? vt(this.view, "pointer") : Vp(this.view, t.pos, t.inside, e, this.selectNode) ? e.preventDefault() : e.button == 0 && (this.flushed || // Safari ignores clicks on draggable elements
8352
+ ve && this.mightDrag && !this.mightDrag.node.isAtom || // Chrome will sometimes treat a node selection as a
8341
8353
  // cursor, but still report that the node is selected
8342
8354
  // when asked through getSelection. You'll then get a
8343
8355
  // situation where clicking at the point where that
8344
8356
  // (hidden) cursor is doesn't change the selection, and
8345
8357
  // thus doesn't get a reaction from ProseMirror. This
8346
8358
  // works around that.
8347
- be && !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) ? (hn(this.view, B.near(this.view.state.doc.resolve(t.pos))), e.preventDefault()) : xt(this.view, "pointer");
8359
+ be && !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) ? (hn(this.view, B.near(this.view.state.doc.resolve(t.pos))), e.preventDefault()) : vt(this.view, "pointer");
8348
8360
  }
8349
8361
  move(e) {
8350
- this.updateAllowDefault(e), xt(this.view, "pointer"), e.buttons == 0 && this.done();
8362
+ this.updateAllowDefault(e), vt(this.view, "pointer"), e.buttons == 0 && this.done();
8351
8363
  }
8352
8364
  updateAllowDefault(e) {
8353
8365
  !this.allowDefault && (Math.abs(this.event.x - e.clientX) > 4 || Math.abs(this.event.y - e.clientY) > 4) && (this.allowDefault = !0);
8354
8366
  }
8355
8367
  }
8356
8368
  we.touchstart = (n) => {
8357
- n.input.lastTouch = Date.now(), co(n), xt(n, "pointer");
8369
+ n.input.lastTouch = Date.now(), co(n), vt(n, "pointer");
8358
8370
  };
8359
8371
  we.touchmove = (n) => {
8360
- n.input.lastTouch = Date.now(), xt(n, "pointer");
8372
+ n.input.lastTouch = Date.now(), vt(n, "pointer");
8361
8373
  };
8362
8374
  we.contextmenu = (n) => co(n);
8363
- function ru(n, e) {
8364
- return n.composing ? !0 : xe && Math.abs(e.timeStamp - n.input.compositionEndedAt) < 500 ? (n.input.compositionEndedAt = -2e8, !0) : !1;
8375
+ function nu(n, e) {
8376
+ return n.composing ? !0 : ve && Math.abs(e.timeStamp - n.input.compositionEndedAt) < 500 ? (n.input.compositionEndedAt = -2e8, !0) : !1;
8365
8377
  }
8366
8378
  const Up = at ? 5e3 : -1;
8367
8379
  Se.compositionstart = Se.compositionupdate = (n) => {
@@ -8386,15 +8398,15 @@ Se.compositionstart = Se.compositionupdate = (n) => {
8386
8398
  }
8387
8399
  n.input.composing = !0;
8388
8400
  }
8389
- iu(n, Up);
8401
+ ru(n, Up);
8390
8402
  };
8391
8403
  Se.compositionend = (n, e) => {
8392
- n.composing && (n.input.composing = !1, n.input.compositionEndedAt = e.timeStamp, n.input.compositionPendingChanges = n.domObserver.pendingRecords().length ? n.input.compositionID : 0, n.input.compositionNode = null, n.input.compositionPendingChanges && Promise.resolve().then(() => n.domObserver.flush()), n.input.compositionID++, iu(n, 20));
8404
+ n.composing && (n.input.composing = !1, n.input.compositionEndedAt = e.timeStamp, n.input.compositionPendingChanges = n.domObserver.pendingRecords().length ? n.input.compositionID : 0, n.input.compositionNode = null, n.input.compositionPendingChanges && Promise.resolve().then(() => n.domObserver.flush()), n.input.compositionID++, ru(n, 20));
8393
8405
  };
8394
- function iu(n, e) {
8406
+ function ru(n, e) {
8395
8407
  clearTimeout(n.input.composingTimeout), e > -1 && (n.input.composingTimeout = setTimeout(() => zr(n), e));
8396
8408
  }
8397
- function su(n) {
8409
+ function iu(n) {
8398
8410
  for (n.composing && (n.input.composing = !1, n.input.compositionEndedAt = Jp()); n.input.compositionNodes.length > 0; )
8399
8411
  n.input.compositionNodes.pop().markParentsDirty();
8400
8412
  }
@@ -8423,7 +8435,7 @@ function Jp() {
8423
8435
  }
8424
8436
  function zr(n, e = !1) {
8425
8437
  if (!(at && n.domObserver.flushingSoon >= 0)) {
8426
- if (n.domObserver.forceFlush(), su(n), e || n.docView && n.docView.dirty) {
8438
+ if (n.domObserver.forceFlush(), iu(n), e || n.docView && n.docView.dirty) {
8427
8439
  let t = io(n), r = n.state.selection;
8428
8440
  return t && !t.eq(r) ? n.dispatch(n.state.tr.setSelection(t)) : (n.markCursor || e) && !r.$from.node(r.$from.sharedDepth(r.to)).inlineContent ? n.dispatch(n.state.tr.deleteSelection()) : n.updateState(n.state), !0;
8429
8441
  }
@@ -8462,7 +8474,7 @@ function Xp(n, e) {
8462
8474
  }, 50);
8463
8475
  }
8464
8476
  function Un(n, e, t, r, i) {
8465
- let s = Yc(n, e, t, r, n.state.selection.$from);
8477
+ let s = Gc(n, e, t, r, n.state.selection.$from);
8466
8478
  if (n.someProp("handlePaste", (a) => a(n, i, s || E.empty)))
8467
8479
  return !0;
8468
8480
  if (!s)
@@ -8470,7 +8482,7 @@ function Un(n, e, t, r, i) {
8470
8482
  let o = Yp(s), l = o ? n.state.tr.replaceSelectionWith(o, r) : n.state.tr.replaceSelection(s);
8471
8483
  return n.dispatch(l.scrollIntoView().setMeta("paste", !0).setMeta("uiEvent", "paste")), !0;
8472
8484
  }
8473
- function ou(n) {
8485
+ function su(n) {
8474
8486
  let e = n.getData("text/plain") || n.getData("Text");
8475
8487
  if (e)
8476
8488
  return e;
@@ -8482,15 +8494,15 @@ Se.paste = (n, e) => {
8482
8494
  if (n.composing && !at)
8483
8495
  return;
8484
8496
  let r = Kn ? null : t.clipboardData, i = n.input.shiftKey && n.input.lastKeyCode != 45;
8485
- r && Un(n, ou(r), r.getData("text/html"), i, t) ? t.preventDefault() : Xp(n, t);
8497
+ r && Un(n, su(r), r.getData("text/html"), i, t) ? t.preventDefault() : Xp(n, t);
8486
8498
  };
8487
- class lu {
8499
+ class ou {
8488
8500
  constructor(e, t, r) {
8489
8501
  this.slice = e, this.move = t, this.node = r;
8490
8502
  }
8491
8503
  }
8492
8504
  const Qp = Be ? "altKey" : "ctrlKey";
8493
- function au(n, e) {
8505
+ function lu(n, e) {
8494
8506
  let t = n.someProp("dragCopies", (r) => !r(e));
8495
8507
  return t ?? !e[Qp];
8496
8508
  }
@@ -8508,7 +8520,7 @@ we.dragstart = (n, e) => {
8508
8520
  }
8509
8521
  }
8510
8522
  let l = (o || n.state.selection).content(), { dom: a, text: c, slice: u } = oo(n, l);
8511
- (!t.dataTransfer.files.length || !be || Lc > 120) && t.dataTransfer.clearData(), t.dataTransfer.setData(Kn ? "Text" : "text/html", a.innerHTML), t.dataTransfer.effectAllowed = "copyMove", Kn || t.dataTransfer.setData("text/plain", c), n.dragging = new lu(u, au(n, t), o);
8523
+ (!t.dataTransfer.files.length || !be || Rc > 120) && t.dataTransfer.clearData(), t.dataTransfer.setData(Kn ? "Text" : "text/html", a.innerHTML), t.dataTransfer.effectAllowed = "copyMove", Kn || t.dataTransfer.setData("text/plain", c), n.dragging = new ou(u, lu(n, t), o);
8512
8524
  };
8513
8525
  we.dragend = (n) => {
8514
8526
  let e = n.dragging;
@@ -8527,8 +8539,8 @@ Se.drop = (n, e) => {
8527
8539
  let s = n.state.doc.resolve(i.pos), o = r && r.slice;
8528
8540
  o ? n.someProp("transformPasted", (p) => {
8529
8541
  o = p(o, n);
8530
- }) : o = Yc(n, ou(t.dataTransfer), Kn ? null : t.dataTransfer.getData("text/html"), !1, s);
8531
- let l = !!(r && au(n, t));
8542
+ }) : o = Gc(n, su(t.dataTransfer), Kn ? null : t.dataTransfer.getData("text/html"), !1, s);
8543
+ let l = !!(r && lu(n, t));
8532
8544
  if (n.someProp("handleDrop", (p) => p(n, t, o || E.empty, l))) {
8533
8545
  t.preventDefault();
8534
8546
  return;
@@ -8536,7 +8548,7 @@ Se.drop = (n, e) => {
8536
8548
  if (!o)
8537
8549
  return;
8538
8550
  t.preventDefault();
8539
- let a = o ? Mc(n.state.doc, s.pos, o) : s.pos;
8551
+ let a = o ? Cc(n.state.doc, s.pos, o) : s.pos;
8540
8552
  a == null && (a = s.pos);
8541
8553
  let c = n.state.tr;
8542
8554
  if (l) {
@@ -8789,13 +8801,13 @@ class ie {
8789
8801
  let i, s = 0;
8790
8802
  e.forEach((l, a) => {
8791
8803
  let c = a + r, u;
8792
- if (u = uu(t, l, c)) {
8804
+ if (u = cu(t, l, c)) {
8793
8805
  for (i || (i = this.children.slice()); s < i.length && i[s] < a; )
8794
8806
  s += 3;
8795
8807
  i[s] == a ? i[s + 2] = i[s + 2].addInner(l, u, c + 1) : i.splice(s, 0, a, a + l.nodeSize, $r(u, l, c + 1, _t)), s += 3;
8796
8808
  }
8797
8809
  });
8798
- let o = cu(s ? du(t) : t, -r);
8810
+ let o = au(s ? uu(t) : t, -r);
8799
8811
  for (let l = 0; l < o.length; l++)
8800
8812
  o[l].type.valid(e, o[l]) || o.splice(l--, 1);
8801
8813
  return new ie(o.length ? this.local.concat(o).sort(Wt) : this.local, i || this.children);
@@ -9001,7 +9013,7 @@ function Zp(n, e, t, r, i, s, o) {
9001
9013
  }
9002
9014
  return new ie(e.sort(Wt), l);
9003
9015
  }
9004
- function cu(n, e) {
9016
+ function au(n, e) {
9005
9017
  if (!e || !n.length)
9006
9018
  return n;
9007
9019
  let t = [];
@@ -9024,7 +9036,7 @@ function em(n, e, t, r, i, s, o) {
9024
9036
  n[a + 1] == -1 && l(n[a + 2], e[a] + s + 1);
9025
9037
  return t;
9026
9038
  }
9027
- function uu(n, e, t) {
9039
+ function cu(n, e, t) {
9028
9040
  if (e.isLeaf)
9029
9041
  return null;
9030
9042
  let r = t + e.nodeSize, i = null;
@@ -9032,7 +9044,7 @@ function uu(n, e, t) {
9032
9044
  (o = n[s]) && o.from > t && o.to < r && ((i || (i = [])).push(o), n[s] = null);
9033
9045
  return i;
9034
9046
  }
9035
- function du(n) {
9047
+ function uu(n) {
9036
9048
  let e = [];
9037
9049
  for (let t = 0; t < n.length; t++)
9038
9050
  n[t] != null && e.push(n[t]);
@@ -9041,14 +9053,14 @@ function du(n) {
9041
9053
  function $r(n, e, t, r) {
9042
9054
  let i = [], s = !1;
9043
9055
  e.forEach((l, a) => {
9044
- let c = uu(n, l, a + t);
9056
+ let c = cu(n, l, a + t);
9045
9057
  if (c) {
9046
9058
  s = !0;
9047
9059
  let u = $r(c, l, t + a + 1, r);
9048
9060
  u != ge && i.push(a, a + l.nodeSize, u);
9049
9061
  }
9050
9062
  });
9051
- let o = cu(s ? du(n) : n, -t).sort(Wt);
9063
+ let o = au(s ? uu(n) : n, -t).sort(Wt);
9052
9064
  for (let l = 0; l < o.length; l++)
9053
9065
  o[l].type.valid(e, o[l]) || (r.onRemove && r.onRemove(o[l].spec), o.splice(l--, 1));
9054
9066
  return o.length || i.length ? new ie(o, i) : ge;
@@ -9316,10 +9328,10 @@ function cm(n) {
9316
9328
  if (e)
9317
9329
  return e.parseRule();
9318
9330
  if (n.nodeName == "BR" && n.parentNode) {
9319
- if (xe && /^(ul|ol)$/i.test(n.parentNode.nodeName)) {
9331
+ if (ve && /^(ul|ol)$/i.test(n.parentNode.nodeName)) {
9320
9332
  let t = document.createElement("div");
9321
9333
  return t.appendChild(document.createElement("li")), { skip: t };
9322
- } else if (n.parentNode.lastChild == n || xe && /^(tr|table)$/i.test(n.parentNode.nodeName))
9334
+ } else if (n.parentNode.lastChild == n || ve && /^(tr|table)$/i.test(n.parentNode.nodeName))
9323
9335
  return { ignore: !0 };
9324
9336
  } else if (n.nodeName == "IMG" && n.getAttribute("mark-placeholder"))
9325
9337
  return { ignore: !0 };
@@ -9375,7 +9387,7 @@ function dm(n, e, t, r, i) {
9375
9387
  return T(n, Pt(13, "Enter"));
9376
9388
  });
9377
9389
  }, 20));
9378
- let g = p.start, S = p.endA, v = (T) => {
9390
+ let g = p.start, S = p.endA, x = (T) => {
9379
9391
  let z = T || n.state.tr.replace(g, S, c.doc.slice(p.start - c.from, p.endB - c.from));
9380
9392
  if (c.sel) {
9381
9393
  let j = Ql(n, z.doc, c.sel);
@@ -9386,20 +9398,20 @@ function dm(n, e, t, r, i) {
9386
9398
  if (C) {
9387
9399
  if (m.pos == y.pos) {
9388
9400
  Me && Mt <= 11 && m.parentOffset == 0 && (n.domObserver.suppressSelectionUpdates(), setTimeout(() => dt(n), 20));
9389
- let T = v(n.state.tr.delete(g, S)), z = u.resolve(p.start).marksAcross(u.resolve(p.endA));
9401
+ let T = x(n.state.tr.delete(g, S)), z = u.resolve(p.start).marksAcross(u.resolve(p.endA));
9390
9402
  z && T.ensureMarks(z), n.dispatch(T);
9391
9403
  } else if (
9392
9404
  // Adding or removing a mark
9393
9405
  p.endA == p.endB && (P = fm(m.parent.content.cut(m.parentOffset, y.parentOffset), b.parent.content.cut(b.parentOffset, p.endA - b.start())))
9394
9406
  ) {
9395
- let T = v(n.state.tr);
9407
+ let T = x(n.state.tr);
9396
9408
  P.type == "add" ? T.addMark(g, S, P.mark) : T.removeMark(g, S, P.mark), n.dispatch(T);
9397
9409
  } else if (m.parent.child(m.index()).isText && m.index() == y.index() - (y.textOffset ? 0 : 1)) {
9398
- let T = m.parent.textBetween(m.parentOffset, y.parentOffset), z = () => v(n.state.tr.insertText(T, g, S));
9410
+ let T = m.parent.textBetween(m.parentOffset, y.parentOffset), z = () => x(n.state.tr.insertText(T, g, S));
9399
9411
  n.someProp("handleTextInput", (j) => j(n, g, S, T, z)) || n.dispatch(z());
9400
9412
  }
9401
9413
  } else
9402
- n.dispatch(v());
9414
+ n.dispatch(x());
9403
9415
  }
9404
9416
  function Ql(n, e, t) {
9405
9417
  return Math.max(t.anchor, t.head) > e.content.size ? null : so(n, e.resolve(t.anchor), e.resolve(t.head));
@@ -9419,7 +9431,7 @@ function fm(n, e) {
9419
9431
  let c = [];
9420
9432
  for (let u = 0; u < e.childCount; u++)
9421
9433
  c.push(a(e.child(u)));
9422
- if (x.from(c).eq(n))
9434
+ if (v.from(c).eq(n))
9423
9435
  return { mark: l, type: o };
9424
9436
  }
9425
9437
  function hm(n, e, t, r, i) {
@@ -9474,7 +9486,7 @@ function Zl(n) {
9474
9486
  let e = n.charCodeAt(0), t = n.charCodeAt(1);
9475
9487
  return e >= 56320 && e <= 57343 && t >= 55296 && t <= 56319;
9476
9488
  }
9477
- class fu {
9489
+ class du {
9478
9490
  /**
9479
9491
  Create a view. `place` may be a DOM node that the editor should
9480
9492
  be appended to, a function that will place it into the document,
@@ -9539,7 +9551,7 @@ class fu {
9539
9551
  updateStateInner(e, t) {
9540
9552
  var r;
9541
9553
  let i = this.state, s = !1, o = !1;
9542
- e.storedMarks && this.composing && (su(this), o = !0), this.state = e;
9554
+ e.storedMarks && this.composing && (iu(this), o = !0), this.state = e;
9543
9555
  let l = i.plugins != e.plugins || this._props.plugins != t.plugins;
9544
9556
  if (l || this._props.plugins != t.plugins || this._props.nodeViews != t.nodeViews) {
9545
9557
  let h = ra(this);
@@ -9556,7 +9568,7 @@ class fu {
9556
9568
  let p = be ? this.trackWrites = this.domSelectionRange().focusNode : null;
9557
9569
  this.composing && (this.input.compositionNode = qp(this)), (s || !this.docView.update(e.doc, c, a, this)) && (this.docView.updateOuterDeco(c), this.docView.destroy(), this.docView = Ll(e.doc, c, a, this.dom, this)), p && !this.trackWrites && (h = !0);
9558
9570
  }
9559
- h || !(this.input.mouseDown && this.domObserver.currentSelection.eq(this.domSelectionRange()) && bp(this)) ? dt(this, h) : (qc(this, e.selection), this.domObserver.setCurSelection()), this.domObserver.start();
9571
+ h || !(this.input.mouseDown && this.domObserver.currentSelection.eq(this.domSelectionRange()) && bp(this)) ? dt(this, h) : (Uc(this, e.selection), this.domObserver.setCurSelection()), this.domObserver.start();
9560
9572
  }
9561
9573
  this.updatePluginViews(i), !((r = this.dragging) === null || r === void 0) && r.node && !i.doc.eq(e.doc) && this.updateDraggedNode(this.dragging, i), u == "reset" ? this.dom.scrollTop = 0 : u == "to selection" ? this.scrollToSelection() : f && Gh(f);
9562
9574
  }
@@ -9603,7 +9615,7 @@ class fu {
9603
9615
  let s = r.from + (this.state.doc.content.size - t.doc.content.size);
9604
9616
  (s > 0 && this.state.doc.nodeAt(s)) == r.node && (i = s);
9605
9617
  }
9606
- this.dragging = new lu(e.slice, e.move, i < 0 ? void 0 : I.create(this.state.doc, i));
9618
+ this.dragging = new ou(e.slice, e.move, i < 0 ? void 0 : I.create(this.state.doc, i));
9607
9619
  }
9608
9620
  someProp(e, t) {
9609
9621
  let r = this._props && this._props[e], i;
@@ -9690,7 +9702,7 @@ class fu {
9690
9702
  otherwise the element after.
9691
9703
  */
9692
9704
  coordsAtPos(e, t = 1) {
9693
- return $c(this, e, t);
9705
+ return Fc(this, e, t);
9694
9706
  }
9695
9707
  /**
9696
9708
  Find the DOM position that corresponds to the given document
@@ -9797,7 +9809,7 @@ class fu {
9797
9809
  */
9798
9810
  domSelectionRange() {
9799
9811
  let e = this.domSelection();
9800
- return e ? xe && this.root.nodeType === 11 && jh(this.dom.ownerDocument) == this.dom && om(this, e) || e : { focusNode: null, focusOffset: 0, anchorNode: null, anchorOffset: 0 };
9812
+ return e ? ve && this.root.nodeType === 11 && jh(this.dom.ownerDocument) == this.dom && om(this, e) || e : { focusNode: null, focusOffset: 0, anchorNode: null, anchorOffset: 0 };
9801
9813
  }
9802
9814
  /**
9803
9815
  @internal
@@ -9806,7 +9818,7 @@ class fu {
9806
9818
  return this.root.getSelection();
9807
9819
  }
9808
9820
  }
9809
- fu.prototype.dispatch = function(n) {
9821
+ du.prototype.dispatch = function(n) {
9810
9822
  let e = this._props.dispatchTransaction;
9811
9823
  e ? e.call(this, n) : this.updateState(this.state.apply(n));
9812
9824
  };
@@ -9943,7 +9955,7 @@ function km(n) {
9943
9955
  var e = ym && n.metaKey && n.shiftKey && !n.ctrlKey && !n.altKey || bm && n.shiftKey && n.key && n.key.length == 1 || n.key == "Unidentified", t = !e && n.key || (n.shiftKey ? Hr : Ot)[n.keyCode] || n.key || "Unidentified";
9944
9956
  return t == "Esc" && (t = "Escape"), t == "Del" && (t = "Delete"), t == "Left" && (t = "ArrowLeft"), t == "Up" && (t = "ArrowUp"), t == "Right" && (t = "ArrowRight"), t == "Down" && (t = "ArrowDown"), t;
9945
9957
  }
9946
- const vm = typeof navigator < "u" && /Mac|iP(hone|[oa]d)/.test(navigator.platform), xm = typeof navigator < "u" && /Win/.test(navigator.platform);
9958
+ const xm = typeof navigator < "u" && /Mac|iP(hone|[oa]d)/.test(navigator.platform), vm = typeof navigator < "u" && /Win/.test(navigator.platform);
9947
9959
  function wm(n) {
9948
9960
  let e = n.split(/-(?!$)/), t = e[e.length - 1];
9949
9961
  t == "Space" && (t = " ");
@@ -9959,7 +9971,7 @@ function wm(n) {
9959
9971
  else if (/^s(hift)?$/i.test(a))
9960
9972
  s = !0;
9961
9973
  else if (/^mod$/i.test(a))
9962
- vm ? o = !0 : i = !0;
9974
+ xm ? o = !0 : i = !0;
9963
9975
  else
9964
9976
  throw new Error("Unrecognized modifier name: " + a);
9965
9977
  }
@@ -9975,9 +9987,9 @@ function ts(n, e, t = !0) {
9975
9987
  return e.altKey && (n = "Alt-" + n), e.ctrlKey && (n = "Ctrl-" + n), e.metaKey && (n = "Meta-" + n), t && e.shiftKey && (n = "Shift-" + n), n;
9976
9988
  }
9977
9989
  function Cm(n) {
9978
- return new Q({ props: { handleKeyDown: hu(n) } });
9990
+ return new Q({ props: { handleKeyDown: fu(n) } });
9979
9991
  }
9980
- function hu(n) {
9992
+ function fu(n) {
9981
9993
  let e = Sm(n);
9982
9994
  return function(t, r) {
9983
9995
  let i = km(r), s, o = e[ts(i, r)];
@@ -9990,7 +10002,7 @@ function hu(n) {
9990
10002
  return !0;
9991
10003
  }
9992
10004
  if ((r.altKey || r.metaKey || r.ctrlKey) && // Ctrl-Alt may be used for AltGr on Windows
9993
- !(xm && r.ctrlKey && r.altKey) && (s = Ot[r.keyCode]) && s != i) {
10005
+ !(vm && r.ctrlKey && r.altKey) && (s = Ot[r.keyCode]) && s != i) {
9994
10006
  let l = e[ts(s, r)];
9995
10007
  if (l && l(t.state, t.dispatch, t))
9996
10008
  return !0;
@@ -10000,12 +10012,12 @@ function hu(n) {
10000
10012
  };
10001
10013
  }
10002
10014
  const ho = (n, e) => n.selection.empty ? !1 : (e && e(n.tr.deleteSelection().scrollIntoView()), !0);
10003
- function pu(n, e) {
10015
+ function hu(n, e) {
10004
10016
  let { $cursor: t } = n.selection;
10005
10017
  return !t || (e ? !e.endOfTextblock("backward", n) : t.parentOffset > 0) ? null : t;
10006
10018
  }
10007
- const mu = (n, e, t) => {
10008
- let r = pu(n, t);
10019
+ const pu = (n, e, t) => {
10020
+ let r = hu(n, t);
10009
10021
  if (!r)
10010
10022
  return !1;
10011
10023
  let i = po(r);
@@ -10014,11 +10026,11 @@ const mu = (n, e, t) => {
10014
10026
  return l == null ? !1 : (e && e(n.tr.lift(o, l).scrollIntoView()), !0);
10015
10027
  }
10016
10028
  let s = i.nodeBefore;
10017
- if (Cu(n, i, e, -1))
10029
+ if (Su(n, i, e, -1))
10018
10030
  return !0;
10019
10031
  if (r.parent.content.size == 0 && (yn(s, "end") || I.isSelectable(s)))
10020
10032
  for (let o = r.depth; ; o--) {
10021
- let l = xi(n.doc, r.before(o), r.after(o), E.empty);
10033
+ let l = vi(n.doc, r.before(o), r.after(o), E.empty);
10022
10034
  if (l && l.slice.size < l.to - l.from) {
10023
10035
  if (e) {
10024
10036
  let a = n.tr.step(l);
@@ -10031,19 +10043,19 @@ const mu = (n, e, t) => {
10031
10043
  }
10032
10044
  return s.isAtom && i.depth == r.depth - 1 ? (e && e(n.tr.delete(i.pos - s.nodeSize, i.pos).scrollIntoView()), !0) : !1;
10033
10045
  }, Mm = (n, e, t) => {
10034
- let r = pu(n, t);
10046
+ let r = hu(n, t);
10035
10047
  if (!r)
10036
10048
  return !1;
10037
10049
  let i = po(r);
10038
- return i ? gu(n, i, e) : !1;
10050
+ return i ? mu(n, i, e) : !1;
10039
10051
  }, Tm = (n, e, t) => {
10040
- let r = bu(n, t);
10052
+ let r = yu(n, t);
10041
10053
  if (!r)
10042
10054
  return !1;
10043
10055
  let i = mo(r);
10044
- return i ? gu(n, i, e) : !1;
10056
+ return i ? mu(n, i, e) : !1;
10045
10057
  };
10046
- function gu(n, e, t) {
10058
+ function mu(n, e, t) {
10047
10059
  let r = e.nodeBefore, i = r, s = e.pos - 1;
10048
10060
  for (; !i.isTextblock; s--) {
10049
10061
  if (i.type.spec.isolating)
@@ -10062,7 +10074,7 @@ function gu(n, e, t) {
10062
10074
  return !1;
10063
10075
  l = u;
10064
10076
  }
10065
- let c = xi(n.doc, s, a, E.empty);
10077
+ let c = vi(n.doc, s, a, E.empty);
10066
10078
  if (!c || c.from != s || c instanceof oe && c.slice.size >= a - s)
10067
10079
  return !1;
10068
10080
  if (t) {
@@ -10080,7 +10092,7 @@ function yn(n, e, t = !1) {
10080
10092
  }
10081
10093
  return !1;
10082
10094
  }
10083
- const yu = (n, e, t) => {
10095
+ const gu = (n, e, t) => {
10084
10096
  let { $head: r, empty: i } = n.selection, s = r;
10085
10097
  if (!i)
10086
10098
  return !1;
@@ -10102,22 +10114,22 @@ function po(n) {
10102
10114
  }
10103
10115
  return null;
10104
10116
  }
10105
- function bu(n, e) {
10117
+ function yu(n, e) {
10106
10118
  let { $cursor: t } = n.selection;
10107
10119
  return !t || (e ? !e.endOfTextblock("forward", n) : t.parentOffset < t.parent.content.size) ? null : t;
10108
10120
  }
10109
- const ku = (n, e, t) => {
10110
- let r = bu(n, t);
10121
+ const bu = (n, e, t) => {
10122
+ let r = yu(n, t);
10111
10123
  if (!r)
10112
10124
  return !1;
10113
10125
  let i = mo(r);
10114
10126
  if (!i)
10115
10127
  return !1;
10116
10128
  let s = i.nodeAfter;
10117
- if (Cu(n, i, e, 1))
10129
+ if (Su(n, i, e, 1))
10118
10130
  return !0;
10119
10131
  if (r.parent.content.size == 0 && (yn(s, "start") || I.isSelectable(s))) {
10120
- let o = xi(n.doc, r.before(), r.after(), E.empty);
10132
+ let o = vi(n.doc, r.before(), r.after(), E.empty);
10121
10133
  if (o && o.slice.size < o.to - o.from) {
10122
10134
  if (e) {
10123
10135
  let l = n.tr.step(o);
@@ -10127,7 +10139,7 @@ const ku = (n, e, t) => {
10127
10139
  }
10128
10140
  }
10129
10141
  return s.isAtom && i.depth == r.depth - 1 ? (e && e(n.tr.delete(i.pos, i.pos + s.nodeSize).scrollIntoView()), !0) : !1;
10130
- }, vu = (n, e, t) => {
10142
+ }, ku = (n, e, t) => {
10131
10143
  let { $head: r, empty: i } = n.selection, s = r;
10132
10144
  if (!i)
10133
10145
  return !1;
@@ -10156,7 +10168,7 @@ const Em = (n, e) => {
10156
10168
  if (t.node.isTextblock || !At(n.doc, t.from))
10157
10169
  return !1;
10158
10170
  i = t.from;
10159
- } else if (i = vi(n.doc, t.from, -1), i == null)
10171
+ } else if (i = xi(n.doc, t.from, -1), i == null)
10160
10172
  return !1;
10161
10173
  if (e) {
10162
10174
  let s = n.tr.join(i);
@@ -10169,7 +10181,7 @@ const Em = (n, e) => {
10169
10181
  if (t.node.isTextblock || !At(n.doc, t.to))
10170
10182
  return !1;
10171
10183
  r = t.to;
10172
- } else if (r = vi(n.doc, t.to, 1), r == null)
10184
+ } else if (r = xi(n.doc, t.to, 1), r == null)
10173
10185
  return !1;
10174
10186
  return e && e(n.tr.join(r).scrollIntoView()), !0;
10175
10187
  }, Am = (n, e) => {
@@ -10200,7 +10212,7 @@ const Nm = (n, e) => {
10200
10212
  a.setSelection(B.near(a.doc.resolve(l), 1)), e(a.scrollIntoView());
10201
10213
  }
10202
10214
  return !0;
10203
- }, wu = (n, e) => {
10215
+ }, vu = (n, e) => {
10204
10216
  let t = n.selection, { $from: r, $to: i } = t;
10205
10217
  if (t instanceof Ie || r.parent.inlineContent || i.parent.inlineContent)
10206
10218
  return !1;
@@ -10212,7 +10224,7 @@ const Nm = (n, e) => {
10212
10224
  l.setSelection(R.create(l.doc, o + 1)), e(l.scrollIntoView());
10213
10225
  }
10214
10226
  return !0;
10215
- }, Su = (n, e) => {
10227
+ }, wu = (n, e) => {
10216
10228
  let { $cursor: t } = n.selection;
10217
10229
  if (!t || t.parent.content.size)
10218
10230
  return !1;
@@ -10261,17 +10273,17 @@ function Lm(n, e, t) {
10261
10273
  let r = e.nodeBefore, i = e.nodeAfter, s = e.index();
10262
10274
  return !r || !i || !r.type.compatibleContent(i.type) ? !1 : !r.content.size && e.parent.canReplace(s - 1, s) ? (t && t(n.tr.delete(e.pos - r.nodeSize, e.pos).scrollIntoView()), !0) : !e.parent.canReplace(s, s + 1) || !(i.isTextblock || At(n.doc, e.pos)) ? !1 : (t && t(n.tr.join(e.pos).scrollIntoView()), !0);
10263
10275
  }
10264
- function Cu(n, e, t, r) {
10276
+ function Su(n, e, t, r) {
10265
10277
  let i = e.nodeBefore, s = e.nodeAfter, o, l, a = i.type.spec.isolating || s.type.spec.isolating;
10266
10278
  if (!a && Lm(n, e, t))
10267
10279
  return !0;
10268
10280
  let c = !a && e.parent.canReplace(e.index(), e.index() + 1);
10269
10281
  if (c && (o = (l = i.contentMatchAt(i.childCount)).findWrapping(s.type)) && l.matchType(o[0] || s.type).validEnd) {
10270
10282
  if (t) {
10271
- let h = e.pos + s.nodeSize, p = x.empty;
10283
+ let h = e.pos + s.nodeSize, p = v.empty;
10272
10284
  for (let b = o.length - 1; b >= 0; b--)
10273
- p = x.from(o[b].create(null, p));
10274
- p = x.from(i.copy(p));
10285
+ p = v.from(o[b].create(null, p));
10286
+ p = v.from(i.copy(p));
10275
10287
  let m = n.tr.step(new le(e.pos - 1, h, e.pos, h, new E(p, 1, 0), o.length, !0)), y = m.doc.resolve(h + 2 * o.length);
10276
10288
  y.nodeAfter && y.nodeAfter.type == i.type && At(m.doc, y.pos) && m.join(y.pos), t(m.scrollIntoView());
10277
10289
  }
@@ -10289,9 +10301,9 @@ function Cu(n, e, t, r) {
10289
10301
  y++;
10290
10302
  if (h.canReplace(h.childCount, h.childCount, m.content)) {
10291
10303
  if (t) {
10292
- let b = x.empty;
10304
+ let b = v.empty;
10293
10305
  for (let M = p.length - 1; M >= 0; M--)
10294
- b = x.from(p[M].copy(b));
10306
+ b = v.from(p[M].copy(b));
10295
10307
  let C = n.tr.step(new le(e.pos - p.length, e.pos + s.nodeSize, e.pos + y, e.pos + s.nodeSize - y, new E(b, p.length, 0), 0, !0));
10296
10308
  t(C.scrollIntoView());
10297
10309
  }
@@ -10300,7 +10312,7 @@ function Cu(n, e, t, r) {
10300
10312
  }
10301
10313
  return !1;
10302
10314
  }
10303
- function Mu(n) {
10315
+ function Cu(n) {
10304
10316
  return function(e, t) {
10305
10317
  let r = e.selection, i = n < 0 ? r.$from : r.$to, s = i.depth;
10306
10318
  for (; i.node(s).isInline; ) {
@@ -10311,7 +10323,7 @@ function Mu(n) {
10311
10323
  return i.node(s).isTextblock ? (t && t(e.tr.setSelection(R.create(e.doc, n < 0 ? i.start(s) : i.end(s)))), !0) : !1;
10312
10324
  };
10313
10325
  }
10314
- const Pm = Mu(-1), Bm = Mu(1);
10326
+ const Pm = Cu(-1), Bm = Cu(1);
10315
10327
  function zm(n, e = null) {
10316
10328
  return function(t, r) {
10317
10329
  let { $from: i, $to: s } = t.selection, o = i.blockRange(s), l = o && to(o, n, e);
@@ -10356,9 +10368,9 @@ function yo(...n) {
10356
10368
  return !1;
10357
10369
  };
10358
10370
  }
10359
- yo(ho, mu, yu);
10360
- yo(ho, ku, vu);
10361
- yo(xu, wu, Su, Dm);
10371
+ yo(ho, pu, gu);
10372
+ yo(ho, bu, ku);
10373
+ yo(xu, vu, wu, Dm);
10362
10374
  typeof navigator < "u" ? /Mac|iP(hone|[oa]d)/.test(navigator.platform) : typeof os < "u" && os.platform && os.platform() == "darwin";
10363
10375
  function Fm(n, e = null) {
10364
10376
  return function(t, r) {
@@ -10381,9 +10393,9 @@ function $m(n, e, t, r = null) {
10381
10393
  return l ? (n && Hm(n, e, l, i, t), !0) : !1;
10382
10394
  }
10383
10395
  function Hm(n, e, t, r, i) {
10384
- let s = x.empty;
10396
+ let s = v.empty;
10385
10397
  for (let u = t.length - 1; u >= 0; u--)
10386
- s = x.from(t[u].type.create(t[u].attrs, s));
10398
+ s = v.from(t[u].type.create(t[u].attrs, s));
10387
10399
  n.step(new le(e.start - (r ? 2 : 0), e.end, e.start, e.end, new E(s, 0, 0), t.length, !0));
10388
10400
  let o = 0;
10389
10401
  for (let u = 0; u < t.length; u++)
@@ -10401,7 +10413,7 @@ function Vm(n) {
10401
10413
  }
10402
10414
  function jm(n, e, t, r) {
10403
10415
  let i = n.tr, s = r.end, o = r.$to.end(r.depth);
10404
- s < o && (i.step(new le(s - 1, o, s, o, new E(x.from(t.create(null, r.parent.copy())), 1, 0), 1, !0)), r = new Rr(i.doc.resolve(r.$from.pos), i.doc.resolve(o), r.depth));
10416
+ s < o && (i.step(new le(s - 1, o, s, o, new E(v.from(t.create(null, r.parent.copy())), 1, 0), 1, !0)), r = new Rr(i.doc.resolve(r.$from.pos), i.doc.resolve(o), r.depth));
10405
10417
  const l = kn(r);
10406
10418
  if (l == null)
10407
10419
  return !1;
@@ -10417,10 +10429,10 @@ function _m(n, e, t) {
10417
10429
  if (r.mapping.map(t.end) != t.start + s.nodeAfter.nodeSize)
10418
10430
  return !1;
10419
10431
  let l = t.startIndex == 0, a = t.endIndex == i.childCount, c = s.node(-1), u = s.index(-1);
10420
- if (!c.canReplace(u + (l ? 0 : 1), u + 1, o.content.append(a ? x.empty : x.from(i))))
10432
+ if (!c.canReplace(u + (l ? 0 : 1), u + 1, o.content.append(a ? v.empty : v.from(i))))
10421
10433
  return !1;
10422
10434
  let d = s.pos, f = d + o.nodeSize;
10423
- return r.step(new le(d - (l ? 1 : 0), f + (a ? 1 : 0), d + 1, f - 1, new E((l ? x.empty : x.from(i.copy(x.empty))).append(a ? x.empty : x.from(i.copy(x.empty))), l ? 0 : 1, a ? 0 : 1), l ? 0 : 1)), e(r.scrollIntoView()), !0;
10435
+ return r.step(new le(d - (l ? 1 : 0), f + (a ? 1 : 0), d + 1, f - 1, new E((l ? v.empty : v.from(i.copy(v.empty))).append(a ? v.empty : v.from(i.copy(v.empty))), l ? 0 : 1, a ? 0 : 1), l ? 0 : 1)), e(r.scrollIntoView()), !0;
10424
10436
  }
10425
10437
  function Wm(n) {
10426
10438
  return function(e, t) {
@@ -10434,7 +10446,7 @@ function Wm(n) {
10434
10446
  if (a.type != n)
10435
10447
  return !1;
10436
10448
  if (t) {
10437
- let c = a.lastChild && a.lastChild.type == l.type, u = x.from(c ? n.create() : null), d = new E(x.from(n.create(null, x.from(l.type.create(null, u)))), c ? 3 : 1, 0), f = s.start, h = s.end;
10449
+ let c = a.lastChild && a.lastChild.type == l.type, u = v.from(c ? n.create() : null), d = new E(v.from(n.create(null, v.from(l.type.create(null, u)))), c ? 3 : 1, 0), f = s.start, h = s.end;
10438
10450
  t(e.tr.step(new le(f - (c ? 3 : 1), h, f, h, d, 1, !0)).scrollIntoView());
10439
10451
  }
10440
10452
  return !0;
@@ -10564,7 +10576,7 @@ function Oi(n) {
10564
10576
  markExtensions: r
10565
10577
  };
10566
10578
  }
10567
- function Tu(n) {
10579
+ function Mu(n) {
10568
10580
  const e = [], { nodeExtensions: t, markExtensions: r } = Oi(n), i = [...t, ...r], s = {
10569
10581
  default: null,
10570
10582
  rendered: !0,
@@ -10656,11 +10668,11 @@ function zs(n, e) {
10656
10668
  [t.name]: n.attrs[t.name]
10657
10669
  }).reduce((t, r) => ue(t, r), {});
10658
10670
  }
10659
- function Eu(n) {
10671
+ function Tu(n) {
10660
10672
  return typeof n == "function";
10661
10673
  }
10662
10674
  function $(n, e = void 0, ...t) {
10663
- return Eu(n) ? e ? n.bind(e)(...t) : n(...t) : n;
10675
+ return Tu(n) ? e ? n.bind(e)(...t) : n(...t) : n;
10664
10676
  }
10665
10677
  function Um(n = {}) {
10666
10678
  return Object.keys(n).length === 0 && n.constructor === Object;
@@ -10694,7 +10706,7 @@ function la(n) {
10694
10706
  }
10695
10707
  function Jm(n, e) {
10696
10708
  var t;
10697
- const r = Tu(n), { nodeExtensions: i, markExtensions: s } = Oi(n), o = (t = i.find((c) => O(c, "topNode"))) === null || t === void 0 ? void 0 : t.name, l = Object.fromEntries(i.map((c) => {
10709
+ const r = Mu(n), { nodeExtensions: i, markExtensions: s } = Oi(n), o = (t = i.find((c) => O(c, "topNode"))) === null || t === void 0 ? void 0 : t.name, l = Object.fromEntries(i.map((c) => {
10698
10710
  const u = r.filter((b) => b.type === c.name), d = {
10699
10711
  name: c.name,
10700
10712
  options: c.options,
@@ -10764,7 +10776,7 @@ function Jm(n, e) {
10764
10776
  HTMLAttributes: zs(y, u)
10765
10777
  })), [c.name, h];
10766
10778
  }));
10767
- return new pc({
10779
+ return new hc({
10768
10780
  topNode: o,
10769
10781
  nodes: l,
10770
10782
  marks: a
@@ -10868,7 +10880,7 @@ function Xm(n) {
10868
10880
  const a = i.getMeta("applyInputRules");
10869
10881
  return !!a && setTimeout(() => {
10870
10882
  let { text: u } = a;
10871
- typeof u == "string" ? u = u : u = bo(x.from(u), o.schema);
10883
+ typeof u == "string" ? u = u : u = bo(v.from(u), o.schema);
10872
10884
  const { from: d } = a, f = d + u.length;
10873
10885
  mr({
10874
10886
  editor: e,
@@ -11014,12 +11026,12 @@ function ng(n) {
11014
11026
  tg(b, s.find, o).forEach((M) => {
11015
11027
  if (M.index === void 0)
11016
11028
  return;
11017
- const g = m + M.index + 1, S = g + M[0].length, v = {
11029
+ const g = m + M.index + 1, S = g + M[0].length, x = {
11018
11030
  from: t.tr.mapping.map(g),
11019
11031
  to: t.tr.mapping.map(S)
11020
11032
  }, P = s.handler({
11021
11033
  state: t,
11022
- range: v,
11034
+ range: x,
11023
11035
  match: M,
11024
11036
  commands: a,
11025
11037
  chain: c,
@@ -11109,12 +11121,12 @@ function ig(n) {
11109
11121
  return;
11110
11122
  if (C) {
11111
11123
  let { text: S } = b;
11112
- typeof S == "string" ? S = S : S = bo(x.from(S), h.schema);
11113
- const { from: v } = b, P = v + S.length, T = rg(S);
11124
+ typeof S == "string" ? S = S : S = bo(v.from(S), h.schema);
11125
+ const { from: x } = b, P = x + S.length, T = rg(S);
11114
11126
  return a({
11115
11127
  rule: u,
11116
11128
  state: h,
11117
- from: v,
11129
+ from: x,
11118
11130
  to: { b: P },
11119
11131
  pasteEvt: T
11120
11132
  });
@@ -11242,7 +11254,7 @@ class dn {
11242
11254
  * @returns An array of attributes
11243
11255
  */
11244
11256
  get attributes() {
11245
- return Tu(this.extensions);
11257
+ return Mu(this.extensions);
11246
11258
  }
11247
11259
  /**
11248
11260
  * Get all node views from the extensions.
@@ -11334,7 +11346,7 @@ class re {
11334
11346
  })), t;
11335
11347
  }
11336
11348
  }
11337
- function Ou(n, e, t) {
11349
+ function Eu(n, e, t) {
11338
11350
  const { from: r, to: i } = e, { blockSeparator: s = `
11339
11351
 
11340
11352
  `, textSerializers: o = {} } = t || {};
@@ -11354,7 +11366,7 @@ function Ou(n, e, t) {
11354
11366
  a.isText && (l += (f = a?.text) === null || f === void 0 ? void 0 : f.slice(Math.max(r, c) - c, i - c));
11355
11367
  }), l;
11356
11368
  }
11357
- function vo(n) {
11369
+ function xo(n) {
11358
11370
  return Object.fromEntries(Object.entries(n.nodes).filter(([, e]) => e.spec.toText).map(([e, t]) => [e, t.spec.toText]));
11359
11371
  }
11360
11372
  const og = re.create({
@@ -11370,8 +11382,8 @@ const og = re.create({
11370
11382
  key: new me("clipboardTextSerializer"),
11371
11383
  props: {
11372
11384
  clipboardTextSerializer: () => {
11373
- const { editor: n } = this, { state: e, schema: t } = n, { doc: r, selection: i } = e, { ranges: s } = i, o = Math.min(...s.map((u) => u.$from.pos)), l = Math.max(...s.map((u) => u.$to.pos)), a = vo(t);
11374
- return Ou(r, { from: o, to: l }, {
11385
+ const { editor: n } = this, { state: e, schema: t } = n, { doc: r, selection: i } = e, { ranges: s } = i, o = Math.min(...s.map((u) => u.$from.pos)), l = Math.max(...s.map((u) => u.$to.pos)), a = xo(t);
11386
+ return Eu(r, { from: o, to: l }, {
11375
11387
  ...this.options.blockSeparator !== void 0 ? { blockSeparator: this.options.blockSeparator } : {},
11376
11388
  textSerializers: a
11377
11389
  });
@@ -11400,7 +11412,7 @@ const og = re.create({
11400
11412
  (p || p === 0) && e.lift(h, p);
11401
11413
  });
11402
11414
  }), !0;
11403
- }, ug = (n) => (e) => n(e), dg = () => ({ state: n, dispatch: e }) => wu(n, e), fg = (n, e) => ({ editor: t, tr: r }) => {
11415
+ }, ug = (n) => (e) => n(e), dg = () => ({ state: n, dispatch: e }) => vu(n, e), fg = (n, e) => ({ editor: t, tr: r }) => {
11404
11416
  const { state: i } = t, s = i.doc.slice(n.from, n.to);
11405
11417
  r.deleteRange(n.from, n.to);
11406
11418
  const o = r.mapping.map(e);
@@ -11438,7 +11450,7 @@ function Vr(n, e, t = { strict: !0 }) {
11438
11450
  const r = Object.keys(e);
11439
11451
  return r.length ? r.every((i) => t.strict ? e[i] === n[i] : ko(e[i]) ? e[i].test(n[i]) : e[i] === n[i]) : !0;
11440
11452
  }
11441
- function Au(n, e, t = {}) {
11453
+ function Ou(n, e, t = {}) {
11442
11454
  return n.find((r) => r.type === e && Vr(
11443
11455
  // Only check equality for the attributes that are provided
11444
11456
  Object.fromEntries(Object.keys(t).map((i) => [i, r.attrs[i]])),
@@ -11446,14 +11458,14 @@ function Au(n, e, t = {}) {
11446
11458
  ));
11447
11459
  }
11448
11460
  function ca(n, e, t = {}) {
11449
- return !!Au(n, e, t);
11461
+ return !!Ou(n, e, t);
11450
11462
  }
11451
- function xo(n, e, t) {
11463
+ function vo(n, e, t) {
11452
11464
  var r;
11453
11465
  if (!n || !e)
11454
11466
  return;
11455
11467
  let i = n.parent.childAfter(n.parentOffset);
11456
- if ((!i.node || !i.node.marks.some((u) => u.type === e)) && (i = n.parent.childBefore(n.parentOffset)), !i.node || !i.node.marks.some((u) => u.type === e) || (t = t || ((r = i.node.marks[0]) === null || r === void 0 ? void 0 : r.attrs), !Au([...i.node.marks], e, t)))
11468
+ if ((!i.node || !i.node.marks.some((u) => u.type === e)) && (i = n.parent.childBefore(n.parentOffset)), !i.node || !i.node.marks.some((u) => u.type === e) || (t = t || ((r = i.node.marks[0]) === null || r === void 0 ? void 0 : r.attrs), !Ou([...i.node.marks], e, t)))
11457
11469
  return;
11458
11470
  let o = i.index, l = n.start() + i.offset, a = o + 1, c = l + i.node.nodeSize;
11459
11471
  for (; o > 0 && ca([...n.parent.child(o - 1).marks], e, t); )
@@ -11476,14 +11488,14 @@ function It(n, e) {
11476
11488
  const kg = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
11477
11489
  const s = It(n, r.schema), { doc: o, selection: l } = t, { $from: a, from: c, to: u } = l;
11478
11490
  if (i) {
11479
- const d = xo(a, s, e);
11491
+ const d = vo(a, s, e);
11480
11492
  if (d && d.from <= c && d.to >= u) {
11481
11493
  const f = R.create(o, d.from, d.to);
11482
11494
  t.setSelection(f);
11483
11495
  }
11484
11496
  }
11485
11497
  return !0;
11486
- }, vg = (n) => (e) => {
11498
+ }, xg = (n) => (e) => {
11487
11499
  const t = typeof n == "function" ? n(e) : n;
11488
11500
  for (let r = 0; r < t.length; r += 1)
11489
11501
  if (t[r](e))
@@ -11496,7 +11508,7 @@ function wo(n) {
11496
11508
  function ct(n = 0, e = 0, t = 0) {
11497
11509
  return Math.min(Math.max(n, e), t);
11498
11510
  }
11499
- function Nu(n, e = null) {
11511
+ function Au(n, e = null) {
11500
11512
  if (!e)
11501
11513
  return null;
11502
11514
  const t = B.atStart(n), r = B.atEnd(n);
@@ -11507,7 +11519,7 @@ function Nu(n, e = null) {
11507
11519
  const i = t.from, s = r.to;
11508
11520
  return e === "all" ? R.create(n, ct(0, i, s), ct(n.content.size, i, s)) : R.create(n, ct(e, i, s), ct(e, i, s));
11509
11521
  }
11510
- function xg() {
11522
+ function vg() {
11511
11523
  return navigator.platform === "Android" || /android/i.test(navigator.userAgent);
11512
11524
  }
11513
11525
  function So() {
@@ -11526,7 +11538,7 @@ const wg = (n = null, e = {}) => ({ editor: t, view: r, tr: i, dispatch: s }) =>
11526
11538
  ...e
11527
11539
  };
11528
11540
  const o = () => {
11529
- (So() || xg()) && r.dom.focus(), requestAnimationFrame(() => {
11541
+ (So() || vg()) && r.dom.focus(), requestAnimationFrame(() => {
11530
11542
  t.isDestroyed || (r.focus(), e?.scrollIntoView && t.commands.scrollIntoView());
11531
11543
  });
11532
11544
  };
@@ -11534,22 +11546,22 @@ const wg = (n = null, e = {}) => ({ editor: t, view: r, tr: i, dispatch: s }) =>
11534
11546
  return !0;
11535
11547
  if (s && n === null && !wo(t.state.selection))
11536
11548
  return o(), !0;
11537
- const l = Nu(i.doc, n) || t.state.selection, a = t.state.selection.eq(l);
11549
+ const l = Au(i.doc, n) || t.state.selection, a = t.state.selection.eq(l);
11538
11550
  return s && (a || i.setSelection(l), a && i.storedMarks && i.setStoredMarks(i.storedMarks), o()), !0;
11539
- }, Sg = (n, e) => (t) => n.every((r, i) => e(r, { ...t, index: i })), Cg = (n, e) => ({ tr: t, commands: r }) => r.insertContentAt({ from: t.selection.from, to: t.selection.to }, n, e), Iu = (n) => {
11551
+ }, Sg = (n, e) => (t) => n.every((r, i) => e(r, { ...t, index: i })), Cg = (n, e) => ({ tr: t, commands: r }) => r.insertContentAt({ from: t.selection.from, to: t.selection.to }, n, e), Nu = (n) => {
11540
11552
  const e = n.childNodes;
11541
11553
  for (let t = e.length - 1; t >= 0; t -= 1) {
11542
11554
  const r = e[t];
11543
- r.nodeType === 3 && r.nodeValue && /^(\n\s\s|\n)$/.test(r.nodeValue) ? n.removeChild(r) : r.nodeType === 1 && Iu(r);
11555
+ r.nodeType === 3 && r.nodeValue && /^(\n\s\s|\n)$/.test(r.nodeValue) ? n.removeChild(r) : r.nodeType === 1 && Nu(r);
11544
11556
  }
11545
11557
  return n;
11546
11558
  };
11547
11559
  function br(n) {
11548
11560
  const e = `<body>${n}</body>`, t = new window.DOMParser().parseFromString(e, "text/html").body;
11549
- return Iu(t);
11561
+ return Nu(t);
11550
11562
  }
11551
11563
  function Jn(n, e, t) {
11552
- if (n instanceof St || n instanceof x)
11564
+ if (n instanceof St || n instanceof v)
11553
11565
  return n;
11554
11566
  t = {
11555
11567
  slice: !0,
@@ -11560,7 +11572,7 @@ function Jn(n, e, t) {
11560
11572
  if (r)
11561
11573
  try {
11562
11574
  if (Array.isArray(n) && n.length > 0)
11563
- return x.fromArray(n.map((l) => e.nodeFromJSON(l)));
11575
+ return v.fromArray(n.map((l) => e.nodeFromJSON(l)));
11564
11576
  const o = e.nodeFromJSON(n);
11565
11577
  return t.errorOnInvalidContent && o.check(), o;
11566
11578
  } catch (s) {
@@ -11571,7 +11583,7 @@ function Jn(n, e, t) {
11571
11583
  if (i) {
11572
11584
  if (t.errorOnInvalidContent) {
11573
11585
  let o = !1, l = "";
11574
- const a = new pc({
11586
+ const a = new hc({
11575
11587
  topNode: e.spec.topNode,
11576
11588
  marks: e.spec.marks,
11577
11589
  // Prosemirror's schemas are executed such that: the last to execute, matches last
@@ -11661,7 +11673,7 @@ const Tg = (n) => !("type" in n), Eg = (n, e, t) => ({ tr: r, dispatch: i, edito
11661
11673
  if (f) {
11662
11674
  if (Array.isArray(e))
11663
11675
  m = e.map((y) => y.text || "").join("");
11664
- else if (e instanceof x) {
11676
+ else if (e instanceof v) {
11665
11677
  let y = "";
11666
11678
  e.forEach((b) => {
11667
11679
  b.text && (y += b.text);
@@ -11673,22 +11685,22 @@ const Tg = (n) => !("type" in n), Eg = (n, e, t) => ({ tr: r, dispatch: i, edito
11673
11685
  t.updateSelection && Mg(r, r.steps.length - 1, -1), t.applyInputRules && r.setMeta("applyInputRules", { from: u, text: m }), t.applyPasteRules && r.setMeta("applyPasteRules", { from: u, text: m });
11674
11686
  }
11675
11687
  return !0;
11676
- }, Og = () => ({ state: n, dispatch: e }) => Em(n, e), Ag = () => ({ state: n, dispatch: e }) => Om(n, e), Ng = () => ({ state: n, dispatch: e }) => mu(n, e), Ig = () => ({ state: n, dispatch: e }) => ku(n, e), Dg = () => ({ state: n, dispatch: e, tr: t }) => {
11688
+ }, Og = () => ({ state: n, dispatch: e }) => Em(n, e), Ag = () => ({ state: n, dispatch: e }) => Om(n, e), Ng = () => ({ state: n, dispatch: e }) => pu(n, e), Ig = () => ({ state: n, dispatch: e }) => bu(n, e), Dg = () => ({ state: n, dispatch: e, tr: t }) => {
11677
11689
  try {
11678
- const r = vi(n.doc, n.selection.$from.pos, -1);
11690
+ const r = xi(n.doc, n.selection.$from.pos, -1);
11679
11691
  return r == null ? !1 : (t.join(r, 2), e && e(t), !0);
11680
11692
  } catch {
11681
11693
  return !1;
11682
11694
  }
11683
11695
  }, Rg = () => ({ state: n, dispatch: e, tr: t }) => {
11684
11696
  try {
11685
- const r = vi(n.doc, n.selection.$from.pos, 1);
11697
+ const r = xi(n.doc, n.selection.$from.pos, 1);
11686
11698
  return r == null ? !1 : (t.join(r, 2), e && e(t), !0);
11687
11699
  } catch {
11688
11700
  return !1;
11689
11701
  }
11690
11702
  }, Lg = () => ({ state: n, dispatch: e }) => Mm(n, e), Pg = () => ({ state: n, dispatch: e }) => Tm(n, e);
11691
- function Du() {
11703
+ function Iu() {
11692
11704
  return typeof navigator < "u" ? /Mac/.test(navigator.platform) : !1;
11693
11705
  }
11694
11706
  function Bg(n) {
@@ -11707,7 +11719,7 @@ function Bg(n) {
11707
11719
  else if (/^s(hift)?$/i.test(a))
11708
11720
  s = !0;
11709
11721
  else if (/^mod$/i.test(a))
11710
- So() || Du() ? o = !0 : i = !0;
11722
+ So() || Iu() ? o = !0 : i = !0;
11711
11723
  else
11712
11724
  throw new Error(`Unrecognized modifier name: ${a}`);
11713
11725
  }
@@ -11748,7 +11760,7 @@ function Gn(n, e, t = {}) {
11748
11760
  const Fg = (n, e = {}) => ({ state: t, dispatch: r }) => {
11749
11761
  const i = ce(n, t.schema);
11750
11762
  return Gn(t, i, e) ? Am(t, r) : !1;
11751
- }, $g = () => ({ state: n, dispatch: e }) => Su(n, e), Hg = (n) => ({ state: e, dispatch: t }) => {
11763
+ }, $g = () => ({ state: n, dispatch: e }) => wu(n, e), Hg = (n) => ({ state: e, dispatch: t }) => {
11752
11764
  const r = ce(n, e.schema);
11753
11765
  return Vm(r)(e, t);
11754
11766
  }, Vg = () => ({ state: n, dispatch: e }) => xu(n, e);
@@ -11775,7 +11787,7 @@ const jg = (n, e) => ({ tr: t, state: r, dispatch: i }) => {
11775
11787
  n.setSelection(t);
11776
11788
  }
11777
11789
  return !0;
11778
- }, Kg = () => ({ state: n, dispatch: e }) => yu(n, e), Ug = () => ({ state: n, dispatch: e }) => vu(n, e), qg = () => ({ state: n, dispatch: e }) => Rm(n, e), Jg = () => ({ state: n, dispatch: e }) => Bm(n, e), Gg = () => ({ state: n, dispatch: e }) => Pm(n, e);
11790
+ }, Kg = () => ({ state: n, dispatch: e }) => gu(n, e), Ug = () => ({ state: n, dispatch: e }) => ku(n, e), qg = () => ({ state: n, dispatch: e }) => Rm(n, e), Jg = () => ({ state: n, dispatch: e }) => Bm(n, e), Gg = () => ({ state: n, dispatch: e }) => Pm(n, e);
11779
11791
  function Fs(n, e, t = {}, r = {}) {
11780
11792
  return Jn(n, e, {
11781
11793
  slice: !1,
@@ -11797,7 +11809,7 @@ const Yg = (n, e = !1, t = {}, r = {}) => ({ editor: i, tr: s, dispatch: o, comm
11797
11809
  errorOnInvalidContent: (c = r.errorOnInvalidContent) !== null && c !== void 0 ? c : i.options.enableContentCheck
11798
11810
  });
11799
11811
  };
11800
- function Ru(n, e) {
11812
+ function Du(n, e) {
11801
11813
  const t = It(e, n.schema), { from: r, to: i, empty: s } = n.selection, o = [];
11802
11814
  s ? (n.storedMarks && o.push(...n.storedMarks), o.push(...n.selection.$head.marks())) : n.doc.nodesBetween(r, i, (a) => {
11803
11815
  o.push(...a.marks);
@@ -11806,7 +11818,7 @@ function Ru(n, e) {
11806
11818
  return l ? { ...l.attrs } : {};
11807
11819
  }
11808
11820
  function Xg(n, e) {
11809
- const t = new Nc(n);
11821
+ const t = new Ac(n);
11810
11822
  return e.forEach((r) => {
11811
11823
  r.steps.forEach((i) => {
11812
11824
  t.step(i);
@@ -11845,12 +11857,12 @@ function ey(n, e) {
11845
11857
  function Co(n) {
11846
11858
  return (e) => ey(e.$from, n);
11847
11859
  }
11848
- function Lu(n, e) {
11860
+ function Ru(n, e) {
11849
11861
  const t = {
11850
11862
  from: 0,
11851
11863
  to: n.content.size
11852
11864
  };
11853
- return Ou(n, t, e);
11865
+ return Eu(n, t, e);
11854
11866
  }
11855
11867
  function ty(n, e) {
11856
11868
  const t = ce(e, n.schema), { from: r, to: i } = n.selection, s = [];
@@ -11862,7 +11874,7 @@ function ty(n, e) {
11862
11874
  }
11863
11875
  function Mo(n, e) {
11864
11876
  const t = Ii(typeof e == "string" ? e : e.name, n.schema);
11865
- return t === "node" ? ty(n, e) : t === "mark" ? Ru(n, e) : {};
11877
+ return t === "node" ? ty(n, e) : t === "mark" ? Du(n, e) : {};
11866
11878
  }
11867
11879
  function ny(n, e = JSON.stringify) {
11868
11880
  const t = {};
@@ -11907,7 +11919,7 @@ function iy(n) {
11907
11919
  function To(n, e, t) {
11908
11920
  const r = [];
11909
11921
  return n === e ? t.resolve(n).marks().forEach((i) => {
11910
- const s = t.resolve(n), o = xo(s, i.type);
11922
+ const s = t.resolve(n), o = vo(s, i.type);
11911
11923
  o && r.push({
11912
11924
  mark: i,
11913
11925
  ...o
@@ -11988,10 +12000,10 @@ function Eo(n, { checkChildren: e = !0, ignoreWhitespace: t = !1 } = {}) {
11988
12000
  }
11989
12001
  return !1;
11990
12002
  }
11991
- function Pu(n) {
12003
+ function Lu(n) {
11992
12004
  return n instanceof I;
11993
12005
  }
11994
- function Bu(n, e, t) {
12006
+ function Pu(n, e, t) {
11995
12007
  const i = n.state.doc.content.size, s = ct(e, 0, i), o = ct(t, 0, i), l = n.coordsAtPos(s), a = n.coordsAtPos(o, -1), c = Math.min(l.top, a.top), u = Math.max(l.bottom, a.bottom), d = Math.min(l.left, a.left), f = Math.max(l.right, a.right), h = f - d, p = u - c, b = {
11996
12008
  top: c,
11997
12009
  bottom: u,
@@ -12033,7 +12045,7 @@ const ly = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
12033
12045
  const { selection: s } = t, { empty: o, ranges: l } = s, a = It(n, r.schema);
12034
12046
  if (i)
12035
12047
  if (o) {
12036
- const c = Ru(r, a);
12048
+ const c = Du(r, a);
12037
12049
  t.addStoredMark(a.create({
12038
12050
  ...c,
12039
12051
  ...e
@@ -12118,19 +12130,19 @@ const hy = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
12118
12130
  if (a.depth === 2 || a.node(-3).type !== l || a.index(-2) !== a.node(-2).childCount - 1)
12119
12131
  return !1;
12120
12132
  if (i) {
12121
- let b = x.empty;
12133
+ let b = v.empty;
12122
12134
  const C = a.index(-1) ? 1 : a.index(-2) ? 2 : 3;
12123
12135
  for (let T = a.depth - C; T >= a.depth - 3; T -= 1)
12124
- b = x.from(a.node(T).copy(b));
12136
+ b = v.from(a.node(T).copy(b));
12125
12137
  const M = a.indexAfter(-1) < a.node(-2).childCount ? 1 : a.indexAfter(-2) < a.node(-3).childCount ? 2 : 3, g = {
12126
12138
  ...Tr(f, a.node().type.name, a.node().attrs),
12127
12139
  ...e
12128
12140
  }, S = ((o = l.contentMatch.defaultType) === null || o === void 0 ? void 0 : o.createAndFill(g)) || void 0;
12129
- b = b.append(x.from(l.createAndFill(null, S) || void 0));
12130
- const v = a.before(a.depth - (C - 1));
12131
- t.replace(v, a.after(-M), new E(b, 4 - C, 0));
12141
+ b = b.append(v.from(l.createAndFill(null, S) || void 0));
12142
+ const x = a.before(a.depth - (C - 1));
12143
+ t.replace(x, a.after(-M), new E(b, 4 - C, 0));
12132
12144
  let P = -1;
12133
- t.doc.nodesBetween(v, t.doc.content.size, (T, z) => {
12145
+ t.doc.nodesBetween(x, t.doc.content.size, (T, z) => {
12134
12146
  if (P > -1)
12135
12147
  return !1;
12136
12148
  T.isTextblock && T.content.size === 0 && (P = z + 1);
@@ -12156,7 +12168,7 @@ const hy = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
12156
12168
  const { selection: b, storedMarks: C } = r, { splittableMarks: M } = s.extensionManager, g = C || b.$to.parentOffset && b.$from.marks();
12157
12169
  if (t.split(a.pos, 2, y).scrollIntoView(), !g || !i)
12158
12170
  return !0;
12159
- const S = g.filter((v) => M.includes(v.type.name));
12171
+ const S = g.filter((x) => M.includes(x.type.name));
12160
12172
  t.ensureMarks(S);
12161
12173
  }
12162
12174
  return !0;
@@ -12182,7 +12194,7 @@ const hy = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
12182
12194
  const { extensions: d, splittableMarks: f } = i.extensionManager, h = ce(n, o.schema), p = ce(e, o.schema), { selection: m, storedMarks: y } = o, { $from: b, $to: C } = m, M = b.blockRange(C), g = y || m.$to.parentOffset && m.$from.marks();
12183
12195
  if (!M)
12184
12196
  return !1;
12185
- const S = Co((v) => da(v.type.name, d))(m);
12197
+ const S = Co((x) => da(x.type.name, d))(m);
12186
12198
  if (M.depth >= 1 && S && M.depth - S.depth <= 1) {
12187
12199
  if (S.node.type === h)
12188
12200
  return c.liftListItem(p);
@@ -12190,8 +12202,8 @@ const hy = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
12190
12202
  return a().command(() => (s.setNodeMarkup(S.pos, h), !0)).command(() => rs(s, h)).command(() => is(s, h)).run();
12191
12203
  }
12192
12204
  return !t || !g || !l ? a().command(() => u().wrapInList(h, r) ? !0 : c.clearNodes()).wrapInList(h, r).command(() => rs(s, h)).command(() => is(s, h)).run() : a().command(() => {
12193
- const v = u().wrapInList(h, r), P = g.filter((T) => f.includes(T.type.name));
12194
- return s.ensureMarks(P), v ? !0 : c.clearNodes();
12205
+ const x = u().wrapInList(h, r), P = g.filter((T) => f.includes(T.type.name));
12206
+ return s.ensureMarks(P), x ? !0 : c.clearNodes();
12195
12207
  }).wrapInList(h, r).command(() => rs(s, h)).command(() => is(s, h)).run();
12196
12208
  }, gy = (n, e = {}, t = {}) => ({ state: r, commands: i }) => {
12197
12209
  const { extendEmptyMarkRange: s = !1 } = t, o = It(n, r.schema);
@@ -12223,19 +12235,19 @@ const hy = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
12223
12235
  }
12224
12236
  }
12225
12237
  return !1;
12226
- }, vy = () => ({ tr: n, dispatch: e }) => {
12238
+ }, xy = () => ({ tr: n, dispatch: e }) => {
12227
12239
  const { selection: t } = n, { empty: r, ranges: i } = t;
12228
12240
  return r || e && i.forEach((s) => {
12229
12241
  n.removeMark(s.$from.pos, s.$to.pos);
12230
12242
  }), !0;
12231
- }, xy = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
12243
+ }, vy = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
12232
12244
  var s;
12233
12245
  const { extendEmptyMarkRange: o = !1 } = e, { selection: l } = t, a = It(n, r.schema), { $from: c, empty: u, ranges: d } = l;
12234
12246
  if (!i)
12235
12247
  return !0;
12236
12248
  if (u && o) {
12237
12249
  let { from: f, to: h } = l;
12238
- const p = (s = c.marks().find((y) => y.type === a)) === null || s === void 0 ? void 0 : s.attrs, m = xo(c, a, p);
12250
+ const p = (s = c.marks().find((y) => y.type === a)) === null || s === void 0 ? void 0 : s.attrs, m = vo(c, a, p);
12239
12251
  m && (f = m.from, h = m.to), t.removeMark(f, h, a);
12240
12252
  } else
12241
12253
  d.forEach((f) => {
@@ -12295,7 +12307,7 @@ var My = /* @__PURE__ */ Object.freeze({
12295
12307
  enter: yg,
12296
12308
  exitCode: bg,
12297
12309
  extendMarkRange: kg,
12298
- first: vg,
12310
+ first: xg,
12299
12311
  focus: wg,
12300
12312
  forEach: Sg,
12301
12313
  insertContent: Cg,
@@ -12335,8 +12347,8 @@ var My = /* @__PURE__ */ Object.freeze({
12335
12347
  toggleNode: yy,
12336
12348
  toggleWrap: by,
12337
12349
  undoInputRule: ky,
12338
- unsetAllMarks: vy,
12339
- unsetMark: xy,
12350
+ unsetAllMarks: xy,
12351
+ unsetMark: vy,
12340
12352
  updateAttributes: wy,
12341
12353
  wrapIn: Sy,
12342
12354
  wrapInList: Cy
@@ -12448,7 +12460,7 @@ const Ty = re.create({
12448
12460
  "Ctrl-a": () => this.editor.commands.selectTextblockStart(),
12449
12461
  "Ctrl-e": () => this.editor.commands.selectTextblockEnd()
12450
12462
  };
12451
- return So() || Du() ? s : i;
12463
+ return So() || Iu() ? s : i;
12452
12464
  },
12453
12465
  addProseMirrorPlugins() {
12454
12466
  return [
@@ -12822,7 +12834,7 @@ let By = class extends Km {
12822
12834
  * @returns The new editor state
12823
12835
  */
12824
12836
  registerPlugin(e, t) {
12825
- const r = Eu(t) ? t(e, [...this.state.plugins]) : [...this.state.plugins, e], i = this.state.reconfigure({ plugins: r });
12837
+ const r = Tu(t) ? t(e, [...this.state.plugins]) : [...this.state.plugins, e], i = this.state.reconfigure({ plugins: r });
12826
12838
  return this.view.updateState(i), i;
12827
12839
  }
12828
12840
  /**
@@ -12898,8 +12910,8 @@ let By = class extends Km {
12898
12910
  }
12899
12911
  }), t = Fs(this.options.content, this.schema, this.options.parseOptions, { errorOnInvalidContent: !1 });
12900
12912
  }
12901
- const r = Nu(t, this.options.autofocus);
12902
- this.view = new fu(this.options.element, {
12913
+ const r = Au(t, this.options.autofocus);
12914
+ this.view = new du(this.options.element, {
12903
12915
  ...this.options.editorProps,
12904
12916
  attributes: {
12905
12917
  // add `role="textbox"` to the editor element
@@ -13012,10 +13024,10 @@ let By = class extends Km {
13012
13024
  const { blockSeparator: t = `
13013
13025
 
13014
13026
  `, textSerializers: r = {} } = e || {};
13015
- return Lu(this.state.doc, {
13027
+ return Ru(this.state.doc, {
13016
13028
  blockSeparator: t,
13017
13029
  textSerializers: {
13018
- ...vo(this.schema),
13030
+ ...xo(this.schema),
13019
13031
  ...r
13020
13032
  }
13021
13033
  });
@@ -13705,7 +13717,7 @@ class i0 {
13705
13717
  if (t && !s) {
13706
13718
  let o = t.pos;
13707
13719
  if (this.editorView.dragging && this.editorView.dragging.slice) {
13708
- let l = Mc(this.editorView.state.doc, o, this.editorView.dragging.slice);
13720
+ let l = Cc(this.editorView.state.doc, o, this.editorView.dragging.slice);
13709
13721
  l != null && (o = l);
13710
13722
  }
13711
13723
  this.setCursor(o), this.scheduleRemoval(5e3);
@@ -13883,7 +13895,7 @@ function a0() {
13883
13895
  }
13884
13896
  });
13885
13897
  }
13886
- const c0 = hu({
13898
+ const c0 = fu({
13887
13899
  ArrowLeft: kr("horiz", -1),
13888
13900
  ArrowRight: kr("horiz", 1),
13889
13901
  ArrowUp: kr("vert", -1),
@@ -13917,9 +13929,9 @@ function d0(n, e) {
13917
13929
  let { $from: t } = n.state.selection, r = t.parent.contentMatchAt(t.index()).findWrapping(n.state.schema.nodes.text);
13918
13930
  if (!r)
13919
13931
  return !1;
13920
- let i = x.empty;
13932
+ let i = v.empty;
13921
13933
  for (let o = r.length - 1; o >= 0; o--)
13922
- i = x.from(r[o].createAndFill(null, i));
13934
+ i = v.from(r[o].createAndFill(null, i));
13923
13935
  let s = n.state.tr.replace(t.pos, t.pos, new E(i, 0, 0));
13924
13936
  return s.setSelection(R.near(s.doc.resolve(t.pos + 1))), n.dispatch(s), !1;
13925
13937
  }
@@ -13947,7 +13959,7 @@ const h0 = re.create({
13947
13959
  allowGapCursor: (e = $(O(n, "allowGapCursor", t))) !== null && e !== void 0 ? e : null
13948
13960
  };
13949
13961
  }
13950
- }), zu = Te.create({
13962
+ }), Bu = Te.create({
13951
13963
  name: "hardBreak",
13952
13964
  addOptions() {
13953
13965
  return {
@@ -14076,9 +14088,9 @@ ae.prototype.map = function(e, t, r) {
14076
14088
  }, t, r), i;
14077
14089
  };
14078
14090
  ae.from = function(e) {
14079
- return e instanceof ae ? e : e && e.length ? new Fu(e) : ae.empty;
14091
+ return e instanceof ae ? e : e && e.length ? new zu(e) : ae.empty;
14080
14092
  };
14081
- var Fu = /* @__PURE__ */ function(n) {
14093
+ var zu = /* @__PURE__ */ function(n) {
14082
14094
  function e(r) {
14083
14095
  n.call(this), this.values = r;
14084
14096
  }
@@ -14110,7 +14122,7 @@ var Fu = /* @__PURE__ */ function(n) {
14110
14122
  return 0;
14111
14123
  }, Object.defineProperties(e.prototype, t), e;
14112
14124
  }(ae);
14113
- ae.empty = new Fu([]);
14125
+ ae.empty = new zu([]);
14114
14126
  var m0 = /* @__PURE__ */ function(n) {
14115
14127
  function e(t, r) {
14116
14128
  n.call(this), this.left = t, this.right = r, this.length = t.length + r.length, this.depth = Math.max(t.depth, r.depth) + 1;
@@ -14294,11 +14306,11 @@ function k0(n, e, t, r) {
14294
14306
  if (o && o.getMeta(Kt))
14295
14307
  return o.getMeta(Kt).redo ? new mt(n.done.addTransform(t, void 0, r, Er(e)), n.undone, ma(t.mapping.maps), n.prevTime, n.prevComposition) : new mt(n.done, n.undone.addTransform(t, void 0, r, Er(e)), null, n.prevTime, n.prevComposition);
14296
14308
  if (t.getMeta("addToHistory") !== !1 && !(o && o.getMeta("addToHistory") === !1)) {
14297
- let l = t.getMeta("composition"), a = n.prevTime == 0 || !o && n.prevComposition != l && (n.prevTime < (t.time || 0) - r.newGroupDelay || !v0(t, n.prevRanges)), c = o ? ss(n.prevRanges, t.mapping) : ma(t.mapping.maps);
14309
+ let l = t.getMeta("composition"), a = n.prevTime == 0 || !o && n.prevComposition != l && (n.prevTime < (t.time || 0) - r.newGroupDelay || !x0(t, n.prevRanges)), c = o ? ss(n.prevRanges, t.mapping) : ma(t.mapping.maps);
14298
14310
  return new mt(n.done.addTransform(t, a ? e.selection.getBookmark() : void 0, r, Er(e)), je.empty, c, t.time, l ?? n.prevComposition);
14299
14311
  } else return (s = t.getMeta("rebased")) ? new mt(n.done.rebased(t, s), n.undone.rebased(t, s), ss(n.prevRanges, t.mapping), n.prevTime, n.prevComposition) : new mt(n.done.addMaps(t.mapping.maps), n.undone.addMaps(t.mapping.maps), ss(n.prevRanges, t.mapping), n.prevTime, n.prevComposition);
14300
14312
  }
14301
- function v0(n, e) {
14313
+ function x0(n, e) {
14302
14314
  if (!e)
14303
14315
  return !1;
14304
14316
  if (!n.docChanged)
@@ -14325,7 +14337,7 @@ function ss(n, e) {
14325
14337
  }
14326
14338
  return t;
14327
14339
  }
14328
- function x0(n, e, t) {
14340
+ function v0(n, e, t) {
14329
14341
  let r = Er(e), i = Kt.get(e).spec.config, s = (t ? n.undone : n.done).popEvent(e, r);
14330
14342
  if (!s)
14331
14343
  return null;
@@ -14364,26 +14376,26 @@ function S0(n = {}) {
14364
14376
  props: {
14365
14377
  handleDOMEvents: {
14366
14378
  beforeinput(e, t) {
14367
- let r = t.inputType, i = r == "historyUndo" ? Hu : r == "historyRedo" ? Vu : null;
14379
+ let r = t.inputType, i = r == "historyUndo" ? $u : r == "historyRedo" ? Hu : null;
14368
14380
  return i ? (t.preventDefault(), i(e.state, e.dispatch)) : !1;
14369
14381
  }
14370
14382
  }
14371
14383
  }
14372
14384
  });
14373
14385
  }
14374
- function $u(n, e) {
14386
+ function Fu(n, e) {
14375
14387
  return (t, r) => {
14376
14388
  let i = Kt.getState(t);
14377
14389
  if (!i || (n ? i.undone : i.done).eventCount == 0)
14378
14390
  return !1;
14379
14391
  if (r) {
14380
- let s = x0(i, t, n);
14392
+ let s = v0(i, t, n);
14381
14393
  s && r(e ? s.scrollIntoView() : s);
14382
14394
  }
14383
14395
  return !0;
14384
14396
  };
14385
14397
  }
14386
- const Hu = $u(!1, !0), Vu = $u(!0, !0), C0 = re.create({
14398
+ const $u = Fu(!1, !0), Hu = Fu(!0, !0), C0 = re.create({
14387
14399
  name: "history",
14388
14400
  addOptions() {
14389
14401
  return {
@@ -14393,8 +14405,8 @@ const Hu = $u(!1, !0), Vu = $u(!0, !0), C0 = re.create({
14393
14405
  },
14394
14406
  addCommands() {
14395
14407
  return {
14396
- undo: () => ({ state: n, dispatch: e }) => Hu(n, e),
14397
- redo: () => ({ state: n, dispatch: e }) => Vu(n, e)
14408
+ undo: () => ({ state: n, dispatch: e }) => $u(n, e),
14409
+ redo: () => ({ state: n, dispatch: e }) => Hu(n, e)
14398
14410
  };
14399
14411
  },
14400
14412
  addProseMirrorPlugins() {
@@ -14437,7 +14449,7 @@ const Hu = $u(!1, !0), Vu = $u(!0, !0), C0 = re.create({
14437
14449
  to: i.pos
14438
14450
  }, {
14439
14451
  type: this.name
14440
- }) : Pu(t) ? s.insertContentAt(i.pos, {
14452
+ }) : Lu(t) ? s.insertContentAt(i.pos, {
14441
14453
  type: this.name
14442
14454
  }) : s.insertContent({ type: this.name }), s.command(({ tr: o, dispatch: l }) => {
14443
14455
  var a;
@@ -14623,7 +14635,7 @@ const Hu = $u(!1, !0), Vu = $u(!0, !0), C0 = re.create({
14623
14635
  n
14624
14636
  ];
14625
14637
  }
14626
- }), ju = Te.create({
14638
+ }), Vu = Te.create({
14627
14639
  name: "paragraph",
14628
14640
  priority: 1e3,
14629
14641
  addOptions() {
@@ -14714,13 +14726,13 @@ const Hu = $u(!1, !0), Vu = $u(!0, !0), C0 = re.create({
14714
14726
  name: "starterKit",
14715
14727
  addExtensions() {
14716
14728
  const n = [];
14717
- return this.options.bold !== !1 && n.push(qy.configure(this.options.bold)), this.options.blockquote !== !1 && n.push(jy.configure(this.options.blockquote)), this.options.bulletList !== !1 && n.push(Gy.configure(this.options.bulletList)), this.options.code !== !1 && n.push(Qy.configure(this.options.code)), this.options.codeBlock !== !1 && n.push(t0.configure(this.options.codeBlock)), this.options.document !== !1 && n.push(n0.configure(this.options.document)), this.options.dropcursor !== !1 && n.push(s0.configure(this.options.dropcursor)), this.options.gapcursor !== !1 && n.push(h0.configure(this.options.gapcursor)), this.options.hardBreak !== !1 && n.push(zu.configure(this.options.hardBreak)), this.options.heading !== !1 && n.push(p0.configure(this.options.heading)), this.options.history !== !1 && n.push(C0.configure(this.options.history)), this.options.horizontalRule !== !1 && n.push(M0.configure(this.options.horizontalRule)), this.options.italic !== !1 && n.push(N0.configure(this.options.italic)), this.options.listItem !== !1 && n.push(I0.configure(this.options.listItem)), this.options.orderedList !== !1 && n.push(R0.configure(this.options.orderedList)), this.options.paragraph !== !1 && n.push(ju.configure(this.options.paragraph)), this.options.strike !== !1 && n.push(B0.configure(this.options.strike)), this.options.text !== !1 && n.push(z0.configure(this.options.text)), n;
14729
+ return this.options.bold !== !1 && n.push(qy.configure(this.options.bold)), this.options.blockquote !== !1 && n.push(jy.configure(this.options.blockquote)), this.options.bulletList !== !1 && n.push(Gy.configure(this.options.bulletList)), this.options.code !== !1 && n.push(Qy.configure(this.options.code)), this.options.codeBlock !== !1 && n.push(t0.configure(this.options.codeBlock)), this.options.document !== !1 && n.push(n0.configure(this.options.document)), this.options.dropcursor !== !1 && n.push(s0.configure(this.options.dropcursor)), this.options.gapcursor !== !1 && n.push(h0.configure(this.options.gapcursor)), this.options.hardBreak !== !1 && n.push(Bu.configure(this.options.hardBreak)), this.options.heading !== !1 && n.push(p0.configure(this.options.heading)), this.options.history !== !1 && n.push(C0.configure(this.options.history)), this.options.horizontalRule !== !1 && n.push(M0.configure(this.options.horizontalRule)), this.options.italic !== !1 && n.push(N0.configure(this.options.italic)), this.options.listItem !== !1 && n.push(I0.configure(this.options.listItem)), this.options.orderedList !== !1 && n.push(R0.configure(this.options.orderedList)), this.options.paragraph !== !1 && n.push(Vu.configure(this.options.paragraph)), this.options.strike !== !1 && n.push(B0.configure(this.options.strike)), this.options.text !== !1 && n.push(z0.configure(this.options.text)), n;
14718
14730
  }
14719
14731
  });
14720
- var $0 = "tippy-box", _u = "tippy-content", H0 = "tippy-backdrop", Wu = "tippy-arrow", Ku = "tippy-svg-arrow", Lt = {
14732
+ var $0 = "tippy-box", ju = "tippy-content", H0 = "tippy-backdrop", _u = "tippy-arrow", Wu = "tippy-svg-arrow", Lt = {
14721
14733
  passive: !0,
14722
14734
  capture: !0
14723
- }, Uu = function() {
14735
+ }, Ku = function() {
14724
14736
  return document.body;
14725
14737
  };
14726
14738
  function V0(n, e) {
@@ -14737,7 +14749,7 @@ function Ao(n, e) {
14737
14749
  var t = {}.toString.call(n);
14738
14750
  return t.indexOf("[object") === 0 && t.indexOf(e + "]") > -1;
14739
14751
  }
14740
- function qu(n, e) {
14752
+ function Uu(n, e) {
14741
14753
  return typeof n == "function" ? n.apply(void 0, e) : n;
14742
14754
  }
14743
14755
  function ka(n, e) {
@@ -14762,7 +14774,7 @@ function _0(n) {
14762
14774
  function an(n) {
14763
14775
  return [].concat(n);
14764
14776
  }
14765
- function va(n, e) {
14777
+ function xa(n, e) {
14766
14778
  n.indexOf(e) === -1 && n.push(e);
14767
14779
  }
14768
14780
  function W0(n) {
@@ -14776,7 +14788,7 @@ function K0(n) {
14776
14788
  function _r(n) {
14777
14789
  return [].slice.call(n);
14778
14790
  }
14779
- function xa(n) {
14791
+ function va(n) {
14780
14792
  return Object.keys(n).reduce(function(e, t) {
14781
14793
  return n[t] !== void 0 && (e[t] = n[t]), e;
14782
14794
  }, {});
@@ -14844,11 +14856,11 @@ var Ge = {
14844
14856
  isTouch: !1
14845
14857
  }, Ca = 0;
14846
14858
  function Q0() {
14847
- Ge.isTouch || (Ge.isTouch = !0, window.performance && document.addEventListener("mousemove", Ju));
14859
+ Ge.isTouch || (Ge.isTouch = !0, window.performance && document.addEventListener("mousemove", qu));
14848
14860
  }
14849
- function Ju() {
14861
+ function qu() {
14850
14862
  var n = performance.now();
14851
- n - Ca < 20 && (Ge.isTouch = !1, document.removeEventListener("mousemove", Ju)), Ca = n;
14863
+ n - Ca < 20 && (Ge.isTouch = !1, document.removeEventListener("mousemove", qu)), Ca = n;
14852
14864
  }
14853
14865
  function Z0() {
14854
14866
  var n = document.activeElement;
@@ -14881,7 +14893,7 @@ function rb(n) {
14881
14893
  %c👷‍ This is a development-only message. It will be removed in production.
14882
14894
  `);
14883
14895
  }
14884
- function Gu(n) {
14896
+ function Ju(n) {
14885
14897
  return [
14886
14898
  rb(n),
14887
14899
  // title
@@ -14900,20 +14912,20 @@ function ib() {
14900
14912
  function lt(n, e) {
14901
14913
  if (n && !Qn.has(e)) {
14902
14914
  var t;
14903
- Qn.add(e), (t = console).warn.apply(t, Gu(e));
14915
+ Qn.add(e), (t = console).warn.apply(t, Ju(e));
14904
14916
  }
14905
14917
  }
14906
14918
  function Vs(n, e) {
14907
14919
  if (n && !Qn.has(e)) {
14908
14920
  var t;
14909
- Qn.add(e), (t = console).error.apply(t, Gu(e));
14921
+ Qn.add(e), (t = console).error.apply(t, Ju(e));
14910
14922
  }
14911
14923
  }
14912
14924
  function sb(n) {
14913
14925
  var e = !n, t = Object.prototype.toString.call(n) === "[object Object]" && !n.addEventListener;
14914
14926
  Vs(e, ["tippy() was passed", "`" + String(n) + "`", "as its targets (first) argument. Valid types are: String, Element,", "Element[], or NodeList."].join(" ")), Vs(t, ["tippy() was passed a plain object which is not supported as an argument", "for virtual positioning. Use props.getReferenceClientRect instead."].join(" "));
14915
14927
  }
14916
- var Yu = {
14928
+ var Gu = {
14917
14929
  animateFill: !1,
14918
14930
  followCursor: !1,
14919
14931
  inlinePositioning: !1,
@@ -14929,7 +14941,7 @@ var Yu = {
14929
14941
  theme: "",
14930
14942
  zIndex: 9999
14931
14943
  }, Ae = Object.assign({
14932
- appendTo: Uu,
14944
+ appendTo: Ku,
14933
14945
  aria: {
14934
14946
  content: "auto",
14935
14947
  expanded: "auto"
@@ -14976,14 +14988,14 @@ var Yu = {
14976
14988
  touch: !0,
14977
14989
  trigger: "mouseenter focus",
14978
14990
  triggerTarget: null
14979
- }, Yu, ob), lb = Object.keys(Ae), ab = function(e) {
14980
- process.env.NODE_ENV !== "production" && Qu(e, []);
14991
+ }, Gu, ob), lb = Object.keys(Ae), ab = function(e) {
14992
+ process.env.NODE_ENV !== "production" && Xu(e, []);
14981
14993
  var t = Object.keys(e);
14982
14994
  t.forEach(function(r) {
14983
14995
  Ae[r] = e[r];
14984
14996
  });
14985
14997
  };
14986
- function Xu(n) {
14998
+ function Yu(n) {
14987
14999
  var e = n.plugins || [], t = e.reduce(function(r, i) {
14988
15000
  var s = i.name, o = i.defaultValue;
14989
15001
  if (s) {
@@ -14995,7 +15007,7 @@ function Xu(n) {
14995
15007
  return Object.assign({}, n, t);
14996
15008
  }
14997
15009
  function cb(n, e) {
14998
- var t = e ? Object.keys(Xu(Object.assign({}, Ae, {
15010
+ var t = e ? Object.keys(Yu(Object.assign({}, Ae, {
14999
15011
  plugins: e
15000
15012
  }))) : lb, r = t.reduce(function(i, s) {
15001
15013
  var o = (n.getAttribute("data-tippy-" + s) || "").trim();
@@ -15015,18 +15027,18 @@ function cb(n, e) {
15015
15027
  }
15016
15028
  function Ta(n, e) {
15017
15029
  var t = Object.assign({}, e, {
15018
- content: qu(e.content, [n])
15030
+ content: Uu(e.content, [n])
15019
15031
  }, e.ignoreAttributes ? {} : cb(n, e.plugins));
15020
15032
  return t.aria = Object.assign({}, Ae.aria, t.aria), t.aria = {
15021
15033
  expanded: t.aria.expanded === "auto" ? e.interactive : t.aria.expanded,
15022
15034
  content: t.aria.content === "auto" ? e.interactive ? null : "describedby" : t.aria.content
15023
15035
  }, t;
15024
15036
  }
15025
- function Qu(n, e) {
15037
+ function Xu(n, e) {
15026
15038
  n === void 0 && (n = {}), e === void 0 && (e = []);
15027
15039
  var t = Object.keys(n);
15028
15040
  t.forEach(function(r) {
15029
- var i = j0(Ae, Object.keys(Yu)), s = !V0(i, r);
15041
+ var i = j0(Ae, Object.keys(Gu)), s = !V0(i, r);
15030
15042
  s && (s = e.filter(function(o) {
15031
15043
  return o.name === r;
15032
15044
  }).length === 0), lt(s, ["`" + r + "`", "is not a valid prop. You may have spelled it incorrectly, or if it's", "a plugin, forgot to pass it in an array as props.plugins.", `
@@ -15043,7 +15055,7 @@ function js(n, e) {
15043
15055
  }
15044
15056
  function Ea(n) {
15045
15057
  var e = Rn();
15046
- return n === !0 ? e.className = Wu : (e.className = Ku, Xn(n) ? e.appendChild(n) : js(e, n)), e;
15058
+ return n === !0 ? e.className = _u : (e.className = Wu, Xn(n) ? e.appendChild(n) : js(e, n)), e;
15047
15059
  }
15048
15060
  function Oa(n, e) {
15049
15061
  Xn(e.content) ? (js(n, ""), n.appendChild(e.content)) : typeof e.content != "function" && (e.allowHTML ? js(n, e.content) : n.textContent = e.content);
@@ -15053,21 +15065,21 @@ function _s(n) {
15053
15065
  return {
15054
15066
  box: e,
15055
15067
  content: t.find(function(r) {
15056
- return r.classList.contains(_u);
15068
+ return r.classList.contains(ju);
15057
15069
  }),
15058
15070
  arrow: t.find(function(r) {
15059
- return r.classList.contains(Wu) || r.classList.contains(Ku);
15071
+ return r.classList.contains(_u) || r.classList.contains(Wu);
15060
15072
  }),
15061
15073
  backdrop: t.find(function(r) {
15062
15074
  return r.classList.contains(H0);
15063
15075
  })
15064
15076
  };
15065
15077
  }
15066
- function Zu(n) {
15078
+ function Qu(n) {
15067
15079
  var e = Rn(), t = Rn();
15068
15080
  t.className = $0, t.setAttribute("data-state", "hidden"), t.setAttribute("tabindex", "-1");
15069
15081
  var r = Rn();
15070
- r.className = _u, r.setAttribute("data-state", "hidden"), Oa(r, n.props), e.appendChild(t), t.appendChild(r), i(n.props, n.props);
15082
+ r.className = ju, r.setAttribute("data-state", "hidden"), Oa(r, n.props), e.appendChild(t), t.appendChild(r), i(n.props, n.props);
15071
15083
  function i(s, o) {
15072
15084
  var l = _s(e), a = l.box, c = l.content, u = l.arrow;
15073
15085
  o.theme ? a.setAttribute("data-theme", o.theme) : a.removeAttribute("data-theme"), typeof o.animation == "string" ? a.setAttribute("data-animation", o.animation) : a.removeAttribute("data-animation"), o.inertia ? a.setAttribute("data-inertia", "") : a.removeAttribute("data-inertia"), a.style.maxWidth = typeof o.maxWidth == "number" ? o.maxWidth + "px" : o.maxWidth, o.role ? a.setAttribute("role", o.role) : a.removeAttribute("role"), (s.content !== o.content || s.allowHTML !== o.allowHTML) && Oa(c, n.props), o.arrow ? u ? s.arrow !== o.arrow && (a.removeChild(u), a.appendChild(Ea(o.arrow))) : a.appendChild(Ea(o.arrow)) : u && a.removeChild(u);
@@ -15077,10 +15089,10 @@ function Zu(n) {
15077
15089
  onUpdate: i
15078
15090
  };
15079
15091
  }
15080
- Zu.$$tippy = !0;
15081
- var db = 1, vr = [], ds = [];
15092
+ Qu.$$tippy = !0;
15093
+ var db = 1, xr = [], ds = [];
15082
15094
  function fb(n, e) {
15083
- var t = Ta(n, Object.assign({}, Ae, Xu(xa(e)))), r, i, s, o = !1, l = !1, a = !1, c = !1, u, d, f, h = [], p = ka(qo, t.interactiveDebounce), m, y = db++, b = null, C = W0(t.plugins), M = {
15095
+ var t = Ta(n, Object.assign({}, Ae, Yu(va(e)))), r, i, s, o = !1, l = !1, a = !1, c = !1, u, d, f, h = [], p = ka(qo, t.interactiveDebounce), m, y = db++, b = null, C = W0(t.plugins), M = {
15084
15096
  // Is the instance currently enabled?
15085
15097
  isEnabled: !0,
15086
15098
  // Is the tippy currently showing and not transitioning out?
@@ -15101,27 +15113,27 @@ function fb(n, e) {
15101
15113
  state: M,
15102
15114
  plugins: C,
15103
15115
  // methods
15104
- clearDelayTimeouts: yd,
15105
- setProps: bd,
15106
- setContent: kd,
15107
- show: vd,
15116
+ clearDelayTimeouts: gd,
15117
+ setProps: yd,
15118
+ setContent: bd,
15119
+ show: kd,
15108
15120
  hide: xd,
15109
- hideWithInteractivity: wd,
15110
- enable: md,
15111
- disable: gd,
15112
- unmount: Sd,
15113
- destroy: Cd
15121
+ hideWithInteractivity: vd,
15122
+ enable: pd,
15123
+ disable: md,
15124
+ unmount: wd,
15125
+ destroy: Sd
15114
15126
  };
15115
15127
  if (!t.render)
15116
15128
  return process.env.NODE_ENV !== "production" && Vs(!0, "render() function has not been supplied."), g;
15117
- var S = t.render(g), v = S.popper, P = S.onUpdate;
15118
- v.setAttribute("data-tippy-root", ""), v.id = "tippy-" + g.id, g.popper = v, n._tippy = g, v._tippy = g;
15129
+ var S = t.render(g), x = S.popper, P = S.onUpdate;
15130
+ x.setAttribute("data-tippy-root", ""), x.id = "tippy-" + g.id, g.popper = x, n._tippy = g, x._tippy = g;
15119
15131
  var T = C.map(function(k) {
15120
15132
  return k.fn(g);
15121
15133
  }), z = n.hasAttribute("aria-expanded");
15122
- return Wo(), xn(), Ke(), De("onCreate", [g]), t.showOnCreate && Zo(), v.addEventListener("mouseenter", function() {
15134
+ return Wo(), vn(), Ke(), De("onCreate", [g]), t.showOnCreate && Zo(), x.addEventListener("mouseenter", function() {
15123
15135
  g.props.interactive && g.state.isVisible && g.clearDelayTimeouts();
15124
- }), v.addEventListener("mouseleave", function() {
15136
+ }), x.addEventListener("mouseleave", function() {
15125
15137
  g.props.interactive && g.props.trigger.indexOf("mouseenter") >= 0 && et().addEventListener("mousemove", p);
15126
15138
  }), g;
15127
15139
  function j() {
@@ -15143,13 +15155,13 @@ function fb(n, e) {
15143
15155
  return k ? Y0(k) : document;
15144
15156
  }
15145
15157
  function We() {
15146
- return _s(v);
15158
+ return _s(x);
15147
15159
  }
15148
15160
  function tt(k) {
15149
15161
  return g.state.isMounted && !g.state.isVisible || Ge.isTouch || u && u.type === "focus" ? 0 : as(g.props.delay, k ? 0 : 1, Ae.delay);
15150
15162
  }
15151
15163
  function Ke(k) {
15152
- k === void 0 && (k = !1), v.style.pointerEvents = g.props.interactive && !k ? "" : "none", v.style.zIndex = "" + g.props.zIndex;
15164
+ k === void 0 && (k = !1), x.style.pointerEvents = g.props.interactive && !k ? "" : "none", x.style.zIndex = "" + g.props.zIndex;
15153
15165
  }
15154
15166
  function De(k, A, D) {
15155
15167
  if (D === void 0 && (D = !0), T.forEach(function(_) {
@@ -15162,19 +15174,19 @@ function fb(n, e) {
15162
15174
  function $o() {
15163
15175
  var k = g.props.aria;
15164
15176
  if (k.content) {
15165
- var A = "aria-" + k.content, D = v.id, W = an(g.props.triggerTarget || n);
15177
+ var A = "aria-" + k.content, D = x.id, W = an(g.props.triggerTarget || n);
15166
15178
  W.forEach(function(_) {
15167
- var ve = _.getAttribute(A);
15179
+ var xe = _.getAttribute(A);
15168
15180
  if (g.state.isVisible)
15169
- _.setAttribute(A, ve ? ve + " " + D : D);
15181
+ _.setAttribute(A, xe ? xe + " " + D : D);
15170
15182
  else {
15171
- var Re = ve && ve.replace(D, "").trim();
15183
+ var Re = xe && xe.replace(D, "").trim();
15172
15184
  Re ? _.setAttribute(A, Re) : _.removeAttribute(A);
15173
15185
  }
15174
15186
  });
15175
15187
  }
15176
15188
  }
15177
- function xn() {
15189
+ function vn() {
15178
15190
  if (!(z || !g.props.aria.expanded)) {
15179
15191
  var k = an(g.props.triggerTarget || n);
15180
15192
  k.forEach(function(A) {
@@ -15183,14 +15195,14 @@ function fb(n, e) {
15183
15195
  }
15184
15196
  }
15185
15197
  function Ri() {
15186
- et().removeEventListener("mousemove", p), vr = vr.filter(function(k) {
15198
+ et().removeEventListener("mousemove", p), xr = xr.filter(function(k) {
15187
15199
  return k !== p;
15188
15200
  });
15189
15201
  }
15190
15202
  function ar(k) {
15191
15203
  if (!(Ge.isTouch && (a || k.type === "mousedown"))) {
15192
15204
  var A = k.composedPath && k.composedPath()[0] || k.target;
15193
- if (!(g.props.interactive && Sa(v, A))) {
15205
+ if (!(g.props.interactive && Sa(x, A))) {
15194
15206
  if (an(g.props.triggerTarget || n).some(function(D) {
15195
15207
  return Sa(D, A);
15196
15208
  })) {
@@ -15218,12 +15230,12 @@ function fb(n, e) {
15218
15230
  var k = et();
15219
15231
  k.removeEventListener("mousedown", ar, !0), k.removeEventListener("touchend", ar, Lt), k.removeEventListener("touchstart", Vo, Lt), k.removeEventListener("touchmove", Ho, Lt);
15220
15232
  }
15221
- function fd(k, A) {
15233
+ function dd(k, A) {
15222
15234
  _o(k, function() {
15223
- !g.state.isVisible && v.parentNode && v.parentNode.contains(v) && A();
15235
+ !g.state.isVisible && x.parentNode && x.parentNode.contains(x) && A();
15224
15236
  });
15225
15237
  }
15226
- function hd(k, A) {
15238
+ function fd(k, A) {
15227
15239
  _o(k, A);
15228
15240
  }
15229
15241
  function _o(k, A) {
@@ -15277,16 +15289,16 @@ function fb(n, e) {
15277
15289
  var A, D = !1;
15278
15290
  if (!(!g.state.isEnabled || Yo(k) || l)) {
15279
15291
  var W = ((A = u) == null ? void 0 : A.type) === "focus";
15280
- u = k, m = k.currentTarget, xn(), !g.state.isVisible && q0(k) && vr.forEach(function(_) {
15292
+ u = k, m = k.currentTarget, vn(), !g.state.isVisible && q0(k) && xr.forEach(function(_) {
15281
15293
  return _(k);
15282
15294
  }), k.type === "click" && (g.props.trigger.indexOf("mouseenter") < 0 || o) && g.props.hideOnClick !== !1 && g.state.isVisible ? D = !0 : Zo(k), k.type === "click" && (o = !D), D && !W && cr(k);
15283
15295
  }
15284
15296
  }
15285
15297
  function qo(k) {
15286
- var A = k.target, D = X().contains(A) || v.contains(A);
15298
+ var A = k.target, D = X().contains(A) || x.contains(A);
15287
15299
  if (!(k.type === "mousemove" && D)) {
15288
- var W = Pi().concat(v).map(function(_) {
15289
- var ve, Re = _._tippy, en = (ve = Re.popperInstance) == null ? void 0 : ve.state;
15300
+ var W = Pi().concat(x).map(function(_) {
15301
+ var xe, Re = _._tippy, en = (xe = Re.popperInstance) == null ? void 0 : xe.state;
15290
15302
  return en ? {
15291
15303
  popperRect: _.getBoundingClientRect(),
15292
15304
  popperState: en,
@@ -15307,14 +15319,14 @@ function fb(n, e) {
15307
15319
  }
15308
15320
  }
15309
15321
  function Go(k) {
15310
- g.props.trigger.indexOf("focusin") < 0 && k.target !== X() || g.props.interactive && k.relatedTarget && v.contains(k.relatedTarget) || cr(k);
15322
+ g.props.trigger.indexOf("focusin") < 0 && k.target !== X() || g.props.interactive && k.relatedTarget && x.contains(k.relatedTarget) || cr(k);
15311
15323
  }
15312
15324
  function Yo(k) {
15313
15325
  return Ge.isTouch ? Ee() !== k.type.indexOf("touch") >= 0 : !1;
15314
15326
  }
15315
15327
  function Xo() {
15316
15328
  Qo();
15317
- var k = g.props, A = k.popperOptions, D = k.placement, W = k.offset, _ = k.getReferenceClientRect, ve = k.moveTransition, Re = se() ? _s(v).arrow : null, en = _ ? {
15329
+ var k = g.props, A = k.popperOptions, D = k.placement, W = k.offset, _ = k.getReferenceClientRect, xe = k.moveTransition, Re = se() ? _s(x).arrow : null, en = _ ? {
15318
15330
  getBoundingClientRect: _,
15319
15331
  contextElement: _.contextElement || X()
15320
15332
  } : n, el = {
@@ -15325,7 +15337,7 @@ function fb(n, e) {
15325
15337
  fn: function(ur) {
15326
15338
  var tn = ur.state;
15327
15339
  if (se()) {
15328
- var Md = We(), zi = Md.box;
15340
+ var Cd = We(), zi = Cd.box;
15329
15341
  ["placement", "reference-hidden", "escaped"].forEach(function(dr) {
15330
15342
  dr === "placement" ? zi.setAttribute("data-placement", tn.placement) : tn.attributes.popper["data-popper-" + dr] ? zi.setAttribute("data-" + dr, "") : zi.removeAttribute("data-" + dr);
15331
15343
  }), tn.attributes.popper = {};
@@ -15354,7 +15366,7 @@ function fb(n, e) {
15354
15366
  }, {
15355
15367
  name: "computeStyles",
15356
15368
  options: {
15357
- adaptive: !ve
15369
+ adaptive: !xe
15358
15370
  }
15359
15371
  }, el];
15360
15372
  se() && Re && Dt.push({
@@ -15363,7 +15375,7 @@ function fb(n, e) {
15363
15375
  element: Re,
15364
15376
  padding: 3
15365
15377
  }
15366
- }), Dt.push.apply(Dt, A?.modifiers || []), g.popperInstance = zd(en, v, Object.assign({}, A, {
15378
+ }), Dt.push.apply(Dt, A?.modifiers || []), g.popperInstance = Bd(en, x, Object.assign({}, A, {
15367
15379
  placement: D,
15368
15380
  onFirstUpdate: f,
15369
15381
  modifiers: Dt
@@ -15372,9 +15384,9 @@ function fb(n, e) {
15372
15384
  function Qo() {
15373
15385
  g.popperInstance && (g.popperInstance.destroy(), g.popperInstance = null);
15374
15386
  }
15375
- function pd() {
15387
+ function hd() {
15376
15388
  var k = g.props.appendTo, A, D = X();
15377
- g.props.interactive && k === Uu || k === "parent" ? A = D.parentNode : A = qu(k, [D]), A.contains(v) || A.appendChild(v), g.state.isMounted = !0, Xo(), process.env.NODE_ENV !== "production" && lt(g.props.interactive && k === Ae.appendTo && D.nextElementSibling !== v, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
15389
+ g.props.interactive && k === Ku || k === "parent" ? A = D.parentNode : A = Uu(k, [D]), A.contains(x) || A.appendChild(x), g.state.isMounted = !0, Xo(), process.env.NODE_ENV !== "production" && lt(g.props.interactive && k === Ae.appendTo && D.nextElementSibling !== x, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
15378
15390
 
15379
15391
  `, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `
15380
15392
 
@@ -15383,7 +15395,7 @@ function fb(n, e) {
15383
15395
  `, "See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "));
15384
15396
  }
15385
15397
  function Pi() {
15386
- return _r(v.querySelectorAll("[data-tippy-root]"));
15398
+ return _r(x.querySelectorAll("[data-tippy-root]"));
15387
15399
  }
15388
15400
  function Zo(k) {
15389
15401
  g.clearDelayTimeouts(), k && De("onTrigger", [g, k]), jo();
@@ -15406,84 +15418,84 @@ function fb(n, e) {
15406
15418
  });
15407
15419
  }
15408
15420
  }
15409
- function md() {
15421
+ function pd() {
15410
15422
  g.state.isEnabled = !0;
15411
15423
  }
15412
- function gd() {
15424
+ function md() {
15413
15425
  g.hide(), g.state.isEnabled = !1;
15414
15426
  }
15415
- function yd() {
15427
+ function gd() {
15416
15428
  clearTimeout(r), clearTimeout(i), cancelAnimationFrame(s);
15417
15429
  }
15418
- function bd(k) {
15430
+ function yd(k) {
15419
15431
  if (process.env.NODE_ENV !== "production" && lt(g.state.isDestroyed, sn("setProps")), !g.state.isDestroyed) {
15420
15432
  De("onBeforeUpdate", [g, k]), Ko();
15421
- var A = g.props, D = Ta(n, Object.assign({}, A, xa(k), {
15433
+ var A = g.props, D = Ta(n, Object.assign({}, A, va(k), {
15422
15434
  ignoreAttributes: !0
15423
15435
  }));
15424
15436
  g.props = D, Wo(), A.interactiveDebounce !== D.interactiveDebounce && (Ri(), p = ka(qo, D.interactiveDebounce)), A.triggerTarget && !D.triggerTarget ? an(A.triggerTarget).forEach(function(W) {
15425
15437
  W.removeAttribute("aria-expanded");
15426
- }) : D.triggerTarget && n.removeAttribute("aria-expanded"), xn(), Ke(), P && P(A, D), g.popperInstance && (Xo(), Pi().forEach(function(W) {
15438
+ }) : D.triggerTarget && n.removeAttribute("aria-expanded"), vn(), Ke(), P && P(A, D), g.popperInstance && (Xo(), Pi().forEach(function(W) {
15427
15439
  requestAnimationFrame(W._tippy.popperInstance.forceUpdate);
15428
15440
  })), De("onAfterUpdate", [g, k]);
15429
15441
  }
15430
15442
  }
15431
- function kd(k) {
15443
+ function bd(k) {
15432
15444
  g.setProps({
15433
15445
  content: k
15434
15446
  });
15435
15447
  }
15436
- function vd() {
15448
+ function kd() {
15437
15449
  process.env.NODE_ENV !== "production" && lt(g.state.isDestroyed, sn("show"));
15438
15450
  var k = g.state.isVisible, A = g.state.isDestroyed, D = !g.state.isEnabled, W = Ge.isTouch && !g.props.touch, _ = as(g.props.duration, 0, Ae.duration);
15439
15451
  if (!(k || A || D || W) && !X().hasAttribute("disabled") && (De("onShow", [g], !1), g.props.onShow(g) !== !1)) {
15440
- if (g.state.isVisible = !0, se() && (v.style.visibility = "visible"), Ke(), jo(), g.state.isMounted || (v.style.transition = "none"), se()) {
15441
- var ve = We(), Re = ve.box, en = ve.content;
15452
+ if (g.state.isVisible = !0, se() && (x.style.visibility = "visible"), Ke(), jo(), g.state.isMounted || (x.style.transition = "none"), se()) {
15453
+ var xe = We(), Re = xe.box, en = xe.content;
15442
15454
  cs([Re, en], 0);
15443
15455
  }
15444
15456
  f = function() {
15445
15457
  var Dt;
15446
15458
  if (!(!g.state.isVisible || c)) {
15447
- if (c = !0, v.offsetHeight, v.style.transition = g.props.moveTransition, se() && g.props.animation) {
15459
+ if (c = !0, x.offsetHeight, x.style.transition = g.props.moveTransition, se() && g.props.animation) {
15448
15460
  var Bi = We(), ur = Bi.box, tn = Bi.content;
15449
15461
  cs([ur, tn], _), wa([ur, tn], "visible");
15450
15462
  }
15451
- $o(), xn(), va(ds, g), (Dt = g.popperInstance) == null || Dt.forceUpdate(), De("onMount", [g]), g.props.animation && se() && hd(_, function() {
15463
+ $o(), vn(), xa(ds, g), (Dt = g.popperInstance) == null || Dt.forceUpdate(), De("onMount", [g]), g.props.animation && se() && fd(_, function() {
15452
15464
  g.state.isShown = !0, De("onShown", [g]);
15453
15465
  });
15454
15466
  }
15455
- }, pd();
15467
+ }, hd();
15456
15468
  }
15457
15469
  }
15458
15470
  function xd() {
15459
15471
  process.env.NODE_ENV !== "production" && lt(g.state.isDestroyed, sn("hide"));
15460
15472
  var k = !g.state.isVisible, A = g.state.isDestroyed, D = !g.state.isEnabled, W = as(g.props.duration, 1, Ae.duration);
15461
15473
  if (!(k || A || D) && (De("onHide", [g], !1), g.props.onHide(g) !== !1)) {
15462
- if (g.state.isVisible = !1, g.state.isShown = !1, c = !1, o = !1, se() && (v.style.visibility = "hidden"), Ri(), Li(), Ke(!0), se()) {
15463
- var _ = We(), ve = _.box, Re = _.content;
15464
- g.props.animation && (cs([ve, Re], W), wa([ve, Re], "hidden"));
15474
+ if (g.state.isVisible = !1, g.state.isShown = !1, c = !1, o = !1, se() && (x.style.visibility = "hidden"), Ri(), Li(), Ke(!0), se()) {
15475
+ var _ = We(), xe = _.box, Re = _.content;
15476
+ g.props.animation && (cs([xe, Re], W), wa([xe, Re], "hidden"));
15465
15477
  }
15466
- $o(), xn(), g.props.animation ? se() && fd(W, g.unmount) : g.unmount();
15478
+ $o(), vn(), g.props.animation ? se() && dd(W, g.unmount) : g.unmount();
15467
15479
  }
15468
15480
  }
15469
- function wd(k) {
15470
- process.env.NODE_ENV !== "production" && lt(g.state.isDestroyed, sn("hideWithInteractivity")), et().addEventListener("mousemove", p), va(vr, p), p(k);
15481
+ function vd(k) {
15482
+ process.env.NODE_ENV !== "production" && lt(g.state.isDestroyed, sn("hideWithInteractivity")), et().addEventListener("mousemove", p), xa(xr, p), p(k);
15471
15483
  }
15472
- function Sd() {
15484
+ function wd() {
15473
15485
  process.env.NODE_ENV !== "production" && lt(g.state.isDestroyed, sn("unmount")), g.state.isVisible && g.hide(), g.state.isMounted && (Qo(), Pi().forEach(function(k) {
15474
15486
  k._tippy.unmount();
15475
- }), v.parentNode && v.parentNode.removeChild(v), ds = ds.filter(function(k) {
15487
+ }), x.parentNode && x.parentNode.removeChild(x), ds = ds.filter(function(k) {
15476
15488
  return k !== g;
15477
15489
  }), g.state.isMounted = !1, De("onHidden", [g]));
15478
15490
  }
15479
- function Cd() {
15491
+ function Sd() {
15480
15492
  process.env.NODE_ENV !== "production" && lt(g.state.isDestroyed, sn("destroy")), !g.state.isDestroyed && (g.clearDelayTimeouts(), g.unmount(), Ko(), delete n._tippy, g.state.isDestroyed = !0, De("onDestroy", [g]));
15481
15493
  }
15482
15494
  }
15483
- function vn(n, e) {
15495
+ function xn(n, e) {
15484
15496
  e === void 0 && (e = {});
15485
15497
  var t = Ae.plugins.concat(e.plugins || []);
15486
- process.env.NODE_ENV !== "production" && (sb(n), Qu(e, t)), eb();
15498
+ process.env.NODE_ENV !== "production" && (sb(n), Xu(e, t)), eb();
15487
15499
  var r = Object.assign({}, e, {
15488
15500
  plugins: t
15489
15501
  }), i = G0(n);
@@ -15502,10 +15514,10 @@ function vn(n, e) {
15502
15514
  }, []);
15503
15515
  return Xn(n) ? l[0] : l;
15504
15516
  }
15505
- vn.defaultProps = Ae;
15506
- vn.setDefaultProps = ab;
15507
- vn.currentInput = Ge;
15508
- Object.assign({}, Fd, {
15517
+ xn.defaultProps = Ae;
15518
+ xn.setDefaultProps = ab;
15519
+ xn.currentInput = Ge;
15520
+ Object.assign({}, zd, {
15509
15521
  effect: function(e) {
15510
15522
  var t = e.state, r = {
15511
15523
  popper: {
@@ -15522,8 +15534,8 @@ Object.assign({}, Fd, {
15522
15534
  Object.assign(t.elements.popper.style, r.popper), t.styles = r, t.elements.arrow && Object.assign(t.elements.arrow.style, r.arrow);
15523
15535
  }
15524
15536
  });
15525
- vn.setDefaultProps({
15526
- render: Zu
15537
+ xn.setDefaultProps({
15538
+ render: Qu
15527
15539
  });
15528
15540
  class hb {
15529
15541
  constructor({ editor: e, element: t, view: r, tippyOptions: i = {}, updateDelay: s = 250, shouldShow: o }) {
@@ -15556,7 +15568,7 @@ class hb {
15556
15568
  if (m || !a && !c)
15557
15569
  return;
15558
15570
  this.createTooltip();
15559
- const { ranges: C } = y, M = Math.min(...C.map((v) => v.$from.pos)), g = Math.max(...C.map((v) => v.$to.pos));
15571
+ const { ranges: C } = y, M = Math.min(...C.map((x) => x.$from.pos)), g = Math.max(...C.map((x) => x.$to.pos));
15560
15572
  if (!((d = this.shouldShow) === null || d === void 0 ? void 0 : d.call(this, {
15561
15573
  editor: this.editor,
15562
15574
  element: this.element,
@@ -15571,22 +15583,22 @@ class hb {
15571
15583
  }
15572
15584
  (f = this.tippy) === null || f === void 0 || f.setProps({
15573
15585
  getReferenceClientRect: ((h = this.tippyOptions) === null || h === void 0 ? void 0 : h.getReferenceClientRect) || (() => {
15574
- if (Pu(p.selection)) {
15575
- let v = l.nodeDOM(M);
15576
- if (v) {
15577
- const P = v.dataset.nodeViewWrapper ? v : v.querySelector("[data-node-view-wrapper]");
15578
- if (P && (v = P.firstChild), v)
15579
- return v.getBoundingClientRect();
15586
+ if (Lu(p.selection)) {
15587
+ let x = l.nodeDOM(M);
15588
+ if (x) {
15589
+ const P = x.dataset.nodeViewWrapper ? x : x.querySelector("[data-node-view-wrapper]");
15590
+ if (P && (x = P.firstChild), x)
15591
+ return x.getBoundingClientRect();
15580
15592
  }
15581
15593
  }
15582
- return Bu(l, M, g);
15594
+ return Pu(l, M, g);
15583
15595
  })
15584
15596
  }), this.show();
15585
15597
  }, this.editor = e, this.element = t, this.view = r, this.updateDelay = s, o && (this.shouldShow = o), this.element.addEventListener("mousedown", this.mousedownHandler, { capture: !0 }), this.view.dom.addEventListener("dragstart", this.dragstartHandler), this.editor.on("focus", this.focusHandler), this.editor.on("blur", this.blurHandler), this.tippyOptions = i, this.element.remove(), this.element.style.visibility = "visible";
15586
15598
  }
15587
15599
  createTooltip() {
15588
15600
  const { element: e } = this.editor.options, t = !!e.parentElement;
15589
- this.element.tabIndex = 0, !(this.tippy || !t) && (this.tippy = vn(e, {
15601
+ this.element.tabIndex = 0, !(this.tippy || !t) && (this.tippy = xn(e, {
15590
15602
  duration: 0,
15591
15603
  getReferenceClientRect: null,
15592
15604
  content: this.element,
@@ -15619,7 +15631,7 @@ class hb {
15619
15631
  !((e = this.tippy) === null || e === void 0) && e.popper.firstChild && this.tippy.popper.firstChild.removeEventListener("blur", this.tippyBlurHandler), (t = this.tippy) === null || t === void 0 || t.destroy(), this.element.removeEventListener("mousedown", this.mousedownHandler, { capture: !0 }), this.view.dom.removeEventListener("dragstart", this.dragstartHandler), this.editor.off("focus", this.focusHandler), this.editor.off("blur", this.blurHandler);
15620
15632
  }
15621
15633
  }
15622
- const ed = (n) => new Q({
15634
+ const Zu = (n) => new Q({
15623
15635
  key: typeof n.pluginKey == "string" ? new me(n.pluginKey) : n.pluginKey,
15624
15636
  view: (e) => new hb({ view: e, ...n })
15625
15637
  });
@@ -15636,7 +15648,7 @@ re.create({
15636
15648
  },
15637
15649
  addProseMirrorPlugins() {
15638
15650
  return this.options.element ? [
15639
- ed({
15651
+ Zu({
15640
15652
  pluginKey: this.options.pluginKey,
15641
15653
  editor: this.editor,
15642
15654
  element: this.options.element,
@@ -15649,7 +15661,7 @@ re.create({
15649
15661
  });
15650
15662
  class pb {
15651
15663
  getTextContent(e) {
15652
- return Lu(e, { textSerializers: vo(this.editor.schema) });
15664
+ return Ru(e, { textSerializers: xo(this.editor.schema) });
15653
15665
  }
15654
15666
  constructor({ editor: e, element: t, view: r, tippyOptions: i = {}, shouldShow: s }) {
15655
15667
  this.preventHide = !1, this.shouldShow = ({ view: o, state: l }) => {
@@ -15672,7 +15684,7 @@ class pb {
15672
15684
  }
15673
15685
  createTooltip() {
15674
15686
  const { element: e } = this.editor.options, t = !!e.parentElement;
15675
- this.element.tabIndex = 0, !(this.tippy || !t) && (this.tippy = vn(e, {
15687
+ this.element.tabIndex = 0, !(this.tippy || !t) && (this.tippy = xn(e, {
15676
15688
  duration: 0,
15677
15689
  getReferenceClientRect: null,
15678
15690
  content: this.element,
@@ -15698,7 +15710,7 @@ class pb {
15698
15710
  return;
15699
15711
  }
15700
15712
  (i = this.tippy) === null || i === void 0 || i.setProps({
15701
- getReferenceClientRect: ((s = this.tippyOptions) === null || s === void 0 ? void 0 : s.getReferenceClientRect) || (() => Bu(e, c, u))
15713
+ getReferenceClientRect: ((s = this.tippyOptions) === null || s === void 0 ? void 0 : s.getReferenceClientRect) || (() => Pu(e, c, u))
15702
15714
  }), this.show();
15703
15715
  }
15704
15716
  show() {
@@ -15714,7 +15726,7 @@ class pb {
15714
15726
  !((e = this.tippy) === null || e === void 0) && e.popper.firstChild && this.tippy.popper.firstChild.removeEventListener("blur", this.tippyBlurHandler), (t = this.tippy) === null || t === void 0 || t.destroy(), this.element.removeEventListener("mousedown", this.mousedownHandler, { capture: !0 }), this.editor.off("focus", this.focusHandler), this.editor.off("blur", this.blurHandler);
15715
15727
  }
15716
15728
  }
15717
- const td = (n) => new Q({
15729
+ const ed = (n) => new Q({
15718
15730
  key: typeof n.pluginKey == "string" ? new me(n.pluginKey) : n.pluginKey,
15719
15731
  view: (e) => new pb({ view: e, ...n })
15720
15732
  });
@@ -15730,7 +15742,7 @@ re.create({
15730
15742
  },
15731
15743
  addProseMirrorPlugins() {
15732
15744
  return this.options.element ? [
15733
- td({
15745
+ ed({
15734
15746
  pluginKey: this.options.pluginKey,
15735
15747
  editor: this.editor,
15736
15748
  element: this.options.element,
@@ -15768,7 +15780,7 @@ de({
15768
15780
  const t = J(null);
15769
15781
  return rr(() => {
15770
15782
  const { updateDelay: r, editor: i, pluginKey: s, shouldShow: o, tippyOptions: l } = n;
15771
- i.registerPlugin(ed({
15783
+ i.registerPlugin(Zu({
15772
15784
  updateDelay: r,
15773
15785
  editor: i,
15774
15786
  element: t.value,
@@ -15786,7 +15798,7 @@ de({
15786
15798
  }
15787
15799
  });
15788
15800
  function Aa(n) {
15789
- return Ld((e, t) => ({
15801
+ return Rd((e, t) => ({
15790
15802
  get() {
15791
15803
  return e(), n;
15792
15804
  },
@@ -15803,7 +15815,7 @@ class mb extends By {
15803
15815
  constructor(e = {}) {
15804
15816
  return super(e), this.contentComponent = null, this.appContext = null, this.reactiveState = Aa(this.view.state), this.reactiveExtensionStorage = Aa(this.extensionStorage), this.on("beforeTransaction", ({ nextState: t }) => {
15805
15817
  this.reactiveState.value = t, this.reactiveExtensionStorage.value = this.extensionStorage;
15806
- }), Rd(this);
15818
+ }), Dd(this);
15807
15819
  }
15808
15820
  get state() {
15809
15821
  return this.reactiveState ? this.reactiveState.value : this.view.state;
@@ -15835,8 +15847,8 @@ const gb = de({
15835
15847
  }
15836
15848
  },
15837
15849
  setup(n) {
15838
- const e = J(), t = Id();
15839
- return Dd(() => {
15850
+ const e = J(), t = Nd();
15851
+ return Id(() => {
15840
15852
  const r = n.editor;
15841
15853
  r && r.options.element && e.value && yi(() => {
15842
15854
  if (!e.value || !r.options.element.firstChild)
@@ -15891,7 +15903,7 @@ de({
15891
15903
  const t = J(null);
15892
15904
  return rr(() => {
15893
15905
  const { pluginKey: r, editor: i, tippyOptions: s, shouldShow: o } = n;
15894
- i.registerPlugin(td({
15906
+ i.registerPlugin(ed({
15895
15907
  pluginKey: r,
15896
15908
  editor: i,
15897
15909
  element: t.value,
@@ -15948,7 +15960,7 @@ de({
15948
15960
  }
15949
15961
  });
15950
15962
  const yb = (n = {}) => {
15951
- const e = Nd();
15963
+ const e = Ad();
15952
15964
  return rr(() => {
15953
15965
  e.value = new mb(n);
15954
15966
  }), bi(() => {
@@ -15956,18 +15968,18 @@ const yb = (n = {}) => {
15956
15968
  const s = (t = e.value) === null || t === void 0 ? void 0 : t.options.element, o = s?.cloneNode(!0);
15957
15969
  (r = s?.parentNode) === null || r === void 0 || r.replaceChild(o, s), (i = e.value) === null || i === void 0 || i.destroy();
15958
15970
  }), e;
15959
- }, bb = zu.extend({
15971
+ }, bb = Bu.extend({
15960
15972
  addKeyboardShortcuts() {
15961
15973
  return {
15962
15974
  "Shift-Enter": () => this.editor.commands.setHardBreak()
15963
15975
  };
15964
15976
  }
15965
- }), kb = "aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2", vb = "ελ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", Ws = "numeric", Ks = "ascii", Us = "alpha", Ln = "asciinumeric", On = "alphanumeric", qs = "domain", nd = "emoji", xb = "scheme", wb = "slashscheme", fs = "whitespace";
15977
+ }), kb = "aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2", xb = "ελ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", Ws = "numeric", Ks = "ascii", Us = "alpha", Ln = "asciinumeric", On = "alphanumeric", qs = "domain", td = "emoji", vb = "scheme", wb = "slashscheme", fs = "whitespace";
15966
15978
  function Sb(n, e) {
15967
15979
  return n in e || (e[n] = []), e[n];
15968
15980
  }
15969
15981
  function $t(n, e, t) {
15970
- e[Ws] && (e[Ln] = !0, e[On] = !0), e[Ks] && (e[Ln] = !0, e[Us] = !0), e[Ln] && (e[On] = !0), e[Us] && (e[On] = !0), e[On] && (e[qs] = !0), e[nd] && (e[qs] = !0);
15982
+ e[Ws] && (e[Ln] = !0, e[On] = !0), e[Ks] && (e[Ln] = !0, e[Us] = !0), e[Ln] && (e[On] = !0), e[Us] && (e[On] = !0), e[On] && (e[qs] = !0), e[td] && (e[qs] = !0);
15971
15983
  for (const r in e) {
15972
15984
  const i = Sb(r, t);
15973
15985
  i.indexOf(n) < 0 && i.push(n);
@@ -16103,13 +16115,13 @@ Ce.prototype = {
16103
16115
  return i.j[n] = o, o;
16104
16116
  }
16105
16117
  };
16106
- const F = (n, e, t, r, i) => n.ta(e, t, r, i), G = (n, e, t, r, i) => n.tr(e, t, r, i), Na = (n, e, t, r, i) => n.ts(e, t, r, i), w = (n, e, t, r, i) => n.tt(e, t, r, i), st = "WORD", Js = "UWORD", rd = "ASCIINUMERICAL", id = "ALPHANUMERICAL", Zn = "LOCALHOST", Gs = "TLD", Ys = "UTLD", Or = "SCHEME", cn = "SLASH_SCHEME", No = "NUM", Xs = "WS", Io = "NL", Pn = "OPENBRACE", Bn = "CLOSEBRACE", Wr = "OPENBRACKET", Kr = "CLOSEBRACKET", Ur = "OPENPAREN", qr = "CLOSEPAREN", Jr = "OPENANGLEBRACKET", Gr = "CLOSEANGLEBRACKET", Yr = "FULLWIDTHLEFTPAREN", Xr = "FULLWIDTHRIGHTPAREN", Qr = "LEFTCORNERBRACKET", Zr = "RIGHTCORNERBRACKET", ei = "LEFTWHITECORNERBRACKET", ti = "RIGHTWHITECORNERBRACKET", ni = "FULLWIDTHLESSTHAN", ri = "FULLWIDTHGREATERTHAN", ii = "AMPERSAND", si = "APOSTROPHE", oi = "ASTERISK", gt = "AT", li = "BACKSLASH", ai = "BACKTICK", ci = "CARET", bt = "COLON", Do = "COMMA", ui = "DOLLAR", qe = "DOT", di = "EQUALS", Ro = "EXCLAMATION", Pe = "HYPHEN", zn = "PERCENT", fi = "PIPE", hi = "PLUS", pi = "POUND", Fn = "QUERY", Lo = "QUOTE", sd = "FULLWIDTHMIDDLEDOT", Po = "SEMI", Je = "SLASH", $n = "TILDE", mi = "UNDERSCORE", od = "EMOJI", gi = "SYM";
16107
- var ld = /* @__PURE__ */ Object.freeze({
16118
+ const F = (n, e, t, r, i) => n.ta(e, t, r, i), G = (n, e, t, r, i) => n.tr(e, t, r, i), Na = (n, e, t, r, i) => n.ts(e, t, r, i), w = (n, e, t, r, i) => n.tt(e, t, r, i), st = "WORD", Js = "UWORD", nd = "ASCIINUMERICAL", rd = "ALPHANUMERICAL", Zn = "LOCALHOST", Gs = "TLD", Ys = "UTLD", Or = "SCHEME", cn = "SLASH_SCHEME", No = "NUM", Xs = "WS", Io = "NL", Pn = "OPENBRACE", Bn = "CLOSEBRACE", Wr = "OPENBRACKET", Kr = "CLOSEBRACKET", Ur = "OPENPAREN", qr = "CLOSEPAREN", Jr = "OPENANGLEBRACKET", Gr = "CLOSEANGLEBRACKET", Yr = "FULLWIDTHLEFTPAREN", Xr = "FULLWIDTHRIGHTPAREN", Qr = "LEFTCORNERBRACKET", Zr = "RIGHTCORNERBRACKET", ei = "LEFTWHITECORNERBRACKET", ti = "RIGHTWHITECORNERBRACKET", ni = "FULLWIDTHLESSTHAN", ri = "FULLWIDTHGREATERTHAN", ii = "AMPERSAND", si = "APOSTROPHE", oi = "ASTERISK", gt = "AT", li = "BACKSLASH", ai = "BACKTICK", ci = "CARET", bt = "COLON", Do = "COMMA", ui = "DOLLAR", qe = "DOT", di = "EQUALS", Ro = "EXCLAMATION", Pe = "HYPHEN", zn = "PERCENT", fi = "PIPE", hi = "PLUS", pi = "POUND", Fn = "QUERY", Lo = "QUOTE", id = "FULLWIDTHMIDDLEDOT", Po = "SEMI", Je = "SLASH", $n = "TILDE", mi = "UNDERSCORE", sd = "EMOJI", gi = "SYM";
16119
+ var od = /* @__PURE__ */ Object.freeze({
16108
16120
  __proto__: null,
16109
- ALPHANUMERICAL: id,
16121
+ ALPHANUMERICAL: rd,
16110
16122
  AMPERSAND: ii,
16111
16123
  APOSTROPHE: si,
16112
- ASCIINUMERICAL: rd,
16124
+ ASCIINUMERICAL: nd,
16113
16125
  ASTERISK: oi,
16114
16126
  AT: gt,
16115
16127
  BACKSLASH: li,
@@ -16123,13 +16135,13 @@ var ld = /* @__PURE__ */ Object.freeze({
16123
16135
  COMMA: Do,
16124
16136
  DOLLAR: ui,
16125
16137
  DOT: qe,
16126
- EMOJI: od,
16138
+ EMOJI: sd,
16127
16139
  EQUALS: di,
16128
16140
  EXCLAMATION: Ro,
16129
16141
  FULLWIDTHGREATERTHAN: ri,
16130
16142
  FULLWIDTHLEFTPAREN: Yr,
16131
16143
  FULLWIDTHLESSTHAN: ni,
16132
- FULLWIDTHMIDDLEDOT: sd,
16144
+ FULLWIDTHMIDDLEDOT: id,
16133
16145
  FULLWIDTHRIGHTPAREN: Xr,
16134
16146
  HYPHEN: Pe,
16135
16147
  LEFTCORNERBRACKET: Qr,
@@ -16164,19 +16176,19 @@ var ld = /* @__PURE__ */ Object.freeze({
16164
16176
  });
16165
16177
  const rt = /[a-z]/, Cn = new RegExp("\\p{L}", "u"), hs = new RegExp("\\p{Emoji}", "u"), it = /\d/, ps = /\s/, Ia = "\r", ms = `
16166
16178
  `, Mb = "️", Tb = "‍", gs = "";
16167
- let xr = null, wr = null;
16179
+ let vr = null, wr = null;
16168
16180
  function Eb(n = []) {
16169
16181
  const e = {};
16170
16182
  Ce.groups = e;
16171
16183
  const t = new Ce();
16172
- xr == null && (xr = Da(kb)), wr == null && (wr = Da(vb)), w(t, "'", si), w(t, "{", Pn), w(t, "}", Bn), w(t, "[", Wr), w(t, "]", Kr), w(t, "(", Ur), w(t, ")", qr), w(t, "<", Jr), w(t, ">", Gr), w(t, "(", Yr), w(t, ")", Xr), w(t, "「", Qr), w(t, "」", Zr), w(t, "『", ei), w(t, "』", ti), w(t, "<", ni), w(t, ">", ri), w(t, "&", ii), w(t, "*", oi), w(t, "@", gt), w(t, "`", ai), w(t, "^", ci), w(t, ":", bt), w(t, ",", Do), w(t, "$", ui), w(t, ".", qe), w(t, "=", di), w(t, "!", Ro), w(t, "-", Pe), w(t, "%", zn), w(t, "|", fi), w(t, "+", hi), w(t, "#", pi), w(t, "?", Fn), w(t, '"', Lo), w(t, "/", Je), w(t, ";", Po), w(t, "~", $n), w(t, "_", mi), w(t, "\\", li), w(t, "・", sd);
16184
+ vr == null && (vr = Da(kb)), wr == null && (wr = Da(xb)), w(t, "'", si), w(t, "{", Pn), w(t, "}", Bn), w(t, "[", Wr), w(t, "]", Kr), w(t, "(", Ur), w(t, ")", qr), w(t, "<", Jr), w(t, ">", Gr), w(t, "(", Yr), w(t, ")", Xr), w(t, "「", Qr), w(t, "」", Zr), w(t, "『", ei), w(t, "』", ti), w(t, "<", ni), w(t, ">", ri), w(t, "&", ii), w(t, "*", oi), w(t, "@", gt), w(t, "`", ai), w(t, "^", ci), w(t, ":", bt), w(t, ",", Do), w(t, "$", ui), w(t, ".", qe), w(t, "=", di), w(t, "!", Ro), w(t, "-", Pe), w(t, "%", zn), w(t, "|", fi), w(t, "+", hi), w(t, "#", pi), w(t, "?", Fn), w(t, '"', Lo), w(t, "/", Je), w(t, ";", Po), w(t, "~", $n), w(t, "_", mi), w(t, "\\", li), w(t, "・", id);
16173
16185
  const r = G(t, it, No, {
16174
16186
  [Ws]: !0
16175
16187
  });
16176
16188
  G(r, it, r);
16177
- const i = G(r, rt, rd, {
16189
+ const i = G(r, rt, nd, {
16178
16190
  [Ln]: !0
16179
- }), s = G(r, Cn, id, {
16191
+ }), s = G(r, Cn, rd, {
16180
16192
  [On]: !0
16181
16193
  }), o = G(t, rt, st, {
16182
16194
  [Ks]: !0
@@ -16194,15 +16206,15 @@ function Eb(n = []) {
16194
16206
  [fs]: !0
16195
16207
  });
16196
16208
  w(t, gs, u), w(c, ms, a), w(c, gs, u), G(c, ps, u), w(u, Ia), w(u, ms), G(u, ps, u), w(u, gs, u);
16197
- const d = G(t, hs, od, {
16198
- [nd]: !0
16209
+ const d = G(t, hs, sd, {
16210
+ [td]: !0
16199
16211
  });
16200
16212
  w(d, "#"), G(d, hs, d), w(d, Mb, d);
16201
16213
  const f = w(d, Tb);
16202
16214
  w(f, "#"), G(f, hs, d);
16203
16215
  const h = [[rt, o], [it, i]], p = [[rt, null], [Cn, l], [it, s]];
16204
- for (let m = 0; m < xr.length; m++)
16205
- ft(t, xr[m], Gs, st, h);
16216
+ for (let m = 0; m < vr.length; m++)
16217
+ ft(t, vr[m], Gs, st, h);
16206
16218
  for (let m = 0; m < wr.length; m++)
16207
16219
  ft(t, wr[m], Ys, Js, p);
16208
16220
  $t(Gs, {
@@ -16220,7 +16232,7 @@ function Eb(n = []) {
16220
16232
  }, e), n = n.sort((m, y) => m[0] > y[0] ? 1 : -1);
16221
16233
  for (let m = 0; m < n.length; m++) {
16222
16234
  const y = n[m][0], C = n[m][1] ? {
16223
- [xb]: !0
16235
+ [vb]: !0
16224
16236
  } : {
16225
16237
  [wb]: !0
16226
16238
  };
@@ -16232,10 +16244,10 @@ function Eb(n = []) {
16232
16244
  start: t,
16233
16245
  tokens: Object.assign({
16234
16246
  groups: e
16235
- }, ld)
16247
+ }, od)
16236
16248
  };
16237
16249
  }
16238
- function ad(n, e) {
16250
+ function ld(n, e) {
16239
16251
  const t = Ob(e.replace(/[A-Z]/g, (l) => l.toLowerCase())), r = t.length, i = [];
16240
16252
  let s = 0, o = 0;
16241
16253
  for (; o < r; ) {
@@ -16379,10 +16391,10 @@ Bo.prototype = {
16379
16391
  function Ra(n) {
16380
16392
  return n;
16381
16393
  }
16382
- function cd(n, e) {
16394
+ function ad(n, e) {
16383
16395
  this.t = "token", this.v = n, this.tk = e;
16384
16396
  }
16385
- cd.prototype = {
16397
+ ad.prototype = {
16386
16398
  isLink: !1,
16387
16399
  /**
16388
16400
  * Return the string this token represents.
@@ -16487,7 +16499,7 @@ cd.prototype = {
16487
16499
  }
16488
16500
  };
16489
16501
  function Di(n, e) {
16490
- class t extends cd {
16502
+ class t extends ad {
16491
16503
  constructor(i, s) {
16492
16504
  super(i, s), this.t = n;
16493
16505
  }
@@ -16549,8 +16561,8 @@ function Nb({
16549
16561
  F(b, n.tld, C), F(b, n.utld, C), F(C, n.domain, o), F(C, r, s), w(C, qe, b), w(C, Pe, y), w(C, gt, c);
16550
16562
  const M = w(C, bt), g = Le(Sr);
16551
16563
  F(M, n.numeric, g);
16552
- const S = Le(Sr), v = Le();
16553
- F(S, e, S), F(S, t, v), F(v, e, S), F(v, t, v), w(C, Je, S), w(g, Je, S);
16564
+ const S = Le(Sr), x = Le();
16565
+ F(S, e, S), F(S, t, x), F(x, e, S), F(x, t, x), w(C, Je, S), w(g, Je, S);
16554
16566
  const P = w(l, bt), T = w(a, bt), z = w(T, Je), j = w(z, Je);
16555
16567
  F(l, n.domain, o), w(l, qe, b), w(l, Pe, y), F(a, n.domain, o), w(a, qe, b), w(a, Pe, y), F(P, n.domain, S), w(P, Je, S), w(P, Fn, S), F(j, n.domain, S), F(j, e, S), w(j, Je, S);
16556
16568
  const Ee = [
@@ -16573,7 +16585,7 @@ function Nb({
16573
16585
  ];
16574
16586
  for (let se = 0; se < Ee.length; se++) {
16575
16587
  const [X, et] = Ee[se], We = w(S, X);
16576
- w(v, X, We), w(We, et, S);
16588
+ w(x, X, We), w(We, et, S);
16577
16589
  const tt = Le(Sr);
16578
16590
  F(We, e, tt);
16579
16591
  const Ke = Le();
@@ -16581,7 +16593,7 @@ function Nb({
16581
16593
  }
16582
16594
  return w(i, Zn, C), w(i, Io, Ab), {
16583
16595
  start: i,
16584
- tokens: ld
16596
+ tokens: od
16585
16597
  };
16586
16598
  }
16587
16599
  function Ib(n, e, t) {
@@ -16641,10 +16653,10 @@ function Pb() {
16641
16653
  return U.initialized = !0, U;
16642
16654
  }
16643
16655
  function zo(n) {
16644
- return U.initialized || Pb(), Ib(U.parser.start, n, ad(U.scanner.start, n));
16656
+ return U.initialized || Pb(), Ib(U.parser.start, n, ld(U.scanner.start, n));
16645
16657
  }
16646
- zo.scan = ad;
16647
- function ud(n, e = null, t = null) {
16658
+ zo.scan = ld;
16659
+ function cd(n, e = null, t = null) {
16648
16660
  if (e && typeof e == "object") {
16649
16661
  if (t)
16650
16662
  throw Error(`linkifyjs: Invalid link type ${e}; must be a string`);
@@ -16737,7 +16749,7 @@ function jb(n) {
16737
16749
  r.content.forEach((c) => {
16738
16750
  l += c.textContent;
16739
16751
  });
16740
- const a = ud(l, { defaultProtocol: n.defaultProtocol }).find((c) => c.isLink && c.value === l);
16752
+ const a = cd(l, { defaultProtocol: n.defaultProtocol }).find((c) => c.isLink && c.value === l);
16741
16753
  return !l || !a ? !1 : n.editor.commands.setMark(n.type, {
16742
16754
  href: a.href
16743
16755
  });
@@ -16876,7 +16888,7 @@ const _b = Ze.create({
16876
16888
  find: (n) => {
16877
16889
  const e = [];
16878
16890
  if (n) {
16879
- const { protocols: t, defaultProtocol: r } = this.options, i = ud(n).filter((s) => s.isLink && this.options.isAllowedUri(s.value, {
16891
+ const { protocols: t, defaultProtocol: r } = this.options, i = cd(n).filter((s) => s.isLink && this.options.isAllowedUri(s.value, {
16880
16892
  defaultValidate: (o) => !!Rt(o, t),
16881
16893
  protocols: t,
16882
16894
  defaultProtocol: r
@@ -16923,8 +16935,8 @@ const _b = Ze.create({
16923
16935
  }), Wb = () => {
16924
16936
  const n = "(http://www\\.|https://www\\.|http://|https://)", e = "[a-z0-9]+([-.]{1}[a-z0-9]+)*\\.[a-z]{2,5}(:[0-9]{1,5})?(/.*)?";
16925
16937
  return new RegExp(`^${n}?${e}$`);
16926
- }, Kb = Wb(), dd = (n) => Kb.test(n), Ar = {
16927
- urlValidator: dd,
16938
+ }, Kb = Wb(), ud = (n) => Kb.test(n), Ar = {
16939
+ urlValidator: ud,
16928
16940
  sanitizeUrlText: (n) => ["http://", "https://"].some(
16929
16941
  (t) => n.includes(t)
16930
16942
  ) ? n : `https://${n}`
@@ -17012,7 +17024,7 @@ const _b = Ze.create({
17012
17024
  "Mod-Shift-r": () => n() && this.editor.commands.setTextAlign("right")
17013
17025
  };
17014
17026
  }
17015
- }), Gb = ju.extend({
17027
+ }), Gb = Vu.extend({
17016
17028
  addAttributes() {
17017
17029
  const n = "small-text";
17018
17030
  return {
@@ -17130,19 +17142,19 @@ function b1(n, e) {
17130
17142
  L("path", { d: "M6 26.5h15M13.5 26.6l3.916-21.144M10 5.5h15" }, null, -1)
17131
17143
  ]));
17132
17144
  }
17133
- const k1 = { render: b1 }, v1 = {
17145
+ const k1 = { render: b1 }, x1 = {
17134
17146
  xmlns: "http://www.w3.org/2000/svg",
17135
17147
  fill: "none",
17136
17148
  stroke: "#000",
17137
17149
  "stroke-linejoin": "round",
17138
17150
  viewBox: "0 0 32 32"
17139
17151
  };
17140
- function x1(n, e) {
17141
- return N(), H("svg", v1, e[0] || (e[0] = [
17152
+ function v1(n, e) {
17153
+ return N(), H("svg", x1, e[0] || (e[0] = [
17142
17154
  L("path", { d: "M14.539 18.62c-1.442-1.442-1.252-3.971.424-5.647l6.107-6.107c1.677-1.677 4.205-1.866 5.647-.424l1.699 1.699c1.442 1.442 1.252 3.971-.424 5.647l-6.107 6.107c-1.217 1.217-2.884 1.651-4.258 1.245m-.166-7.345c1.442 1.442 1.252 3.971-.424 5.647l-6.107 6.107c-1.677 1.677-4.205 1.866-5.647.424l-1.699-1.699c-1.442-1.442-1.252-3.971.424-5.647l6.107-6.107c1.217-1.217 2.884-1.651 4.258-1.245" }, null, -1)
17143
17155
  ]));
17144
17156
  }
17145
- const w1 = { render: x1 }, S1 = {
17157
+ const w1 = { render: v1 }, S1 = {
17146
17158
  xmlns: "http://www.w3.org/2000/svg",
17147
17159
  fill: "none",
17148
17160
  stroke: "#000",
@@ -17223,8 +17235,8 @@ const z1 = { render: B1 }, F1 = ({
17223
17235
  const { view: p, state: m } = n, { from: y, to: b } = p.state.selection, C = n.getAttributes("link").href;
17224
17236
  if (s.value = C || "", C) {
17225
17237
  if (y !== b) {
17226
- const v = y + Math.floor((b - y) / 2);
17227
- n.chain().focus().setTextSelection(v).run();
17238
+ const x = y + Math.floor((b - y) / 2);
17239
+ n.chain().focus().setTextSelection(x).run();
17228
17240
  }
17229
17241
  const g = p.state.selection.$from.nodeBefore?.textContent ?? "", S = p.state.selection.$to.nodeAfter?.textContent ?? "";
17230
17242
  i.value = g + S;
@@ -17510,7 +17522,7 @@ const z1 = { render: B1 }, F1 = ({
17510
17522
  active: a.active?.(),
17511
17523
  title: o.hotkeyFormatter(a.hotkey ?? []),
17512
17524
  compact: "",
17513
- onKeydown: Pd(Hn(a.onClick, ["prevent"]), ["enter"]),
17525
+ onKeydown: Ld(Hn(a.onClick, ["prevent"]), ["enter"]),
17514
17526
  onClick: Hn(a.onClick, ["stop"])
17515
17527
  }, {
17516
17528
  default: q(() => [
@@ -17568,7 +17580,7 @@ const z1 = { render: B1 }, F1 = ({
17568
17580
  "3be646ac": M.value,
17569
17581
  "1017f318": b.value
17570
17582
  }));
17571
- const r = n, i = Math.max(r.characterLimit, J1), s = Bd(), {
17583
+ const r = n, i = Math.max(r.characterLimit, J1), s = Pd(), {
17572
17584
  modelValue: o,
17573
17585
  editable: l,
17574
17586
  disabled: a,
@@ -17601,7 +17613,7 @@ const z1 = { render: B1 }, F1 = ({
17601
17613
  alignments: ["left", "right", "center"]
17602
17614
  })
17603
17615
  ] : [],
17604
- ...h("link") ? [Ub.configure({ validate: dd })] : [],
17616
+ ...h("link") ? [Ub.configure({ validate: ud })] : [],
17605
17617
  bb,
17606
17618
  $y.configure({
17607
17619
  limit: i
@@ -17646,19 +17658,19 @@ const z1 = { render: B1 }, F1 = ({
17646
17658
  ), rr(async () => {
17647
17659
  r.editable && r.autofocus && (await yi(), C());
17648
17660
  });
17649
- const v = s.customToolbar, P = ye(() => Object.keys(r.baseExtensions).length);
17661
+ const x = s.customToolbar, P = ye(() => Object.keys(r.baseExtensions).length);
17650
17662
  return (T, z) => (N(), H("div", {
17651
17663
  class: $e(["editor-wrapper", { "with-border": T.withBorder, disabled: V(a) }])
17652
17664
  }, [
17653
17665
  P.value ? (N(), ne(bs, {
17654
17666
  key: 0,
17655
17667
  name: "expand",
17656
- css: !V(v)
17668
+ css: !V(x)
17657
17669
  }, {
17658
17670
  default: q(() => [
17659
17671
  V(y) && V(l) && !V(a) ? (N(), H("div", {
17660
17672
  key: 0,
17661
- class: $e({ "embedded-toolbar": !V(v) })
17673
+ class: $e({ "embedded-toolbar": !V(x) })
17662
17674
  }, [
17663
17675
  Z(V1, {
17664
17676
  editor: V(y),
@@ -17680,7 +17692,7 @@ const z1 = { render: B1 }, F1 = ({
17680
17692
  ]),
17681
17693
  linkModal: q(({ linkTool: j }) => [
17682
17694
  Ne(T.$slots, "linkModal", { linkTool: j }, () => [
17683
- h("link") && j ? (N(), ne(Qa, nr({ key: 0 }, j.props, Wa(j.events)), null, 16)) : ee("", !0)
17695
+ h("link") && j ? (N(), ne(Xa, nr({ key: 0 }, j.props, Wa(j.events)), null, 16)) : ee("", !0)
17684
17696
  ], !0)
17685
17697
  ]),
17686
17698
  _: 3
@@ -17749,7 +17761,7 @@ const z1 = { render: B1 }, F1 = ({
17749
17761
  ref_key: "linkDialog",
17750
17762
  ref: t
17751
17763
  }, [
17752
- Z(V(Qa), nr({ ...o.linkTool.props, ...r }, Wa(o.linkTool.events)), null, 16)
17764
+ Z(V(Xa), nr({ ...o.linkTool.props, ...r }, Wa(o.linkTool.events)), null, 16)
17753
17765
  ], 512));
17754
17766
  }
17755
17767
  }), Z1 = /* @__PURE__ */ Ve(Q1, [["__scopeId", "data-v-9d1514e4"]]), ek = /* @__PURE__ */ de({