@dialpad/dialtone-vue 3.109.2 → 3.110.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/CHANGELOG.json +1 -1
  2. package/CHANGELOG.md +27 -0
  3. package/dist/component-documentation.json +1 -1
  4. package/dist/dialtone-vue.cjs +2 -2
  5. package/dist/dialtone-vue.js +446 -445
  6. package/dist/directives.cjs +1 -1
  7. package/dist/directives.js +29 -49
  8. package/dist/{emoji-ppApZXjY.js → emoji-acqIsOA0.js} +3865 -3795
  9. package/dist/emoji-gFUvTgzf.cjs +1 -0
  10. package/dist/emoji.cjs +1 -1
  11. package/dist/emoji.js +4 -4
  12. package/dist/{emoji_picker-XHD9NN0X.js → emoji_picker-7KBwg94e.js} +2 -2
  13. package/dist/{emoji_picker-mKaAu1dm.cjs → emoji_picker-XmAzvsvD.cjs} +1 -1
  14. package/dist/{emoji_text_wrapper-U7jKFbg1.cjs → emoji_text_wrapper-Cr15_VcH.cjs} +1 -1
  15. package/dist/{emoji_text_wrapper-rnrD1UpL.js → emoji_text_wrapper-TK25xXF3.js} +1 -1
  16. package/dist/message_input.cjs +1 -1
  17. package/dist/message_input.js +32 -16
  18. package/dist/{rich_text_editor-CkZ82uQY.cjs → rich_text_editor--3JpdmJ2.cjs} +2 -2
  19. package/dist/{rich_text_editor-G1GLwWlk.js → rich_text_editor-_GiT5AG_.js} +584 -571
  20. package/dist/style.css +1 -1
  21. package/dist/{tooltip-Ooi51wOv.js → tooltip-Od71Luh6.js} +10 -10
  22. package/dist/types/components/item_layout/item_layout.vue.d.ts +21 -1
  23. package/dist/types/components/item_layout/item_layout.vue.d.ts.map +1 -1
  24. package/dist/types/components/list_item/list_item.vue.d.ts +12 -1
  25. package/dist/types/components/list_item/list_item.vue.d.ts.map +1 -1
  26. package/dist/types/directives/tooltip/tooltip.d.ts.map +1 -1
  27. package/dist/types/index.d.ts +1 -1
  28. package/dist/types/recipes/conversation_view/message_input/message_input.vue.d.ts +31 -0
  29. package/dist/types/recipes/conversation_view/message_input/message_input.vue.d.ts.map +1 -1
  30. package/dist/types/recipes/{list_items → item_layout}/contact_info/contact_info.vue.d.ts +1 -16
  31. package/dist/types/recipes/item_layout/contact_info/contact_info.vue.d.ts.map +1 -0
  32. package/dist/types/recipes/item_layout/contact_info/index.d.ts.map +1 -0
  33. package/dist/types/recipes/leftbar/callbox/callbox.vue.d.ts +1 -1
  34. package/package.json +6 -5
  35. package/dist/emoji-HI8urLsM.cjs +0 -1
  36. package/dist/types/recipes/list_items/contact_info/contact_info.vue.d.ts.map +0 -1
  37. package/dist/types/recipes/list_items/contact_info/index.d.ts.map +0 -1
  38. /package/dist/types/recipes/{list_items → item_layout}/contact_info/index.d.ts +0 -0
@@ -1,6 +1,6 @@
1
- import { _ as de, g as gi, d as Ga, u as Ya, e as Xa, B as Qa, h as Zo, i as Za, j as ec, k as tc, l as nc, m as Es, t as Er, n as rc, o as ic } from "./tooltip-Ooi51wOv.js";
2
- import { B as sc, w as Cr, I as oc, L as lc, C as ac, t as el, D as tl, E as cc, m as dc, o as nl } from "./emoji-ppApZXjY.js";
3
- import { openBlock as O, createElementBlock as j, toDisplayString as ut, createCommentVNode as J, createElementVNode as ht, normalizeClass as ee, resolveComponent as $, createBlock as z, resolveDynamicComponent as kt, withCtx as q, mergeProps as Tr, renderSlot as se, withKeys as Ot, withModifiers as Xt, createVNode as nt, toHandlers as rl, createSlots as uc, renderList as il, Teleport as sl, defineComponent as $t, ref as Mr, onMounted as ol, onBeforeUnmount as qi, h as ft, getCurrentInstance as hc, watchEffect as fc, nextTick as pc, unref as mc, markRaw as wr, reactive as ll, provide as Cs, customRef as gc, withDirectives as yc, Fragment as bc, vShow as kc, createTextVNode as Ki } from "vue";
1
+ import { _ as de, g as gi, d as Ga, h as qi, u as Ya, T as Xa, B as Qa, e as Za, i as ec, j as tc, k as nc, l as Es, t as Cr, m as rc, n as ic } from "./tooltip-Od71Luh6.js";
2
+ import { B as sc, w as Er, I as oc, L as lc, C as ac, t as el, D as tl, E as cc, m as dc, o as nl } from "./emoji-acqIsOA0.js";
3
+ import { openBlock as O, createElementBlock as j, toDisplayString as ut, createCommentVNode as J, createElementVNode as ht, normalizeClass as X, resolveComponent as $, createBlock as z, resolveDynamicComponent as kt, withCtx as q, mergeProps as Tr, renderSlot as se, withKeys as Ot, withModifiers as Xt, createVNode as nt, toHandlers as rl, createSlots as uc, renderList as il, Teleport as sl, defineComponent as $t, ref as Mr, onMounted as ol, onBeforeUnmount as Ki, h as ft, getCurrentInstance as hc, watchEffect as fc, nextTick as pc, unref as mc, markRaw as wr, reactive as ll, provide as Ts, customRef as gc, withDirectives as yc, Fragment as bc, vShow as kc, createTextVNode as Wi } from "vue";
4
4
  const Ut = {
5
5
  BUSY: "busy",
6
6
  AWAY: "away",
@@ -34,7 +34,7 @@ const Ut = {
34
34
  default: null
35
35
  }
36
36
  }
37
- }, Ec = ["aria-live"], Cc = {
37
+ }, Cc = ["aria-live"], Ec = {
38
38
  key: 0,
39
39
  "data-qa": "dt-presence-sr-text",
40
40
  class: "sr-only"
@@ -46,16 +46,16 @@ function Tc(n, e, t, r, i, s) {
46
46
  role: "status",
47
47
  "aria-live": n.$attrs.ariaLive || "off"
48
48
  }, [
49
- t.srText ? (O(), j("span", Cc, ut(t.srText), 1)) : J("", !0),
49
+ t.srText ? (O(), j("span", Ec, ut(t.srText), 1)) : J("", !0),
50
50
  ht("div", {
51
- class: ee(["d-presence__inner", {
51
+ class: X(["d-presence__inner", {
52
52
  "d-presence__inner--active": t.presence === "active",
53
53
  "d-presence__inner--away": t.presence === "away",
54
54
  "d-presence__inner--busy": t.presence === "busy",
55
55
  "d-presence__inner--offline": t.presence === "offline"
56
56
  }])
57
57
  }, null, 2)
58
- ], 8, Ec);
58
+ ], 8, Cc);
59
59
  }
60
60
  const Mc = /* @__PURE__ */ de(xc, [["render", Tc]]), jr = {
61
61
  xs: "d-avatar--xs",
@@ -70,7 +70,7 @@ const Mc = /* @__PURE__ */ de(xc, [["render", Tc]]), jr = {
70
70
  }, Oc = {
71
71
  md: "d-avatar__presence--md",
72
72
  lg: "d-avatar__presence--lg"
73
- }, Ts = {
73
+ }, Ms = {
74
74
  NONE: "",
75
75
  BUSY: "busy",
76
76
  AWAY: "away",
@@ -101,7 +101,7 @@ const Mc = /* @__PURE__ */ de(xc, [["render", Tc]]), jr = {
101
101
  "1600",
102
102
  "1700",
103
103
  "1800"
104
- ], Ms = (n) => n > 1;
104
+ ], ws = (n) => n > 1;
105
105
  function Nc() {
106
106
  return [void 0, ...sc];
107
107
  }
@@ -112,7 +112,7 @@ const Dc = (n) => {
112
112
  return e.length === 1 ? e.join("").substring(0, 2) : e.filter((t, r) => r === 0 || r === e.length - 1).map((t) => t.slice(0, 1).toUpperCase()).join("");
113
113
  }, Ic = Nc(), Rc = {
114
114
  name: "DtAvatar",
115
- components: { DtPresence: Mc, DtIcon: Cr },
115
+ components: { DtPresence: Mc, DtIcon: Er },
116
116
  inheritAttrs: !1,
117
117
  props: {
118
118
  /**
@@ -178,8 +178,8 @@ const Dc = (n) => {
178
178
  */
179
179
  presence: {
180
180
  type: String,
181
- default: Ts.NONE,
182
- validator: (n) => Object.values(Ts).includes(n)
181
+ default: Ms.NONE,
182
+ validator: (n) => Object.values(Ms).includes(n)
183
183
  },
184
184
  /**
185
185
  * A set of props to be passed into the presence component.
@@ -196,7 +196,7 @@ const Dc = (n) => {
196
196
  group: {
197
197
  type: Number,
198
198
  default: void 0,
199
- validator: (n) => Ms(n)
199
+ validator: (n) => ws(n)
200
200
  },
201
201
  /**
202
202
  * The icon that overlays the avatar
@@ -310,7 +310,7 @@ const Dc = (n) => {
310
310
  ];
311
311
  },
312
312
  showGroup() {
313
- return Ms(this.group);
313
+ return ws(this.group);
314
314
  },
315
315
  formattedGroup() {
316
316
  return this.group > 99 ? "99+" : this.group;
@@ -379,7 +379,7 @@ function _c(n, e, t, r, i, s) {
379
379
  const o = $("dt-icon"), l = $("dt-presence");
380
380
  return O(), z(kt(t.clickable ? "button" : "div"), {
381
381
  id: t.id,
382
- class: ee(s.avatarClasses),
382
+ class: X(s.avatarClasses),
383
383
  "data-qa": "dt-avatar",
384
384
  "aria-label": s.buttonAriaLabel,
385
385
  onClick: s.handleClick
@@ -387,7 +387,7 @@ function _c(n, e, t, r, i, s) {
387
387
  default: q(() => [
388
388
  ht("div", {
389
389
  ref: "canvas",
390
- class: ee([
390
+ class: X([
391
391
  t.canvasClass,
392
392
  "d-avatar__canvas",
393
393
  { "d-avatar--image-loaded": i.imageLoadedSuccessfully }
@@ -404,16 +404,16 @@ function _c(n, e, t, r, i, s) {
404
404
  key: 1,
405
405
  name: t.iconName,
406
406
  size: t.iconSize || i.AVATAR_ICON_SIZES[t.size],
407
- class: ee([t.iconClass, i.AVATAR_KIND_MODIFIERS.icon]),
407
+ class: X([t.iconClass, i.AVATAR_KIND_MODIFIERS.icon]),
408
408
  "data-qa": "dt-avatar-icon"
409
409
  }, null, 8, ["name", "size", "class"])) : (O(), j("span", {
410
410
  key: 2,
411
- class: ee([i.AVATAR_KIND_MODIFIERS.initials])
411
+ class: X([i.AVATAR_KIND_MODIFIERS.initials])
412
412
  }, ut(i.formattedInitials), 3))
413
413
  ], 2),
414
414
  t.overlayIcon || t.overlayText ? (O(), j("div", {
415
415
  key: 0,
416
- class: ee(s.overlayClasses)
416
+ class: X(s.overlayClasses)
417
417
  }, [
418
418
  t.overlayIcon ? (O(), z(o, {
419
419
  key: 0,
@@ -457,7 +457,7 @@ const Fc = /* @__PURE__ */ de(Rc, [["render", _c]]), zc = {
457
457
  }, Hc = ["href"];
458
458
  function Vc(n, e, t, r, i, s) {
459
459
  return O(), j("a", {
460
- class: ee([
460
+ class: X([
461
461
  "d-link",
462
462
  i.LINK_KIND_MODIFIERS[t.kind]
463
463
  ]),
@@ -509,7 +509,7 @@ const $c = /* @__PURE__ */ de(zc, [["render", Vc]]), jc = {
509
509
  }, qc = {
510
510
  name: "SrOnlyCloseButton",
511
511
  components: {
512
- DtIcon: Cr,
512
+ DtIcon: Er,
513
513
  DtButton: el
514
514
  },
515
515
  props: {
@@ -628,8 +628,17 @@ const Wc = /* @__PURE__ */ de(qc, [["render", Kc]]), al = ':not(:disabled):not([
628
628
  as: {
629
629
  type: String,
630
630
  default: "div"
631
+ },
632
+ /**
633
+ * Set this prop to remove the default styling.
634
+ * @values true, false
635
+ */
636
+ unstyled: {
637
+ type: Boolean,
638
+ default: !1
631
639
  }
632
- }
640
+ },
641
+ methods: { hasSlotContent: qi }
633
642
  }, Xc = {
634
643
  key: 0,
635
644
  "data-qa": "dt-item-layout-left-wrapper",
@@ -655,41 +664,43 @@ const Wc = /* @__PURE__ */ de(qc, [["render", Kc]]), al = ':not(:disabled):not([
655
664
  class: "dt-item-layout--selected"
656
665
  };
657
666
  function rd(n, e, t, r, i, s) {
658
- return O(), z(kt(t.as), { class: "dt-item-layout" }, {
667
+ return O(), z(kt(t.as), {
668
+ class: X(t.unstyled ? "dt-item-layout--custom" : "dt-item-layout")
669
+ }, {
659
670
  default: q(() => [
660
- n.$slots.left ? (O(), j("section", Xc, [
661
- se(n.$slots, "left", {}, void 0, !0)
671
+ s.hasSlotContent(n.$slots.left) ? (O(), j("section", Xc, [
672
+ se(n.$slots, "left")
662
673
  ])) : J("", !0),
663
674
  ht("section", Qc, [
664
- n.$slots.default ? (O(), j("div", Zc, [
665
- se(n.$slots, "default", {}, void 0, !0)
675
+ s.hasSlotContent(n.$slots.default) ? (O(), j("div", Zc, [
676
+ se(n.$slots, "default")
666
677
  ])) : J("", !0),
667
- n.$slots.subtitle ? (O(), j("div", {
678
+ s.hasSlotContent(n.$slots.subtitle) ? (O(), j("div", {
668
679
  key: 1,
669
680
  "data-qa": "dt-item-layout-subtitle-wrapper",
670
- class: ee(["dt-item-layout--subtitle", { "dt-item-layout--subtitle--with-title": n.$slots.default }])
681
+ class: X(["dt-item-layout--subtitle", { "dt-item-layout--subtitle--with-title": s.hasSlotContent(n.$slots.default) }])
671
682
  }, [
672
- se(n.$slots, "subtitle", {}, void 0, !0)
683
+ se(n.$slots, "subtitle")
673
684
  ], 2)) : J("", !0),
674
- n.$slots.bottom ? (O(), j("div", ed, [
675
- se(n.$slots, "bottom", {}, void 0, !0)
685
+ s.hasSlotContent(n.$slots.bottom) ? (O(), j("div", ed, [
686
+ se(n.$slots, "bottom")
676
687
  ])) : J("", !0)
677
688
  ]),
678
- n.$slots.right ? (O(), j("section", td, [
679
- se(n.$slots, "right", {}, void 0, !0)
689
+ s.hasSlotContent(n.$slots.right) ? (O(), j("section", td, [
690
+ se(n.$slots, "right")
680
691
  ])) : J("", !0),
681
- n.$slots.selected ? (O(), j("section", nd, [
682
- se(n.$slots, "selected", {}, void 0, !0)
692
+ s.hasSlotContent(n.$slots.selected) ? (O(), j("section", nd, [
693
+ se(n.$slots, "selected")
683
694
  ])) : J("", !0)
684
695
  ]),
685
696
  _: 3
686
- });
697
+ }, 8, ["class"]);
687
698
  }
688
- const ws = /* @__PURE__ */ de(Yc, [["render", rd], ["__scopeId", "data-v-411cb81e"]]), id = {
699
+ const Os = /* @__PURE__ */ de(Yc, [["render", rd]]), id = {
689
700
  name: "DtListItem",
690
701
  components: {
691
- DtItemLayout: ws,
692
- DtIcon: Cr
702
+ DtItemLayout: Os,
703
+ DtIcon: Er
693
704
  },
694
705
  /**
695
706
  * Value provided from keyboard_list_navigation.js using id prop.
@@ -789,7 +800,7 @@ const ws = /* @__PURE__ */ de(Yc, [["render", rd], ["__scopeId", "data-v-411cb81
789
800
  listItemType() {
790
801
  switch (this.type) {
791
802
  case qr.DEFAULT:
792
- return ws;
803
+ return Os;
793
804
  default:
794
805
  return null;
795
806
  }
@@ -879,7 +890,7 @@ const od = /* @__PURE__ */ de(id, [["render", sd]]), St = {
879
890
  row: "row",
880
891
  "row-reverse": "row-reverse",
881
892
  "column-reverse": "column-reverse"
882
- }, cl = ["sm", "md", "lg", "xl"], Wi = ["0", "100", "200", "300", "400", "450", "500", "600"], Os = {
893
+ }, cl = ["sm", "md", "lg", "xl"], Ui = ["0", "100", "200", "300", "400", "450", "500", "600"], vs = {
883
894
  none: void 0,
884
895
  small: "d-p4",
885
896
  medium: "d-p8",
@@ -897,7 +908,7 @@ const od = /* @__PURE__ */ de(id, [["render", sd]]), St = {
897
908
  name: "PopoverHeaderFooter",
898
909
  components: {
899
910
  DtButton: el,
900
- DtIcon: Cr
911
+ DtIcon: Er
901
912
  },
902
913
  props: {
903
914
  // eslint-disable-next-line vue/require-default-prop
@@ -943,7 +954,7 @@ const od = /* @__PURE__ */ de(id, [["render", sd]]), St = {
943
954
  ],
944
955
  data() {
945
956
  return {
946
- hasSlotContent: Zo
957
+ hasSlotContent: qi
947
958
  };
948
959
  },
949
960
  methods: {
@@ -958,7 +969,7 @@ function pd(n, e, t, r, i, s) {
958
969
  const o = $("dt-icon"), l = $("dt-button");
959
970
  return O(), j("div", {
960
971
  "data-qa": "dt-popover-header-footer",
961
- class: ee({
972
+ class: X({
962
973
  "d-popover__header": t.type === "header",
963
974
  "d-popover__footer": t.type === "footer"
964
975
  })
@@ -966,7 +977,7 @@ function pd(n, e, t, r, i, s) {
966
977
  i.hasSlotContent(n.$slots.content) ? (O(), j("div", {
967
978
  key: 0,
968
979
  "data-qa": "dt-popover-header-footer-content",
969
- class: ee([{
980
+ class: X([{
970
981
  "d-popover__header__content": t.type === "header",
971
982
  "d-popover__footer__content": t.type === "footer"
972
983
  }, t.contentClass])
@@ -1086,7 +1097,7 @@ const md = /* @__PURE__ */ de(fd, [["render", pd]]), gd = {
1086
1097
  padding: {
1087
1098
  type: String,
1088
1099
  default: "large",
1089
- validator: (n) => Object.keys(Os).some((e) => e === n)
1100
+ validator: (n) => Object.keys(vs).some((e) => e === n)
1090
1101
  },
1091
1102
  /**
1092
1103
  * Additional class name for the content wrapper element.
@@ -1359,7 +1370,7 @@ const md = /* @__PURE__ */ de(fd, [["render", pd]]), gd = {
1359
1370
  ],
1360
1371
  data() {
1361
1372
  return {
1362
- POPOVER_PADDING_CLASSES: Os,
1373
+ POPOVER_PADDING_CLASSES: vs,
1363
1374
  POPOVER_HEADER_FOOTER_PADDING_CLASSES: ld,
1364
1375
  intersectionObserver: null,
1365
1376
  isOutsideViewport: !1,
@@ -1367,7 +1378,7 @@ const md = /* @__PURE__ */ de(fd, [["render", pd]]), gd = {
1367
1378
  toAppear: !1,
1368
1379
  anchorEl: null,
1369
1380
  popoverContentEl: null,
1370
- hasSlotContent: Zo,
1381
+ hasSlotContent: qi,
1371
1382
  inTimer: null,
1372
1383
  outTimer: null
1373
1384
  };
@@ -1540,10 +1551,12 @@ const md = /* @__PURE__ */ de(fd, [["render", pd]]), gd = {
1540
1551
  * since it is no longer the active modal. This puts it underneath the overlay and prevents scrolling.
1541
1552
  **/
1542
1553
  preventScrolling() {
1543
- var n;
1554
+ var n, e;
1544
1555
  if (this.modal) {
1545
- const e = (n = this.anchorEl) == null ? void 0 : n.closest("body, .tippy-box");
1546
- e.tagName.toLowerCase() === "body" ? (e.classList.add("d-of-hidden"), this.tip.setProps({ offset: this.offset })) : e.classList.add("d-zi-popover");
1556
+ const t = (n = this.anchorEl) == null ? void 0 : n.closest("body, .tippy-box");
1557
+ if (!t)
1558
+ return;
1559
+ ((e = t.tagName) == null ? void 0 : e.toLowerCase()) === "body" ? (t.classList.add("d-of-hidden"), this.tip.setProps({ offset: this.offset })) : t.classList.add("d-zi-popover");
1547
1560
  }
1548
1561
  },
1549
1562
  /*
@@ -1660,7 +1673,7 @@ function Sd(n, e, t, r, i, s) {
1660
1673
  ])) : J("", !0),
1661
1674
  (O(), z(kt(t.elementType), {
1662
1675
  ref: "popover",
1663
- class: ee(["d-popover", { "d-popover__anchor--opened": i.isOpen }]),
1676
+ class: X(["d-popover", { "d-popover__anchor--opened": i.isOpen }]),
1664
1677
  "data-qa": "dt-popover-container"
1665
1678
  }, {
1666
1679
  default: q(() => [
@@ -1716,7 +1729,7 @@ function Sd(n, e, t, r, i, s) {
1716
1729
  i.hasSlotContent(n.$slots.headerContent) || t.showCloseButton ? (O(), z(o, {
1717
1730
  key: 0,
1718
1731
  ref: "popover__header",
1719
- class: ee(i.POPOVER_HEADER_FOOTER_PADDING_CLASSES[t.padding]),
1732
+ class: X(i.POPOVER_HEADER_FOOTER_PADDING_CLASSES[t.padding]),
1720
1733
  "content-class": t.headerClass,
1721
1734
  type: "header",
1722
1735
  "show-close-button": t.showCloseButton,
@@ -1731,7 +1744,7 @@ function Sd(n, e, t, r, i, s) {
1731
1744
  ht("div", {
1732
1745
  ref: "popover__content",
1733
1746
  "data-qa": n.$attrs["data-qa"] ? `${n.$attrs["data-qa"]}-content` : "dt-popover-content",
1734
- class: ee([
1747
+ class: X([
1735
1748
  "d-popover__content",
1736
1749
  i.POPOVER_PADDING_CLASSES[t.padding],
1737
1750
  t.contentClass
@@ -1743,7 +1756,7 @@ function Sd(n, e, t, r, i, s) {
1743
1756
  key: 1,
1744
1757
  ref: "popover__footer",
1745
1758
  type: "footer",
1746
- class: ee(i.POPOVER_HEADER_FOOTER_PADDING_CLASSES[t.padding]),
1759
+ class: X(i.POPOVER_HEADER_FOOTER_PADDING_CLASSES[t.padding]),
1747
1760
  "content-class": t.footerClass
1748
1761
  }, {
1749
1762
  content: q(() => [
@@ -1765,15 +1778,15 @@ function Sd(n, e, t, r, i, s) {
1765
1778
  ]);
1766
1779
  }
1767
1780
  const gy = /* @__PURE__ */ de(gd, [["render", Sd]]);
1768
- function vs(n) {
1781
+ function As(n) {
1769
1782
  return n === St.default;
1770
1783
  }
1771
- function As(n) {
1784
+ function Ns(n) {
1772
1785
  if (ln(n) === "string")
1773
- return vs(n) ? null : St[n];
1786
+ return As(n) ? null : St[n];
1774
1787
  if (ln(n) === "object") {
1775
1788
  const { default: e } = n;
1776
- return vs(e) ? null : St[e];
1789
+ return As(e) ? null : St[e];
1777
1790
  } else
1778
1791
  return null;
1779
1792
  }
@@ -1781,15 +1794,15 @@ function ln(n) {
1781
1794
  return typeof n;
1782
1795
  }
1783
1796
  function xd(n) {
1784
- return As(n) ? `d-stack--${St[As(n)]}` : null;
1797
+ return Ns(n) ? `d-stack--${St[Ns(n)]}` : null;
1785
1798
  }
1786
- function Ed(n) {
1799
+ function Cd(n) {
1787
1800
  return ln(n) === "object" ? [
1788
1801
  ...cl.map((e) => n[e] ? `d-stack--${e}--${n[e]}` : null)
1789
1802
  ] : null;
1790
1803
  }
1791
- function Cd(n) {
1792
- return Wi.includes(n) ? `d-stack--gap-${n}` : null;
1804
+ function Ed(n) {
1805
+ return Ui.includes(n) ? `d-stack--gap-${n}` : null;
1793
1806
  }
1794
1807
  function Td(n) {
1795
1808
  if (ln(n) === "string")
@@ -1801,7 +1814,7 @@ function Td(n) {
1801
1814
  return null;
1802
1815
  }
1803
1816
  function Md(n) {
1804
- return Wi.includes(n);
1817
+ return Ui.includes(n);
1805
1818
  }
1806
1819
  const wd = {
1807
1820
  name: "DtStack",
@@ -1839,25 +1852,25 @@ const wd = {
1839
1852
  data() {
1840
1853
  return {
1841
1854
  DT_STACK_DIRECTION: St,
1842
- DT_STACK_GAP: Wi,
1855
+ DT_STACK_GAP: Ui,
1843
1856
  DT_STACK_RESPONSIVE_BREAKPOINTS: cl
1844
1857
  };
1845
1858
  },
1846
1859
  computed: {
1847
1860
  stackGap() {
1848
- return Cd(this.gap);
1861
+ return Ed(this.gap);
1849
1862
  },
1850
1863
  defaultDirection() {
1851
1864
  return xd(this.direction);
1852
1865
  },
1853
1866
  stackResponsive() {
1854
- return Ed(this.direction);
1867
+ return Cd(this.direction);
1855
1868
  }
1856
1869
  }
1857
1870
  };
1858
1871
  function Od(n, e, t, r, i, s) {
1859
1872
  return O(), z(kt(t.as), {
1860
- class: ee([
1873
+ class: X([
1861
1874
  "d-stack",
1862
1875
  s.defaultDirection,
1863
1876
  s.stackResponsive,
@@ -2204,15 +2217,15 @@ class b {
2204
2217
  */
2205
2218
  findIndex(e, t = -1) {
2206
2219
  if (e == 0)
2207
- return En(0, e);
2220
+ return Cn(0, e);
2208
2221
  if (e == this.size)
2209
- return En(this.content.length, e);
2222
+ return Cn(this.content.length, e);
2210
2223
  if (e > this.size || e < 0)
2211
2224
  throw new RangeError(`Position ${e} outside of fragment (${this})`);
2212
2225
  for (let r = 0, i = 0; ; r++) {
2213
2226
  let s = this.child(r), o = i + s.nodeSize;
2214
2227
  if (o >= e)
2215
- return o == e || t > 0 ? En(r + 1, o) : En(r, i);
2228
+ return o == e || t > 0 ? Cn(r + 1, o) : Cn(r, i);
2216
2229
  i = o;
2217
2230
  }
2218
2231
  }
@@ -2278,7 +2291,7 @@ class b {
2278
2291
  }
2279
2292
  b.empty = new b([], 0);
2280
2293
  const Kr = { index: 0, offset: 0 };
2281
- function En(n, e) {
2294
+ function Cn(n, e) {
2282
2295
  return Kr.index = n, Kr.offset = e, Kr;
2283
2296
  }
2284
2297
  function Rn(n, e) {
@@ -3473,14 +3486,14 @@ function Pd(n) {
3473
3486
  break;
3474
3487
  return e;
3475
3488
  }
3476
- function Ns(n) {
3489
+ function Ds(n) {
3477
3490
  /\D/.test(n.next) && n.err("Expected number, got '" + n.next + "'");
3478
3491
  let e = Number(n.next);
3479
3492
  return n.pos++, e;
3480
3493
  }
3481
3494
  function Ld(n, e) {
3482
- let t = Ns(n), r = t;
3483
- return n.eat(",") && (n.next != "}" ? r = Ns(n) : r = -1), n.eat("}") || n.err("Unclosed braced range"), { type: "range", min: t, max: r, expr: e };
3495
+ let t = Ds(n), r = t;
3496
+ return n.eat(",") && (n.next != "}" ? r = Ds(n) : r = -1), n.eat("}") || n.err("Unclosed braced range"), { type: "range", min: t, max: r, expr: e };
3484
3497
  }
3485
3498
  function Bd(n, e) {
3486
3499
  let t = n.nodeTypes, r = t[e];
@@ -3561,7 +3574,7 @@ function Fd(n) {
3561
3574
  function Sl(n, e) {
3562
3575
  return e - n;
3563
3576
  }
3564
- function Ds(n, e) {
3577
+ function Is(n, e) {
3565
3578
  let t = [];
3566
3579
  return r(e), t.sort(Sl);
3567
3580
  function r(i) {
@@ -3577,7 +3590,7 @@ function Ds(n, e) {
3577
3590
  }
3578
3591
  function zd(n) {
3579
3592
  let e = /* @__PURE__ */ Object.create(null);
3580
- return t(Ds(n, 0));
3593
+ return t(Is(n, 0));
3581
3594
  function t(r) {
3582
3595
  let i = [];
3583
3596
  r.forEach((o) => {
@@ -3587,7 +3600,7 @@ function zd(n) {
3587
3600
  let c;
3588
3601
  for (let d = 0; d < i.length; d++)
3589
3602
  i[d][0] == l && (c = i[d][1]);
3590
- Ds(n, a).forEach((d) => {
3603
+ Is(n, a).forEach((d) => {
3591
3604
  c || i.push([l, c = []]), c.indexOf(d) == -1 && c.push(d);
3592
3605
  });
3593
3606
  });
@@ -3620,7 +3633,7 @@ function xl(n) {
3620
3633
  }
3621
3634
  return e;
3622
3635
  }
3623
- function El(n, e) {
3636
+ function Cl(n, e) {
3624
3637
  let t = /* @__PURE__ */ Object.create(null);
3625
3638
  for (let r in n) {
3626
3639
  let i = e && e[r];
@@ -3635,19 +3648,19 @@ function El(n, e) {
3635
3648
  }
3636
3649
  return t;
3637
3650
  }
3638
- function Cl(n) {
3651
+ function El(n) {
3639
3652
  let e = /* @__PURE__ */ Object.create(null);
3640
3653
  if (n)
3641
3654
  for (let t in n)
3642
3655
  e[t] = new Vd(n[t]);
3643
3656
  return e;
3644
3657
  }
3645
- let Is = class Tl {
3658
+ let Rs = class Tl {
3646
3659
  /**
3647
3660
  @internal
3648
3661
  */
3649
3662
  constructor(e, t, r) {
3650
- this.name = e, this.schema = t, this.spec = r, this.markSet = null, this.groups = r.group ? r.group.split(" ") : [], this.attrs = Cl(r.attrs), this.defaultAttrs = xl(this.attrs), this.contentMatch = null, this.inlineContent = null, this.isBlock = !(r.inline || e == "text"), this.isText = e == "text";
3663
+ this.name = e, this.schema = t, this.spec = r, this.markSet = null, this.groups = r.group ? r.group.split(" ") : [], this.attrs = El(r.attrs), this.defaultAttrs = xl(this.attrs), this.contentMatch = null, this.inlineContent = null, this.isBlock = !(r.inline || e == "text"), this.isText = e == "text";
3651
3664
  }
3652
3665
  /**
3653
3666
  True if this is an inline type.
@@ -3701,7 +3714,7 @@ let Is = class Tl {
3701
3714
  @internal
3702
3715
  */
3703
3716
  computeAttrs(e) {
3704
- return !e && this.defaultAttrs ? this.defaultAttrs : El(this.attrs, e);
3717
+ return !e && this.defaultAttrs ? this.defaultAttrs : Cl(this.attrs, e);
3705
3718
  }
3706
3719
  /**
3707
3720
  Create a `Node` of this type. The given attributes are
@@ -3821,7 +3834,7 @@ class Or {
3821
3834
  @internal
3822
3835
  */
3823
3836
  constructor(e, t, r, i) {
3824
- this.name = e, this.rank = t, this.schema = r, this.spec = i, this.attrs = Cl(i.attrs), this.excluded = null;
3837
+ this.name = e, this.rank = t, this.schema = r, this.spec = i, this.attrs = El(i.attrs), this.excluded = null;
3825
3838
  let s = xl(this.attrs);
3826
3839
  this.instance = s ? new B(this, s) : null;
3827
3840
  }
@@ -3831,7 +3844,7 @@ class Or {
3831
3844
  they have defaults, will be added.
3832
3845
  */
3833
3846
  create(e = null) {
3834
- return !e && this.instance ? this.instance : new B(this, El(this.attrs, e));
3847
+ return !e && this.instance ? this.instance : new B(this, Cl(this.attrs, e));
3835
3848
  }
3836
3849
  /**
3837
3850
  @internal
@@ -3874,17 +3887,17 @@ class $d {
3874
3887
  let t = this.spec = {};
3875
3888
  for (let i in e)
3876
3889
  t[i] = e[i];
3877
- t.nodes = U.from(e.nodes), t.marks = U.from(e.marks || {}), this.nodes = Is.compile(this.spec.nodes, this), this.marks = Or.compile(this.spec.marks, this);
3890
+ t.nodes = U.from(e.nodes), t.marks = U.from(e.marks || {}), this.nodes = Rs.compile(this.spec.nodes, this), this.marks = Or.compile(this.spec.marks, this);
3878
3891
  let r = /* @__PURE__ */ Object.create(null);
3879
3892
  for (let i in this.nodes) {
3880
3893
  if (i in this.marks)
3881
3894
  throw new RangeError(i + " can not be both a node and a mark");
3882
3895
  let s = this.nodes[i], o = s.spec.content || "", l = s.spec.marks;
3883
- s.contentMatch = r[o] || (r[o] = xt.parse(o, this.nodes)), s.inlineContent = s.contentMatch.inlineContent, s.markSet = l == "_" ? null : l ? Rs(this, l.split(" ")) : l == "" || !s.inlineContent ? [] : null;
3896
+ s.contentMatch = r[o] || (r[o] = xt.parse(o, this.nodes)), s.inlineContent = s.contentMatch.inlineContent, s.markSet = l == "_" ? null : l ? Ps(this, l.split(" ")) : l == "" || !s.inlineContent ? [] : null;
3884
3897
  }
3885
3898
  for (let i in this.marks) {
3886
3899
  let s = this.marks[i], o = s.spec.excludes;
3887
- s.excluded = o == null ? [s] : o == "" ? [] : Rs(this, o.split(" "));
3900
+ s.excluded = o == null ? [s] : o == "" ? [] : Ps(this, o.split(" "));
3888
3901
  }
3889
3902
  this.nodeFromJSON = this.nodeFromJSON.bind(this), this.markFromJSON = this.markFromJSON.bind(this), this.topNodeType = this.nodes[this.spec.topNode || "doc"], this.cached.wrappings = /* @__PURE__ */ Object.create(null);
3890
3903
  }
@@ -3897,7 +3910,7 @@ class $d {
3897
3910
  node(e, t = null, r, i) {
3898
3911
  if (typeof e == "string")
3899
3912
  e = this.nodeType(e);
3900
- else if (e instanceof Is) {
3913
+ else if (e instanceof Rs) {
3901
3914
  if (e.schema != this)
3902
3915
  throw new RangeError("Node type from different schema used (" + e.name + ")");
3903
3916
  } else
@@ -3942,7 +3955,7 @@ class $d {
3942
3955
  return t;
3943
3956
  }
3944
3957
  }
3945
- function Rs(n, e) {
3958
+ function Ps(n, e) {
3946
3959
  let t = [];
3947
3960
  for (let r = 0; r < e.length; r++) {
3948
3961
  let i = e[r], s = n.marks[i], o = s;
@@ -3958,7 +3971,7 @@ function Rs(n, e) {
3958
3971
  }
3959
3972
  return t;
3960
3973
  }
3961
- let Ui = class Si {
3974
+ let Ji = class Si {
3962
3975
  /**
3963
3976
  Create a parser that targets the given schema, using the given
3964
3977
  parsing rules.
@@ -3977,7 +3990,7 @@ let Ui = class Si {
3977
3990
  Parse a document from the content of a DOM node.
3978
3991
  */
3979
3992
  parse(e, t = {}) {
3980
- let r = new Ls(this, t, !1);
3993
+ let r = new Bs(this, t, !1);
3981
3994
  return r.addAll(e, t.from, t.to), r.finish();
3982
3995
  }
3983
3996
  /**
@@ -3989,7 +4002,7 @@ let Ui = class Si {
3989
4002
  the left of the input and the end of nodes at the end.
3990
4003
  */
3991
4004
  parseSlice(e, t = {}) {
3992
- let r = new Ls(this, t, !0);
4005
+ let r = new Bs(this, t, !0);
3993
4006
  return r.addAll(e, t.from, t.to), S.maxOpen(r.finish());
3994
4007
  }
3995
4008
  /**
@@ -4046,13 +4059,13 @@ let Ui = class Si {
4046
4059
  for (let i in e.marks) {
4047
4060
  let s = e.marks[i].spec.parseDOM;
4048
4061
  s && s.forEach((o) => {
4049
- r(o = Bs(o)), o.mark || o.ignore || o.clearMark || (o.mark = i);
4062
+ r(o = _s(o)), o.mark || o.ignore || o.clearMark || (o.mark = i);
4050
4063
  });
4051
4064
  }
4052
4065
  for (let i in e.nodes) {
4053
4066
  let s = e.nodes[i].spec.parseDOM;
4054
4067
  s && s.forEach((o) => {
4055
- r(o = Bs(o)), o.node || o.ignore || o.mark || (o.node = i);
4068
+ r(o = _s(o)), o.node || o.ignore || o.mark || (o.node = i);
4056
4069
  });
4057
4070
  }
4058
4071
  return t;
@@ -4107,10 +4120,10 @@ const Ml = {
4107
4120
  style: !0,
4108
4121
  title: !0
4109
4122
  }, wl = { ol: !0, ul: !0 }, Fn = 1, zn = 2, Zt = 4;
4110
- function Ps(n, e, t) {
4123
+ function Ls(n, e, t) {
4111
4124
  return e != null ? (e ? Fn : 0) | (e === "full" ? zn : 0) : n && n.whitespace == "pre" ? Fn | zn : t & ~Zt;
4112
4125
  }
4113
- class Cn {
4126
+ class En {
4114
4127
  constructor(e, t, r, i, s, o, l) {
4115
4128
  this.type = e, this.attrs = t, this.marks = r, this.pendingMarks = i, this.solid = s, this.options = l, this.content = [], this.activeMarks = B.none, this.stashMarks = [], this.match = o || (l & Zt ? null : e.contentMatch);
4116
4129
  }
@@ -4154,11 +4167,11 @@ class Cn {
4154
4167
  return this.type ? this.type.inlineContent : this.content.length ? this.content[0].isInline : e.parentNode && !Ml.hasOwnProperty(e.parentNode.nodeName.toLowerCase());
4155
4168
  }
4156
4169
  }
4157
- class Ls {
4170
+ class Bs {
4158
4171
  constructor(e, t, r) {
4159
4172
  this.parser = e, this.options = t, this.isOpen = r, this.open = 0;
4160
- let i = t.topNode, s, o = Ps(null, t.preserveWhitespace, 0) | (r ? Zt : 0);
4161
- i ? s = new Cn(i.type, i.attrs, B.none, B.none, !0, t.topMatch || i.type.contentMatch, o) : r ? s = new Cn(null, null, B.none, B.none, !0, null, o) : s = new Cn(e.schema.topNodeType, null, B.none, B.none, !0, null, o), this.nodes = [s], this.find = t.findPositions, this.needsBlock = !1;
4173
+ let i = t.topNode, s, o = Ls(null, t.preserveWhitespace, 0) | (r ? Zt : 0);
4174
+ i ? s = new En(i.type, i.attrs, B.none, B.none, !0, t.topMatch || i.type.contentMatch, o) : r ? s = new En(null, null, B.none, B.none, !0, null, o) : s = new En(e.schema.topNodeType, null, B.none, B.none, !0, null, o), this.nodes = [s], this.find = t.findPositions, this.needsBlock = !1;
4162
4175
  }
4163
4176
  get top() {
4164
4177
  return this.nodes[this.open];
@@ -4327,8 +4340,8 @@ class Ls {
4327
4340
  this.closeExtra();
4328
4341
  let s = this.top;
4329
4342
  s.applyPending(e), s.match = s.match && s.match.matchType(e);
4330
- let o = Ps(e, i, s.options);
4331
- s.options & Zt && s.content.length == 0 && (o |= Zt), this.nodes.push(new Cn(e, t, s.activeMarks, s.pendingMarks, r, null, o)), this.open++;
4343
+ let o = Ls(e, i, s.options);
4344
+ s.options & Zt && s.content.length == 0 && (o |= Zt), this.nodes.push(new En(e, t, s.activeMarks, s.pendingMarks, r, null, o)), this.open++;
4332
4345
  }
4333
4346
  // Make sure all nodes above this.open are finished and added to
4334
4347
  // their parents
@@ -4453,7 +4466,7 @@ function Wd(n) {
4453
4466
  r.push(t[1], t[2].trim());
4454
4467
  return r;
4455
4468
  }
4456
- function Bs(n) {
4469
+ function _s(n) {
4457
4470
  let e = {};
4458
4471
  for (let t in n)
4459
4472
  e[t] = n[t];
@@ -4613,17 +4626,17 @@ class Ne {
4613
4626
  This can be useful as a base to build a custom serializer from.
4614
4627
  */
4615
4628
  static nodesFromSchema(e) {
4616
- let t = _s(e.nodes);
4629
+ let t = Fs(e.nodes);
4617
4630
  return t.text || (t.text = (r) => r.text), t;
4618
4631
  }
4619
4632
  /**
4620
4633
  Gather the serializers in a schema's mark specs into an object.
4621
4634
  */
4622
4635
  static marksFromSchema(e) {
4623
- return _s(e.marks);
4636
+ return Fs(e.marks);
4624
4637
  }
4625
4638
  }
4626
- function _s(n) {
4639
+ function Fs(n) {
4627
4640
  let e = {};
4628
4641
  for (let t in n) {
4629
4642
  let r = n[t].spec.toDOM;
@@ -4638,7 +4651,7 @@ const Ol = 65535, vl = Math.pow(2, 16);
4638
4651
  function Gd(n, e) {
4639
4652
  return n + e * vl;
4640
4653
  }
4641
- function Fs(n) {
4654
+ function zs(n) {
4642
4655
  return n & Ol;
4643
4656
  }
4644
4657
  function Yd(n) {
@@ -4695,7 +4708,7 @@ class pe {
4695
4708
  @internal
4696
4709
  */
4697
4710
  recover(e) {
4698
- let t = 0, r = Fs(e);
4711
+ let t = 0, r = zs(e);
4699
4712
  if (!this.inverted)
4700
4713
  for (let i = 0; i < r; i++)
4701
4714
  t += this.ranges[i * 3 + 2] - this.ranges[i * 3 + 1];
@@ -4732,7 +4745,7 @@ class pe {
4732
4745
  @internal
4733
4746
  */
4734
4747
  touches(e, t) {
4735
- let r = 0, i = Fs(t), s = this.inverted ? 2 : 1, o = this.inverted ? 1 : 2;
4748
+ let r = 0, i = zs(t), s = this.inverted ? 2 : 1, o = this.inverted ? 1 : 2;
4736
4749
  for (let l = 0; l < this.ranges.length; l += 3) {
4737
4750
  let a = this.ranges[l] - (this.inverted ? r : 0);
4738
4751
  if (a > e)
@@ -4961,11 +4974,11 @@ class V {
4961
4974
  }
4962
4975
  }
4963
4976
  }
4964
- function Ji(n, e, t) {
4977
+ function Gi(n, e, t) {
4965
4978
  let r = [];
4966
4979
  for (let i = 0; i < n.childCount; i++) {
4967
4980
  let s = n.child(i);
4968
- s.content.size && (s = s.copy(Ji(s.content, e, s))), s.isInline && (s = e(s, t, i)), r.push(s);
4981
+ s.content.size && (s = s.copy(Gi(s.content, e, s))), s.isInline && (s = e(s, t, i)), r.push(s);
4969
4982
  }
4970
4983
  return b.fromArray(r);
4971
4984
  }
@@ -4977,7 +4990,7 @@ class Ge extends re {
4977
4990
  super(), this.from = e, this.to = t, this.mark = r;
4978
4991
  }
4979
4992
  apply(e) {
4980
- let t = e.slice(this.from, this.to), r = e.resolve(this.from), i = r.node(r.sharedDepth(this.to)), s = new S(Ji(t.content, (o, l) => !o.isAtom || !l.type.allowsMarkType(this.mark.type) ? o : o.mark(this.mark.addToSet(o.marks)), i), t.openStart, t.openEnd);
4993
+ let t = e.slice(this.from, this.to), r = e.resolve(this.from), i = r.node(r.sharedDepth(this.to)), s = new S(Gi(t.content, (o, l) => !o.isAtom || !l.type.allowsMarkType(this.mark.type) ? o : o.mark(this.mark.addToSet(o.marks)), i), t.openStart, t.openEnd);
4981
4994
  return V.fromReplace(e, this.from, this.to, s);
4982
4995
  }
4983
4996
  invert() {
@@ -5016,7 +5029,7 @@ class De extends re {
5016
5029
  super(), this.from = e, this.to = t, this.mark = r;
5017
5030
  }
5018
5031
  apply(e) {
5019
- let t = e.slice(this.from, this.to), r = new S(Ji(t.content, (i) => i.mark(this.mark.removeFromSet(i.marks)), e), t.openStart, t.openEnd);
5032
+ let t = e.slice(this.from, this.to), r = new S(Gi(t.content, (i) => i.mark(this.mark.removeFromSet(i.marks)), e), t.openStart, t.openEnd);
5020
5033
  return V.fromReplace(e, this.from, this.to, r);
5021
5034
  }
5022
5035
  invert() {
@@ -5140,7 +5153,7 @@ class G extends re {
5140
5153
  super(), this.from = e, this.to = t, this.slice = r, this.structure = i;
5141
5154
  }
5142
5155
  apply(e) {
5143
- return this.structure && Ei(e, this.from, this.to) ? V.fail("Structure replace would overwrite content") : V.fromReplace(e, this.from, this.to, this.slice);
5156
+ return this.structure && Ci(e, this.from, this.to) ? V.fail("Structure replace would overwrite content") : V.fromReplace(e, this.from, this.to, this.slice);
5144
5157
  }
5145
5158
  getMap() {
5146
5159
  return new pe([this.from, this.to - this.from, this.slice.size]);
@@ -5189,7 +5202,7 @@ class K extends re {
5189
5202
  super(), this.from = e, this.to = t, this.gapFrom = r, this.gapTo = i, this.slice = s, this.insert = o, this.structure = l;
5190
5203
  }
5191
5204
  apply(e) {
5192
- if (this.structure && (Ei(e, this.from, this.gapFrom) || Ei(e, this.gapTo, this.to)))
5205
+ if (this.structure && (Ci(e, this.from, this.gapFrom) || Ci(e, this.gapTo, this.to)))
5193
5206
  return V.fail("Structure gap-replace would overwrite content");
5194
5207
  let t = e.slice(this.gapFrom, this.gapTo);
5195
5208
  if (t.openStart || t.openEnd)
@@ -5236,7 +5249,7 @@ class K extends re {
5236
5249
  }
5237
5250
  }
5238
5251
  re.jsonID("replaceAround", K);
5239
- function Ei(n, e, t) {
5252
+ function Ci(n, e, t) {
5240
5253
  let r = n.resolve(e), i = t - e, s = r.depth;
5241
5254
  for (; i > 0 && s > 0 && r.indexAfter(s) == r.node(s).childCount; )
5242
5255
  s--, i--;
@@ -5338,11 +5351,11 @@ function tu(n, e, t) {
5338
5351
  m || i.after(p + 1) < i.end(p) ? (m = !0, h = b.from(i.node(p).copy(h)), f++) : c++;
5339
5352
  n.step(new K(a, c, o, l, new S(d.append(h), u, f), d.size - u, !0));
5340
5353
  }
5341
- function Gi(n, e, t = null, r = n) {
5354
+ function Yi(n, e, t = null, r = n) {
5342
5355
  let i = nu(n, e), s = i && ru(r, e);
5343
- return s ? i.map(zs).concat({ type: e, attrs: t }).concat(s.map(zs)) : null;
5356
+ return s ? i.map(Hs).concat({ type: e, attrs: t }).concat(s.map(Hs)) : null;
5344
5357
  }
5345
- function zs(n) {
5358
+ function Hs(n) {
5346
5359
  return { type: n, attrs: null };
5347
5360
  }
5348
5361
  function nu(n, e) {
@@ -5493,7 +5506,7 @@ function uu(n, e, t) {
5493
5506
  }
5494
5507
  return null;
5495
5508
  }
5496
- function Yi(n, e, t = e, r = S.empty) {
5509
+ function Xi(n, e, t = e, r = S.empty) {
5497
5510
  if (e == t && !r.size)
5498
5511
  return null;
5499
5512
  let i = n.resolve(e), s = n.resolve(t);
@@ -5902,7 +5915,7 @@ class Fl {
5902
5915
  given `slice`.
5903
5916
  */
5904
5917
  replace(e, t = e, r = S.empty) {
5905
- let i = Yi(this.doc, e, t, r);
5918
+ let i = Xi(this.doc, e, t, r);
5906
5919
  return i && this.step(i), this;
5907
5920
  }
5908
5921
  /**
@@ -6146,7 +6159,7 @@ class N {
6146
6159
  let s = e.steps.length, o = this.ranges;
6147
6160
  for (let l = 0; l < o.length; l++) {
6148
6161
  let { $from: a, $to: c } = o[l], d = e.mapping.slice(s);
6149
- e.replaceRange(d.map(a.pos), d.map(c.pos), l ? S.empty : t), l == 0 && $s(e, s, (r ? r.isInline : i && i.isTextblock) ? -1 : 1);
6162
+ e.replaceRange(d.map(a.pos), d.map(c.pos), l ? S.empty : t), l == 0 && js(e, s, (r ? r.isInline : i && i.isTextblock) ? -1 : 1);
6150
6163
  }
6151
6164
  }
6152
6165
  /**
@@ -6157,7 +6170,7 @@ class N {
6157
6170
  let r = e.steps.length, i = this.ranges;
6158
6171
  for (let s = 0; s < i.length; s++) {
6159
6172
  let { $from: o, $to: l } = i[s], a = e.mapping.slice(r), c = a.map(o.pos), d = a.map(l.pos);
6160
- s ? e.deleteRange(c, d) : (e.replaceRangeWith(c, d, t), $s(e, r, t.isInline ? -1 : 1));
6173
+ s ? e.deleteRange(c, d) : (e.replaceRangeWith(c, d, t), js(e, r, t.isInline ? -1 : 1));
6161
6174
  }
6162
6175
  }
6163
6176
  /**
@@ -6247,16 +6260,16 @@ class bu {
6247
6260
  this.$from = e, this.$to = t;
6248
6261
  }
6249
6262
  }
6250
- let Hs = !1;
6251
- function Vs(n) {
6252
- !Hs && !n.parent.inlineContent && (Hs = !0, console.warn("TextSelection endpoint not pointing into a node with inline content (" + n.parent.type.name + ")"));
6263
+ let Vs = !1;
6264
+ function $s(n) {
6265
+ !Vs && !n.parent.inlineContent && (Vs = !0, console.warn("TextSelection endpoint not pointing into a node with inline content (" + n.parent.type.name + ")"));
6253
6266
  }
6254
6267
  class D extends N {
6255
6268
  /**
6256
6269
  Construct a text selection between the given points.
6257
6270
  */
6258
6271
  constructor(e, t = e) {
6259
- Vs(e), Vs(t), super(e, t);
6272
+ $s(e), $s(t), super(e, t);
6260
6273
  }
6261
6274
  /**
6262
6275
  Returns a resolved position if this is a cursor selection (an
@@ -6357,7 +6370,7 @@ class w extends N {
6357
6370
  return { type: "node", anchor: this.anchor };
6358
6371
  }
6359
6372
  getBookmark() {
6360
- return new Xi(this.anchor);
6373
+ return new Qi(this.anchor);
6361
6374
  }
6362
6375
  /**
6363
6376
  @internal
@@ -6383,13 +6396,13 @@ class w extends N {
6383
6396
  }
6384
6397
  w.prototype.visible = !1;
6385
6398
  N.jsonID("node", w);
6386
- class Xi {
6399
+ class Qi {
6387
6400
  constructor(e) {
6388
6401
  this.anchor = e;
6389
6402
  }
6390
6403
  map(e) {
6391
6404
  let { deleted: t, pos: r } = e.mapResult(this.anchor);
6392
- return t ? new vr(r, r) : new Xi(r);
6405
+ return t ? new vr(r, r) : new Qi(r);
6393
6406
  }
6394
6407
  resolve(e) {
6395
6408
  let t = e.resolve(this.anchor), r = t.nodeAfter;
@@ -6456,7 +6469,7 @@ function vt(n, e, t, r, i, s = !1) {
6456
6469
  }
6457
6470
  return null;
6458
6471
  }
6459
- function $s(n, e, t) {
6472
+ function js(n, e, t) {
6460
6473
  let r = n.steps.length - 1;
6461
6474
  if (r < e)
6462
6475
  return;
@@ -6468,7 +6481,7 @@ function $s(n, e, t) {
6468
6481
  o == null && (o = d);
6469
6482
  }), n.setSelection(N.near(n.doc.resolve(o), t));
6470
6483
  }
6471
- const js = 1, Tn = 2, qs = 4;
6484
+ const qs = 1, Tn = 2, Ks = 4;
6472
6485
  class Su extends Fl {
6473
6486
  /**
6474
6487
  @internal
@@ -6492,13 +6505,13 @@ class Su extends Fl {
6492
6505
  setSelection(e) {
6493
6506
  if (e.$from.doc != this.doc)
6494
6507
  throw new RangeError("Selection passed to setSelection must point at the current document");
6495
- return this.curSelection = e, this.curSelectionFor = this.steps.length, this.updated = (this.updated | js) & ~Tn, this.storedMarks = null, this;
6508
+ return this.curSelection = e, this.curSelectionFor = this.steps.length, this.updated = (this.updated | qs) & ~Tn, this.storedMarks = null, this;
6496
6509
  }
6497
6510
  /**
6498
6511
  Whether the selection was explicitly updated by this transaction.
6499
6512
  */
6500
6513
  get selectionSet() {
6501
- return (this.updated & js) > 0;
6514
+ return (this.updated & qs) > 0;
6502
6515
  }
6503
6516
  /**
6504
6517
  Set the current stored marks.
@@ -6611,21 +6624,21 @@ class Su extends Fl {
6611
6624
  when updated to the state produced by this transaction.
6612
6625
  */
6613
6626
  scrollIntoView() {
6614
- return this.updated |= qs, this;
6627
+ return this.updated |= Ks, this;
6615
6628
  }
6616
6629
  /**
6617
6630
  True when this transaction has had `scrollIntoView` called on it.
6618
6631
  */
6619
6632
  get scrolledIntoView() {
6620
- return (this.updated & qs) > 0;
6633
+ return (this.updated & Ks) > 0;
6621
6634
  }
6622
6635
  }
6623
- function Ks(n, e) {
6636
+ function Ws(n, e) {
6624
6637
  return !e || !n ? n : n.bind(e);
6625
6638
  }
6626
6639
  class Yt {
6627
6640
  constructor(e, t, r) {
6628
- this.name = e, this.init = Ks(t.init, r), this.apply = Ks(t.apply, r);
6641
+ this.name = e, this.init = Ws(t.init, r), this.apply = Ws(t.apply, r);
6629
6642
  }
6630
6643
  }
6631
6644
  const xu = [
@@ -6843,7 +6856,7 @@ function zl(n, e, t) {
6843
6856
  }
6844
6857
  return t;
6845
6858
  }
6846
- class X {
6859
+ class Q {
6847
6860
  /**
6848
6861
  Create a plugin.
6849
6862
  */
@@ -6890,20 +6903,20 @@ const oe = function(n) {
6890
6903
  let e = n.assignedSlot || n.parentNode;
6891
6904
  return e && e.nodeType == 11 ? e.host : e;
6892
6905
  };
6893
- let Ws = null;
6906
+ let Us = null;
6894
6907
  const Be = function(n, e, t) {
6895
- let r = Ws || (Ws = document.createRange());
6908
+ let r = Us || (Us = document.createRange());
6896
6909
  return r.setEnd(n, t ?? n.nodeValue.length), r.setStart(n, e || 0), r;
6897
- }, Et = function(n, e, t, r) {
6898
- return t && (Us(n, e, t, r, -1) || Us(n, e, t, r, 1));
6899
- }, Eu = /^(img|br|input|textarea|hr)$/i;
6900
- function Us(n, e, t, r, i) {
6910
+ }, Ct = function(n, e, t, r) {
6911
+ return t && (Js(n, e, t, r, -1) || Js(n, e, t, r, 1));
6912
+ }, Cu = /^(img|br|input|textarea|hr)$/i;
6913
+ function Js(n, e, t, r, i) {
6901
6914
  for (; ; ) {
6902
6915
  if (n == t && e == r)
6903
6916
  return !0;
6904
6917
  if (e == (i < 0 ? 0 : Ae(n))) {
6905
6918
  let s = n.parentNode;
6906
- if (!s || s.nodeType != 1 || Qi(n) || Eu.test(n.nodeName) || n.contentEditable == "false")
6919
+ if (!s || s.nodeType != 1 || Zi(n) || Cu.test(n.nodeName) || n.contentEditable == "false")
6907
6920
  return !1;
6908
6921
  e = oe(n) + (i < 0 ? 0 : 1), n = s;
6909
6922
  } else if (n.nodeType == 1) {
@@ -6917,7 +6930,7 @@ function Us(n, e, t, r, i) {
6917
6930
  function Ae(n) {
6918
6931
  return n.nodeType == 3 ? n.nodeValue.length : n.childNodes.length;
6919
6932
  }
6920
- function Cu(n, e, t) {
6933
+ function Eu(n, e, t) {
6921
6934
  for (let r = e == 0, i = e == Ae(n); r || i; ) {
6922
6935
  if (n == t)
6923
6936
  return !0;
@@ -6927,14 +6940,14 @@ function Cu(n, e, t) {
6927
6940
  r = r && s == 0, i = i && s == Ae(n);
6928
6941
  }
6929
6942
  }
6930
- function Qi(n) {
6943
+ function Zi(n) {
6931
6944
  let e;
6932
6945
  for (let t = n; t && !(e = t.pmViewDesc); t = t.parentNode)
6933
6946
  ;
6934
6947
  return e && e.node && e.node.isBlock && (e.dom == n || e.contentDOM == n);
6935
6948
  }
6936
6949
  const Ar = function(n) {
6937
- return n.focusNode && Et(n.focusNode, n.focusOffset, n.anchorNode, n.anchorOffset);
6950
+ return n.focusNode && Ct(n.focusNode, n.focusOffset, n.anchorNode, n.anchorOffset);
6938
6951
  };
6939
6952
  function lt(n, e) {
6940
6953
  let t = document.createEvent("Event");
@@ -6960,9 +6973,9 @@ function Mu(n, e, t) {
6960
6973
  return { node: r.startContainer, offset: r.startOffset };
6961
6974
  }
6962
6975
  }
6963
- const Ie = typeof navigator < "u" ? navigator : null, Js = typeof document < "u" ? document : null, it = Ie && Ie.userAgent || "", Ci = /Edge\/(\d+)/.exec(it), Vl = /MSIE \d/.exec(it), Ti = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(it), he = !!(Vl || Ti || Ci), Qe = Vl ? document.documentMode : Ti ? +Ti[1] : Ci ? +Ci[1] : 0, Me = !he && /gecko\/(\d+)/i.test(it);
6976
+ const Ie = typeof navigator < "u" ? navigator : null, Gs = typeof document < "u" ? document : null, it = Ie && Ie.userAgent || "", Ei = /Edge\/(\d+)/.exec(it), Vl = /MSIE \d/.exec(it), Ti = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(it), he = !!(Vl || Ti || Ei), Qe = Vl ? document.documentMode : Ti ? +Ti[1] : Ei ? +Ei[1] : 0, Me = !he && /gecko\/(\d+)/i.test(it);
6964
6977
  Me && +(/Firefox\/(\d+)/.exec(it) || [0, 0])[1];
6965
- const Mi = !he && /Chrome\/(\d+)/.exec(it), te = !!Mi, wu = Mi ? +Mi[1] : 0, le = !he && !!Ie && /Apple Computer/.test(Ie.vendor), Ft = le && (/Mobile\/\w+/.test(it) || !!Ie && Ie.maxTouchPoints > 2), ke = Ft || (Ie ? /Mac/.test(Ie.platform) : !1), Ou = Ie ? /Win/.test(Ie.platform) : !1, Ce = /Android \d/.test(it), kn = !!Js && "webkitFontSmoothing" in Js.documentElement.style, vu = kn ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
6978
+ const Mi = !he && /Chrome\/(\d+)/.exec(it), te = !!Mi, wu = Mi ? +Mi[1] : 0, le = !he && !!Ie && /Apple Computer/.test(Ie.vendor), Ft = le && (/Mobile\/\w+/.test(it) || !!Ie && Ie.maxTouchPoints > 2), ke = Ft || (Ie ? /Mac/.test(Ie.platform) : !1), Ou = Ie ? /Win/.test(Ie.platform) : !1, Ee = /Android \d/.test(it), kn = !!Gs && "webkitFontSmoothing" in Gs.documentElement.style, vu = kn ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
6966
6979
  function Au(n) {
6967
6980
  return {
6968
6981
  left: 0,
@@ -6983,7 +6996,7 @@ function Nu(n) {
6983
6996
  bottom: e.top + n.clientHeight * r
6984
6997
  };
6985
6998
  }
6986
- function Gs(n, e, t) {
6999
+ function Ys(n, e, t) {
6987
7000
  let r = n.someProp("scrollThreshold") || 0, i = n.someProp("scrollMargin") || 5, s = n.dom.ownerDocument;
6988
7001
  for (let o = t || n.dom; o; o = dn(o)) {
6989
7002
  if (o.nodeType != 1)
@@ -7079,12 +7092,12 @@ function Pu(n, e) {
7079
7092
  for (let i = 0; i < t; i++) {
7080
7093
  r.setEnd(n, i + 1), r.setStart(n, i);
7081
7094
  let s = qe(r, 1);
7082
- if (s.top != s.bottom && Zi(e, s))
7095
+ if (s.top != s.bottom && es(e, s))
7083
7096
  return { node: n, offset: i + (e.left >= (s.left + s.right) / 2 ? 1 : 0) };
7084
7097
  }
7085
7098
  return { node: n, offset: 0 };
7086
7099
  }
7087
- function Zi(n, e) {
7100
+ function es(n, e) {
7088
7101
  return n.left >= e.left - 1 && n.left <= e.right + 1 && n.top >= e.top - 1 && n.top <= e.bottom + 1;
7089
7102
  }
7090
7103
  function Lu(n, e) {
@@ -7123,7 +7136,7 @@ function Kl(n, e, t) {
7123
7136
  let l = o.getClientRects();
7124
7137
  for (let a = 0; a < l.length; a++) {
7125
7138
  let c = l[a];
7126
- if (Zi(e, c))
7139
+ if (es(e, c))
7127
7140
  return Kl(o, e, c);
7128
7141
  }
7129
7142
  }
@@ -7138,7 +7151,7 @@ function Fu(n, e) {
7138
7151
  let o = (n.root.elementFromPoint ? n.root : t).elementFromPoint(e.left, e.top), l;
7139
7152
  if (!o || !n.dom.contains(o.nodeType != 1 ? o.parentNode : o)) {
7140
7153
  let c = n.dom.getBoundingClientRect();
7141
- if (!Zi(e, c) || (o = Kl(n.dom, e, c), !o))
7154
+ if (!es(e, c) || (o = Kl(n.dom, e, c), !o))
7142
7155
  return null;
7143
7156
  }
7144
7157
  if (le)
@@ -7156,17 +7169,17 @@ function Fu(n, e) {
7156
7169
  let a = n.docView.nearestDesc(o, !0);
7157
7170
  return { pos: l, inside: a ? a.posAtStart - a.border : -1 };
7158
7171
  }
7159
- function Ys(n) {
7172
+ function Xs(n) {
7160
7173
  return n.top < n.bottom || n.left < n.right;
7161
7174
  }
7162
7175
  function qe(n, e) {
7163
7176
  let t = n.getClientRects();
7164
7177
  if (t.length) {
7165
7178
  let r = t[e < 0 ? 0 : t.length - 1];
7166
- if (Ys(r))
7179
+ if (Xs(r))
7167
7180
  return r;
7168
7181
  }
7169
- return Array.prototype.find.call(t, Ys) || n.getBoundingClientRect();
7182
+ return Array.prototype.find.call(t, Xs) || n.getBoundingClientRect();
7170
7183
  }
7171
7184
  const zu = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;
7172
7185
  function Wl(n, e, t) {
@@ -7285,11 +7298,11 @@ function $u(n, e, t) {
7285
7298
  return h != null && (l.caretBidiLevel = h), g;
7286
7299
  });
7287
7300
  }
7288
- let Xs = null, Qs = null, Zs = !1;
7301
+ let Qs = null, Zs = null, eo = !1;
7289
7302
  function ju(n, e, t) {
7290
- return Xs == e && Qs == t ? Zs : (Xs = e, Qs = t, Zs = t == "up" || t == "down" ? Hu(n, e, t) : $u(n, e, t));
7303
+ return Qs == e && Zs == t ? eo : (Qs = e, Zs = t, eo = t == "up" || t == "down" ? Hu(n, e, t) : $u(n, e, t));
7291
7304
  }
7292
- const Se = 0, eo = 1, at = 2, Re = 3;
7305
+ const Se = 0, to = 1, at = 2, Re = 3;
7293
7306
  class Sn {
7294
7307
  constructor(e, t, r, i) {
7295
7308
  this.parent = e, this.children = t, this.dom = r, this.contentDOM = i, this.dirty = Se, r.pmViewDesc = this;
@@ -7566,7 +7579,7 @@ class Sn {
7566
7579
  let h = c.focusNode.childNodes[c.focusOffset];
7567
7580
  h && h.contentEditable == "false" && (i = !0);
7568
7581
  }
7569
- if (!(i || d && le) && Et(l.node, l.offset, c.anchorNode, c.anchorOffset) && Et(a.node, a.offset, c.focusNode, c.focusOffset))
7582
+ if (!(i || d && le) && Ct(l.node, l.offset, c.anchorNode, c.anchorOffset) && Ct(a.node, a.offset, c.focusNode, c.focusOffset))
7570
7583
  return;
7571
7584
  let u = !1;
7572
7585
  if ((c.extend || e == t) && !d) {
@@ -7599,7 +7612,7 @@ class Sn {
7599
7612
  if (r == o ? e <= o && t >= r : e < o && t > r) {
7600
7613
  let l = r + s.border, a = o - s.border;
7601
7614
  if (e >= l && t <= a) {
7602
- this.dirty = e == r || t == o ? at : eo, e == l && t == a && (s.contentLost || s.dom.parentNode != this.contentDOM) ? s.dirty = Re : s.markDirty(e - l, t - l);
7615
+ this.dirty = e == r || t == o ? at : to, e == l && t == a && (s.contentLost || s.dom.parentNode != this.contentDOM) ? s.dirty = Re : s.markDirty(e - l, t - l);
7603
7616
  return;
7604
7617
  } else
7605
7618
  s.dirty = s.dom == s.contentDOM && s.dom.parentNode == this.contentDOM && !s.children.length ? at : Re;
@@ -7611,7 +7624,7 @@ class Sn {
7611
7624
  markParentsDirty() {
7612
7625
  let e = 1;
7613
7626
  for (let t = this.parent; t; t = t.parent, e++) {
7614
- let r = e == 1 ? at : eo;
7627
+ let r = e == 1 ? at : to;
7615
7628
  t.dirty < r && (t.dirty = r);
7616
7629
  }
7617
7630
  }
@@ -7679,13 +7692,13 @@ class qu extends Sn {
7679
7692
  return e.type === "characterData" && e.target.nodeValue == e.oldValue;
7680
7693
  }
7681
7694
  }
7682
- class Ct extends Sn {
7695
+ class Et extends Sn {
7683
7696
  constructor(e, t, r, i) {
7684
7697
  super(e, [], r, i), this.mark = t;
7685
7698
  }
7686
7699
  static create(e, t, r, i) {
7687
7700
  let s = i.nodeViews[t.type.name], o = s && s(t, i, r);
7688
- return (!o || !o.dom) && (o = Ne.renderSpec(document, t.type.spec.toDOM(t, r))), new Ct(e, t, o.dom, o.contentDOM || o.dom);
7701
+ return (!o || !o.dom) && (o = Ne.renderSpec(document, t.type.spec.toDOM(t, r))), new Et(e, t, o.dom, o.contentDOM || o.dom);
7689
7702
  }
7690
7703
  parseRule() {
7691
7704
  return this.dirty & Re || this.mark.type.spec.reparseInView ? null : { mark: this.mark.type.name, attrs: this.mark.attrs, contentElement: this.contentDOM };
@@ -7702,7 +7715,7 @@ class Ct extends Sn {
7702
7715
  }
7703
7716
  }
7704
7717
  slice(e, t, r) {
7705
- let i = Ct.create(this.parent, this.mark, !0, r), s = this.children, o = this.size;
7718
+ let i = Et.create(this.parent, this.mark, !0, r), s = this.children, o = this.size;
7706
7719
  t < o && (s = vi(s, t, o, r)), e > 0 && (s = vi(s, 0, e, r));
7707
7720
  for (let l = 0; l < s.length; l++)
7708
7721
  s[l].parent = i;
@@ -7836,7 +7849,7 @@ class Ze extends Sn {
7836
7849
  return this.node.isAtom;
7837
7850
  }
7838
7851
  }
7839
- function to(n, e, t, r, i) {
7852
+ function no(n, e, t, r, i) {
7840
7853
  Ql(r, e, n);
7841
7854
  let s = new Ze(void 0, n, e, t, r, r, r, i, 0);
7842
7855
  return s.contentDOM && s.updateChildren(i, 0), s;
@@ -7936,17 +7949,17 @@ function Yl(n, e, t) {
7936
7949
  let o = e[s], l = o.dom;
7937
7950
  if (l.parentNode == n) {
7938
7951
  for (; l != r; )
7939
- r = no(r), i = !0;
7952
+ r = ro(r), i = !0;
7940
7953
  r = r.nextSibling;
7941
7954
  } else
7942
7955
  i = !0, n.insertBefore(l, r);
7943
- if (o instanceof Ct) {
7956
+ if (o instanceof Et) {
7944
7957
  let a = r ? r.previousSibling : n.lastChild;
7945
7958
  Yl(o.contentDOM, o.children, t), r = a ? a.nextSibling : n.firstChild;
7946
7959
  }
7947
7960
  }
7948
7961
  for (; r; )
7949
- r = no(r), i = !0;
7962
+ r = ro(r), i = !0;
7950
7963
  i && t.trackWrites == n && (t.trackWrites = null);
7951
7964
  }
7952
7965
  const tn = function(n) {
@@ -8017,7 +8030,7 @@ function Oi(n, e) {
8017
8030
  return !1;
8018
8031
  return !0;
8019
8032
  }
8020
- function no(n) {
8033
+ function ro(n) {
8021
8034
  let e = n.nextSibling;
8022
8035
  return n.parentNode.removeChild(n), e;
8023
8036
  }
@@ -8059,7 +8072,7 @@ class Uu {
8059
8072
  if (l > -1)
8060
8073
  l > this.index && (this.changed = !0, this.destroyBetween(this.index, l)), this.top = this.top.children[this.index];
8061
8074
  else {
8062
- let a = Ct.create(this.top, e[s], t, r);
8075
+ let a = Et.create(this.top, e[s], t, r);
8063
8076
  this.top.children.splice(this.index, 0, a), this.top = a, this.changed = !0;
8064
8077
  }
8065
8078
  this.index = 0, s++;
@@ -8152,7 +8165,7 @@ class Uu {
8152
8165
  // contentEditable.
8153
8166
  addTextblockHacks() {
8154
8167
  let e = this.top.children[this.index - 1], t = this.top;
8155
- for (; e instanceof Ct; )
8168
+ for (; e instanceof Et; )
8156
8169
  t = e, e = t.children[t.children.length - 1];
8157
8170
  (!e || // Empty textblock
8158
8171
  !(e instanceof Nr) || /\n$/.test(e.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(e.node.text)) && ((le || te) && e && e.dom.contentEditable == "false" && this.addHackNode("IMG", t), this.addHackNode("BR", this.top));
@@ -8179,7 +8192,7 @@ function Ju(n, e) {
8179
8192
  for (; ; )
8180
8193
  if (r) {
8181
8194
  let c = t.children[r - 1];
8182
- if (c instanceof Ct)
8195
+ if (c instanceof Et)
8183
8196
  t = c, r = c.children.length;
8184
8197
  else {
8185
8198
  l = c, r--;
@@ -8300,7 +8313,7 @@ function vi(n, e, t, r, i) {
8300
8313
  }
8301
8314
  return s;
8302
8315
  }
8303
- function es(n, e = null) {
8316
+ function ts(n, e = null) {
8304
8317
  let t = n.domSelectionRange(), r = n.state.doc;
8305
8318
  if (!t.focusNode)
8306
8319
  return null;
@@ -8312,7 +8325,7 @@ function es(n, e = null) {
8312
8325
  for (a = l; i && !i.node; )
8313
8326
  i = i.parent;
8314
8327
  let d = i.node;
8315
- if (i && d.isAtom && w.isSelectable(d) && i.parent && !(d.isInline && Cu(t.focusNode, t.focusOffset, i.dom))) {
8328
+ if (i && d.isAtom && w.isSelectable(d) && i.parent && !(d.isInline && Eu(t.focusNode, t.focusOffset, i.dom))) {
8316
8329
  let u = i.posBefore;
8317
8330
  c = new w(o == u ? l : r.resolve(u));
8318
8331
  }
@@ -8324,7 +8337,7 @@ function es(n, e = null) {
8324
8337
  }
8325
8338
  if (!c) {
8326
8339
  let d = e == "pointer" || n.state.selection.head < l.pos && !s ? 1 : -1;
8327
- c = ts(n, a, l, d);
8340
+ c = ns(n, a, l, d);
8328
8341
  }
8329
8342
  return c;
8330
8343
  }
@@ -8336,7 +8349,7 @@ function Fe(n, e = !1) {
8336
8349
  if (ea(n, t), !!Zl(n)) {
8337
8350
  if (!e && n.input.mouseDown && n.input.mouseDown.allowDefault && te) {
8338
8351
  let r = n.domSelectionRange(), i = n.domObserver.currentSelection;
8339
- if (r.anchorNode && i.anchorNode && Et(r.anchorNode, r.anchorOffset, i.anchorNode, i.anchorOffset)) {
8352
+ if (r.anchorNode && i.anchorNode && Ct(r.anchorNode, r.anchorOffset, i.anchorNode, i.anchorOffset)) {
8340
8353
  n.input.mouseDown.delayedSelectionSync = !0, n.domObserver.setCurSelection();
8341
8354
  return;
8342
8355
  }
@@ -8345,13 +8358,13 @@ function Fe(n, e = !1) {
8345
8358
  th(n);
8346
8359
  else {
8347
8360
  let { anchor: r, head: i } = t, s, o;
8348
- ro && !(t instanceof D) && (t.$from.parent.inlineContent || (s = io(n, t.from)), !t.empty && !t.$from.parent.inlineContent && (o = io(n, t.to))), n.docView.setSelection(r, i, n.root, e), ro && (s && so(s), o && so(o)), t.visible ? n.dom.classList.remove("ProseMirror-hideselection") : (n.dom.classList.add("ProseMirror-hideselection"), "onselectionchange" in document && eh(n));
8361
+ io && !(t instanceof D) && (t.$from.parent.inlineContent || (s = so(n, t.from)), !t.empty && !t.$from.parent.inlineContent && (o = so(n, t.to))), n.docView.setSelection(r, i, n.root, e), io && (s && oo(s), o && oo(o)), t.visible ? n.dom.classList.remove("ProseMirror-hideselection") : (n.dom.classList.add("ProseMirror-hideselection"), "onselectionchange" in document && eh(n));
8349
8362
  }
8350
8363
  n.domObserver.setCurSelection(), n.domObserver.connectSelection();
8351
8364
  }
8352
8365
  }
8353
- const ro = le || te && wu < 63;
8354
- function io(n, e) {
8366
+ const io = le || te && wu < 63;
8367
+ function so(n, e) {
8355
8368
  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;
8356
8369
  if (le && i && i.contentEditable == "false")
8357
8370
  return ni(i);
@@ -8365,7 +8378,7 @@ function io(n, e) {
8365
8378
  function ni(n) {
8366
8379
  return n.contentEditable = "true", le && n.draggable && (n.draggable = !1, n.wasDraggable = !0), n;
8367
8380
  }
8368
- function so(n) {
8381
+ function oo(n) {
8369
8382
  n.contentEditable = "false", n.wasDraggable && (n.draggable = !0, n.wasDraggable = null);
8370
8383
  }
8371
8384
  function eh(n) {
@@ -8385,17 +8398,17 @@ function th(n) {
8385
8398
  function ea(n, e) {
8386
8399
  if (e instanceof w) {
8387
8400
  let t = n.docView.descAt(e.from);
8388
- t != n.lastSelectedViewDesc && (oo(n), t && t.selectNode(), n.lastSelectedViewDesc = t);
8401
+ t != n.lastSelectedViewDesc && (lo(n), t && t.selectNode(), n.lastSelectedViewDesc = t);
8389
8402
  } else
8390
- oo(n);
8403
+ lo(n);
8391
8404
  }
8392
- function oo(n) {
8405
+ function lo(n) {
8393
8406
  n.lastSelectedViewDesc && (n.lastSelectedViewDesc.parent && n.lastSelectedViewDesc.deselectNode(), n.lastSelectedViewDesc = void 0);
8394
8407
  }
8395
- function ts(n, e, t, r) {
8408
+ function ns(n, e, t, r) {
8396
8409
  return n.someProp("createSelectionBetween", (i) => i(n, e, t)) || D.between(e, t, r);
8397
8410
  }
8398
- function lo(n) {
8411
+ function ao(n) {
8399
8412
  return n.editable && !n.hasFocus() ? !1 : ta(n);
8400
8413
  }
8401
8414
  function ta(n) {
@@ -8410,7 +8423,7 @@ function ta(n) {
8410
8423
  }
8411
8424
  function nh(n) {
8412
8425
  let e = n.docView.domFromPos(n.state.selection.anchor, 0), t = n.domSelectionRange();
8413
- return Et(e.node, e.offset, t.anchorNode, t.anchorOffset);
8426
+ return Ct(e.node, e.offset, t.anchorNode, t.anchorOffset);
8414
8427
  }
8415
8428
  function Ai(n, e) {
8416
8429
  let { $anchor: t, $head: r } = n.selection, i = e > 0 ? t.max(r) : t.min(r), s = i.parent.inlineContent ? i.depth ? n.doc.resolve(e > 0 ? i.after() : i.before()) : null : i;
@@ -8419,7 +8432,7 @@ function Ai(n, e) {
8419
8432
  function Ke(n, e) {
8420
8433
  return n.dispatch(n.state.tr.setSelection(e).scrollIntoView()), !0;
8421
8434
  }
8422
- function ao(n, e, t) {
8435
+ function co(n, e, t) {
8423
8436
  let r = n.state.selection;
8424
8437
  if (r instanceof D)
8425
8438
  if (t.indexOf("s") > -1) {
@@ -8533,7 +8546,7 @@ function na(n) {
8533
8546
  return e && e.node && e.node.isBlock;
8534
8547
  }
8535
8548
  function sh(n, e) {
8536
- for (; n && e == n.childNodes.length && !Qi(n); )
8549
+ for (; n && e == n.childNodes.length && !Zi(n); )
8537
8550
  e = oe(n) + 1, n = n.parentNode;
8538
8551
  for (; n && e < n.childNodes.length; ) {
8539
8552
  let t = n.childNodes[e];
@@ -8545,7 +8558,7 @@ function sh(n, e) {
8545
8558
  }
8546
8559
  }
8547
8560
  function oh(n, e) {
8548
- for (; n && !e && !Qi(n); )
8561
+ for (; n && !e && !Zi(n); )
8549
8562
  e = oe(n), n = n.parentNode;
8550
8563
  for (; n && e; ) {
8551
8564
  let t = n.childNodes[e - 1];
@@ -8573,7 +8586,7 @@ function Ni(n, e, t) {
8573
8586
  n.state == i && Fe(n);
8574
8587
  }, 50);
8575
8588
  }
8576
- function co(n, e) {
8589
+ function uo(n, e) {
8577
8590
  let t = n.state.doc.resolve(e);
8578
8591
  if (!(te || Ou) && t.parent.inlineContent) {
8579
8592
  let i = n.coordsAtPos(e);
@@ -8590,7 +8603,7 @@ function co(n, e) {
8590
8603
  }
8591
8604
  return getComputedStyle(n.dom).direction == "rtl" ? "rtl" : "ltr";
8592
8605
  }
8593
- function uo(n, e, t) {
8606
+ function ho(n, e, t) {
8594
8607
  let r = n.state.selection;
8595
8608
  if (r instanceof D && !r.empty || t.indexOf("s") > -1 || ke && t.indexOf("m") > -1)
8596
8609
  return !1;
@@ -8606,7 +8619,7 @@ function uo(n, e, t) {
8606
8619
  }
8607
8620
  return !1;
8608
8621
  }
8609
- function ho(n, e) {
8622
+ function fo(n, e) {
8610
8623
  if (!(n.state.selection instanceof D))
8611
8624
  return !0;
8612
8625
  let { $head: t, $anchor: r, empty: i } = n.state.selection;
@@ -8623,7 +8636,7 @@ function ho(n, e) {
8623
8636
  }
8624
8637
  return !1;
8625
8638
  }
8626
- function fo(n, e, t) {
8639
+ function po(n, e, t) {
8627
8640
  n.domObserver.stop(), e.contentEditable = t, n.domObserver.start();
8628
8641
  }
8629
8642
  function lh(n) {
@@ -8632,7 +8645,7 @@ function lh(n) {
8632
8645
  let { focusNode: e, focusOffset: t } = n.domSelectionRange();
8633
8646
  if (e && e.nodeType == 1 && t == 0 && e.firstChild && e.firstChild.contentEditable == "false") {
8634
8647
  let r = e.firstChild;
8635
- fo(n, r, "true"), setTimeout(() => fo(n, r, "false"), 20);
8648
+ po(n, r, "true"), setTimeout(() => po(n, r, "false"), 20);
8636
8649
  }
8637
8650
  return !1;
8638
8651
  }
@@ -8643,22 +8656,22 @@ function ah(n) {
8643
8656
  function ch(n, e) {
8644
8657
  let t = e.keyCode, r = ah(e);
8645
8658
  if (t == 8 || ke && t == 72 && r == "c")
8646
- return ho(n, -1) || Mt(n, -1);
8659
+ return fo(n, -1) || Mt(n, -1);
8647
8660
  if (t == 46 && !e.shiftKey || ke && t == 68 && r == "c")
8648
- return ho(n, 1) || Mt(n, 1);
8661
+ return fo(n, 1) || Mt(n, 1);
8649
8662
  if (t == 13 || t == 27)
8650
8663
  return !0;
8651
8664
  if (t == 37 || ke && t == 66 && r == "c") {
8652
- let i = t == 37 ? co(n, n.state.selection.from) == "ltr" ? -1 : 1 : -1;
8653
- return ao(n, i, r) || Mt(n, i);
8665
+ let i = t == 37 ? uo(n, n.state.selection.from) == "ltr" ? -1 : 1 : -1;
8666
+ return co(n, i, r) || Mt(n, i);
8654
8667
  } else if (t == 39 || ke && t == 70 && r == "c") {
8655
- let i = t == 39 ? co(n, n.state.selection.from) == "ltr" ? 1 : -1 : 1;
8656
- return ao(n, i, r) || Mt(n, i);
8668
+ let i = t == 39 ? uo(n, n.state.selection.from) == "ltr" ? 1 : -1 : 1;
8669
+ return co(n, i, r) || Mt(n, i);
8657
8670
  } else {
8658
8671
  if (t == 38 || ke && t == 80 && r == "c")
8659
- return uo(n, -1, r) || Mt(n, -1);
8672
+ return ho(n, -1, r) || Mt(n, -1);
8660
8673
  if (t == 40 || ke && t == 78 && r == "c")
8661
- return lh(n) || uo(n, 1, r) || Mt(n, 1);
8674
+ return lh(n) || ho(n, 1, r) || Mt(n, 1);
8662
8675
  if (r == (ke ? "m" : "c") && (t == 66 || t == 73 || t == 89 || t == 90))
8663
8676
  return !0;
8664
8677
  }
@@ -8727,21 +8740,21 @@ function ia(n, e, t, r, i) {
8727
8740
  break;
8728
8741
  o = h;
8729
8742
  }
8730
- if (l || (l = (n.someProp("clipboardParser") || n.someProp("domParser") || Ui.fromSchema(n.state.schema)).parseSlice(o, {
8743
+ if (l || (l = (n.someProp("clipboardParser") || n.someProp("domParser") || Ji.fromSchema(n.state.schema)).parseSlice(o, {
8731
8744
  preserveWhitespace: !!(a || d),
8732
8745
  context: i,
8733
8746
  ruleFromNode(h) {
8734
8747
  return h.nodeName == "BR" && !h.nextSibling && h.parentNode && !dh.test(h.parentNode.nodeName) ? { ignore: !0 } : null;
8735
8748
  }
8736
8749
  })), d)
8737
- l = ph(po(l, +d[1], +d[2]), d[4]);
8750
+ l = ph(mo(l, +d[1], +d[2]), d[4]);
8738
8751
  else if (l = S.maxOpen(uh(l.content, i), !0), l.openStart || l.openEnd) {
8739
8752
  let u = 0, h = 0;
8740
8753
  for (let f = l.content.firstChild; u < l.openStart && !f.type.spec.isolating; u++, f = f.firstChild)
8741
8754
  ;
8742
8755
  for (let f = l.content.lastChild; h < l.openEnd && !f.type.spec.isolating; h++, f = f.lastChild)
8743
8756
  ;
8744
- l = po(l, u, h);
8757
+ l = mo(l, u, h);
8745
8758
  }
8746
8759
  return n.someProp("transformPasted", (u) => {
8747
8760
  l = u(l, n);
@@ -8795,7 +8808,7 @@ function Di(n, e, t, r, i, s) {
8795
8808
  let o = e < 0 ? n.firstChild : n.lastChild, l = o.content;
8796
8809
  return n.childCount > 1 && (s = 0), i < r - 1 && (l = Di(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(b.empty, !0))), n.replaceChild(e < 0 ? 0 : n.childCount - 1, o.copy(l));
8797
8810
  }
8798
- function po(n, e, t) {
8811
+ function mo(n, e, t) {
8799
8812
  return e < n.openStart && (n = new S(Di(n.content, -1, e, n.openStart, 0, n.openEnd), e, n.openEnd)), t < n.openEnd && (n = new S(Di(n.content, 1, t, n.openEnd, 0, 0), n.openStart, t)), n;
8800
8813
  }
8801
8814
  const aa = {
@@ -8809,9 +8822,9 @@ const aa = {
8809
8822
  td: ["table", "tbody", "tr"],
8810
8823
  th: ["table", "tbody", "tr"]
8811
8824
  };
8812
- let mo = null;
8825
+ let go = null;
8813
8826
  function ca() {
8814
- return mo || (mo = document.implementation.createHTMLDocument("title"));
8827
+ return go || (go = document.implementation.createHTMLDocument("title"));
8815
8828
  }
8816
8829
  function hh(n) {
8817
8830
  let e = /^(\s*<meta [^>]*>)*/.exec(n);
@@ -8857,7 +8870,7 @@ function yh(n) {
8857
8870
  for (let e in ae) {
8858
8871
  let t = ae[e];
8859
8872
  n.dom.addEventListener(e, n.input.eventHandlers[e] = (r) => {
8860
- kh(n, r) && !ns(n, r) && (n.editable || !(r.type in ce)) && t(n, r);
8873
+ kh(n, r) && !rs(n, r) && (n.editable || !(r.type in ce)) && t(n, r);
8861
8874
  }, mh[e] ? { passive: !0 } : void 0);
8862
8875
  }
8863
8876
  le && n.dom.addEventListener("input", () => null), Ii(n);
@@ -8874,10 +8887,10 @@ function bh(n) {
8874
8887
  function Ii(n) {
8875
8888
  n.someProp("handleDOMEvents", (e) => {
8876
8889
  for (let t in e)
8877
- n.input.eventHandlers[t] || n.dom.addEventListener(t, n.input.eventHandlers[t] = (r) => ns(n, r));
8890
+ n.input.eventHandlers[t] || n.dom.addEventListener(t, n.input.eventHandlers[t] = (r) => rs(n, r));
8878
8891
  });
8879
8892
  }
8880
- function ns(n, e) {
8893
+ function rs(n, e) {
8881
8894
  return n.someProp("handleDOMEvents", (t) => {
8882
8895
  let r = t[e.type];
8883
8896
  return r ? r(n, e) || e.defaultPrevented : !1;
@@ -8894,11 +8907,11 @@ function kh(n, e) {
8894
8907
  return !0;
8895
8908
  }
8896
8909
  function Sh(n, e) {
8897
- !ns(n, e) && ae[e.type] && (n.editable || !(e.type in ce)) && ae[e.type](n, e);
8910
+ !rs(n, e) && ae[e.type] && (n.editable || !(e.type in ce)) && ae[e.type](n, e);
8898
8911
  }
8899
8912
  ce.keydown = (n, e) => {
8900
8913
  let t = e;
8901
- if (n.input.shiftKey = t.keyCode == 16 || t.shiftKey, !ua(n, t) && (n.input.lastKeyCode = t.keyCode, n.input.lastKeyCodeTime = Date.now(), !(Ce && te && t.keyCode == 13)))
8914
+ if (n.input.shiftKey = t.keyCode == 16 || t.shiftKey, !ua(n, t) && (n.input.lastKeyCode = t.keyCode, n.input.lastKeyCodeTime = Date.now(), !(Ee && te && t.keyCode == 13)))
8902
8915
  if (t.keyCode != 229 && n.domObserver.forceFlush(), Ft && t.keyCode == 13 && !t.ctrlKey && !t.altKey && !t.metaKey) {
8903
8916
  let r = Date.now();
8904
8917
  n.input.lastIOSEnter = r, n.input.lastIOSEnterFallbackTimeout = setTimeout(() => {
@@ -8931,7 +8944,7 @@ function xh(n, e) {
8931
8944
  let t = e.x - n.clientX, r = e.y - n.clientY;
8932
8945
  return t * t + r * r < 100;
8933
8946
  }
8934
- function rs(n, e, t, r, i) {
8947
+ function is(n, e, t, r, i) {
8935
8948
  if (r == -1)
8936
8949
  return !1;
8937
8950
  let s = n.state.doc.resolve(r);
@@ -8945,13 +8958,13 @@ function Lt(n, e, t) {
8945
8958
  let r = n.state.tr.setSelection(e);
8946
8959
  t == "pointer" && r.setMeta("pointer", !0), n.dispatch(r);
8947
8960
  }
8948
- function Eh(n, e) {
8961
+ function Ch(n, e) {
8949
8962
  if (e == -1)
8950
8963
  return !1;
8951
8964
  let t = n.state.doc.resolve(e), r = t.nodeAfter;
8952
8965
  return r && r.isAtom && w.isSelectable(r) ? (Lt(n, new w(t), "pointer"), !0) : !1;
8953
8966
  }
8954
- function Ch(n, e) {
8967
+ function Eh(n, e) {
8955
8968
  if (e == -1)
8956
8969
  return !1;
8957
8970
  let t = n.state.selection, r, i;
@@ -8967,13 +8980,13 @@ function Ch(n, e) {
8967
8980
  return i != null ? (Lt(n, w.create(n.state.doc, i), "pointer"), !0) : !1;
8968
8981
  }
8969
8982
  function Th(n, e, t, r, i) {
8970
- return rs(n, "handleClickOn", e, t, r) || n.someProp("handleClick", (s) => s(n, e, r)) || (i ? Ch(n, t) : Eh(n, t));
8983
+ return is(n, "handleClickOn", e, t, r) || n.someProp("handleClick", (s) => s(n, e, r)) || (i ? Eh(n, t) : Ch(n, t));
8971
8984
  }
8972
8985
  function Mh(n, e, t, r) {
8973
- return rs(n, "handleDoubleClickOn", e, t, r) || n.someProp("handleDoubleClick", (i) => i(n, e, r));
8986
+ return is(n, "handleDoubleClickOn", e, t, r) || n.someProp("handleDoubleClick", (i) => i(n, e, r));
8974
8987
  }
8975
8988
  function wh(n, e, t, r) {
8976
- return rs(n, "handleTripleClickOn", e, t, r) || n.someProp("handleTripleClick", (i) => i(n, e, r)) || Oh(n, t, r);
8989
+ return is(n, "handleTripleClickOn", e, t, r) || n.someProp("handleTripleClick", (i) => i(n, e, r)) || Oh(n, t, r);
8977
8990
  }
8978
8991
  function Oh(n, e, t) {
8979
8992
  if (t.button != 0)
@@ -8993,14 +9006,14 @@ function Oh(n, e, t) {
8993
9006
  return !0;
8994
9007
  }
8995
9008
  }
8996
- function is(n) {
9009
+ function ss(n) {
8997
9010
  return Vn(n);
8998
9011
  }
8999
9012
  const da = ke ? "metaKey" : "ctrlKey";
9000
9013
  ae.mousedown = (n, e) => {
9001
9014
  let t = e;
9002
9015
  n.input.shiftKey = t.shiftKey;
9003
- let r = is(n), i = Date.now(), s = "singleClick";
9016
+ let r = ss(n), i = Date.now(), s = "singleClick";
9004
9017
  i - n.input.lastClick.time < 500 && xh(t, n.input.lastClick) && !t[da] && (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 };
9005
9018
  let o = n.posAtCoords(Dr(t));
9006
9019
  o && (s == "singleClick" ? (n.input.mouseDown && n.input.mouseDown.done(), n.input.mouseDown = new vh(n, o, t, !!r)) : (s == "doubleClick" ? Mh : wh)(n, o.pos, o.inside, t) ? t.preventDefault() : Xe(n, "pointer"));
@@ -9052,16 +9065,16 @@ class vh {
9052
9065
  }
9053
9066
  }
9054
9067
  ae.touchstart = (n) => {
9055
- n.input.lastTouch = Date.now(), is(n), Xe(n, "pointer");
9068
+ n.input.lastTouch = Date.now(), ss(n), Xe(n, "pointer");
9056
9069
  };
9057
9070
  ae.touchmove = (n) => {
9058
9071
  n.input.lastTouch = Date.now(), Xe(n, "pointer");
9059
9072
  };
9060
- ae.contextmenu = (n) => is(n);
9073
+ ae.contextmenu = (n) => ss(n);
9061
9074
  function ua(n, e) {
9062
9075
  return n.composing ? !0 : le && Math.abs(e.timeStamp - n.input.compositionEndedAt) < 500 ? (n.input.compositionEndedAt = -2e8, !0) : !1;
9063
9076
  }
9064
- const Ah = Ce ? 5e3 : -1;
9077
+ const Ah = Ee ? 5e3 : -1;
9065
9078
  ce.compositionstart = ce.compositionupdate = (n) => {
9066
9079
  if (!n.composing) {
9067
9080
  n.domObserver.flush();
@@ -9100,9 +9113,9 @@ function Nh() {
9100
9113
  return n.initEvent("event", !0, !0), n.timeStamp;
9101
9114
  }
9102
9115
  function Vn(n, e = !1) {
9103
- if (!(Ce && n.domObserver.flushingSoon >= 0)) {
9116
+ if (!(Ee && n.domObserver.flushingSoon >= 0)) {
9104
9117
  if (n.domObserver.forceFlush(), fa(n), e || n.docView && n.docView.dirty) {
9105
- let t = es(n);
9118
+ let t = ts(n);
9106
9119
  return t && !t.eq(n.state.selection) ? n.dispatch(n.state.tr.setSelection(t)) : n.updateState(n.state), !0;
9107
9120
  }
9108
9121
  return !1;
@@ -9157,7 +9170,7 @@ function pa(n) {
9157
9170
  }
9158
9171
  ce.paste = (n, e) => {
9159
9172
  let t = e;
9160
- if (n.composing && !Ce)
9173
+ if (n.composing && !Ee)
9161
9174
  return;
9162
9175
  let r = un ? null : t.clipboardData, i = n.input.shiftKey && n.input.lastKeyCode != 45;
9163
9176
  r && hn(n, pa(r), r.getData("text/html"), i, t) ? t.preventDefault() : Rh(n, t);
@@ -9222,7 +9235,7 @@ ce.drop = (n, e) => {
9222
9235
  c.setSelection(new w(f));
9223
9236
  else {
9224
9237
  let p = c.mapping.map(a);
9225
- c.mapping.maps[c.mapping.maps.length - 1].forEach((m, g, y, x) => p = x), c.setSelection(ts(n, f, c.doc.resolve(p)));
9238
+ c.mapping.maps[c.mapping.maps.length - 1].forEach((m, g, y, x) => p = x), c.setSelection(ns(n, f, c.doc.resolve(p)));
9226
9239
  }
9227
9240
  n.focus(), n.dispatch(c.setMeta("uiEvent", "drop"));
9228
9241
  };
@@ -9236,7 +9249,7 @@ ae.blur = (n, e) => {
9236
9249
  n.focused && (n.domObserver.stop(), n.dom.classList.remove("ProseMirror-focused"), n.domObserver.start(), t.relatedTarget && n.dom.contains(t.relatedTarget) && n.domObserver.currentSelection.clear(), n.focused = !1);
9237
9250
  };
9238
9251
  ae.beforeinput = (n, e) => {
9239
- if (te && Ce && e.inputType == "deleteContentBackward") {
9252
+ if (te && Ee && e.inputType == "deleteContentBackward") {
9240
9253
  n.domObserver.flushSoon();
9241
9254
  let { domChangeCount: r } = n.input;
9242
9255
  setTimeout(() => {
@@ -9298,7 +9311,7 @@ class et {
9298
9311
  destroy() {
9299
9312
  }
9300
9313
  }
9301
- class ss {
9314
+ class ls {
9302
9315
  constructor(e, t) {
9303
9316
  this.attrs = e, this.spec = t || yt;
9304
9317
  }
@@ -9314,7 +9327,7 @@ class ss {
9314
9327
  return i == t.from && !(s = e.child(r)).isText && i + s.nodeSize == t.to;
9315
9328
  }
9316
9329
  eq(e) {
9317
- return this == e || e instanceof ss && fn(this.attrs, e.attrs) && fn(this.spec, e.spec);
9330
+ return this == e || e instanceof ls && fn(this.attrs, e.attrs) && fn(this.spec, e.spec);
9318
9331
  }
9319
9332
  destroy() {
9320
9333
  }
@@ -9368,7 +9381,7 @@ class me {
9368
9381
  node, will receive the given attributes.
9369
9382
  */
9370
9383
  static node(e, t, r, i) {
9371
- return new me(e, t, new ss(r, i));
9384
+ return new me(e, t, new ls(r, i));
9372
9385
  }
9373
9386
  /**
9374
9387
  The spec provided when creating this decoration. Can be useful
@@ -9404,7 +9417,7 @@ class H {
9404
9417
  you must make a copy if you want need to preserve that.
9405
9418
  */
9406
9419
  static create(e, t) {
9407
- return t.length ? jn(t, e, 0, yt) : Z;
9420
+ return t.length ? jn(t, e, 0, yt) : ee;
9408
9421
  }
9409
9422
  /**
9410
9423
  Find all decorations in this set which touch the given range
@@ -9434,7 +9447,7 @@ class H {
9434
9447
  document.
9435
9448
  */
9436
9449
  map(e, t, r) {
9437
- return this == Z || e.maps.length == 0 ? this : this.mapInner(e, t, 0, 0, r || yt);
9450
+ return this == ee || e.maps.length == 0 ? this : this.mapInner(e, t, 0, 0, r || yt);
9438
9451
  }
9439
9452
  /**
9440
9453
  @internal
@@ -9445,7 +9458,7 @@ class H {
9445
9458
  let a = this.local[l].map(e, r, i);
9446
9459
  a && a.type.valid(t, a) ? (o || (o = [])).push(a) : s.onRemove && s.onRemove(this.local[l].spec);
9447
9460
  }
9448
- return this.children.length ? Lh(this.children, o || [], e, t, r, i, s) : o ? new H(o.sort(bt), At) : Z;
9461
+ return this.children.length ? Lh(this.children, o || [], e, t, r, i, s) : o ? new H(o.sort(bt), At) : ee;
9449
9462
  }
9450
9463
  /**
9451
9464
  Add the given array of decorations to the ones in the set,
@@ -9454,7 +9467,7 @@ class H {
9454
9467
  structure.
9455
9468
  */
9456
9469
  add(e, t) {
9457
- return t.length ? this == Z ? H.create(e, t) : this.addInner(e, t, 0) : this;
9470
+ return t.length ? this == ee ? H.create(e, t) : this.addInner(e, t, 0) : this;
9458
9471
  }
9459
9472
  addInner(e, t, r) {
9460
9473
  let i, s = 0;
@@ -9476,7 +9489,7 @@ class H {
9476
9489
  the ones in the given array.
9477
9490
  */
9478
9491
  remove(e) {
9479
- return e.length == 0 || this == Z ? this : this.removeInner(e, 0);
9492
+ return e.length == 0 || this == ee ? this : this.removeInner(e, 0);
9480
9493
  }
9481
9494
  removeInner(e, t) {
9482
9495
  let r = this.children, i = this.local;
@@ -9488,7 +9501,7 @@ class H {
9488
9501
  continue;
9489
9502
  r == this.children && (r = this.children.slice());
9490
9503
  let c = r[s + 2].removeInner(o, l + 1);
9491
- c != Z ? r[s + 2] = c : (r.splice(s, 3), s -= 3);
9504
+ c != ee ? r[s + 2] = c : (r.splice(s, 3), s -= 3);
9492
9505
  }
9493
9506
  if (i.length) {
9494
9507
  for (let s = 0, o; s < e.length; s++)
@@ -9496,13 +9509,13 @@ class H {
9496
9509
  for (let l = 0; l < i.length; l++)
9497
9510
  i[l].eq(o, t) && (i == this.local && (i = this.local.slice()), i.splice(l--, 1));
9498
9511
  }
9499
- return r == this.children && i == this.local ? this : i.length || r.length ? new H(i, r) : Z;
9512
+ return r == this.children && i == this.local ? this : i.length || r.length ? new H(i, r) : ee;
9500
9513
  }
9501
9514
  /**
9502
9515
  @internal
9503
9516
  */
9504
9517
  forChild(e, t) {
9505
- if (this == Z)
9518
+ if (this == ee)
9506
9519
  return this;
9507
9520
  if (t.isLeaf)
9508
9521
  return H.empty;
@@ -9524,7 +9537,7 @@ class H {
9524
9537
  let l = new H(i.sort(bt), At);
9525
9538
  return r ? new Ue([l, r]) : l;
9526
9539
  }
9527
- return r || Z;
9540
+ return r || ee;
9528
9541
  }
9529
9542
  /**
9530
9543
  @internal
@@ -9546,13 +9559,13 @@ class H {
9546
9559
  @internal
9547
9560
  */
9548
9561
  locals(e) {
9549
- return ls(this.localsInner(e));
9562
+ return as(this.localsInner(e));
9550
9563
  }
9551
9564
  /**
9552
9565
  @internal
9553
9566
  */
9554
9567
  localsInner(e) {
9555
- if (this == Z)
9568
+ if (this == ee)
9556
9569
  return At;
9557
9570
  if (e.inlineContent || !this.local.some(et.is))
9558
9571
  return this.local;
@@ -9563,8 +9576,8 @@ class H {
9563
9576
  }
9564
9577
  }
9565
9578
  H.empty = new H([], []);
9566
- H.removeOverlap = ls;
9567
- const Z = H.empty;
9579
+ H.removeOverlap = as;
9580
+ const ee = H.empty;
9568
9581
  class Ue {
9569
9582
  constructor(e) {
9570
9583
  this.members = e;
@@ -9579,7 +9592,7 @@ class Ue {
9579
9592
  let r = [];
9580
9593
  for (let i = 0; i < this.members.length; i++) {
9581
9594
  let s = this.members[i].forChild(e, t);
9582
- s != Z && (s instanceof Ue ? r = r.concat(s.members) : r.push(s));
9595
+ s != ee && (s instanceof Ue ? r = r.concat(s.members) : r.push(s));
9583
9596
  }
9584
9597
  return Ue.from(r);
9585
9598
  }
@@ -9604,14 +9617,14 @@ class Ue {
9604
9617
  t.push(s[o]);
9605
9618
  }
9606
9619
  }
9607
- return t ? ls(r ? t : t.sort(bt)) : At;
9620
+ return t ? as(r ? t : t.sort(bt)) : At;
9608
9621
  }
9609
9622
  // Create a group for the given array of decoration sets, or return
9610
9623
  // a single set when possible.
9611
9624
  static from(e) {
9612
9625
  switch (e.length) {
9613
9626
  case 0:
9614
- return Z;
9627
+ return ee;
9615
9628
  case 1:
9616
9629
  return e[0];
9617
9630
  default:
@@ -9650,7 +9663,7 @@ function Lh(n, e, t, r, i, s, o) {
9650
9663
  let h = t.map(n[c + 1] + s, -1), f = h - i, { index: p, offset: m } = r.content.findIndex(u), g = r.maybeChild(p);
9651
9664
  if (g && m == u && m + g.nodeSize == f) {
9652
9665
  let y = l[c + 2].mapInner(t, g, d + 1, n[c] + s + 1, o);
9653
- y != Z ? (l[c] = u, l[c + 1] = f, l[c + 2] = y) : (l[c + 1] = -2, a = !0);
9666
+ y != ee ? (l[c] = u, l[c + 1] = f, l[c + 2] = y) : (l[c + 1] = -2, a = !0);
9654
9667
  } else
9655
9668
  a = !0;
9656
9669
  }
@@ -9712,18 +9725,18 @@ function jn(n, e, t, r) {
9712
9725
  if (c) {
9713
9726
  s = !0;
9714
9727
  let d = jn(c, l, t + a + 1, r);
9715
- d != Z && i.push(a, a + l.nodeSize, d);
9728
+ d != ee && i.push(a, a + l.nodeSize, d);
9716
9729
  }
9717
9730
  });
9718
9731
  let o = ga(s ? ba(n) : n, -t).sort(bt);
9719
9732
  for (let l = 0; l < o.length; l++)
9720
9733
  o[l].type.valid(e, o[l]) || (r.onRemove && r.onRemove(o[l].spec), o.splice(l--, 1));
9721
- return o.length || i.length ? new H(o, i) : Z;
9734
+ return o.length || i.length ? new H(o, i) : ee;
9722
9735
  }
9723
9736
  function bt(n, e) {
9724
9737
  return n.from - e.from || n.to - e.to;
9725
9738
  }
9726
- function ls(n) {
9739
+ function as(n) {
9727
9740
  let e = n;
9728
9741
  for (let t = 0; t < e.length - 1; t++) {
9729
9742
  let r = e[t];
@@ -9731,17 +9744,17 @@ function ls(n) {
9731
9744
  for (let i = t + 1; i < e.length; i++) {
9732
9745
  let s = e[i];
9733
9746
  if (s.from == r.from) {
9734
- s.to != r.to && (e == n && (e = n.slice()), e[i] = s.copy(s.from, r.to), go(e, i + 1, s.copy(r.to, s.to)));
9747
+ s.to != r.to && (e == n && (e = n.slice()), e[i] = s.copy(s.from, r.to), yo(e, i + 1, s.copy(r.to, s.to)));
9735
9748
  continue;
9736
9749
  } else {
9737
- s.from < r.to && (e == n && (e = n.slice()), e[t] = r.copy(r.from, s.from), go(e, i, r.copy(s.from, r.to)));
9750
+ s.from < r.to && (e == n && (e = n.slice()), e[t] = r.copy(r.from, s.from), yo(e, i, r.copy(s.from, r.to)));
9738
9751
  break;
9739
9752
  }
9740
9753
  }
9741
9754
  }
9742
9755
  return e;
9743
9756
  }
9744
- function go(n, e, t) {
9757
+ function yo(n, e, t) {
9745
9758
  for (; e < n.length && bt(t, n[e]) > 0; )
9746
9759
  e++;
9747
9760
  n.splice(e, 0, t);
@@ -9750,7 +9763,7 @@ function ri(n) {
9750
9763
  let e = [];
9751
9764
  return n.someProp("decorations", (t) => {
9752
9765
  let r = t(n.state);
9753
- r && r != Z && e.push(r);
9766
+ r && r != ee && e.push(r);
9754
9767
  }), n.cursorWrapper && e.push(H.create(n.state.doc, [n.cursorWrapper.deco])), Ue.from(e);
9755
9768
  }
9756
9769
  const _h = {
@@ -9818,12 +9831,12 @@ class Hh {
9818
9831
  this.suppressingSelectionUpdates = !0, setTimeout(() => this.suppressingSelectionUpdates = !1, 50);
9819
9832
  }
9820
9833
  onSelectionChange() {
9821
- if (lo(this.view)) {
9834
+ if (ao(this.view)) {
9822
9835
  if (this.suppressingSelectionUpdates)
9823
9836
  return Fe(this.view);
9824
9837
  if (he && Qe <= 11 && !this.view.state.selection.empty) {
9825
9838
  let e = this.view.domSelectionRange();
9826
- if (e.focusNode && Et(e.focusNode, e.focusOffset, e.anchorNode, e.anchorOffset))
9839
+ if (e.focusNode && Ct(e.focusNode, e.focusOffset, e.anchorNode, e.anchorOffset))
9827
9840
  return this.flushSoon();
9828
9841
  }
9829
9842
  this.flush();
@@ -9862,7 +9875,7 @@ class Hh {
9862
9875
  return;
9863
9876
  let t = this.pendingRecords();
9864
9877
  t.length && (this.queue = []);
9865
- let r = e.domSelectionRange(), i = !this.suppressingSelectionUpdates && !this.currentSelection.eq(r) && lo(e) && !this.ignoreSelectionChange(r), s = -1, o = -1, l = !1, a = [];
9878
+ let r = e.domSelectionRange(), i = !this.suppressingSelectionUpdates && !this.currentSelection.eq(r) && ao(e) && !this.ignoreSelectionChange(r), s = -1, o = -1, l = !1, a = [];
9866
9879
  if (e.editable)
9867
9880
  for (let d = 0; d < t.length; d++) {
9868
9881
  let u = this.registerMutation(t[d], a);
@@ -9876,7 +9889,7 @@ class Hh {
9876
9889
  }
9877
9890
  }
9878
9891
  let c = null;
9879
- s < 0 && i && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 && Ar(r) && (c = es(e)) && c.eq(N.near(e.state.doc.resolve(0), 1)) ? (e.input.lastFocus = 0, Fe(e), this.currentSelection.set(r), e.scrollToSelection()) : (s > -1 || i) && (s > -1 && (e.docView.markDirty(s, o), Vh(e)), this.handleDOMChange(s, o, l, a), e.docView && e.docView.dirty ? e.updateState(e.state) : this.currentSelection.eq(r) || Fe(e), this.currentSelection.set(r));
9892
+ s < 0 && i && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 && Ar(r) && (c = ts(e)) && c.eq(N.near(e.state.doc.resolve(0), 1)) ? (e.input.lastFocus = 0, Fe(e), this.currentSelection.set(r), e.scrollToSelection()) : (s > -1 || i) && (s > -1 && (e.docView.markDirty(s, o), Vh(e)), this.handleDOMChange(s, o, l, a), e.docView && e.docView.dirty ? e.updateState(e.state) : this.currentSelection.eq(r) || Fe(e), this.currentSelection.set(r));
9880
9893
  }
9881
9894
  registerMutation(e, t) {
9882
9895
  if (t.indexOf(e.target) > -1)
@@ -9910,12 +9923,12 @@ class Hh {
9910
9923
  };
9911
9924
  }
9912
9925
  }
9913
- let yo = /* @__PURE__ */ new WeakMap(), bo = !1;
9926
+ let bo = /* @__PURE__ */ new WeakMap(), ko = !1;
9914
9927
  function Vh(n) {
9915
- if (!yo.has(n) && (yo.set(n, null), ["normal", "nowrap", "pre-line"].indexOf(getComputedStyle(n.dom).whiteSpace) !== -1)) {
9916
- if (n.requiresGeckoHackNode = Me, bo)
9928
+ if (!bo.has(n) && (bo.set(n, null), ["normal", "nowrap", "pre-line"].indexOf(getComputedStyle(n.dom).whiteSpace) !== -1)) {
9929
+ if (n.requiresGeckoHackNode = Me, ko)
9917
9930
  return;
9918
- console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."), bo = !0;
9931
+ console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."), ko = !0;
9919
9932
  }
9920
9933
  }
9921
9934
  function $h(n) {
@@ -9925,7 +9938,7 @@ function $h(n) {
9925
9938
  }
9926
9939
  n.dom.addEventListener("beforeinput", t, !0), document.execCommand("indent"), n.dom.removeEventListener("beforeinput", t, !0);
9927
9940
  let r = e.startContainer, i = e.startOffset, s = e.endContainer, o = e.endOffset, l = n.domAtPos(n.state.selection.anchor);
9928
- return Et(l.node, l.offset, s, o) && ([r, i, s, o] = [s, o, r, i]), { anchorNode: r, anchorOffset: i, focusNode: s, focusOffset: o };
9941
+ return Ct(l.node, l.offset, s, o) && ([r, i, s, o] = [s, o, r, i]), { anchorNode: r, anchorOffset: i, focusNode: s, focusOffset: o };
9929
9942
  }
9930
9943
  function jh(n, e, t) {
9931
9944
  let { node: r, fromOffset: i, toOffset: s, from: o, to: l } = n.docView.parseRange(e, t), a = n.domSelectionRange(), c, d = a.anchorNode;
@@ -9939,7 +9952,7 @@ function jh(n, e, t) {
9939
9952
  if (!x || x.size)
9940
9953
  break;
9941
9954
  }
9942
- let u = n.state.doc, h = n.someProp("domParser") || Ui.fromSchema(n.state.schema), f = u.resolve(o), p = null, m = h.parse(r, {
9955
+ let u = n.state.doc, h = n.someProp("domParser") || Ji.fromSchema(n.state.schema), f = u.resolve(o), p = null, m = h.parse(r, {
9943
9956
  topNode: f.parent,
9944
9957
  topMatch: f.parent.contentMatchAt(f.index()),
9945
9958
  topOpen: !0,
@@ -9974,12 +9987,12 @@ const Kh = /^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|df
9974
9987
  function Wh(n, e, t, r, i) {
9975
9988
  let s = n.input.compositionPendingChanges || (n.composing ? n.input.compositionID : 0);
9976
9989
  if (n.input.compositionPendingChanges = 0, e < 0) {
9977
- let M = n.input.lastSelectionTime > Date.now() - 50 ? n.input.lastSelectionOrigin : null, Q = es(n, M);
9978
- if (Q && !n.state.selection.eq(Q)) {
9979
- if (te && Ce && n.input.lastKeyCode === 13 && Date.now() - 100 < n.input.lastKeyCodeTime && n.someProp("handleKeyDown", (ot) => ot(n, lt(13, "Enter"))))
9990
+ let M = n.input.lastSelectionTime > Date.now() - 50 ? n.input.lastSelectionOrigin : null, Z = ts(n, M);
9991
+ if (Z && !n.state.selection.eq(Z)) {
9992
+ if (te && Ee && n.input.lastKeyCode === 13 && Date.now() - 100 < n.input.lastKeyCodeTime && n.someProp("handleKeyDown", (ot) => ot(n, lt(13, "Enter"))))
9980
9993
  return;
9981
- let Ee = n.state.tr.setSelection(Q);
9982
- M == "pointer" ? Ee.setMeta("pointer", !0) : M == "key" && Ee.scrollIntoView(), s && Ee.setMeta("composition", s), n.dispatch(Ee);
9994
+ let Ce = n.state.tr.setSelection(Z);
9995
+ M == "pointer" ? Ce.setMeta("pointer", !0) : M == "key" && Ce.scrollIntoView(), s && Ce.setMeta("composition", s), n.dispatch(Ce);
9983
9996
  }
9984
9997
  return;
9985
9998
  }
@@ -9988,7 +10001,7 @@ function Wh(n, e, t, r, i) {
9988
10001
  let a = n.state.selection, c = jh(n, e, t), d = n.state.doc, u = d.slice(c.from, c.to), h, f;
9989
10002
  n.input.lastKeyCode === 8 && Date.now() - 100 < n.input.lastKeyCodeTime ? (h = n.state.selection.to, f = "end") : (h = n.state.selection.from, f = "start"), n.input.lastKeyCode = null;
9990
10003
  let p = Gh(u.content, c.doc.content, c.from, h, f);
9991
- if ((Ft && n.input.lastIOSEnter > Date.now() - 225 || Ce) && i.some((M) => M.nodeType == 1 && !Kh.test(M.nodeName)) && (!p || p.endA >= p.endB) && n.someProp("handleKeyDown", (M) => M(n, lt(13, "Enter")))) {
10004
+ if ((Ft && n.input.lastIOSEnter > Date.now() - 225 || Ee) && i.some((M) => M.nodeType == 1 && !Kh.test(M.nodeName)) && (!p || p.endA >= p.endB) && n.someProp("handleKeyDown", (M) => M(n, lt(13, "Enter")))) {
9992
10005
  n.input.lastIOSEnter = 0;
9993
10006
  return;
9994
10007
  }
@@ -9997,10 +10010,10 @@ function Wh(n, e, t, r, i) {
9997
10010
  p = { start: a.from, endA: a.to, endB: a.to };
9998
10011
  else {
9999
10012
  if (c.sel) {
10000
- let M = ko(n, n.state.doc, c.sel);
10013
+ let M = So(n, n.state.doc, c.sel);
10001
10014
  if (M && !M.eq(n.state.selection)) {
10002
- let Q = n.state.tr.setSelection(M);
10003
- s && Q.setMeta("composition", s), n.dispatch(Q);
10015
+ let Z = n.state.tr.setSelection(M);
10016
+ s && Z.setMeta("composition", s), n.dispatch(Z);
10004
10017
  }
10005
10018
  }
10006
10019
  return;
@@ -10016,38 +10029,38 @@ function Wh(n, e, t, r, i) {
10016
10029
  return;
10017
10030
  }
10018
10031
  if (n.state.selection.anchor > p.start && Jh(d, p.start, p.endA, m, g) && n.someProp("handleKeyDown", (M) => M(n, lt(8, "Backspace")))) {
10019
- Ce && te && n.domObserver.suppressSelectionUpdates();
10032
+ Ee && te && n.domObserver.suppressSelectionUpdates();
10020
10033
  return;
10021
10034
  }
10022
- te && Ce && p.endB == p.start && (n.input.lastAndroidDelete = Date.now()), Ce && !x && m.start() != g.start() && g.parentOffset == 0 && m.depth == g.depth && c.sel && c.sel.anchor == c.sel.head && c.sel.head == p.endA && (p.endB -= 2, g = c.doc.resolveNoCache(p.endB - c.from), setTimeout(() => {
10035
+ te && Ee && p.endB == p.start && (n.input.lastAndroidDelete = Date.now()), Ee && !x && m.start() != g.start() && g.parentOffset == 0 && m.depth == g.depth && c.sel && c.sel.anchor == c.sel.head && c.sel.head == p.endA && (p.endB -= 2, g = c.doc.resolveNoCache(p.endB - c.from), setTimeout(() => {
10023
10036
  n.someProp("handleKeyDown", function(M) {
10024
10037
  return M(n, lt(13, "Enter"));
10025
10038
  });
10026
10039
  }, 20));
10027
- let R = p.start, P = p.endA, C, L, I;
10040
+ let R = p.start, P = p.endA, E, L, I;
10028
10041
  if (x) {
10029
10042
  if (m.pos == g.pos)
10030
- he && Qe <= 11 && m.parentOffset == 0 && (n.domObserver.suppressSelectionUpdates(), setTimeout(() => Fe(n), 20)), C = n.state.tr.delete(R, P), L = d.resolve(p.start).marksAcross(d.resolve(p.endA));
10043
+ he && Qe <= 11 && m.parentOffset == 0 && (n.domObserver.suppressSelectionUpdates(), setTimeout(() => Fe(n), 20)), E = n.state.tr.delete(R, P), L = d.resolve(p.start).marksAcross(d.resolve(p.endA));
10031
10044
  else if (
10032
10045
  // Adding or removing a mark
10033
10046
  p.endA == p.endB && (I = Uh(m.parent.content.cut(m.parentOffset, g.parentOffset), y.parent.content.cut(y.parentOffset, p.endA - y.start())))
10034
10047
  )
10035
- C = n.state.tr, I.type == "add" ? C.addMark(R, P, I.mark) : C.removeMark(R, P, I.mark);
10048
+ E = n.state.tr, I.type == "add" ? E.addMark(R, P, I.mark) : E.removeMark(R, P, I.mark);
10036
10049
  else if (m.parent.child(m.index()).isText && m.index() == g.index() - (g.textOffset ? 0 : 1)) {
10037
10050
  let M = m.parent.textBetween(m.parentOffset, g.parentOffset);
10038
- if (n.someProp("handleTextInput", (Q) => Q(n, R, P, M)))
10051
+ if (n.someProp("handleTextInput", (Z) => Z(n, R, P, M)))
10039
10052
  return;
10040
- C = n.state.tr.insertText(M, R, P);
10053
+ E = n.state.tr.insertText(M, R, P);
10041
10054
  }
10042
10055
  }
10043
- if (C || (C = n.state.tr.replace(R, P, c.doc.slice(p.start - c.from, p.endB - c.from))), c.sel) {
10044
- let M = ko(n, C.doc, c.sel);
10045
- M && !(te && Ce && n.composing && M.empty && (p.start != p.endB || n.input.lastAndroidDelete < Date.now() - 100) && (M.head == R || M.head == C.mapping.map(P) - 1) || he && M.empty && M.head == R) && C.setSelection(M);
10056
+ if (E || (E = n.state.tr.replace(R, P, c.doc.slice(p.start - c.from, p.endB - c.from))), c.sel) {
10057
+ let M = So(n, E.doc, c.sel);
10058
+ M && !(te && Ee && n.composing && M.empty && (p.start != p.endB || n.input.lastAndroidDelete < Date.now() - 100) && (M.head == R || M.head == E.mapping.map(P) - 1) || he && M.empty && M.head == R) && E.setSelection(M);
10046
10059
  }
10047
- L && C.ensureMarks(L), s && C.setMeta("composition", s), n.dispatch(C.scrollIntoView());
10060
+ L && E.ensureMarks(L), s && E.setMeta("composition", s), n.dispatch(E.scrollIntoView());
10048
10061
  }
10049
- function ko(n, e, t) {
10050
- return Math.max(t.anchor, t.head) > e.content.size ? null : ts(n, e.resolve(t.anchor), e.resolve(t.head));
10062
+ function So(n, e, t) {
10063
+ return Math.max(t.anchor, t.head) > e.content.size ? null : ns(n, e.resolve(t.anchor), e.resolve(t.head));
10051
10064
  }
10052
10065
  function Uh(n, e) {
10053
10066
  let t = n.firstChild.marks, r = e.firstChild.marks, i = t, s = r, o, l, a;
@@ -10116,7 +10129,7 @@ class Yh {
10116
10129
  added to the document.
10117
10130
  */
10118
10131
  constructor(e, t) {
10119
- this._root = null, this.focused = !1, this.trackWrites = null, this.mounted = !1, this.markCursor = null, this.cursorWrapper = null, this.lastSelectedViewDesc = void 0, this.input = new gh(), this.prevDirectPlugins = [], this.pluginViews = [], this.requiresGeckoHackNode = !1, this.dragging = null, this._props = t, this.state = t.state, this.directPlugins = t.plugins || [], this.directPlugins.forEach(To), this.dispatch = this.dispatch.bind(this), this.dom = e && e.mount || document.createElement("div"), e && (e.appendChild ? e.appendChild(this.dom) : typeof e == "function" ? e(this.dom) : e.mount && (this.mounted = !0)), this.editable = Eo(this), xo(this), this.nodeViews = Co(this), this.docView = to(this.state.doc, So(this), ri(this), this.dom, this), this.domObserver = new Hh(this, (r, i, s, o) => Wh(this, r, i, s, o)), this.domObserver.start(), yh(this), this.updatePluginViews();
10132
+ this._root = null, this.focused = !1, this.trackWrites = null, this.mounted = !1, this.markCursor = null, this.cursorWrapper = null, this.lastSelectedViewDesc = void 0, this.input = new gh(), this.prevDirectPlugins = [], this.pluginViews = [], this.requiresGeckoHackNode = !1, this.dragging = null, this._props = t, this.state = t.state, this.directPlugins = t.plugins || [], this.directPlugins.forEach(Mo), this.dispatch = this.dispatch.bind(this), this.dom = e && e.mount || document.createElement("div"), e && (e.appendChild ? e.appendChild(this.dom) : typeof e == "function" ? e(this.dom) : e.mount && (this.mounted = !0)), this.editable = Eo(this), Co(this), this.nodeViews = To(this), this.docView = no(this.state.doc, xo(this), ri(this), this.dom, this), this.domObserver = new Hh(this, (r, i, s, o) => Wh(this, r, i, s, o)), this.domObserver.start(), yh(this), this.updatePluginViews();
10120
10133
  }
10121
10134
  /**
10122
10135
  Holds `true` when a
@@ -10146,7 +10159,7 @@ class Yh {
10146
10159
  update(e) {
10147
10160
  e.handleDOMEvents != this._props.handleDOMEvents && Ii(this);
10148
10161
  let t = this._props;
10149
- this._props = e, e.plugins && (e.plugins.forEach(To), this.directPlugins = e.plugins), this.updateStateInner(e.state, t);
10162
+ this._props = e, e.plugins && (e.plugins.forEach(Mo), this.directPlugins = e.plugins), this.updateStateInner(e.state, t);
10150
10163
  }
10151
10164
  /**
10152
10165
  Update the view by updating existing props object with the object
@@ -10174,11 +10187,11 @@ class Yh {
10174
10187
  e.storedMarks && this.composing && (fa(this), s = !0), this.state = e;
10175
10188
  let o = r.plugins != e.plugins || this._props.plugins != t.plugins;
10176
10189
  if (o || this._props.plugins != t.plugins || this._props.nodeViews != t.nodeViews) {
10177
- let h = Co(this);
10190
+ let h = To(this);
10178
10191
  Qh(h, this.nodeViews) && (this.nodeViews = h, i = !0);
10179
10192
  }
10180
- (o || t.handleDOMEvents != this._props.handleDOMEvents) && Ii(this), this.editable = Eo(this), xo(this);
10181
- let l = ri(this), a = So(this), c = r.plugins != e.plugins && !r.doc.eq(e.doc) ? "reset" : e.scrollToSelection > r.scrollToSelection ? "to selection" : "preserve", d = i || !this.docView.matchesNode(e.doc, a, l);
10193
+ (o || t.handleDOMEvents != this._props.handleDOMEvents) && Ii(this), this.editable = Eo(this), Co(this);
10194
+ let l = ri(this), a = xo(this), c = r.plugins != e.plugins && !r.doc.eq(e.doc) ? "reset" : e.scrollToSelection > r.scrollToSelection ? "to selection" : "preserve", d = i || !this.docView.matchesNode(e.doc, a, l);
10182
10195
  (d || !e.selection.eq(r.selection)) && (s = !0);
10183
10196
  let u = c == "preserve" && s && this.dom.style.overflowAnchor == null && Du(this);
10184
10197
  if (s) {
@@ -10186,7 +10199,7 @@ class Yh {
10186
10199
  let h = d && (he || te) && !this.composing && !r.selection.empty && !e.selection.empty && Xh(r.selection, e.selection);
10187
10200
  if (d) {
10188
10201
  let f = te ? this.trackWrites = this.domSelectionRange().focusNode : null;
10189
- (i || !this.docView.update(e.doc, a, l, this)) && (this.docView.updateOuterDeco([]), this.docView.destroy(), this.docView = to(e.doc, a, l, this.dom, this)), f && !this.trackWrites && (h = !0);
10202
+ (i || !this.docView.update(e.doc, a, l, this)) && (this.docView.updateOuterDeco([]), this.docView.destroy(), this.docView = no(e.doc, a, l, this.dom, this)), f && !this.trackWrites && (h = !0);
10190
10203
  }
10191
10204
  h || !(this.input.mouseDown && this.domObserver.currentSelection.eq(this.domSelectionRange()) && nh(this)) ? Fe(this, h) : (ea(this, e.selection), this.domObserver.setCurSelection()), this.domObserver.start();
10192
10205
  }
@@ -10200,9 +10213,9 @@ class Yh {
10200
10213
  if (!this.someProp("handleScrollToSelection", (t) => t(this)))
10201
10214
  if (this.state.selection instanceof w) {
10202
10215
  let t = this.docView.domAfterPos(this.state.selection.from);
10203
- t.nodeType == 1 && Gs(this, t.getBoundingClientRect(), e);
10216
+ t.nodeType == 1 && Ys(this, t.getBoundingClientRect(), e);
10204
10217
  } else
10205
- Gs(this, this.coordsAtPos(this.state.selection.head, 1), e);
10218
+ Ys(this, this.coordsAtPos(this.state.selection.head, 1), e);
10206
10219
  }
10207
10220
  destroyPluginViews() {
10208
10221
  let e;
@@ -10428,7 +10441,7 @@ class Yh {
10428
10441
  return this.root.getSelection();
10429
10442
  }
10430
10443
  }
10431
- function So(n) {
10444
+ function xo(n) {
10432
10445
  let e = /* @__PURE__ */ Object.create(null);
10433
10446
  return e.class = "ProseMirror", e.contenteditable = String(n.editable), n.someProp("attributes", (t) => {
10434
10447
  if (typeof t == "function" && (t = t(n.state)), t)
@@ -10436,7 +10449,7 @@ function So(n) {
10436
10449
  r == "class" ? e.class += " " + t[r] : r == "style" ? e.style = (e.style ? e.style + ";" : "") + t[r] : !e[r] && r != "contenteditable" && r != "nodeName" && (e[r] = String(t[r]));
10437
10450
  }), e.translate || (e.translate = "no"), [me.node(0, n.state.doc.content.size, e)];
10438
10451
  }
10439
- function xo(n) {
10452
+ function Co(n) {
10440
10453
  if (n.markCursor) {
10441
10454
  let e = document.createElement("img");
10442
10455
  e.className = "ProseMirror-separator", e.setAttribute("mark-placeholder", "true"), e.setAttribute("alt", ""), n.cursorWrapper = { dom: e, deco: me.widget(n.state.selection.head, e, { raw: !0, marks: n.markCursor }) };
@@ -10450,7 +10463,7 @@ function Xh(n, e) {
10450
10463
  let t = Math.min(n.$anchor.sharedDepth(n.head), e.$anchor.sharedDepth(e.head));
10451
10464
  return n.$anchor.start(t) != e.$anchor.start(t);
10452
10465
  }
10453
- function Co(n) {
10466
+ function To(n) {
10454
10467
  let e = /* @__PURE__ */ Object.create(null);
10455
10468
  function t(r) {
10456
10469
  for (let i in r)
@@ -10469,7 +10482,7 @@ function Qh(n, e) {
10469
10482
  r++;
10470
10483
  return t != r;
10471
10484
  }
10472
- function To(n) {
10485
+ function Mo(n) {
10473
10486
  if (n.spec.state || n.spec.filterTransaction || n.spec.appendTransaction)
10474
10487
  throw new RangeError("Plugins passed directly to the view must not have a state component");
10475
10488
  }
@@ -10596,7 +10609,7 @@ function oi(n, e, t = !0) {
10596
10609
  return e.altKey && (n = "Alt-" + n), e.ctrlKey && (n = "Ctrl-" + n), e.metaKey && (n = "Meta-" + n), t && e.shiftKey && (n = "Shift-" + n), n;
10597
10610
  }
10598
10611
  function of(n) {
10599
- return new X({ props: { handleKeyDown: lf(n) } });
10612
+ return new Q({ props: { handleKeyDown: lf(n) } });
10600
10613
  }
10601
10614
  function lf(n) {
10602
10615
  let e = sf(n);
@@ -10634,10 +10647,10 @@ const df = (n, e, t) => {
10634
10647
  return l == null ? !1 : (e && e(n.tr.lift(o, l).scrollIntoView()), !0);
10635
10648
  }
10636
10649
  let s = i.nodeBefore;
10637
- if (!s.type.spec.isolating && Ea(n, i, e))
10650
+ if (!s.type.spec.isolating && Ca(n, i, e))
10638
10651
  return !0;
10639
10652
  if (r.parent.content.size == 0 && (zt(s, "end") || w.isSelectable(s))) {
10640
- let o = Yi(n.doc, r.before(), r.after(), S.empty);
10653
+ let o = Xi(n.doc, r.before(), r.after(), S.empty);
10641
10654
  if (o && o.slice.size < o.to - o.from) {
10642
10655
  if (e) {
10643
10656
  let l = n.tr.step(o);
@@ -10691,10 +10704,10 @@ const ff = (n, e, t) => {
10691
10704
  if (!i)
10692
10705
  return !1;
10693
10706
  let s = i.nodeAfter;
10694
- if (Ea(n, i, e))
10707
+ if (Ca(n, i, e))
10695
10708
  return !0;
10696
10709
  if (r.parent.content.size == 0 && (zt(s, "start") || w.isSelectable(s))) {
10697
- let o = Yi(n.doc, r.before(), r.after(), S.empty);
10710
+ let o = Xi(n.doc, r.before(), r.after(), S.empty);
10698
10711
  if (o && o.slice.size < o.to - o.from) {
10699
10712
  if (e) {
10700
10713
  let l = n.tr.step(o);
@@ -10800,19 +10813,19 @@ const kf = (n, e) => {
10800
10813
  }
10801
10814
  let r = t.blockRange(), i = r && jt(r);
10802
10815
  return i == null ? !1 : (e && e(n.tr.lift(r, i).scrollIntoView()), !0);
10803
- }, Ef = (n, e) => {
10816
+ }, Cf = (n, e) => {
10804
10817
  let { $from: t, to: r } = n.selection, i, s = t.sharedDepth(r);
10805
10818
  return s == 0 ? !1 : (i = t.before(s), e && e(n.tr.setSelection(w.create(n.doc, i))), !0);
10806
10819
  };
10807
- function Cf(n, e, t) {
10820
+ function Ef(n, e, t) {
10808
10821
  let r = e.nodeBefore, i = e.nodeAfter, s = e.index();
10809
10822
  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 || rt(n.doc, e.pos)) ? !1 : (t && t(n.tr.clearIncompatible(e.pos, r.type, r.contentMatchAt(r.childCount)).join(e.pos).scrollIntoView()), !0);
10810
10823
  }
10811
- function Ea(n, e, t) {
10824
+ function Ca(n, e, t) {
10812
10825
  let r = e.nodeBefore, i = e.nodeAfter, s, o;
10813
10826
  if (r.type.spec.isolating || i.type.spec.isolating)
10814
10827
  return !1;
10815
- if (Cf(n, e, t))
10828
+ if (Ef(n, e, t))
10816
10829
  return !0;
10817
10830
  let l = e.parent.canReplace(e.index(), e.index() + 1);
10818
10831
  if (l && (s = (o = r.contentMatchAt(r.childCount)).findWrapping(i.type)) && o.matchType(s[0] || i.type).validEnd) {
@@ -10849,7 +10862,7 @@ function Ea(n, e, t) {
10849
10862
  }
10850
10863
  return !1;
10851
10864
  }
10852
- function Ca(n) {
10865
+ function Ea(n) {
10853
10866
  return function(e, t) {
10854
10867
  let r = e.selection, i = n < 0 ? r.$from : r.$to, s = i.depth;
10855
10868
  for (; i.node(s).isInline; ) {
@@ -10860,14 +10873,14 @@ function Ca(n) {
10860
10873
  return i.node(s).isTextblock ? (t && t(e.tr.setSelection(D.create(e.doc, n < 0 ? i.start(s) : i.end(s)))), !0) : !1;
10861
10874
  };
10862
10875
  }
10863
- const Tf = Ca(-1), Mf = Ca(1);
10876
+ const Tf = Ea(-1), Mf = Ea(1);
10864
10877
  function wf(n, e = null) {
10865
10878
  return function(t, r) {
10866
- let { $from: i, $to: s } = t.selection, o = i.blockRange(s), l = o && Gi(o, n, e);
10879
+ let { $from: i, $to: s } = t.selection, o = i.blockRange(s), l = o && Yi(o, n, e);
10867
10880
  return l ? (r && r(t.tr.wrap(o, l).scrollIntoView()), !0) : !1;
10868
10881
  };
10869
10882
  }
10870
- function Mo(n, e = null) {
10883
+ function wo(n, e = null) {
10871
10884
  return function(t, r) {
10872
10885
  let i = !1;
10873
10886
  for (let s = 0; s < t.selection.ranges.length && !i; s++) {
@@ -10909,7 +10922,7 @@ function Of(n, e = null) {
10909
10922
  let d = t.doc.resolve(o.start - 2);
10910
10923
  a = new Bn(d, d, o.depth), o.endIndex < o.parent.childCount && (o = new Bn(i, t.doc.resolve(s.end(o.depth)), o.depth)), l = !0;
10911
10924
  }
10912
- let c = Gi(a, n, e, o);
10925
+ let c = Yi(a, n, e, o);
10913
10926
  return c ? (r && r(vf(t.tr, o, c, l, n).scrollIntoView()), !0) : !1;
10914
10927
  };
10915
10928
  }
@@ -11080,10 +11093,10 @@ class Rf {
11080
11093
  this.callbacks = {};
11081
11094
  }
11082
11095
  }
11083
- function E(n, e, t) {
11084
- return n.config[e] === void 0 && n.parent ? E(n.parent, e, t) : typeof n.config[e] == "function" ? n.config[e].bind({
11096
+ function C(n, e, t) {
11097
+ return n.config[e] === void 0 && n.parent ? C(n.parent, e, t) : typeof n.config[e] == "function" ? n.config[e].bind({
11085
11098
  ...t,
11086
- parent: n.parent ? E(n.parent, e, t) : null
11099
+ parent: n.parent ? C(n.parent, e, t) : null
11087
11100
  }) : n.config[e];
11088
11101
  }
11089
11102
  function Pr(n) {
@@ -11108,7 +11121,7 @@ function Ta(n) {
11108
11121
  name: o.name,
11109
11122
  options: o.options,
11110
11123
  storage: o.storage
11111
- }, a = E(o, "addGlobalAttributes", l);
11124
+ }, a = C(o, "addGlobalAttributes", l);
11112
11125
  if (!a)
11113
11126
  return;
11114
11127
  a().forEach((d) => {
@@ -11130,7 +11143,7 @@ function Ta(n) {
11130
11143
  name: o.name,
11131
11144
  options: o.options,
11132
11145
  storage: o.storage
11133
- }, a = E(o, "addAttributes", l);
11146
+ }, a = C(o, "addAttributes", l);
11134
11147
  if (!a)
11135
11148
  return;
11136
11149
  const c = a();
@@ -11184,7 +11197,7 @@ function Pf(n = {}) {
11184
11197
  function Lf(n) {
11185
11198
  return typeof n != "string" ? n : n.match(/^[+-]?(?:\d*\.)?\d+$/) ? Number(n) : n === "true" ? !0 : n === "false" ? !1 : n;
11186
11199
  }
11187
- function wo(n, e) {
11200
+ function Oo(n, e) {
11188
11201
  return n.style ? n : {
11189
11202
  ...n,
11190
11203
  getAttrs: (t) => {
@@ -11202,7 +11215,7 @@ function wo(n, e) {
11202
11215
  }
11203
11216
  };
11204
11217
  }
11205
- function Oo(n) {
11218
+ function vo(n) {
11206
11219
  return Object.fromEntries(
11207
11220
  // @ts-ignore
11208
11221
  Object.entries(n).filter(([e, t]) => e === "attrs" && Pf(t) ? !1 : t != null)
@@ -11210,42 +11223,42 @@ function Oo(n) {
11210
11223
  }
11211
11224
  function Bf(n, e) {
11212
11225
  var t;
11213
- const r = Ta(n), { nodeExtensions: i, markExtensions: s } = Pr(n), o = (t = i.find((c) => E(c, "topNode"))) === null || t === void 0 ? void 0 : t.name, l = Object.fromEntries(i.map((c) => {
11226
+ const r = Ta(n), { nodeExtensions: i, markExtensions: s } = Pr(n), o = (t = i.find((c) => C(c, "topNode"))) === null || t === void 0 ? void 0 : t.name, l = Object.fromEntries(i.map((c) => {
11214
11227
  const d = r.filter((y) => y.type === c.name), u = {
11215
11228
  name: c.name,
11216
11229
  options: c.options,
11217
11230
  storage: c.storage,
11218
11231
  editor: e
11219
11232
  }, h = n.reduce((y, x) => {
11220
- const T = E(x, "extendNodeSchema", u);
11233
+ const T = C(x, "extendNodeSchema", u);
11221
11234
  return {
11222
11235
  ...y,
11223
11236
  ...T ? T(c) : {}
11224
11237
  };
11225
- }, {}), f = Oo({
11238
+ }, {}), f = vo({
11226
11239
  ...h,
11227
- content: A(E(c, "content", u)),
11228
- marks: A(E(c, "marks", u)),
11229
- group: A(E(c, "group", u)),
11230
- inline: A(E(c, "inline", u)),
11231
- atom: A(E(c, "atom", u)),
11232
- selectable: A(E(c, "selectable", u)),
11233
- draggable: A(E(c, "draggable", u)),
11234
- code: A(E(c, "code", u)),
11235
- defining: A(E(c, "defining", u)),
11236
- isolating: A(E(c, "isolating", u)),
11240
+ content: A(C(c, "content", u)),
11241
+ marks: A(C(c, "marks", u)),
11242
+ group: A(C(c, "group", u)),
11243
+ inline: A(C(c, "inline", u)),
11244
+ atom: A(C(c, "atom", u)),
11245
+ selectable: A(C(c, "selectable", u)),
11246
+ draggable: A(C(c, "draggable", u)),
11247
+ code: A(C(c, "code", u)),
11248
+ defining: A(C(c, "defining", u)),
11249
+ isolating: A(C(c, "isolating", u)),
11237
11250
  attrs: Object.fromEntries(d.map((y) => {
11238
11251
  var x;
11239
11252
  return [y.name, { default: (x = y == null ? void 0 : y.attribute) === null || x === void 0 ? void 0 : x.default }];
11240
11253
  }))
11241
- }), p = A(E(c, "parseHTML", u));
11242
- p && (f.parseDOM = p.map((y) => wo(y, d)));
11243
- const m = E(c, "renderHTML", u);
11254
+ }), p = A(C(c, "parseHTML", u));
11255
+ p && (f.parseDOM = p.map((y) => Oo(y, d)));
11256
+ const m = C(c, "renderHTML", u);
11244
11257
  m && (f.toDOM = (y) => m({
11245
11258
  node: y,
11246
11259
  HTMLAttributes: Ri(y, d)
11247
11260
  }));
11248
- const g = E(c, "renderText", u);
11261
+ const g = C(c, "renderText", u);
11249
11262
  return g && (f.toText = g), [c.name, f];
11250
11263
  })), a = Object.fromEntries(s.map((c) => {
11251
11264
  const d = r.filter((g) => g.type === c.name), u = {
@@ -11254,25 +11267,25 @@ function Bf(n, e) {
11254
11267
  storage: c.storage,
11255
11268
  editor: e
11256
11269
  }, h = n.reduce((g, y) => {
11257
- const x = E(y, "extendMarkSchema", u);
11270
+ const x = C(y, "extendMarkSchema", u);
11258
11271
  return {
11259
11272
  ...g,
11260
11273
  ...x ? x(c) : {}
11261
11274
  };
11262
- }, {}), f = Oo({
11275
+ }, {}), f = vo({
11263
11276
  ...h,
11264
- inclusive: A(E(c, "inclusive", u)),
11265
- excludes: A(E(c, "excludes", u)),
11266
- group: A(E(c, "group", u)),
11267
- spanning: A(E(c, "spanning", u)),
11268
- code: A(E(c, "code", u)),
11277
+ inclusive: A(C(c, "inclusive", u)),
11278
+ excludes: A(C(c, "excludes", u)),
11279
+ group: A(C(c, "group", u)),
11280
+ spanning: A(C(c, "spanning", u)),
11281
+ code: A(C(c, "code", u)),
11269
11282
  attrs: Object.fromEntries(d.map((g) => {
11270
11283
  var y;
11271
11284
  return [g.name, { default: (y = g == null ? void 0 : g.attribute) === null || y === void 0 ? void 0 : y.default }];
11272
11285
  }))
11273
- }), p = A(E(c, "parseHTML", u));
11274
- p && (f.parseDOM = p.map((g) => wo(g, d)));
11275
- const m = E(c, "renderHTML", u);
11286
+ }), p = A(C(c, "parseHTML", u));
11287
+ p && (f.parseDOM = p.map((g) => Oo(g, d)));
11288
+ const m = C(c, "renderHTML", u);
11276
11289
  return m && (f.toDOM = (g) => m({
11277
11290
  mark: g,
11278
11291
  HTMLAttributes: Ri(g, d)
@@ -11287,7 +11300,7 @@ function Bf(n, e) {
11287
11300
  function li(n, e) {
11288
11301
  return e.nodes[n] || e.marks[n] || null;
11289
11302
  }
11290
- function vo(n, e) {
11303
+ function Ao(n, e) {
11291
11304
  return Array.isArray(e) ? e.some((t) => (typeof t == "string" ? t : t.name) === n.name) : e;
11292
11305
  }
11293
11306
  const _f = (n, e = 500) => {
@@ -11304,7 +11317,7 @@ const _f = (n, e = 500) => {
11304
11317
  t += d.slice(0, Math.max(0, r - s));
11305
11318
  }), t;
11306
11319
  };
11307
- function as(n) {
11320
+ function cs(n) {
11308
11321
  return Object.prototype.toString.call(n) === "[object RegExp]";
11309
11322
  }
11310
11323
  class Lr {
@@ -11313,7 +11326,7 @@ class Lr {
11313
11326
  }
11314
11327
  }
11315
11328
  const Ff = (n, e) => {
11316
- if (as(e))
11329
+ if (cs(e))
11317
11330
  return e.exec(n);
11318
11331
  const t = e(n);
11319
11332
  if (!t)
@@ -11366,7 +11379,7 @@ function ai(n) {
11366
11379
  }), d;
11367
11380
  }
11368
11381
  function zf(n) {
11369
- const { editor: e, rules: t } = n, r = new X({
11382
+ const { editor: e, rules: t } = n, r = new Q({
11370
11383
  state: {
11371
11384
  init() {
11372
11385
  return null;
@@ -11431,7 +11444,7 @@ class wa {
11431
11444
  }
11432
11445
  }
11433
11446
  const Vf = (n, e) => {
11434
- if (as(e))
11447
+ if (cs(e))
11435
11448
  return [...n.matchAll(e)];
11436
11449
  const t = e(n);
11437
11450
  return t ? t.map((r) => {
@@ -11469,7 +11482,7 @@ function $f(n) {
11469
11482
  function jf(n) {
11470
11483
  const { editor: e, rules: t } = n;
11471
11484
  let r = null, i = !1, s = !1;
11472
- return t.map((l) => new X({
11485
+ return t.map((l) => new Q({
11473
11486
  // we register a global drag handler to track the current drag source element
11474
11487
  view(a) {
11475
11488
  const c = (d) => {
@@ -11530,22 +11543,22 @@ class It {
11530
11543
  editor: this.editor,
11531
11544
  type: li(r.name, this.schema)
11532
11545
  };
11533
- r.type === "mark" && (!((i = A(E(r, "keepOnSplit", s))) !== null && i !== void 0) || i) && this.splittableMarks.push(r.name);
11534
- const o = E(r, "onBeforeCreate", s);
11546
+ r.type === "mark" && (!((i = A(C(r, "keepOnSplit", s))) !== null && i !== void 0) || i) && this.splittableMarks.push(r.name);
11547
+ const o = C(r, "onBeforeCreate", s);
11535
11548
  o && this.editor.on("beforeCreate", o);
11536
- const l = E(r, "onCreate", s);
11549
+ const l = C(r, "onCreate", s);
11537
11550
  l && this.editor.on("create", l);
11538
- const a = E(r, "onUpdate", s);
11551
+ const a = C(r, "onUpdate", s);
11539
11552
  a && this.editor.on("update", a);
11540
- const c = E(r, "onSelectionUpdate", s);
11553
+ const c = C(r, "onSelectionUpdate", s);
11541
11554
  c && this.editor.on("selectionUpdate", c);
11542
- const d = E(r, "onTransaction", s);
11555
+ const d = C(r, "onTransaction", s);
11543
11556
  d && this.editor.on("transaction", d);
11544
- const u = E(r, "onFocus", s);
11557
+ const u = C(r, "onFocus", s);
11545
11558
  u && this.editor.on("focus", u);
11546
- const h = E(r, "onBlur", s);
11559
+ const h = C(r, "onBlur", s);
11547
11560
  h && this.editor.on("blur", h);
11548
- const f = E(r, "onDestroy", s);
11561
+ const f = C(r, "onDestroy", s);
11549
11562
  f && this.editor.on("destroy", f);
11550
11563
  });
11551
11564
  }
@@ -11559,13 +11572,13 @@ class It {
11559
11572
  name: t.name,
11560
11573
  options: t.options,
11561
11574
  storage: t.storage
11562
- }, i = E(t, "addExtensions", r);
11575
+ }, i = C(t, "addExtensions", r);
11563
11576
  return i ? [t, ...this.flatten(i())] : t;
11564
11577
  }).flat(10);
11565
11578
  }
11566
11579
  static sort(e) {
11567
11580
  return e.sort((r, i) => {
11568
- const s = E(r, "priority") || 100, o = E(i, "priority") || 100;
11581
+ const s = C(r, "priority") || 100, o = C(i, "priority") || 100;
11569
11582
  return s > o ? -1 : s < o ? 1 : 0;
11570
11583
  });
11571
11584
  }
@@ -11577,7 +11590,7 @@ class It {
11577
11590
  storage: t.storage,
11578
11591
  editor: this.editor,
11579
11592
  type: li(t.name, this.schema)
11580
- }, i = E(t, "addCommands", r);
11593
+ }, i = C(t, "addCommands", r);
11581
11594
  return i ? {
11582
11595
  ...e,
11583
11596
  ...i()
@@ -11592,7 +11605,7 @@ class It {
11592
11605
  storage: o.storage,
11593
11606
  editor: e,
11594
11607
  type: li(o.name, this.schema)
11595
- }, a = [], c = E(o, "addKeyboardShortcuts", l);
11608
+ }, a = [], c = C(o, "addKeyboardShortcuts", l);
11596
11609
  let d = {};
11597
11610
  if (o.type === "mark" && o.config.exitable && (d.ArrowRight = () => xe.handleExit({ editor: e, mark: o })), c) {
11598
11611
  const m = Object.fromEntries(Object.entries(c()).map(([g, y]) => [g, () => y({ editor: e })]));
@@ -11600,11 +11613,11 @@ class It {
11600
11613
  }
11601
11614
  const u = of(d);
11602
11615
  a.push(u);
11603
- const h = E(o, "addInputRules", l);
11604
- vo(o, e.options.enableInputRules) && h && r.push(...h());
11605
- const f = E(o, "addPasteRules", l);
11606
- vo(o, e.options.enablePasteRules) && f && i.push(...f());
11607
- const p = E(o, "addProseMirrorPlugins", l);
11616
+ const h = C(o, "addInputRules", l);
11617
+ Ao(o, e.options.enableInputRules) && h && r.push(...h());
11618
+ const f = C(o, "addPasteRules", l);
11619
+ Ao(o, e.options.enablePasteRules) && f && i.push(...f());
11620
+ const p = C(o, "addProseMirrorPlugins", l);
11608
11621
  if (p) {
11609
11622
  const m = p();
11610
11623
  a.push(...m);
@@ -11628,14 +11641,14 @@ class It {
11628
11641
  }
11629
11642
  get nodeViews() {
11630
11643
  const { editor: e } = this, { nodeExtensions: t } = Pr(this.extensions);
11631
- return Object.fromEntries(t.filter((r) => !!E(r, "addNodeView")).map((r) => {
11644
+ return Object.fromEntries(t.filter((r) => !!C(r, "addNodeView")).map((r) => {
11632
11645
  const i = this.attributes.filter((a) => a.type === r.name), s = {
11633
11646
  name: r.name,
11634
11647
  options: r.options,
11635
11648
  storage: r.storage,
11636
11649
  editor: e,
11637
11650
  type: W(r.name, this.schema)
11638
- }, o = E(r, "addNodeView", s);
11651
+ }, o = C(r, "addNodeView", s);
11639
11652
  if (!o)
11640
11653
  return [];
11641
11654
  const l = (a, c, d, u) => {
@@ -11673,9 +11686,9 @@ class ge {
11673
11686
  }, this.config = {
11674
11687
  ...this.config,
11675
11688
  ...e
11676
- }, this.name = this.config.name, e.defaultOptions && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`), this.options = this.config.defaultOptions, this.config.addOptions && (this.options = A(E(this, "addOptions", {
11689
+ }, this.name = this.config.name, e.defaultOptions && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`), this.options = this.config.defaultOptions, this.config.addOptions && (this.options = A(C(this, "addOptions", {
11677
11690
  name: this.name
11678
- }))), this.storage = A(E(this, "addStorage", {
11691
+ }))), this.storage = A(C(this, "addStorage", {
11679
11692
  name: this.name,
11680
11693
  options: this.options
11681
11694
  })) || {};
@@ -11685,16 +11698,16 @@ class ge {
11685
11698
  }
11686
11699
  configure(e = {}) {
11687
11700
  const t = this.extend();
11688
- return t.options = Br(this.options, e), t.storage = A(E(t, "addStorage", {
11701
+ return t.options = Br(this.options, e), t.storage = A(C(t, "addStorage", {
11689
11702
  name: t.name,
11690
11703
  options: t.options
11691
11704
  })), t;
11692
11705
  }
11693
11706
  extend(e = {}) {
11694
11707
  const t = new ge(e);
11695
- return t.parent = this, this.child = t, t.name = e.name ? e.name : t.parent.name, e.defaultOptions && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`), t.options = A(E(t, "addOptions", {
11708
+ return t.parent = this, this.child = t, t.name = e.name ? e.name : t.parent.name, e.defaultOptions && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`), t.options = A(C(t, "addOptions", {
11696
11709
  name: t.name
11697
- })), t.storage = A(E(t, "addStorage", {
11710
+ })), t.storage = A(C(t, "addStorage", {
11698
11711
  name: t.name,
11699
11712
  options: t.options
11700
11713
  })), t;
@@ -11724,7 +11737,7 @@ const Wf = ge.create({
11724
11737
  name: "clipboardTextSerializer",
11725
11738
  addProseMirrorPlugins() {
11726
11739
  return [
11727
- new X({
11740
+ new Q({
11728
11741
  key: new ie("clipboardTextSerializer"),
11729
11742
  props: {
11730
11743
  clipboardTextSerializer: () => {
@@ -11788,7 +11801,7 @@ const Wf = ge.create({
11788
11801
  }, tp = () => ({ state: n, dispatch: e }) => af(n, e), np = () => ({ commands: n }) => n.keyboardShortcut("Enter"), rp = () => ({ state: n, dispatch: e }) => kf(n, e);
11789
11802
  function Kn(n, e, t = { strict: !0 }) {
11790
11803
  const r = Object.keys(e);
11791
- return r.length ? r.every((i) => t.strict ? e[i] === n[i] : as(e[i]) ? e[i].test(n[i]) : e[i] === n[i]) : !0;
11804
+ return r.length ? r.every((i) => t.strict ? e[i] === n[i] : cs(e[i]) ? e[i].test(n[i]) : e[i] === n[i]) : !0;
11792
11805
  }
11793
11806
  function Pi(n, e, t = {}) {
11794
11807
  return n.find((r) => r.type === e && Kn(r.attrs, t));
@@ -11796,7 +11809,7 @@ function Pi(n, e, t = {}) {
11796
11809
  function ip(n, e, t = {}) {
11797
11810
  return !!Pi(n, e, t);
11798
11811
  }
11799
- function cs(n, e, t = {}) {
11812
+ function ds(n, e, t = {}) {
11800
11813
  if (!n || !e)
11801
11814
  return;
11802
11815
  let r = n.parent.childAfter(n.parentOffset);
@@ -11826,7 +11839,7 @@ function st(n, e) {
11826
11839
  const sp = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
11827
11840
  const s = st(n, r.schema), { doc: o, selection: l } = t, { $from: a, from: c, to: d } = l;
11828
11841
  if (i) {
11829
- const u = cs(a, s, e);
11842
+ const u = ds(a, s, e);
11830
11843
  if (u && u.from <= c && u.to >= d) {
11831
11844
  const h = D.create(o, u.from, u.to);
11832
11845
  t.setSelection(h);
@@ -11840,7 +11853,7 @@ const sp = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
11840
11853
  return !0;
11841
11854
  return !1;
11842
11855
  };
11843
- function ds(n) {
11856
+ function us(n) {
11844
11857
  return n instanceof D;
11845
11858
  }
11846
11859
  function _e(n = 0, e = 0, t = 0) {
@@ -11879,12 +11892,12 @@ const lp = (n = null, e = {}) => ({ editor: t, view: r, tr: i, dispatch: s }) =>
11879
11892
  };
11880
11893
  if (r.hasFocus() && n === null || n === !1)
11881
11894
  return !0;
11882
- if (s && n === null && !ds(t.state.selection))
11895
+ if (s && n === null && !us(t.state.selection))
11883
11896
  return o(), !0;
11884
11897
  const l = Aa(i.doc, n) || t.state.selection, a = t.state.selection.eq(l);
11885
11898
  return s && (a || i.setSelection(l), a && i.storedMarks && i.setStoredMarks(i.storedMarks), o()), !0;
11886
11899
  }, ap = (n, e) => (t) => n.every((r, i) => e(r, { ...t, index: i })), cp = (n, e) => ({ tr: t, commands: r }) => r.insertContentAt({ from: t.selection.from, to: t.selection.to }, n, e);
11887
- function Ao(n) {
11900
+ function No(n) {
11888
11901
  const e = `<body>${n}</body>`;
11889
11902
  return new window.DOMParser().parseFromString(e, "text/html").body;
11890
11903
  }
@@ -11900,8 +11913,8 @@ function Wn(n, e, t) {
11900
11913
  return console.warn("[tiptap warn]: Invalid content.", "Passed value:", n, "Error:", r), Wn("", e, t);
11901
11914
  }
11902
11915
  if (typeof n == "string") {
11903
- const r = Ui.fromSchema(e);
11904
- return t.slice ? r.parseSlice(Ao(n), t.parseOptions).content : r.parse(Ao(n), t.parseOptions);
11916
+ const r = Ji.fromSchema(e);
11917
+ return t.slice ? r.parseSlice(No(n), t.parseOptions).content : r.parse(No(n), t.parseOptions);
11905
11918
  }
11906
11919
  return Wn("", e, t);
11907
11920
  }
@@ -11944,7 +11957,7 @@ const up = (n) => n.toString().startsWith("<"), hp = (n, e, t) => ({ tr: r, disp
11944
11957
  }
11945
11958
  return !0;
11946
11959
  }, fp = () => ({ state: n, dispatch: e }) => mf(n, e), pp = () => ({ state: n, dispatch: e }) => gf(n, e), mp = () => ({ state: n, dispatch: e }) => df(n, e), gp = () => ({ state: n, dispatch: e }) => ff(n, e);
11947
- function us() {
11960
+ function hs() {
11948
11961
  return typeof navigator < "u" ? /Mac/.test(navigator.platform) : !1;
11949
11962
  }
11950
11963
  function yp(n) {
@@ -11963,7 +11976,7 @@ function yp(n) {
11963
11976
  else if (/^s(hift)?$/i.test(a))
11964
11977
  s = !0;
11965
11978
  else if (/^mod$/i.test(a))
11966
- _r() || us() ? o = !0 : i = !0;
11979
+ _r() || hs() ? o = !0 : i = !0;
11967
11980
  else
11968
11981
  throw new Error(`Unrecognized modifier name: ${a}`);
11969
11982
  }
@@ -12007,28 +12020,28 @@ const kp = (n, e = {}) => ({ state: t, dispatch: r }) => {
12007
12020
  }, Sp = () => ({ state: n, dispatch: e }) => xf(n, e), xp = (n) => ({ state: e, dispatch: t }) => {
12008
12021
  const r = W(n, e.schema);
12009
12022
  return Af(r)(e, t);
12010
- }, Ep = () => ({ state: n, dispatch: e }) => bf(n, e);
12023
+ }, Cp = () => ({ state: n, dispatch: e }) => bf(n, e);
12011
12024
  function Fr(n, e) {
12012
12025
  return e.nodes[n] ? "node" : e.marks[n] ? "mark" : null;
12013
12026
  }
12014
- function No(n, e) {
12027
+ function Do(n, e) {
12015
12028
  const t = typeof e == "string" ? [e] : e;
12016
12029
  return Object.keys(n).reduce((r, i) => (t.includes(i) || (r[i] = n[i]), r), {});
12017
12030
  }
12018
- const Cp = (n, e) => ({ tr: t, state: r, dispatch: i }) => {
12031
+ const Ep = (n, e) => ({ tr: t, state: r, dispatch: i }) => {
12019
12032
  let s = null, o = null;
12020
12033
  const l = Fr(typeof n == "string" ? n : n.name, r.schema);
12021
12034
  return l ? (l === "node" && (s = W(n, r.schema)), l === "mark" && (o = st(n, r.schema)), i && t.selection.ranges.forEach((a) => {
12022
12035
  r.doc.nodesBetween(a.$from.pos, a.$to.pos, (c, d) => {
12023
- s && s === c.type && t.setNodeMarkup(d, void 0, No(c.attrs, e)), o && c.marks.length && c.marks.forEach((u) => {
12024
- o === u.type && t.addMark(d, d + c.nodeSize, o.create(No(u.attrs, e)));
12036
+ s && s === c.type && t.setNodeMarkup(d, void 0, Do(c.attrs, e)), o && c.marks.length && c.marks.forEach((u) => {
12037
+ o === u.type && t.addMark(d, d + c.nodeSize, o.create(Do(u.attrs, e)));
12025
12038
  });
12026
12039
  });
12027
12040
  }), !0) : !1;
12028
12041
  }, Tp = () => ({ tr: n, dispatch: e }) => (e && n.scrollIntoView(), !0), Mp = () => ({ tr: n, commands: e }) => e.setTextSelection({
12029
12042
  from: 0,
12030
12043
  to: n.doc.content.size
12031
- }), wp = () => ({ state: n, dispatch: e }) => uf(n, e), Op = () => ({ state: n, dispatch: e }) => pf(n, e), vp = () => ({ state: n, dispatch: e }) => Ef(n, e), Ap = () => ({ state: n, dispatch: e }) => Mf(n, e), Np = () => ({ state: n, dispatch: e }) => Tf(n, e);
12044
+ }), wp = () => ({ state: n, dispatch: e }) => uf(n, e), Op = () => ({ state: n, dispatch: e }) => pf(n, e), vp = () => ({ state: n, dispatch: e }) => Cf(n, e), Ap = () => ({ state: n, dispatch: e }) => Mf(n, e), Np = () => ({ state: n, dispatch: e }) => Tf(n, e);
12032
12045
  function Na(n, e, t = {}) {
12033
12046
  return Wn(n, e, { slice: !1, parseOptions: t });
12034
12047
  }
@@ -12073,7 +12086,7 @@ function Rp(n, e) {
12073
12086
  };
12074
12087
  }
12075
12088
  }
12076
- function hs(n) {
12089
+ function fs(n) {
12077
12090
  return (e) => Rp(e.$from, n);
12078
12091
  }
12079
12092
  function Pp(n, e) {
@@ -12150,7 +12163,7 @@ function Pa(n) {
12150
12163
  function Hr(n, e, t) {
12151
12164
  const r = [];
12152
12165
  return n === e ? t.resolve(n).marks().forEach((i) => {
12153
- const s = t.resolve(n - 1), o = cs(s, i.type);
12166
+ const s = t.resolve(n - 1), o = ds(s, i.type);
12154
12167
  o && r.push({
12155
12168
  mark: i,
12156
12169
  ...o
@@ -12198,7 +12211,7 @@ function zp(n, e, t = {}) {
12198
12211
  const r = Fr(e, n.schema);
12199
12212
  return r === "node" ? pn(n, e, t) : r === "mark" ? Li(n, e, t) : !1;
12200
12213
  }
12201
- function Do(n, e) {
12214
+ function Io(n, e) {
12202
12215
  const { nodeExtensions: t } = Pr(e), r = t.find((o) => o.name === n);
12203
12216
  if (!r)
12204
12217
  return !1;
@@ -12206,7 +12219,7 @@ function Do(n, e) {
12206
12219
  name: r.name,
12207
12220
  options: r.options,
12208
12221
  storage: r.storage
12209
- }, s = A(E(r, "group", i));
12222
+ }, s = A(C(r, "group", i));
12210
12223
  return typeof s != "string" ? !1 : s.split(" ").includes("list");
12211
12224
  }
12212
12225
  function Hp(n) {
@@ -12237,7 +12250,7 @@ function $p(n, e, t) {
12237
12250
  var r;
12238
12251
  const { selection: i } = e;
12239
12252
  let s = null;
12240
- if (ds(i) && (s = i.$cursor), s) {
12253
+ if (us(i) && (s = i.$cursor), s) {
12241
12254
  const l = (r = n.storedMarks) !== null && r !== void 0 ? r : s.marks();
12242
12255
  return !!t.isInSet(l) || !l.some((a) => a.type.excludes(t));
12243
12256
  }
@@ -12280,7 +12293,7 @@ const jp = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
12280
12293
  return $p(r, t, a);
12281
12294
  }, qp = (n, e) => ({ tr: t }) => (t.setMeta(n, e), !0), Kp = (n, e = {}) => ({ state: t, dispatch: r, chain: i }) => {
12282
12295
  const s = W(n, t.schema);
12283
- return s.isTextblock ? i().command(({ commands: o }) => Mo(s, e)(t) ? !0 : o.clearNodes()).command(({ state: o }) => Mo(s, e)(o, r)).run() : (console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'), !1);
12296
+ return s.isTextblock ? i().command(({ commands: o }) => wo(s, e)(t) ? !0 : o.clearNodes()).command(({ state: o }) => wo(s, e)(o, r)).run() : (console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'), !1);
12284
12297
  }, Wp = (n) => ({ tr: e, dispatch: t }) => {
12285
12298
  if (t) {
12286
12299
  const { doc: r } = e, i = _e(n, 0, r.content.size), s = w.create(r, i);
@@ -12297,7 +12310,7 @@ const jp = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
12297
12310
  const r = W(n, e.schema);
12298
12311
  return If(r)(e, t);
12299
12312
  };
12300
- function Io(n, e) {
12313
+ function Ro(n, e) {
12301
12314
  const t = n.storedMarks || n.selection.$to.parentOffset && n.selection.$from.marks();
12302
12315
  if (t) {
12303
12316
  const r = t.filter((i) => e == null ? void 0 : e.includes(i.type.name));
@@ -12307,7 +12320,7 @@ function Io(n, e) {
12307
12320
  const Gp = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, editor: i }) => {
12308
12321
  const { selection: s, doc: o } = e, { $from: l, $to: a } = s, c = i.extensionManager.attributes, d = Nn(c, l.node().type.name, l.node().attrs);
12309
12322
  if (s instanceof w && s.node.isBlock)
12310
- return !l.parentOffset || !Rt(o, l.pos) ? !1 : (r && (n && Io(t, i.extensionManager.splittableMarks), e.split(l.pos).scrollIntoView()), !0);
12323
+ return !l.parentOffset || !Rt(o, l.pos) ? !1 : (r && (n && Ro(t, i.extensionManager.splittableMarks), e.split(l.pos).scrollIntoView()), !0);
12311
12324
  if (!l.parent.isBlock)
12312
12325
  return !1;
12313
12326
  if (r) {
@@ -12329,7 +12342,7 @@ const Gp = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
12329
12342
  const m = e.mapping.map(l.before()), g = e.doc.resolve(m);
12330
12343
  l.node(-1).canReplaceWith(g.index(), g.index() + 1, h) && e.setNodeMarkup(e.mapping.map(l.before()), h);
12331
12344
  }
12332
- n && Io(t, i.extensionManager.splittableMarks), e.scrollIntoView();
12345
+ n && Ro(t, i.extensionManager.splittableMarks), e.scrollIntoView();
12333
12346
  }
12334
12347
  return !0;
12335
12348
  }, Yp = (n) => ({ tr: e, state: t, dispatch: r, editor: i }) => {
@@ -12353,12 +12366,12 @@ const Gp = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
12353
12366
  g = g.append(b.from(o.createAndFill(null, R) || void 0));
12354
12367
  const P = l.before(l.depth - (y - 1));
12355
12368
  e.replace(P, l.after(-x), new S(g, 4 - y, 0));
12356
- let C = -1;
12369
+ let E = -1;
12357
12370
  e.doc.nodesBetween(P, e.doc.content.size, (L, I) => {
12358
- if (C > -1)
12371
+ if (E > -1)
12359
12372
  return !1;
12360
- L.isTextblock && L.content.size === 0 && (C = I + 1);
12361
- }), C > -1 && e.setSelection(D.near(e.doc.resolve(C))), e.scrollIntoView();
12373
+ L.isTextblock && L.content.size === 0 && (E = I + 1);
12374
+ }), E > -1 && e.setSelection(D.near(e.doc.resolve(E))), e.scrollIntoView();
12362
12375
  }
12363
12376
  return !0;
12364
12377
  }
@@ -12379,7 +12392,7 @@ const Gp = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
12379
12392
  }
12380
12393
  return !0;
12381
12394
  }, di = (n, e) => {
12382
- const t = hs((o) => o.type === e)(n.selection);
12395
+ const t = fs((o) => o.type === e)(n.selection);
12383
12396
  if (!t)
12384
12397
  return !0;
12385
12398
  const r = n.doc.resolve(Math.max(0, t.pos - 1)).before(t.depth);
@@ -12388,7 +12401,7 @@ const Gp = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
12388
12401
  const i = n.doc.nodeAt(r);
12389
12402
  return t.node.type === (i == null ? void 0 : i.type) && rt(n.doc, t.pos) && n.join(t.pos), !0;
12390
12403
  }, ui = (n, e) => {
12391
- const t = hs((o) => o.type === e)(n.selection);
12404
+ const t = fs((o) => o.type === e)(n.selection);
12392
12405
  if (!t)
12393
12406
  return !0;
12394
12407
  const r = n.doc.resolve(t.start).after(t.depth);
@@ -12400,16 +12413,16 @@ const Gp = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
12400
12413
  const { extensions: u, splittableMarks: h } = i.extensionManager, f = W(n, o.schema), p = W(e, o.schema), { selection: m, storedMarks: g } = o, { $from: y, $to: x } = m, T = y.blockRange(x), R = g || m.$to.parentOffset && m.$from.marks();
12401
12414
  if (!T)
12402
12415
  return !1;
12403
- const P = hs((C) => Do(C.type.name, u))(m);
12416
+ const P = fs((E) => Io(E.type.name, u))(m);
12404
12417
  if (T.depth >= 1 && P && T.depth - P.depth <= 1) {
12405
12418
  if (P.node.type === f)
12406
12419
  return c.liftListItem(p);
12407
- if (Do(P.node.type.name, u) && f.validContent(P.node.content) && l)
12420
+ if (Io(P.node.type.name, u) && f.validContent(P.node.content) && l)
12408
12421
  return a().command(() => (s.setNodeMarkup(P.pos, f), !0)).command(() => di(s, f)).command(() => ui(s, f)).run();
12409
12422
  }
12410
12423
  return !t || !R || !l ? a().command(() => d().wrapInList(f, r) ? !0 : c.clearNodes()).wrapInList(f, r).command(() => di(s, f)).command(() => ui(s, f)).run() : a().command(() => {
12411
- const C = d().wrapInList(f, r), L = R.filter((I) => h.includes(I.type.name));
12412
- return s.ensureMarks(L), C ? !0 : c.clearNodes();
12424
+ const E = d().wrapInList(f, r), L = R.filter((I) => h.includes(I.type.name));
12425
+ return s.ensureMarks(L), E ? !0 : c.clearNodes();
12413
12426
  }).wrapInList(f, r).command(() => di(s, f)).command(() => ui(s, f)).run();
12414
12427
  }, Qp = (n, e = {}, t = {}) => ({ state: r, commands: i }) => {
12415
12428
  const { extendEmptyMarkRange: s = !1 } = t, o = st(n, r.schema);
@@ -12452,7 +12465,7 @@ const Gp = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
12452
12465
  return !0;
12453
12466
  if (d && o) {
12454
12467
  let { from: h, to: f } = l;
12455
- const p = (s = c.marks().find((g) => g.type === a)) === null || s === void 0 ? void 0 : s.attrs, m = cs(c, a, p);
12468
+ const p = (s = c.marks().find((g) => g.type === a)) === null || s === void 0 ? void 0 : s.attrs, m = ds(c, a, p);
12456
12469
  m && (h = m.from, f = m.to), t.removeMark(h, f, a);
12457
12470
  } else
12458
12471
  u.forEach((h) => {
@@ -12513,8 +12526,8 @@ var lm = /* @__PURE__ */ Object.freeze({
12513
12526
  lift: kp,
12514
12527
  liftEmptyBlock: Sp,
12515
12528
  liftListItem: xp,
12516
- newlineInCode: Ep,
12517
- resetAttributes: Cp,
12529
+ newlineInCode: Cp,
12530
+ resetAttributes: Ep,
12518
12531
  scrollIntoView: Tp,
12519
12532
  selectAll: Mp,
12520
12533
  selectNodeBackward: wp,
@@ -12553,7 +12566,7 @@ const am = ge.create({
12553
12566
  name: "editable",
12554
12567
  addProseMirrorPlugins() {
12555
12568
  return [
12556
- new X({
12569
+ new Q({
12557
12570
  key: new ie("editable"),
12558
12571
  props: {
12559
12572
  editable: () => this.editor.options.editable
@@ -12566,7 +12579,7 @@ const am = ge.create({
12566
12579
  addProseMirrorPlugins() {
12567
12580
  const { editor: n } = this;
12568
12581
  return [
12569
- new X({
12582
+ new Q({
12570
12583
  key: new ie("focusEvents"),
12571
12584
  props: {
12572
12585
  handleDOMEvents: {
@@ -12630,7 +12643,7 @@ const am = ge.create({
12630
12643
  "Ctrl-a": () => this.editor.commands.selectTextblockStart(),
12631
12644
  "Ctrl-e": () => this.editor.commands.selectTextblockEnd()
12632
12645
  };
12633
- return _r() || us() ? s : i;
12646
+ return _r() || hs() ? s : i;
12634
12647
  },
12635
12648
  addProseMirrorPlugins() {
12636
12649
  return [
@@ -12639,7 +12652,7 @@ const am = ge.create({
12639
12652
  // to a paragraph if necessary.
12640
12653
  // This is an alternative to ProseMirror's `AllSelection`, which doesn’t work well
12641
12654
  // with many other commands.
12642
- new X({
12655
+ new Q({
12643
12656
  key: new ie("clearDocument"),
12644
12657
  appendTransaction: (n, e, t) => {
12645
12658
  if (!(n.some((p) => p.docChanged) && !e.doc.eq(t.doc)))
@@ -12664,7 +12677,7 @@ const am = ge.create({
12664
12677
  name: "tabindex",
12665
12678
  addProseMirrorPlugins() {
12666
12679
  return [
12667
- new X({
12680
+ new Q({
12668
12681
  key: new ie("tabindex"),
12669
12682
  props: {
12670
12683
  attributes: this.editor.isEditable ? { tabindex: "0" } : {}
@@ -13052,7 +13065,7 @@ function mn(n) {
13052
13065
  }
13053
13066
  });
13054
13067
  }
13055
- function Ro(n) {
13068
+ function Po(n) {
13056
13069
  return new Lr({
13057
13070
  find: n.find,
13058
13071
  handler: ({ state: e, range: t, match: r }) => {
@@ -13069,7 +13082,7 @@ function Ro(n) {
13069
13082
  }
13070
13083
  });
13071
13084
  }
13072
- function Po(n) {
13085
+ function Lo(n) {
13073
13086
  return new Lr({
13074
13087
  find: n.find,
13075
13088
  handler: ({ state: e, range: t, match: r }) => {
@@ -13084,7 +13097,7 @@ function gn(n) {
13084
13097
  return new Lr({
13085
13098
  find: n.find,
13086
13099
  handler: ({ state: e, range: t, match: r, chain: i }) => {
13087
- const s = A(n.getAttributes, void 0, r) || {}, o = e.tr.delete(t.from, t.to), a = o.doc.resolve(t.from).blockRange(), c = a && Gi(a, n.type, s);
13100
+ const s = A(n.getAttributes, void 0, r) || {}, o = e.tr.delete(t.from, t.to), a = o.doc.resolve(t.from).blockRange(), c = a && Yi(a, n.type, s);
13088
13101
  if (!c)
13089
13102
  return null;
13090
13103
  if (o.wrap(a, c), n.keepMarks && n.editor) {
@@ -13111,9 +13124,9 @@ class xe {
13111
13124
  }, this.config = {
13112
13125
  ...this.config,
13113
13126
  ...e
13114
- }, this.name = this.config.name, e.defaultOptions && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`), this.options = this.config.defaultOptions, this.config.addOptions && (this.options = A(E(this, "addOptions", {
13127
+ }, this.name = this.config.name, e.defaultOptions && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`), this.options = this.config.defaultOptions, this.config.addOptions && (this.options = A(C(this, "addOptions", {
13115
13128
  name: this.name
13116
- }))), this.storage = A(E(this, "addStorage", {
13129
+ }))), this.storage = A(C(this, "addStorage", {
13117
13130
  name: this.name,
13118
13131
  options: this.options
13119
13132
  })) || {};
@@ -13123,16 +13136,16 @@ class xe {
13123
13136
  }
13124
13137
  configure(e = {}) {
13125
13138
  const t = this.extend();
13126
- return t.options = Br(this.options, e), t.storage = A(E(t, "addStorage", {
13139
+ return t.options = Br(this.options, e), t.storage = A(C(t, "addStorage", {
13127
13140
  name: t.name,
13128
13141
  options: t.options
13129
13142
  })), t;
13130
13143
  }
13131
13144
  extend(e = {}) {
13132
13145
  const t = new xe(e);
13133
- return t.parent = this, this.child = t, t.name = e.name ? e.name : t.parent.name, e.defaultOptions && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`), t.options = A(E(t, "addOptions", {
13146
+ return t.parent = this, this.child = t, t.name = e.name ? e.name : t.parent.name, e.defaultOptions && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`), t.options = A(C(t, "addOptions", {
13134
13147
  name: t.name
13135
- })), t.storage = A(E(t, "addStorage", {
13148
+ })), t.storage = A(C(t, "addStorage", {
13136
13149
  name: t.name,
13137
13150
  options: t.options
13138
13151
  })), t;
@@ -13157,9 +13170,9 @@ class ne {
13157
13170
  }, this.config = {
13158
13171
  ...this.config,
13159
13172
  ...e
13160
- }, this.name = this.config.name, e.defaultOptions && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`), this.options = this.config.defaultOptions, this.config.addOptions && (this.options = A(E(this, "addOptions", {
13173
+ }, this.name = this.config.name, e.defaultOptions && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`), this.options = this.config.defaultOptions, this.config.addOptions && (this.options = A(C(this, "addOptions", {
13161
13174
  name: this.name
13162
- }))), this.storage = A(E(this, "addStorage", {
13175
+ }))), this.storage = A(C(this, "addStorage", {
13163
13176
  name: this.name,
13164
13177
  options: this.options
13165
13178
  })) || {};
@@ -13169,16 +13182,16 @@ class ne {
13169
13182
  }
13170
13183
  configure(e = {}) {
13171
13184
  const t = this.extend();
13172
- return t.options = Br(this.options, e), t.storage = A(E(t, "addStorage", {
13185
+ return t.options = Br(this.options, e), t.storage = A(C(t, "addStorage", {
13173
13186
  name: t.name,
13174
13187
  options: t.options
13175
13188
  })), t;
13176
13189
  }
13177
13190
  extend(e = {}) {
13178
13191
  const t = new ne(e);
13179
- return t.parent = this, this.child = t, t.name = e.name ? e.name : t.parent.name, e.defaultOptions && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`), t.options = A(E(t, "addOptions", {
13192
+ return t.parent = this, this.child = t, t.name = e.name ? e.name : t.parent.name, e.defaultOptions && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`), t.options = A(C(t, "addOptions", {
13180
13193
  name: t.name
13181
- })), t.storage = A(E(t, "addStorage", {
13194
+ })), t.storage = A(C(t, "addStorage", {
13182
13195
  name: t.name,
13183
13196
  options: t.options
13184
13197
  })), t;
@@ -13282,7 +13295,7 @@ function Ht(n) {
13282
13295
  function bm(n) {
13283
13296
  return n.replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&");
13284
13297
  }
13285
- function Lo(n) {
13298
+ function Bo(n) {
13286
13299
  return new wa({
13287
13300
  find: n.find,
13288
13301
  handler({ match: e, chain: t, range: r }) {
@@ -13299,7 +13312,7 @@ function Lo(n) {
13299
13312
  class km {
13300
13313
  constructor({ editor: e, element: t, view: r, tippyOptions: i = {}, updateDelay: s = 250, shouldShow: o }) {
13301
13314
  this.preventHide = !1, this.shouldShow = ({ view: l, state: a, from: c, to: d }) => {
13302
- const { doc: u, selection: h } = a, { empty: f } = h, p = !u.textBetween(c, d).length && ds(a.selection), m = this.element.contains(document.activeElement);
13315
+ const { doc: u, selection: h } = a, { empty: f } = h, p = !u.textBetween(c, d).length && us(a.selection), m = this.element.contains(document.activeElement);
13303
13316
  return !(!(l.hasFocus() || m) || f || p || !this.editor.isEditable);
13304
13317
  }, this.mousedownHandler = () => {
13305
13318
  this.preventHide = !0;
@@ -13327,7 +13340,7 @@ class km {
13327
13340
  if (m || !a && !c)
13328
13341
  return;
13329
13342
  this.createTooltip();
13330
- const { ranges: x } = g, T = Math.min(...x.map((C) => C.$from.pos)), R = Math.max(...x.map((C) => C.$to.pos));
13343
+ const { ranges: x } = g, T = Math.min(...x.map((E) => E.$from.pos)), R = Math.max(...x.map((E) => E.$to.pos));
13331
13344
  if (!((u = this.shouldShow) === null || u === void 0 ? void 0 : u.call(this, {
13332
13345
  editor: this.editor,
13333
13346
  view: l,
@@ -13342,10 +13355,10 @@ class km {
13342
13355
  (h = this.tippy) === null || h === void 0 || h.setProps({
13343
13356
  getReferenceClientRect: ((f = this.tippyOptions) === null || f === void 0 ? void 0 : f.getReferenceClientRect) || (() => {
13344
13357
  if (Vp(p.selection)) {
13345
- let C = l.nodeDOM(T);
13346
- const L = C.dataset.nodeViewWrapper ? C : C.querySelector("[data-node-view-wrapper]");
13347
- if (L && (C = L.firstChild), C)
13348
- return C.getBoundingClientRect();
13358
+ let E = l.nodeDOM(T);
13359
+ const L = E.dataset.nodeViewWrapper ? E : E.querySelector("[data-node-view-wrapper]");
13360
+ if (L && (E = L.firstChild), E)
13361
+ return E.getBoundingClientRect();
13349
13362
  }
13350
13363
  return La(l, T, R);
13351
13364
  })
@@ -13354,7 +13367,7 @@ class km {
13354
13367
  }
13355
13368
  createTooltip() {
13356
13369
  const { element: e } = this.editor.options, t = !!e.parentElement;
13357
- this.tippy || !t || (this.tippy = Er(e, {
13370
+ this.tippy || !t || (this.tippy = Cr(e, {
13358
13371
  duration: 0,
13359
13372
  getReferenceClientRect: null,
13360
13373
  content: this.element,
@@ -13387,7 +13400,7 @@ class km {
13387
13400
  !((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);
13388
13401
  }
13389
13402
  }
13390
- const Ba = (n) => new X({
13403
+ const Ba = (n) => new Q({
13391
13404
  key: typeof n.pluginKey == "string" ? new ie(n.pluginKey) : n.pluginKey,
13392
13405
  view: (e) => new km({ view: e, ...n })
13393
13406
  });
@@ -13437,7 +13450,7 @@ class Sm {
13437
13450
  }
13438
13451
  createTooltip() {
13439
13452
  const { element: e } = this.editor.options, t = !!e.parentElement;
13440
- this.tippy || !t || (this.tippy = Er(e, {
13453
+ this.tippy || !t || (this.tippy = Cr(e, {
13441
13454
  duration: 0,
13442
13455
  getReferenceClientRect: null,
13443
13456
  content: this.element,
@@ -13479,7 +13492,7 @@ class Sm {
13479
13492
  !((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);
13480
13493
  }
13481
13494
  }
13482
- const _a = (n) => new X({
13495
+ const _a = (n) => new Q({
13483
13496
  key: typeof n.pluginKey == "string" ? new ie(n.pluginKey) : n.pluginKey,
13484
13497
  view: (e) => new Sm({ view: e, ...n })
13485
13498
  });
@@ -13541,7 +13554,7 @@ $t({
13541
13554
  shouldShow: o,
13542
13555
  tippyOptions: l
13543
13556
  }));
13544
- }), qi(() => {
13557
+ }), Ki(() => {
13545
13558
  const { pluginKey: r, editor: i } = n;
13546
13559
  i.unregisterPlugin(r);
13547
13560
  }), () => {
@@ -13550,7 +13563,7 @@ $t({
13550
13563
  };
13551
13564
  }
13552
13565
  });
13553
- function Bo(n) {
13566
+ function _o(n) {
13554
13567
  return gc((e, t) => ({
13555
13568
  get() {
13556
13569
  return e(), n;
@@ -13566,7 +13579,7 @@ function Bo(n) {
13566
13579
  }
13567
13580
  class xm extends gm {
13568
13581
  constructor(e = {}) {
13569
- return super(e), this.vueRenderers = ll(/* @__PURE__ */ new Map()), this.contentComponent = null, this.reactiveState = Bo(this.view.state), this.reactiveExtensionStorage = Bo(this.extensionStorage), this.on("transaction", () => {
13582
+ return super(e), this.vueRenderers = ll(/* @__PURE__ */ new Map()), this.contentComponent = null, this.reactiveState = _o(this.view.state), this.reactiveExtensionStorage = _o(this.extensionStorage), this.on("transaction", () => {
13570
13583
  this.reactiveState.value = this.view.state, this.reactiveExtensionStorage.value = this.extensionStorage;
13571
13584
  }), wr(this);
13572
13585
  }
@@ -13589,7 +13602,7 @@ class xm extends gm {
13589
13602
  super.unregisterPlugin(e), this.reactiveState.value = this.view.state;
13590
13603
  }
13591
13604
  }
13592
- const Em = $t({
13605
+ const Cm = $t({
13593
13606
  name: "EditorContent",
13594
13607
  props: {
13595
13608
  editor: {
@@ -13609,7 +13622,7 @@ const Em = $t({
13609
13622
  element: i
13610
13623
  }), r.createNodeViews();
13611
13624
  });
13612
- }), qi(() => {
13625
+ }), Ki(() => {
13613
13626
  const r = n.editor;
13614
13627
  if (!r || (r.isDestroyed || r.view.setProps({
13615
13628
  nodeViews: {}
@@ -13672,7 +13685,7 @@ $t({
13672
13685
  tippyOptions: s,
13673
13686
  shouldShow: o
13674
13687
  }));
13675
- }), qi(() => {
13688
+ }), Ki(() => {
13676
13689
  const { pluginKey: r, editor: i } = n;
13677
13690
  i.unregisterPlugin(r);
13678
13691
  }), () => {
@@ -13721,7 +13734,7 @@ const Fa = $t({
13721
13734
  }, (e = (n = this.$slots).default) === null || e === void 0 ? void 0 : e.call(n));
13722
13735
  }
13723
13736
  });
13724
- class fs {
13737
+ class ps {
13725
13738
  constructor(e, { props: t = {}, editor: r }) {
13726
13739
  if (this.id = Math.floor(Math.random() * 4294967295).toString(), this.editor = r, this.component = wr(e), this.teleportElement = document.createElement("div"), this.element = this.teleportElement, this.props = ll(t), this.editor.vueRenderers.set(this.id, this), this.editor.contentComponent) {
13727
13740
  if (this.editor.contentComponent.update(), this.teleportElement.children.length !== 1)
@@ -13776,7 +13789,7 @@ const za = {
13776
13789
  required: !0
13777
13790
  }
13778
13791
  };
13779
- class Cm extends ym {
13792
+ class Em extends ym {
13780
13793
  mount() {
13781
13794
  const e = {
13782
13795
  editor: this.editor,
@@ -13795,7 +13808,7 @@ class Cm extends ym {
13795
13808
  template: this.component.template,
13796
13809
  setup: (i) => {
13797
13810
  var s, o;
13798
- return Cs("onDragStart", t), Cs("decorationClasses", this.decorationClasses), (o = (s = this.component).setup) === null || o === void 0 ? void 0 : o.call(s, i, {
13811
+ return Ts("onDragStart", t), Ts("decorationClasses", this.decorationClasses), (o = (s = this.component).setup) === null || o === void 0 ? void 0 : o.call(s, i, {
13799
13812
  expose: () => {
13800
13813
  }
13801
13814
  });
@@ -13816,7 +13829,7 @@ class Cm extends ym {
13816
13829
  // eslint-disable-next-line
13817
13830
  __file: this.component.__file
13818
13831
  });
13819
- this.renderer = new fs(r, {
13832
+ this.renderer = new ps(r, {
13820
13833
  editor: this.editor,
13821
13834
  props: e
13822
13835
  });
@@ -13863,7 +13876,7 @@ class Cm extends ym {
13863
13876
  }
13864
13877
  }
13865
13878
  function Ha(n, e) {
13866
- return (t) => t.editor.contentComponent ? new Cm(n, t, e) : {};
13879
+ return (t) => t.editor.contentComponent ? new Em(n, t, e) : {};
13867
13880
  }
13868
13881
  const Tm = /^\s*>\s$/, Mm = ne.create({
13869
13882
  name: "blockquote",
@@ -13992,14 +14005,14 @@ const Tm = /^\s*>\s$/, Mm = ne.create({
13992
14005
  },
13993
14006
  addInputRules() {
13994
14007
  return [
13995
- Po({
14008
+ Lo({
13996
14009
  find: wm,
13997
14010
  type: this.type,
13998
14011
  getAttributes: (n) => ({
13999
14012
  language: n[1]
14000
14013
  })
14001
14014
  }),
14002
- Po({
14015
+ Lo({
14003
14016
  find: Om,
14004
14017
  type: this.type,
14005
14018
  getAttributes: (n) => ({
@@ -14012,7 +14025,7 @@ const Tm = /^\s*>\s$/, Mm = ne.create({
14012
14025
  return [
14013
14026
  // this plugin creates a code block for pasted content from VS Code
14014
14027
  // we can also detect the copied code language
14015
- new X({
14028
+ new Q({
14016
14029
  key: new ie("codeBlockVSCodeHandler"),
14017
14030
  props: {
14018
14031
  handlePaste: (n, e) => {
@@ -14124,7 +14137,7 @@ const Tm = /^\s*>\s$/, Mm = ne.create({
14124
14137
  },
14125
14138
  addProseMirrorPlugins() {
14126
14139
  return [
14127
- new X({
14140
+ new Q({
14128
14141
  key: new ie("placeholder"),
14129
14142
  props: {
14130
14143
  decorations: ({ doc: n, selection: e }) => {
@@ -14245,7 +14258,7 @@ const Tm = /^\s*>\s$/, Mm = ne.create({
14245
14258
  "Shift-Tab": () => this.editor.commands.liftListItem(this.name)
14246
14259
  };
14247
14260
  }
14248
- }), _o = xe.create({
14261
+ }), Fo = xe.create({
14249
14262
  name: "textStyle",
14250
14263
  addOptions() {
14251
14264
  return {
@@ -14271,7 +14284,7 @@ const Tm = /^\s*>\s$/, Mm = ne.create({
14271
14284
  }
14272
14285
  };
14273
14286
  }
14274
- }), Fo = /^\s*([-+*])\s$/, zm = ne.create({
14287
+ }), zo = /^\s*([-+*])\s$/, zm = ne.create({
14275
14288
  name: "bulletList",
14276
14289
  addOptions() {
14277
14290
  return {
@@ -14295,7 +14308,7 @@ const Tm = /^\s*>\s$/, Mm = ne.create({
14295
14308
  },
14296
14309
  addCommands() {
14297
14310
  return {
14298
- toggleBulletList: () => ({ commands: n, chain: e }) => this.options.keepAttributes ? e().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(Fm.name, this.editor.getAttributes(_o.name)).run() : n.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks)
14311
+ toggleBulletList: () => ({ commands: n, chain: e }) => this.options.keepAttributes ? e().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(Fm.name, this.editor.getAttributes(Fo.name)).run() : n.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks)
14299
14312
  };
14300
14313
  },
14301
14314
  addKeyboardShortcuts() {
@@ -14305,15 +14318,15 @@ const Tm = /^\s*>\s$/, Mm = ne.create({
14305
14318
  },
14306
14319
  addInputRules() {
14307
14320
  let n = gn({
14308
- find: Fo,
14321
+ find: zo,
14309
14322
  type: this.type
14310
14323
  });
14311
14324
  return (this.options.keepMarks || this.options.keepAttributes) && (n = gn({
14312
- find: Fo,
14325
+ find: zo,
14313
14326
  type: this.type,
14314
14327
  keepMarks: this.options.keepMarks,
14315
14328
  keepAttributes: this.options.keepAttributes,
14316
- getAttributes: () => this.editor.getAttributes(_o.name),
14329
+ getAttributes: () => this.editor.getAttributes(Fo.name),
14317
14330
  editor: this.editor
14318
14331
  })), [
14319
14332
  n
@@ -14384,7 +14397,7 @@ const Tm = /^\s*>\s$/, Mm = ne.create({
14384
14397
  for (const t in e)
14385
14398
  n[t] = e[t];
14386
14399
  return n;
14387
- }, Bi = "numeric", _i = "ascii", Fi = "alpha", Dn = "asciinumeric", Mn = "alphanumeric", zi = "domain", Va = "emoji", Um = "scheme", Jm = "slashscheme", zo = "whitespace";
14400
+ }, Bi = "numeric", _i = "ascii", Fi = "alpha", Dn = "asciinumeric", Mn = "alphanumeric", zi = "domain", Va = "emoji", Um = "scheme", Jm = "slashscheme", Ho = "whitespace";
14388
14401
  function Gm(n, e) {
14389
14402
  return n in e || (e[n] = []), e[n];
14390
14403
  }
@@ -14526,7 +14539,7 @@ ue.prototype = {
14526
14539
  return i.j[n] = o, o;
14527
14540
  }
14528
14541
  };
14529
- const v = (n, e, t, r, i) => n.ta(e, t, r, i), ye = (n, e, t, r, i) => n.tr(e, t, r, i), Ho = (n, e, t, r, i) => n.ts(e, t, r, i), k = (n, e, t, r, i) => n.tt(e, t, r, i), Le = "WORD", Hi = "UWORD", yn = "LOCALHOST", Vi = "TLD", $i = "UTLD", In = "SCHEME", Nt = "SLASH_SCHEME", ps = "NUM", $a = "WS", ms = "NL", rn = "OPENBRACE", sn = "CLOSEBRACE", Un = "OPENBRACKET", Jn = "CLOSEBRACKET", Gn = "OPENPAREN", Yn = "CLOSEPAREN", Xn = "OPENANGLEBRACKET", Qn = "CLOSEANGLEBRACKET", Zn = "FULLWIDTHLEFTPAREN", er = "FULLWIDTHRIGHTPAREN", tr = "LEFTCORNERBRACKET", nr = "RIGHTCORNERBRACKET", rr = "LEFTWHITECORNERBRACKET", ir = "RIGHTWHITECORNERBRACKET", sr = "FULLWIDTHLESSTHAN", or = "FULLWIDTHGREATERTHAN", lr = "AMPERSAND", ar = "APOSTROPHE", cr = "ASTERISK", We = "AT", dr = "BACKSLASH", ur = "BACKTICK", hr = "CARET", Je = "COLON", gs = "COMMA", fr = "DOLLAR", we = "DOT", pr = "EQUALS", ys = "EXCLAMATION", Oe = "HYPHEN", mr = "PERCENT", gr = "PIPE", yr = "PLUS", br = "POUND", kr = "QUERY", bs = "QUOTE", ks = "SEMI", ve = "SLASH", on = "TILDE", Sr = "UNDERSCORE", ja = "EMOJI", xr = "SYM";
14542
+ const v = (n, e, t, r, i) => n.ta(e, t, r, i), ye = (n, e, t, r, i) => n.tr(e, t, r, i), Vo = (n, e, t, r, i) => n.ts(e, t, r, i), k = (n, e, t, r, i) => n.tt(e, t, r, i), Le = "WORD", Hi = "UWORD", yn = "LOCALHOST", Vi = "TLD", $i = "UTLD", In = "SCHEME", Nt = "SLASH_SCHEME", ms = "NUM", $a = "WS", gs = "NL", rn = "OPENBRACE", sn = "CLOSEBRACE", Un = "OPENBRACKET", Jn = "CLOSEBRACKET", Gn = "OPENPAREN", Yn = "CLOSEPAREN", Xn = "OPENANGLEBRACKET", Qn = "CLOSEANGLEBRACKET", Zn = "FULLWIDTHLEFTPAREN", er = "FULLWIDTHRIGHTPAREN", tr = "LEFTCORNERBRACKET", nr = "RIGHTCORNERBRACKET", rr = "LEFTWHITECORNERBRACKET", ir = "RIGHTWHITECORNERBRACKET", sr = "FULLWIDTHLESSTHAN", or = "FULLWIDTHGREATERTHAN", lr = "AMPERSAND", ar = "APOSTROPHE", cr = "ASTERISK", We = "AT", dr = "BACKSLASH", ur = "BACKTICK", hr = "CARET", Je = "COLON", ys = "COMMA", fr = "DOLLAR", we = "DOT", pr = "EQUALS", bs = "EXCLAMATION", Oe = "HYPHEN", mr = "PERCENT", gr = "PIPE", yr = "PLUS", br = "POUND", kr = "QUERY", ks = "QUOTE", Ss = "SEMI", ve = "SLASH", on = "TILDE", Sr = "UNDERSCORE", ja = "EMOJI", xr = "SYM";
14530
14543
  var qa = /* @__PURE__ */ Object.freeze({
14531
14544
  __proto__: null,
14532
14545
  WORD: Le,
@@ -14536,9 +14549,9 @@ var qa = /* @__PURE__ */ Object.freeze({
14536
14549
  UTLD: $i,
14537
14550
  SCHEME: In,
14538
14551
  SLASH_SCHEME: Nt,
14539
- NUM: ps,
14552
+ NUM: ms,
14540
14553
  WS: $a,
14541
- NL: ms,
14554
+ NL: gs,
14542
14555
  OPENBRACE: rn,
14543
14556
  CLOSEBRACE: sn,
14544
14557
  OPENBRACKET: Un,
@@ -14563,26 +14576,26 @@ var qa = /* @__PURE__ */ Object.freeze({
14563
14576
  BACKTICK: ur,
14564
14577
  CARET: hr,
14565
14578
  COLON: Je,
14566
- COMMA: gs,
14579
+ COMMA: ys,
14567
14580
  DOLLAR: fr,
14568
14581
  DOT: we,
14569
14582
  EQUALS: pr,
14570
- EXCLAMATION: ys,
14583
+ EXCLAMATION: bs,
14571
14584
  HYPHEN: Oe,
14572
14585
  PERCENT: mr,
14573
14586
  PIPE: gr,
14574
14587
  PLUS: yr,
14575
14588
  POUND: br,
14576
14589
  QUERY: kr,
14577
- QUOTE: bs,
14578
- SEMI: ks,
14590
+ QUOTE: ks,
14591
+ SEMI: Ss,
14579
14592
  SLASH: ve,
14580
14593
  TILDE: on,
14581
14594
  UNDERSCORE: Sr,
14582
14595
  EMOJI: ja,
14583
14596
  SYM: xr
14584
14597
  });
14585
- const wt = /[a-z]/, hi = new RegExp("\\p{L}", "u"), fi = new RegExp("\\p{Emoji}", "u"), pi = /\d/, Vo = /\s/, $o = `
14598
+ const wt = /[a-z]/, hi = new RegExp("\\p{L}", "u"), fi = new RegExp("\\p{Emoji}", "u"), pi = /\d/, $o = /\s/, jo = `
14586
14599
  `, Xm = "️", Qm = "‍";
14587
14600
  let wn = null, On = null;
14588
14601
  function Zm(n) {
@@ -14590,8 +14603,8 @@ function Zm(n) {
14590
14603
  const e = {};
14591
14604
  ue.groups = e;
14592
14605
  const t = new ue();
14593
- wn == null && (wn = jo(Km)), On == null && (On = jo(Wm)), k(t, "'", ar), k(t, "{", rn), k(t, "}", sn), k(t, "[", Un), k(t, "]", Jn), k(t, "(", Gn), k(t, ")", Yn), k(t, "<", Xn), k(t, ">", Qn), k(t, "(", Zn), k(t, ")", er), k(t, "「", tr), k(t, "」", nr), k(t, "『", rr), k(t, "』", ir), k(t, "<", sr), k(t, ">", or), k(t, "&", lr), k(t, "*", cr), k(t, "@", We), k(t, "`", ur), k(t, "^", hr), k(t, ":", Je), k(t, ",", gs), k(t, "$", fr), k(t, ".", we), k(t, "=", pr), k(t, "!", ys), k(t, "-", Oe), k(t, "%", mr), k(t, "|", gr), k(t, "+", yr), k(t, "#", br), k(t, "?", kr), k(t, '"', bs), k(t, "/", ve), k(t, ";", ks), k(t, "~", on), k(t, "_", Sr), k(t, "\\", dr);
14594
- const r = ye(t, pi, ps, {
14606
+ wn == null && (wn = qo(Km)), On == null && (On = qo(Wm)), k(t, "'", ar), k(t, "{", rn), k(t, "}", sn), k(t, "[", Un), k(t, "]", Jn), k(t, "(", Gn), k(t, ")", Yn), k(t, "<", Xn), k(t, ">", Qn), k(t, "(", Zn), k(t, ")", er), k(t, "「", tr), k(t, "」", nr), k(t, "『", rr), k(t, "』", ir), k(t, "<", sr), k(t, ">", or), k(t, "&", lr), k(t, "*", cr), k(t, "@", We), k(t, "`", ur), k(t, "^", hr), k(t, ":", Je), k(t, ",", ys), k(t, "$", fr), k(t, ".", we), k(t, "=", pr), k(t, "!", bs), k(t, "-", Oe), k(t, "%", mr), k(t, "|", gr), k(t, "+", yr), k(t, "#", br), k(t, "?", kr), k(t, '"', ks), k(t, "/", ve), k(t, ";", Ss), k(t, "~", on), k(t, "_", Sr), k(t, "\\", dr);
14607
+ const r = ye(t, pi, ms, {
14595
14608
  [Bi]: !0
14596
14609
  });
14597
14610
  ye(r, pi, r);
@@ -14603,12 +14616,12 @@ function Zm(n) {
14603
14616
  [Fi]: !0
14604
14617
  });
14605
14618
  ye(s, wt), ye(s, hi, s);
14606
- const o = ye(t, Vo, $a, {
14607
- [zo]: !0
14619
+ const o = ye(t, $o, $a, {
14620
+ [Ho]: !0
14608
14621
  });
14609
- k(t, $o, ms, {
14610
- [zo]: !0
14611
- }), k(o, $o), ye(o, Vo, o);
14622
+ k(t, jo, gs, {
14623
+ [Ho]: !0
14624
+ }), k(o, jo), ye(o, $o, o);
14612
14625
  const l = ye(t, fi, ja, {
14613
14626
  [Va]: !0
14614
14627
  });
@@ -14639,9 +14652,9 @@ function Zm(n) {
14639
14652
  } : {
14640
14653
  [Jm]: !0
14641
14654
  };
14642
- h.indexOf("-") >= 0 ? p[zi] = !0 : wt.test(h) ? pi.test(h) ? p[Dn] = !0 : p[_i] = !0 : p[Bi] = !0, Ho(t, h, h, p);
14655
+ h.indexOf("-") >= 0 ? p[zi] = !0 : wt.test(h) ? pi.test(h) ? p[Dn] = !0 : p[_i] = !0 : p[Bi] = !0, Vo(t, h, h, p);
14643
14656
  }
14644
- return Ho(t, "localhost", yn, {
14657
+ return Vo(t, "localhost", yn, {
14645
14658
  ascii: !0
14646
14659
  }), t.jd = new ue(xr), {
14647
14660
  start: t,
@@ -14688,7 +14701,7 @@ function je(n, e, t, r, i) {
14688
14701
  }
14689
14702
  return s = new ue(t), s.jr = i.slice(), n.j[e[o - 1]] = s, s;
14690
14703
  }
14691
- function jo(n) {
14704
+ function qo(n) {
14692
14705
  const e = [], t = [];
14693
14706
  let r = 0, i = "0123456789";
14694
14707
  for (; r < n.length; ) {
@@ -14708,8 +14721,8 @@ function jo(n) {
14708
14721
  const bn = {
14709
14722
  defaultProtocol: "http",
14710
14723
  events: null,
14711
- format: qo,
14712
- formatHref: qo,
14724
+ format: Ko,
14725
+ formatHref: Ko,
14713
14726
  nl2br: !1,
14714
14727
  tagName: "a",
14715
14728
  target: null,
@@ -14721,16 +14734,16 @@ const bn = {
14721
14734
  ignoreTags: [],
14722
14735
  render: null
14723
14736
  };
14724
- function Ss(n, e) {
14737
+ function xs(n, e) {
14725
14738
  e === void 0 && (e = null);
14726
14739
  let t = Vt({}, bn);
14727
- n && (t = Vt(t, n instanceof Ss ? n.o : n));
14740
+ n && (t = Vt(t, n instanceof xs ? n.o : n));
14728
14741
  const r = t.ignoreTags, i = [];
14729
14742
  for (let s = 0; s < r.length; s++)
14730
14743
  i.push(r[s].toUpperCase());
14731
14744
  this.o = t, e && (this.defaultRender = e), this.ignoreTags = i;
14732
14745
  }
14733
- Ss.prototype = {
14746
+ xs.prototype = {
14734
14747
  o: bn,
14735
14748
  /**
14736
14749
  * @type string[]
@@ -14792,7 +14805,7 @@ Ss.prototype = {
14792
14805
  return (this.get("render", null, n) || this.defaultRender)(e, n.t, n);
14793
14806
  }
14794
14807
  };
14795
- function qo(n) {
14808
+ function Ko(n) {
14796
14809
  return n;
14797
14810
  }
14798
14811
  function Ka(n, e) {
@@ -14912,12 +14925,12 @@ function Vr(n, e) {
14912
14925
  t.prototype[r] = e[r];
14913
14926
  return t.t = n, t;
14914
14927
  }
14915
- const Ko = Vr("email", {
14928
+ const Wo = Vr("email", {
14916
14929
  isLink: !0,
14917
14930
  toHref() {
14918
14931
  return "mailto:" + this.toString();
14919
14932
  }
14920
- }), Wo = Vr("text"), ng = Vr("nl"), vn = Vr("url", {
14933
+ }), Uo = Vr("text"), ng = Vr("nl"), vn = Vr("url", {
14921
14934
  isLink: !0,
14922
14935
  /**
14923
14936
  Lowercases relevant parts of the domain and adds the protocol if
@@ -14942,7 +14955,7 @@ function rg(n) {
14942
14955
  let {
14943
14956
  groups: e
14944
14957
  } = n;
14945
- const t = e.domain.concat([lr, cr, We, dr, ur, hr, fr, pr, Oe, ps, mr, gr, yr, br, ve, xr, on, Sr]), r = [ar, Je, gs, we, ys, kr, bs, ks, Xn, Qn, rn, sn, Jn, Un, Gn, Yn, Zn, er, tr, nr, rr, ir, sr, or], i = [lr, ar, cr, dr, ur, hr, fr, pr, Oe, rn, sn, mr, gr, yr, br, kr, ve, xr, on, Sr], s = be(), o = k(s, on);
14958
+ const t = e.domain.concat([lr, cr, We, dr, ur, hr, fr, pr, Oe, ms, mr, gr, yr, br, ve, xr, on, Sr]), r = [ar, Je, ys, we, bs, kr, ks, Ss, Xn, Qn, rn, sn, Jn, Un, Gn, Yn, Zn, er, tr, nr, rr, ir, sr, or], i = [lr, ar, cr, dr, ur, hr, fr, pr, Oe, rn, sn, mr, gr, yr, br, kr, ve, xr, on, Sr], s = be(), o = k(s, on);
14946
14959
  v(o, i, o), v(o, e.domain, o);
14947
14960
  const l = be(), a = be(), c = be();
14948
14961
  v(s, e.domain, l), v(s, e.scheme, a), v(s, e.slashscheme, c), v(l, i, o), v(l, e.domain, l);
@@ -14954,22 +14967,22 @@ function rg(n) {
14954
14967
  v(d, e.domain, h), v(h, e.domain, h);
14955
14968
  const f = k(h, we);
14956
14969
  v(f, e.domain, h);
14957
- const p = be(Ko);
14970
+ const p = be(Wo);
14958
14971
  v(f, e.tld, p), v(f, e.utld, p), k(d, yn, p);
14959
14972
  const m = k(h, Oe);
14960
14973
  v(m, e.domain, h), v(p, e.domain, h), k(p, we, f), k(p, Oe, m);
14961
14974
  const g = k(p, Je);
14962
- v(g, e.numeric, Ko);
14975
+ v(g, e.numeric, Wo);
14963
14976
  const y = k(l, Oe), x = k(l, we);
14964
14977
  v(y, e.domain, l), v(x, i, o), v(x, e.domain, l);
14965
14978
  const T = be(vn);
14966
14979
  v(x, e.tld, T), v(x, e.utld, T), v(T, e.domain, l), v(T, i, o), k(T, we, x), k(T, Oe, y), k(T, We, d);
14967
14980
  const R = k(T, Je), P = be(vn);
14968
14981
  v(R, e.numeric, P);
14969
- const C = be(vn), L = be();
14970
- v(C, t, C), v(C, r, L), v(L, t, C), v(L, r, L), k(T, ve, C), k(P, ve, C);
14971
- const I = k(a, Je), M = k(c, Je), Q = k(M, ve), Ee = k(Q, ve);
14972
- v(a, e.domain, l), k(a, we, x), k(a, Oe, y), v(c, e.domain, l), k(c, we, x), k(c, Oe, y), v(I, e.domain, C), k(I, ve, C), v(Ee, e.domain, C), v(Ee, t, C), k(Ee, ve, C);
14982
+ const E = be(vn), L = be();
14983
+ v(E, t, E), v(E, r, L), v(L, t, E), v(L, r, L), k(T, ve, E), k(P, ve, E);
14984
+ const I = k(a, Je), M = k(c, Je), Z = k(M, ve), Ce = k(Z, ve);
14985
+ v(a, e.domain, l), k(a, we, x), k(a, Oe, y), v(c, e.domain, l), k(c, we, x), k(c, Oe, y), v(I, e.domain, E), k(I, ve, E), v(Ce, e.domain, E), v(Ce, t, E), k(Ce, ve, E);
14973
14986
  const ot = [
14974
14987
  [rn, sn],
14975
14988
  // {}
@@ -14989,14 +15002,14 @@ function rg(n) {
14989
15002
  // <>
14990
15003
  ];
14991
15004
  for (let qt = 0; qt < ot.length; qt++) {
14992
- const [ze, He] = ot[qt], Ve = k(C, ze);
14993
- k(L, ze, Ve), k(Ve, He, C);
15005
+ const [ze, He] = ot[qt], Ve = k(E, ze);
15006
+ k(L, ze, Ve), k(Ve, He, E);
14994
15007
  const fe = be(vn);
14995
15008
  v(Ve, t, fe);
14996
15009
  const $e = be();
14997
- v(Ve, r), v(fe, t, fe), v(fe, r, $e), v($e, t, fe), v($e, r, $e), k(fe, He, C), k($e, He, C);
15010
+ v(Ve, r), v(fe, t, fe), v(fe, r, $e), v($e, t, fe), v($e, r, $e), k(fe, He, E), k($e, He, E);
14998
15011
  }
14999
- return k(s, yn, T), k(s, ms, ng), {
15012
+ return k(s, yn, T), k(s, gs, ng), {
15000
15013
  start: s,
15001
15014
  tokens: qa
15002
15015
  };
@@ -15012,12 +15025,12 @@ function ig(n, e, t) {
15012
15025
  if (h < 0)
15013
15026
  i -= d, i < r && (o.push(t[i]), i++);
15014
15027
  else {
15015
- o.length > 0 && (s.push(mi(Wo, e, o)), o = []), i -= h, d -= h;
15028
+ o.length > 0 && (s.push(mi(Uo, e, o)), o = []), i -= h, d -= h;
15016
15029
  const f = u.t, p = t.slice(i - d, i);
15017
15030
  s.push(mi(f, e, p));
15018
15031
  }
15019
15032
  }
15020
- return o.length > 0 && s.push(mi(Wo, e, o)), s;
15033
+ return o.length > 0 && s.push(mi(Uo, e, o)), s;
15021
15034
  }
15022
15035
  function mi(n, e, t) {
15023
15036
  const r = t[0].s, i = t[t.length - 1].e, s = e.slice(r, i);
@@ -15035,7 +15048,7 @@ const sg = typeof console < "u" && console && console.warn || (() => {
15035
15048
  function lg() {
15036
15049
  ue.groups = {}, _.scanner = null, _.parser = null, _.tokenQueue = [], _.pluginQueue = [], _.customSchemes = [], _.initialized = !1;
15037
15050
  }
15038
- function Uo(n, e) {
15051
+ function Jo(n, e) {
15039
15052
  if (e === void 0 && (e = !1), _.initialized && sg(`linkifyjs: already initialized - will not register custom scheme "${n}" ${og}`), !/^[0-9a-z]+(-[0-9a-z]+)*$/.test(n))
15040
15053
  throw new Error(`linkifyjs: incorrect scheme format.
15041
15054
  1. Must only contain digits, lowercase ASCII letters or "-"
@@ -15060,13 +15073,13 @@ function ag() {
15060
15073
  function cg(n) {
15061
15074
  return _.initialized || ag(), ig(_.parser.start, n, eg(_.scanner.start, n));
15062
15075
  }
15063
- function xs(n, e, t) {
15076
+ function Cs(n, e, t) {
15064
15077
  if (e === void 0 && (e = null), t === void 0 && (t = null), e && typeof e == "object") {
15065
15078
  if (t)
15066
15079
  throw Error(`linkifyjs: Invalid link type ${e}; must be a string`);
15067
15080
  t = e, e = null;
15068
15081
  }
15069
- const r = new Ss(t), i = cg(n), s = [];
15082
+ const r = new xs(t), i = cg(n), s = [];
15070
15083
  for (let o = 0; o < i.length; o++) {
15071
15084
  const l = i[o];
15072
15085
  l.isLink && (!e || l.t === e) && r.check(l) && s.push(l.toFormattedObject(r));
@@ -15074,7 +15087,7 @@ function xs(n, e, t) {
15074
15087
  return s;
15075
15088
  }
15076
15089
  function dg(n) {
15077
- return new X({
15090
+ return new Q({
15078
15091
  key: new ie("autolink"),
15079
15092
  appendTransaction: (e, t, r) => {
15080
15093
  const i = e.some((c) => c.docChanged) && !t.doc.eq(r.doc), s = e.some((c) => c.getMeta("preventAutolink"));
@@ -15091,7 +15104,7 @@ function dg(n) {
15091
15104
  const p = f[f.length - 1], m = u.pos + h.lastIndexOf(p);
15092
15105
  if (!p)
15093
15106
  return !1;
15094
- xs(p).filter((g) => g.isLink).map((g) => ({
15107
+ Cs(p).filter((g) => g.isLink).map((g) => ({
15095
15108
  ...g,
15096
15109
  from: m + g.start + 1,
15097
15110
  to: m + g.end + 1
@@ -15107,7 +15120,7 @@ function dg(n) {
15107
15120
  });
15108
15121
  }
15109
15122
  function ug(n) {
15110
- return new X({
15123
+ return new Q({
15111
15124
  key: new ie("handleClickLink"),
15112
15125
  props: {
15113
15126
  handleClick: (e, t, r) => {
@@ -15121,7 +15134,7 @@ function ug(n) {
15121
15134
  });
15122
15135
  }
15123
15136
  function hg(n) {
15124
- return new X({
15137
+ return new Q({
15125
15138
  key: new ie("handlePasteLink"),
15126
15139
  props: {
15127
15140
  handlePaste: (e, t, r) => {
@@ -15132,7 +15145,7 @@ function hg(n) {
15132
15145
  r.content.forEach((c) => {
15133
15146
  l += c.textContent;
15134
15147
  });
15135
- const a = xs(l).find((c) => c.isLink && c.value === l);
15148
+ const a = Cs(l).find((c) => c.isLink && c.value === l);
15136
15149
  return !l || !a ? !1 : (n.editor.commands.setMark(n.type, {
15137
15150
  href: a.href
15138
15151
  }), !0);
@@ -15147,10 +15160,10 @@ const fg = xe.create({
15147
15160
  onCreate() {
15148
15161
  this.options.protocols.forEach((n) => {
15149
15162
  if (typeof n == "string") {
15150
- Uo(n);
15163
+ Jo(n);
15151
15164
  return;
15152
15165
  }
15153
- Uo(n.scheme, n.optionalSlashes);
15166
+ Jo(n.scheme, n.optionalSlashes);
15154
15167
  });
15155
15168
  },
15156
15169
  onDestroy() {
@@ -15222,7 +15235,7 @@ const fg = xe.create({
15222
15235
  }));
15223
15236
  }
15224
15237
  if (n) {
15225
- const s = xs(n).filter((o) => o.isLink);
15238
+ const s = Cs(n).filter((o) => o.isLink);
15226
15239
  s.length && s.forEach((o) => i.push({
15227
15240
  text: o.value,
15228
15241
  data: {
@@ -15311,7 +15324,7 @@ const fg = xe.create({
15311
15324
  "Shift-Tab": () => this.editor.commands.liftListItem(this.name)
15312
15325
  };
15313
15326
  }
15314
- }), Jo = xe.create({
15327
+ }), Go = xe.create({
15315
15328
  name: "textStyle",
15316
15329
  addOptions() {
15317
15330
  return {
@@ -15337,7 +15350,7 @@ const fg = xe.create({
15337
15350
  }
15338
15351
  };
15339
15352
  }
15340
- }), Go = /^(\d+)\.\s$/, gg = ne.create({
15353
+ }), Yo = /^(\d+)\.\s$/, gg = ne.create({
15341
15354
  name: "orderedList",
15342
15355
  addOptions() {
15343
15356
  return {
@@ -15372,7 +15385,7 @@ const fg = xe.create({
15372
15385
  },
15373
15386
  addCommands() {
15374
15387
  return {
15375
- toggleOrderedList: () => ({ commands: n, chain: e }) => this.options.keepAttributes ? e().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(mg.name, this.editor.getAttributes(Jo.name)).run() : n.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks)
15388
+ toggleOrderedList: () => ({ commands: n, chain: e }) => this.options.keepAttributes ? e().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(mg.name, this.editor.getAttributes(Go.name)).run() : n.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks)
15376
15389
  };
15377
15390
  },
15378
15391
  addKeyboardShortcuts() {
@@ -15382,17 +15395,17 @@ const fg = xe.create({
15382
15395
  },
15383
15396
  addInputRules() {
15384
15397
  let n = gn({
15385
- find: Go,
15398
+ find: Yo,
15386
15399
  type: this.type,
15387
15400
  getAttributes: (e) => ({ start: +e[1] }),
15388
15401
  joinPredicate: (e, t) => t.childCount + t.attrs.start === +e[1]
15389
15402
  });
15390
15403
  return (this.options.keepMarks || this.options.keepAttributes) && (n = gn({
15391
- find: Go,
15404
+ find: Yo,
15392
15405
  type: this.type,
15393
15406
  keepMarks: this.options.keepMarks,
15394
15407
  keepAttributes: this.options.keepAttributes,
15395
- getAttributes: (e) => ({ start: +e[1], ...this.editor.getAttributes(Jo.name) }),
15408
+ getAttributes: (e) => ({ start: +e[1], ...this.editor.getAttributes(Go.name) }),
15396
15409
  joinPredicate: (e, t) => t.childCount + t.attrs.start === +e[1],
15397
15410
  editor: this.editor
15398
15411
  })), [
@@ -15436,7 +15449,7 @@ const fg = xe.create({
15436
15449
  },
15437
15450
  addKeyboardShortcuts() {
15438
15451
  const n = {};
15439
- return us() ? n["Mod-Shift-s"] = () => this.editor.commands.toggleStrike() : n["Ctrl-Shift-s"] = () => this.editor.commands.toggleStrike(), n;
15452
+ return hs() ? n["Mod-Shift-s"] = () => this.editor.commands.toggleStrike() : n["Ctrl-Shift-s"] = () => this.editor.commands.toggleStrike(), n;
15440
15453
  },
15441
15454
  addInputRules() {
15442
15455
  return [
@@ -15492,7 +15505,7 @@ const fg = xe.create({
15492
15505
  }), xg = ne.create({
15493
15506
  name: "text",
15494
15507
  group: "inline"
15495
- }), Eg = ge.create({
15508
+ }), Cg = ge.create({
15496
15509
  name: "textAlign",
15497
15510
  addOptions() {
15498
15511
  return {
@@ -15529,7 +15542,7 @@ const fg = xe.create({
15529
15542
  "Mod-Shift-j": () => this.editor.commands.setTextAlign("justify")
15530
15543
  };
15531
15544
  }
15532
- }), Cg = {
15545
+ }), Eg = {
15533
15546
  name: "EmojiComponent",
15534
15547
  components: {
15535
15548
  NodeViewWrapper: Fa,
@@ -15549,7 +15562,7 @@ function Tg(n, e, t, r, i, s) {
15549
15562
  _: 1
15550
15563
  });
15551
15564
  }
15552
- const Mg = /* @__PURE__ */ de(Cg, [["render", Tg]]);
15565
+ const Mg = /* @__PURE__ */ de(Eg, [["render", Tg]]);
15553
15566
  function wg(n) {
15554
15567
  var e;
15555
15568
  const { char: t, allowSpaces: r, allowedPrefixes: i, startOfLine: s, $position: o } = n, l = bm(t), a = new RegExp(`\\s${l}$`), c = s ? "^" : "", d = r ? new RegExp(`${c}${l}.*?(?=\\s${l}|$)`, "gm") : new RegExp(`${c}(?:^)?${l}[^\\s${l}]*`, "gm"), u = ((e = o.nodeBefore) === null || e === void 0 ? void 0 : e.isText) && o.nodeBefore.text;
@@ -15575,13 +15588,13 @@ function wg(n) {
15575
15588
  const Og = new ie("suggestion");
15576
15589
  function Wa({ pluginKey: n = Og, editor: e, char: t = "@", allowSpaces: r = !1, allowedPrefixes: i = [" "], startOfLine: s = !1, decorationTag: o = "span", decorationClass: l = "suggestion", command: a = () => null, items: c = () => [], render: d = () => ({}), allow: u = () => !0 }) {
15577
15590
  let h;
15578
- const f = d == null ? void 0 : d(), p = new X({
15591
+ const f = d == null ? void 0 : d(), p = new Q({
15579
15592
  key: n,
15580
15593
  view() {
15581
15594
  return {
15582
15595
  update: async (m, g) => {
15583
- var y, x, T, R, P, C, L;
15584
- const I = (y = this.key) === null || y === void 0 ? void 0 : y.getState(g), M = (x = this.key) === null || x === void 0 ? void 0 : x.getState(m.state), Q = I.active && M.active && I.range.from !== M.range.from, Ee = !I.active && M.active, ot = I.active && !M.active, qt = !Ee && !ot && I.query !== M.query, ze = Ee || Q, He = qt && !Q, Ve = ot || Q;
15596
+ var y, x, T, R, P, E, L;
15597
+ const I = (y = this.key) === null || y === void 0 ? void 0 : y.getState(g), M = (x = this.key) === null || x === void 0 ? void 0 : x.getState(m.state), Z = I.active && M.active && I.range.from !== M.range.from, Ce = !I.active && M.active, ot = I.active && !M.active, qt = !Ce && !ot && I.query !== M.query, ze = Ce || Z, He = qt && !Z, Ve = ot || Z;
15585
15598
  if (!ze && !He && !Ve)
15586
15599
  return;
15587
15600
  const fe = Ve && !ze ? I : M, $e = m.dom.querySelector(`[data-decoration-id="${fe.decorationId}"]`);
@@ -15609,7 +15622,7 @@ function Wa({ pluginKey: n = Og, editor: e, char: t = "@", allowSpaces: r = !1,
15609
15622
  }, ze && ((T = f == null ? void 0 : f.onBeforeStart) === null || T === void 0 || T.call(f, h)), He && ((R = f == null ? void 0 : f.onBeforeUpdate) === null || R === void 0 || R.call(f, h)), (He || ze) && (h.items = await c({
15610
15623
  editor: e,
15611
15624
  query: fe.query
15612
- })), Ve && ((P = f == null ? void 0 : f.onExit) === null || P === void 0 || P.call(f, h)), He && ((C = f == null ? void 0 : f.onUpdate) === null || C === void 0 || C.call(f, h)), ze && ((L = f == null ? void 0 : f.onStart) === null || L === void 0 || L.call(f, h));
15625
+ })), Ve && ((P = f == null ? void 0 : f.onExit) === null || P === void 0 || P.call(f, h)), He && ((E = f == null ? void 0 : f.onUpdate) === null || E === void 0 || E.call(f, h)), ze && ((L = f == null ? void 0 : f.onStart) === null || L === void 0 || L.call(f, h));
15613
15626
  },
15614
15627
  destroy: () => {
15615
15628
  var m;
@@ -15633,8 +15646,8 @@ function Wa({ pluginKey: n = Og, editor: e, char: t = "@", allowSpaces: r = !1,
15633
15646
  },
15634
15647
  // Apply changes to the plugin state from a view transaction.
15635
15648
  apply(m, g, y, x) {
15636
- const { isEditable: T } = e, { composing: R } = e.view, { selection: P } = m, { empty: C, from: L } = P, I = { ...g };
15637
- if (I.composing = R, T && (C || e.view.composing)) {
15649
+ const { isEditable: T } = e, { composing: R } = e.view, { selection: P } = m, { empty: E, from: L } = P, I = { ...g };
15650
+ if (I.composing = R, T && (E || e.view.composing)) {
15638
15651
  (L < g.range.from || L > g.range.to) && !R && !g.composing && (I.active = !1);
15639
15652
  const M = wg({
15640
15653
  char: t,
@@ -15642,8 +15655,8 @@ function Wa({ pluginKey: n = Og, editor: e, char: t = "@", allowSpaces: r = !1,
15642
15655
  allowedPrefixes: i,
15643
15656
  startOfLine: s,
15644
15657
  $position: P.$from
15645
- }), Q = `id_${Math.floor(Math.random() * 4294967295)}`;
15646
- M && u({ editor: e, state: x, range: M.range }) ? (I.active = !0, I.decorationId = g.decorationId ? g.decorationId : Q, I.range = M.range, I.query = M.query, I.text = M.text) : I.active = !1;
15658
+ }), Z = `id_${Math.floor(Math.random() * 4294967295)}`;
15659
+ M && u({ editor: e, state: x, range: M.range }) ? (I.active = !0, I.decorationId = g.decorationId ? g.decorationId : Z, I.range = M.range, I.query = M.query, I.text = M.text) : I.active = !1;
15647
15660
  } else
15648
15661
  I.active = !1;
15649
15662
  return I.active || (I.decorationId = null, I.range = { from: 0, to: 0 }, I.query = null, I.text = null), I;
@@ -15746,7 +15759,7 @@ function Dg(n, e, t, r, i, s) {
15746
15759
  yc(ht("ul", Ng, [
15747
15760
  (O(!0), j(bc, null, il(t.items, (l, a) => (O(), z(o, {
15748
15761
  key: l.id,
15749
- class: ee([
15762
+ class: X([
15750
15763
  "dt-suggestion-list--item",
15751
15764
  { "dt-list-item--highlighted": a === i.selectedIndex }
15752
15765
  ]),
@@ -15788,7 +15801,7 @@ function Rg(n, e, t, r, i, s) {
15788
15801
  size: "200",
15789
15802
  code: t.item.code
15790
15803
  }, null, 8, ["code"]),
15791
- Ki(" " + ut(t.item.code), 1)
15804
+ Wi(" " + ut(t.item.code), 1)
15792
15805
  ]),
15793
15806
  _: 1
15794
15807
  });
@@ -15815,14 +15828,14 @@ const Pg = /* @__PURE__ */ de(Ig, [["render", Rg]]), Lg = {
15815
15828
  let n, e;
15816
15829
  return {
15817
15830
  onStart: (t) => {
15818
- n = new fs(Ua, {
15831
+ n = new ps(Ua, {
15819
15832
  props: {
15820
15833
  itemComponent: wr(Pg),
15821
15834
  itemType: "emoji",
15822
15835
  ...t
15823
15836
  },
15824
15837
  editor: t.editor
15825
- }), t.clientRect && (e = Er("body", {
15838
+ }), t.clientRect && (e = Cr("body", {
15826
15839
  getReferenceClientRect: t.clientRect,
15827
15840
  appendTo: () => document.body,
15828
15841
  content: n.element,
@@ -15848,7 +15861,7 @@ const Pg = /* @__PURE__ */ de(Ig, [["render", Rg]]), Lg = {
15848
15861
  }
15849
15862
  };
15850
15863
  }
15851
- }, Bg = new ie("emoji"), _g = /:\w+:$/, Fg = /:\w+:/g, zg = /(\u00a9|\u00ae|[\u2000-\u3300]|\ud83c[\ud000-\udfff]|\ud83d[\ud000-\udfff]|\ud83e[\ud000-\udfff])$/, Hg = /(\u00a9|\u00ae|[\u2000-\u3300]|\ud83c[\ud000-\udfff]|\ud83d[\ud000-\udfff]|\ud83e[\ud000-\udfff])/g, Yo = (n) => {
15864
+ }, Bg = new ie("emoji"), _g = /:\w+:$/, Fg = /:\w+:/g, zg = /(\u00a9|\u00ae|[\u2000-\u3300]|\ud83c[\ud000-\udfff]|\ud83d[\ud000-\udfff]|\ud83e[\ud000-\udfff])$/, Hg = /(\u00a9|\u00ae|[\u2000-\u3300]|\ud83c[\ud000-\udfff]|\ud83d[\ud000-\udfff]|\ud83e[\ud000-\udfff])/g, Xo = (n) => {
15852
15865
  if (n && nl(n[0]))
15853
15866
  return {
15854
15867
  index: n.index,
@@ -15902,10 +15915,10 @@ const Pg = /* @__PURE__ */ de(Ig, [["render", Rg]]), Lg = {
15902
15915
  addInputRules() {
15903
15916
  return [
15904
15917
  // shortcode input
15905
- Ro({
15918
+ Po({
15906
15919
  find: (n) => {
15907
15920
  const e = n.match(_g);
15908
- return Yo(e);
15921
+ return Xo(e);
15909
15922
  },
15910
15923
  type: this.type,
15911
15924
  getAttributes(n) {
@@ -15914,10 +15927,10 @@ const Pg = /* @__PURE__ */ de(Ig, [["render", Rg]]), Lg = {
15914
15927
  };
15915
15928
  }
15916
15929
  }),
15917
- Ro({
15930
+ Po({
15918
15931
  find: (n) => {
15919
15932
  const e = n.match(zg);
15920
- return Yo(e);
15933
+ return Xo(e);
15921
15934
  },
15922
15935
  type: this.type,
15923
15936
  getAttributes(n) {
@@ -15932,7 +15945,7 @@ const Pg = /* @__PURE__ */ de(Ig, [["render", Rg]]), Lg = {
15932
15945
  },
15933
15946
  addPasteRules() {
15934
15947
  return [
15935
- Lo({
15948
+ Bo({
15936
15949
  find: Vg,
15937
15950
  type: this.type,
15938
15951
  getAttributes(n) {
@@ -15941,7 +15954,7 @@ const Pg = /* @__PURE__ */ de(Ig, [["render", Rg]]), Lg = {
15941
15954
  };
15942
15955
  }
15943
15956
  }),
15944
- Lo({
15957
+ Bo({
15945
15958
  find: Hg,
15946
15959
  type: this.type,
15947
15960
  getAttributes(n) {
@@ -16011,8 +16024,8 @@ function Ug(n, e, t, r) {
16011
16024
  for (const l of o)
16012
16025
  l.mark.type === r && t.removeMark(l.from, l.to, r);
16013
16026
  }
16014
- const Xo = rc(1, 15);
16015
- function Qo(n, e, t, r, i, s) {
16027
+ const Qo = rc(1, 15);
16028
+ function Zo(n, e, t, r, i, s) {
16016
16029
  if (!n)
16017
16030
  return;
16018
16031
  let o = t - e - 1;
@@ -16021,12 +16034,12 @@ function Qo(n, e, t, r, i, s) {
16021
16034
  n,
16022
16035
  o,
16023
16036
  "left",
16024
- Xo
16037
+ Qo
16025
16038
  ), c = ji(
16026
16039
  n,
16027
16040
  l,
16028
16041
  "right",
16029
- Xo
16042
+ Qo
16030
16043
  ), d = n.slice(a.from, c.to);
16031
16044
  jg(d, ic, qg).forEach((h) => {
16032
16045
  const f = Kg(h[0]), p = e + a.from + h.index + 1, m = p + f.length;
@@ -16035,14 +16048,14 @@ function Qo(n, e, t, r, i, s) {
16035
16048
  }
16036
16049
  function Jg(n) {
16037
16050
  let e = !1;
16038
- return new X({
16051
+ return new Q({
16039
16052
  key: new ie("autolink"),
16040
16053
  appendTransaction: (t, r, i) => {
16041
16054
  const s = t.some((d) => d.docChanged) && !r.doc.eq(i.doc);
16042
16055
  if (e && !s)
16043
16056
  return;
16044
16057
  const { tr: o } = i, { textContent: l } = i.doc;
16045
- e || Qo(l, 0, 0, l.length, o, n.type), e = !0;
16058
+ e || Zo(l, 0, 0, l.length, o, n.type), e = !0;
16046
16059
  const a = Da(
16047
16060
  r.doc,
16048
16061
  [...t]
@@ -16053,7 +16066,7 @@ function Jg(n) {
16053
16066
  u,
16054
16067
  (f) => f.isTextblock
16055
16068
  ).forEach(({ node: f, pos: p }) => {
16056
- Qo(
16069
+ Zo(
16057
16070
  f.textContent,
16058
16071
  p,
16059
16072
  d.from,
@@ -16211,7 +16224,7 @@ function ey(n, e, t, r, i, s) {
16211
16224
  href: null
16212
16225
  }, {
16213
16226
  default: q(() => [
16214
- Ki(ut(s.text), 1)
16227
+ Wi(ut(s.text), 1)
16215
16228
  ]),
16216
16229
  _: 1
16217
16230
  })
@@ -16297,7 +16310,7 @@ function ly(n, e, t, r, i, s) {
16297
16310
  "image-src": s.avatarSrc,
16298
16311
  size: "xs"
16299
16312
  }, null, 8, ["full-name", "image-src"]),
16300
- Ki(" " + ut(s.name), 1)
16313
+ Wi(" " + ut(s.name), 1)
16301
16314
  ]),
16302
16315
  _: 1
16303
16316
  });
@@ -16310,14 +16323,14 @@ const ay = /* @__PURE__ */ de(oy, [["render", ly]]), cy = {
16310
16323
  let n, e;
16311
16324
  return {
16312
16325
  onStart: (t) => {
16313
- n = new fs(Ua, {
16326
+ n = new ps(Ua, {
16314
16327
  props: {
16315
16328
  itemComponent: wr(ay),
16316
16329
  itemType: "mention",
16317
16330
  ...t
16318
16331
  },
16319
16332
  editor: t.editor
16320
- }), t.clientRect && (e = Er("body", {
16333
+ }), t.clientRect && (e = Cr("body", {
16321
16334
  getReferenceClientRect: t.clientRect,
16322
16335
  appendTo: () => document.body,
16323
16336
  content: n.element,
@@ -16344,7 +16357,7 @@ const ay = /* @__PURE__ */ de(oy, [["render", ly]]), cy = {
16344
16357
  }, dy = {
16345
16358
  name: "DtRichTextEditor",
16346
16359
  components: {
16347
- EditorContent: Em
16360
+ EditorContent: Cm
16348
16361
  },
16349
16362
  props: {
16350
16363
  /**
@@ -16515,7 +16528,7 @@ const ay = /* @__PURE__ */ de(oy, [["render", ly]]), cy = {
16515
16528
  const e = { ...this.mentionSuggestion, ...cy };
16516
16529
  n.push(ny.configure({ suggestion: e }));
16517
16530
  }
16518
- return n.push($g), n.push(Eg.configure({
16531
+ return n.push($g), n.push(Cg.configure({
16519
16532
  types: ["paragraph"],
16520
16533
  defaultAlignment: "left"
16521
16534
  })), n.push(vm.configure({
@@ -16642,18 +16655,18 @@ export {
16642
16655
  jc as c,
16643
16656
  $c as d,
16644
16657
  od as e,
16645
- Wi as f,
16646
- Os as g,
16658
+ Ui as f,
16659
+ vs as g,
16647
16660
  dl as h,
16648
16661
  cd as i,
16649
16662
  Fc as j,
16650
- ws as k,
16663
+ Os as k,
16651
16664
  wc as l,
16652
16665
  Oc as m,
16653
- Ts as n,
16666
+ Ms as n,
16654
16667
  vc as o,
16655
16668
  Ac as p,
16656
- Ms as q,
16669
+ ws as q,
16657
16670
  qr as r,
16658
16671
  ld as s,
16659
16672
  ad as t,