@templatical/editor 0.25.1 → 0.26.0

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 (195) hide show
  1. package/dist/{AiChatSidebar-BYMdVldY.js → AiChatSidebar-c-3yyjN1.js} +14 -14
  2. package/dist/{AiFeatureMenu-BhHhnu9G.js → AiFeatureMenu-B-COyG7k.js} +7 -7
  3. package/dist/{BlockIssueBadge-De36PJC4.js → BlockIssueBadge-Buk3_6QF.js} +5 -5
  4. package/dist/{BlockPreviewCanvas-BxSoA1QV.js → BlockPreviewCanvas-CJPHGI93.js} +3 -3
  5. package/dist/{CloudEditor-BXfuytQj.js → CloudEditor-BdSQ8hfv.js} +26 -26
  6. package/dist/{CollaboratorBar-D9AfWRTH.js → CollaboratorBar-mGoi6yye.js} +4 -4
  7. package/dist/{ColorPicker-VPq4ASC8.js → ColorPicker-ClETsjA3.js} +6 -6
  8. package/dist/{CommentsSidebar-C8BLy3Pr.js → CommentsSidebar-CdRCCSDD.js} +15 -15
  9. package/dist/{CountdownBlock-Bs2Q_bFX.js → CountdownBlock-DuyvGcr8.js} +3 -3
  10. package/dist/{CountdownToolbar-Cic6cdOw.js → CountdownToolbar-CBE9wRaV.js} +4 -4
  11. package/dist/{DesignReferenceSidebar-k-26nkJI.js → DesignReferenceSidebar-CgYkySre.js} +11 -11
  12. package/dist/{IssuesPanel-NPzwTPYW.js → IssuesPanel-Do7RLXsP.js} +8 -8
  13. package/dist/{LoadingTrack-DH3OEM3z.js → LoadingTrack-BexpNuTV.js} +1 -1
  14. package/dist/{MergeTagModeToggle-DEGyx8tw.js → MergeTagModeToggle-hAJgIKhw.js} +6 -6
  15. package/dist/{MergeTagSuggestion-DvisJ9im.js → MergeTagSuggestion-BJ43ihWR.js} +34 -32
  16. package/dist/{NumberWithSuffix-CuHCIwSn.js → NumberWithSuffix-D37ZWiZh.js} +2 -2
  17. package/dist/{ParagraphEditor-DK_IPi9H.js → ParagraphEditor-DBG63S70.js} +74 -80
  18. package/dist/{RichTextEditorContent-DznIQcdY.js → RichTextEditorContent-fbYJXAio.js} +8 -8
  19. package/dist/{SaveBlockDialog-R9PbMsy-.js → SaveBlockDialog-Dq9UVihi.js} +10 -10
  20. package/dist/{SavedBlocksBrowserModal-ttPAklPE.js → SavedBlocksBrowserModal-CtFG4zeV.js} +11 -11
  21. package/dist/{SavedBlocksPanels-BCwQgKLF.js → SavedBlocksPanels-DNVdso_W.js} +2 -2
  22. package/dist/{SavedBlocksPickBar-DD5Ddv9t.js → SavedBlocksPickBar-Cv4dIpP-.js} +4 -4
  23. package/dist/{SnapshotHistory-BXSTGgBh.js → SnapshotHistory-DsOtMHOV.js} +10 -10
  24. package/dist/{TemplateScoringPanel-Ue6Dfnjb.js → TemplateScoringPanel-BZUsb3FD.js} +15 -15
  25. package/dist/{TestEmailModal-KPFc5oSv.js → TestEmailModal-CIwqtGfr.js} +11 -11
  26. package/dist/{TestEmailPanel-b8GHTrnE.js → TestEmailPanel-l6LDmBGM.js} +2 -2
  27. package/dist/{TitleEditor-8ln7UBr_.js → TitleEditor-imoBUynh.js} +12 -12
  28. package/dist/{TplModal-D_FA3Wm3.js → TplModal-DDDHcoir.js} +5 -5
  29. package/dist/{blockTypeIcons-BoZeK6l7.js → blockTypeIcons-CfLN4A6t.js} +2 -2
  30. package/dist/bundle-stats.json +6 -6
  31. package/dist/cdn/chunks/{AiChatSidebar-D6jGwb4y.js → AiChatSidebar-BHqNxNcX.js} +35 -35
  32. package/dist/cdn/chunks/{AiChatSidebar-D6jGwb4y.js.map → AiChatSidebar-BHqNxNcX.js.map} +1 -1
  33. package/dist/cdn/chunks/{AiFeatureMenu-BtEcjxLL.js → AiFeatureMenu-D2AIDwEG.js} +13 -13
  34. package/dist/cdn/chunks/{AiFeatureMenu-BtEcjxLL.js.map → AiFeatureMenu-D2AIDwEG.js.map} +1 -1
  35. package/dist/cdn/chunks/{BlockIssueBadge-dnqZk6pl.js → BlockIssueBadge-BEEY9o2o.js} +5 -5
  36. package/dist/cdn/chunks/{BlockIssueBadge-dnqZk6pl.js.map → BlockIssueBadge-BEEY9o2o.js.map} +1 -1
  37. package/dist/cdn/chunks/{BlockPreviewCanvas-D8pfTFWi.js → BlockPreviewCanvas-DH5ULGkw.js} +22 -22
  38. package/dist/cdn/chunks/{BlockPreviewCanvas-D8pfTFWi.js.map → BlockPreviewCanvas-DH5ULGkw.js.map} +1 -1
  39. package/dist/cdn/chunks/{CloudEditor-BJ4-pPAl.js → CloudEditor-C0nB1JfD.js} +67 -67
  40. package/dist/cdn/chunks/{CloudEditor-BJ4-pPAl.js.map → CloudEditor-C0nB1JfD.js.map} +1 -1
  41. package/dist/cdn/chunks/{CollaboratorBar-SeUOuLeJ.js → CollaboratorBar-f6Ni7KNH.js} +12 -12
  42. package/dist/cdn/chunks/{CollaboratorBar-SeUOuLeJ.js.map → CollaboratorBar-f6Ni7KNH.js.map} +1 -1
  43. package/dist/cdn/chunks/{ColorPicker-yxvrro60.js → ColorPicker-W_UyiVGc.js} +131 -131
  44. package/dist/cdn/chunks/{ColorPicker-yxvrro60.js.map → ColorPicker-W_UyiVGc.js.map} +1 -1
  45. package/dist/cdn/chunks/{CommentsSidebar-FPbg-FuU.js → CommentsSidebar-BLRZRSSC.js} +112 -112
  46. package/dist/cdn/chunks/{CommentsSidebar-FPbg-FuU.js.map → CommentsSidebar-BLRZRSSC.js.map} +1 -1
  47. package/dist/cdn/chunks/{CountdownBlock-D2Oth7YY.js → CountdownBlock-vLTkTI9e.js} +11 -11
  48. package/dist/cdn/chunks/{CountdownBlock-D2Oth7YY.js.map → CountdownBlock-vLTkTI9e.js.map} +1 -1
  49. package/dist/cdn/chunks/{CountdownToolbar-BNgTBQGB.js → CountdownToolbar-DPjcgcVR.js} +41 -41
  50. package/dist/cdn/chunks/{CountdownToolbar-BNgTBQGB.js.map → CountdownToolbar-DPjcgcVR.js.map} +1 -1
  51. package/dist/cdn/chunks/{DesignReferenceSidebar-ChB_HBK1.js → DesignReferenceSidebar-DBoEBKxQ.js} +34 -34
  52. package/dist/cdn/chunks/{DesignReferenceSidebar-ChB_HBK1.js.map → DesignReferenceSidebar-DBoEBKxQ.js.map} +1 -1
  53. package/dist/cdn/chunks/{IssuesPanel-CjiZ8cLW.js → IssuesPanel-DKTS4QVb.js} +32 -32
  54. package/dist/cdn/chunks/{IssuesPanel-CjiZ8cLW.js.map → IssuesPanel-DKTS4QVb.js.map} +1 -1
  55. package/dist/cdn/chunks/{LoadingTrack-CiNg9s16.js → LoadingTrack-C52ZGL5q.js} +2 -2
  56. package/dist/cdn/chunks/{LoadingTrack-CiNg9s16.js.map → LoadingTrack-C52ZGL5q.js.map} +1 -1
  57. package/dist/cdn/chunks/{MergeTagModeToggle-CiYbOKzd.js → MergeTagModeToggle-D8iKvz7v.js} +28 -28
  58. package/dist/cdn/chunks/{MergeTagModeToggle-CiYbOKzd.js.map → MergeTagModeToggle-D8iKvz7v.js.map} +1 -1
  59. package/dist/cdn/chunks/{MergeTagSuggestion-CvZLI6Np.js → MergeTagSuggestion-Dn8dExNa.js} +18 -18
  60. package/dist/cdn/chunks/{MergeTagSuggestion-CvZLI6Np.js.map → MergeTagSuggestion-Dn8dExNa.js.map} +1 -1
  61. package/dist/cdn/chunks/{NumberWithSuffix-vVwCWrd_.js → NumberWithSuffix-BXrRdfq1.js} +22 -22
  62. package/dist/cdn/chunks/{NumberWithSuffix-vVwCWrd_.js.map → NumberWithSuffix-BXrRdfq1.js.map} +1 -1
  63. package/dist/cdn/chunks/{ParagraphEditor-o4hs9mgy.js → ParagraphEditor-Cuc83Blj.js} +58 -58
  64. package/dist/cdn/chunks/{ParagraphEditor-o4hs9mgy.js.map → ParagraphEditor-Cuc83Blj.js.map} +1 -1
  65. package/dist/cdn/chunks/{RichTextEditorContent-BAriGldd.js → RichTextEditorContent-DtL49Jpo.js} +20 -20
  66. package/dist/cdn/chunks/{RichTextEditorContent-BAriGldd.js.map → RichTextEditorContent-DtL49Jpo.js.map} +1 -1
  67. package/dist/cdn/chunks/{SaveBlockDialog-D3-oILb5.js → SaveBlockDialog-B8KHhVkI.js} +50 -50
  68. package/dist/cdn/chunks/{SaveBlockDialog-D3-oILb5.js.map → SaveBlockDialog-B8KHhVkI.js.map} +1 -1
  69. package/dist/cdn/chunks/{SavedBlocksBrowserModal-jMnNd4wn.js → SavedBlocksBrowserModal-B-sjsIJv.js} +62 -62
  70. package/dist/cdn/chunks/{SavedBlocksBrowserModal-jMnNd4wn.js.map → SavedBlocksBrowserModal-B-sjsIJv.js.map} +1 -1
  71. package/dist/cdn/chunks/{SavedBlocksPanels-BDd8FH6l.js → SavedBlocksPanels-Bb-eDMAh.js} +3 -3
  72. package/dist/cdn/chunks/{SavedBlocksPanels-BDd8FH6l.js.map → SavedBlocksPanels-Bb-eDMAh.js.map} +1 -1
  73. package/dist/cdn/chunks/{SavedBlocksPickBar-BNkLe8In.js → SavedBlocksPickBar-GudFfXa4.js} +12 -12
  74. package/dist/cdn/chunks/{SavedBlocksPickBar-BNkLe8In.js.map → SavedBlocksPickBar-GudFfXa4.js.map} +1 -1
  75. package/dist/cdn/chunks/{SnapshotHistory-CYVi7fvQ.js → SnapshotHistory-Srpzt2na.js} +26 -26
  76. package/dist/cdn/chunks/{SnapshotHistory-CYVi7fvQ.js.map → SnapshotHistory-Srpzt2na.js.map} +1 -1
  77. package/dist/cdn/chunks/{TemplateScoringPanel-D0KrxVnr.js → TemplateScoringPanel-NucRtAP0.js} +42 -42
  78. package/dist/cdn/chunks/{TemplateScoringPanel-D0KrxVnr.js.map → TemplateScoringPanel-NucRtAP0.js.map} +1 -1
  79. package/dist/cdn/chunks/{TestEmailModal-_RbTD787.js → TestEmailModal-DLeoJqaJ.js} +31 -31
  80. package/dist/cdn/chunks/{TestEmailModal-_RbTD787.js.map → TestEmailModal-DLeoJqaJ.js.map} +1 -1
  81. package/dist/cdn/chunks/{TestEmailPanel-BAnKtbSu.js → TestEmailPanel-Dr7Dkq2P.js} +3 -3
  82. package/dist/cdn/chunks/{TestEmailPanel-BAnKtbSu.js.map → TestEmailPanel-Dr7Dkq2P.js.map} +1 -1
  83. package/dist/cdn/chunks/{TitleEditor-LiUvXGPw.js → TitleEditor-DzYRr18C.js} +35 -35
  84. package/dist/cdn/chunks/{TitleEditor-LiUvXGPw.js.map → TitleEditor-DzYRr18C.js.map} +1 -1
  85. package/dist/cdn/chunks/{TplModal-C1iguuZz.js → TplModal-byw7-3wg.js} +17 -17
  86. package/dist/cdn/chunks/{TplModal-C1iguuZz.js.map → TplModal-byw7-3wg.js.map} +1 -1
  87. package/dist/cdn/chunks/blockTypeIcons-FXlMM3PL.js +21 -0
  88. package/dist/cdn/chunks/{blockTypeIcons-CrPzyP_k.js.map → blockTypeIcons-FXlMM3PL.js.map} +1 -1
  89. package/dist/cdn/chunks/{cloud-CxNsW3hp.js → cloud-CuItCnN_.js} +4 -4
  90. package/dist/cdn/chunks/{cloud-CxNsW3hp.js.map → cloud-CuItCnN_.js.map} +1 -1
  91. package/dist/cdn/chunks/{dist-BLF-S9_A.js → dist-B2HKGHnc.js} +9 -7
  92. package/dist/cdn/chunks/{dist-BLF-S9_A.js.map → dist-B2HKGHnc.js.map} +1 -1
  93. package/dist/cdn/chunks/{dist-Dp46rwVY.js → dist-C6z8AjBC.js} +2 -2
  94. package/dist/cdn/chunks/{dist-Dp46rwVY.js.map → dist-C6z8AjBC.js.map} +1 -1
  95. package/dist/cdn/chunks/{draggable-BRF_Q_jB.js → draggable-DCs9qL-b.js} +114 -92
  96. package/dist/cdn/chunks/{draggable-BRF_Q_jB.js.map → draggable-DCs9qL-b.js.map} +1 -1
  97. package/dist/cdn/chunks/{extensions-yNQlgLNE.js → extensions-B7laxHjs.js} +22 -22
  98. package/dist/cdn/chunks/{extensions-yNQlgLNE.js.map → extensions-B7laxHjs.js.map} +1 -1
  99. package/dist/cdn/chunks/{htmlparser-CPhs2cYE.js → htmlparser-DTML8Gvz.js} +8 -7
  100. package/dist/cdn/chunks/{htmlparser-CPhs2cYE.js.map → htmlparser-DTML8Gvz.js.map} +1 -1
  101. package/dist/cdn/chunks/{icons-DN008liP.js → icons-CvYN6zrM.js} +74 -80
  102. package/dist/cdn/chunks/icons-CvYN6zrM.js.map +1 -0
  103. package/dist/cdn/chunks/{keys-CZOBuCQd.js → keys-Cmc2Yl3D.js} +2 -2
  104. package/dist/cdn/chunks/{keys-CZOBuCQd.js.map → keys-Cmc2Yl3D.js.map} +1 -1
  105. package/dist/cdn/chunks/{liquid.browser-CZaQe87t.js → liquid.browser-UlAOKBjI.js} +120 -110
  106. package/dist/cdn/chunks/liquid.browser-UlAOKBjI.js.map +1 -0
  107. package/dist/cdn/chunks/{pusher-kUlkqMvR.js → pusher-BbIHJKf3.js} +29 -25
  108. package/dist/cdn/chunks/{pusher-kUlkqMvR.js.map → pusher-BbIHJKf3.js.map} +1 -1
  109. package/dist/cdn/chunks/{src-uc_Mb_yH.js → src-BYKYmEOD.js} +7 -6
  110. package/dist/cdn/chunks/src-BYKYmEOD.js.map +1 -0
  111. package/dist/cdn/chunks/{src-D_3bXt7-.js → src-Bi-Qhtfs.js} +3 -3
  112. package/dist/cdn/chunks/{src-D_3bXt7-.js.map → src-Bi-Qhtfs.js.map} +1 -1
  113. package/dist/cdn/chunks/{src-B2LpXMIw.js → src-C0N74uvF.js} +280 -277
  114. package/dist/cdn/chunks/{src-B2LpXMIw.js.map → src-C0N74uvF.js.map} +1 -1
  115. package/dist/cdn/chunks/{src-CZjSXPYq.js → src-EKTTBQ0y.js} +3 -2
  116. package/dist/cdn/chunks/src-EKTTBQ0y.js.map +1 -0
  117. package/dist/cdn/chunks/{styles-BzP13r-I.js → styles-C7s-VtJi.js} +1112 -1094
  118. package/dist/cdn/chunks/styles-C7s-VtJi.js.map +1 -0
  119. package/dist/cdn/chunks/{tiptap-CgwK_fKJ.js → tiptap-C44S1Cmh.js} +3681 -2965
  120. package/dist/cdn/chunks/tiptap-C44S1Cmh.js.map +1 -0
  121. package/dist/cdn/chunks/{useAliveFlag-Ctyt3GgH.js → useAliveFlag-Dxwgo6P4.js} +2 -2
  122. package/dist/cdn/chunks/{useAliveFlag-Ctyt3GgH.js.map → useAliveFlag-Dxwgo6P4.js.map} +1 -1
  123. package/dist/cdn/chunks/{useCloudI18n-CML0BxqX.js → useCloudI18n-8wkJtuJD.js} +3 -3
  124. package/dist/cdn/chunks/{useCloudI18n-CML0BxqX.js.map → useCloudI18n-8wkJtuJD.js.map} +1 -1
  125. package/dist/cdn/chunks/{useEditorCore-CTYH6u4r.js → useEditorCore-C_nUXiph.js} +275 -275
  126. package/dist/cdn/chunks/useEditorCore-C_nUXiph.js.map +1 -0
  127. package/dist/cdn/chunks/{useI18n-aRMtgYRj.js → useI18n-UMs0F71x.js} +3 -3
  128. package/dist/cdn/chunks/{useI18n-aRMtgYRj.js.map → useI18n-UMs0F71x.js.map} +1 -1
  129. package/dist/cdn/chunks/{useMergeTag-8a8BnIZp.js → useMergeTag-CPa_9VOq.js} +4 -4
  130. package/dist/cdn/chunks/{useMergeTag-8a8BnIZp.js.map → useMergeTag-CPa_9VOq.js.map} +1 -1
  131. package/dist/cdn/chunks/{usePopoverPosition-Dm1jv3y5.js → usePopoverPosition-cf8Y-ynK.js} +3 -3
  132. package/dist/cdn/chunks/{usePopoverPosition-Dm1jv3y5.js.map → usePopoverPosition-cf8Y-ynK.js.map} +1 -1
  133. package/dist/cdn/editor.js +47 -47
  134. package/dist/cdn/editor.js.map +1 -1
  135. package/dist/{check-Bqimqf7l.js → check-On4TSac-.js} +1 -1
  136. package/dist/{chevron-down-CYOoeGBd.js → chevron-down-69EiBGoB.js} +1 -1
  137. package/dist/{chevron-up-DYknsfm0.js → chevron-up-Dh3MG1Dw.js} +1 -1
  138. package/dist/{circle-alert-6q_jgtv_.js → circle-alert-cilwzafX.js} +1 -1
  139. package/dist/{clock-CnadSSTD.js → clock-Dt0APH92.js} +1 -1
  140. package/dist/{cloud-BJLg_SlM.js → cloud-C7-FhzMc.js} +2 -2
  141. package/dist/{createLucideIcon-D7GKhya2.js → createLucideIcon-C8WzBYCv.js} +3 -3
  142. package/dist/dist-6YJAWMuf.js +5 -0
  143. package/dist/dist-8vlm9kfO.js +5 -0
  144. package/dist/{dist-DSIgxp0v.js → dist-BImfm-46.js} +2 -2
  145. package/dist/{dist-DDfXShPv.js → dist-BpKxrUi2.js} +1 -1
  146. package/dist/{dist-B6Px6GPj.js → dist-C08jiemd.js} +7 -7
  147. package/dist/{dist-BxbTVeY0.js → dist-C27SeFL5.js} +15 -15
  148. package/dist/{dist-nR6mxyqI.js → dist-CYx-E82k.js} +2 -2
  149. package/dist/{dist-CcQFPJMF.js → dist-ChYLhoJ4.js} +2300 -1704
  150. package/dist/{dist-C31bMR4x.js → dist-Cl8J0IES.js} +270 -182
  151. package/dist/{dist-CQ0fVBQ3.js → dist-D5zCZFdU.js} +2 -1
  152. package/dist/{dist-Dx71pluS.js → dist-DMJRSouD.js} +470 -440
  153. package/dist/{dist-DyCHUyRR.js → dist-DfpeSdmE.js} +2 -2
  154. package/dist/{dist-DX4x6mQ1.js → dist-M7m1lYRe.js} +47 -47
  155. package/dist/{dist-CRH880TV.js → dist-g6cbzhZW.js} +2 -2
  156. package/dist/{extensions-CbiWtzS6.js → extensions-CxwhoG8v.js} +19 -19
  157. package/dist/{image-up-BfukboIn.js → image-up-Ceggh_R3.js} +1 -1
  158. package/dist/{info-DSYRzSZo.js → info-DO5odBcZ.js} +1 -1
  159. package/dist/{keys-BI6VSUh4.js → keys-fwF3qZax.js} +1 -1
  160. package/dist/{liquid.browser-BECWFL5Z.js → liquid.browser-B-rGrnrQ.js} +119 -109
  161. package/dist/{list-checks-URZOyLhr.js → list-checks-BSkPKbuI.js} +1 -1
  162. package/dist/{loader-circle-GADaYcyQ.js → loader-circle-bO7o7_HD.js} +1 -1
  163. package/dist/{message-circle-B62fdo0b.js → message-circle-BEkAk65X.js} +1 -1
  164. package/dist/{pencil-BGwkOpD_.js → pencil-t6m0EtKL.js} +1 -1
  165. package/dist/{refresh-cw-Z4wXfduO.js → refresh-cw-CkOYVzK5.js} +1 -1
  166. package/dist/{runtime-dom.esm-bundler-BkOsapVg.js → runtime-dom.esm-bundler-CepEmvwF.js} +13 -10
  167. package/dist/{scan-line-D8Oh5xos.js → scan-line-DwSVj25O.js} +1 -1
  168. package/dist/{send-BYp4k38T.js → send-CWsWN8PQ.js} +1 -1
  169. package/dist/{shield-check-Cm0RePnW.js → shield-check-qje8Kufw.js} +1 -1
  170. package/dist/{sparkles-BHEE-vRD.js → sparkles-DumaWRW-.js} +1 -1
  171. package/dist/{styles-B0MEBpOK.js → styles-C_slTGwp.js} +454 -436
  172. package/dist/templatical-editor.js +11 -11
  173. package/dist/{text-align-start-CHrg3vK8.js → text-align-start-Ir8Ah4mT.js} +1 -1
  174. package/dist/{trash-2-BoNT8wbq.js → trash-2-CklAFCmO.js} +1 -1
  175. package/dist/{triangle-alert-CiN0ssB3.js → triangle-alert-BBi4n93g.js} +1 -1
  176. package/dist/{upload-WvZGBySw.js → upload-sVqqppuv.js} +1 -1
  177. package/dist/{useAliveFlag-eT67QCMf.js → useAliveFlag-cvyBxHp7.js} +1 -1
  178. package/dist/{useCloudI18n-KgIWl-IE.js → useCloudI18n-DKVm6PCa.js} +2 -2
  179. package/dist/{useEditorCore-BMbxdUbY.js → useEditorCore-r4gWzCBA.js} +893 -893
  180. package/dist/{useI18n-BkHfCWC6.js → useI18n-DoVKdCTH.js} +2 -2
  181. package/dist/{useMergeTag-CZ4XYAxu.js → useMergeTag-C-_WxrgL.js} +3 -3
  182. package/dist/{usePopoverPosition-D93u-EZm.js → usePopoverPosition-C0dPEF4X.js} +3 -3
  183. package/dist/{vue.runtime.esm-bundler-0R1UhmZB.js → vue.runtime.esm-bundler-D1diBMsm.js} +119 -95
  184. package/dist/{x-B4WnJVRx.js → x-Mby7KlhS.js} +1 -1
  185. package/package.json +23 -23
  186. package/dist/cdn/chunks/blockTypeIcons-CrPzyP_k.js +0 -21
  187. package/dist/cdn/chunks/icons-DN008liP.js.map +0 -1
  188. package/dist/cdn/chunks/liquid.browser-CZaQe87t.js.map +0 -1
  189. package/dist/cdn/chunks/src-CZjSXPYq.js.map +0 -1
  190. package/dist/cdn/chunks/src-uc_Mb_yH.js.map +0 -1
  191. package/dist/cdn/chunks/styles-BzP13r-I.js.map +0 -1
  192. package/dist/cdn/chunks/tiptap-CgwK_fKJ.js.map +0 -1
  193. package/dist/cdn/chunks/useEditorCore-CTYH6u4r.js.map +0 -1
  194. package/dist/dist-CkPvZCld.js +0 -5
  195. package/dist/dist-iCEDH3cC.js +0 -5
@@ -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-CcQFPJMF.js";
2
- import { Link as ce } from "./dist-DX4x6mQ1.js";
3
- import { Underline as le } from "./dist-DyCHUyRR.js";
4
- //#region ../../node_modules/.pnpm/@tiptap+core@3.29.2_@tiptap+pm@3.29.2/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js
1
+ import { Bn as e, Bt as t, Cn as n, Dn as r, Gn as i, Hn as a, Ht as o, Jn as s, Kn as c, Ln as l, Mt as u, T as d, Un as f, Vn as p, Vt as m, Wn as h, Xn as g, Yn as _, Zn as v, f as y, fn as b, ft as ee, gn as x, it as te, jt as ne, m as S, mt as re, nt as ie, pn as C, pt as ae, qn as w, s as T, ut as oe, w as se, yn as ce, zn as E } from "./dist-ChYLhoJ4.js";
2
+ import { Link as le } from "./dist-M7m1lYRe.js";
3
+ import { Underline as ue } from "./dist-DfpeSdmE.js";
4
+ //#region ../../node_modules/.pnpm/@tiptap+core@3.30.1_@tiptap+pm@3.30.1/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);
@@ -12,21 +12,25 @@ var D = (e, t) => {
12
12
  r,
13
13
  n
14
14
  ];
15
- }, ue = (e, t) => {
16
- let { state: n, view: r } = e, { selection: i } = n;
17
- if (!i.empty) return !1;
18
- let { $from: a } = i;
19
- if (a.parentOffset !== 0) return !1;
20
- let o = a.depth - 1;
21
- if (o < 0) return !1;
22
- let s = a.node(o), c = a.index(o);
23
- if (c === 0) return !1;
24
- if (s.type === t) return e.commands.lift(t.name);
25
- let l = s.child(c - 1);
26
- if (l.type !== t || !l.lastChild?.isTextblock) return !1;
27
- let u = a.before(), d = u - 1 - 1, { tr: f } = n;
28
- return f.delete(u, a.after()).insert(d, a.parent.content), f.setSelection(w.create(f.doc, d)), r.dispatch(f.scrollIntoView()), !0;
29
- }, de = /^\s*>\s$/, fe = S.create({
15
+ }, de = (e, t) => {
16
+ let { state: n } = e, { selection: r } = n;
17
+ if (!r.empty) return !1;
18
+ let { $from: i } = r;
19
+ if (i.parentOffset !== 0) return !1;
20
+ let a = i.depth - 1;
21
+ if (a < 0) return !1;
22
+ let o = i.node(a), s = i.index(a);
23
+ if (s === 0) return !1;
24
+ if (o.type === t) return e.commands.lift(t.name);
25
+ let c = o.child(s - 1);
26
+ if (c.type !== t || !c.lastChild?.isTextblock) return !1;
27
+ let l = i.before() - 1 - 1;
28
+ return e.commands.command(({ tr: e, dispatch: t }) => {
29
+ if (!t) return !0;
30
+ let n = i.parent.content, r = new v(n, 0, 0);
31
+ return e.replace(l, i.after(), r), e.setSelection(w.create(e.doc, l + n.size)), e.scrollIntoView(), t(e), !0;
32
+ });
33
+ }, fe = /^\s*>\s$/, pe = S.create({
30
34
  name: "blockquote",
31
35
  addOptions() {
32
36
  return { HTMLAttributes: {} };
@@ -65,16 +69,16 @@ var D = (e, t) => {
65
69
  addKeyboardShortcuts() {
66
70
  return {
67
71
  "Mod-Shift-b": () => this.editor.commands.toggleBlockquote(),
68
- Backspace: () => ue(this.editor, this.type)
72
+ Backspace: () => de(this.editor, this.type)
69
73
  };
70
74
  },
71
75
  addInputRules() {
72
- return [y({
73
- find: de,
76
+ return [E({
77
+ find: fe,
74
78
  type: this.type
75
79
  })];
76
80
  }
77
- }), pe = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, me = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, he = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, ge = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, _e = v.create({
81
+ }), me = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, he = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, ge = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, _e = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, ve = y.create({
78
82
  name: "bold",
79
83
  addOptions() {
80
84
  return { HTMLAttributes: {} };
@@ -123,31 +127,31 @@ var D = (e, t) => {
123
127
  };
124
128
  },
125
129
  addInputRules() {
126
- return [u({
127
- find: pe,
130
+ return [b({
131
+ find: me,
128
132
  type: this.type
129
- }), u({
130
- find: he,
133
+ }), b({
134
+ find: ge,
131
135
  type: this.type
132
136
  })];
133
137
  },
134
138
  addPasteRules() {
135
- return [d({
136
- find: me,
139
+ return [C({
140
+ find: he,
137
141
  type: this.type
138
- }), d({
139
- find: ge,
142
+ }), C({
143
+ find: _e,
140
144
  type: this.type
141
145
  })];
142
146
  }
143
- }), ve = (e) => {
147
+ }), ye = (e) => {
144
148
  let t = /`([^`]+)`(?!`)$/.exec(e);
145
149
  return !t || t.index > 0 && e[t.index - 1] === "`" ? null : {
146
150
  index: t.index,
147
151
  text: t[0],
148
152
  replaceWith: t[1]
149
153
  };
150
- }, ye = (e) => {
154
+ }, be = (e) => {
151
155
  let t = /`([^`]+)`(?!`)/g, n = [], r;
152
156
  for (; (r = t.exec(e)) !== null;) r.index > 0 && e[r.index - 1] === "`" || n.push({
153
157
  index: r.index,
@@ -155,7 +159,7 @@ var D = (e, t) => {
155
159
  replaceWith: r[1]
156
160
  });
157
161
  return n;
158
- }, be = v.create({
162
+ }, xe = y.create({
159
163
  name: "code",
160
164
  addOptions() {
161
165
  return { HTMLAttributes: {} };
@@ -190,18 +194,18 @@ var D = (e, t) => {
190
194
  return { "Mod-e": () => this.editor.commands.toggleCode() };
191
195
  },
192
196
  addInputRules() {
193
- return [u({
194
- find: ve,
197
+ return [b({
198
+ find: ye,
195
199
  type: this.type
196
200
  })];
197
201
  },
198
202
  addPasteRules() {
199
- return [d({
200
- find: ye,
203
+ return [C({
204
+ find: be,
201
205
  type: this.type
202
206
  })];
203
207
  }
204
- }), O = 4, xe = /^```([a-z]+)?[\s\n]$/, Se = /^~~~([a-z]+)?[\s\n]$/, Ce = S.create({
208
+ }), O = 4, Se = /^```([a-z]+)?[\s\n]$/, Ce = /^~~~([a-z]+)?[\s\n]$/, we = S.create({
205
209
  name: "codeBlock",
206
210
  addOptions() {
207
211
  return {
@@ -321,29 +325,29 @@ var D = (e, t) => {
321
325
  let a = r.before();
322
326
  return a > 0 ? !1 : e.commands.insertDefaultBlock({ pos: a });
323
327
  },
324
- ArrowDown: ({ editor: t }) => {
328
+ ArrowDown: ({ editor: e }) => {
325
329
  if (!this.options.exitOnArrowDown) return !1;
326
- let { state: n } = t, { selection: r, doc: i } = n, { $from: a, empty: o } = r;
327
- if (!o || a.parent.type !== this.type || a.parentOffset !== a.parent.nodeSize - 2) return !1;
328
- let s = a.after();
329
- return s === void 0 ? !1 : i.nodeAt(s) ? t.commands.command(({ tr: t }) => (t.setSelection(e.near(i.resolve(s))), !0)) : t.commands.exitCode();
330
+ let { state: t } = e, { selection: n, doc: r } = t, { $from: i, empty: a } = n;
331
+ if (!a || i.parent.type !== this.type || i.parentOffset !== i.parent.nodeSize - 2) return !1;
332
+ let o = i.after();
333
+ return o === void 0 ? !1 : r.nodeAt(o) ? e.commands.command(({ tr: e }) => (e.setSelection(c.near(r.resolve(o))), !0)) : e.commands.exitCode();
330
334
  }
331
335
  };
332
336
  },
333
337
  addInputRules() {
334
- return [ne({
335
- find: xe,
338
+ return [l({
339
+ find: Se,
336
340
  type: this.type,
337
341
  getAttributes: (e) => ({ language: e[1] })
338
- }), ne({
339
- find: Se,
342
+ }), l({
343
+ find: Ce,
340
344
  type: this.type,
341
345
  getAttributes: (e) => ({ language: e[1] })
342
346
  })];
343
347
  },
344
348
  addProseMirrorPlugins() {
345
- return [new T({
346
- key: new c("codeBlockVSCodeHandler"),
349
+ return [new h({
350
+ key: new i("codeBlockVSCodeHandler"),
347
351
  props: { handlePaste: (e, t) => {
348
352
  if (!t.clipboardData || this.editor.isActive(this.type.name)) return !1;
349
353
  let n = t.clipboardData.getData("text/plain"), r = t.clipboardData.getData("vscode-editor-data"), i = (r ? JSON.parse(r) : void 0)?.mode;
@@ -353,12 +357,12 @@ var D = (e, t) => {
353
357
  } }
354
358
  })];
355
359
  }
356
- }), we = S.create({
360
+ }), Te = S.create({
357
361
  name: "doc",
358
362
  topNode: !0,
359
363
  content: "block+",
360
364
  renderMarkdown: (e, t) => e.content ? t.renderChildren(e.content, "\n\n") : ""
361
- }), Te = S.create({
365
+ }), Ee = S.create({
362
366
  name: "hardBreak",
363
367
  markdownTokenName: "br",
364
368
  addOptions() {
@@ -402,7 +406,7 @@ var D = (e, t) => {
402
406
  "Shift-Enter": () => this.editor.commands.setHardBreak()
403
407
  };
404
408
  }
405
- }), Ee = S.create({
409
+ }), De = S.create({
406
410
  name: "heading",
407
411
  addOptions() {
408
412
  return {
@@ -457,13 +461,13 @@ var D = (e, t) => {
457
461
  }), {});
458
462
  },
459
463
  addInputRules() {
460
- return this.options.levels.map((e) => ne({
464
+ return this.options.levels.map((e) => l({
461
465
  find: RegExp(`^(#{${Math.min(...this.options.levels)},${e}})\\s$`),
462
466
  type: this.type,
463
467
  getAttributes: { level: e }
464
468
  }));
465
469
  }
466
- }), De = S.create({
470
+ }), Oe = S.create({
467
471
  name: "horizontalRule",
468
472
  addOptions() {
469
473
  return {
@@ -483,12 +487,12 @@ var D = (e, t) => {
483
487
  renderMarkdown: () => "---",
484
488
  addCommands() {
485
489
  return { setHorizontalRule: () => ({ chain: e, state: t }) => {
486
- if (!se(t, t.schema.nodes[this.name])) return !1;
490
+ if (!d(t, t.schema.nodes[this.name])) return !1;
487
491
  let { selection: n } = t, { $to: r } = n, i = e();
488
- return s(n) ? i.insertContentAt(r.pos, { type: this.name }) : i.insertContent({ type: this.name }), i.command(({ state: e, tr: t, dispatch: n }) => {
492
+ return o(n) ? i.insertContentAt(r.pos, { type: this.name }) : i.insertContent({ type: this.name }), i.command(({ state: e, tr: t, dispatch: n }) => {
489
493
  if (n) {
490
494
  let { $to: n } = t.selection, r = n.end();
491
- if (n.nodeAfter) n.nodeAfter.isTextblock ? t.setSelection(w.create(t.doc, n.pos + 1)) : n.nodeAfter.isBlock ? t.setSelection(_.create(t.doc, n.pos)) : t.setSelection(w.create(t.doc, n.pos));
495
+ if (n.nodeAfter) n.nodeAfter.isTextblock ? t.setSelection(w.create(t.doc, n.pos + 1)) : n.nodeAfter.isBlock ? t.setSelection(f.create(t.doc, n.pos)) : t.setSelection(w.create(t.doc, n.pos));
492
496
  else {
493
497
  let i = (e.schema.nodes[this.options.nextNodeType] || n.parent.type.contentMatch.defaultType)?.create();
494
498
  i && (t.insert(r, i), t.setSelection(w.create(t.doc, r + 1)));
@@ -500,12 +504,12 @@ var D = (e, t) => {
500
504
  } };
501
505
  },
502
506
  addInputRules() {
503
- return [f({
507
+ return [ce({
504
508
  find: /^(?:---|—-|___\s|\*\*\*\s)$/,
505
509
  type: this.type
506
510
  })];
507
511
  }
508
- }), Oe = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, ke = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g, Ae = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/, je = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g, Me = v.create({
512
+ }), ke = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, Ae = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g, je = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/, Me = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g, Ne = y.create({
509
513
  name: "italic",
510
514
  addOptions() {
511
515
  return { HTMLAttributes: {} };
@@ -552,29 +556,29 @@ var D = (e, t) => {
552
556
  };
553
557
  },
554
558
  addInputRules() {
555
- return [u({
556
- find: Oe,
559
+ return [b({
560
+ find: ke,
557
561
  type: this.type
558
- }), u({
559
- find: Ae,
562
+ }), b({
563
+ find: je,
560
564
  type: this.type
561
565
  })];
562
566
  },
563
567
  addPasteRules() {
564
- return [d({
565
- find: ke,
568
+ return [C({
569
+ find: Ae,
566
570
  type: this.type
567
- }), d({
568
- find: je,
571
+ }), C({
572
+ find: Me,
569
573
  type: this.type
570
574
  })];
571
575
  }
572
- }), Ne = Object.defineProperty, Pe = (e, t) => {
573
- for (var n in t) Ne(e, n, {
576
+ }), Pe = Object.defineProperty, Fe = (e, t) => {
577
+ for (var n in t) Pe(e, n, {
574
578
  get: t[n],
575
579
  enumerable: !0
576
580
  });
577
- }, Fe = "listItem", Ie = "textStyle", Le = /^\s*([-+*])\s$/, Re = S.create({
581
+ }, Ie = "listItem", Le = "textStyle", Re = /^\s*([-+*])\s$/, ze = S.create({
578
582
  name: "bulletList",
579
583
  addOptions() {
580
584
  return {
@@ -606,26 +610,26 @@ var D = (e, t) => {
606
610
  renderMarkdown: (e, t) => e.content ? t.renderChildren(e.content, "\n") : "",
607
611
  markdownOptions: { indentsContent: !0 },
608
612
  addCommands() {
609
- 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) };
613
+ 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) };
610
614
  },
611
615
  addKeyboardShortcuts() {
612
616
  return { "Mod-Shift-8": () => this.editor.commands.toggleBulletList() };
613
617
  },
614
618
  addInputRules() {
615
- let e = y({
616
- find: Le,
619
+ let e = E({
620
+ find: Re,
617
621
  type: this.type
618
622
  });
619
- return (this.options.keepMarks || this.options.keepAttributes) && (e = y({
620
- find: Le,
623
+ return (this.options.keepMarks || this.options.keepAttributes) && (e = E({
624
+ find: Re,
621
625
  type: this.type,
622
626
  keepMarks: this.options.keepMarks,
623
627
  keepAttributes: this.options.keepAttributes,
624
- getAttributes: () => this.editor.getAttributes(Ie),
628
+ getAttributes: () => this.editor.getAttributes(Le),
625
629
  editor: this.editor
626
630
  })), [e];
627
631
  }
628
- }), ze = (e, t, n) => {
632
+ }), Be = (e, t, n) => {
629
633
  let { selection: r } = e;
630
634
  if (!r.empty) return null;
631
635
  let { $from: i } = r;
@@ -656,24 +660,24 @@ var D = (e, t) => {
656
660
  insertPos: i.after(a),
657
661
  items: f
658
662
  };
659
- }, Be = (e, t, r, i) => {
660
- let a = ze(e, r, i);
661
- if (!a) return !1;
662
- let { selection: o } = e, { nestedList: s, nestedListPos: c, insertPos: l, items: u } = a, d = e.tr;
663
- d.delete(c, c + s.nodeSize);
664
- let f = d.mapping.map(l);
665
- return d.insert(f, n.from(u)), d.setSelection(o.map(d.doc, d.mapping)), t && t(d), !0;
666
- }, Ve = (e, t, n) => Be(e.state, e.view.dispatch, t, n), He = (e, t) => b.create({
663
+ }, Ve = (e, t, n, r) => {
664
+ let i = Be(e, n, r);
665
+ if (!i) return !1;
666
+ let { selection: a } = e, { nestedList: o, nestedListPos: s, insertPos: c, items: l } = i, u = e.tr;
667
+ u.delete(s, s + o.nodeSize);
668
+ let d = u.mapping.map(c);
669
+ return u.insert(d, g.from(l)), u.setSelection(a.map(u.doc, u.mapping)), t && t(u), !0;
670
+ }, He = (e, t, n) => Ve(e.state, e.view.dispatch, t, n), Ue = (e, t) => T.create({
667
671
  name: `${e}BranchingDeleteKeymap`,
668
672
  priority: 101,
669
673
  addKeyboardShortcuts() {
670
- let n = () => Ve(this.editor, e, t);
674
+ let n = () => He(this.editor, e, t);
671
675
  return {
672
676
  Delete: n,
673
677
  "Mod-Delete": n
674
678
  };
675
679
  }
676
- }), Ue = [
680
+ }), We = [
677
681
  [1e3, "m"],
678
682
  [900, "cm"],
679
683
  [500, "d"],
@@ -687,20 +691,20 @@ var D = (e, t) => {
687
691
  [5, "v"],
688
692
  [4, "iv"],
689
693
  [1, "i"]
690
- ], k = "abcdefghijklmnopqrstuvwxyz", We = String.raw`\d+|[ivxlcdmIVXLCDM]+|${"[a-zA-Z]{1,2}"}`;
694
+ ], k = "abcdefghijklmnopqrstuvwxyz", Ge = String.raw`\d+|[ivxlcdmIVXLCDM]+|${"[a-zA-Z]{1,2}"}`;
691
695
  function A(e) {
692
696
  let t = e, n = "";
693
- for (let [e, r] of Ue) for (; t >= e;) n += r, t -= e;
697
+ for (let [e, r] of We) for (; t >= e;) n += r, t -= e;
694
698
  return n;
695
699
  }
696
- function j(e) {
700
+ function Ke(e) {
697
701
  return A(e).toUpperCase();
698
702
  }
699
- function Ge(e) {
703
+ function qe(e) {
700
704
  let t = e.toLowerCase(), n = 0, r = 0;
701
705
  for (; n < t.length;) {
702
706
  let e = !1;
703
- for (let [i, a] of Ue) if (t.startsWith(a, n)) {
707
+ for (let [i, a] of We) if (t.startsWith(a, n)) {
704
708
  r += i, n += a.length, e = !0;
705
709
  break;
706
710
  }
@@ -708,12 +712,12 @@ function Ge(e) {
708
712
  }
709
713
  return r;
710
714
  }
711
- function Ke(e) {
715
+ function Je(e) {
712
716
  if (!/^[ivxlcdmIVXLCDM]+$/.test(e)) return !1;
713
- let t = Ge(e);
714
- return t <= 0 ? !1 : (e === e.toLowerCase() ? A(t) : j(t)) === e;
717
+ let t = qe(e);
718
+ return t <= 0 ? !1 : (e === e.toLowerCase() ? A(t) : Ke(t)) === e;
715
719
  }
716
- function qe(e) {
720
+ function Ye(e) {
717
721
  let t = e.toLowerCase();
718
722
  if (t.length === 1) return t.charCodeAt(0) - 97 + 1;
719
723
  if (t.length === 2) {
@@ -722,82 +726,82 @@ function qe(e) {
722
726
  }
723
727
  return 0;
724
728
  }
725
- function M(e) {
729
+ function j(e) {
726
730
  if (e <= 26) return k[e - 1];
727
731
  let t = Math.floor((e - 1) / 26) - 1, n = (e - 1) % 26;
728
732
  return t < 0 ? k[n] : k[t] + k[n];
729
733
  }
730
- function N(e) {
734
+ function M(e) {
731
735
  if (!(!e || /^\d+$/.test(e))) {
732
- if (Ke(e)) return e === e.toLowerCase() ? "i" : "I";
736
+ if (Je(e)) return e === e.toLowerCase() ? "i" : "I";
733
737
  if (/^[a-z]{1,2}$/.test(e)) return "a";
734
738
  if (/^[A-Z]{1,2}$/.test(e)) return "A";
735
739
  }
736
740
  }
737
- function P(e) {
741
+ function Xe(e) {
738
742
  if (/^\d+$/.test(e)) return parseInt(e, 10);
739
- let t = N(e);
740
- if (t === "i" || t === "I") return Ge(e);
743
+ let t = M(e);
744
+ if (t === "i" || t === "I") return qe(e);
741
745
  if (t === "a" || t === "A") {
742
- let t = qe(e);
746
+ let t = Ye(e);
743
747
  return t > 0 ? t : 1;
744
748
  }
745
749
  let n = parseInt(e, 10);
746
750
  return Number.isNaN(n) ? 1 : n;
747
751
  }
748
- function Je(e, t) {
752
+ function Ze(e, t) {
749
753
  if (e === "numeric") return String(t);
750
754
  switch (e) {
751
- case "a": return M(t);
752
- case "A": return M(t).toUpperCase();
755
+ case "a": return j(t);
756
+ case "A": return j(t).toUpperCase();
753
757
  case "i": return A(t);
754
- case "I": return j(t);
758
+ case "I": return Ke(t);
755
759
  default: return String(t);
756
760
  }
757
761
  }
758
- function Ye(e) {
762
+ function Qe(e) {
759
763
  if (e.length === 0) return !1;
760
- let t = N(e[0]) ?? "numeric", n = P(e[0]);
764
+ let t = M(e[0]) ?? "numeric", n = Xe(e[0]);
761
765
  if (n < 1) return !1;
762
766
  for (let r = 0; r < e.length; r++) {
763
- let i = Je(t, n + r);
767
+ let i = Ze(t, n + r);
764
768
  if (e[r] !== i) return !1;
765
769
  }
766
770
  return !0;
767
771
  }
768
- function Xe(e) {
772
+ function $e(e) {
769
773
  return {
770
- type: N(e),
771
- start: P(e)
774
+ type: M(e),
775
+ start: Xe(e)
772
776
  };
773
777
  }
774
- function Ze(e) {
775
- let { type: t, start: n } = Xe(e), r = {};
778
+ function et(e) {
779
+ let { type: t, start: n } = $e(e), r = {};
776
780
  return t && (r.type = t), n !== 1 && (r.start = n), r;
777
781
  }
778
- function Qe(e, t, n = ". ") {
782
+ function tt(e, t, n = ". ") {
779
783
  let r = t + 1;
780
784
  if (!e || e === "1") return `${r}${n}`;
781
785
  switch (e) {
782
- case "a": return `${M(r)}${n}`;
783
- case "A": return `${M(r).toUpperCase()}${n}`;
786
+ case "a": return `${j(r)}${n}`;
787
+ case "A": return `${j(r).toUpperCase()}${n}`;
784
788
  case "i": return `${A(r)}${n}`;
785
- case "I": return `${j(r)}${n}`;
789
+ case "I": return `${Ke(r)}${n}`;
786
790
  default: return `${r}${n}`;
787
791
  }
788
792
  }
789
- function $e(e) {
793
+ function nt(e) {
790
794
  let t = e.tokens?.[0];
791
795
  return !!(e.text && e.tokens?.length === 1 && t?.type === "list" && t.ordered && t.raw === e.text);
792
796
  }
793
- function et(e, t) {
797
+ function rt(e, t) {
794
798
  return t.tokenizeInline ? t.parseInline(t.tokenizeInline(e)) : t.parseInline([{
795
799
  type: "text",
796
800
  raw: e,
797
801
  text: e
798
802
  }]);
799
803
  }
800
- var tt = S.create({
804
+ var it = S.create({
801
805
  name: "listItem",
802
806
  addOptions() {
803
807
  return {
@@ -823,11 +827,11 @@ var tt = S.create({
823
827
  if (e.type !== "list_item") return [];
824
828
  let n = t.parseBlockChildren ?? t.parseChildren, r = [];
825
829
  if (e.tokens && e.tokens.length > 0) {
826
- if ($e(e)) return {
830
+ if (nt(e)) return {
827
831
  type: "listItem",
828
832
  content: [{
829
833
  type: "paragraph",
830
- content: et(e.text || "", t)
834
+ content: rt(e.text || "", t)
831
835
  }]
832
836
  };
833
837
  if (e.tokens.some((e) => e.type === "paragraph")) r = n(e.tokens);
@@ -852,16 +856,16 @@ var tt = S.create({
852
856
  content: r
853
857
  };
854
858
  },
855
- renderMarkdown: (e, t, n) => te(e, t, (e) => {
859
+ renderMarkdown: (e, t, n) => r(e, t, (e) => {
856
860
  if (e.parentType === "bulletList") return "- ";
857
861
  if (e.parentType === "orderedList") {
858
862
  let t = e.meta?.parentAttrs?.start || 1;
859
- return Qe(e.meta?.parentAttrs?.type, t - 1 + (e.index || 0), ". ");
863
+ return tt(e.meta?.parentAttrs?.type, t - 1 + (e.index || 0), ". ");
860
864
  }
861
865
  return "- ";
862
866
  }, n),
863
867
  addExtensions() {
864
- return [He(this.name, [this.options.bulletListTypeName, this.options.orderedListTypeName])];
868
+ return [Ue(this.name, [this.options.bulletListTypeName, this.options.orderedListTypeName])];
865
869
  },
866
870
  addKeyboardShortcuts() {
867
871
  return {
@@ -871,76 +875,92 @@ var tt = S.create({
871
875
  };
872
876
  }
873
877
  });
874
- Pe({}, {
875
- findListItemPos: () => F,
876
- getNextListDepth: () => I,
877
- handleBackspace: () => rt,
878
- handleDelete: () => ot,
879
- hasListBefore: () => nt,
880
- hasListItemAfter: () => st,
881
- hasListItemBefore: () => ct,
882
- listItemHasSubList: () => lt,
883
- nextListIsDeeper: () => it,
884
- nextListIsHigher: () => at
878
+ Fe({}, {
879
+ findListItemPos: () => N,
880
+ getNextListDepth: () => P,
881
+ handleBackspace: () => F,
882
+ handleDelete: () => I,
883
+ handleTab: () => ct,
884
+ hasListBefore: () => at,
885
+ hasListItemAfter: () => lt,
886
+ hasListItemBefore: () => ut,
887
+ listItemHasSubList: () => dt,
888
+ nextListIsDeeper: () => ot,
889
+ nextListIsHigher: () => st
885
890
  });
886
- var F = (e, t) => {
887
- let { $from: n } = t.selection, r = g(e, t.schema), i = null, a = n.depth, o = n.pos, s = null;
891
+ var N = (e, t) => {
892
+ let { $from: n } = t.selection, r = ee(e, t.schema), i = null, a = n.depth, o = n.pos, s = null;
888
893
  for (; a > 0 && s === null;) i = n.node(a), i.type === r ? s = a : (--a, --o);
889
894
  return s === null ? null : {
890
895
  $pos: t.doc.resolve(o),
891
896
  depth: s
892
897
  };
893
- }, I = (e, t) => {
894
- let n = F(e, t);
898
+ }, P = (e, t) => {
899
+ let n = N(e, t);
895
900
  if (!n) return !1;
896
- let [, r] = ie(t, e, n.$pos.pos + 4);
901
+ let [, r] = oe(t, e, n.$pos.pos + 4);
897
902
  return r;
898
- }, nt = (e, t, n) => {
903
+ }, at = (e, t, n) => {
899
904
  let { $anchor: r } = e.selection, i = Math.max(0, r.pos - 2), a = e.doc.resolve(i).node();
900
905
  return !(!a || !n.includes(a.type.name));
901
- }, rt = (e, t, n) => {
906
+ }, F = (e, n, r) => {
902
907
  if (e.commands.undoInputRule()) return !0;
903
908
  if (e.state.selection.from !== e.state.selection.to) return !1;
904
- if (!i(e.state, t) && nt(e.state, t, n)) {
905
- let { $anchor: n } = e.state.selection, r = e.state.doc.resolve(n.before() - 1), i = [];
906
- r.node().descendants((e, n) => {
907
- e.type.name === t && i.push({
909
+ if (!t(e.state, n) && at(e.state, n, r)) {
910
+ let { $anchor: t } = e.state.selection, r = e.state.doc.resolve(t.before() - 1), i = [];
911
+ r.node().descendants((e, t) => {
912
+ e.type.name === n && i.push({
908
913
  node: e,
909
- pos: n
914
+ pos: t
910
915
  });
911
916
  });
912
917
  let a = i.at(-1);
913
918
  if (!a) return !1;
914
919
  let o = e.state.doc.resolve(r.start() + a.pos + 1);
915
920
  return e.chain().cut({
916
- from: n.start() - 1,
917
- to: n.end() + 1
921
+ from: t.start() - 1,
922
+ to: t.end() + 1
918
923
  }, o.end()).joinForward().run();
919
924
  }
920
- return !i(e.state, t) || !oe(e.state) ? !1 : e.chain().liftListItem(t).run();
921
- }, it = (e, t) => {
922
- let n = I(e, t), r = F(e, t);
925
+ if (!t(e.state, n) || !u(e.state)) return !1;
926
+ let { $from: i } = e.state.selection, a = i.depth - 1;
927
+ return i.node(a).type !== e.schema.nodes[n] || i.index(a) !== 0 ? !1 : e.chain().liftListItem(n).run();
928
+ }, ot = (e, t) => {
929
+ let n = P(e, t), r = N(e, t);
923
930
  return !r || !n ? !1 : n > r.depth;
924
- }, at = (e, t) => {
925
- let n = I(e, t), r = F(e, t);
926
- return !r || !n ? !1 : n < r.depth;
927
- }, ot = (e, n) => {
928
- if (!i(e.state, n) || !t(e.state, n)) return !1;
929
- let { selection: r } = e.state, { $from: a, $to: o } = r;
930
- 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();
931
931
  }, st = (e, t) => {
932
+ let n = P(e, t), r = N(e, t);
933
+ return !r || !n ? !1 : n < r.depth;
934
+ }, I = (e, n) => {
935
+ if (!t(e.state, n) || !ne(e.state, n)) return !1;
936
+ let { selection: r } = e.state, { $from: i, $to: a } = r;
937
+ return !r.empty && i.sameParent(a) ? !1 : ot(n, e.state) ? e.chain().focus(e.state.selection.from + 4).lift(n).joinBackward().run() : st(n, e.state) ? e.chain().joinForward().joinBackward().run() : e.commands.joinItemForward();
938
+ }, ct = (e, n, r) => {
939
+ let { state: i } = e, { selection: a } = i;
940
+ if (!a.empty) return !1;
941
+ let { $from: o } = a;
942
+ if (o.parentOffset !== 0 || !o.parent.isTextblock || t(i, n)) return !1;
943
+ let s = ae(o);
944
+ if (!s || !r.includes(s.type.name)) return !1;
945
+ let c = s.lastChild;
946
+ if (!c || c.type.name !== n) return !1;
947
+ let l = o.parent;
948
+ if (!c.canReplace(c.childCount, c.childCount, g.from(l))) return !1;
949
+ let u = o.before(), d = o.after(), f = u - 2;
950
+ return e.commands.command(({ tr: e, dispatch: t }) => (t && (e.delete(u, d).insert(f, g.from(l)), e.setSelection(w.create(e.doc, f + 1)), e.scrollIntoView()), !0));
951
+ }, lt = (e, t) => {
932
952
  let { $anchor: n } = t.selection, r = t.doc.resolve(n.pos - n.parentOffset - 2);
933
953
  return r.index() !== r.parent.childCount - 1 && r.nodeAfter?.type.name === e;
934
- }, ct = (e, t) => {
954
+ }, ut = (e, t) => {
935
955
  let { $anchor: n } = t.selection, r = t.doc.resolve(n.pos - 2);
936
956
  return r.index() !== 0 && r.nodeBefore?.type.name === e;
937
- }, lt = (e, t, n) => {
957
+ }, dt = (e, t, n) => {
938
958
  if (!n) return !1;
939
- let r = g(e, t.schema), i = !1;
959
+ let r = ee(e, t.schema), i = !1;
940
960
  return n.descendants((e) => {
941
961
  e.type === r && (i = !0);
942
962
  }), i;
943
- }, ut = b.create({
963
+ }, ft = T.create({
944
964
  name: "listKeymap",
945
965
  addOptions() {
946
966
  return { listTypes: [{
@@ -956,46 +976,51 @@ var F = (e, t) => {
956
976
  Delete: ({ editor: e }) => {
957
977
  let t = !1;
958
978
  return this.options.listTypes.forEach(({ itemName: n }) => {
959
- e.state.schema.nodes[n] !== void 0 && ot(e, n) && (t = !0);
979
+ e.state.schema.nodes[n] !== void 0 && I(e, n) && (t = !0);
960
980
  }), t;
961
981
  },
962
982
  "Mod-Delete": ({ editor: e }) => {
963
983
  let t = !1;
964
984
  return this.options.listTypes.forEach(({ itemName: n }) => {
965
- e.state.schema.nodes[n] !== void 0 && ot(e, n) && (t = !0);
985
+ e.state.schema.nodes[n] !== void 0 && I(e, n) && (t = !0);
966
986
  }), t;
967
987
  },
968
988
  Backspace: ({ editor: e }) => {
969
989
  let t = !1;
970
990
  return this.options.listTypes.forEach(({ itemName: n, wrapperNames: r }) => {
971
- e.state.schema.nodes[n] !== void 0 && rt(e, n, r) && (t = !0);
991
+ e.state.schema.nodes[n] !== void 0 && F(e, n, r) && (t = !0);
972
992
  }), t;
973
993
  },
974
994
  "Mod-Backspace": ({ editor: e }) => {
975
995
  let t = !1;
976
996
  return this.options.listTypes.forEach(({ itemName: n, wrapperNames: r }) => {
977
- e.state.schema.nodes[n] !== void 0 && rt(e, n, r) && (t = !0);
997
+ e.state.schema.nodes[n] !== void 0 && F(e, n, r) && (t = !0);
978
998
  }), t;
999
+ },
1000
+ Tab: ({ editor: e }) => {
1001
+ for (let { itemName: t, wrapperNames: n } of this.options.listTypes) if (e.state.schema.nodes[t] !== void 0 && ct(e, t, n)) return !0;
1002
+ return !1;
979
1003
  }
980
1004
  };
981
1005
  }
982
- }), L = RegExp(`^(\\s*)(${We})([.)])\\s+(.*)$`), dt = /^\s/, R = {
1006
+ }), L = RegExp(`^(\\s*)(${Ge})([.)])\\s+(.*)$`), pt = /^\s/, R = {
983
1007
  heading: /^#{1,6}(?:\s|$)/,
984
1008
  bulletItem: /^[-+*]\s+/,
985
1009
  codeFence: /^(?:```|~~~)/,
1010
+ blockMath: /^\$\$/,
986
1011
  thematicBreak: /^(?:(?:-[ \t]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})$/
987
1012
  };
988
- function ft(e) {
1013
+ function mt(e) {
989
1014
  return L.test(e.trimStart());
990
1015
  }
991
- function pt(e) {
1016
+ function ht(e) {
992
1017
  let t = e.trimStart();
993
- return R.bulletItem.test(t) || ft(t) || R.heading.test(t) || R.thematicBreak.test(t) && !t.startsWith("-") || /^>\s?/.test(t) || R.codeFence.test(t);
1018
+ return R.bulletItem.test(t) || mt(t) || R.heading.test(t) || R.thematicBreak.test(t) && !t.startsWith("-") || /^>\s?/.test(t) || R.codeFence.test(t) || R.blockMath.test(t);
994
1019
  }
995
- function mt(e) {
1020
+ function gt(e) {
996
1021
  return Object.values(R).some((t) => t.test(e));
997
1022
  }
998
- function ht(e) {
1023
+ function _t(e) {
999
1024
  let t = [], n = [], r = !1;
1000
1025
  return e.forEach((e) => {
1001
1026
  if (r) {
@@ -1006,7 +1031,7 @@ function ht(e) {
1006
1031
  r = !0, n.push(e);
1007
1032
  return;
1008
1033
  }
1009
- if (t.length > 0 && pt(e)) {
1034
+ if (t.length > 0 && ht(e)) {
1010
1035
  r = !0, n.push(e);
1011
1036
  return;
1012
1037
  }
@@ -1016,21 +1041,21 @@ function ht(e) {
1016
1041
  blockLines: n
1017
1042
  };
1018
1043
  }
1019
- function gt(e) {
1044
+ function vt(e) {
1020
1045
  let t = [], n = 0, r = 0;
1021
1046
  for (; n < e.length;) {
1022
1047
  let i = e[n], a = i.match(L);
1023
1048
  if (!a) break;
1024
- 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;
1049
+ let [, o, s, c, l] = a, u = o.length, d = parseInt(s, 10), f = isNaN(d) ? M(s) : void 0, p = isNaN(d) ? Xe(s) : d, m = [l], h = n + 1, g = [i], _ = !1;
1025
1050
  for (; h < e.length;) {
1026
1051
  let t = e[h];
1027
1052
  if (t.match(L)) break;
1028
1053
  if (t.trim() === "") g.push(t), m.push(""), _ = !0, h += 1;
1029
- else if (t.match(dt)) {
1054
+ else if (t.match(pt)) {
1030
1055
  let e = t.length - t.trimStart().length, n = u + s.length + 1;
1031
1056
  g.push(t), m.push(t.slice(Math.min(e, n))), h += 1;
1032
1057
  } else {
1033
- if (_ || mt(t)) break;
1058
+ if (_ || gt(t)) break;
1034
1059
  g.push(t), m.push(t), h += 1;
1035
1060
  }
1036
1061
  }
@@ -1045,22 +1070,22 @@ function gt(e) {
1045
1070
  }
1046
1071
  return [t, r];
1047
1072
  }
1048
- var _t = RegExp(`^(${We})([.)])\\s+(.+)$`);
1049
- function vt(e) {
1073
+ var yt = RegExp(`^(${Ge})([.)])\\s+(.+)$`);
1074
+ function bt(e) {
1050
1075
  let t = e.split("\n").filter((e) => e.trim().length > 0);
1051
1076
  if (t.length === 0) return null;
1052
1077
  let n = [];
1053
1078
  for (let e of t) {
1054
- let t = e.trim().match(_t);
1079
+ let t = e.trim().match(yt);
1055
1080
  if (!t) return null;
1056
1081
  n.push({
1057
1082
  marker: t[1],
1058
1083
  content: t[3]
1059
1084
  });
1060
1085
  }
1061
- return Ye(n.map((e) => e.marker)) ? {
1086
+ return Qe(n.map((e) => e.marker)) ? {
1062
1087
  type: "orderedList",
1063
- attrs: Ze(n[0].marker),
1088
+ attrs: et(n[0].marker),
1064
1089
  content: n.map((e) => ({
1065
1090
  type: "listItem",
1066
1091
  content: [{
@@ -1073,12 +1098,12 @@ function vt(e) {
1073
1098
  }))
1074
1099
  } : null;
1075
1100
  }
1076
- function yt(e, t, n) {
1101
+ function xt(e, t, n) {
1077
1102
  let r = [], i = 0;
1078
1103
  for (; i < e.length;) {
1079
1104
  let a = e[i];
1080
1105
  if (a.indent === t) {
1081
- let { paragraphLines: o, blockLines: s } = ht(a.contentLines), c = o.join("\n").trim(), l = [];
1106
+ let { paragraphLines: o, blockLines: s } = _t(a.contentLines), c = o.join("\n").trim(), l = [];
1082
1107
  c && l.push({
1083
1108
  type: "paragraph",
1084
1109
  raw: c,
@@ -1092,7 +1117,7 @@ function yt(e, t, n) {
1092
1117
  let d = i + 1, f = [];
1093
1118
  for (; d < e.length && e[d].indent > t;) f.push(e[d]), d += 1;
1094
1119
  if (f.length > 0) {
1095
- let e = yt(f, Math.min(...f.map((e) => e.indent)), n);
1120
+ let e = xt(f, Math.min(...f.map((e) => e.indent)), n);
1096
1121
  l.push({
1097
1122
  type: "list",
1098
1123
  ordered: !0,
@@ -1111,7 +1136,7 @@ function yt(e, t, n) {
1111
1136
  }
1112
1137
  return r;
1113
1138
  }
1114
- function bt(e, t) {
1139
+ function St(e, t) {
1115
1140
  return e.map((e) => {
1116
1141
  if (e.type !== "list_item") return t.parseChildren([e])[0];
1117
1142
  let n = [];
@@ -1133,8 +1158,8 @@ function bt(e, t) {
1133
1158
  };
1134
1159
  });
1135
1160
  }
1136
- var xt = "listItem", St = "textStyle", Ct = /^(\d+)\.\s$/;
1137
- function wt(e) {
1161
+ var Ct = "listItem", wt = "textStyle", Tt = /^(\d+)\.\s$/;
1162
+ function Et(e) {
1138
1163
  let t = e.match(/list-style-type\s*:\s*([^;]+)/i);
1139
1164
  if (!t) return null;
1140
1165
  switch (t[1].trim().toLowerCase()) {
@@ -1147,7 +1172,7 @@ function wt(e) {
1147
1172
  default: return null;
1148
1173
  }
1149
1174
  }
1150
- var Tt = S.create({
1175
+ var Dt = S.create({
1151
1176
  name: "orderedList",
1152
1177
  addOptions() {
1153
1178
  return {
@@ -1174,14 +1199,14 @@ var Tt = S.create({
1174
1199
  if (t) return t;
1175
1200
  let n = e.getAttribute("style");
1176
1201
  if (n) {
1177
- let e = wt(n);
1202
+ let e = Et(n);
1178
1203
  if (e) return e;
1179
1204
  }
1180
1205
  let r = e.querySelector("li");
1181
1206
  if (r) {
1182
1207
  let e = r.getAttribute("style");
1183
1208
  if (e) {
1184
- let t = wt(e);
1209
+ let t = Et(e);
1185
1210
  if (t) return t;
1186
1211
  }
1187
1212
  }
@@ -1204,7 +1229,7 @@ var Tt = S.create({
1204
1229
  markdownTokenName: "list",
1205
1230
  parseMarkdown: (e, t) => {
1206
1231
  if (e.type !== "list" || !e.ordered) return [];
1207
- let n = e.start || 1, r = e.typeMarker, i = e.items ? bt(e.items, t) : [], a = {};
1232
+ let n = e.start || 1, r = e.typeMarker, i = e.items ? St(e.items, t) : [], a = {};
1208
1233
  return n !== 1 && (a.start = n), r && (a.type = r), Object.keys(a).length > 0 ? {
1209
1234
  type: "orderedList",
1210
1235
  attrs: a,
@@ -1220,9 +1245,9 @@ var Tt = S.create({
1220
1245
  level: "block",
1221
1246
  start: () => -1,
1222
1247
  tokenize: (e, t, n) => {
1223
- let r = e.split("\n"), [i, a] = gt(r);
1248
+ let r = e.split("\n"), [i, a] = vt(r);
1224
1249
  if (i.length === 0) return;
1225
- let o = yt(i, i[0].indent, n);
1250
+ let o = xt(i, i[0].indent, n);
1226
1251
  if (o.length !== 0) return {
1227
1252
  type: "list",
1228
1253
  ordered: !0,
@@ -1235,17 +1260,17 @@ var Tt = S.create({
1235
1260
  },
1236
1261
  markdownOptions: { indentsContent: !0 },
1237
1262
  addCommands() {
1238
- 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) };
1263
+ return { toggleOrderedList: () => ({ commands: e, chain: t }) => this.options.keepAttributes ? t().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(Ct, this.editor.getAttributes(wt)).run() : e.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks) };
1239
1264
  },
1240
1265
  addKeyboardShortcuts() {
1241
1266
  return { "Mod-Shift-7": () => this.editor.commands.toggleOrderedList() };
1242
1267
  },
1243
1268
  addProseMirrorPlugins() {
1244
- return [new T({ props: { handlePaste: (e, t) => {
1269
+ return [new h({ props: { handlePaste: (e, t) => {
1245
1270
  if ((t.clipboardData?.getData("text/html"))?.trim()) return !1;
1246
1271
  let n = t.clipboardData?.getData("text/plain");
1247
1272
  if (!n) return !1;
1248
- let r = vt(n);
1273
+ let r = bt(n);
1249
1274
  if (!r) return !1;
1250
1275
  try {
1251
1276
  let t = e.state.schema.nodeFromJSON(r), n = e.state.tr.replaceSelectionWith(t);
@@ -1256,26 +1281,26 @@ var Tt = S.create({
1256
1281
  } } })];
1257
1282
  },
1258
1283
  addInputRules() {
1259
- let e = (e, t) => (!t.attrs.type || t.attrs.type === "1") && t.childCount + t.attrs.start === +e[1], t = y({
1260
- find: Ct,
1284
+ let e = (e, t) => (!t.attrs.type || t.attrs.type === "1") && t.childCount + t.attrs.start === +e[1], t = E({
1285
+ find: Tt,
1261
1286
  type: this.type,
1262
1287
  getAttributes: (e) => ({ start: +e[1] }),
1263
1288
  joinPredicate: e
1264
1289
  });
1265
- return (this.options.keepMarks || this.options.keepAttributes) && (t = y({
1266
- find: Ct,
1290
+ return (this.options.keepMarks || this.options.keepAttributes) && (t = E({
1291
+ find: Tt,
1267
1292
  type: this.type,
1268
1293
  keepMarks: this.options.keepMarks,
1269
1294
  keepAttributes: this.options.keepAttributes,
1270
1295
  getAttributes: (e) => ({
1271
1296
  start: +e[1],
1272
- ...this.editor.getAttributes(St)
1297
+ ...this.editor.getAttributes(wt)
1273
1298
  }),
1274
1299
  joinPredicate: e,
1275
1300
  editor: this.editor
1276
1301
  })), [t];
1277
1302
  }
1278
- }), Et = /^\s*(\[([( |x])?\])\s$/, Dt = S.create({
1303
+ }), Ot = /^\s*(\[([( |x])?\])\s$/, kt = "position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0", At = (e, t, n) => (n?.checkboxLabel)?.call(n, e, t) || `Task item checkbox for ${e.textContent || "empty task item"}`, jt = S.create({
1279
1304
  name: "taskItem",
1280
1305
  addOptions() {
1281
1306
  return {
@@ -1303,7 +1328,8 @@ var Tt = S.create({
1303
1328
  parseHTML() {
1304
1329
  return [{
1305
1330
  tag: `li[data-type="${this.name}"]`,
1306
- priority: 51
1331
+ priority: 51,
1332
+ contentElement: (e) => e.querySelector("div") ?? e
1307
1333
  }];
1308
1334
  },
1309
1335
  renderHTML({ node: e, HTMLAttributes: t }) {
@@ -1331,10 +1357,10 @@ var Tt = S.create({
1331
1357
  },
1332
1358
  renderMarkdown: (e, t) => {
1333
1359
  let n = `- [${e.attrs?.checked ? "x" : " "}] `;
1334
- return te(e, t, n);
1360
+ return r(e, t, n);
1335
1361
  },
1336
1362
  addExtensions() {
1337
- return this.options.nested ? [He(this.name, [this.options.taskListTypeName])] : [];
1363
+ return this.options.nested ? [Ue(this.name, [this.options.taskListTypeName])] : [];
1338
1364
  },
1339
1365
  addKeyboardShortcuts() {
1340
1366
  let e = {
@@ -1348,9 +1374,11 @@ var Tt = S.create({
1348
1374
  },
1349
1375
  addNodeView() {
1350
1376
  return ({ node: e, HTMLAttributes: t, getPos: n, editor: r }) => {
1351
- let i = document.createElement("li"), a = document.createElement("label"), o = document.createElement("span"), s = document.createElement("input"), c = document.createElement("div"), l = (e) => {
1352
- var t;
1353
- s.ariaLabel = ((t = this.options.a11y)?.checkboxLabel)?.call(t, e, s.checked) || `Task item checkbox for ${e.textContent || "empty task item"}`;
1377
+ let i = document.createElement("li"), a = document.createElement("label"), o = document.createElement("span"), s = document.createElement("input"), c = document.createElement("div");
1378
+ o.style.cssText = kt;
1379
+ let l = (e) => {
1380
+ let t = At(e, e.attrs.checked, this.options.a11y);
1381
+ s.setAttribute("aria-label", t), o.textContent = t;
1354
1382
  };
1355
1383
  l(e), a.contentEditable = "false", s.type = "checkbox", s.addEventListener("mousedown", (e) => e.preventDefault()), s.addEventListener("change", (t) => {
1356
1384
  if (!r.isEditable && !this.options.onReadOnlyChecked) {
@@ -1390,13 +1418,13 @@ var Tt = S.create({
1390
1418
  };
1391
1419
  },
1392
1420
  addInputRules() {
1393
- return [y({
1394
- find: Et,
1421
+ return [E({
1422
+ find: Ot,
1395
1423
  type: this.type,
1396
1424
  getAttributes: (e) => ({ checked: e[e.length - 1] === "x" })
1397
1425
  })];
1398
1426
  }
1399
- }), Ot = S.create({
1427
+ }), Mt = S.create({
1400
1428
  name: "taskList",
1401
1429
  addOptions() {
1402
1430
  return {
@@ -1430,9 +1458,9 @@ var Tt = S.create({
1430
1458
  let t = e.match(/^\s*[-+*]\s+\[([ xX])\]\s+/)?.index;
1431
1459
  return t === void 0 ? -1 : t;
1432
1460
  },
1433
- tokenize(e, t, n) {
1434
- let r = (e) => {
1435
- let t = ee(e, {
1461
+ tokenize(e, t, r) {
1462
+ let i = (e) => {
1463
+ let t = n(e, {
1436
1464
  itemPattern: /^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,
1437
1465
  extractItemData: (e) => ({
1438
1466
  indentLevel: e[1].length,
@@ -1446,21 +1474,21 @@ var Tt = S.create({
1446
1474
  indentLevel: e.indentLevel,
1447
1475
  checked: e.checked,
1448
1476
  text: e.mainContent,
1449
- tokens: n.inlineTokens(e.mainContent),
1477
+ tokens: r.inlineTokens(e.mainContent),
1450
1478
  nestedTokens: t
1451
1479
  }),
1452
- customNestedParser: r
1453
- }, n);
1480
+ customNestedParser: i
1481
+ }, r);
1454
1482
  if (t) {
1455
- let r = {
1483
+ let n = {
1456
1484
  type: "taskList",
1457
1485
  raw: t.raw,
1458
1486
  items: t.items
1459
1487
  }, i = e.slice(t.raw.length);
1460
- return i.trim() ? [r, ...n.blockTokens(i)] : [r];
1488
+ return i.trim() ? [n, ...r.blockTokens(i)] : [n];
1461
1489
  }
1462
- return n.blockTokens(e);
1463
- }, i = ee(e, {
1490
+ return r.blockTokens(e);
1491
+ }, a = n(e, {
1464
1492
  itemPattern: /^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,
1465
1493
  extractItemData: (e) => ({
1466
1494
  indentLevel: e[1].length,
@@ -1474,15 +1502,15 @@ var Tt = S.create({
1474
1502
  indentLevel: e.indentLevel,
1475
1503
  checked: e.checked,
1476
1504
  text: e.mainContent,
1477
- tokens: n.inlineTokens(e.mainContent),
1505
+ tokens: r.inlineTokens(e.mainContent),
1478
1506
  nestedTokens: t
1479
1507
  }),
1480
- customNestedParser: r
1481
- }, n);
1482
- if (i) return {
1508
+ customNestedParser: i
1509
+ }, r);
1510
+ if (a) return {
1483
1511
  type: "taskList",
1484
- raw: i.raw,
1485
- items: i.items
1512
+ raw: a.raw,
1513
+ items: a.items
1486
1514
  };
1487
1515
  }
1488
1516
  },
@@ -1494,16 +1522,16 @@ var Tt = S.create({
1494
1522
  return { "Mod-Shift-9": () => this.editor.commands.toggleTaskList() };
1495
1523
  }
1496
1524
  });
1497
- b.create({
1525
+ T.create({
1498
1526
  name: "listKit",
1499
1527
  addExtensions() {
1500
1528
  let e = [];
1501
- 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;
1529
+ return this.options.bulletList !== !1 && e.push(ze.configure(this.options.bulletList)), this.options.listItem !== !1 && e.push(it.configure(this.options.listItem)), this.options.listKeymap !== !1 && e.push(ft.configure(this.options.listKeymap)), this.options.orderedList !== !1 && e.push(Dt.configure(this.options.orderedList)), this.options.taskItem !== !1 && e.push(jt.configure(this.options.taskItem)), this.options.taskList !== !1 && e.push(Mt.configure(this.options.taskList)), e;
1502
1530
  }
1503
1531
  });
1504
1532
  //#endregion
1505
- //#region ../../node_modules/.pnpm/@tiptap+extension-paragraph@3.29.2_@tiptap+core@3.29.2_@tiptap+pm@3.29.2_/node_modules/@tiptap/extension-paragraph/dist/index.js
1506
- var z = "&nbsp;", B = "\xA0", kt = S.create({
1533
+ //#region ../../node_modules/.pnpm/@tiptap+extension-paragraph@3.30.1_@tiptap+core@3.30.1_@tiptap+pm@3.30.1_/node_modules/@tiptap/extension-paragraph/dist/index.js
1534
+ var z = "&nbsp;", B = "\xA0", Nt = S.create({
1507
1535
  name: "paragraph",
1508
1536
  priority: 1e3,
1509
1537
  addOptions() {
@@ -1542,7 +1570,7 @@ var z = "&nbsp;", B = "\xA0", kt = S.create({
1542
1570
  addKeyboardShortcuts() {
1543
1571
  return { "Mod-Alt-0": () => this.editor.commands.setParagraph() };
1544
1572
  }
1545
- }), At = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/, jt = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g, Mt = v.create({
1573
+ }), Pt = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/, Ft = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g, It = y.create({
1546
1574
  name: "strike",
1547
1575
  addOptions() {
1548
1576
  return { HTMLAttributes: {} };
@@ -1580,18 +1608,18 @@ var z = "&nbsp;", B = "\xA0", kt = S.create({
1580
1608
  return { "Mod-Shift-s": () => this.editor.commands.toggleStrike() };
1581
1609
  },
1582
1610
  addInputRules() {
1583
- return [u({
1584
- find: At,
1611
+ return [b({
1612
+ find: Pt,
1585
1613
  type: this.type
1586
1614
  })];
1587
1615
  },
1588
1616
  addPasteRules() {
1589
- return [d({
1590
- find: jt,
1617
+ return [C({
1618
+ find: Ft,
1591
1619
  type: this.type
1592
1620
  })];
1593
1621
  }
1594
- }), Nt = S.create({
1622
+ }), Lt = S.create({
1595
1623
  name: "text",
1596
1624
  group: "inline",
1597
1625
  parseMarkdown: (e) => ({
@@ -1602,12 +1630,12 @@ var z = "&nbsp;", B = "\xA0", kt = S.create({
1602
1630
  });
1603
1631
  //#endregion
1604
1632
  //#region ../../node_modules/.pnpm/prosemirror-dropcursor@1.8.3/node_modules/prosemirror-dropcursor/dist/index.js
1605
- function Pt(e = {}) {
1606
- return new T({ view(t) {
1607
- return new Ft(t, e);
1633
+ function Rt(e = {}) {
1634
+ return new h({ view(t) {
1635
+ return new zt(t, e);
1608
1636
  } });
1609
1637
  }
1610
- var Ft = class {
1638
+ var zt = class {
1611
1639
  constructor(e, t) {
1612
1640
  this.editorView = e, this.cursorPos = null, this.element = null, this.timeout = -1, this.lastDragEvent = null, this.width = t.width ?? 1, this.color = t.color === !1 ? void 0 : t.color || "black", this.class = t.class, this.handlers = [
1613
1641
  "dragover",
@@ -1628,10 +1656,12 @@ var Ft = class {
1628
1656
  this.handlers.forEach(({ name: e, handler: t }) => this.editorView.dom.removeEventListener(e, t));
1629
1657
  }
1630
1658
  update(e, t) {
1631
- if (this.cursorPos != null && t.doc != e.state.doc) if (this.lastDragEvent) {
1632
- let e = this.computeTarget(this.lastDragEvent);
1633
- e == this.cursorPos ? this.updateOverlay() : this.setCursor(e);
1634
- } else this.updateOverlay();
1659
+ if (this.cursorPos != null && t.doc != e.state.doc) {
1660
+ if (this.lastDragEvent) {
1661
+ let e = this.computeTarget(this.lastDragEvent);
1662
+ e == this.cursorPos ? this.updateOverlay() : this.setCursor(e);
1663
+ } else this.updateOverlay();
1664
+ }
1635
1665
  }
1636
1666
  setCursor(e) {
1637
1667
  e != this.cursorPos && (this.cursorPos = e, e == null ? (this.element.parentNode.removeChild(this.element), this.element = null) : this.updateOverlay());
@@ -1681,14 +1711,14 @@ var Ft = class {
1681
1711
  let t = this.editorView.posAtCoords({
1682
1712
  left: e.clientX,
1683
1713
  top: e.clientY
1684
- }), n = t && t.inside >= 0 && this.editorView.state.doc.nodeAt(t.inside), i = n && n.type.spec.disableDropCursor, a = typeof i == "function" ? i(this.editorView, t, e) : i;
1685
- if (!t || a) return null;
1686
- let o = t.pos;
1714
+ }), n = t && t.inside >= 0 && this.editorView.state.doc.nodeAt(t.inside), r = n && n.type.spec.disableDropCursor, i = typeof r == "function" ? r(this.editorView, t, e) : r;
1715
+ if (!t || i) return null;
1716
+ let a = t.pos;
1687
1717
  if (this.editorView.dragging && this.editorView.dragging.slice) {
1688
- let e = r(this.editorView.state.doc, o, this.editorView.dragging.slice);
1689
- e != null && (o = e);
1718
+ let e = _(this.editorView.state.doc, a, this.editorView.dragging.slice);
1719
+ e != null && (a = e);
1690
1720
  }
1691
- return o;
1721
+ return a;
1692
1722
  }
1693
1723
  dragover(e) {
1694
1724
  if (!this.editorView.editable) return;
@@ -1705,19 +1735,19 @@ var Ft = class {
1705
1735
  dragleave(e) {
1706
1736
  this.editorView.dom.contains(e.relatedTarget) || this.setCursor(null);
1707
1737
  }
1708
- }, V = class t extends e {
1738
+ }, V = class e extends c {
1709
1739
  constructor(e) {
1710
1740
  super(e, e);
1711
1741
  }
1712
- map(n, r) {
1713
- let i = n.resolve(r.map(this.head));
1714
- return t.valid(i) ? new t(i) : e.near(i);
1742
+ map(t, n) {
1743
+ let r = t.resolve(n.map(this.head));
1744
+ return e.valid(r) ? new e(r) : c.near(r);
1715
1745
  }
1716
1746
  content() {
1717
- return o.empty;
1747
+ return v.empty;
1718
1748
  }
1719
- eq(e) {
1720
- return e instanceof t && e.head == this.head;
1749
+ eq(t) {
1750
+ return t instanceof e && t.head == this.head;
1721
1751
  }
1722
1752
  toJSON() {
1723
1753
  return {
@@ -1725,70 +1755,70 @@ var Ft = class {
1725
1755
  pos: this.head
1726
1756
  };
1727
1757
  }
1728
- static fromJSON(e, n) {
1758
+ static fromJSON(t, n) {
1729
1759
  if (typeof n.pos != "number") throw RangeError("Invalid input for GapCursor.fromJSON");
1730
- return new t(e.resolve(n.pos));
1760
+ return new e(t.resolve(n.pos));
1731
1761
  }
1732
1762
  getBookmark() {
1733
- return new It(this.anchor);
1763
+ return new Bt(this.anchor);
1734
1764
  }
1735
1765
  static valid(e) {
1736
1766
  let t = e.parent;
1737
- if (t.inlineContent || !Rt(e) || !zt(e)) return !1;
1767
+ if (t.inlineContent || !Ht(e) || !Ut(e)) return !1;
1738
1768
  let n = t.type.spec.allowGapCursor;
1739
1769
  if (n != null) return n;
1740
1770
  let r = t.contentMatchAt(e.index()).defaultType;
1741
1771
  return r && r.isTextblock;
1742
1772
  }
1743
- static findGapCursorFrom(e, n, r = !1) {
1773
+ static findGapCursorFrom(t, n, r = !1) {
1744
1774
  search: for (;;) {
1745
- if (!r && t.valid(e)) return e;
1746
- let i = e.pos, a = null;
1747
- for (let r = e.depth;; r--) {
1748
- let o = e.node(r);
1749
- if (n > 0 ? e.indexAfter(r) < o.childCount : e.index(r) > 0) {
1750
- a = o.child(n > 0 ? e.indexAfter(r) : e.index(r) - 1);
1775
+ if (!r && e.valid(t)) return t;
1776
+ let i = t.pos, a = null;
1777
+ for (let r = t.depth;; r--) {
1778
+ let o = t.node(r);
1779
+ if (n > 0 ? t.indexAfter(r) < o.childCount : t.index(r) > 0) {
1780
+ a = o.child(n > 0 ? t.indexAfter(r) : t.index(r) - 1);
1751
1781
  break;
1752
1782
  }
1753
1783
  if (r == 0) return null;
1754
1784
  i += n;
1755
- let s = e.doc.resolve(i);
1756
- if (t.valid(s)) return s;
1785
+ let s = t.doc.resolve(i);
1786
+ if (e.valid(s)) return s;
1757
1787
  }
1758
1788
  for (;;) {
1759
1789
  let o = n > 0 ? a.firstChild : a.lastChild;
1760
1790
  if (!o) {
1761
- if (a.isAtom && !a.isText && !_.isSelectable(a)) {
1762
- e = e.doc.resolve(i + a.nodeSize * n), r = !1;
1791
+ if (a.isAtom && !a.isText && !f.isSelectable(a)) {
1792
+ t = t.doc.resolve(i + a.nodeSize * n), r = !1;
1763
1793
  continue search;
1764
1794
  }
1765
1795
  break;
1766
1796
  }
1767
1797
  a = o, i += n;
1768
- let s = e.doc.resolve(i);
1769
- if (t.valid(s)) return s;
1798
+ let s = t.doc.resolve(i);
1799
+ if (e.valid(s)) return s;
1770
1800
  }
1771
1801
  return null;
1772
1802
  }
1773
1803
  }
1774
1804
  };
1775
- V.prototype.visible = !1, V.findFrom = V.findGapCursorFrom, e.jsonID("gapcursor", V);
1776
- var It = class t {
1805
+ V.prototype.visible = !1, V.findFrom = V.findGapCursorFrom, c.jsonID("gapcursor", V);
1806
+ var Bt = class e {
1777
1807
  constructor(e) {
1778
1808
  this.pos = e;
1779
1809
  }
1780
- map(e) {
1781
- return new t(e.map(this.pos));
1810
+ map(t) {
1811
+ return new e(t.map(this.pos));
1782
1812
  }
1783
- resolve(t) {
1784
- let n = t.resolve(this.pos);
1785
- return V.valid(n) ? new V(n) : e.near(n);
1813
+ resolve(e) {
1814
+ let t = e.resolve(this.pos);
1815
+ return V.valid(t) ? new V(t) : c.near(t);
1786
1816
  }
1787
1817
  };
1788
- function Lt(e) {
1818
+ function Vt(e) {
1789
1819
  return e.isAtom || e.spec.isolating || e.spec.createGapCursor;
1790
1820
  }
1791
- function Rt(e) {
1821
+ function Ht(e) {
1792
1822
  for (let t = e.depth; t >= 0; t--) {
1793
1823
  let n = e.index(t), r = e.node(t);
1794
1824
  if (n == 0) {
@@ -1796,13 +1826,13 @@ function Rt(e) {
1796
1826
  continue;
1797
1827
  }
1798
1828
  for (let e = r.child(n - 1);; e = e.lastChild) {
1799
- if (e.childCount == 0 && !e.inlineContent || Lt(e.type)) return !0;
1829
+ if (e.childCount == 0 && !e.inlineContent || Vt(e.type)) return !0;
1800
1830
  if (e.inlineContent) return !1;
1801
1831
  }
1802
1832
  }
1803
1833
  return !0;
1804
1834
  }
1805
- function zt(e) {
1835
+ function Ut(e) {
1806
1836
  for (let t = e.depth; t >= 0; t--) {
1807
1837
  let n = e.indexAfter(t), r = e.node(t);
1808
1838
  if (n == r.childCount) {
@@ -1810,24 +1840,24 @@ function zt(e) {
1810
1840
  continue;
1811
1841
  }
1812
1842
  for (let e = r.child(n);; e = e.firstChild) {
1813
- if (e.childCount == 0 && !e.inlineContent || Lt(e.type)) return !0;
1843
+ if (e.childCount == 0 && !e.inlineContent || Vt(e.type)) return !0;
1814
1844
  if (e.inlineContent) return !1;
1815
1845
  }
1816
1846
  }
1817
1847
  return !0;
1818
1848
  }
1819
- function Bt() {
1820
- return new T({ props: {
1821
- decorations: Wt,
1849
+ function Wt() {
1850
+ return new h({ props: {
1851
+ decorations: Jt,
1822
1852
  createSelectionBetween(e, t, n) {
1823
1853
  return t.pos == n.pos && V.valid(n) ? new V(n) : null;
1824
1854
  },
1825
- handleClick: Ht,
1826
- handleKeyDown: Vt,
1827
- handleDOMEvents: { beforeinput: Ut }
1855
+ handleClick: Kt,
1856
+ handleKeyDown: Gt,
1857
+ handleDOMEvents: { beforeinput: qt }
1828
1858
  } });
1829
1859
  }
1830
- var Vt = h({
1860
+ var Gt = e({
1831
1861
  ArrowLeft: H("horiz", -1),
1832
1862
  ArrowRight: H("horiz", 1),
1833
1863
  ArrowUp: H("vert", -1),
@@ -1845,7 +1875,7 @@ function H(e, t) {
1845
1875
  return c ? (r && r(e.tr.setSelection(new V(c))), !0) : !1;
1846
1876
  };
1847
1877
  }
1848
- function Ht(e, t, n) {
1878
+ function Kt(e, t, n) {
1849
1879
  if (!e || !e.editable) return !1;
1850
1880
  let r = e.state.doc.resolve(t);
1851
1881
  if (!V.valid(r)) return !1;
@@ -1853,21 +1883,21 @@ function Ht(e, t, n) {
1853
1883
  left: n.clientX,
1854
1884
  top: n.clientY
1855
1885
  });
1856
- return i && i.inside > -1 && _.isSelectable(e.state.doc.nodeAt(i.inside)) ? !1 : (e.dispatch(e.state.tr.setSelection(new V(r))), !0);
1886
+ return i && i.inside > -1 && f.isSelectable(e.state.doc.nodeAt(i.inside)) ? !1 : (e.dispatch(e.state.tr.setSelection(new V(r))), !0);
1857
1887
  }
1858
- function Ut(e, t) {
1888
+ function qt(e, t) {
1859
1889
  if (t.inputType != "insertCompositionText" || !(e.state.selection instanceof V)) return !1;
1860
- let { $from: r } = e.state.selection, i = r.parent.contentMatchAt(r.index()).findWrapping(e.state.schema.nodes.text);
1861
- if (!i) return !1;
1862
- let a = n.empty;
1863
- for (let e = i.length - 1; e >= 0; e--) a = n.from(i[e].createAndFill(null, a));
1864
- let s = e.state.tr.replace(r.pos, r.pos, new o(a, 0, 0));
1865
- return s.setSelection(w.near(s.doc.resolve(r.pos + 1))), e.dispatch(s), !1;
1890
+ let { $from: n } = e.state.selection, r = n.parent.contentMatchAt(n.index()).findWrapping(e.state.schema.nodes.text);
1891
+ if (!r) return !1;
1892
+ let i = g.empty;
1893
+ for (let e = r.length - 1; e >= 0; e--) i = g.from(r[e].createAndFill(null, i));
1894
+ let a = e.state.tr.replace(n.pos, n.pos, new v(i, 0, 0));
1895
+ return a.setSelection(w.near(a.doc.resolve(n.pos + 1))), e.dispatch(a), !1;
1866
1896
  }
1867
- function Wt(e) {
1897
+ function Jt(e) {
1868
1898
  if (!(e.selection instanceof V)) return null;
1869
1899
  let t = document.createElement("div");
1870
- return t.className = "ProseMirror-gapcursor", E.create(e.doc, [C.widget(e.selection.head, t, { key: "gapcursor" })]);
1900
+ return t.className = "ProseMirror-gapcursor", a.create(e.doc, [p.widget(e.selection.head, t, { key: "gapcursor" })]);
1871
1901
  }
1872
1902
  //#endregion
1873
1903
  //#region ../../node_modules/.pnpm/rope-sequence@1.3.4/node_modules/rope-sequence/dist/index.js
@@ -1877,7 +1907,7 @@ W.prototype.append = function(e) {
1877
1907
  }, W.prototype.prepend = function(e) {
1878
1908
  return e.length ? W.from(e).append(this) : this;
1879
1909
  }, W.prototype.appendInner = function(e) {
1880
- return new Kt(this, e);
1910
+ return new Xt(this, e);
1881
1911
  }, W.prototype.slice = function(e, t) {
1882
1912
  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));
1883
1913
  }, W.prototype.get = function(e) {
@@ -1891,9 +1921,9 @@ W.prototype.append = function(e) {
1891
1921
  return r.push(e(t, n));
1892
1922
  }, t, n), r;
1893
1923
  }, W.from = function(e) {
1894
- return e instanceof W ? e : e && e.length ? new Gt(e) : W.empty;
1924
+ return e instanceof W ? e : e && e.length ? new Yt(e) : W.empty;
1895
1925
  };
1896
- var Gt = /* @__PURE__ */ function(e) {
1926
+ var Yt = /* @__PURE__ */ function(e) {
1897
1927
  function t(t) {
1898
1928
  e.call(this), this.values = t;
1899
1929
  }
@@ -1922,8 +1952,8 @@ var Gt = /* @__PURE__ */ function(e) {
1922
1952
  return 0;
1923
1953
  }, Object.defineProperties(t.prototype, n), t;
1924
1954
  }(W);
1925
- W.empty = new Gt([]);
1926
- var Kt = /* @__PURE__ */ function(e) {
1955
+ W.empty = new Yt([]);
1956
+ var Xt = /* @__PURE__ */ function(e) {
1927
1957
  function t(t, n) {
1928
1958
  e.call(this), this.left = t, this.right = n, this.length = t.length + n.length, this.depth = Math.max(t.depth, n.depth) + 1;
1929
1959
  }
@@ -1950,7 +1980,7 @@ var Kt = /* @__PURE__ */ function(e) {
1950
1980
  }, t.prototype.appendInner = function(e) {
1951
1981
  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);
1952
1982
  }, t;
1953
- }(W), qt = 500, G = class e {
1983
+ }(W), Zt = 500, G = class e {
1954
1984
  constructor(e, t) {
1955
1985
  this.items = e, this.eventCount = t;
1956
1986
  }
@@ -1988,10 +2018,10 @@ var Kt = /* @__PURE__ */ function(e) {
1988
2018
  (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);
1989
2019
  }
1990
2020
  let l = o - r.depth;
1991
- return l > Yt && (s = Jt(s, l), o -= l), new e(s.append(a), o);
2021
+ return l > $t && (s = Qt(s, l), o -= l), new e(s.append(a), o);
1992
2022
  }
1993
2023
  remapping(e, t) {
1994
- let n = new l();
2024
+ let n = new s();
1995
2025
  return this.items.forEach((t, r) => {
1996
2026
  let i = t.mirrorOffset != null && r - t.mirrorOffset >= e ? n.maps.length - t.mirrorOffset : void 0;
1997
2027
  n.appendMap(t.map, i);
@@ -2020,7 +2050,7 @@ var Kt = /* @__PURE__ */ function(e) {
2020
2050
  let l = [];
2021
2051
  for (let e = n; e < o; e++) l.push(new K(a.maps[e]));
2022
2052
  let u = this.items.slice(0, i).append(l).append(r), d = new e(u, s);
2023
- return d.emptyItemCount() > qt && (d = d.compress(this.items.length - r.length)), d;
2053
+ return d.emptyItemCount() > Zt && (d = d.compress(this.items.length - r.length)), d;
2024
2054
  }
2025
2055
  emptyItemCount() {
2026
2056
  let e = 0;
@@ -2045,7 +2075,7 @@ var Kt = /* @__PURE__ */ function(e) {
2045
2075
  }
2046
2076
  };
2047
2077
  G.empty = new G(W.empty, 0);
2048
- function Jt(e, t) {
2078
+ function Qt(e, t) {
2049
2079
  let n;
2050
2080
  return e.forEach((e, r) => {
2051
2081
  if (e.selection && t-- == 0) return n = r, !1;
@@ -2065,21 +2095,21 @@ var K = class e {
2065
2095
  constructor(e, t, n, r, i) {
2066
2096
  this.done = e, this.undone = t, this.prevRanges = n, this.prevTime = r, this.prevComposition = i;
2067
2097
  }
2068
- }, Yt = 20;
2069
- function Xt(e, t, n, r) {
2098
+ }, $t = 20;
2099
+ function en(e, t, n, r) {
2070
2100
  let i = n.getMeta(Z), a;
2071
2101
  if (i) return i.historyState;
2072
- n.getMeta(tn) && (e = new q(e.done, e.undone, null, 0, -1));
2102
+ n.getMeta(on) && (e = new q(e.done, e.undone, null, 0, -1));
2073
2103
  let o = n.getMeta("appendedTransaction");
2074
2104
  if (n.steps.length == 0) return e;
2075
- 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);
2105
+ if (o && o.getMeta(Z)) return o.getMeta(Z).redo ? new q(e.done.addTransform(n, void 0, r, X(t)), e.undone, nn(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);
2076
2106
  if (n.getMeta("addToHistory") !== !1 && !(o && o.getMeta("addToHistory") === !1)) {
2077
- 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);
2107
+ let i = n.getMeta("composition"), a = e.prevTime == 0 || !o && e.prevComposition != i && (e.prevTime < (n.time || 0) - r.newGroupDelay || !tn(n, e.prevRanges)), s = o ? J(e.prevRanges, n.mapping) : nn(n.mapping.maps);
2078
2108
  return new q(e.done.addTransform(n, a ? t.selection.getBookmark() : void 0, r, X(t)), G.empty, s, n.time, i ?? e.prevComposition);
2079
2109
  }
2080
2110
  return (a = n.getMeta("rebased")) ? new q(e.done.rebased(n, a), e.undone.rebased(n, a), J(e.prevRanges, n.mapping), e.prevTime, e.prevComposition) : new q(e.done.addMaps(n.mapping.maps), e.undone.addMaps(n.mapping.maps), J(e.prevRanges, n.mapping), e.prevTime, e.prevComposition);
2081
2111
  }
2082
- function Zt(e, t) {
2112
+ function tn(e, t) {
2083
2113
  if (!t) return !1;
2084
2114
  if (!e.docChanged) return !0;
2085
2115
  let n = !1;
@@ -2087,7 +2117,7 @@ function Zt(e, t) {
2087
2117
  for (let i = 0; i < t.length; i += 2) e <= t[i + 1] && r >= t[i] && (n = !0);
2088
2118
  }), n;
2089
2119
  }
2090
- function Qt(e) {
2120
+ function nn(e) {
2091
2121
  let t = [];
2092
2122
  for (let n = e.length - 1; n >= 0 && t.length == 0; n--) e[n].forEach((e, n, r, i) => t.push(r, i));
2093
2123
  return t;
@@ -2101,7 +2131,7 @@ function J(e, t) {
2101
2131
  }
2102
2132
  return n;
2103
2133
  }
2104
- function $t(e, t, n) {
2134
+ function rn(e, t, n) {
2105
2135
  let r = X(t), i = Z.get(t).spec.config, a = (n ? e.undone : e.done).popEvent(t, r);
2106
2136
  if (!a) return null;
2107
2137
  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);
@@ -2110,11 +2140,11 @@ function $t(e, t, n) {
2110
2140
  historyState: c
2111
2141
  });
2112
2142
  }
2113
- var Y = !1, en = null;
2143
+ var Y = !1, an = null;
2114
2144
  function X(e) {
2115
2145
  let t = e.plugins;
2116
- if (en != t) {
2117
- Y = !1, en = t;
2146
+ if (an != t) {
2147
+ Y = !1, an = t;
2118
2148
  for (let e = 0; e < t.length; e++) if (t[e].spec.historyPreserveItems) {
2119
2149
  Y = !0;
2120
2150
  break;
@@ -2122,41 +2152,41 @@ function X(e) {
2122
2152
  }
2123
2153
  return Y;
2124
2154
  }
2125
- var Z = new c("history"), tn = new c("closeHistory");
2126
- function nn(e = {}) {
2155
+ var Z = new i("history"), on = new i("closeHistory");
2156
+ function sn(e = {}) {
2127
2157
  return e = {
2128
2158
  depth: e.depth || 100,
2129
2159
  newGroupDelay: e.newGroupDelay || 500
2130
- }, new T({
2160
+ }, new h({
2131
2161
  key: Z,
2132
2162
  state: {
2133
2163
  init() {
2134
2164
  return new q(G.empty, G.empty, null, 0, -1);
2135
2165
  },
2136
2166
  apply(t, n, r) {
2137
- return Xt(n, r, t, e);
2167
+ return en(n, r, t, e);
2138
2168
  }
2139
2169
  },
2140
2170
  config: e,
2141
2171
  props: { handleDOMEvents: { beforeinput(e, t) {
2142
- let n = t.inputType, r = n == "historyUndo" ? an : n == "historyRedo" ? on : null;
2172
+ let n = t.inputType, r = n == "historyUndo" ? ln : n == "historyRedo" ? un : null;
2143
2173
  return !r || !e.editable ? !1 : (t.preventDefault(), r(e.state, e.dispatch));
2144
2174
  } } }
2145
2175
  });
2146
2176
  }
2147
- function rn(e, t) {
2177
+ function cn(e, t) {
2148
2178
  return (n, r) => {
2149
2179
  let i = Z.getState(n);
2150
2180
  if (!i || (e ? i.undone : i.done).eventCount == 0) return !1;
2151
2181
  if (r) {
2152
- let a = $t(i, n, e);
2182
+ let a = rn(i, n, e);
2153
2183
  a && r(t ? a.scrollIntoView() : a);
2154
2184
  }
2155
2185
  return !0;
2156
2186
  };
2157
2187
  }
2158
- var an = rn(!1, !0), on = rn(!0, !0);
2159
- b.create({
2188
+ var ln = cn(!1, !0), un = cn(!0, !0);
2189
+ T.create({
2160
2190
  name: "characterCount",
2161
2191
  addOptions() {
2162
2192
  return {
@@ -2188,8 +2218,8 @@ b.create({
2188
2218
  },
2189
2219
  addProseMirrorPlugins() {
2190
2220
  let e = !1;
2191
- return [new T({
2192
- key: new c("characterCount"),
2221
+ return [new h({
2222
+ key: new i("characterCount"),
2193
2223
  appendTransaction: (t, n, r) => {
2194
2224
  if (e) return;
2195
2225
  let i = this.options.limit, a = this.options.autoTrim;
@@ -2218,7 +2248,7 @@ b.create({
2218
2248
  })];
2219
2249
  }
2220
2250
  });
2221
- var sn = b.create({
2251
+ var dn = T.create({
2222
2252
  name: "dropCursor",
2223
2253
  addOptions() {
2224
2254
  return {
@@ -2228,10 +2258,10 @@ var sn = b.create({
2228
2258
  };
2229
2259
  },
2230
2260
  addProseMirrorPlugins() {
2231
- return [Pt(this.options)];
2261
+ return [Rt(this.options)];
2232
2262
  }
2233
2263
  });
2234
- b.create({
2264
+ T.create({
2235
2265
  name: "focus",
2236
2266
  addOptions() {
2237
2267
  return {
@@ -2240,32 +2270,32 @@ b.create({
2240
2270
  };
2241
2271
  },
2242
2272
  addProseMirrorPlugins() {
2243
- return [new T({
2244
- key: new c("focus"),
2273
+ return [new h({
2274
+ key: new i("focus"),
2245
2275
  props: { decorations: ({ doc: e, selection: t }) => {
2246
- let { isEditable: n, isFocused: r } = this.editor, { anchor: i } = t, a = [];
2247
- if (!n || !r) return E.create(e, []);
2248
- let o = 0;
2276
+ let { isEditable: n, isFocused: r } = this.editor, { anchor: i } = t, o = [];
2277
+ if (!n || !r) return a.create(e, []);
2278
+ let s = 0;
2249
2279
  this.options.mode === "deepest" && e.descendants((e, t) => {
2250
2280
  if (!e.isText) {
2251
2281
  if (!(i >= t && i <= t + e.nodeSize - 1)) return !1;
2252
- o += 1;
2282
+ s += 1;
2253
2283
  }
2254
2284
  });
2255
- let s = 0;
2285
+ let c = 0;
2256
2286
  return e.descendants((e, t) => {
2257
2287
  if (e.isText || !(i >= t && i <= t + e.nodeSize - 1)) return !1;
2258
- if (s += 1, this.options.mode === "deepest" && o - s > 0 || this.options.mode === "shallowest" && s > 1) return this.options.mode === "deepest";
2259
- a.push(C.node(t, t + e.nodeSize, { class: this.options.className }));
2260
- }), E.create(e, a);
2288
+ if (c += 1, this.options.mode === "deepest" && s - c > 0 || this.options.mode === "shallowest" && c > 1) return this.options.mode === "deepest";
2289
+ o.push(p.node(t, t + e.nodeSize, { class: this.options.className }));
2290
+ }), a.create(e, o);
2261
2291
  } }
2262
2292
  })];
2263
2293
  }
2264
2294
  });
2265
- var cn = b.create({
2295
+ var fn = T.create({
2266
2296
  name: "gapCursor",
2267
2297
  addProseMirrorPlugins() {
2268
- return [Bt()];
2298
+ return [Wt()];
2269
2299
  },
2270
2300
  extendNodeSchema(e) {
2271
2301
  let t = {
@@ -2273,12 +2303,12 @@ var cn = b.create({
2273
2303
  options: e.options,
2274
2304
  storage: e.storage
2275
2305
  };
2276
- return { allowGapCursor: ae(m(e, "allowGapCursor", t)) ?? null };
2306
+ return { allowGapCursor: se(te(e, "allowGapCursor", t)) ?? null };
2277
2307
  }
2278
- }), ln = "placeholder", un = new c("tiptap__placeholder");
2279
- function dn(e) {
2308
+ }), pn = "placeholder", mn = new i("tiptap__placeholder");
2309
+ function hn(e) {
2280
2310
  let { editor: t, placeholder: n, dataAttribute: r, pos: i, node: a, isEmptyDoc: o, hasAnchor: s, classes: { emptyNode: c, emptyEditor: l } } = e, u = [c];
2281
- return o && u.push(l), C.node(i, i + a.nodeSize, {
2311
+ return o && u.push(l), p.node(i, i + a.nodeSize, {
2282
2312
  class: u.join(" "),
2283
2313
  [r]: typeof n == "function" ? n({
2284
2314
  editor: t,
@@ -2288,41 +2318,41 @@ function dn(e) {
2288
2318
  }) : n
2289
2319
  });
2290
2320
  }
2291
- function fn(e, t) {
2321
+ function gn(e, t) {
2292
2322
  return typeof e == "function" ? e(t) : e;
2293
2323
  }
2294
- function pn({ editor: e, options: t, dataAttribute: n, doc: r, selection: i, from: o, to: s }) {
2295
- let { anchor: c } = i, l = [], u = e.isEmpty;
2296
- return r.nodesBetween(o, s, (r, i) => {
2297
- let o = c >= i && c <= i + r.nodeSize, s = !r.isLeaf && a(r);
2298
- return r.type.isTextblock && (o || !t.showOnlyCurrent) && s && l.push(dn({
2324
+ function _n({ editor: e, options: t, dataAttribute: n, doc: r, selection: i, from: a, to: o }) {
2325
+ let { anchor: s } = i, c = [], l = e.isEmpty;
2326
+ return r.nodesBetween(a, o, (r, i) => {
2327
+ let a = s >= i && s <= i + r.nodeSize, o = !r.isLeaf && m(r);
2328
+ return r.type.isTextblock && (a || !t.showOnlyCurrent) && o && c.push(hn({
2299
2329
  editor: e,
2300
- isEmptyDoc: u,
2330
+ isEmptyDoc: l,
2301
2331
  dataAttribute: n,
2302
- hasAnchor: o,
2332
+ hasAnchor: a,
2303
2333
  placeholder: t.placeholder,
2304
2334
  classes: {
2305
2335
  emptyEditor: t.emptyEditorClass,
2306
- emptyNode: fn(t.emptyNodeClass, {
2336
+ emptyNode: gn(t.emptyNodeClass, {
2307
2337
  editor: e,
2308
2338
  node: r,
2309
2339
  pos: i,
2310
- hasAnchor: o
2340
+ hasAnchor: a
2311
2341
  })
2312
2342
  },
2313
2343
  node: r,
2314
2344
  pos: i
2315
2345
  })), t.includeChildren;
2316
- }), l;
2346
+ }), c;
2317
2347
  }
2318
- function mn({ editor: e, options: t, dataAttribute: n, doc: r, selection: i }) {
2348
+ function vn({ editor: e, options: t, dataAttribute: n, doc: r, selection: i }) {
2319
2349
  if (!(e.isEditable || !t.showOnlyWhenEditable)) return null;
2320
2350
  let { anchor: o } = i, s = [], c = e.isEmpty;
2321
2351
  if (t.showOnlyCurrent && !t.includeChildren) {
2322
- let i = r.resolve(o), l = i.depth > 0 ? i.node(1) : i.nodeAfter, u = i.depth > 0 ? i.before(1) : o;
2323
- if (l && l.type.isTextblock && a(l)) {
2324
- let r = o >= u && o <= u + l.nodeSize;
2325
- s.push(dn({
2352
+ let i = r.resolve(o), a = i.depth > 0 ? i.node(1) : i.nodeAfter, l = i.depth > 0 ? i.before(1) : o;
2353
+ if (a && a.type.isTextblock && m(a)) {
2354
+ let r = o >= l && o <= l + a.nodeSize;
2355
+ s.push(hn({
2326
2356
  editor: e,
2327
2357
  isEmptyDoc: c,
2328
2358
  dataAttribute: n,
@@ -2330,18 +2360,18 @@ function mn({ editor: e, options: t, dataAttribute: n, doc: r, selection: i }) {
2330
2360
  placeholder: t.placeholder,
2331
2361
  classes: {
2332
2362
  emptyEditor: t.emptyEditorClass,
2333
- emptyNode: fn(t.emptyNodeClass, {
2363
+ emptyNode: gn(t.emptyNodeClass, {
2334
2364
  editor: e,
2335
- node: l,
2336
- pos: u,
2365
+ node: a,
2366
+ pos: l,
2337
2367
  hasAnchor: r
2338
2368
  })
2339
2369
  },
2340
- node: l,
2341
- pos: u
2370
+ node: a,
2371
+ pos: l
2342
2372
  }));
2343
2373
  }
2344
- } else s.push(...pn({
2374
+ } else s.push(..._n({
2345
2375
  editor: e,
2346
2376
  options: t,
2347
2377
  dataAttribute: n,
@@ -2350,7 +2380,7 @@ function mn({ editor: e, options: t, dataAttribute: n, doc: r, selection: i }) {
2350
2380
  from: 0,
2351
2381
  to: r.content.size
2352
2382
  }));
2353
- return E.create(r, s);
2383
+ return a.create(r, s);
2354
2384
  }
2355
2385
  function Q(e, t) {
2356
2386
  let n = e.resolve(t);
@@ -2378,7 +2408,7 @@ function $(e, t) {
2378
2408
  to: Math.min(e.content.size, t.to - 1)
2379
2409
  };
2380
2410
  }
2381
- function hn(e, t, n) {
2411
+ function yn(e, t, n) {
2382
2412
  let r = [];
2383
2413
  return e.forEach((e, i) => {
2384
2414
  let a = i, o = a + e.nodeSize, s = a + 1, c = o + 1;
@@ -2388,7 +2418,7 @@ function hn(e, t, n) {
2388
2418
  });
2389
2419
  }), r;
2390
2420
  }
2391
- function gn(e) {
2421
+ function bn(e) {
2392
2422
  if (e.length === 0) return [];
2393
2423
  let t = [...e].sort((e, t) => e.from - t.from), n = [{ ...t[0] }];
2394
2424
  for (let e = 1; e < t.length; e += 1) {
@@ -2397,31 +2427,31 @@ function gn(e) {
2397
2427
  }
2398
2428
  return n;
2399
2429
  }
2400
- function _n(e, t) {
2401
- let n = hn(e, t.from, t.to);
2430
+ function xn(e, t) {
2431
+ let n = yn(e, t.from, t.to);
2402
2432
  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;
2403
2433
  }
2404
- function vn(e, t, n) {
2434
+ function Sn(e, t, n) {
2405
2435
  let r = [];
2406
2436
  if (e.docChanged) {
2407
- let t = p(e);
2408
- for (let e of t) r.push(..._n(n.doc, e.newRange));
2437
+ let t = ie(e);
2438
+ for (let e of t) r.push(...xn(n.doc, e.newRange));
2409
2439
  }
2410
- 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);
2440
+ 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)))), bn(r);
2411
2441
  }
2412
- function yn(e, t, n) {
2442
+ function Cn(e, t, n) {
2413
2443
  let r = Math.max(0, Math.min(e, n.content.size));
2414
2444
  return {
2415
2445
  from: r,
2416
2446
  to: Math.max(r, Math.min(t, n.content.size))
2417
2447
  };
2418
2448
  }
2419
- function bn({ decorations: e, ranges: t, editor: n, options: r, dataAttribute: i, doc: a, selection: o }) {
2449
+ function wn({ decorations: e, ranges: t, editor: n, options: r, dataAttribute: i, doc: a, selection: o }) {
2420
2450
  let s = e;
2421
2451
  for (let e of t) {
2422
- let { from: t, to: c } = yn(e.from, e.to, a), l = s.find(t, c).filter((e) => e.from >= t && e.to <= c);
2452
+ let { from: t, to: c } = Cn(e.from, e.to, a), l = s.find(t, c).filter((e) => e.from >= t && e.to <= c);
2423
2453
  l.length && (s = s.remove(l));
2424
- let u = pn({
2454
+ let u = _n({
2425
2455
  editor: n,
2426
2456
  options: r,
2427
2457
  dataAttribute: i,
@@ -2434,21 +2464,21 @@ function bn({ decorations: e, ranges: t, editor: n, options: r, dataAttribute: i
2434
2464
  }
2435
2465
  return s;
2436
2466
  }
2437
- function xn({ editor: e, options: t, dataAttribute: n }) {
2467
+ function Tn({ editor: e, options: t, dataAttribute: n }) {
2438
2468
  return {
2439
2469
  init(r, i) {
2440
- return mn({
2470
+ return vn({
2441
2471
  editor: e,
2442
2472
  options: t,
2443
2473
  dataAttribute: n,
2444
2474
  doc: i.doc,
2445
2475
  selection: i.selection
2446
- }) ?? E.empty;
2476
+ }) ?? a.empty;
2447
2477
  },
2448
2478
  apply(r, i, a, o) {
2449
- return !r.docChanged && !r.selectionSet ? i : bn({
2479
+ return !r.docChanged && !r.selectionSet ? i : wn({
2450
2480
  decorations: i.map(r.mapping, r.doc),
2451
- ranges: vn(r, a, o),
2481
+ ranges: Sn(r, a, o),
2452
2482
  editor: e,
2453
2483
  options: t,
2454
2484
  dataAttribute: n,
@@ -2458,34 +2488,34 @@ function xn({ editor: e, options: t, dataAttribute: n }) {
2458
2488
  }
2459
2489
  };
2460
2490
  }
2461
- function Sn(e) {
2491
+ function En(e) {
2462
2492
  return e.replace(/\s+/g, "-").replace(/[^a-zA-Z0-9-]/g, "").replace(/^[0-9-]+/, "").replace(/^-+/, "").toLowerCase();
2463
2493
  }
2464
- function Cn({ editor: e, options: t }) {
2465
- let n = t.dataAttribute ? `data-${Sn(t.dataAttribute)}` : `data-${ln}`, r = t.showOnlyCurrent && !t.includeChildren;
2466
- return new T({
2467
- key: un,
2468
- ...r ? {} : { state: xn({
2494
+ function Dn({ editor: e, options: t }) {
2495
+ let n = t.dataAttribute ? `data-${En(t.dataAttribute)}` : `data-${pn}`, r = t.showOnlyCurrent && !t.includeChildren;
2496
+ return new h({
2497
+ key: mn,
2498
+ ...r ? {} : { state: Tn({
2469
2499
  editor: e,
2470
2500
  options: t,
2471
2501
  dataAttribute: n
2472
2502
  }) },
2473
- props: { decorations: r ? ({ doc: r, selection: i }) => mn({
2503
+ props: { decorations: r ? ({ doc: r, selection: i }) => vn({
2474
2504
  editor: e,
2475
2505
  options: t,
2476
2506
  dataAttribute: n,
2477
2507
  doc: r,
2478
2508
  selection: i
2479
- }) : (n) => t.showOnlyWhenEditable && !e.isEditable ? E.empty : un.getState(n) ?? E.empty }
2509
+ }) : (n) => t.showOnlyWhenEditable && !e.isEditable ? a.empty : mn.getState(n) ?? a.empty }
2480
2510
  });
2481
2511
  }
2482
- b.create({
2512
+ T.create({
2483
2513
  name: "placeholder",
2484
2514
  addOptions() {
2485
2515
  return {
2486
2516
  emptyEditorClass: "is-editor-empty",
2487
2517
  emptyNodeClass: "is-empty",
2488
- dataAttribute: ln,
2518
+ dataAttribute: pn,
2489
2519
  placeholder: "Write something …",
2490
2520
  showOnlyWhenEditable: !0,
2491
2521
  showOnlyCurrent: !0,
@@ -2493,45 +2523,45 @@ b.create({
2493
2523
  };
2494
2524
  },
2495
2525
  addProseMirrorPlugins() {
2496
- return [Cn({
2526
+ return [Dn({
2497
2527
  editor: this.editor,
2498
2528
  options: this.options
2499
2529
  })];
2500
2530
  }
2501
2531
  });
2502
- function wn(e, t) {
2503
- return !e.selection.empty && !s(e.selection) && t.isEditable;
2532
+ function On(e, t) {
2533
+ return !e.selection.empty && !o(e.selection) && t.isEditable;
2504
2534
  }
2505
- function Tn(e, t) {
2506
- return wn(e, t) && !t.isFocused && !t.view.dragging;
2535
+ function kn(e, t) {
2536
+ return On(e, t) && !t.isFocused && !t.view.dragging;
2507
2537
  }
2508
- function En() {
2538
+ function An() {
2509
2539
  var e;
2510
2540
  (e = window.getSelection()) == null || e.removeAllRanges();
2511
2541
  }
2512
- function Dn(e) {
2542
+ function jn(e) {
2513
2543
  e.focus();
2514
2544
  }
2515
- b.create({
2545
+ T.create({
2516
2546
  name: "selection",
2517
2547
  addOptions() {
2518
2548
  return { className: "selection" };
2519
2549
  },
2520
2550
  addProseMirrorPlugins() {
2521
2551
  let { editor: e, options: t } = this;
2522
- return [new T({
2523
- key: new c("selection"),
2552
+ return [new h({
2553
+ key: new i("selection"),
2524
2554
  props: {
2525
2555
  decorations(n) {
2526
- return Tn(n, e) ? E.create(n.doc, [C.inline(n.selection.from, n.selection.to, { class: t.className })]) : null;
2556
+ return kn(n, e) ? a.create(n.doc, [p.inline(n.selection.from, n.selection.to, { class: t.className })]) : null;
2527
2557
  },
2528
2558
  handleDOMEvents: {
2529
2559
  blur(t) {
2530
- return wn(t.state, e) && En(), !1;
2560
+ return On(t.state, e) && An(), !1;
2531
2561
  },
2532
2562
  focus(t) {
2533
- return wn(t.state, e) && requestAnimationFrame(() => {
2534
- !e.isDestroyed && t.hasFocus() && Dn(t);
2563
+ return On(t.state, e) && requestAnimationFrame(() => {
2564
+ !e.isDestroyed && t.hasFocus() && jn(t);
2535
2565
  }), !1;
2536
2566
  }
2537
2567
  }
@@ -2539,10 +2569,10 @@ b.create({
2539
2569
  })];
2540
2570
  }
2541
2571
  });
2542
- function On({ types: e, node: t }) {
2572
+ function Mn({ types: e, node: t }) {
2543
2573
  return t && Array.isArray(e) && e.includes(t.type) || t?.type === e;
2544
2574
  }
2545
- var kn = b.create({
2575
+ var Nn = T.create({
2546
2576
  name: "trailingNode",
2547
2577
  addOptions() {
2548
2578
  return {
@@ -2551,8 +2581,8 @@ var kn = b.create({
2551
2581
  };
2552
2582
  },
2553
2583
  addProseMirrorPlugins() {
2554
- let e = new c(this.name), t = this.options.node || this.editor.schema.topNodeType.contentMatch.defaultType?.name || "paragraph", n = Object.entries(this.editor.schema.nodes).map(([, e]) => e).filter((e) => (this.options.notAfter || []).concat(t).includes(e.name));
2555
- return [new T({
2584
+ let e = new i(this.name), t = this.options.node || this.editor.schema.topNodeType.contentMatch.defaultType?.name || "paragraph", n = Object.entries(this.editor.schema.nodes).map(([, e]) => e).filter((e) => (this.options.notAfter || []).concat(t).includes(e.name));
2585
+ return [new h({
2556
2586
  key: e,
2557
2587
  appendTransaction: (n, r, i) => {
2558
2588
  let { doc: a, tr: o, schema: s } = i, c = e.getState(i), l = a.content.size, u = s.nodes[t];
@@ -2561,7 +2591,7 @@ var kn = b.create({
2561
2591
  state: {
2562
2592
  init: (e, t) => {
2563
2593
  let r = t.tr.doc.lastChild;
2564
- return !On({
2594
+ return !Mn({
2565
2595
  node: r,
2566
2596
  types: n
2567
2597
  });
@@ -2569,7 +2599,7 @@ var kn = b.create({
2569
2599
  apply: (e, t) => {
2570
2600
  if (!e.docChanged || e.getMeta("__uniqueIDTransaction")) return t;
2571
2601
  let r = e.doc.lastChild;
2572
- return !On({
2602
+ return !Mn({
2573
2603
  node: r,
2574
2604
  types: n
2575
2605
  });
@@ -2577,7 +2607,7 @@ var kn = b.create({
2577
2607
  }
2578
2608
  })];
2579
2609
  }
2580
- }), An = b.create({
2610
+ }), Pn = T.create({
2581
2611
  name: "undoRedo",
2582
2612
  addOptions() {
2583
2613
  return {
@@ -2587,12 +2617,12 @@ var kn = b.create({
2587
2617
  },
2588
2618
  addCommands() {
2589
2619
  return {
2590
- undo: () => ({ state: e, dispatch: t }) => an(e, t),
2591
- redo: () => ({ state: e, dispatch: t }) => on(e, t)
2620
+ undo: () => ({ state: e, dispatch: t }) => ln(e, t),
2621
+ redo: () => ({ state: e, dispatch: t }) => un(e, t)
2592
2622
  };
2593
2623
  },
2594
2624
  addProseMirrorPlugins() {
2595
- return [nn(this.options)];
2625
+ return [sn(this.options)];
2596
2626
  },
2597
2627
  addKeyboardShortcuts() {
2598
2628
  return {
@@ -2603,12 +2633,12 @@ var kn = b.create({
2603
2633
  "Shift-Mod-я": () => this.editor.commands.redo()
2604
2634
  };
2605
2635
  }
2606
- }), jn = b.create({
2636
+ }), Fn = T.create({
2607
2637
  name: "starterKit",
2608
2638
  addExtensions() {
2609
2639
  let e = [];
2610
- 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;
2640
+ return this.options.bold !== !1 && e.push(ve.configure(this.options.bold)), this.options.blockquote !== !1 && e.push(pe.configure(this.options.blockquote)), this.options.bulletList !== !1 && e.push(ze.configure(this.options.bulletList)), this.options.code !== !1 && e.push(xe.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(dn.configure(this.options.dropcursor)), this.options.gapcursor !== !1 && e.push(fn.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(Pn.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(it.configure(this.options.listItem)), this.options.listKeymap !== !1 && e.push(ft.configure(this.options?.listKeymap)), this.options.link !== !1 && e.push(le.configure(this.options?.link)), this.options.orderedList !== !1 && e.push(Dt.configure(this.options.orderedList)), this.options.paragraph !== !1 && e.push(Nt.configure(this.options.paragraph)), this.options.strike !== !1 && e.push(It.configure(this.options.strike)), this.options.text !== !1 && e.push(Lt.configure(this.options.text)), this.options.underline !== !1 && e.push(ue.configure(this.options?.underline)), this.options.trailingNode !== !1 && e.push(Nn.configure(this.options?.trailingNode)), e;
2611
2641
  }
2612
- }), Mn = jn;
2642
+ }), In = Fn;
2613
2643
  //#endregion
2614
- export { jn as StarterKit, Mn as default };
2644
+ export { Fn as StarterKit, In as default };