@templatical/editor 0.16.0 → 0.16.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (168) hide show
  1. package/dist/{AiChatSidebar-B-k_Sdas.js → AiChatSidebar-EaPCeDXr.js} +14 -14
  2. package/dist/{AiFeatureMenu-B5_IKOlI.js → AiFeatureMenu-DfTYyExg.js} +7 -7
  3. package/dist/{BlockIssueBadge-B3xVgMTh.js → BlockIssueBadge-CZYgn-qg.js} +5 -5
  4. package/dist/{CloudEditor-BUJk4vXS.js → CloudEditor-BQyZ_nFg.js} +24 -24
  5. package/dist/{CollaboratorBar-BAUQfXUk.js → CollaboratorBar-DeP7K-zk.js} +4 -4
  6. package/dist/ColorPicker-CXAbjTaG.js +446 -0
  7. package/dist/{CommentsSidebar-D_tSGvTX.js → CommentsSidebar-DDKiFsSq.js} +13 -13
  8. package/dist/{CountdownBlock-apiYUhkQ.js → CountdownBlock-173fiO5Z.js} +3 -3
  9. package/dist/{CountdownToolbar-CS0axcjz.js → CountdownToolbar-nY9H0BKd.js} +4 -4
  10. package/dist/{DesignReferenceSidebar-BYQcuaL4.js → DesignReferenceSidebar-D6TfC176.js} +11 -11
  11. package/dist/{IssuesPanel-CR1MPaDE.js → IssuesPanel-CQQipLQP.js} +8 -8
  12. package/dist/{LoadingTrack-DsecR8Rw.js → LoadingTrack-KIcREPlS.js} +1 -1
  13. package/dist/{MergeTagSuggestion-DLVykS0K.js → MergeTagSuggestion-DrT3LiZ4.js} +4 -4
  14. package/dist/{ModuleBrowserModal-BzDuagt5.js → ModuleBrowserModal-CkeYw1e3.js} +11 -11
  15. package/dist/{ModulePreviewCanvas-CK11BX4i.js → ModulePreviewCanvas-BIMFyYaa.js} +3 -3
  16. package/dist/NumberWithSuffix-BoZyUoNz.js +89 -0
  17. package/dist/{ParagraphEditor-fg9Ljy_Z.js → ParagraphEditor-DGsTFMxg.js} +232 -207
  18. package/dist/{RichTextEditorContent-BqLHIZY7.js → RichTextEditorContent-BB_n8vgB.js} +56 -45
  19. package/dist/{SaveModuleDialog-D27ufH5q.js → SaveModuleDialog-Cypt_qOB.js} +8 -8
  20. package/dist/{SnapshotHistory-Cymqkk9_.js → SnapshotHistory-DQTH8TCS.js} +10 -10
  21. package/dist/{TemplateScoringPanel-CZ62rGHz.js → TemplateScoringPanel-C8VOC6gn.js} +15 -15
  22. package/dist/{TestEmailModal-BIvdHidU.js → TestEmailModal-DqxrL-U9.js} +6 -6
  23. package/dist/{TitleEditor-D0a4NdOn.js → TitleEditor-DoGgnrcb.js} +38 -35
  24. package/dist/{TplModal-dYXt3vyd.js → TplModal-Ca-29YDD.js} +5 -5
  25. package/dist/{blockTypeIcons-JSBvsa0M.js → blockTypeIcons-DVJXg5si.js} +7 -7
  26. package/dist/bundle-stats.json +6 -6
  27. package/dist/{ca-C58VqAgo.js → ca-B3eR47lE.js} +2 -1
  28. package/dist/cdn/chunks/{AiFeatureMenu-B6V5CzCc.js → AiFeatureMenu-roPglhox.js} +6 -6
  29. package/dist/cdn/chunks/{AiFeatureMenu-B6V5CzCc.js.map → AiFeatureMenu-roPglhox.js.map} +1 -1
  30. package/dist/cdn/chunks/{BlockIssueBadge-C6Xpl1KK.js → BlockIssueBadge-DW_Tt7Wg.js} +5 -5
  31. package/dist/cdn/chunks/{BlockIssueBadge-C6Xpl1KK.js.map → BlockIssueBadge-DW_Tt7Wg.js.map} +1 -1
  32. package/dist/cdn/chunks/{CloudEditor-C-npgK-l.js → CloudEditor-CX6y1k3C.js} +161 -161
  33. package/dist/cdn/chunks/{CloudEditor-C-npgK-l.js.map → CloudEditor-CX6y1k3C.js.map} +1 -1
  34. package/dist/cdn/chunks/{CollaboratorBar-BSKXgw9D.js → CollaboratorBar-Dyrab63H.js} +4 -4
  35. package/dist/cdn/chunks/{CollaboratorBar-BSKXgw9D.js.map → CollaboratorBar-Dyrab63H.js.map} +1 -1
  36. package/dist/cdn/chunks/ColorPicker-BggAWrc9.js +443 -0
  37. package/dist/cdn/chunks/ColorPicker-BggAWrc9.js.map +1 -0
  38. package/dist/cdn/chunks/{CountdownBlock-Y-nycxv2.js → CountdownBlock-Bul4tczj.js} +3 -3
  39. package/dist/cdn/chunks/{CountdownBlock-Y-nycxv2.js.map → CountdownBlock-Bul4tczj.js.map} +1 -1
  40. package/dist/cdn/chunks/{CountdownToolbar-9LqnhGyh.js → CountdownToolbar-DYvATR0J.js} +5 -5
  41. package/dist/cdn/chunks/{CountdownToolbar-9LqnhGyh.js.map → CountdownToolbar-DYvATR0J.js.map} +1 -1
  42. package/dist/cdn/chunks/{IssuesPanel-BYfGf1rC.js → IssuesPanel-BhHU-hq3.js} +8 -8
  43. package/dist/cdn/chunks/{IssuesPanel-BYfGf1rC.js.map → IssuesPanel-BhHU-hq3.js.map} +1 -1
  44. package/dist/cdn/chunks/{MergeTagSuggestion-DQzKlLH7.js → MergeTagSuggestion-jesxS7An.js} +3 -3
  45. package/dist/cdn/chunks/{MergeTagSuggestion-DQzKlLH7.js.map → MergeTagSuggestion-jesxS7An.js.map} +1 -1
  46. package/dist/cdn/chunks/{ModuleBrowserModal-EzKgW5TG.js → ModuleBrowserModal-BGd5Ryyx.js} +9 -9
  47. package/dist/cdn/chunks/{ModuleBrowserModal-EzKgW5TG.js.map → ModuleBrowserModal-BGd5Ryyx.js.map} +1 -1
  48. package/dist/cdn/chunks/{ModulePreviewCanvas-DxbSzXm8.js → ModulePreviewCanvas-Hx6SCCjB.js} +11 -11
  49. package/dist/cdn/chunks/{ModulePreviewCanvas-DxbSzXm8.js.map → ModulePreviewCanvas-Hx6SCCjB.js.map} +1 -1
  50. package/dist/cdn/chunks/NumberWithSuffix-BImuhc9K.js +91 -0
  51. package/dist/cdn/chunks/NumberWithSuffix-BImuhc9K.js.map +1 -0
  52. package/dist/cdn/chunks/{ParagraphEditor-CJNgRMhw.js → ParagraphEditor-K2vENidm.js} +209 -184
  53. package/dist/cdn/chunks/ParagraphEditor-K2vENidm.js.map +1 -0
  54. package/dist/cdn/chunks/{RichTextEditorContent-Cebdzomd.js → RichTextEditorContent-B_w3u5lN.js} +53 -42
  55. package/dist/cdn/chunks/RichTextEditorContent-B_w3u5lN.js.map +1 -0
  56. package/dist/cdn/chunks/{SaveModuleDialog-Cufwqoln.js → SaveModuleDialog-Cw-182CB.js} +6 -6
  57. package/dist/cdn/chunks/{SaveModuleDialog-Cufwqoln.js.map → SaveModuleDialog-Cw-182CB.js.map} +1 -1
  58. package/dist/cdn/chunks/{TitleEditor-7BhmKL-_.js → TitleEditor-CUKlo_Zj.js} +46 -43
  59. package/dist/cdn/chunks/TitleEditor-CUKlo_Zj.js.map +1 -0
  60. package/dist/cdn/chunks/{blockTypeIcons-d4Sb61H-.js → blockTypeIcons-Cx1FAqL6.js} +5 -5
  61. package/dist/cdn/chunks/{blockTypeIcons-d4Sb61H-.js.map → blockTypeIcons-Cx1FAqL6.js.map} +1 -1
  62. package/dist/cdn/chunks/{ca-C58VqAgo.js → ca-B3eR47lE.js} +3 -2
  63. package/dist/cdn/chunks/ca-B3eR47lE.js.map +1 -0
  64. package/dist/cdn/chunks/{de-C0sMmfic.js → de-Cy8FB-Ii.js} +3 -2
  65. package/dist/cdn/chunks/de-Cy8FB-Ii.js.map +1 -0
  66. package/dist/cdn/chunks/{draggable-kG-D5Xsm.js → draggable-D840DIZB.js} +52 -39
  67. package/dist/cdn/chunks/draggable-D840DIZB.js.map +1 -0
  68. package/dist/cdn/chunks/{en-CsGBTBOf.js → en-Bu-zS_5o.js} +3 -2
  69. package/dist/cdn/chunks/en-Bu-zS_5o.js.map +1 -0
  70. package/dist/cdn/chunks/{es-DgjbcPIu.js → es-CD3ZD6hK.js} +3 -2
  71. package/dist/cdn/chunks/es-CD3ZD6hK.js.map +1 -0
  72. package/dist/cdn/chunks/{extensions-BeAsz_mp.js → extensions-DSxG2wYf.js} +28 -28
  73. package/dist/cdn/chunks/{extensions-BeAsz_mp.js.map → extensions-DSxG2wYf.js.map} +1 -1
  74. package/dist/cdn/chunks/{features-DO71hPJr.js → features-C-cjT_8L.js} +589 -553
  75. package/dist/cdn/chunks/features-C-cjT_8L.js.map +1 -0
  76. package/dist/cdn/chunks/{icons-BfP1cRNb.js → icons-ay0_fN-T.js} +2 -2
  77. package/dist/cdn/chunks/{icons-BfP1cRNb.js.map → icons-ay0_fN-T.js.map} +1 -1
  78. package/dist/cdn/chunks/{media-library-0S3e0i8G.js → media-library-CkmqPdO4.js} +104 -104
  79. package/dist/cdn/chunks/{media-library-0S3e0i8G.js.map → media-library-CkmqPdO4.js.map} +1 -1
  80. package/dist/cdn/chunks/{pt-BR-DXaP5lMJ.js → pt-BR-CgICL-CQ.js} +3 -2
  81. package/dist/cdn/chunks/pt-BR-CgICL-CQ.js.map +1 -0
  82. package/dist/cdn/chunks/quality-CDNrMw2A.js +2180 -0
  83. package/dist/cdn/chunks/{quality-B6V4R_df.js.map → quality-CDNrMw2A.js.map} +1 -1
  84. package/dist/cdn/chunks/{renderer-Dhn1J4H4.js → renderer-JQ91A09w.js} +18 -18
  85. package/dist/cdn/chunks/renderer-JQ91A09w.js.map +1 -0
  86. package/dist/cdn/chunks/{src-DoKjbqU2.js → src-Cehu7Hqx.js} +5 -5
  87. package/dist/cdn/chunks/{src-DoKjbqU2.js.map → src-Cehu7Hqx.js.map} +1 -1
  88. package/dist/cdn/chunks/{styles-CSqligXJ.js → styles-DBjy3lz9.js} +820 -820
  89. package/dist/cdn/chunks/{styles-CSqligXJ.js.map → styles-DBjy3lz9.js.map} +1 -1
  90. package/dist/cdn/chunks/{tiptap-DVHUKGZf.js → tiptap-zpXk5mN4.js} +1131 -1134
  91. package/dist/cdn/chunks/{tiptap-DVHUKGZf.js.map → tiptap-zpXk5mN4.js.map} +1 -1
  92. package/dist/cdn/editor.css +1 -1
  93. package/dist/cdn/editor.js +75 -75
  94. package/dist/cdn/editor.js.map +1 -1
  95. package/dist/{check-rl7ok6uJ.js → check-D1zYtCPK.js} +1 -1
  96. package/dist/{chevron-down-BKe__NOD.js → chevron-down-ByXpufZD.js} +1 -1
  97. package/dist/{circle-alert-C8xmpMsK.js → circle-alert-CjcAORUw.js} +1 -1
  98. package/dist/{clock-BW4JuDCN.js → clock-5lWLadUn.js} +1 -1
  99. package/dist/{cloud-CFpaFRCV.js → cloud-BogxOeZu.js} +1 -1
  100. package/dist/{createLucideIcon-Dx-EjR9r.js → createLucideIcon-Bh9xOmlW.js} +3 -3
  101. package/dist/{de-C0sMmfic.js → de-Cy8FB-Ii.js} +2 -1
  102. package/dist/dist-BE9m_i60.js +5 -0
  103. package/dist/{dist-C5-0GG3g.js → dist-BPPeDw62.js} +2 -2
  104. package/dist/{dist-DEcNpSJi.js → dist-BReUTadj.js} +4 -4
  105. package/dist/dist-BXR1aBJV.js +5 -0
  106. package/dist/{dist-r_2rJCMg.js → dist-Bm07Z3Es.js} +2 -2
  107. package/dist/{dist-BEWiuOMi.js → dist-CFOQvhSC.js} +3 -3
  108. package/dist/{dist-Ci5GHd96.js → dist-CHLoeloJ.js} +2 -2
  109. package/dist/{dist-0VHbLR6h.js → dist-D1WmF8BF.js} +2 -2
  110. package/dist/{dist-DrlHbc8g.js → dist-D9g4CSnm.js} +1 -1
  111. package/dist/{dist-Drm7i-yw.js → dist-DGEaAAIb.js} +2 -2
  112. package/dist/{dist-CTT6WYJ6.js → dist-DYv_Pttj.js} +2 -2
  113. package/dist/{dist-Dsoq4knU.js → dist-DcKlLQ8d.js} +2 -2
  114. package/dist/{dist-D_-AsMP4.js → dist-DhY2di4U.js} +2 -2
  115. package/dist/{dist-FVawx7ou.js → dist-i_Z7t67A.js} +260 -263
  116. package/dist/{en-CsGBTBOf.js → en-Bu-zS_5o.js} +2 -1
  117. package/dist/{es-DgjbcPIu.js → es-CD3ZD6hK.js} +2 -1
  118. package/dist/{extensions-3jhgwhV-.js → extensions-B2poxDIo.js} +7 -7
  119. package/dist/{image-up-BwBCmQ4P.js → image-up-Bj_nes3f.js} +1 -1
  120. package/dist/{info-TCn7uWR5.js → info-BhSQCxBV.js} +1 -1
  121. package/dist/{keys-Cv8-8GsD.js → keys-BbDgCU6K.js} +1 -1
  122. package/dist/{list-checks-CSrOWNgq.js → list-checks-CgxyUg7i.js} +1 -1
  123. package/dist/{loader-circle-BLmicnPG.js → loader-circle-DFU0HPAa.js} +1 -1
  124. package/dist/{message-circle-C9hHMQCI.js → message-circle-BEBsCHnk.js} +1 -1
  125. package/dist/{pt-BR-DXaP5lMJ.js → pt-BR-CgICL-CQ.js} +2 -1
  126. package/dist/{refresh-cw-D1JQ1LNa.js → refresh-cw--lvWGy0_.js} +1 -1
  127. package/dist/{runtime-dom.esm-bundler-BzuoCyNp.js → runtime-dom.esm-bundler-GdMI8WqG.js} +6 -7
  128. package/dist/{scan-line-DgijVq9y.js → scan-line-QgyDIgn_.js} +1 -1
  129. package/dist/{send-DjPdq69F.js → send-BMyisUim.js} +1 -1
  130. package/dist/{shield-check-Bqluu8FS.js → shield-check-C49M20le.js} +1 -1
  131. package/dist/{sparkles-M4azPVSP.js → sparkles-DV7Dman6.js} +1 -1
  132. package/dist/style.css +1 -1
  133. package/dist/{styles-5sGbDIA2.js → styles-mvx3k1hf.js} +78 -78
  134. package/dist/templatical-editor.js +62 -62
  135. package/dist/{text-align-start-CMya5pCQ.js → text-align-start-BMU70uAm.js} +1 -1
  136. package/dist/{trash-2-C-81rkLS.js → trash-2-B6M659Ey.js} +1 -1
  137. package/dist/{triangle-alert-BuRWnynk.js → triangle-alert-D1lzx6ds.js} +1 -1
  138. package/dist/{upload-CWBIoLd4.js → upload-3A1oZtOR.js} +1 -1
  139. package/dist/{useAliveFlag-CECL_OUb.js → useAliveFlag-C43EhZFY.js} +1 -1
  140. package/dist/{useCloudI18n-AKCy98qD.js → useCloudI18n-WbfVWq5k.js} +2 -2
  141. package/dist/{useEditorCore-AQ0BN1ug.js → useEditorCore-DtZkR7Vk.js} +616 -580
  142. package/dist/{useI18n-C-TDeJBt.js → useI18n-eR1yVW0v.js} +2 -2
  143. package/dist/{useMergeTag-D0aZw7Q5.js → useMergeTag-C3GfSktg.js} +2 -2
  144. package/dist/usePopoverRoot-C1j0D7cc.js +8 -0
  145. package/dist/{vue.runtime.esm-bundler-l0XAqiyv.js → vue.runtime.esm-bundler-B0xoGkDv.js} +84 -70
  146. package/dist/{x-CQSvXnGR.js → x-CG_NV3nP.js} +1 -1
  147. package/package.json +23 -23
  148. package/dist/NumberWithSuffix-CrA6quxx.js +0 -445
  149. package/dist/cdn/chunks/NumberWithSuffix-Conp_Pki.js +0 -444
  150. package/dist/cdn/chunks/NumberWithSuffix-Conp_Pki.js.map +0 -1
  151. package/dist/cdn/chunks/ParagraphEditor-CJNgRMhw.js.map +0 -1
  152. package/dist/cdn/chunks/RichTextEditorContent-Cebdzomd.js.map +0 -1
  153. package/dist/cdn/chunks/TitleEditor-7BhmKL-_.js.map +0 -1
  154. package/dist/cdn/chunks/ca-C58VqAgo.js.map +0 -1
  155. package/dist/cdn/chunks/de-C0sMmfic.js.map +0 -1
  156. package/dist/cdn/chunks/draggable-kG-D5Xsm.js.map +0 -1
  157. package/dist/cdn/chunks/en-CsGBTBOf.js.map +0 -1
  158. package/dist/cdn/chunks/es-DgjbcPIu.js.map +0 -1
  159. package/dist/cdn/chunks/features-DO71hPJr.js.map +0 -1
  160. package/dist/cdn/chunks/pt-BR-DXaP5lMJ.js.map +0 -1
  161. package/dist/cdn/chunks/quality-B6V4R_df.js +0 -2180
  162. package/dist/cdn/chunks/renderer-Dhn1J4H4.js.map +0 -1
  163. package/dist/cdn/chunks/styleConstants-lGobwiLH.js +0 -57
  164. package/dist/cdn/chunks/styleConstants-lGobwiLH.js.map +0 -1
  165. package/dist/dist-DR-6IpV6.js +0 -5
  166. package/dist/dist-DW8b0TO6.js +0 -5
  167. package/dist/styleConstants-lGobwiLH.js +0 -55
  168. package/dist/usePopoverRoot-DKUDnr55.js +0 -8
@@ -1,7 +1,7 @@
1
- import { Cn as e, Ct as t, Dn as n, En as r, Mt as i, Nt as a, On as o, Pt as s, Sn as c, Tn as l, Ut as u, Wt as d, Xt as f, Y as p, Z as m, _n as h, at as g, bn as _, c as v, en as ee, gn as y, i as b, in as te, mn as ne, ot as re, qt as x, rt as ie, u as S, v as ae, vn as C, wn as w, wt as oe, xn as T, y as se, yn as E } from "./dist-DrlHbc8g.js";
2
- import { Link as ce } from "./dist-Ci5GHd96.js";
3
- import { Underline as le } from "./dist-Drm7i-yw.js";
4
- //#region ../../node_modules/.pnpm/@tiptap+core@3.27.4_@tiptap+pm@3.27.4/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js
1
+ import { Cn as e, Ct as t, Dn as n, En as r, Mt as i, Nt as a, On as o, Pt as s, Sn as c, Tn as l, Ut as u, Wt as d, Xt as f, Y as p, Z as m, _n as h, at as g, bn as _, c as v, en as ee, gn as y, i as b, in as te, mn as ne, ot as re, qt as x, rt as ie, u as S, v as ae, vn as C, wn as w, wt as oe, xn as T, y as se, yn as E } from "./dist-D9g4CSnm.js";
2
+ import { Link as ce } from "./dist-CHLoeloJ.js";
3
+ import { Underline as le } from "./dist-DGEaAAIb.js";
4
+ //#region ../../node_modules/.pnpm/@tiptap+core@3.28.0_@tiptap+pm@3.28.0/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js
5
5
  var D = (e, t) => {
6
6
  if (e === "slot") return 0;
7
7
  if (e instanceof Function) return e(t);
@@ -201,7 +201,7 @@ var D = (e, t) => {
201
201
  type: this.type
202
202
  })];
203
203
  }
204
- }), xe = 4, Se = /^```([a-z]+)?[\s\n]$/, Ce = /^~~~([a-z]+)?[\s\n]$/, we = S.create({
204
+ }), O = 4, xe = /^```([a-z]+)?[\s\n]$/, Se = /^~~~([a-z]+)?[\s\n]$/, Ce = S.create({
205
205
  name: "codeBlock",
206
206
  addOptions() {
207
207
  return {
@@ -210,7 +210,7 @@ var D = (e, t) => {
210
210
  exitOnArrowDown: !0,
211
211
  defaultLanguage: null,
212
212
  enableTabIndentation: !1,
213
- tabSize: xe,
213
+ tabSize: O,
214
214
  HTMLAttributes: {}
215
215
  };
216
216
  },
@@ -273,7 +273,7 @@ var D = (e, t) => {
273
273
  },
274
274
  Tab: ({ editor: e }) => {
275
275
  if (!this.options.enableTabIndentation) return !1;
276
- let t = this.options.tabSize ?? xe, { state: n } = e, { selection: r } = n, { $from: i, empty: a } = r;
276
+ let t = this.options.tabSize ?? O, { state: n } = e, { selection: r } = n, { $from: i, empty: a } = r;
277
277
  if (i.parent.type !== this.type) return !1;
278
278
  let o = " ".repeat(t);
279
279
  return a ? e.commands.insertContent(o) : e.commands.command(({ tr: e }) => {
@@ -283,7 +283,7 @@ var D = (e, t) => {
283
283
  },
284
284
  "Shift-Tab": ({ editor: e }) => {
285
285
  if (!this.options.enableTabIndentation) return !1;
286
- let t = this.options.tabSize ?? xe, { state: n } = e, { selection: r } = n, { $from: i, empty: a } = r;
286
+ let t = this.options.tabSize ?? O, { state: n } = e, { selection: r } = n, { $from: i, empty: a } = r;
287
287
  return i.parent.type === this.type ? a ? e.commands.command(({ tr: e }) => {
288
288
  let { pos: r } = i, a = i.start(), o = i.end(), s = n.doc.textBetween(a, o, "\n", "\n").split("\n"), c = 0, l = 0, u = r - a;
289
289
  for (let e = 0; e < s.length; e += 1) {
@@ -324,11 +324,11 @@ var D = (e, t) => {
324
324
  },
325
325
  addInputRules() {
326
326
  return [ne({
327
- find: Se,
327
+ find: xe,
328
328
  type: this.type,
329
329
  getAttributes: (e) => ({ language: e[1] })
330
330
  }), ne({
331
- find: Ce,
331
+ find: Se,
332
332
  type: this.type,
333
333
  getAttributes: (e) => ({ language: e[1] })
334
334
  })];
@@ -345,12 +345,12 @@ var D = (e, t) => {
345
345
  } }
346
346
  })];
347
347
  }
348
- }), Te = S.create({
348
+ }), we = S.create({
349
349
  name: "doc",
350
350
  topNode: !0,
351
351
  content: "block+",
352
352
  renderMarkdown: (e, t) => e.content ? t.renderChildren(e.content, "\n\n") : ""
353
- }), Ee = S.create({
353
+ }), Te = S.create({
354
354
  name: "hardBreak",
355
355
  markdownTokenName: "br",
356
356
  addOptions() {
@@ -394,7 +394,7 @@ var D = (e, t) => {
394
394
  "Shift-Enter": () => this.editor.commands.setHardBreak()
395
395
  };
396
396
  }
397
- }), De = S.create({
397
+ }), Ee = S.create({
398
398
  name: "heading",
399
399
  addOptions() {
400
400
  return {
@@ -455,7 +455,7 @@ var D = (e, t) => {
455
455
  getAttributes: { level: e }
456
456
  }));
457
457
  }
458
- }), Oe = S.create({
458
+ }), De = S.create({
459
459
  name: "horizontalRule",
460
460
  addOptions() {
461
461
  return {
@@ -497,7 +497,7 @@ var D = (e, t) => {
497
497
  type: this.type
498
498
  })];
499
499
  }
500
- }), ke = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, Ae = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g, je = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/, Me = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g, Ne = v.create({
500
+ }), Oe = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, ke = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g, Ae = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/, je = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g, Me = v.create({
501
501
  name: "italic",
502
502
  addOptions() {
503
503
  return { HTMLAttributes: {} };
@@ -545,28 +545,28 @@ var D = (e, t) => {
545
545
  },
546
546
  addInputRules() {
547
547
  return [u({
548
- find: ke,
548
+ find: Oe,
549
549
  type: this.type
550
550
  }), u({
551
- find: je,
551
+ find: Ae,
552
552
  type: this.type
553
553
  })];
554
554
  },
555
555
  addPasteRules() {
556
556
  return [d({
557
- find: Ae,
557
+ find: ke,
558
558
  type: this.type
559
559
  }), d({
560
- find: Me,
560
+ find: je,
561
561
  type: this.type
562
562
  })];
563
563
  }
564
- }), Pe = Object.defineProperty, Fe = (e, t) => {
565
- for (var n in t) Pe(e, n, {
564
+ }), Ne = Object.defineProperty, Pe = (e, t) => {
565
+ for (var n in t) Ne(e, n, {
566
566
  get: t[n],
567
567
  enumerable: !0
568
568
  });
569
- }, Ie = "listItem", Le = "textStyle", Re = /^\s*([-+*])\s$/, ze = S.create({
569
+ }, Fe = "listItem", Ie = "textStyle", Le = /^\s*([-+*])\s$/, Re = S.create({
570
570
  name: "bulletList",
571
571
  addOptions() {
572
572
  return {
@@ -598,26 +598,26 @@ var D = (e, t) => {
598
598
  renderMarkdown: (e, t) => e.content ? t.renderChildren(e.content, "\n") : "",
599
599
  markdownOptions: { indentsContent: !0 },
600
600
  addCommands() {
601
- return { toggleBulletList: () => ({ commands: e, chain: t }) => this.options.keepAttributes ? t().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(Ie, this.editor.getAttributes(Le)).run() : e.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks) };
601
+ return { toggleBulletList: () => ({ commands: e, chain: t }) => this.options.keepAttributes ? t().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(Fe, this.editor.getAttributes(Ie)).run() : e.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks) };
602
602
  },
603
603
  addKeyboardShortcuts() {
604
604
  return { "Mod-Shift-8": () => this.editor.commands.toggleBulletList() };
605
605
  },
606
606
  addInputRules() {
607
607
  let e = y({
608
- find: Re,
608
+ find: Le,
609
609
  type: this.type
610
610
  });
611
611
  return (this.options.keepMarks || this.options.keepAttributes) && (e = y({
612
- find: Re,
612
+ find: Le,
613
613
  type: this.type,
614
614
  keepMarks: this.options.keepMarks,
615
615
  keepAttributes: this.options.keepAttributes,
616
- getAttributes: () => this.editor.getAttributes(Le),
616
+ getAttributes: () => this.editor.getAttributes(Ie),
617
617
  editor: this.editor
618
618
  })), [e];
619
619
  }
620
- }), Be = (e, t, n) => {
620
+ }), ze = (e, t, n) => {
621
621
  let { selection: r } = e;
622
622
  if (!r.empty) return null;
623
623
  let { $from: i } = r;
@@ -648,24 +648,24 @@ var D = (e, t) => {
648
648
  insertPos: i.after(a),
649
649
  items: f
650
650
  };
651
- }, Ve = (e, t, r, i) => {
652
- let a = Be(e, r, i);
651
+ }, Be = (e, t, r, i) => {
652
+ let a = ze(e, r, i);
653
653
  if (!a) return !1;
654
654
  let { selection: o } = e, { nestedList: s, nestedListPos: c, insertPos: l, items: u } = a, d = e.tr;
655
655
  d.delete(c, c + s.nodeSize);
656
656
  let f = d.mapping.map(l);
657
657
  return d.insert(f, n.from(u)), d.setSelection(o.map(d.doc, d.mapping)), t && t(d), !0;
658
- }, He = (e, t, n) => Ve(e.state, e.view.dispatch, t, n), Ue = (e, t) => b.create({
658
+ }, Ve = (e, t, n) => Be(e.state, e.view.dispatch, t, n), He = (e, t) => b.create({
659
659
  name: `${e}BranchingDeleteKeymap`,
660
660
  priority: 101,
661
661
  addKeyboardShortcuts() {
662
- let n = () => He(this.editor, e, t);
662
+ let n = () => Ve(this.editor, e, t);
663
663
  return {
664
664
  Delete: n,
665
665
  "Mod-Delete": n
666
666
  };
667
667
  }
668
- }), We = [
668
+ }), Ue = [
669
669
  [1e3, "m"],
670
670
  [900, "cm"],
671
671
  [500, "d"],
@@ -679,10 +679,10 @@ var D = (e, t) => {
679
679
  [5, "v"],
680
680
  [4, "iv"],
681
681
  [1, "i"]
682
- ], O = "abcdefghijklmnopqrstuvwxyz", k = String.raw`\d+|[ivxlcdmIVXLCDM]+|${"[a-zA-Z]{1,2}"}`;
682
+ ], k = "abcdefghijklmnopqrstuvwxyz", We = String.raw`\d+|[ivxlcdmIVXLCDM]+|${"[a-zA-Z]{1,2}"}`;
683
683
  function A(e) {
684
684
  let t = e, n = "";
685
- for (let [e, r] of We) for (; t >= e;) n += r, t -= e;
685
+ for (let [e, r] of Ue) for (; t >= e;) n += r, t -= e;
686
686
  return n;
687
687
  }
688
688
  function j(e) {
@@ -692,7 +692,7 @@ function Ge(e) {
692
692
  let t = e.toLowerCase(), n = 0, r = 0;
693
693
  for (; n < t.length;) {
694
694
  let e = !1;
695
- for (let [i, a] of We) if (t.startsWith(a, n)) {
695
+ for (let [i, a] of Ue) if (t.startsWith(a, n)) {
696
696
  r += i, n += a.length, e = !0;
697
697
  break;
698
698
  }
@@ -715,9 +715,9 @@ function qe(e) {
715
715
  return 0;
716
716
  }
717
717
  function M(e) {
718
- if (e <= 26) return O[e - 1];
718
+ if (e <= 26) return k[e - 1];
719
719
  let t = Math.floor((e - 1) / 26) - 1, n = (e - 1) % 26;
720
- return t < 0 ? O[n] : O[t] + O[n];
720
+ return t < 0 ? k[n] : k[t] + k[n];
721
721
  }
722
722
  function N(e) {
723
723
  if (!(!e || /^\d+$/.test(e))) {
@@ -853,7 +853,7 @@ var tt = S.create({
853
853
  return "- ";
854
854
  }, n),
855
855
  addExtensions() {
856
- return [Ue(this.name, [this.options.bulletListTypeName, this.options.orderedListTypeName])];
856
+ return [He(this.name, [this.options.bulletListTypeName, this.options.orderedListTypeName])];
857
857
  },
858
858
  addKeyboardShortcuts() {
859
859
  return {
@@ -863,17 +863,17 @@ var tt = S.create({
863
863
  };
864
864
  }
865
865
  });
866
- Fe({}, {
866
+ Pe({}, {
867
867
  findListItemPos: () => F,
868
868
  getNextListDepth: () => I,
869
- handleBackspace: () => L,
870
- handleDelete: () => R,
869
+ handleBackspace: () => rt,
870
+ handleDelete: () => ot,
871
871
  hasListBefore: () => nt,
872
- hasListItemAfter: () => at,
873
- hasListItemBefore: () => ot,
874
- listItemHasSubList: () => st,
875
- nextListIsDeeper: () => rt,
876
- nextListIsHigher: () => it
872
+ hasListItemAfter: () => st,
873
+ hasListItemBefore: () => ct,
874
+ listItemHasSubList: () => lt,
875
+ nextListIsDeeper: () => it,
876
+ nextListIsHigher: () => at
877
877
  });
878
878
  var F = (e, t) => {
879
879
  let { $from: n } = t.selection, r = g(e, t.schema), i = null, a = n.depth, o = n.pos, s = null;
@@ -890,7 +890,7 @@ var F = (e, t) => {
890
890
  }, nt = (e, t, n) => {
891
891
  let { $anchor: r } = e.selection, i = Math.max(0, r.pos - 2), a = e.doc.resolve(i).node();
892
892
  return !(!a || !n.includes(a.type.name));
893
- }, L = (e, t, n) => {
893
+ }, rt = (e, t, n) => {
894
894
  if (e.commands.undoInputRule()) return !0;
895
895
  if (e.state.selection.from !== e.state.selection.to) return !1;
896
896
  if (!i(e.state, t) && nt(e.state, t, n)) {
@@ -910,29 +910,29 @@ var F = (e, t) => {
910
910
  }, o.end()).joinForward().run();
911
911
  }
912
912
  return !i(e.state, t) || !oe(e.state) ? !1 : e.chain().liftListItem(t).run();
913
- }, rt = (e, t) => {
913
+ }, it = (e, t) => {
914
914
  let n = I(e, t), r = F(e, t);
915
915
  return !r || !n ? !1 : n > r.depth;
916
- }, it = (e, t) => {
916
+ }, at = (e, t) => {
917
917
  let n = I(e, t), r = F(e, t);
918
918
  return !r || !n ? !1 : n < r.depth;
919
- }, R = (e, n) => {
919
+ }, ot = (e, n) => {
920
920
  if (!i(e.state, n) || !t(e.state, n)) return !1;
921
921
  let { selection: r } = e.state, { $from: a, $to: o } = r;
922
- return !r.empty && a.sameParent(o) ? !1 : rt(n, e.state) ? e.chain().focus(e.state.selection.from + 4).lift(n).joinBackward().run() : it(n, e.state) ? e.chain().joinForward().joinBackward().run() : e.commands.joinItemForward();
923
- }, at = (e, t) => {
922
+ return !r.empty && a.sameParent(o) ? !1 : it(n, e.state) ? e.chain().focus(e.state.selection.from + 4).lift(n).joinBackward().run() : at(n, e.state) ? e.chain().joinForward().joinBackward().run() : e.commands.joinItemForward();
923
+ }, st = (e, t) => {
924
924
  let { $anchor: n } = t.selection, r = t.doc.resolve(n.pos - n.parentOffset - 2);
925
925
  return !(r.index() === r.parent.childCount - 1 || r.nodeAfter?.type.name !== e);
926
- }, ot = (e, t) => {
926
+ }, ct = (e, t) => {
927
927
  let { $anchor: n } = t.selection, r = t.doc.resolve(n.pos - 2);
928
928
  return !(r.index() === 0 || r.nodeBefore?.type.name !== e);
929
- }, st = (e, t, n) => {
929
+ }, lt = (e, t, n) => {
930
930
  if (!n) return !1;
931
931
  let r = g(e, t.schema), i = !1;
932
932
  return n.descendants((e) => {
933
933
  e.type === r && (i = !0);
934
934
  }), i;
935
- }, ct = b.create({
935
+ }, ut = b.create({
936
936
  name: "listKeymap",
937
937
  addOptions() {
938
938
  return { listTypes: [{
@@ -948,46 +948,46 @@ var F = (e, t) => {
948
948
  Delete: ({ editor: e }) => {
949
949
  let t = !1;
950
950
  return this.options.listTypes.forEach(({ itemName: n }) => {
951
- e.state.schema.nodes[n] !== void 0 && R(e, n) && (t = !0);
951
+ e.state.schema.nodes[n] !== void 0 && ot(e, n) && (t = !0);
952
952
  }), t;
953
953
  },
954
954
  "Mod-Delete": ({ editor: e }) => {
955
955
  let t = !1;
956
956
  return this.options.listTypes.forEach(({ itemName: n }) => {
957
- e.state.schema.nodes[n] !== void 0 && R(e, n) && (t = !0);
957
+ e.state.schema.nodes[n] !== void 0 && ot(e, n) && (t = !0);
958
958
  }), t;
959
959
  },
960
960
  Backspace: ({ editor: e }) => {
961
961
  let t = !1;
962
962
  return this.options.listTypes.forEach(({ itemName: n, wrapperNames: r }) => {
963
- e.state.schema.nodes[n] !== void 0 && L(e, n, r) && (t = !0);
963
+ e.state.schema.nodes[n] !== void 0 && rt(e, n, r) && (t = !0);
964
964
  }), t;
965
965
  },
966
966
  "Mod-Backspace": ({ editor: e }) => {
967
967
  let t = !1;
968
968
  return this.options.listTypes.forEach(({ itemName: n, wrapperNames: r }) => {
969
- e.state.schema.nodes[n] !== void 0 && L(e, n, r) && (t = !0);
969
+ e.state.schema.nodes[n] !== void 0 && rt(e, n, r) && (t = !0);
970
970
  }), t;
971
971
  }
972
972
  };
973
973
  }
974
- }), z = RegExp(`^(\\s*)(${k})([.)])\\s+(.*)$`), lt = RegExp(`^(\\s*)(${k})([.)])\\s+`), ut = /^\s/, B = {
974
+ }), L = RegExp(`^(\\s*)(${We})([.)])\\s+(.*)$`), dt = /^\s/, R = {
975
975
  heading: /^#{1,6}(?:\s|$)/,
976
976
  bulletItem: /^[-+*]\s+/,
977
977
  codeFence: /^(?:```|~~~)/,
978
978
  thematicBreak: /^(?:(?:-[ \t]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})$/
979
979
  };
980
- function dt(e) {
981
- return z.test(e.trimStart());
982
- }
983
980
  function ft(e) {
984
- let t = e.trimStart();
985
- return B.bulletItem.test(t) || dt(t) || B.heading.test(t) || B.thematicBreak.test(t) && !t.startsWith("-") || /^>\s?/.test(t) || B.codeFence.test(t);
981
+ return L.test(e.trimStart());
986
982
  }
987
983
  function pt(e) {
988
- return Object.values(B).some((t) => t.test(e));
984
+ let t = e.trimStart();
985
+ return R.bulletItem.test(t) || ft(t) || R.heading.test(t) || R.thematicBreak.test(t) && !t.startsWith("-") || /^>\s?/.test(t) || R.codeFence.test(t);
989
986
  }
990
987
  function mt(e) {
988
+ return Object.values(R).some((t) => t.test(e));
989
+ }
990
+ function ht(e) {
991
991
  let t = [], n = [], r = !1;
992
992
  return e.forEach((e) => {
993
993
  if (r) {
@@ -998,7 +998,7 @@ function mt(e) {
998
998
  r = !0, n.push(e);
999
999
  return;
1000
1000
  }
1001
- if (t.length > 0 && ft(e)) {
1001
+ if (t.length > 0 && pt(e)) {
1002
1002
  r = !0, n.push(e);
1003
1003
  return;
1004
1004
  }
@@ -1008,21 +1008,21 @@ function mt(e) {
1008
1008
  blockLines: n
1009
1009
  };
1010
1010
  }
1011
- function ht(e) {
1011
+ function gt(e) {
1012
1012
  let t = [], n = 0, r = 0;
1013
1013
  for (; n < e.length;) {
1014
- let i = e[n], a = i.match(z);
1014
+ let i = e[n], a = i.match(L);
1015
1015
  if (!a) break;
1016
1016
  let [, o, s, c, l] = a, u = o.length, d = parseInt(s, 10), f = isNaN(d) ? N(s) : void 0, p = isNaN(d) ? P(s) : d, m = [l], h = n + 1, g = [i], _ = !1;
1017
1017
  for (; h < e.length;) {
1018
1018
  let t = e[h];
1019
- if (t.match(z)) break;
1019
+ if (t.match(L)) break;
1020
1020
  if (t.trim() === "") g.push(t), m.push(""), _ = !0, h += 1;
1021
- else if (t.match(ut)) {
1021
+ else if (t.match(dt)) {
1022
1022
  let e = t.length - t.trimStart().length, n = u + s.length + 1;
1023
1023
  g.push(t), m.push(t.slice(Math.min(e, n))), h += 1;
1024
1024
  } else {
1025
- if (_ || pt(t)) break;
1025
+ if (_ || mt(t)) break;
1026
1026
  g.push(t), m.push(t), h += 1;
1027
1027
  }
1028
1028
  }
@@ -1037,13 +1037,13 @@ function ht(e) {
1037
1037
  }
1038
1038
  return [t, r];
1039
1039
  }
1040
- var gt = RegExp(`^(${k})([.)])\\s+(.+)$`);
1041
- function _t(e) {
1040
+ var _t = RegExp(`^(${We})([.)])\\s+(.+)$`);
1041
+ function vt(e) {
1042
1042
  let t = e.split("\n").filter((e) => e.trim().length > 0);
1043
1043
  if (t.length === 0) return null;
1044
1044
  let n = [];
1045
1045
  for (let e of t) {
1046
- let t = e.trim().match(gt);
1046
+ let t = e.trim().match(_t);
1047
1047
  if (!t) return null;
1048
1048
  n.push({
1049
1049
  marker: t[1],
@@ -1065,12 +1065,12 @@ function _t(e) {
1065
1065
  }))
1066
1066
  } : null;
1067
1067
  }
1068
- function vt(e, t, n) {
1068
+ function yt(e, t, n) {
1069
1069
  let r = [], i = 0;
1070
1070
  for (; i < e.length;) {
1071
1071
  let a = e[i];
1072
1072
  if (a.indent === t) {
1073
- let { paragraphLines: o, blockLines: s } = mt(a.contentLines), c = o.join("\n").trim(), l = [];
1073
+ let { paragraphLines: o, blockLines: s } = ht(a.contentLines), c = o.join("\n").trim(), l = [];
1074
1074
  c && l.push({
1075
1075
  type: "paragraph",
1076
1076
  raw: c,
@@ -1084,7 +1084,7 @@ function vt(e, t, n) {
1084
1084
  let d = i + 1, f = [];
1085
1085
  for (; d < e.length && e[d].indent > t;) f.push(e[d]), d += 1;
1086
1086
  if (f.length > 0) {
1087
- let e = vt(f, Math.min(...f.map((e) => e.indent)), n);
1087
+ let e = yt(f, Math.min(...f.map((e) => e.indent)), n);
1088
1088
  l.push({
1089
1089
  type: "list",
1090
1090
  ordered: !0,
@@ -1103,7 +1103,7 @@ function vt(e, t, n) {
1103
1103
  }
1104
1104
  return r;
1105
1105
  }
1106
- function yt(e, t) {
1106
+ function bt(e, t) {
1107
1107
  return e.map((e) => {
1108
1108
  if (e.type !== "list_item") return t.parseChildren([e])[0];
1109
1109
  let n = [];
@@ -1125,8 +1125,8 @@ function yt(e, t) {
1125
1125
  };
1126
1126
  });
1127
1127
  }
1128
- var bt = "listItem", xt = "textStyle", St = /^(\d+)\.\s$/;
1129
- function Ct(e) {
1128
+ var xt = "listItem", St = "textStyle", Ct = /^(\d+)\.\s$/;
1129
+ function wt(e) {
1130
1130
  let t = e.match(/list-style-type\s*:\s*([^;]+)/i);
1131
1131
  if (!t) return null;
1132
1132
  switch (t[1].trim().toLowerCase()) {
@@ -1139,7 +1139,7 @@ function Ct(e) {
1139
1139
  default: return null;
1140
1140
  }
1141
1141
  }
1142
- var wt = S.create({
1142
+ var Tt = S.create({
1143
1143
  name: "orderedList",
1144
1144
  addOptions() {
1145
1145
  return {
@@ -1166,14 +1166,14 @@ var wt = S.create({
1166
1166
  if (t) return t;
1167
1167
  let n = e.getAttribute("style");
1168
1168
  if (n) {
1169
- let e = Ct(n);
1169
+ let e = wt(n);
1170
1170
  if (e) return e;
1171
1171
  }
1172
1172
  let r = e.querySelector("li");
1173
1173
  if (r) {
1174
1174
  let e = r.getAttribute("style");
1175
1175
  if (e) {
1176
- let t = Ct(e);
1176
+ let t = wt(e);
1177
1177
  if (t) return t;
1178
1178
  }
1179
1179
  }
@@ -1196,7 +1196,7 @@ var wt = S.create({
1196
1196
  markdownTokenName: "list",
1197
1197
  parseMarkdown: (e, t) => {
1198
1198
  if (e.type !== "list" || !e.ordered) return [];
1199
- let n = e.start || 1, r = e.typeMarker, i = e.items ? yt(e.items, t) : [], a = {};
1199
+ let n = e.start || 1, r = e.typeMarker, i = e.items ? bt(e.items, t) : [], a = {};
1200
1200
  return n !== 1 && (a.start = n), r && (a.type = r), Object.keys(a).length > 0 ? {
1201
1201
  type: "orderedList",
1202
1202
  attrs: a,
@@ -1210,14 +1210,11 @@ var wt = S.create({
1210
1210
  markdownTokenizer: {
1211
1211
  name: "orderedList",
1212
1212
  level: "block",
1213
- start: (e) => {
1214
- let t = e.match(lt)?.index;
1215
- return t === void 0 ? -1 : t;
1216
- },
1213
+ start: () => -1,
1217
1214
  tokenize: (e, t, n) => {
1218
- let r = e.split("\n"), [i, a] = ht(r);
1215
+ let r = e.split("\n"), [i, a] = gt(r);
1219
1216
  if (i.length === 0) return;
1220
- let o = vt(i, i[0].indent, n);
1217
+ let o = yt(i, i[0].indent, n);
1221
1218
  if (o.length !== 0) return {
1222
1219
  type: "list",
1223
1220
  ordered: !0,
@@ -1230,7 +1227,7 @@ var wt = S.create({
1230
1227
  },
1231
1228
  markdownOptions: { indentsContent: !0 },
1232
1229
  addCommands() {
1233
- return { toggleOrderedList: () => ({ commands: e, chain: t }) => this.options.keepAttributes ? t().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(bt, this.editor.getAttributes(xt)).run() : e.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks) };
1230
+ return { toggleOrderedList: () => ({ commands: e, chain: t }) => this.options.keepAttributes ? t().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(xt, this.editor.getAttributes(St)).run() : e.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks) };
1234
1231
  },
1235
1232
  addKeyboardShortcuts() {
1236
1233
  return { "Mod-Shift-7": () => this.editor.commands.toggleOrderedList() };
@@ -1240,7 +1237,7 @@ var wt = S.create({
1240
1237
  if ((t.clipboardData?.getData("text/html"))?.trim()) return !1;
1241
1238
  let n = t.clipboardData?.getData("text/plain");
1242
1239
  if (!n) return !1;
1243
- let r = _t(n);
1240
+ let r = vt(n);
1244
1241
  if (!r) return !1;
1245
1242
  try {
1246
1243
  let t = e.state.schema.nodeFromJSON(r), n = e.state.tr.replaceSelectionWith(t);
@@ -1252,25 +1249,25 @@ var wt = S.create({
1252
1249
  },
1253
1250
  addInputRules() {
1254
1251
  let e = (e, t) => (!t.attrs.type || t.attrs.type === "1") && t.childCount + t.attrs.start === +e[1], t = y({
1255
- find: St,
1252
+ find: Ct,
1256
1253
  type: this.type,
1257
1254
  getAttributes: (e) => ({ start: +e[1] }),
1258
1255
  joinPredicate: e
1259
1256
  });
1260
1257
  return (this.options.keepMarks || this.options.keepAttributes) && (t = y({
1261
- find: St,
1258
+ find: Ct,
1262
1259
  type: this.type,
1263
1260
  keepMarks: this.options.keepMarks,
1264
1261
  keepAttributes: this.options.keepAttributes,
1265
1262
  getAttributes: (e) => ({
1266
1263
  start: +e[1],
1267
- ...this.editor.getAttributes(xt)
1264
+ ...this.editor.getAttributes(St)
1268
1265
  }),
1269
1266
  joinPredicate: e,
1270
1267
  editor: this.editor
1271
1268
  })), [t];
1272
1269
  }
1273
- }), Tt = /^\s*(\[([( |x])?\])\s$/, Et = S.create({
1270
+ }), Et = /^\s*(\[([( |x])?\])\s$/, Dt = S.create({
1274
1271
  name: "taskItem",
1275
1272
  addOptions() {
1276
1273
  return {
@@ -1326,7 +1323,7 @@ var wt = S.create({
1326
1323
  },
1327
1324
  renderMarkdown: (e, t) => te(e, t, `- [${e.attrs?.checked ? "x" : " "}] `),
1328
1325
  addExtensions() {
1329
- return this.options.nested ? [Ue(this.name, [this.options.taskListTypeName])] : [];
1326
+ return this.options.nested ? [He(this.name, [this.options.taskListTypeName])] : [];
1330
1327
  },
1331
1328
  addKeyboardShortcuts() {
1332
1329
  let e = {
@@ -1383,12 +1380,12 @@ var wt = S.create({
1383
1380
  },
1384
1381
  addInputRules() {
1385
1382
  return [y({
1386
- find: Tt,
1383
+ find: Et,
1387
1384
  type: this.type,
1388
1385
  getAttributes: (e) => ({ checked: e[e.length - 1] === "x" })
1389
1386
  })];
1390
1387
  }
1391
- }), Dt = S.create({
1388
+ }), Ot = S.create({
1392
1389
  name: "taskList",
1393
1390
  addOptions() {
1394
1391
  return {
@@ -1490,12 +1487,12 @@ b.create({
1490
1487
  name: "listKit",
1491
1488
  addExtensions() {
1492
1489
  let e = [];
1493
- return this.options.bulletList !== !1 && e.push(ze.configure(this.options.bulletList)), this.options.listItem !== !1 && e.push(tt.configure(this.options.listItem)), this.options.listKeymap !== !1 && e.push(ct.configure(this.options.listKeymap)), this.options.orderedList !== !1 && e.push(wt.configure(this.options.orderedList)), this.options.taskItem !== !1 && e.push(Et.configure(this.options.taskItem)), this.options.taskList !== !1 && e.push(Dt.configure(this.options.taskList)), e;
1490
+ return this.options.bulletList !== !1 && e.push(Re.configure(this.options.bulletList)), this.options.listItem !== !1 && e.push(tt.configure(this.options.listItem)), this.options.listKeymap !== !1 && e.push(ut.configure(this.options.listKeymap)), this.options.orderedList !== !1 && e.push(Tt.configure(this.options.orderedList)), this.options.taskItem !== !1 && e.push(Dt.configure(this.options.taskItem)), this.options.taskList !== !1 && e.push(Ot.configure(this.options.taskList)), e;
1494
1491
  }
1495
1492
  });
1496
1493
  //#endregion
1497
- //#region ../../node_modules/.pnpm/@tiptap+extension-paragraph@3.27.4_@tiptap+core@3.27.4_@tiptap+pm@3.27.4_/node_modules/@tiptap/extension-paragraph/dist/index.js
1498
- var V = "&nbsp;", H = "\xA0", Ot = S.create({
1494
+ //#region ../../node_modules/.pnpm/@tiptap+extension-paragraph@3.28.0_@tiptap+core@3.28.0_@tiptap+pm@3.28.0_/node_modules/@tiptap/extension-paragraph/dist/index.js
1495
+ var z = "&nbsp;", B = "\xA0", kt = S.create({
1499
1496
  name: "paragraph",
1500
1497
  priority: 1e3,
1501
1498
  addOptions() {
@@ -1517,14 +1514,14 @@ var V = "&nbsp;", H = "\xA0", Ot = S.create({
1517
1514
  let n = e.tokens || [];
1518
1515
  if (n.length === 1 && n[0].type === "image") return t.parseChildren([n[0]]);
1519
1516
  let r = t.parseInline(n);
1520
- return n.length === 1 && n[0].type === "text" && (n[0].raw === V || n[0].text === V || n[0].raw === H || n[0].text === H) && r.length === 1 && r[0].type === "text" && (r[0].text === V || r[0].text === H) ? t.createNode("paragraph", void 0, []) : t.createNode("paragraph", void 0, r);
1517
+ return n.length === 1 && n[0].type === "text" && (n[0].raw === z || n[0].text === z || n[0].raw === B || n[0].text === B) && r.length === 1 && r[0].type === "text" && (r[0].text === z || r[0].text === B) ? t.createNode("paragraph", void 0, []) : t.createNode("paragraph", void 0, r);
1521
1518
  },
1522
1519
  renderMarkdown: (e, t, n) => {
1523
1520
  if (!e) return "";
1524
1521
  let r = Array.isArray(e.content) ? e.content : [];
1525
1522
  if (r.length === 0) {
1526
1523
  let e = Array.isArray(n?.previousNode?.content) ? n.previousNode.content : [];
1527
- return n?.previousNode?.type === "paragraph" && e.length === 0 ? V : "";
1524
+ return n?.previousNode?.type === "paragraph" && e.length === 0 ? z : "";
1528
1525
  }
1529
1526
  return t.renderChildren(r);
1530
1527
  },
@@ -1534,7 +1531,7 @@ var V = "&nbsp;", H = "\xA0", Ot = S.create({
1534
1531
  addKeyboardShortcuts() {
1535
1532
  return { "Mod-Alt-0": () => this.editor.commands.setParagraph() };
1536
1533
  }
1537
- }), kt = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/, At = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g, jt = v.create({
1534
+ }), At = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/, jt = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g, Mt = v.create({
1538
1535
  name: "strike",
1539
1536
  addOptions() {
1540
1537
  return { HTMLAttributes: {} };
@@ -1573,17 +1570,17 @@ var V = "&nbsp;", H = "\xA0", Ot = S.create({
1573
1570
  },
1574
1571
  addInputRules() {
1575
1572
  return [u({
1576
- find: kt,
1573
+ find: At,
1577
1574
  type: this.type
1578
1575
  })];
1579
1576
  },
1580
1577
  addPasteRules() {
1581
1578
  return [d({
1582
- find: At,
1579
+ find: jt,
1583
1580
  type: this.type
1584
1581
  })];
1585
1582
  }
1586
- }), Mt = S.create({
1583
+ }), Nt = S.create({
1587
1584
  name: "text",
1588
1585
  group: "inline",
1589
1586
  parseMarkdown: (e) => ({
@@ -1594,12 +1591,12 @@ var V = "&nbsp;", H = "\xA0", Ot = S.create({
1594
1591
  });
1595
1592
  //#endregion
1596
1593
  //#region ../../node_modules/.pnpm/prosemirror-dropcursor@1.8.2/node_modules/prosemirror-dropcursor/dist/index.js
1597
- function Nt(e = {}) {
1594
+ function Pt(e = {}) {
1598
1595
  return new T({ view(t) {
1599
- return new Pt(t, e);
1596
+ return new Ft(t, e);
1600
1597
  } });
1601
1598
  }
1602
- var Pt = class {
1599
+ var Ft = class {
1603
1600
  constructor(e, t) {
1604
1601
  this.editorView = e, this.cursorPos = null, this.element = null, this.timeout = -1, this.width = t.width ?? 1, this.color = t.color === !1 ? void 0 : t.color || "black", this.class = t.class, this.handlers = [
1605
1602
  "dragover",
@@ -1690,7 +1687,7 @@ var Pt = class {
1690
1687
  dragleave(e) {
1691
1688
  this.editorView.dom.contains(e.relatedTarget) || this.setCursor(null);
1692
1689
  }
1693
- }, U = class t extends e {
1690
+ }, V = class t extends e {
1694
1691
  constructor(e) {
1695
1692
  super(e, e);
1696
1693
  }
@@ -1715,11 +1712,11 @@ var Pt = class {
1715
1712
  return new t(e.resolve(n.pos));
1716
1713
  }
1717
1714
  getBookmark() {
1718
- return new Ft(this.anchor);
1715
+ return new It(this.anchor);
1719
1716
  }
1720
1717
  static valid(e) {
1721
1718
  let t = e.parent;
1722
- if (t.inlineContent || !Lt(e) || !Rt(e)) return !1;
1719
+ if (t.inlineContent || !Rt(e) || !zt(e)) return !1;
1723
1720
  let n = t.type.spec.allowGapCursor;
1724
1721
  if (n != null) return n;
1725
1722
  let r = t.contentMatchAt(e.index()).defaultType;
@@ -1756,8 +1753,8 @@ var Pt = class {
1756
1753
  }
1757
1754
  }
1758
1755
  };
1759
- U.prototype.visible = !1, U.findFrom = U.findGapCursorFrom, e.jsonID("gapcursor", U);
1760
- var Ft = class t {
1756
+ V.prototype.visible = !1, V.findFrom = V.findGapCursorFrom, e.jsonID("gapcursor", V);
1757
+ var It = class t {
1761
1758
  constructor(e) {
1762
1759
  this.pos = e;
1763
1760
  }
@@ -1766,13 +1763,13 @@ var Ft = class t {
1766
1763
  }
1767
1764
  resolve(t) {
1768
1765
  let n = t.resolve(this.pos);
1769
- return U.valid(n) ? new U(n) : e.near(n);
1766
+ return V.valid(n) ? new V(n) : e.near(n);
1770
1767
  }
1771
1768
  };
1772
- function It(e) {
1769
+ function Lt(e) {
1773
1770
  return e.isAtom || e.spec.isolating || e.spec.createGapCursor;
1774
1771
  }
1775
- function Lt(e) {
1772
+ function Rt(e) {
1776
1773
  for (let t = e.depth; t >= 0; t--) {
1777
1774
  let n = e.index(t), r = e.node(t);
1778
1775
  if (n == 0) {
@@ -1780,13 +1777,13 @@ function Lt(e) {
1780
1777
  continue;
1781
1778
  }
1782
1779
  for (let e = r.child(n - 1);; e = e.lastChild) {
1783
- if (e.childCount == 0 && !e.inlineContent || It(e.type)) return !0;
1780
+ if (e.childCount == 0 && !e.inlineContent || Lt(e.type)) return !0;
1784
1781
  if (e.inlineContent) return !1;
1785
1782
  }
1786
1783
  }
1787
1784
  return !0;
1788
1785
  }
1789
- function Rt(e) {
1786
+ function zt(e) {
1790
1787
  for (let t = e.depth; t >= 0; t--) {
1791
1788
  let n = e.indexAfter(t), r = e.node(t);
1792
1789
  if (n == r.childCount) {
@@ -1794,30 +1791,30 @@ function Rt(e) {
1794
1791
  continue;
1795
1792
  }
1796
1793
  for (let e = r.child(n);; e = e.firstChild) {
1797
- if (e.childCount == 0 && !e.inlineContent || It(e.type)) return !0;
1794
+ if (e.childCount == 0 && !e.inlineContent || Lt(e.type)) return !0;
1798
1795
  if (e.inlineContent) return !1;
1799
1796
  }
1800
1797
  }
1801
1798
  return !0;
1802
1799
  }
1803
- function zt() {
1800
+ function Bt() {
1804
1801
  return new T({ props: {
1805
- decorations: Ut,
1802
+ decorations: Wt,
1806
1803
  createSelectionBetween(e, t, n) {
1807
- return t.pos == n.pos && U.valid(n) ? new U(n) : null;
1804
+ return t.pos == n.pos && V.valid(n) ? new V(n) : null;
1808
1805
  },
1809
- handleClick: Vt,
1810
- handleKeyDown: Bt,
1811
- handleDOMEvents: { beforeinput: Ht }
1806
+ handleClick: Ht,
1807
+ handleKeyDown: Vt,
1808
+ handleDOMEvents: { beforeinput: Ut }
1812
1809
  } });
1813
1810
  }
1814
- var Bt = h({
1815
- ArrowLeft: W("horiz", -1),
1816
- ArrowRight: W("horiz", 1),
1817
- ArrowUp: W("vert", -1),
1818
- ArrowDown: W("vert", 1)
1811
+ var Vt = h({
1812
+ ArrowLeft: H("horiz", -1),
1813
+ ArrowRight: H("horiz", 1),
1814
+ ArrowUp: H("vert", -1),
1815
+ ArrowDown: H("vert", 1)
1819
1816
  });
1820
- function W(e, t) {
1817
+ function H(e, t) {
1821
1818
  let n = e == "vert" ? t > 0 ? "down" : "up" : t > 0 ? "right" : "left";
1822
1819
  return function(e, r, i) {
1823
1820
  let a = e.selection, o = t > 0 ? a.$to : a.$from, s = a.empty;
@@ -1825,22 +1822,22 @@ function W(e, t) {
1825
1822
  if (!i.endOfTextblock(n) || o.depth == 0) return !1;
1826
1823
  s = !1, o = e.doc.resolve(t > 0 ? o.after() : o.before());
1827
1824
  }
1828
- let c = U.findGapCursorFrom(o, t, s);
1829
- return c ? (r && r(e.tr.setSelection(new U(c))), !0) : !1;
1825
+ let c = V.findGapCursorFrom(o, t, s);
1826
+ return c ? (r && r(e.tr.setSelection(new V(c))), !0) : !1;
1830
1827
  };
1831
1828
  }
1832
- function Vt(e, t, n) {
1829
+ function Ht(e, t, n) {
1833
1830
  if (!e || !e.editable) return !1;
1834
1831
  let r = e.state.doc.resolve(t);
1835
- if (!U.valid(r)) return !1;
1832
+ if (!V.valid(r)) return !1;
1836
1833
  let i = e.posAtCoords({
1837
1834
  left: n.clientX,
1838
1835
  top: n.clientY
1839
1836
  });
1840
- return i && i.inside > -1 && _.isSelectable(e.state.doc.nodeAt(i.inside)) ? !1 : (e.dispatch(e.state.tr.setSelection(new U(r))), !0);
1837
+ return i && i.inside > -1 && _.isSelectable(e.state.doc.nodeAt(i.inside)) ? !1 : (e.dispatch(e.state.tr.setSelection(new V(r))), !0);
1841
1838
  }
1842
- function Ht(e, t) {
1843
- if (t.inputType != "insertCompositionText" || !(e.state.selection instanceof U)) return !1;
1839
+ function Ut(e, t) {
1840
+ if (t.inputType != "insertCompositionText" || !(e.state.selection instanceof V)) return !1;
1844
1841
  let { $from: r } = e.state.selection, i = r.parent.contentMatchAt(r.index()).findWrapping(e.state.schema.nodes.text);
1845
1842
  if (!i) return !1;
1846
1843
  let a = n.empty;
@@ -1848,36 +1845,36 @@ function Ht(e, t) {
1848
1845
  let s = e.state.tr.replace(r.pos, r.pos, new o(a, 0, 0));
1849
1846
  return s.setSelection(w.near(s.doc.resolve(r.pos + 1))), e.dispatch(s), !1;
1850
1847
  }
1851
- function Ut(e) {
1852
- if (!(e.selection instanceof U)) return null;
1848
+ function Wt(e) {
1849
+ if (!(e.selection instanceof V)) return null;
1853
1850
  let t = document.createElement("div");
1854
1851
  return t.className = "ProseMirror-gapcursor", E.create(e.doc, [C.widget(e.selection.head, t, { key: "gapcursor" })]);
1855
1852
  }
1856
1853
  //#endregion
1857
1854
  //#region ../../node_modules/.pnpm/rope-sequence@1.3.4/node_modules/rope-sequence/dist/index.js
1858
- var G = 200, K = function() {};
1859
- K.prototype.append = function(e) {
1860
- return e.length ? (e = K.from(e), !this.length && e || e.length < G && this.leafAppend(e) || this.length < G && e.leafPrepend(this) || this.appendInner(e)) : this;
1861
- }, K.prototype.prepend = function(e) {
1862
- return e.length ? K.from(e).append(this) : this;
1863
- }, K.prototype.appendInner = function(e) {
1864
- return new Gt(this, e);
1865
- }, K.prototype.slice = function(e, t) {
1866
- return e === void 0 && (e = 0), t === void 0 && (t = this.length), e >= t ? K.empty : this.sliceInner(Math.max(0, e), Math.min(this.length, t));
1867
- }, K.prototype.get = function(e) {
1855
+ var U = 200, W = function() {};
1856
+ W.prototype.append = function(e) {
1857
+ return e.length ? (e = W.from(e), !this.length && e || e.length < U && this.leafAppend(e) || this.length < U && e.leafPrepend(this) || this.appendInner(e)) : this;
1858
+ }, W.prototype.prepend = function(e) {
1859
+ return e.length ? W.from(e).append(this) : this;
1860
+ }, W.prototype.appendInner = function(e) {
1861
+ return new Kt(this, e);
1862
+ }, W.prototype.slice = function(e, t) {
1863
+ return e === void 0 && (e = 0), t === void 0 && (t = this.length), e >= t ? W.empty : this.sliceInner(Math.max(0, e), Math.min(this.length, t));
1864
+ }, W.prototype.get = function(e) {
1868
1865
  if (!(e < 0 || e >= this.length)) return this.getInner(e);
1869
- }, K.prototype.forEach = function(e, t, n) {
1866
+ }, W.prototype.forEach = function(e, t, n) {
1870
1867
  t === void 0 && (t = 0), n === void 0 && (n = this.length), t <= n ? this.forEachInner(e, t, n, 0) : this.forEachInvertedInner(e, t, n, 0);
1871
- }, K.prototype.map = function(e, t, n) {
1868
+ }, W.prototype.map = function(e, t, n) {
1872
1869
  t === void 0 && (t = 0), n === void 0 && (n = this.length);
1873
1870
  var r = [];
1874
1871
  return this.forEach(function(t, n) {
1875
1872
  return r.push(e(t, n));
1876
1873
  }, t, n), r;
1877
- }, K.from = function(e) {
1878
- return e instanceof K ? e : e && e.length ? new Wt(e) : K.empty;
1874
+ }, W.from = function(e) {
1875
+ return e instanceof W ? e : e && e.length ? new Gt(e) : W.empty;
1879
1876
  };
1880
- var Wt = /* @__PURE__ */ function(e) {
1877
+ var Gt = /* @__PURE__ */ function(e) {
1881
1878
  function t(t) {
1882
1879
  e.call(this), this.values = t;
1883
1880
  }
@@ -1897,17 +1894,17 @@ var Wt = /* @__PURE__ */ function(e) {
1897
1894
  }, t.prototype.forEachInvertedInner = function(e, t, n, r) {
1898
1895
  for (var i = t - 1; i >= n; i--) if (e(this.values[i], r + i) === !1) return !1;
1899
1896
  }, t.prototype.leafAppend = function(e) {
1900
- if (this.length + e.length <= G) return new t(this.values.concat(e.flatten()));
1897
+ if (this.length + e.length <= U) return new t(this.values.concat(e.flatten()));
1901
1898
  }, t.prototype.leafPrepend = function(e) {
1902
- if (this.length + e.length <= G) return new t(e.flatten().concat(this.values));
1899
+ if (this.length + e.length <= U) return new t(e.flatten().concat(this.values));
1903
1900
  }, n.length.get = function() {
1904
1901
  return this.values.length;
1905
1902
  }, n.depth.get = function() {
1906
1903
  return 0;
1907
1904
  }, Object.defineProperties(t.prototype, n), t;
1908
- }(K);
1909
- K.empty = new Wt([]);
1910
- var Gt = /* @__PURE__ */ function(e) {
1905
+ }(W);
1906
+ W.empty = new Gt([]);
1907
+ var Kt = /* @__PURE__ */ function(e) {
1911
1908
  function t(t, n) {
1912
1909
  e.call(this), this.left = t, this.right = n, this.length = t.length + n.length, this.depth = Math.max(t.depth, n.depth) + 1;
1913
1910
  }
@@ -1934,7 +1931,7 @@ var Gt = /* @__PURE__ */ function(e) {
1934
1931
  }, t.prototype.appendInner = function(e) {
1935
1932
  return this.left.depth >= Math.max(this.right.depth, e.depth) + 1 ? new t(this.left, new t(this.right, e)) : new t(this, e);
1936
1933
  }, t;
1937
- }(K), Kt = 500, q = class e {
1934
+ }(W), qt = 500, G = class e {
1938
1935
  constructor(e, t) {
1939
1936
  this.items = e, this.eventCount = t;
1940
1937
  }
@@ -1954,9 +1951,9 @@ var Gt = /* @__PURE__ */ function(e) {
1954
1951
  return;
1955
1952
  }
1956
1953
  if (i) {
1957
- u.push(new J(t.map));
1954
+ u.push(new K(t.map));
1958
1955
  let e = t.step.map(i.slice(a)), n;
1959
- e && o.maybeStep(e).doc && (n = o.mapping.maps[o.mapping.maps.length - 1], l.push(new J(n, void 0, void 0, l.length + u.length))), a--, n && i.appendMap(n, a);
1956
+ e && o.maybeStep(e).doc && (n = o.mapping.maps[o.mapping.maps.length - 1], l.push(new K(n, void 0, void 0, l.length + u.length))), a--, n && i.appendMap(n, a);
1960
1957
  } else o.maybeStep(t.step);
1961
1958
  if (t.selection) return s = i ? t.selection.map(i.slice(a)) : t.selection, c = new e(this.items.slice(0, r).append(u.reverse().concat(l)), this.eventCount - 1), !1;
1962
1959
  }, this.items.length, 0), {
@@ -1968,11 +1965,11 @@ var Gt = /* @__PURE__ */ function(e) {
1968
1965
  addTransform(t, n, r, i) {
1969
1966
  let a = [], o = this.eventCount, s = this.items, c = !i && s.length ? s.get(s.length - 1) : null;
1970
1967
  for (let e = 0; e < t.steps.length; e++) {
1971
- let r = t.steps[e].invert(t.docs[e]), l = new J(t.mapping.maps[e], r, n), u;
1968
+ let r = t.steps[e].invert(t.docs[e]), l = new K(t.mapping.maps[e], r, n), u;
1972
1969
  (u = c && c.merge(l)) && (l = u, e ? a.pop() : s = s.slice(0, s.length - 1)), a.push(l), n &&= (o++, void 0), i || (c = l);
1973
1970
  }
1974
1971
  let l = o - r.depth;
1975
- return l > Jt && (s = qt(s, l), o -= l), new e(s.append(a), o);
1972
+ return l > Yt && (s = Jt(s, l), o -= l), new e(s.append(a), o);
1976
1973
  }
1977
1974
  remapping(e, t) {
1978
1975
  let n = new l();
@@ -1982,7 +1979,7 @@ var Gt = /* @__PURE__ */ function(e) {
1982
1979
  }, e, t), n;
1983
1980
  }
1984
1981
  addMaps(t) {
1985
- return this.eventCount == 0 ? this : new e(this.items.append(t.map((e) => new J(e))), this.eventCount);
1982
+ return this.eventCount == 0 ? this : new e(this.items.append(t.map((e) => new K(e))), this.eventCount);
1986
1983
  }
1987
1984
  rebased(t, n) {
1988
1985
  if (!this.eventCount) return this;
@@ -1998,13 +1995,13 @@ var Gt = /* @__PURE__ */ function(e) {
1998
1995
  let i = a.maps[n];
1999
1996
  if (e.step) {
2000
1997
  let o = t.steps[n].invert(t.docs[n]), l = e.selection && e.selection.map(a.slice(c + 1, n));
2001
- l && s++, r.push(new J(i, o, l));
2002
- } else r.push(new J(i));
1998
+ l && s++, r.push(new K(i, o, l));
1999
+ } else r.push(new K(i));
2003
2000
  }, i);
2004
2001
  let l = [];
2005
- for (let e = n; e < o; e++) l.push(new J(a.maps[e]));
2002
+ for (let e = n; e < o; e++) l.push(new K(a.maps[e]));
2006
2003
  let u = this.items.slice(0, i).append(l).append(r), d = new e(u, s);
2007
- return d.emptyItemCount() > Kt && (d = d.compress(this.items.length - r.length)), d;
2004
+ return d.emptyItemCount() > qt && (d = d.compress(this.items.length - r.length)), d;
2008
2005
  }
2009
2006
  emptyItemCount() {
2010
2007
  let e = 0;
@@ -2021,21 +2018,21 @@ var Gt = /* @__PURE__ */ function(e) {
2021
2018
  if (r--, o && n.appendMap(o, r), t) {
2022
2019
  let s = e.selection && e.selection.map(n.slice(r));
2023
2020
  s && a++;
2024
- let c = new J(o.invert(), t, s), l, u = i.length - 1;
2021
+ let c = new K(o.invert(), t, s), l, u = i.length - 1;
2025
2022
  (l = i.length && i[u].merge(c)) ? i[u] = l : i.push(c);
2026
2023
  }
2027
2024
  } else e.map && r--;
2028
- }, this.items.length, 0), new e(K.from(i.reverse()), a);
2025
+ }, this.items.length, 0), new e(W.from(i.reverse()), a);
2029
2026
  }
2030
2027
  };
2031
- q.empty = new q(K.empty, 0);
2032
- function qt(e, t) {
2028
+ G.empty = new G(W.empty, 0);
2029
+ function Jt(e, t) {
2033
2030
  let n;
2034
2031
  return e.forEach((e, r) => {
2035
2032
  if (e.selection && t-- == 0) return n = r, !1;
2036
2033
  }), e.slice(n);
2037
2034
  }
2038
- var J = class e {
2035
+ var K = class e {
2039
2036
  constructor(e, t, n, r) {
2040
2037
  this.map = e, this.step = t, this.selection = n, this.mirrorOffset = r;
2041
2038
  }
@@ -2045,25 +2042,25 @@ var J = class e {
2045
2042
  if (n) return new e(n.getMap().invert(), n, this.selection);
2046
2043
  }
2047
2044
  }
2048
- }, Y = class {
2045
+ }, q = class {
2049
2046
  constructor(e, t, n, r, i) {
2050
2047
  this.done = e, this.undone = t, this.prevRanges = n, this.prevTime = r, this.prevComposition = i;
2051
2048
  }
2052
- }, Jt = 20;
2053
- function Yt(e, t, n, r) {
2049
+ }, Yt = 20;
2050
+ function Xt(e, t, n, r) {
2054
2051
  let i = n.getMeta(Z), a;
2055
2052
  if (i) return i.historyState;
2056
- n.getMeta(nn) && (e = new Y(e.done, e.undone, null, 0, -1));
2053
+ n.getMeta(tn) && (e = new q(e.done, e.undone, null, 0, -1));
2057
2054
  let o = n.getMeta("appendedTransaction");
2058
2055
  if (n.steps.length == 0) return e;
2059
- if (o && o.getMeta(Z)) return o.getMeta(Z).redo ? new Y(e.done.addTransform(n, void 0, r, X(t)), e.undone, Zt(n.mapping.maps), e.prevTime, e.prevComposition) : new Y(e.done, e.undone.addTransform(n, void 0, r, X(t)), null, e.prevTime, e.prevComposition);
2056
+ if (o && o.getMeta(Z)) return o.getMeta(Z).redo ? new q(e.done.addTransform(n, void 0, r, X(t)), e.undone, Qt(n.mapping.maps), e.prevTime, e.prevComposition) : new q(e.done, e.undone.addTransform(n, void 0, r, X(t)), null, e.prevTime, e.prevComposition);
2060
2057
  if (n.getMeta("addToHistory") !== !1 && !(o && o.getMeta("addToHistory") === !1)) {
2061
- let i = n.getMeta("composition"), a = e.prevTime == 0 || !o && e.prevComposition != i && (e.prevTime < (n.time || 0) - r.newGroupDelay || !Xt(n, e.prevRanges)), s = o ? Qt(e.prevRanges, n.mapping) : Zt(n.mapping.maps);
2062
- return new Y(e.done.addTransform(n, a ? t.selection.getBookmark() : void 0, r, X(t)), q.empty, s, n.time, i ?? e.prevComposition);
2063
- } else if (a = n.getMeta("rebased")) return new Y(e.done.rebased(n, a), e.undone.rebased(n, a), Qt(e.prevRanges, n.mapping), e.prevTime, e.prevComposition);
2064
- else return new Y(e.done.addMaps(n.mapping.maps), e.undone.addMaps(n.mapping.maps), Qt(e.prevRanges, n.mapping), e.prevTime, e.prevComposition);
2058
+ let i = n.getMeta("composition"), a = e.prevTime == 0 || !o && e.prevComposition != i && (e.prevTime < (n.time || 0) - r.newGroupDelay || !Zt(n, e.prevRanges)), s = o ? J(e.prevRanges, n.mapping) : Qt(n.mapping.maps);
2059
+ return new q(e.done.addTransform(n, a ? t.selection.getBookmark() : void 0, r, X(t)), G.empty, s, n.time, i ?? e.prevComposition);
2060
+ } else if (a = n.getMeta("rebased")) return new q(e.done.rebased(n, a), e.undone.rebased(n, a), J(e.prevRanges, n.mapping), e.prevTime, e.prevComposition);
2061
+ else return new q(e.done.addMaps(n.mapping.maps), e.undone.addMaps(n.mapping.maps), J(e.prevRanges, n.mapping), e.prevTime, e.prevComposition);
2065
2062
  }
2066
- function Xt(e, t) {
2063
+ function Zt(e, t) {
2067
2064
  if (!t) return !1;
2068
2065
  if (!e.docChanged) return !0;
2069
2066
  let n = !1;
@@ -2071,12 +2068,12 @@ function Xt(e, t) {
2071
2068
  for (let i = 0; i < t.length; i += 2) e <= t[i + 1] && r >= t[i] && (n = !0);
2072
2069
  }), n;
2073
2070
  }
2074
- function Zt(e) {
2071
+ function Qt(e) {
2075
2072
  let t = [];
2076
2073
  for (let n = e.length - 1; n >= 0 && t.length == 0; n--) e[n].forEach((e, n, r, i) => t.push(r, i));
2077
2074
  return t;
2078
2075
  }
2079
- function Qt(e, t) {
2076
+ function J(e, t) {
2080
2077
  if (!e) return null;
2081
2078
  let n = [];
2082
2079
  for (let r = 0; r < e.length; r += 2) {
@@ -2088,26 +2085,26 @@ function Qt(e, t) {
2088
2085
  function $t(e, t, n) {
2089
2086
  let r = X(t), i = Z.get(t).spec.config, a = (n ? e.undone : e.done).popEvent(t, r);
2090
2087
  if (!a) return null;
2091
- let o = a.selection.resolve(a.transform.doc), s = (n ? e.done : e.undone).addTransform(a.transform, t.selection.getBookmark(), i, r), c = new Y(n ? s : a.remaining, n ? a.remaining : s, null, 0, -1);
2088
+ let o = a.selection.resolve(a.transform.doc), s = (n ? e.done : e.undone).addTransform(a.transform, t.selection.getBookmark(), i, r), c = new q(n ? s : a.remaining, n ? a.remaining : s, null, 0, -1);
2092
2089
  return a.transform.setSelection(o).setMeta(Z, {
2093
2090
  redo: n,
2094
2091
  historyState: c
2095
2092
  });
2096
2093
  }
2097
- var en = !1, tn = null;
2094
+ var Y = !1, en = null;
2098
2095
  function X(e) {
2099
2096
  let t = e.plugins;
2100
- if (tn != t) {
2101
- en = !1, tn = t;
2097
+ if (en != t) {
2098
+ Y = !1, en = t;
2102
2099
  for (let e = 0; e < t.length; e++) if (t[e].spec.historyPreserveItems) {
2103
- en = !0;
2100
+ Y = !0;
2104
2101
  break;
2105
2102
  }
2106
2103
  }
2107
- return en;
2104
+ return Y;
2108
2105
  }
2109
- var Z = new c("history"), nn = new c("closeHistory");
2110
- function rn(e = {}) {
2106
+ var Z = new c("history"), tn = new c("closeHistory");
2107
+ function nn(e = {}) {
2111
2108
  return e = {
2112
2109
  depth: e.depth || 100,
2113
2110
  newGroupDelay: e.newGroupDelay || 500
@@ -2115,20 +2112,20 @@ function rn(e = {}) {
2115
2112
  key: Z,
2116
2113
  state: {
2117
2114
  init() {
2118
- return new Y(q.empty, q.empty, null, 0, -1);
2115
+ return new q(G.empty, G.empty, null, 0, -1);
2119
2116
  },
2120
2117
  apply(t, n, r) {
2121
- return Yt(n, r, t, e);
2118
+ return Xt(n, r, t, e);
2122
2119
  }
2123
2120
  },
2124
2121
  config: e,
2125
2122
  props: { handleDOMEvents: { beforeinput(e, t) {
2126
- let n = t.inputType, r = n == "historyUndo" ? on : n == "historyRedo" ? sn : null;
2123
+ let n = t.inputType, r = n == "historyUndo" ? an : n == "historyRedo" ? on : null;
2127
2124
  return !r || !e.editable ? !1 : (t.preventDefault(), r(e.state, e.dispatch));
2128
2125
  } } }
2129
2126
  });
2130
2127
  }
2131
- function an(e, t) {
2128
+ function rn(e, t) {
2132
2129
  return (n, r) => {
2133
2130
  let i = Z.getState(n);
2134
2131
  if (!i || (e ? i.undone : i.done).eventCount == 0) return !1;
@@ -2139,7 +2136,7 @@ function an(e, t) {
2139
2136
  return !0;
2140
2137
  };
2141
2138
  }
2142
- var on = an(!1, !0), sn = an(!0, !0);
2139
+ var an = rn(!1, !0), on = rn(!0, !0);
2143
2140
  b.create({
2144
2141
  name: "characterCount",
2145
2142
  addOptions() {
@@ -2202,7 +2199,7 @@ b.create({
2202
2199
  })];
2203
2200
  }
2204
2201
  });
2205
- var cn = b.create({
2202
+ var sn = b.create({
2206
2203
  name: "dropCursor",
2207
2204
  addOptions() {
2208
2205
  return {
@@ -2212,7 +2209,7 @@ var cn = b.create({
2212
2209
  };
2213
2210
  },
2214
2211
  addProseMirrorPlugins() {
2215
- return [Nt(this.options)];
2212
+ return [Pt(this.options)];
2216
2213
  }
2217
2214
  });
2218
2215
  b.create({
@@ -2246,10 +2243,10 @@ b.create({
2246
2243
  })];
2247
2244
  }
2248
2245
  });
2249
- var ln = b.create({
2246
+ var cn = b.create({
2250
2247
  name: "gapCursor",
2251
2248
  addProseMirrorPlugins() {
2252
- return [zt()];
2249
+ return [Bt()];
2253
2250
  },
2254
2251
  extendNodeSchema(e) {
2255
2252
  return { allowGapCursor: ae(m(e, "allowGapCursor", {
@@ -2258,8 +2255,8 @@ var ln = b.create({
2258
2255
  storage: e.storage
2259
2256
  })) ?? null };
2260
2257
  }
2261
- }), un = "placeholder", dn = new c("tiptap__placeholder");
2262
- function fn(e) {
2258
+ }), ln = "placeholder", un = new c("tiptap__placeholder");
2259
+ function dn(e) {
2263
2260
  let { editor: t, placeholder: n, dataAttribute: r, pos: i, node: a, isEmptyDoc: o, hasAnchor: s, classes: { emptyNode: c, emptyEditor: l } } = e, u = [c];
2264
2261
  return o && u.push(l), C.node(i, i + a.nodeSize, {
2265
2262
  class: u.join(" "),
@@ -2271,14 +2268,14 @@ function fn(e) {
2271
2268
  }) : n
2272
2269
  });
2273
2270
  }
2274
- function pn(e, t) {
2271
+ function fn(e, t) {
2275
2272
  return typeof e == "function" ? e(t) : e;
2276
2273
  }
2277
- function mn({ editor: e, options: t, dataAttribute: n, doc: r, selection: i, from: o, to: s }) {
2274
+ function pn({ editor: e, options: t, dataAttribute: n, doc: r, selection: i, from: o, to: s }) {
2278
2275
  let { anchor: c } = i, l = [], u = e.isEmpty;
2279
2276
  return r.nodesBetween(o, s, (r, i) => {
2280
2277
  let o = c >= i && c <= i + r.nodeSize, s = !r.isLeaf && a(r);
2281
- return r.type.isTextblock && (o || !t.showOnlyCurrent) && s && l.push(fn({
2278
+ return r.type.isTextblock && (o || !t.showOnlyCurrent) && s && l.push(dn({
2282
2279
  editor: e,
2283
2280
  isEmptyDoc: u,
2284
2281
  dataAttribute: n,
@@ -2286,7 +2283,7 @@ function mn({ editor: e, options: t, dataAttribute: n, doc: r, selection: i, fro
2286
2283
  placeholder: t.placeholder,
2287
2284
  classes: {
2288
2285
  emptyEditor: t.emptyEditorClass,
2289
- emptyNode: pn(t.emptyNodeClass, {
2286
+ emptyNode: fn(t.emptyNodeClass, {
2290
2287
  editor: e,
2291
2288
  node: r,
2292
2289
  pos: i,
@@ -2298,14 +2295,14 @@ function mn({ editor: e, options: t, dataAttribute: n, doc: r, selection: i, fro
2298
2295
  })), t.includeChildren;
2299
2296
  }), l;
2300
2297
  }
2301
- function hn({ editor: e, options: t, dataAttribute: n, doc: r, selection: i }) {
2298
+ function mn({ editor: e, options: t, dataAttribute: n, doc: r, selection: i }) {
2302
2299
  if (!(e.isEditable || !t.showOnlyWhenEditable)) return null;
2303
2300
  let { anchor: o } = i, s = [], c = e.isEmpty;
2304
2301
  if (t.showOnlyCurrent && !t.includeChildren) {
2305
2302
  let i = r.resolve(o), l = i.depth > 0 ? i.node(1) : i.nodeAfter, u = i.depth > 0 ? i.before(1) : o;
2306
2303
  if (l && l.type.isTextblock && a(l)) {
2307
2304
  let r = o >= u && o <= u + l.nodeSize;
2308
- s.push(fn({
2305
+ s.push(dn({
2309
2306
  editor: e,
2310
2307
  isEmptyDoc: c,
2311
2308
  dataAttribute: n,
@@ -2313,7 +2310,7 @@ function hn({ editor: e, options: t, dataAttribute: n, doc: r, selection: i }) {
2313
2310
  placeholder: t.placeholder,
2314
2311
  classes: {
2315
2312
  emptyEditor: t.emptyEditorClass,
2316
- emptyNode: pn(t.emptyNodeClass, {
2313
+ emptyNode: fn(t.emptyNodeClass, {
2317
2314
  editor: e,
2318
2315
  node: l,
2319
2316
  pos: u,
@@ -2324,7 +2321,7 @@ function hn({ editor: e, options: t, dataAttribute: n, doc: r, selection: i }) {
2324
2321
  pos: u
2325
2322
  }));
2326
2323
  }
2327
- } else s.push(...mn({
2324
+ } else s.push(...pn({
2328
2325
  editor: e,
2329
2326
  options: t,
2330
2327
  dataAttribute: n,
@@ -2361,7 +2358,7 @@ function $(e, t) {
2361
2358
  to: Math.min(e.content.size, t.to - 1)
2362
2359
  };
2363
2360
  }
2364
- function gn(e, t, n) {
2361
+ function hn(e, t, n) {
2365
2362
  let r = [];
2366
2363
  return e.forEach((e, i) => {
2367
2364
  let a = i, o = a + e.nodeSize, s = a + 1, c = o + 1;
@@ -2371,7 +2368,7 @@ function gn(e, t, n) {
2371
2368
  });
2372
2369
  }), r;
2373
2370
  }
2374
- function _n(e) {
2371
+ function gn(e) {
2375
2372
  if (e.length === 0) return [];
2376
2373
  let t = [...e].sort((e, t) => e.from - t.from), n = [{ ...t[0] }];
2377
2374
  for (let e = 1; e < t.length; e += 1) {
@@ -2380,31 +2377,31 @@ function _n(e) {
2380
2377
  }
2381
2378
  return n;
2382
2379
  }
2383
- function vn(e, t) {
2384
- let n = gn(e, t.from, t.to);
2380
+ function _n(e, t) {
2381
+ let n = hn(e, t.from, t.to);
2385
2382
  return n.push($(e, Q(e, t.from))), t.to > t.from ? n.push($(e, Q(e, Math.min(t.to, e.content.size + 1) - 1))) : t.from < e.content.size + 1 && n.push($(e, Q(e, Math.min(t.from + 1, e.content.size)))), n;
2386
2383
  }
2387
- function yn(e, t, n) {
2384
+ function vn(e, t, n) {
2388
2385
  let r = [];
2389
2386
  if (e.docChanged) {
2390
2387
  let t = p(e);
2391
- for (let e of t) r.push(...vn(n.doc, e.newRange));
2388
+ for (let e of t) r.push(..._n(n.doc, e.newRange));
2392
2389
  }
2393
- return e.selectionSet && (r.push($(n.doc, Q(n.doc, e.mapping.map(t.selection.anchor)))), r.push($(n.doc, Q(n.doc, n.selection.anchor)))), _n(r);
2390
+ return e.selectionSet && (r.push($(n.doc, Q(n.doc, e.mapping.map(t.selection.anchor)))), r.push($(n.doc, Q(n.doc, n.selection.anchor)))), gn(r);
2394
2391
  }
2395
- function bn(e, t, n) {
2392
+ function yn(e, t, n) {
2396
2393
  let r = Math.max(0, Math.min(e, n.content.size));
2397
2394
  return {
2398
2395
  from: r,
2399
2396
  to: Math.max(r, Math.min(t, n.content.size))
2400
2397
  };
2401
2398
  }
2402
- function xn({ decorations: e, ranges: t, editor: n, options: r, dataAttribute: i, doc: a, selection: o }) {
2399
+ function bn({ decorations: e, ranges: t, editor: n, options: r, dataAttribute: i, doc: a, selection: o }) {
2403
2400
  let s = e;
2404
2401
  for (let e of t) {
2405
- let { from: t, to: c } = bn(e.from, e.to, a), l = s.find(t, c).filter((e) => e.from >= t && e.to <= c);
2402
+ let { from: t, to: c } = yn(e.from, e.to, a), l = s.find(t, c).filter((e) => e.from >= t && e.to <= c);
2406
2403
  l.length && (s = s.remove(l));
2407
- let u = mn({
2404
+ let u = pn({
2408
2405
  editor: n,
2409
2406
  options: r,
2410
2407
  dataAttribute: i,
@@ -2417,10 +2414,10 @@ function xn({ decorations: e, ranges: t, editor: n, options: r, dataAttribute: i
2417
2414
  }
2418
2415
  return s;
2419
2416
  }
2420
- function Sn({ editor: e, options: t, dataAttribute: n }) {
2417
+ function xn({ editor: e, options: t, dataAttribute: n }) {
2421
2418
  return {
2422
2419
  init(r, i) {
2423
- return hn({
2420
+ return mn({
2424
2421
  editor: e,
2425
2422
  options: t,
2426
2423
  dataAttribute: n,
@@ -2429,9 +2426,9 @@ function Sn({ editor: e, options: t, dataAttribute: n }) {
2429
2426
  }) ?? E.empty;
2430
2427
  },
2431
2428
  apply(r, i, a, o) {
2432
- return !r.docChanged && !r.selectionSet ? i : xn({
2429
+ return !r.docChanged && !r.selectionSet ? i : bn({
2433
2430
  decorations: i.map(r.mapping, r.doc),
2434
- ranges: yn(r, a, o),
2431
+ ranges: vn(r, a, o),
2435
2432
  editor: e,
2436
2433
  options: t,
2437
2434
  dataAttribute: n,
@@ -2441,25 +2438,25 @@ function Sn({ editor: e, options: t, dataAttribute: n }) {
2441
2438
  }
2442
2439
  };
2443
2440
  }
2444
- function Cn(e) {
2441
+ function Sn(e) {
2445
2442
  return e.replace(/\s+/g, "-").replace(/[^a-zA-Z0-9-]/g, "").replace(/^[0-9-]+/, "").replace(/^-+/, "").toLowerCase();
2446
2443
  }
2447
- function wn({ editor: e, options: t }) {
2448
- let n = t.dataAttribute ? `data-${Cn(t.dataAttribute)}` : `data-${un}`, r = t.showOnlyCurrent && !t.includeChildren;
2444
+ function Cn({ editor: e, options: t }) {
2445
+ let n = t.dataAttribute ? `data-${Sn(t.dataAttribute)}` : `data-${ln}`, r = t.showOnlyCurrent && !t.includeChildren;
2449
2446
  return new T({
2450
- key: dn,
2451
- ...r ? {} : { state: Sn({
2447
+ key: un,
2448
+ ...r ? {} : { state: xn({
2452
2449
  editor: e,
2453
2450
  options: t,
2454
2451
  dataAttribute: n
2455
2452
  }) },
2456
- props: { decorations: r ? ({ doc: r, selection: i }) => hn({
2453
+ props: { decorations: r ? ({ doc: r, selection: i }) => mn({
2457
2454
  editor: e,
2458
2455
  options: t,
2459
2456
  dataAttribute: n,
2460
2457
  doc: r,
2461
2458
  selection: i
2462
- }) : (n) => t.showOnlyWhenEditable && !e.isEditable ? E.empty : dn.getState(n) ?? E.empty }
2459
+ }) : (n) => t.showOnlyWhenEditable && !e.isEditable ? E.empty : un.getState(n) ?? E.empty }
2463
2460
  });
2464
2461
  }
2465
2462
  b.create({
@@ -2468,7 +2465,7 @@ b.create({
2468
2465
  return {
2469
2466
  emptyEditorClass: "is-editor-empty",
2470
2467
  emptyNodeClass: "is-empty",
2471
- dataAttribute: un,
2468
+ dataAttribute: ln,
2472
2469
  placeholder: "Write something …",
2473
2470
  showOnlyWhenEditable: !0,
2474
2471
  showOnlyCurrent: !0,
@@ -2476,23 +2473,23 @@ b.create({
2476
2473
  };
2477
2474
  },
2478
2475
  addProseMirrorPlugins() {
2479
- return [wn({
2476
+ return [Cn({
2480
2477
  editor: this.editor,
2481
2478
  options: this.options
2482
2479
  })];
2483
2480
  }
2484
2481
  });
2485
- function Tn(e, t) {
2482
+ function wn(e, t) {
2486
2483
  return !e.selection.empty && !s(e.selection) && t.isEditable;
2487
2484
  }
2488
- function En(e, t) {
2489
- return Tn(e, t) && !t.isFocused && !t.view.dragging;
2485
+ function Tn(e, t) {
2486
+ return wn(e, t) && !t.isFocused && !t.view.dragging;
2490
2487
  }
2491
- function Dn() {
2488
+ function En() {
2492
2489
  var e;
2493
2490
  (e = window.getSelection()) == null || e.removeAllRanges();
2494
2491
  }
2495
- function On(e) {
2492
+ function Dn(e) {
2496
2493
  e.focus();
2497
2494
  }
2498
2495
  b.create({
@@ -2506,15 +2503,15 @@ b.create({
2506
2503
  key: new c("selection"),
2507
2504
  props: {
2508
2505
  decorations(n) {
2509
- return En(n, e) ? E.create(n.doc, [C.inline(n.selection.from, n.selection.to, { class: t.className })]) : null;
2506
+ return Tn(n, e) ? E.create(n.doc, [C.inline(n.selection.from, n.selection.to, { class: t.className })]) : null;
2510
2507
  },
2511
2508
  handleDOMEvents: {
2512
2509
  blur(t) {
2513
- return Tn(t.state, e) && Dn(), !1;
2510
+ return wn(t.state, e) && En(), !1;
2514
2511
  },
2515
2512
  focus(t) {
2516
- return Tn(t.state, e) && requestAnimationFrame(() => {
2517
- !e.isDestroyed && t.hasFocus() && On(t);
2513
+ return wn(t.state, e) && requestAnimationFrame(() => {
2514
+ !e.isDestroyed && t.hasFocus() && Dn(t);
2518
2515
  }), !1;
2519
2516
  }
2520
2517
  }
@@ -2522,10 +2519,10 @@ b.create({
2522
2519
  })];
2523
2520
  }
2524
2521
  });
2525
- function kn({ types: e, node: t }) {
2522
+ function On({ types: e, node: t }) {
2526
2523
  return t && Array.isArray(e) && e.includes(t.type) || t?.type === e;
2527
2524
  }
2528
- var An = b.create({
2525
+ var kn = b.create({
2529
2526
  name: "trailingNode",
2530
2527
  addOptions() {
2531
2528
  return {
@@ -2544,7 +2541,7 @@ var An = b.create({
2544
2541
  state: {
2545
2542
  init: (e, t) => {
2546
2543
  let r = t.tr.doc.lastChild;
2547
- return !kn({
2544
+ return !On({
2548
2545
  node: r,
2549
2546
  types: n
2550
2547
  });
@@ -2552,7 +2549,7 @@ var An = b.create({
2552
2549
  apply: (e, t) => {
2553
2550
  if (!e.docChanged || e.getMeta("__uniqueIDTransaction")) return t;
2554
2551
  let r = e.doc.lastChild;
2555
- return !kn({
2552
+ return !On({
2556
2553
  node: r,
2557
2554
  types: n
2558
2555
  });
@@ -2560,7 +2557,7 @@ var An = b.create({
2560
2557
  }
2561
2558
  })];
2562
2559
  }
2563
- }), jn = b.create({
2560
+ }), An = b.create({
2564
2561
  name: "undoRedo",
2565
2562
  addOptions() {
2566
2563
  return {
@@ -2570,12 +2567,12 @@ var An = b.create({
2570
2567
  },
2571
2568
  addCommands() {
2572
2569
  return {
2573
- undo: () => ({ state: e, dispatch: t }) => on(e, t),
2574
- redo: () => ({ state: e, dispatch: t }) => sn(e, t)
2570
+ undo: () => ({ state: e, dispatch: t }) => an(e, t),
2571
+ redo: () => ({ state: e, dispatch: t }) => on(e, t)
2575
2572
  };
2576
2573
  },
2577
2574
  addProseMirrorPlugins() {
2578
- return [rn(this.options)];
2575
+ return [nn(this.options)];
2579
2576
  },
2580
2577
  addKeyboardShortcuts() {
2581
2578
  return {
@@ -2586,12 +2583,12 @@ var An = b.create({
2586
2583
  "Shift-Mod-я": () => this.editor.commands.redo()
2587
2584
  };
2588
2585
  }
2589
- }), Mn = b.create({
2586
+ }), jn = b.create({
2590
2587
  name: "starterKit",
2591
2588
  addExtensions() {
2592
2589
  let e = [];
2593
- return this.options.bold !== !1 && e.push(_e.configure(this.options.bold)), this.options.blockquote !== !1 && e.push(fe.configure(this.options.blockquote)), this.options.bulletList !== !1 && e.push(ze.configure(this.options.bulletList)), this.options.code !== !1 && e.push(be.configure(this.options.code)), this.options.codeBlock !== !1 && e.push(we.configure(this.options.codeBlock)), this.options.document !== !1 && e.push(Te.configure(this.options.document)), this.options.dropcursor !== !1 && e.push(cn.configure(this.options.dropcursor)), this.options.gapcursor !== !1 && e.push(ln.configure(this.options.gapcursor)), this.options.hardBreak !== !1 && e.push(Ee.configure(this.options.hardBreak)), this.options.heading !== !1 && e.push(De.configure(this.options.heading)), this.options.undoRedo !== !1 && e.push(jn.configure(this.options.undoRedo)), this.options.horizontalRule !== !1 && e.push(Oe.configure(this.options.horizontalRule)), this.options.italic !== !1 && e.push(Ne.configure(this.options.italic)), this.options.listItem !== !1 && e.push(tt.configure(this.options.listItem)), this.options.listKeymap !== !1 && e.push(ct.configure(this.options?.listKeymap)), this.options.link !== !1 && e.push(ce.configure(this.options?.link)), this.options.orderedList !== !1 && e.push(wt.configure(this.options.orderedList)), this.options.paragraph !== !1 && e.push(Ot.configure(this.options.paragraph)), this.options.strike !== !1 && e.push(jt.configure(this.options.strike)), this.options.text !== !1 && e.push(Mt.configure(this.options.text)), this.options.underline !== !1 && e.push(le.configure(this.options?.underline)), this.options.trailingNode !== !1 && e.push(An.configure(this.options?.trailingNode)), e;
2590
+ return this.options.bold !== !1 && e.push(_e.configure(this.options.bold)), this.options.blockquote !== !1 && e.push(fe.configure(this.options.blockquote)), this.options.bulletList !== !1 && e.push(Re.configure(this.options.bulletList)), this.options.code !== !1 && e.push(be.configure(this.options.code)), this.options.codeBlock !== !1 && e.push(Ce.configure(this.options.codeBlock)), this.options.document !== !1 && e.push(we.configure(this.options.document)), this.options.dropcursor !== !1 && e.push(sn.configure(this.options.dropcursor)), this.options.gapcursor !== !1 && e.push(cn.configure(this.options.gapcursor)), this.options.hardBreak !== !1 && e.push(Te.configure(this.options.hardBreak)), this.options.heading !== !1 && e.push(Ee.configure(this.options.heading)), this.options.undoRedo !== !1 && e.push(An.configure(this.options.undoRedo)), this.options.horizontalRule !== !1 && e.push(De.configure(this.options.horizontalRule)), this.options.italic !== !1 && e.push(Me.configure(this.options.italic)), this.options.listItem !== !1 && e.push(tt.configure(this.options.listItem)), this.options.listKeymap !== !1 && e.push(ut.configure(this.options?.listKeymap)), this.options.link !== !1 && e.push(ce.configure(this.options?.link)), this.options.orderedList !== !1 && e.push(Tt.configure(this.options.orderedList)), this.options.paragraph !== !1 && e.push(kt.configure(this.options.paragraph)), this.options.strike !== !1 && e.push(Mt.configure(this.options.strike)), this.options.text !== !1 && e.push(Nt.configure(this.options.text)), this.options.underline !== !1 && e.push(le.configure(this.options?.underline)), this.options.trailingNode !== !1 && e.push(kn.configure(this.options?.trailingNode)), e;
2594
2591
  }
2595
- }), Nn = Mn;
2592
+ }), Mn = jn;
2596
2593
  //#endregion
2597
- export { Mn as StarterKit, Nn as default };
2594
+ export { jn as StarterKit, Mn as default };