@vc-shell/framework 1.1.81 → 1.1.82

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 (106) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/core/plugins/signalR/index.ts +1 -1
  3. package/dist/assets/{b291dc35a17511f7.woff → 105efd028edc1dfe.woff} +0 -0
  4. package/dist/assets/19275e398ae57130.woff2 +0 -0
  5. package/dist/assets/3d892965ab4f1cbb.woff2 +0 -0
  6. package/dist/assets/{327511cd4a7ba7f9.woff → 489710fb710e73f0.woff} +0 -0
  7. package/dist/assets/{a617e11804bbacb7.woff → 54cda5482c6c9218.woff} +0 -0
  8. package/dist/assets/550f52072e8ccafe.woff2 +0 -0
  9. package/dist/assets/686d4077c1e26876.woff2 +0 -0
  10. package/dist/assets/{91eee1aa81f72683.woff → 91fe94e424323d61.woff} +0 -0
  11. package/dist/assets/{f276d55184e05a07.woff → a03cdcd8da5bb987.woff} +0 -0
  12. package/dist/assets/c9191b638a10f67b.woff2 +0 -0
  13. package/dist/assets/{fcb1c1ffb5640194.woff → dceaf3b39091e6a4.woff} +0 -0
  14. package/dist/assets/{a47034e65dbcc3d7.woff → e2ad5b3428289141.woff} +0 -0
  15. package/dist/assets/f239394367fcf005.woff2 +0 -0
  16. package/dist/assets/fc829e3f399b70e0.woff2 +0 -0
  17. package/dist/framework.js +27 -26
  18. package/dist/index.css +1 -1
  19. package/dist/tsconfig.tsbuildinfo +1 -1
  20. package/dist/{vendor-core-js-DFA7rceR.js → vendor-core-js-azBmvlGv.js} +10 -10
  21. package/dist/{vendor-cypress-signalr-mock-CdKwIhWw.js → vendor-cypress-signalr-mock-DjBxJHA6.js} +15 -15
  22. package/dist/vendor-dompurify-C-JbJ3KX.js +536 -0
  23. package/dist/vendor-floating-ui-core-Cl9nBI4j.js +349 -0
  24. package/dist/vendor-floating-ui-dom-3z44E4mf.js +395 -0
  25. package/dist/vendor-floating-ui-vue-ClrgkeO5.js +107 -0
  26. package/dist/{vendor-headlessui-vue-Dg0Llidi.js → vendor-headlessui-vue-D7tzx4PC.js} +2 -2
  27. package/dist/{vendor-intlify-core-base-txnziOTW.js → vendor-intlify-core-base-Da62SG4M.js} +6 -6
  28. package/dist/{vendor-intlify-message-compiler-XquMv3aB.js → vendor-intlify-message-compiler-CHvGSH2u.js} +236 -231
  29. package/dist/{vendor-intlify-shared-CE1Dfvjf.js → vendor-intlify-shared-jWBPd9WB.js} +1 -1
  30. package/dist/{vendor-lodash-es-CrYlgAi8.js → vendor-lodash-es-BqkGj3Jl.js} +14 -14
  31. package/dist/{vendor-markdown-it-RJo-N9ov.js → vendor-markdown-it-Czg9qJTh.js} +1 -1
  32. package/dist/{vendor-microsoft-applicationinsights-analytics-js-CauId95v.js → vendor-microsoft-applicationinsights-analytics-js-BNSkz9ia.js} +20 -20
  33. package/dist/{vendor-microsoft-applicationinsights-cfgsync-js-DGfB75It.js → vendor-microsoft-applicationinsights-cfgsync-js-Dp8OU6ZE.js} +5 -5
  34. package/dist/{vendor-microsoft-applicationinsights-channel-js-B4PYlGv8.js → vendor-microsoft-applicationinsights-channel-js-Bc73N-5y.js} +18 -18
  35. package/dist/{vendor-microsoft-applicationinsights-common-Bj6sQeoz.js → vendor-microsoft-applicationinsights-common-DcnOqpgL.js} +25 -25
  36. package/dist/{vendor-microsoft-applicationinsights-core-js-Cga21Mpw.js → vendor-microsoft-applicationinsights-core-js-CX4NA2hM.js} +21 -21
  37. package/dist/{vendor-microsoft-applicationinsights-dependencies-js-CH87Sln6.js → vendor-microsoft-applicationinsights-dependencies-js-C_DhEOae.js} +10 -10
  38. package/dist/{vendor-microsoft-applicationinsights-properties-js-CLE2OEt_.js → vendor-microsoft-applicationinsights-properties-js-COczDd7b.js} +24 -24
  39. package/dist/{vendor-microsoft-applicationinsights-web-8IaeIl22.js → vendor-microsoft-applicationinsights-web-DtOQojwf.js} +10 -10
  40. package/dist/{vendor-microsoft-signalr-qIrag5xx.js → vendor-microsoft-signalr-Bgpbb4fW.js} +1 -1
  41. package/dist/{vendor-moment-CwOqp704.js → vendor-moment-DMLRxgRE.js} +8 -8
  42. package/dist/{vendor-nevware21-ts-async-DadHEt7N.js → vendor-nevware21-ts-async-DFUnZ_sN.js} +2 -2
  43. package/dist/{vendor-prettier-DaiSFsWE.js → vendor-prettier-cZc5sCiS.js} +2 -2
  44. package/dist/{vendor-prosemirror-commands-DKHyfRYE.js → vendor-prosemirror-commands-DlSOsoOz.js} +3 -3
  45. package/dist/{vendor-prosemirror-dropcursor-Dro-INCI.js → vendor-prosemirror-dropcursor-CqLA3EZY.js} +2 -2
  46. package/dist/{vendor-prosemirror-gapcursor-BgyglWtH.js → vendor-prosemirror-gapcursor-3PaVPyUV.js} +4 -4
  47. package/dist/{vendor-prosemirror-history-B4ei16kP.js → vendor-prosemirror-history-DzP74u0n.js} +3 -3
  48. package/dist/{vendor-prosemirror-keymap-21y6bXc_.js → vendor-prosemirror-keymap-CN6Hkrq2.js} +1 -1
  49. package/dist/{vendor-prosemirror-markdown-CuzWQ2N6.js → vendor-prosemirror-markdown-BBPyARPh.js} +2 -2
  50. package/dist/{vendor-prosemirror-model-CVTn1Stc.js → vendor-prosemirror-model-CiCy9gkA.js} +2 -2
  51. package/dist/{vendor-prosemirror-schema-list-Dmi4oPas.js → vendor-prosemirror-schema-list-asS28-n3.js} +2 -2
  52. package/dist/{vendor-prosemirror-state-6jGEPgrP.js → vendor-prosemirror-state-DUZYoLys.js} +2 -2
  53. package/dist/{vendor-prosemirror-tables-U7ypaxJu.js → vendor-prosemirror-tables-CezTPhzU.js} +5 -5
  54. package/dist/{vendor-prosemirror-transform-Dk6c_eg4.js → vendor-prosemirror-transform-BOkRqJ32.js} +1 -1
  55. package/dist/vendor-prosemirror-view-CzsD5m3e.js +3750 -0
  56. package/dist/vendor-punycode-js-CgGegfA_.js +133 -0
  57. package/dist/{vendor-rope-sequence-sEGCUMi8.js → vendor-rope-sequence-BWC2FSrq.js} +4 -4
  58. package/dist/{vendor-semver-FuwqpOls.js → vendor-semver-B87_S22g.js} +2 -2
  59. package/dist/{vendor-tiptap-core-CtNT-ozM.js → vendor-tiptap-core-rgc3Sj5Y.js} +258 -250
  60. package/dist/{vendor-tiptap-extension-blockquote-25QerT8O.js → vendor-tiptap-extension-blockquote-DgzMeNpc.js} +1 -1
  61. package/dist/{vendor-tiptap-extension-bold-B-B75KIy.js → vendor-tiptap-extension-bold-DZbX5Qiw.js} +1 -1
  62. package/dist/{vendor-tiptap-extension-code-CEZA5x7I.js → vendor-tiptap-extension-code-BcakHaXe.js} +1 -1
  63. package/dist/{vendor-tiptap-extension-code-block-BFDiCj59.js → vendor-tiptap-extension-code-block-B0U7g1XA.js} +2 -2
  64. package/dist/{vendor-tiptap-extension-document-C8JdW_kC.js → vendor-tiptap-extension-document-BBhadLNS.js} +1 -1
  65. package/dist/{vendor-tiptap-extension-hard-break-D9Nzegu6.js → vendor-tiptap-extension-hard-break-eyl10A9U.js} +1 -1
  66. package/dist/{vendor-tiptap-extension-heading-TmkrHpE2.js → vendor-tiptap-extension-heading-BmX_Abvh.js} +1 -1
  67. package/dist/{vendor-tiptap-extension-horizontal-rule-BC1YMUau.js → vendor-tiptap-extension-horizontal-rule-DyYIWV6W.js} +2 -2
  68. package/dist/{vendor-tiptap-extension-image-BQnBpg7z.js → vendor-tiptap-extension-image-C06iDyEi.js} +1 -1
  69. package/dist/{vendor-tiptap-extension-italic-mSCwLnXY.js → vendor-tiptap-extension-italic-B2YDHBEe.js} +1 -1
  70. package/dist/{vendor-tiptap-extension-link-CQ0Mw6gd.js → vendor-tiptap-extension-link-Bw8_3Rr4.js} +2 -2
  71. package/dist/{vendor-tiptap-extension-list-BwidYizT.js → vendor-tiptap-extension-list-qHzpj6eq.js} +1 -1
  72. package/dist/{vendor-tiptap-extension-paragraph-C_OQHUNe.js → vendor-tiptap-extension-paragraph-BnCRfXCL.js} +1 -1
  73. package/dist/vendor-tiptap-extension-placeholder-BVZ1jBA2.js +1 -0
  74. package/dist/{vendor-tiptap-extension-strike-Bfc-eud8.js → vendor-tiptap-extension-strike-Naksm43m.js} +1 -1
  75. package/dist/{vendor-tiptap-extension-table-D26aUVrb.js → vendor-tiptap-extension-table-Cguez3tu.js} +3 -3
  76. package/dist/vendor-tiptap-extension-table-cell-lniviH1T.js +1 -0
  77. package/dist/vendor-tiptap-extension-table-header-lniviH1T.js +1 -0
  78. package/dist/vendor-tiptap-extension-table-row-lniviH1T.js +1 -0
  79. package/dist/{vendor-tiptap-extension-text-DrXC1h34.js → vendor-tiptap-extension-text-CixjyWfN.js} +1 -1
  80. package/dist/{vendor-tiptap-extension-text-style-vv6u__7g.js → vendor-tiptap-extension-text-style-CVsjuWJ4.js} +1 -1
  81. package/dist/{vendor-tiptap-extension-underline-BfygI164.js → vendor-tiptap-extension-underline-Rwkvga0F.js} +1 -1
  82. package/dist/{vendor-tiptap-extensions-_4zopegS.js → vendor-tiptap-extensions-F9A02hii.js} +6 -6
  83. package/dist/{vendor-tiptap-markdown-pGf8MOss.js → vendor-tiptap-markdown-BSUpswXr.js} +5 -5
  84. package/dist/vendor-tiptap-pm-BUxx7nt1.js +1 -0
  85. package/dist/{vendor-tiptap-starter-kit-DPG4_B0q.js → vendor-tiptap-starter-kit-BUgq7S1_.js} +17 -17
  86. package/dist/{vendor-tiptap-vue-3-Ctgrxv1U.js → vendor-tiptap-vue-3-UHrHfZLG.js} +1 -1
  87. package/dist/{vendor-vue-i18n-BeXi5L3e.js → vendor-vue-i18n-CO5LWKE0.js} +6 -6
  88. package/dist/{vendor-vue3-application-insights-C8xbxXXX.js → vendor-vue3-application-insights-CE6eo4vj.js} +2 -2
  89. package/dist/{vendor-vue3-touch-events-8Pa3HHlV.js → vendor-vue3-touch-events-DqysuuWh.js} +2 -2
  90. package/package.json +4 -4
  91. package/dist/assets/42df4e2d6fa3fd2a.woff2 +0 -0
  92. package/dist/assets/52610491f372cb0c.woff2 +0 -0
  93. package/dist/assets/5b3661be8be679d0.woff2 +0 -0
  94. package/dist/assets/5d96cfcc5bedd917.woff2 +0 -0
  95. package/dist/assets/6619e9e10beea0e7.woff2 +0 -0
  96. package/dist/assets/bfbe205759295eca.woff2 +0 -0
  97. package/dist/assets/d80b05788e407de7.woff2 +0 -0
  98. package/dist/vendor-dompurify-eYFoHPwR.js +0 -528
  99. package/dist/vendor-floating-ui-vue-C1Zscv9o.js +0 -836
  100. package/dist/vendor-prosemirror-view-Bfe9EVLy.js +0 -1489
  101. package/dist/vendor-punycode-js-CNI-zL6U.js +0 -133
  102. package/dist/vendor-tiptap-extension-placeholder-BIojfRhh.js +0 -1
  103. package/dist/vendor-tiptap-extension-table-cell-DuWy52BP.js +0 -1
  104. package/dist/vendor-tiptap-extension-table-header-DuWy52BP.js +0 -1
  105. package/dist/vendor-tiptap-extension-table-row-DuWy52BP.js +0 -1
  106. package/dist/vendor-tiptap-pm-B2DY8bDS.js +0 -7681
@@ -1,9 +1,10 @@
1
- import { N as G, E as se, S as D, T as A, P, a as B, A as ie } from "./vendor-prosemirror-state-6jGEPgrP.js";
2
- import { E as ae, D as ce, S as Tt, F as N, N as le, a as nt, b as ue } from "./vendor-tiptap-pm-B2DY8bDS.js";
3
- import { a as de } from "./vendor-prosemirror-keymap-21y6bXc_.js";
4
- import { f as fe, c as ct, T as pe, e as me, l as he, j as Ct, a as U, b as ge, R as ve } from "./vendor-prosemirror-transform-Dk6c_eg4.js";
5
- import { c as ye, d as be, e as ke, j as we, a as Me, b as Se, f as Ee, g as xe, h as Te, l as Ce, i as Ae, n as Pe, s as $e, k as Ie, m as Ne, o as Oe, p as Be, q as yt, w as je } from "./vendor-prosemirror-commands-DKHyfRYE.js";
6
- import { l as Re, s as De, w as Fe } from "./vendor-prosemirror-schema-list-Dmi4oPas.js";
1
+ import { N as G, E as se, S as D, T as A, P, a as B, A as ie } from "./vendor-prosemirror-state-DUZYoLys.js";
2
+ import { E as ae } from "./vendor-prosemirror-view-CzsD5m3e.js";
3
+ import { a as ce } from "./vendor-prosemirror-keymap-CN6Hkrq2.js";
4
+ import { f as le, c as ct, T as de, e as ue, l as fe, j as Tt, a as U, b as pe, R as me } from "./vendor-prosemirror-transform-BOkRqJ32.js";
5
+ import { D as he, a as Ct, F as N, b as ge, d as nt, S as ve } from "./vendor-prosemirror-model-CiCy9gkA.js";
6
+ import { c as ye, d as be, e as ke, j as we, a as Me, b as Se, f as Ee, g as xe, h as Te, l as Ce, i as Ae, n as Pe, s as $e, k as Ie, m as Ne, o as Oe, p as Be, q as yt, w as je } from "./vendor-prosemirror-commands-DlSOsoOz.js";
7
+ import { l as Re, s as De, w as Fe } from "./vendor-prosemirror-schema-list-asS28-n3.js";
7
8
  var _e = Object.defineProperty, At = (e, t) => {
8
9
  for (var n in t)
9
10
  _e(e, n, { get: t[n], enumerable: !0 });
@@ -61,9 +62,9 @@ var Y = class {
61
62
  createChain(e, t = !0) {
62
63
  const { rawCommands: n, editor: r, state: o } = this, { view: s } = r, i = [], a = !!e, c = e || o.tr, l = () => (!a && t && !c.getMeta("preventDispatch") && !this.hasCustomState && s.dispatch(c), i.every((u) => u === !0)), d = {
63
64
  ...Object.fromEntries(
64
- Object.entries(n).map(([u, p]) => [u, (...m) => {
65
- const h = this.buildProps(c, t), v = p(...m)(h);
66
- return i.push(v), d;
65
+ Object.entries(n).map(([u, p]) => [u, (...g) => {
66
+ const m = this.buildProps(c, t), h = p(...g)(m);
67
+ return i.push(h), d;
67
68
  }])
68
69
  ),
69
70
  run: l
@@ -126,7 +127,7 @@ var Y = class {
126
127
  }
127
128
  };
128
129
  function ze(e, t) {
129
- const n = new pe(e);
130
+ const n = new de(e);
130
131
  return t.forEach((r) => {
131
132
  r.steps.forEach((o) => {
132
133
  n.step(o);
@@ -148,7 +149,7 @@ function z(e) {
148
149
  return Pt(n);
149
150
  }
150
151
  function F(e, t, n) {
151
- if (e instanceof le || e instanceof N)
152
+ if (e instanceof ge || e instanceof N)
152
153
  return e;
153
154
  n = {
154
155
  slice: !0,
@@ -170,7 +171,7 @@ function F(e, t, n) {
170
171
  if (o) {
171
172
  if (n.errorOnInvalidContent) {
172
173
  let i = !1, a = "";
173
- const c = new Tt({
174
+ const c = new Ct({
174
175
  topNode: t.spec.topNode,
175
176
  marks: t.spec.marks,
176
177
  // Prosemirror's schemas are executed such that: the last to execute, matches last
@@ -213,7 +214,7 @@ function Ve(e) {
213
214
  }
214
215
  return null;
215
216
  }
216
- function Br(e, t, n) {
217
+ function jr(e, t, n) {
217
218
  const r = [];
218
219
  return e.nodesBetween(t.from, t.to, (o, s) => {
219
220
  n(o) && r.push({
@@ -253,8 +254,8 @@ function lt(e) {
253
254
  return r ? [t, ...lt(r())] : t;
254
255
  }).flat(10);
255
256
  }
256
- function ut(e, t) {
257
- const n = ce.fromSchema(t).serializeFragment(e), o = document.implementation.createHTMLDocument().createElement("div");
257
+ function dt(e, t) {
258
+ const n = he.fromSchema(t).serializeFragment(e), o = document.implementation.createHTMLDocument().createElement("div");
258
259
  return o.appendChild(n), o.innerHTML;
259
260
  }
260
261
  function $t(e) {
@@ -398,15 +399,15 @@ function Ke(e, t) {
398
399
  var n;
399
400
  const r = It(e), { nodeExtensions: o, markExtensions: s } = _(e), i = (n = o.find((l) => y(l, "topNode"))) == null ? void 0 : n.name, a = Object.fromEntries(
400
401
  o.map((l) => {
401
- const d = r.filter((g) => g.type === l.name), u = {
402
+ const d = r.filter((v) => v.type === l.name), u = {
402
403
  name: l.name,
403
404
  options: l.options,
404
405
  storage: l.storage,
405
406
  editor: t
406
- }, p = e.reduce((g, b) => {
407
+ }, p = e.reduce((v, b) => {
407
408
  const k = y(b, "extendNodeSchema", u);
408
409
  return {
409
- ...g,
410
+ ...v,
410
411
  ...k ? k(l) : {}
411
412
  };
412
413
  }, {}), f = kt({
@@ -426,37 +427,37 @@ function Ke(e, t) {
426
427
  defining: w(y(l, "defining", u)),
427
428
  isolating: w(y(l, "isolating", u)),
428
429
  attrs: Object.fromEntries(
429
- d.map((g) => {
430
+ d.map((v) => {
430
431
  var b, k;
431
432
  return [
432
- g.name,
433
- { default: (b = g?.attribute) == null ? void 0 : b.default, validate: (k = g?.attribute) == null ? void 0 : k.validate }
433
+ v.name,
434
+ { default: (b = v?.attribute) == null ? void 0 : b.default, validate: (k = v?.attribute) == null ? void 0 : k.validate }
434
435
  ];
435
436
  })
436
437
  )
437
- }), m = w(y(l, "parseHTML", u));
438
- m && (f.parseDOM = m.map(
439
- (g) => bt(g, d)
438
+ }), g = w(y(l, "parseHTML", u));
439
+ g && (f.parseDOM = g.map(
440
+ (v) => bt(v, d)
440
441
  ));
441
- const h = y(l, "renderHTML", u);
442
- h && (f.toDOM = (g) => h({
443
- node: g,
444
- HTMLAttributes: K(g, d)
442
+ const m = y(l, "renderHTML", u);
443
+ m && (f.toDOM = (v) => m({
444
+ node: v,
445
+ HTMLAttributes: K(v, d)
445
446
  }));
446
- const v = y(l, "renderText", u);
447
- return v && (f.toText = v), [l.name, f];
447
+ const h = y(l, "renderText", u);
448
+ return h && (f.toText = h), [l.name, f];
448
449
  })
449
450
  ), c = Object.fromEntries(
450
451
  s.map((l) => {
451
- const d = r.filter((v) => v.type === l.name), u = {
452
+ const d = r.filter((h) => h.type === l.name), u = {
452
453
  name: l.name,
453
454
  options: l.options,
454
455
  storage: l.storage,
455
456
  editor: t
456
- }, p = e.reduce((v, g) => {
457
- const b = y(g, "extendMarkSchema", u);
457
+ }, p = e.reduce((h, v) => {
458
+ const b = y(v, "extendMarkSchema", u);
458
459
  return {
459
- ...v,
460
+ ...h,
460
461
  ...b ? b(l) : {}
461
462
  };
462
463
  }, {}), f = kt({
@@ -467,26 +468,26 @@ function Ke(e, t) {
467
468
  spanning: w(y(l, "spanning", u)),
468
469
  code: w(y(l, "code", u)),
469
470
  attrs: Object.fromEntries(
470
- d.map((v) => {
471
- var g, b;
471
+ d.map((h) => {
472
+ var v, b;
472
473
  return [
473
- v.name,
474
- { default: (g = v?.attribute) == null ? void 0 : g.default, validate: (b = v?.attribute) == null ? void 0 : b.validate }
474
+ h.name,
475
+ { default: (v = h?.attribute) == null ? void 0 : v.default, validate: (b = h?.attribute) == null ? void 0 : b.validate }
475
476
  ];
476
477
  })
477
478
  )
478
- }), m = w(y(l, "parseHTML", u));
479
- m && (f.parseDOM = m.map(
480
- (v) => bt(v, d)
479
+ }), g = w(y(l, "parseHTML", u));
480
+ g && (f.parseDOM = g.map(
481
+ (h) => bt(h, d)
481
482
  ));
482
- const h = y(l, "renderHTML", u);
483
- return h && (f.toDOM = (v) => h({
484
- mark: v,
485
- HTMLAttributes: K(v, d)
483
+ const m = y(l, "renderHTML", u);
484
+ return m && (f.toDOM = (h) => m({
485
+ mark: h,
486
+ HTMLAttributes: K(h, d)
486
487
  })), [l.name, f];
487
488
  })
488
489
  );
489
- return new Tt({
490
+ return new Ct({
490
491
  topNode: i,
491
492
  nodes: a,
492
493
  marks: c
@@ -496,14 +497,14 @@ function Je(e) {
496
497
  const t = e.filter((n, r) => e.indexOf(n) !== r);
497
498
  return Array.from(new Set(t));
498
499
  }
499
- function dt(e) {
500
+ function ut(e) {
500
501
  return e.sort((n, r) => {
501
502
  const o = y(n, "priority") || 100, s = y(r, "priority") || 100;
502
503
  return o > s ? -1 : o < s ? 1 : 0;
503
504
  });
504
505
  }
505
506
  function Nt(e) {
506
- const t = dt(lt(e)), n = Je(t.map((r) => r.name));
507
+ const t = ut(lt(e)), n = Je(t.map((r) => r.name));
507
508
  return n.length && console.warn(
508
509
  `[tiptap warn]: Duplicate extension names found: [${n.map((r) => `'${r}'`).join(", ")}]. This can lead to issues.`
509
510
  ), t;
@@ -674,7 +675,7 @@ function Dt(e, t, n) {
674
675
  );
675
676
  }), r;
676
677
  }
677
- var jr = (e, t, n, r = 20) => {
678
+ var Rr = (e, t, n, r = 20) => {
678
679
  const o = e.doc.resolve(n);
679
680
  let s = r, i = null;
680
681
  for (; s > 0 && i === null; ) {
@@ -715,15 +716,15 @@ function at(e, t, n = {}) {
715
716
  let i = 0;
716
717
  const a = [];
717
718
  if (o.forEach(({ $from: u, $to: p }) => {
718
- const f = u.pos, m = p.pos;
719
- e.doc.nodesBetween(f, m, (h, v) => {
720
- if (!h.isText && !h.marks.length)
719
+ const f = u.pos, g = p.pos;
720
+ e.doc.nodesBetween(f, g, (m, h) => {
721
+ if (!m.isText && !m.marks.length)
721
722
  return;
722
- const g = Math.max(f, v), b = Math.min(m, v + h.nodeSize), k = b - g;
723
+ const v = Math.max(f, h), b = Math.min(g, h + m.nodeSize), k = b - v;
723
724
  i += k, a.push(
724
- ...h.marks.map((S) => ({
725
+ ...m.marks.map((S) => ({
725
726
  mark: S,
726
- from: g,
727
+ from: v,
727
728
  to: b
728
729
  }))
729
730
  );
@@ -738,11 +739,11 @@ function L(e, t, n = {}) {
738
739
  e.doc.nodesBetween(r, o, (u, p) => {
739
740
  if (u.isText)
740
741
  return;
741
- const f = Math.max(r, p), m = Math.min(o, p + u.nodeSize);
742
+ const f = Math.max(r, p), g = Math.min(o, p + u.nodeSize);
742
743
  a.push({
743
744
  node: u,
744
745
  from: f,
745
- to: m
746
+ to: g
746
747
  });
747
748
  });
748
749
  const c = o - r, l = a.filter((u) => i ? i.name === u.node.type.name : !0).filter((u) => J(u.node.attrs, n, { strict: !1 }));
@@ -754,7 +755,7 @@ function nn(e, t, n = {}) {
754
755
  const r = Z(t, e.schema);
755
756
  return r === "node" ? L(e, t, n) : r === "mark" ? at(e, t, n) : !1;
756
757
  }
757
- var Rr = (e, t) => {
758
+ var Dr = (e, t) => {
758
759
  const { $from: n, $to: r, $anchor: o } = e.selection;
759
760
  if (t) {
760
761
  const s = Q((a) => a.type.name === t)(e.selection);
@@ -764,7 +765,7 @@ var Rr = (e, t) => {
764
765
  return o.pos + 1 === i.end();
765
766
  }
766
767
  return !(r.parentOffset < r.parent.nodeSize - 2 || n.pos !== r.pos);
767
- }, Dr = (e) => {
768
+ }, Fr = (e) => {
768
769
  const { $from: t, $to: n } = e.selection;
769
770
  return !(t.parentOffset > 0 || t.pos !== n.pos);
770
771
  };
@@ -807,7 +808,7 @@ function mt(e, {
807
808
  }
808
809
  return !1;
809
810
  }
810
- function Fr(e) {
811
+ function _r(e) {
811
812
  return e instanceof G;
812
813
  }
813
814
  function Ft(e) {
@@ -832,7 +833,7 @@ function rn(e, t, n) {
832
833
  if (r < t)
833
834
  return;
834
835
  const o = e.steps[r];
835
- if (!(o instanceof ge || o instanceof ve))
836
+ if (!(o instanceof pe || o instanceof me))
836
837
  return;
837
838
  const s = e.mapping.maps[r];
838
839
  let i = 0;
@@ -842,7 +843,8 @@ function rn(e, t, n) {
842
843
  }
843
844
  var tt = class {
844
845
  constructor(e) {
845
- this.find = e.find, this.handler = e.handler;
846
+ var t;
847
+ this.find = e.find, this.handler = e.handler, this.undoable = (t = e.undoable) != null ? t : !0;
846
848
  }
847
849
  }, on = (e, t) => {
848
850
  if (ft(t))
@@ -872,29 +874,29 @@ function V(e) {
872
874
  const f = on(u, p.find);
873
875
  if (!f)
874
876
  return;
875
- const m = c.state.tr, h = X({
877
+ const g = c.state.tr, m = X({
876
878
  state: c.state,
877
- transaction: m
878
- }), v = {
879
+ transaction: g
880
+ }), h = {
879
881
  from: r - (f[0].length - s.length),
880
882
  to: o
881
- }, { commands: g, chain: b, can: k } = new Y({
883
+ }, { commands: v, chain: b, can: k } = new Y({
882
884
  editor: n,
883
- state: h
885
+ state: m
884
886
  });
885
887
  p.handler({
886
- state: h,
887
- range: v,
888
+ state: m,
889
+ range: h,
888
890
  match: f,
889
- commands: g,
891
+ commands: v,
890
892
  chain: b,
891
893
  can: k
892
- }) === null || !m.steps.length || (m.setMeta(a, {
893
- transform: m,
894
+ }) === null || !g.steps.length || (p.undoable && g.setMeta(a, {
895
+ transform: g,
894
896
  from: r,
895
897
  to: o,
896
898
  text: s
897
- }), c.dispatch(m), d = !0);
899
+ }), c.dispatch(g), d = !0);
898
900
  }), d;
899
901
  }
900
902
  function sn(e) {
@@ -910,7 +912,7 @@ function sn(e) {
910
912
  const c = o.getMeta("applyInputRules");
911
913
  return !!c && setTimeout(() => {
912
914
  let { text: d } = c;
913
- typeof d == "string" ? d = d : d = ut(N.from(d), i.schema);
915
+ typeof d == "string" ? d = d : d = dt(N.from(d), i.schema);
914
916
  const { from: u } = c, p = u + d.length;
915
917
  V({
916
918
  editor: t,
@@ -1054,11 +1056,11 @@ var ht = class {
1054
1056
  function ln(e) {
1055
1057
  return typeof e == "number";
1056
1058
  }
1057
- var un = class {
1059
+ var dn = class {
1058
1060
  constructor(e) {
1059
1061
  this.find = e.find, this.handler = e.handler;
1060
1062
  }
1061
- }, dn = (e, t, n) => {
1063
+ }, un = (e, t, n) => {
1062
1064
  if (ft(t))
1063
1065
  return [...e.matchAll(t)];
1064
1066
  const r = t(e, n);
@@ -1072,15 +1074,15 @@ function fn(e) {
1072
1074
  editor: t,
1073
1075
  state: n
1074
1076
  }), u = [];
1075
- return n.doc.nodesBetween(r, o, (f, m) => {
1076
- var h, v, g, b, k;
1077
- if ((v = (h = f.type) == null ? void 0 : h.spec) != null && v.code || !(f.isText || f.isTextblock || f.isInline))
1077
+ return n.doc.nodesBetween(r, o, (f, g) => {
1078
+ var m, h, v, b, k;
1079
+ if ((h = (m = f.type) == null ? void 0 : m.spec) != null && h.code || !(f.isText || f.isTextblock || f.isInline))
1078
1080
  return;
1079
- const S = (k = (b = (g = f.content) == null ? void 0 : g.size) != null ? b : f.nodeSize) != null ? k : 0, M = Math.max(r, m), x = Math.min(o, m + S);
1081
+ const S = (k = (b = (v = f.content) == null ? void 0 : v.size) != null ? b : f.nodeSize) != null ? k : 0, M = Math.max(r, g), x = Math.min(o, g + S);
1080
1082
  if (M >= x)
1081
1083
  return;
1082
- const T = f.isText ? f.text || "" : f.textBetween(M - m, x - m, void 0, "");
1083
- dn(T, s.find, i).forEach((j) => {
1084
+ const T = f.isText ? f.text || "" : f.textBetween(M - g, x - g, void 0, "");
1085
+ un(T, s.find, i).forEach((j) => {
1084
1086
  if (j.index === void 0)
1085
1087
  return;
1086
1088
  const vt = M + j.index + 1, ne = vt + j[0].length, re = {
@@ -1120,35 +1122,35 @@ function mn(e) {
1120
1122
  from: u,
1121
1123
  to: p,
1122
1124
  rule: f,
1123
- pasteEvt: m
1125
+ pasteEvt: g
1124
1126
  }) => {
1125
- const h = d.tr, v = X({
1127
+ const m = d.tr, h = X({
1126
1128
  state: d,
1127
- transaction: h
1129
+ transaction: m
1128
1130
  });
1129
1131
  if (!(!fn({
1130
1132
  editor: t,
1131
- state: v,
1133
+ state: h,
1132
1134
  from: Math.max(u - 1, 0),
1133
1135
  to: p.b - 1,
1134
1136
  rule: f,
1135
- pasteEvent: m,
1137
+ pasteEvent: g,
1136
1138
  dropEvent: a
1137
- }) || !h.steps.length)) {
1139
+ }) || !m.steps.length)) {
1138
1140
  try {
1139
1141
  a = typeof DragEvent < "u" ? new DragEvent("drop") : null;
1140
1142
  } catch {
1141
1143
  a = null;
1142
1144
  }
1143
- return i = typeof ClipboardEvent < "u" ? new ClipboardEvent("paste") : null, h;
1145
+ return i = typeof ClipboardEvent < "u" ? new ClipboardEvent("paste") : null, m;
1144
1146
  }
1145
1147
  };
1146
1148
  return n.map((d) => new P({
1147
1149
  // we register a global drag handler to track the current drag source element
1148
1150
  view(u) {
1149
- const p = (m) => {
1150
- var h;
1151
- r = (h = u.dom.parentElement) != null && h.contains(m.target) ? u.dom.parentElement : null, r && (W = t);
1151
+ const p = (g) => {
1152
+ var m;
1153
+ r = (m = u.dom.parentElement) != null && m.contains(g.target) ? u.dom.parentElement : null, r && (W = t);
1152
1154
  }, f = () => {
1153
1155
  W && (W = null);
1154
1156
  };
@@ -1164,27 +1166,27 @@ function mn(e) {
1164
1166
  if (s = r === u.dom.parentElement, a = p, !s) {
1165
1167
  const f = W;
1166
1168
  f?.isEditable && setTimeout(() => {
1167
- const m = f.state.selection;
1168
- m && f.commands.deleteRange({ from: m.from, to: m.to });
1169
+ const g = f.state.selection;
1170
+ g && f.commands.deleteRange({ from: g.from, to: g.to });
1169
1171
  }, 10);
1170
1172
  }
1171
1173
  return !1;
1172
1174
  },
1173
1175
  paste: (u, p) => {
1174
1176
  var f;
1175
- const m = (f = p.clipboardData) == null ? void 0 : f.getData("text/html");
1176
- return i = p, o = !!m?.includes("data-pm-slice"), !1;
1177
+ const g = (f = p.clipboardData) == null ? void 0 : f.getData("text/html");
1178
+ return i = p, o = !!g?.includes("data-pm-slice"), !1;
1177
1179
  }
1178
1180
  }
1179
1181
  },
1180
1182
  appendTransaction: (u, p, f) => {
1181
- const m = u[0], h = m.getMeta("uiEvent") === "paste" && !o, v = m.getMeta("uiEvent") === "drop" && !s, g = m.getMeta("applyPasteRules"), b = !!g;
1182
- if (!h && !v && !b)
1183
+ const g = u[0], m = g.getMeta("uiEvent") === "paste" && !o, h = g.getMeta("uiEvent") === "drop" && !s, v = g.getMeta("applyPasteRules"), b = !!v;
1184
+ if (!m && !h && !b)
1183
1185
  return;
1184
1186
  if (b) {
1185
- let { text: M } = g;
1186
- typeof M == "string" ? M = M : M = ut(N.from(M), f.schema);
1187
- const { from: x } = g, T = x + M.length, C = pn(M);
1187
+ let { text: M } = v;
1188
+ typeof M == "string" ? M = M : M = dt(N.from(M), f.schema);
1189
+ const { from: x } = v, T = x + M.length, C = pn(M);
1188
1190
  return c({
1189
1191
  rule: d,
1190
1192
  state: f,
@@ -1234,7 +1236,7 @@ var et = class {
1234
1236
  */
1235
1237
  get plugins() {
1236
1238
  const { editor: e } = this;
1237
- return dt([...this.extensions].reverse()).map((r) => {
1239
+ return ut([...this.extensions].reverse()).flatMap((r) => {
1238
1240
  const o = {
1239
1241
  name: r.name,
1240
1242
  options: r.options,
@@ -1249,11 +1251,11 @@ var et = class {
1249
1251
  let a = {};
1250
1252
  if (r.type === "mark" && y(r, "exitable", o) && (a.ArrowRight = () => cn.handleExit({ editor: e, mark: r })), i) {
1251
1253
  const p = Object.fromEntries(
1252
- Object.entries(i()).map(([f, m]) => [f, () => m({ editor: e })])
1254
+ Object.entries(i()).map(([f, g]) => [f, () => g({ editor: e })])
1253
1255
  );
1254
1256
  a = { ...a, ...p };
1255
1257
  }
1256
- const c = de(a);
1258
+ const c = ce(a);
1257
1259
  s.push(c);
1258
1260
  const l = y(r, "addInputRules", o);
1259
1261
  if (Mt(r, e.options.enableInputRules) && l) {
@@ -1262,8 +1264,8 @@ var et = class {
1262
1264
  const f = sn({
1263
1265
  editor: e,
1264
1266
  rules: p
1265
- }), m = Array.isArray(f) ? f : [f];
1266
- s.push(...m);
1267
+ }), g = Array.isArray(f) ? f : [f];
1268
+ s.push(...g);
1267
1269
  }
1268
1270
  }
1269
1271
  const d = y(r, "addPasteRules", o);
@@ -1284,7 +1286,7 @@ var et = class {
1284
1286
  s.push(...p);
1285
1287
  }
1286
1288
  return s;
1287
- }).flat();
1289
+ });
1288
1290
  }
1289
1291
  /**
1290
1292
  * Get all attributes from the extensions.
@@ -1390,7 +1392,7 @@ var et = class {
1390
1392
  }
1391
1393
  };
1392
1394
  et.resolve = Nt;
1393
- et.sort = dt;
1395
+ et.sort = ut;
1394
1396
  et.flatten = lt;
1395
1397
  var hn = {};
1396
1398
  At(hn, {
@@ -1493,8 +1495,8 @@ At(Wt, {
1493
1495
  setMeta: () => ar,
1494
1496
  setNode: () => cr,
1495
1497
  setNodeSelection: () => lr,
1496
- setTextSelection: () => ur,
1497
- sinkListItem: () => dr,
1498
+ setTextSelection: () => dr,
1499
+ sinkListItem: () => ur,
1498
1500
  splitBlock: () => fr,
1499
1501
  splitListItem: () => pr,
1500
1502
  toggleList: () => mr,
@@ -1520,12 +1522,12 @@ var gn = () => ({ editor: e, view: t }) => (requestAnimationFrame(() => {
1520
1522
  const { doc: l, mapping: d } = t, u = l.resolve(d.map(c)), p = l.resolve(d.map(c + a.nodeSize)), f = u.blockRange(p);
1521
1523
  if (!f)
1522
1524
  return;
1523
- const m = he(f);
1525
+ const g = fe(f);
1524
1526
  if (a.type.isTextblock) {
1525
- const { defaultType: h } = u.parent.contentMatchAt(u.index());
1526
- t.setNodeMarkup(f.start, h);
1527
+ const { defaultType: m } = u.parent.contentMatchAt(u.index());
1528
+ t.setNodeMarkup(f.start, m);
1527
1529
  }
1528
- (m || m === 0) && t.lift(f, m);
1530
+ (g || g === 0) && t.lift(f, g);
1529
1531
  });
1530
1532
  }), !0;
1531
1533
  }, bn = (e) => (t) => e(t), kn = () => ({ state: e, dispatch: t }) => ye(e, t), wn = (e, t) => ({ editor: n, tr: r }) => {
@@ -1612,71 +1614,71 @@ var In = (e = null, t = {}) => ({ editor: n, view: r, tr: o, dispatch: s }) => {
1612
1614
  ...n
1613
1615
  };
1614
1616
  let a;
1615
- const { selection: c } = s.state, l = (g) => {
1617
+ const c = (h) => {
1616
1618
  s.emit("contentError", {
1617
1619
  editor: s,
1618
- error: g,
1620
+ error: h,
1619
1621
  disableCollaboration: () => {
1620
1622
  "collaboration" in s.storage && typeof s.storage.collaboration == "object" && s.storage.collaboration && (s.storage.collaboration.isDisabled = !0);
1621
1623
  }
1622
1624
  });
1623
- }, d = {
1625
+ }, l = {
1624
1626
  preserveWhitespace: "full",
1625
1627
  ...n.parseOptions
1626
1628
  };
1627
1629
  if (!n.errorOnInvalidContent && !s.options.enableContentCheck && s.options.emitContentError)
1628
1630
  try {
1629
1631
  F(t, s.schema, {
1630
- parseOptions: d,
1632
+ parseOptions: l,
1631
1633
  errorOnInvalidContent: !0
1632
1634
  });
1633
- } catch (g) {
1634
- l(g);
1635
+ } catch (h) {
1636
+ c(h);
1635
1637
  }
1636
1638
  try {
1637
1639
  a = F(t, s.schema, {
1638
- parseOptions: d,
1640
+ parseOptions: l,
1639
1641
  errorOnInvalidContent: (i = n.errorOnInvalidContent) != null ? i : s.options.enableContentCheck
1640
1642
  });
1641
- } catch (g) {
1642
- return l(g), !1;
1643
+ } catch (h) {
1644
+ return c(h), !1;
1643
1645
  }
1644
- let { from: u, to: p } = typeof e == "number" ? { from: e, to: e } : { from: e.from, to: e.to }, f = !0, m = !0;
1645
- if ((Bn(a) ? a : [a]).forEach((g) => {
1646
- g.check(), f = f ? g.isText && g.marks.length === 0 : !1, m = m ? g.isBlock : !1;
1647
- }), u === p && m) {
1648
- const { parent: g } = r.doc.resolve(u);
1649
- g.isTextblock && !g.type.spec.code && !g.childCount && (u -= 1, p += 1);
1646
+ let { from: d, to: u } = typeof e == "number" ? { from: e, to: e } : { from: e.from, to: e.to }, p = !0, f = !0;
1647
+ if ((Bn(a) ? a : [a]).forEach((h) => {
1648
+ h.check(), p = p ? h.isText && h.marks.length === 0 : !1, f = f ? h.isBlock : !1;
1649
+ }), d === u && f) {
1650
+ const { parent: h } = r.doc.resolve(d);
1651
+ h.isTextblock && !h.type.spec.code && !h.childCount && (d -= 1, u += 1);
1650
1652
  }
1651
- let v;
1652
- if (f) {
1653
+ let m;
1654
+ if (p) {
1653
1655
  if (Array.isArray(t))
1654
- v = t.map((g) => g.text || "").join("");
1656
+ m = t.map((h) => h.text || "").join("");
1655
1657
  else if (t instanceof N) {
1656
- let g = "";
1657
- t.forEach((b) => {
1658
- b.text && (g += b.text);
1659
- }), v = g;
1660
- } else typeof t == "object" && t && t.text ? v = t.text : v = t;
1661
- r.insertText(v, u, p);
1658
+ let h = "";
1659
+ t.forEach((v) => {
1660
+ v.text && (h += v.text);
1661
+ }), m = h;
1662
+ } else typeof t == "object" && t && t.text ? m = t.text : m = t;
1663
+ r.insertText(m, d, u);
1662
1664
  } else {
1663
- v = a;
1664
- const g = c.$from.parentOffset === 0, b = c.$from.node().isText || c.$from.node().isTextblock, k = c.$from.node().content.size > 0;
1665
- g && b && k && (u = Math.max(0, u - 1)), r.replaceWith(u, p, v);
1665
+ m = a;
1666
+ const h = r.doc.resolve(d), v = h.node(), b = h.parentOffset === 0, k = v.isText || v.isTextblock, S = v.content.size > 0;
1667
+ b && k && S && (d = Math.max(0, d - 1)), r.replaceWith(d, u, m);
1666
1668
  }
1667
- n.updateSelection && rn(r, r.steps.length - 1, -1), n.applyInputRules && r.setMeta("applyInputRules", { from: u, text: v }), n.applyPasteRules && r.setMeta("applyPasteRules", { from: u, text: v });
1669
+ n.updateSelection && rn(r, r.steps.length - 1, -1), n.applyInputRules && r.setMeta("applyInputRules", { from: d, text: m }), n.applyPasteRules && r.setMeta("applyPasteRules", { from: d, text: m });
1668
1670
  }
1669
1671
  return !0;
1670
1672
  }, Rn = () => ({ state: e, dispatch: t }) => we(e, t), Dn = () => ({ state: e, dispatch: t }) => Me(e, t), Fn = () => ({ state: e, dispatch: t }) => Se(e, t), _n = () => ({ state: e, dispatch: t }) => Ee(e, t), Ln = () => ({ state: e, dispatch: t, tr: n }) => {
1671
1673
  try {
1672
- const r = Ct(e.doc, e.selection.$from.pos, -1);
1674
+ const r = Tt(e.doc, e.selection.$from.pos, -1);
1673
1675
  return r == null ? !1 : (n.join(r, 2), t && t(n), !0);
1674
1676
  } catch {
1675
1677
  return !1;
1676
1678
  }
1677
1679
  }, zn = () => ({ state: e, dispatch: t, tr: n }) => {
1678
1680
  try {
1679
- const r = Ct(e.doc, e.selection.$from.pos, 1);
1681
+ const r = Tt(e.doc, e.selection.$from.pos, 1);
1680
1682
  return r == null ? !1 : (n.join(r, 2), t && t(n), !0);
1681
1683
  } catch {
1682
1684
  return !1;
@@ -1781,8 +1783,8 @@ function sr(e, t, n) {
1781
1783
  if (l)
1782
1784
  return !1;
1783
1785
  if (d.isInline) {
1784
- const f = !p || p.type.allowsMarkType(n), m = !!n.isInSet(d.marks) || !d.marks.some((h) => h.type.excludes(n));
1785
- l = f && m;
1786
+ const f = !p || p.type.allowsMarkType(n), g = !!n.isInSet(d.marks) || !d.marks.some((m) => m.type.excludes(n));
1787
+ l = f && g;
1786
1788
  }
1787
1789
  return !l;
1788
1790
  }), l;
@@ -1803,17 +1805,17 @@ var ir = (e, t = {}) => ({ tr: n, state: r, dispatch: o }) => {
1803
1805
  a.forEach((l) => {
1804
1806
  const d = l.$from.pos, u = l.$to.pos;
1805
1807
  r.doc.nodesBetween(d, u, (p, f) => {
1806
- const m = Math.max(f, d), h = Math.min(f + p.nodeSize, u);
1807
- p.marks.find((g) => g.type === c) ? p.marks.forEach((g) => {
1808
- c === g.type && n.addMark(
1808
+ const g = Math.max(f, d), m = Math.min(f + p.nodeSize, u);
1809
+ p.marks.find((v) => v.type === c) ? p.marks.forEach((v) => {
1810
+ c === v.type && n.addMark(
1811
+ g,
1809
1812
  m,
1810
- h,
1811
1813
  c.create({
1812
- ...g.attrs,
1814
+ ...v.attrs,
1813
1815
  ...t
1814
1816
  })
1815
1817
  );
1816
- }) : n.addMark(m, h, c.create(t));
1818
+ }) : n.addMark(g, m, c.create(t));
1817
1819
  });
1818
1820
  });
1819
1821
  return sr(r, n, c);
@@ -1827,13 +1829,13 @@ var ir = (e, t = {}) => ({ tr: n, state: r, dispatch: o }) => {
1827
1829
  t.setSelection(s);
1828
1830
  }
1829
1831
  return !0;
1830
- }, ur = (e) => ({ tr: t, dispatch: n }) => {
1832
+ }, dr = (e) => ({ tr: t, dispatch: n }) => {
1831
1833
  if (n) {
1832
1834
  const { doc: r } = t, { from: o, to: s } = typeof e == "number" ? { from: e, to: e } : e, i = A.atStart(r).from, a = A.atEnd(r).to, c = O(o, i, a), l = O(s, i, a), d = A.create(r, c, l);
1833
1835
  t.setSelection(d);
1834
1836
  }
1835
1837
  return !0;
1836
- }, dr = (e) => ({ state: t, dispatch: n }) => {
1838
+ }, ur = (e) => ({ state: t, dispatch: n }) => {
1837
1839
  const r = E(e, t.schema);
1838
1840
  return De(r)(t, n);
1839
1841
  };
@@ -1856,20 +1858,20 @@ var fr = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, editor
1856
1858
  type: p,
1857
1859
  attrs: d
1858
1860
  }
1859
- ] : void 0, m = U(t.doc, t.mapping.map(a.pos), 1, f);
1860
- if (!f && !m && U(t.doc, t.mapping.map(a.pos), 1, p ? [{ type: p }] : void 0) && (m = !0, f = p ? [
1861
+ ] : void 0, g = U(t.doc, t.mapping.map(a.pos), 1, f);
1862
+ if (!f && !g && U(t.doc, t.mapping.map(a.pos), 1, p ? [{ type: p }] : void 0) && (g = !0, f = p ? [
1861
1863
  {
1862
1864
  type: p,
1863
1865
  attrs: d
1864
1866
  }
1865
1867
  ] : void 0), r) {
1866
- if (m && (s instanceof A && t.deleteSelection(), t.split(t.mapping.map(a.pos), 1, f), p && !u && !a.parentOffset && a.parent.type !== p)) {
1867
- const h = t.mapping.map(a.before()), v = t.doc.resolve(h);
1868
- a.node(-1).canReplaceWith(v.index(), v.index() + 1, p) && t.setNodeMarkup(t.mapping.map(a.before()), p);
1868
+ if (g && (s instanceof A && t.deleteSelection(), t.split(t.mapping.map(a.pos), 1, f), p && !u && !a.parentOffset && a.parent.type !== p)) {
1869
+ const m = t.mapping.map(a.before()), h = t.doc.resolve(m);
1870
+ a.node(-1).canReplaceWith(h.index(), h.index() + 1, p) && t.setNodeMarkup(t.mapping.map(a.before()), p);
1869
1871
  }
1870
1872
  e && xt(n, o.extensionManager.splittableMarks), t.scrollIntoView();
1871
1873
  }
1872
- return m;
1874
+ return g;
1873
1875
  }, pr = (e, t = {}) => ({ tr: n, state: r, dispatch: o, editor: s }) => {
1874
1876
  var i;
1875
1877
  const a = E(e, r.schema), { $from: c, $to: l } = r.selection, d = r.selection.node;
@@ -1883,10 +1885,10 @@ var fr = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, editor
1883
1885
  if (c.depth === 2 || c.node(-3).type !== a || c.index(-2) !== c.node(-2).childCount - 1)
1884
1886
  return !1;
1885
1887
  if (o) {
1886
- let g = N.empty;
1888
+ let v = N.empty;
1887
1889
  const b = c.index(-1) ? 1 : c.index(-2) ? 2 : 3;
1888
1890
  for (let C = c.depth - b; C >= c.depth - 3; C -= 1)
1889
- g = N.from(c.node(C).copy(g));
1891
+ v = N.from(c.node(C).copy(v));
1890
1892
  const k = (
1891
1893
  // eslint-disable-next-line no-nested-ternary
1892
1894
  c.indexAfter(-1) < c.node(-2).childCount ? 1 : c.indexAfter(-2) < c.node(-3).childCount ? 2 : 3
@@ -1894,9 +1896,9 @@ var fr = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, editor
1894
1896
  ...q(p, c.node().type.name, c.node().attrs),
1895
1897
  ...t
1896
1898
  }, M = ((i = a.contentMatch.defaultType) == null ? void 0 : i.createAndFill(S)) || void 0;
1897
- g = g.append(N.from(a.createAndFill(null, M) || void 0));
1899
+ v = v.append(N.from(a.createAndFill(null, M) || void 0));
1898
1900
  const x = c.before(c.depth - (b - 1));
1899
- n.replace(x, c.after(-k), new ue(g, 4 - b, 0));
1901
+ n.replace(x, c.after(-k), new ve(v, 4 - b, 0));
1900
1902
  let T = -1;
1901
1903
  n.doc.nodesBetween(x, n.doc.content.size, (C, j) => {
1902
1904
  if (T > -1)
@@ -1906,23 +1908,23 @@ var fr = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, editor
1906
1908
  }
1907
1909
  return !0;
1908
1910
  }
1909
- const f = l.pos === c.end() ? u.contentMatchAt(0).defaultType : null, m = {
1911
+ const f = l.pos === c.end() ? u.contentMatchAt(0).defaultType : null, g = {
1910
1912
  ...q(p, u.type.name, u.attrs),
1911
1913
  ...t
1912
- }, h = {
1914
+ }, m = {
1913
1915
  ...q(p, c.node().type.name, c.node().attrs),
1914
1916
  ...t
1915
1917
  };
1916
1918
  n.delete(c.pos, l.pos);
1917
- const v = f ? [
1918
- { type: a, attrs: m },
1919
- { type: f, attrs: h }
1920
- ] : [{ type: a, attrs: m }];
1919
+ const h = f ? [
1920
+ { type: a, attrs: g },
1921
+ { type: f, attrs: m }
1922
+ ] : [{ type: a, attrs: g }];
1921
1923
  if (!U(n.doc, c.pos, 2))
1922
1924
  return !1;
1923
1925
  if (o) {
1924
- const { selection: g, storedMarks: b } = r, { splittableMarks: k } = s.extensionManager, S = b || g.$to.parentOffset && g.$from.marks();
1925
- if (n.split(c.pos, 2, v).scrollIntoView(), !S || !o)
1926
+ const { selection: v, storedMarks: b } = r, { splittableMarks: k } = s.extensionManager, S = b || v.$to.parentOffset && v.$from.marks();
1927
+ if (n.split(c.pos, 2, h).scrollIntoView(), !S || !o)
1926
1928
  return !0;
1927
1929
  const M = S.filter((x) => k.includes(x.type.name));
1928
1930
  n.ensureMarks(M);
@@ -1947,13 +1949,13 @@ var fr = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, editor
1947
1949
  const o = e.doc.nodeAt(r);
1948
1950
  return n.node.type === o?.type && ct(e.doc, r) && e.join(r), !0;
1949
1951
  }, mr = (e, t, n, r = {}) => ({ editor: o, tr: s, state: i, dispatch: a, chain: c, commands: l, can: d }) => {
1950
- const { extensions: u, splittableMarks: p } = o.extensionManager, f = E(e, i.schema), m = E(t, i.schema), { selection: h, storedMarks: v } = i, { $from: g, $to: b } = h, k = g.blockRange(b), S = v || h.$to.parentOffset && h.$from.marks();
1952
+ const { extensions: u, splittableMarks: p } = o.extensionManager, f = E(e, i.schema), g = E(t, i.schema), { selection: m, storedMarks: h } = i, { $from: v, $to: b } = m, k = v.blockRange(b), S = h || m.$to.parentOffset && m.$from.marks();
1951
1953
  if (!k)
1952
1954
  return !1;
1953
- const M = Q((x) => St(x.type.name, u))(h);
1955
+ const M = Q((x) => St(x.type.name, u))(m);
1954
1956
  if (k.depth >= 1 && M && k.depth - M.depth <= 1) {
1955
1957
  if (M.node.type === f)
1956
- return l.liftListItem(m);
1958
+ return l.liftListItem(g);
1957
1959
  if (St(M.node.type.name, u) && f.validContent(M.node.content) && a)
1958
1960
  return c().command(() => (s.setNodeMarkup(M.pos, f), !0)).command(() => ot(s, f)).command(() => st(s, f)).run();
1959
1961
  }
@@ -2003,8 +2005,8 @@ var fr = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, editor
2003
2005
  return !0;
2004
2006
  if (d && i) {
2005
2007
  let { from: p, to: f } = a;
2006
- const m = (s = l.marks().find((v) => v.type === c)) == null ? void 0 : s.attrs, h = pt(l, c, m);
2007
- h && (p = h.from, f = h.to), n.removeMark(p, f, c);
2008
+ const g = (s = l.marks().find((h) => h.type === c)) == null ? void 0 : s.attrs, m = pt(l, c, g);
2009
+ m && (p = m.from, f = m.to), n.removeMark(p, f, c);
2008
2010
  } else
2009
2011
  u.forEach((p) => {
2010
2012
  n.removeMark(p.$from.pos, p.$to.pos, c);
@@ -2018,21 +2020,21 @@ var fr = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, editor
2018
2020
  );
2019
2021
  return a ? (a === "node" && (s = E(e, r.schema)), a === "mark" && (i = $(e, r.schema)), o && n.selection.ranges.forEach((c) => {
2020
2022
  const l = c.$from.pos, d = c.$to.pos;
2021
- let u, p, f, m;
2022
- n.selection.empty ? r.doc.nodesBetween(l, d, (h, v) => {
2023
- s && s === h.type && (f = Math.max(v, l), m = Math.min(v + h.nodeSize, d), u = v, p = h);
2024
- }) : r.doc.nodesBetween(l, d, (h, v) => {
2025
- v < l && s && s === h.type && (f = Math.max(v, l), m = Math.min(v + h.nodeSize, d), u = v, p = h), v >= l && v <= d && (s && s === h.type && n.setNodeMarkup(v, void 0, {
2026
- ...h.attrs,
2023
+ let u, p, f, g;
2024
+ n.selection.empty ? r.doc.nodesBetween(l, d, (m, h) => {
2025
+ s && s === m.type && (f = Math.max(h, l), g = Math.min(h + m.nodeSize, d), u = h, p = m);
2026
+ }) : r.doc.nodesBetween(l, d, (m, h) => {
2027
+ h < l && s && s === m.type && (f = Math.max(h, l), g = Math.min(h + m.nodeSize, d), u = h, p = m), h >= l && h <= d && (s && s === m.type && n.setNodeMarkup(h, void 0, {
2028
+ ...m.attrs,
2027
2029
  ...t
2028
- }), i && h.marks.length && h.marks.forEach((g) => {
2029
- if (i === g.type) {
2030
- const b = Math.max(v, l), k = Math.min(v + h.nodeSize, d);
2030
+ }), i && m.marks.length && m.marks.forEach((v) => {
2031
+ if (i === v.type) {
2032
+ const b = Math.max(h, l), k = Math.min(h + m.nodeSize, d);
2031
2033
  n.addMark(
2032
2034
  b,
2033
2035
  k,
2034
2036
  i.create({
2035
- ...g.attrs,
2037
+ ...v.attrs,
2036
2038
  ...t
2037
2039
  })
2038
2040
  );
@@ -2041,12 +2043,12 @@ var fr = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, editor
2041
2043
  }), p && (u !== void 0 && n.setNodeMarkup(u, void 0, {
2042
2044
  ...p.attrs,
2043
2045
  ...t
2044
- }), i && p.marks.length && p.marks.forEach((h) => {
2045
- i === h.type && n.addMark(
2046
+ }), i && p.marks.length && p.marks.forEach((m) => {
2047
+ i === m.type && n.addMark(
2046
2048
  f,
2047
- m,
2049
+ g,
2048
2050
  i.create({
2049
- ...h.attrs,
2051
+ ...m.attrs,
2050
2052
  ...t
2051
2053
  })
2052
2054
  );
@@ -2075,18 +2077,18 @@ var fr = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, editor
2075
2077
  return;
2076
2078
  const d = ze(e.before, [e, ...t]);
2077
2079
  tn(d).forEach((f) => {
2078
- d.mapping.mapResult(f.oldRange.from).deletedAfter && d.mapping.mapResult(f.oldRange.to).deletedBefore && d.before.nodesBetween(f.oldRange.from, f.oldRange.to, (m, h) => {
2079
- const v = h + m.nodeSize - 2, g = f.oldRange.from <= h && v <= f.oldRange.to;
2080
+ d.mapping.mapResult(f.oldRange.from).deletedAfter && d.mapping.mapResult(f.oldRange.to).deletedBefore && d.before.nodesBetween(f.oldRange.from, f.oldRange.to, (g, m) => {
2081
+ const h = m + g.nodeSize - 2, v = f.oldRange.from <= m && h <= f.oldRange.to;
2080
2082
  this.editor.emit("delete", {
2081
2083
  type: "node",
2082
- node: m,
2083
- from: h,
2084
- to: v,
2085
- newFrom: d.mapping.map(h),
2086
- newTo: d.mapping.map(v),
2084
+ node: g,
2085
+ from: m,
2086
+ to: h,
2087
+ newFrom: d.mapping.map(m),
2088
+ newTo: d.mapping.map(h),
2087
2089
  deletedRange: f.oldRange,
2088
2090
  newRange: f.newRange,
2089
- partial: !g,
2091
+ partial: !v,
2090
2092
  editor: this.editor,
2091
2093
  transaction: e,
2092
2094
  combinedTransform: d
@@ -2094,10 +2096,10 @@ var fr = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, editor
2094
2096
  });
2095
2097
  });
2096
2098
  const p = d.mapping;
2097
- d.steps.forEach((f, m) => {
2098
- var h, v;
2099
- if (f instanceof me) {
2100
- const g = p.slice(m).map(f.from, -1), b = p.slice(m).map(f.to), k = p.invert().map(g, -1), S = p.invert().map(b), M = (h = d.doc.nodeAt(g - 1)) == null ? void 0 : h.marks.some((T) => T.eq(f.mark)), x = (v = d.doc.nodeAt(b)) == null ? void 0 : v.marks.some((T) => T.eq(f.mark));
2099
+ d.steps.forEach((f, g) => {
2100
+ var m, h;
2101
+ if (f instanceof ue) {
2102
+ const v = p.slice(g).map(f.from, -1), b = p.slice(g).map(f.to), k = p.invert().map(v, -1), S = p.invert().map(b), M = (m = d.doc.nodeAt(v - 1)) == null ? void 0 : m.marks.some((T) => T.eq(f.mark)), x = (h = d.doc.nodeAt(b)) == null ? void 0 : h.marks.some((T) => T.eq(f.mark));
2101
2103
  this.editor.emit("delete", {
2102
2104
  type: "mark",
2103
2105
  mark: f.mark,
@@ -2108,7 +2110,7 @@ var fr = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, editor
2108
2110
  to: S
2109
2111
  },
2110
2112
  newRange: {
2111
- from: g,
2113
+ from: v,
2112
2114
  to: b
2113
2115
  },
2114
2116
  partial: !!(x || M),
@@ -2183,8 +2185,8 @@ var fr = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, editor
2183
2185
  () => i.undoInputRule(),
2184
2186
  // maybe convert first text block node to default node
2185
2187
  () => i.command(({ tr: a }) => {
2186
- const { selection: c, doc: l } = a, { empty: d, $anchor: u } = c, { pos: p, parent: f } = u, m = u.parent.isTextblock && p > 0 ? a.doc.resolve(p - 1) : u, h = m.parent.type.spec.isolating, v = u.pos - u.parentOffset, g = h && m.parent.childCount === 1 ? v === u.pos : D.atStart(l).from === p;
2187
- return !d || !f.type.isTextblock || f.textContent.length || !g || g && u.parent.type.name === "paragraph" ? !1 : i.clearNodes();
2188
+ const { selection: c, doc: l } = a, { empty: d, $anchor: u } = c, { pos: p, parent: f } = u, g = u.parent.isTextblock && p > 0 ? a.doc.resolve(p - 1) : u, m = g.parent.type.spec.isolating, h = u.pos - u.parentOffset, v = m && g.parent.childCount === 1 ? h === u.pos : D.atStart(l).from === p;
2189
+ return !d || !f.type.isTextblock || f.textContent.length || !v || v && u.parent.type.name === "paragraph" ? !1 : i.clearNodes();
2188
2190
  }),
2189
2191
  () => i.deleteSelection(),
2190
2192
  () => i.joinBackward(),
@@ -2233,9 +2235,9 @@ var fr = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, editor
2233
2235
  new P({
2234
2236
  key: new B("clearDocument"),
2235
2237
  appendTransaction: (e, t, n) => {
2236
- if (e.some((h) => h.getMeta("composition")))
2238
+ if (e.some((m) => m.getMeta("composition")))
2237
2239
  return;
2238
- const r = e.some((h) => h.docChanged) && !t.doc.eq(n.doc), o = e.some((h) => h.getMeta("preventClearDocument"));
2240
+ const r = e.some((m) => m.docChanged) && !t.doc.eq(n.doc), o = e.some((m) => m.getMeta("preventClearDocument"));
2239
2241
  if (!r || o)
2240
2242
  return;
2241
2243
  const { empty: s, from: i, to: a } = t.selection, c = D.atStart(t.doc).from, l = D.atEnd(t.doc).to;
@@ -2244,11 +2246,11 @@ var fr = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, editor
2244
2246
  const p = n.tr, f = X({
2245
2247
  state: n,
2246
2248
  transaction: p
2247
- }), { commands: m } = new Y({
2249
+ }), { commands: g } = new Y({
2248
2250
  editor: this.editor,
2249
2251
  state: f
2250
2252
  });
2251
- if (m.clearNodes(), !!p.steps.length)
2253
+ if (g.clearNodes(), !!p.steps.length)
2252
2254
  return p;
2253
2255
  }
2254
2256
  })
@@ -2487,7 +2489,7 @@ function Tr(e, t, n) {
2487
2489
  const o = document.createElement("style");
2488
2490
  return t && o.setAttribute("nonce", t), o.setAttribute("data-tiptap-style", ""), o.innerHTML = e, document.getElementsByTagName("head")[0].appendChild(o), o;
2489
2491
  }
2490
- var _r = class extends Le {
2492
+ var Lr = class extends Le {
2491
2493
  constructor(t = {}) {
2492
2494
  super(), this.css = null, this.editorView = null, this.isFocused = !1, this.isInitialized = !1, this.extensionStorage = {}, this.instanceId = Math.random().toString(36).slice(2, 9), this.options = {
2493
2495
  element: typeof document < "u" ? document.createElement("div") : null,
@@ -2537,7 +2539,7 @@ var _r = class extends Le {
2537
2539
  throw new Error(
2538
2540
  "[tiptap error]: The editor cannot be mounted because there is no 'document' defined in this environment."
2539
2541
  );
2540
- this.createView(t), this.emit("mount", { editor: this }), window.setTimeout(() => {
2542
+ this.createView(t), this.emit("mount", { editor: this }), this.css && !document.head.contains(this.css) && document.head.appendChild(this.css), window.setTimeout(() => {
2541
2543
  this.isDestroyed || (this.commands.focus(this.options.autofocus), this.emit("create", { editor: this }), this.isInitialized = !0);
2542
2544
  }, 0);
2543
2545
  }
@@ -2751,12 +2753,14 @@ var _r = class extends Le {
2751
2753
  ...(n = this.options.editorProps) == null ? void 0 : n.attributes
2752
2754
  },
2753
2755
  dispatchTransaction: this.dispatchTransaction.bind(this),
2754
- state: this.editorState
2756
+ state: this.editorState,
2757
+ markViews: this.extensionManager.markViews,
2758
+ nodeViews: this.extensionManager.nodeViews
2755
2759
  });
2756
2760
  const r = this.state.reconfigure({
2757
2761
  plugins: this.extensionManager.plugins
2758
2762
  });
2759
- this.view.updateState(r), this.createNodeViews(), this.prependClass(), this.injectCSS();
2763
+ this.view.updateState(r), this.prependClass(), this.injectCSS();
2760
2764
  const o = this.view.dom;
2761
2765
  o.editor = this;
2762
2766
  }
@@ -2851,7 +2855,7 @@ var _r = class extends Le {
2851
2855
  * Get the document as HTML.
2852
2856
  */
2853
2857
  getHTML() {
2854
- return ut(this.state.doc.content, this.schema);
2858
+ return dt(this.state.doc.content, this.schema);
2855
2859
  }
2856
2860
  /**
2857
2861
  * Get the document as text.
@@ -2903,7 +2907,7 @@ var _r = class extends Le {
2903
2907
  return this.$pos(0);
2904
2908
  }
2905
2909
  };
2906
- function zr(e) {
2910
+ function Vr(e) {
2907
2911
  return new tt({
2908
2912
  find: e.find,
2909
2913
  handler: ({ state: t, range: n, match: r }) => {
@@ -2913,16 +2917,17 @@ function zr(e) {
2913
2917
  const { tr: s } = t, i = r[r.length - 1], a = r[0];
2914
2918
  if (i) {
2915
2919
  const c = a.search(/\S/), l = n.from + a.indexOf(i), d = l + i.length;
2916
- if (Dt(n.from, n.to, t.doc).filter((f) => f.mark.type.excluded.find((h) => h === e.type && h !== f.mark.type)).filter((f) => f.to > l).length)
2920
+ if (Dt(n.from, n.to, t.doc).filter((f) => f.mark.type.excluded.find((m) => m === e.type && m !== f.mark.type)).filter((f) => f.to > l).length)
2917
2921
  return null;
2918
2922
  d < n.to && s.delete(d, n.to), l > n.from && s.delete(n.from + c, l);
2919
2923
  const p = n.from + c + i.length;
2920
2924
  s.addMark(n.from + c, p, e.type.create(o || {})), s.removeStoredMark(e.type);
2921
2925
  }
2922
- }
2926
+ },
2927
+ undoable: e.undoable
2923
2928
  });
2924
2929
  }
2925
- function Vr(e) {
2930
+ function Hr(e) {
2926
2931
  return new tt({
2927
2932
  find: e.find,
2928
2933
  handler: ({ state: t, range: n, match: r }) => {
@@ -2940,10 +2945,11 @@ function Vr(e) {
2940
2945
  s.insert(l, e.type.create(o)).delete(s.mapping.map(i), s.mapping.map(a));
2941
2946
  }
2942
2947
  s.scrollIntoView();
2943
- }
2948
+ },
2949
+ undoable: e.undoable
2944
2950
  });
2945
2951
  }
2946
- function Hr(e) {
2952
+ function Wr(e) {
2947
2953
  return new tt({
2948
2954
  find: e.find,
2949
2955
  handler: ({ state: t, range: n, match: r }) => {
@@ -2951,21 +2957,22 @@ function Hr(e) {
2951
2957
  if (!o.node(-1).canReplaceWith(o.index(-1), o.indexAfter(-1), e.type))
2952
2958
  return null;
2953
2959
  t.tr.delete(n.from, n.to).setBlockType(n.from, n.from, e.type, s);
2954
- }
2960
+ },
2961
+ undoable: e.undoable
2955
2962
  });
2956
2963
  }
2957
- function Wr(e) {
2964
+ function Ur(e) {
2958
2965
  return new tt({
2959
2966
  find: e.find,
2960
2967
  handler: ({ state: t, range: n, match: r, chain: o }) => {
2961
- const s = w(e.getAttributes, void 0, r) || {}, i = t.tr.delete(n.from, n.to), c = i.doc.resolve(n.from).blockRange(), l = c && fe(c, e.type, s);
2968
+ const s = w(e.getAttributes, void 0, r) || {}, i = t.tr.delete(n.from, n.to), c = i.doc.resolve(n.from).blockRange(), l = c && le(c, e.type, s);
2962
2969
  if (!l)
2963
2970
  return null;
2964
2971
  if (i.wrap(c, l), e.keepMarks && e.editor) {
2965
- const { selection: u, storedMarks: p } = t, { splittableMarks: f } = e.editor.extensionManager, m = p || u.$to.parentOffset && u.$from.marks();
2966
- if (m) {
2967
- const h = m.filter((v) => f.includes(v.type.name));
2968
- i.ensureMarks(h);
2972
+ const { selection: u, storedMarks: p } = t, { splittableMarks: f } = e.editor.extensionManager, g = p || u.$to.parentOffset && u.$from.marks();
2973
+ if (g) {
2974
+ const m = g.filter((h) => f.includes(h.type.name));
2975
+ i.ensureMarks(m);
2969
2976
  }
2970
2977
  }
2971
2978
  if (e.keepAttributes) {
@@ -2974,10 +2981,11 @@ function Wr(e) {
2974
2981
  }
2975
2982
  const d = i.doc.resolve(n.from - 1).nodeBefore;
2976
2983
  d && d.type === e.type && ct(i.doc, n.from - 1) && (!e.joinPredicate || e.joinPredicate(r, d)) && i.join(n.from - 1);
2977
- }
2984
+ },
2985
+ undoable: e.undoable
2978
2986
  });
2979
2987
  }
2980
- function Ur(e, t) {
2988
+ function qr(e, t) {
2981
2989
  const { selection: n } = e, { $from: r } = n;
2982
2990
  if (n instanceof G) {
2983
2991
  const s = r.index();
@@ -3015,7 +3023,7 @@ function Cr(e, t, n = {}) {
3015
3023
  }
3016
3024
  }), s.docChanged && t.view.dispatch(s);
3017
3025
  }
3018
- var qr = class ee extends ht {
3026
+ var Kr = class ee extends ht {
3019
3027
  constructor() {
3020
3028
  super(...arguments), this.type = "node";
3021
3029
  }
@@ -3035,8 +3043,8 @@ var qr = class ee extends ht {
3035
3043
  return super.extend(n);
3036
3044
  }
3037
3045
  };
3038
- function Kr(e) {
3039
- return new un({
3046
+ function Jr(e) {
3047
+ return new dn({
3040
3048
  find: e.find,
3041
3049
  handler: ({ state: t, range: n, match: r, pasteEvent: o }) => {
3042
3050
  const s = w(e.getAttributes, void 0, r, o);
@@ -3046,14 +3054,14 @@ function Kr(e) {
3046
3054
  let l = n.to;
3047
3055
  if (a) {
3048
3056
  const d = c.search(/\S/), u = n.from + c.indexOf(a), p = u + a.length;
3049
- if (Dt(n.from, n.to, t.doc).filter((m) => m.mark.type.excluded.find((v) => v === e.type && v !== m.mark.type)).filter((m) => m.to > u).length)
3057
+ if (Dt(n.from, n.to, t.doc).filter((g) => g.mark.type.excluded.find((h) => h === e.type && h !== g.mark.type)).filter((g) => g.to > u).length)
3050
3058
  return null;
3051
3059
  p < n.to && i.delete(p, n.to), u > n.from && i.delete(n.from + d, u), l = n.from + d + a.length, i.addMark(n.from + d, l, e.type.create(s || {})), i.removeStoredMark(e.type);
3052
3060
  }
3053
3061
  }
3054
3062
  });
3055
3063
  }
3056
- var Jr = (e, t) => {
3064
+ var Gr = (e, t) => {
3057
3065
  if (e === "slot")
3058
3066
  return 0;
3059
3067
  if (e instanceof Function)
@@ -3066,31 +3074,31 @@ var Jr = (e, t) => {
3066
3074
  export {
3067
3075
  I as E,
3068
3076
  cn as M,
3069
- qr as N,
3070
- Kr as a,
3071
- zr as b,
3072
- Ur as c,
3077
+ Kr as N,
3078
+ Jr as a,
3079
+ Vr as b,
3080
+ qr as c,
3073
3081
  ze as d,
3074
3082
  Dt as e,
3075
- Br as f,
3083
+ jr as f,
3076
3084
  tn as g,
3077
- Jr as h,
3078
- Fr as i,
3085
+ Gr as h,
3086
+ _r as i,
3079
3087
  Ye as j,
3080
3088
  L as k,
3081
- Dr as l,
3089
+ Fr as l,
3082
3090
  Ue as m,
3083
- Vr as n,
3084
- Rr as o,
3091
+ Hr as n,
3092
+ Dr as o,
3085
3093
  E as p,
3086
- jr as q,
3094
+ Rr as q,
3087
3095
  w as r,
3088
3096
  y as s,
3089
- Hr as t,
3097
+ Wr as t,
3090
3098
  He as u,
3091
3099
  mt as v,
3092
- Wr as w,
3100
+ Ur as w,
3093
3101
  hn as x,
3094
- ut as y,
3095
- _r as z
3102
+ dt as y,
3103
+ Lr as z
3096
3104
  };