@notectl/core 2.2.1 → 2.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/chunks/AlignmentPlugin-h6sx-yIf.mjs +2 -0
- package/dist/chunks/AlignmentPlugin-h6sx-yIf.mjs.map +1 -0
- package/dist/chunks/AttrRegistry-DcDVyzLm.mjs +2 -0
- package/dist/chunks/AttrRegistry-DcDVyzLm.mjs.map +1 -0
- package/dist/chunks/AttributedMarkCommands-D4W2Jgpj.mjs +2 -0
- package/dist/chunks/AttributedMarkCommands-D4W2Jgpj.mjs.map +1 -0
- package/dist/chunks/BidiIsolationPlugin-Bm3h9J15.mjs +2 -0
- package/dist/chunks/BidiIsolationPlugin-Bm3h9J15.mjs.map +1 -0
- package/dist/chunks/BlockInsertion-6rR9tIGP.mjs +2 -0
- package/dist/chunks/BlockInsertion-6rR9tIGP.mjs.map +1 -0
- package/dist/chunks/BlockTypePickerRegistry-BTET9jM-.mjs +2 -0
- package/dist/chunks/BlockTypePickerRegistry-BTET9jM-.mjs.map +1 -0
- package/dist/chunks/BlockquotePlugin-CxrCA0vY.mjs +2 -0
- package/dist/chunks/BlockquotePlugin-CxrCA0vY.mjs.map +1 -0
- package/dist/chunks/CaretNavigationPlugin-Bb7W_FMg.mjs +2 -0
- package/dist/chunks/CaretNavigationPlugin-Bb7W_FMg.mjs.map +1 -0
- package/dist/chunks/CodeBlockPlugin-Uv6EXaH1.mjs +2 -0
- package/dist/chunks/CodeBlockPlugin-Uv6EXaH1.mjs.map +1 -0
- package/dist/chunks/ColorGrid-CXRdpP_n.mjs +2 -0
- package/dist/chunks/ColorGrid-CXRdpP_n.mjs.map +1 -0
- package/dist/chunks/ColorPickerPopup-C_74bqid.mjs +2 -0
- package/dist/chunks/ColorPickerPopup-C_74bqid.mjs.map +1 -0
- package/dist/chunks/ColorValidation-DAijTjG9.mjs +2 -0
- package/dist/chunks/ColorValidation-DAijTjG9.mjs.map +1 -0
- package/dist/chunks/Commands-CyT1Li7_.mjs +2 -0
- package/dist/chunks/Commands-CyT1Li7_.mjs.map +1 -0
- package/dist/chunks/Decoration-ZeyVfwJB.mjs +2 -0
- package/dist/chunks/Decoration-ZeyVfwJB.mjs.map +1 -0
- package/dist/chunks/DirectionDetection-C7XE0nxW.mjs +2 -0
- package/dist/chunks/DirectionDetection-C7XE0nxW.mjs.map +1 -0
- package/dist/chunks/DirectionIcons-Bbawl9ei.mjs +2 -0
- package/dist/chunks/DirectionIcons-Bbawl9ei.mjs.map +1 -0
- package/dist/chunks/Document-r7vLOAGA.mjs +2 -0
- package/dist/chunks/Document-r7vLOAGA.mjs.map +1 -0
- package/dist/chunks/DocumentParser-CcTSeT1B.mjs +2 -0
- package/dist/chunks/DocumentParser-CcTSeT1B.mjs.map +1 -0
- package/dist/chunks/DomUtils-Bf7JLFlx.mjs +2 -0
- package/dist/chunks/DomUtils-Bf7JLFlx.mjs.map +1 -0
- package/dist/chunks/FontPlugin-1VYDwETg.mjs +2 -0
- package/dist/chunks/FontPlugin-1VYDwETg.mjs.map +1 -0
- package/dist/chunks/FontSizePlugin-L1uDVsKY.mjs +2 -0
- package/dist/chunks/FontSizePlugin-L1uDVsKY.mjs.map +1 -0
- package/dist/chunks/FormulaPlugin-UA-9tRpY.mjs +2 -0
- package/dist/chunks/FormulaPlugin-UA-9tRpY.mjs.map +1 -0
- package/dist/chunks/GapCursorNavigation-ycNzuQVH.mjs +2 -0
- package/dist/chunks/GapCursorNavigation-ycNzuQVH.mjs.map +1 -0
- package/dist/chunks/GapCursorPlugin-B29ieXel.mjs +2 -0
- package/dist/chunks/GapCursorPlugin-B29ieXel.mjs.map +1 -0
- package/dist/chunks/HTMLUtils-C6B4UT00.mjs +2 -0
- package/dist/chunks/HTMLUtils-C6B4UT00.mjs.map +1 -0
- package/dist/chunks/HardBreakPlugin-BkgoJkjC.mjs +2 -0
- package/dist/chunks/HardBreakPlugin-BkgoJkjC.mjs.map +1 -0
- package/dist/chunks/HeadingPlugin-SICF6Tm0.mjs +2 -0
- package/dist/chunks/HeadingPlugin-SICF6Tm0.mjs.map +1 -0
- package/dist/chunks/HighlightPlugin-B3b_qe68.mjs +2 -0
- package/dist/chunks/HighlightPlugin-B3b_qe68.mjs.map +1 -0
- package/dist/chunks/HorizontalRulePlugin-BrFlrpmb.mjs +2 -0
- package/dist/chunks/HorizontalRulePlugin-BrFlrpmb.mjs.map +1 -0
- package/dist/chunks/ImagePlugin-eRVtFFou.mjs +2 -0
- package/dist/chunks/ImagePlugin-eRVtFFou.mjs.map +1 -0
- package/dist/chunks/InlineCodePlugin-D3QulApr.mjs +2 -0
- package/dist/chunks/InlineCodePlugin-D3QulApr.mjs.map +1 -0
- package/dist/chunks/InlineStyleMarkSpec-4R6DC7ij.mjs +2 -0
- package/dist/chunks/InlineStyleMarkSpec-4R6DC7ij.mjs.map +1 -0
- package/dist/chunks/KeyboardNav-D0my3wuy.mjs +2 -0
- package/dist/chunks/KeyboardNav-D0my3wuy.mjs.map +1 -0
- package/dist/chunks/LinkPlugin-B_ysjORS.mjs +2 -0
- package/dist/chunks/LinkPlugin-B_ysjORS.mjs.map +1 -0
- package/dist/chunks/ListPlugin-C0BV8CnQ.mjs +2 -0
- package/dist/chunks/ListPlugin-C0BV8CnQ.mjs.map +1 -0
- package/dist/chunks/NavigationQueries-Bt4zZ17v.mjs +2 -0
- package/dist/chunks/NavigationQueries-Bt4zZ17v.mjs.map +1 -0
- package/dist/chunks/NodeResolver-ChgLF_IP.mjs +2 -0
- package/dist/chunks/NodeResolver-ChgLF_IP.mjs.map +1 -0
- package/dist/chunks/NodeSelectionCommands-Dj4VxLdD.mjs +2 -0
- package/dist/chunks/NodeSelectionCommands-Dj4VxLdD.mjs.map +1 -0
- package/dist/chunks/NodeSpecPatching-B_yLknTl.mjs +2 -0
- package/dist/chunks/NodeSpecPatching-B_yLknTl.mjs.map +1 -0
- package/dist/chunks/Platform-ByobkiCc.mjs +2 -0
- package/dist/chunks/Platform-ByobkiCc.mjs.map +1 -0
- package/dist/chunks/PluginHelpers-D4quRJ5a.mjs +2 -0
- package/dist/chunks/PluginHelpers-D4quRJ5a.mjs.map +1 -0
- package/dist/chunks/PopupKeyboardPatterns-tUrT9TyV.mjs +2 -0
- package/dist/chunks/PopupKeyboardPatterns-tUrT9TyV.mjs.map +1 -0
- package/dist/chunks/PopupManager-CyOfZUab.mjs +2 -0
- package/dist/chunks/PopupManager-CyOfZUab.mjs.map +1 -0
- package/dist/chunks/PopupPositioning-DtUrY9bh.mjs +2 -0
- package/dist/chunks/PopupPositioning-DtUrY9bh.mjs.map +1 -0
- package/dist/chunks/PrintPlugin-CXDFFzWB.mjs +2 -0
- package/dist/chunks/PrintPlugin-CXDFFzWB.mjs.map +1 -0
- package/dist/chunks/PrintTypes-WdtgSj74.mjs +2 -0
- package/dist/chunks/PrintTypes-WdtgSj74.mjs.map +1 -0
- package/dist/chunks/RangeIterator-o8v3msQe.mjs +2 -0
- package/dist/chunks/RangeIterator-o8v3msQe.mjs.map +1 -0
- package/dist/chunks/Selection-HYoVFpAx.mjs +2 -0
- package/dist/chunks/Selection-HYoVFpAx.mjs.map +1 -0
- package/dist/chunks/SelectionSync-BSHIw1EE.mjs +2 -0
- package/dist/chunks/SelectionSync-BSHIw1EE.mjs.map +1 -0
- package/dist/chunks/ShortcutFormatting-TwiufqeV.mjs +2 -0
- package/dist/chunks/ShortcutFormatting-TwiufqeV.mjs.map +1 -0
- package/dist/chunks/SimpleMark-Db8ir_z2.mjs +2 -0
- package/dist/chunks/SimpleMark-Db8ir_z2.mjs.map +1 -0
- package/dist/chunks/SmartPastePlugin-Db1RcNJf.mjs +2 -0
- package/dist/chunks/SmartPastePlugin-Db1RcNJf.mjs.map +1 -0
- package/dist/chunks/StrikethroughPlugin-Bsg7Ma4I.mjs +2 -0
- package/dist/chunks/StrikethroughPlugin-Bsg7Ma4I.mjs.map +1 -0
- package/dist/chunks/StyleRuntime-BAutwDZT.mjs +2 -0
- package/dist/chunks/StyleRuntime-BAutwDZT.mjs.map +1 -0
- package/dist/chunks/SuperSubPlugin-ChEga-b_.mjs +2 -0
- package/dist/chunks/SuperSubPlugin-ChEga-b_.mjs.map +1 -0
- package/dist/chunks/SyntaxTokenTypes-BUCOMtL8.mjs +2 -0
- package/dist/chunks/SyntaxTokenTypes-BUCOMtL8.mjs.map +1 -0
- package/dist/chunks/TablePlugin-CRp4qSZE.mjs +2 -0
- package/dist/chunks/TablePlugin-CRp4qSZE.mjs.map +1 -0
- package/dist/chunks/TextColorPlugin-CViEiYZk.mjs +2 -0
- package/dist/chunks/TextColorPlugin-CViEiYZk.mjs.map +1 -0
- package/dist/chunks/TextDirectionAutoPlugin-CzWJjrvG.mjs +2 -0
- package/dist/chunks/TextDirectionAutoPlugin-CzWJjrvG.mjs.map +1 -0
- package/dist/chunks/TextDirectionPlugin-CQGkaS2s.mjs +2 -0
- package/dist/chunks/TextDirectionPlugin-CQGkaS2s.mjs.map +1 -0
- package/dist/chunks/TextDirectionService-OFOU6r_s.mjs +2 -0
- package/dist/chunks/TextDirectionService-OFOU6r_s.mjs.map +1 -0
- package/dist/chunks/TextFormattingPlugin-Db5SCNOF.mjs +2 -0
- package/dist/chunks/TextFormattingPlugin-Db5SCNOF.mjs.map +1 -0
- package/dist/chunks/ToolbarPlugin-B5UUc6dY.mjs +2 -0
- package/dist/chunks/ToolbarPlugin-B5UUc6dY.mjs.map +1 -0
- package/dist/chunks/TypeBrands-Ch9856Gb.mjs +2 -0
- package/dist/chunks/TypeBrands-Ch9856Gb.mjs.map +1 -0
- package/dist/chunks/TypedKeys-CA4bfw9O.mjs +2 -0
- package/dist/chunks/TypedKeys-CA4bfw9O.mjs.map +1 -0
- package/dist/chunks/VideoPlugin-mXIDODzC.mjs +2 -0
- package/dist/chunks/VideoPlugin-mXIDODzC.mjs.map +1 -0
- package/dist/chunks/WordBoundary-DxeMBRyP.mjs +2 -0
- package/dist/chunks/WordBoundary-DxeMBRyP.mjs.map +1 -0
- package/dist/chunks/XmlDetector-D7TQpw-e.mjs +2 -0
- package/dist/chunks/XmlDetector-D7TQpw-e.mjs.map +1 -0
- package/dist/chunks/XmlPatterns-RN32-0ob.mjs +2 -0
- package/dist/chunks/XmlPatterns-RN32-0ob.mjs.map +1 -0
- package/dist/chunks/XmlSupport-BYiRwlkK.mjs +2 -0
- package/dist/chunks/XmlSupport-BYiRwlkK.mjs.map +1 -0
- package/dist/chunks/ar--Isa9OHJ.mjs +2 -0
- package/dist/chunks/ar--Isa9OHJ.mjs.map +1 -0
- package/dist/chunks/ar--O0A9OTR.mjs +2 -0
- package/dist/chunks/ar--O0A9OTR.mjs.map +1 -0
- package/dist/chunks/ar-0g2bmXTn.mjs +2 -0
- package/dist/chunks/ar-0g2bmXTn.mjs.map +1 -0
- package/dist/chunks/ar-4b8e2YSc.mjs +2 -0
- package/dist/chunks/ar-4b8e2YSc.mjs.map +1 -0
- package/dist/chunks/ar-B03uY4xr.mjs +2 -0
- package/dist/chunks/ar-B03uY4xr.mjs.map +1 -0
- package/dist/chunks/ar-BAfInw85.mjs +2 -0
- package/dist/chunks/ar-BAfInw85.mjs.map +1 -0
- package/dist/chunks/ar-BRX5E_Pw.mjs +2 -0
- package/dist/chunks/ar-BRX5E_Pw.mjs.map +1 -0
- package/dist/chunks/ar-BTShmP2E.mjs +2 -0
- package/dist/chunks/ar-BTShmP2E.mjs.map +1 -0
- package/dist/chunks/ar-BWOue6jG.mjs +2 -0
- package/dist/chunks/ar-BWOue6jG.mjs.map +1 -0
- package/dist/chunks/ar-Bdmunk5h.mjs +2 -0
- package/dist/chunks/ar-Bdmunk5h.mjs.map +1 -0
- package/dist/chunks/ar-BwaoCUVN.mjs +2 -0
- package/dist/chunks/ar-BwaoCUVN.mjs.map +1 -0
- package/dist/chunks/ar-BzqAYGER.mjs +2 -0
- package/dist/chunks/ar-BzqAYGER.mjs.map +1 -0
- package/dist/chunks/ar-C9lO1jsY.mjs +2 -0
- package/dist/chunks/ar-C9lO1jsY.mjs.map +1 -0
- package/dist/chunks/ar-CMXjVzFx.mjs +2 -0
- package/dist/chunks/ar-CMXjVzFx.mjs.map +1 -0
- package/dist/chunks/ar-CR6UdFL9.mjs +2 -0
- package/dist/chunks/ar-CR6UdFL9.mjs.map +1 -0
- package/dist/chunks/ar-CrOb0jL2.mjs +2 -0
- package/dist/chunks/ar-CrOb0jL2.mjs.map +1 -0
- package/dist/chunks/ar-Ctrv6cIi.mjs +2 -0
- package/dist/chunks/ar-Ctrv6cIi.mjs.map +1 -0
- package/dist/chunks/ar-Cy_77yRf.mjs +2 -0
- package/dist/chunks/ar-Cy_77yRf.mjs.map +1 -0
- package/dist/chunks/ar-D1jFXqLJ.mjs +2 -0
- package/dist/chunks/ar-D1jFXqLJ.mjs.map +1 -0
- package/dist/chunks/ar-DahJwMI9.mjs +2 -0
- package/dist/chunks/ar-DahJwMI9.mjs.map +1 -0
- package/dist/chunks/ar-Dcl3kgtd.mjs +2 -0
- package/dist/chunks/ar-Dcl3kgtd.mjs.map +1 -0
- package/dist/chunks/ar-Dx2lO0Nm.mjs +2 -0
- package/dist/chunks/ar-Dx2lO0Nm.mjs.map +1 -0
- package/dist/chunks/ar-NV_puwI2.mjs +2 -0
- package/dist/chunks/ar-NV_puwI2.mjs.map +1 -0
- package/dist/chunks/ar-Uzo1Azdw.mjs +2 -0
- package/dist/chunks/ar-Uzo1Azdw.mjs.map +1 -0
- package/dist/chunks/ar-XmSFrtmd.mjs +2 -0
- package/dist/chunks/ar-XmSFrtmd.mjs.map +1 -0
- package/dist/chunks/ar-jbplYWkC.mjs +2 -0
- package/dist/chunks/ar-jbplYWkC.mjs.map +1 -0
- package/dist/chunks/ar-sGZ-oZqB.mjs +2 -0
- package/dist/chunks/ar-sGZ-oZqB.mjs.map +1 -0
- package/dist/chunks/color-picker-C9B2rYw-.mjs +2 -0
- package/dist/chunks/color-picker-C9B2rYw-.mjs.map +1 -0
- package/dist/chunks/de-B8-w9gPi.mjs +2 -0
- package/dist/chunks/de-B8-w9gPi.mjs.map +1 -0
- package/dist/chunks/de-B9zSHWqY.mjs +2 -0
- package/dist/chunks/de-B9zSHWqY.mjs.map +1 -0
- package/dist/chunks/de-BX4y4PlH.mjs +2 -0
- package/dist/chunks/de-BX4y4PlH.mjs.map +1 -0
- package/dist/chunks/de-BXQBXxFJ.mjs +2 -0
- package/dist/chunks/de-BXQBXxFJ.mjs.map +1 -0
- package/dist/chunks/de-BcPntcnr.mjs +2 -0
- package/dist/chunks/de-BcPntcnr.mjs.map +1 -0
- package/dist/chunks/de-BdD3DpUB.mjs +2 -0
- package/dist/chunks/de-BdD3DpUB.mjs.map +1 -0
- package/dist/chunks/de-Bwxlcuee.mjs +2 -0
- package/dist/chunks/de-Bwxlcuee.mjs.map +1 -0
- package/dist/chunks/de-BxQIt_1Y.mjs +2 -0
- package/dist/chunks/de-BxQIt_1Y.mjs.map +1 -0
- package/dist/chunks/de-C--bRmjW.mjs +2 -0
- package/dist/chunks/de-C--bRmjW.mjs.map +1 -0
- package/dist/chunks/de-C-Yf378-.mjs +2 -0
- package/dist/chunks/de-C-Yf378-.mjs.map +1 -0
- package/dist/chunks/de-C7uehgMu.mjs +2 -0
- package/dist/chunks/de-C7uehgMu.mjs.map +1 -0
- package/dist/chunks/de-C9ZhDqPi.mjs +2 -0
- package/dist/chunks/de-C9ZhDqPi.mjs.map +1 -0
- package/dist/chunks/de-CHcv_Vmf.mjs +2 -0
- package/dist/chunks/de-CHcv_Vmf.mjs.map +1 -0
- package/dist/chunks/de-CTzAMkXC.mjs +2 -0
- package/dist/chunks/de-CTzAMkXC.mjs.map +1 -0
- package/dist/chunks/de-CaeEIyzV.mjs +2 -0
- package/dist/chunks/de-CaeEIyzV.mjs.map +1 -0
- package/dist/chunks/de-DHs9i4af.mjs +2 -0
- package/dist/chunks/de-DHs9i4af.mjs.map +1 -0
- package/dist/chunks/de-DN-e6G5A.mjs +2 -0
- package/dist/chunks/de-DN-e6G5A.mjs.map +1 -0
- package/dist/chunks/de-DViI26lG.mjs +2 -0
- package/dist/chunks/de-DViI26lG.mjs.map +1 -0
- package/dist/chunks/de-DY3obIAF.mjs +2 -0
- package/dist/chunks/de-DY3obIAF.mjs.map +1 -0
- package/dist/chunks/de-DcMhfRBu.mjs +2 -0
- package/dist/chunks/de-DcMhfRBu.mjs.map +1 -0
- package/dist/chunks/de-DiPz7abS.mjs +2 -0
- package/dist/chunks/de-DiPz7abS.mjs.map +1 -0
- package/dist/chunks/de-Dl4QFHMa.mjs +2 -0
- package/dist/chunks/de-Dl4QFHMa.mjs.map +1 -0
- package/dist/chunks/de-JhGflzS5.mjs +2 -0
- package/dist/chunks/de-JhGflzS5.mjs.map +1 -0
- package/dist/chunks/de-XCCpWyg0.mjs +2 -0
- package/dist/chunks/de-XCCpWyg0.mjs.map +1 -0
- package/dist/chunks/de-e6J6nvAD.mjs +2 -0
- package/dist/chunks/de-e6J6nvAD.mjs.map +1 -0
- package/dist/chunks/de-i95F9SDy.mjs +2 -0
- package/dist/chunks/de-i95F9SDy.mjs.map +1 -0
- package/dist/chunks/de-uKR7koQe.mjs +2 -0
- package/dist/chunks/de-uKR7koQe.mjs.map +1 -0
- package/dist/chunks/es-B0Za939C.mjs +2 -0
- package/dist/chunks/es-B0Za939C.mjs.map +1 -0
- package/dist/chunks/es-B8K3Yvf3.mjs +2 -0
- package/dist/chunks/es-B8K3Yvf3.mjs.map +1 -0
- package/dist/chunks/es-BIXm2Coj.mjs +2 -0
- package/dist/chunks/es-BIXm2Coj.mjs.map +1 -0
- package/dist/chunks/es-BJHF95J_.mjs +2 -0
- package/dist/chunks/es-BJHF95J_.mjs.map +1 -0
- package/dist/chunks/es-BMm9kqjC.mjs +2 -0
- package/dist/chunks/es-BMm9kqjC.mjs.map +1 -0
- package/dist/chunks/es-BQweZX6P.mjs +2 -0
- package/dist/chunks/es-BQweZX6P.mjs.map +1 -0
- package/dist/chunks/es-BdpTTRuX.mjs +2 -0
- package/dist/chunks/es-BdpTTRuX.mjs.map +1 -0
- package/dist/chunks/es-Bv7bDbMp.mjs +2 -0
- package/dist/chunks/es-Bv7bDbMp.mjs.map +1 -0
- package/dist/chunks/es-C7uVqFYr.mjs +2 -0
- package/dist/chunks/es-C7uVqFYr.mjs.map +1 -0
- package/dist/chunks/es-CCQFu1t1.mjs +2 -0
- package/dist/chunks/es-CCQFu1t1.mjs.map +1 -0
- package/dist/chunks/es-CM55WeEN.mjs +2 -0
- package/dist/chunks/es-CM55WeEN.mjs.map +1 -0
- package/dist/chunks/es-CUKJujcb.mjs +2 -0
- package/dist/chunks/es-CUKJujcb.mjs.map +1 -0
- package/dist/chunks/es-CXuMz87y.mjs +2 -0
- package/dist/chunks/es-CXuMz87y.mjs.map +1 -0
- package/dist/chunks/es-CgMfhkJJ.mjs +2 -0
- package/dist/chunks/es-CgMfhkJJ.mjs.map +1 -0
- package/dist/chunks/es-CtOtKQCP.mjs +2 -0
- package/dist/chunks/es-CtOtKQCP.mjs.map +1 -0
- package/dist/chunks/es-DD01rZ6N.mjs +2 -0
- package/dist/chunks/es-DD01rZ6N.mjs.map +1 -0
- package/dist/chunks/es-DDoqchUq.mjs +2 -0
- package/dist/chunks/es-DDoqchUq.mjs.map +1 -0
- package/dist/chunks/es-DFUVd7eO.mjs +2 -0
- package/dist/chunks/es-DFUVd7eO.mjs.map +1 -0
- package/dist/chunks/es-DFokqQst.mjs +2 -0
- package/dist/chunks/es-DFokqQst.mjs.map +1 -0
- package/dist/chunks/es-DHxdoEzR.mjs +2 -0
- package/dist/chunks/es-DHxdoEzR.mjs.map +1 -0
- package/dist/chunks/es-DehVGwQ8.mjs +2 -0
- package/dist/chunks/es-DehVGwQ8.mjs.map +1 -0
- package/dist/chunks/es-DrJyl38L.mjs +2 -0
- package/dist/chunks/es-DrJyl38L.mjs.map +1 -0
- package/dist/chunks/es-fTW0TkYV.mjs +2 -0
- package/dist/chunks/es-fTW0TkYV.mjs.map +1 -0
- package/dist/chunks/es-kfKiqpyD.mjs +2 -0
- package/dist/chunks/es-kfKiqpyD.mjs.map +1 -0
- package/dist/chunks/es-nRLq7bgP.mjs +2 -0
- package/dist/chunks/es-nRLq7bgP.mjs.map +1 -0
- package/dist/chunks/es-paXY7HFt.mjs +2 -0
- package/dist/chunks/es-paXY7HFt.mjs.map +1 -0
- package/dist/chunks/es-xuahrvJN.mjs +2 -0
- package/dist/chunks/es-xuahrvJN.mjs.map +1 -0
- package/dist/chunks/fonts-DQC6Uj4r.mjs +2 -0
- package/dist/chunks/fonts-DQC6Uj4r.mjs.map +1 -0
- package/dist/chunks/fr-0qEo3bRP.mjs +2 -0
- package/dist/chunks/fr-0qEo3bRP.mjs.map +1 -0
- package/dist/chunks/fr-5HkMazAf.mjs +2 -0
- package/dist/chunks/fr-5HkMazAf.mjs.map +1 -0
- package/dist/chunks/fr-B9pBLaVx.mjs +2 -0
- package/dist/chunks/fr-B9pBLaVx.mjs.map +1 -0
- package/dist/chunks/fr-BRXUnq3R.mjs +2 -0
- package/dist/chunks/fr-BRXUnq3R.mjs.map +1 -0
- package/dist/chunks/fr-BSUKEtTk.mjs +2 -0
- package/dist/chunks/fr-BSUKEtTk.mjs.map +1 -0
- package/dist/chunks/fr-BaXKyPmX.mjs +2 -0
- package/dist/chunks/fr-BaXKyPmX.mjs.map +1 -0
- package/dist/chunks/fr-BeRlON1t.mjs +2 -0
- package/dist/chunks/fr-BeRlON1t.mjs.map +1 -0
- package/dist/chunks/fr-Bg937iAy.mjs +2 -0
- package/dist/chunks/fr-Bg937iAy.mjs.map +1 -0
- package/dist/chunks/fr-BwWrFThE.mjs +2 -0
- package/dist/chunks/fr-BwWrFThE.mjs.map +1 -0
- package/dist/chunks/fr-C3EKRThN.mjs +2 -0
- package/dist/chunks/fr-C3EKRThN.mjs.map +1 -0
- package/dist/chunks/fr-CKjH6tJI.mjs +2 -0
- package/dist/chunks/fr-CKjH6tJI.mjs.map +1 -0
- package/dist/chunks/fr-CQs0-pNX.mjs +2 -0
- package/dist/chunks/fr-CQs0-pNX.mjs.map +1 -0
- package/dist/chunks/fr-C_2i5Ono.mjs +2 -0
- package/dist/chunks/fr-C_2i5Ono.mjs.map +1 -0
- package/dist/chunks/fr-CfhyYN-t.mjs +2 -0
- package/dist/chunks/fr-CfhyYN-t.mjs.map +1 -0
- package/dist/chunks/fr-D0MDdoir.mjs +2 -0
- package/dist/chunks/fr-D0MDdoir.mjs.map +1 -0
- package/dist/chunks/fr-D5ulA3Z6.mjs +2 -0
- package/dist/chunks/fr-D5ulA3Z6.mjs.map +1 -0
- package/dist/chunks/fr-DEZ_oxzS.mjs +2 -0
- package/dist/chunks/fr-DEZ_oxzS.mjs.map +1 -0
- package/dist/chunks/fr-DciSEykY.mjs +2 -0
- package/dist/chunks/fr-DciSEykY.mjs.map +1 -0
- package/dist/chunks/fr-DiDhVhyV.mjs +2 -0
- package/dist/chunks/fr-DiDhVhyV.mjs.map +1 -0
- package/dist/chunks/fr-DjMZ-3K5.mjs +2 -0
- package/dist/chunks/fr-DjMZ-3K5.mjs.map +1 -0
- package/dist/chunks/fr-DtzIu6tU.mjs +2 -0
- package/dist/chunks/fr-DtzIu6tU.mjs.map +1 -0
- package/dist/chunks/fr-F2ZrfVaF.mjs +2 -0
- package/dist/chunks/fr-F2ZrfVaF.mjs.map +1 -0
- package/dist/chunks/fr-KXmbys88.mjs +2 -0
- package/dist/chunks/fr-KXmbys88.mjs.map +1 -0
- package/dist/chunks/fr-SbpHNrQ-.mjs +2 -0
- package/dist/chunks/fr-SbpHNrQ-.mjs.map +1 -0
- package/dist/chunks/fr-ZsRdLuys.mjs +2 -0
- package/dist/chunks/fr-ZsRdLuys.mjs.map +1 -0
- package/dist/chunks/fr-eC0UdAPu.mjs +2 -0
- package/dist/chunks/fr-eC0UdAPu.mjs.map +1 -0
- package/dist/chunks/fr-fshsDD66.mjs +2 -0
- package/dist/chunks/fr-fshsDD66.mjs.map +1 -0
- package/dist/chunks/full--GEBZ2xU.mjs +2 -0
- package/dist/chunks/full--GEBZ2xU.mjs.map +1 -0
- package/dist/chunks/hi-4CiAKVjT.mjs +2 -0
- package/dist/chunks/hi-4CiAKVjT.mjs.map +1 -0
- package/dist/chunks/hi-B-ZuX4aN.mjs +2 -0
- package/dist/chunks/hi-B-ZuX4aN.mjs.map +1 -0
- package/dist/chunks/hi-B2YB3Bo4.mjs +2 -0
- package/dist/chunks/hi-B2YB3Bo4.mjs.map +1 -0
- package/dist/chunks/hi-B2uhiPCN.mjs +2 -0
- package/dist/chunks/hi-B2uhiPCN.mjs.map +1 -0
- package/dist/chunks/hi-B5cl8TWK.mjs +2 -0
- package/dist/chunks/hi-B5cl8TWK.mjs.map +1 -0
- package/dist/chunks/hi-BNJIGWQQ.mjs +2 -0
- package/dist/chunks/hi-BNJIGWQQ.mjs.map +1 -0
- package/dist/chunks/hi-BOMkDPqC.mjs +2 -0
- package/dist/chunks/hi-BOMkDPqC.mjs.map +1 -0
- package/dist/chunks/hi-Bl-yeeOI.mjs +2 -0
- package/dist/chunks/hi-Bl-yeeOI.mjs.map +1 -0
- package/dist/chunks/hi-Bu799xIO.mjs +2 -0
- package/dist/chunks/hi-Bu799xIO.mjs.map +1 -0
- package/dist/chunks/hi-By8YwVIX.mjs +2 -0
- package/dist/chunks/hi-By8YwVIX.mjs.map +1 -0
- package/dist/chunks/hi-BzbMD_cP.mjs +2 -0
- package/dist/chunks/hi-BzbMD_cP.mjs.map +1 -0
- package/dist/chunks/hi-C2jEsf8v.mjs +2 -0
- package/dist/chunks/hi-C2jEsf8v.mjs.map +1 -0
- package/dist/chunks/hi-C9fvG91d.mjs +2 -0
- package/dist/chunks/hi-C9fvG91d.mjs.map +1 -0
- package/dist/chunks/hi-CTWubxLY.mjs +2 -0
- package/dist/chunks/hi-CTWubxLY.mjs.map +1 -0
- package/dist/chunks/hi-CoclKAUM.mjs +2 -0
- package/dist/chunks/hi-CoclKAUM.mjs.map +1 -0
- package/dist/chunks/hi-CrmakMVj.mjs +2 -0
- package/dist/chunks/hi-CrmakMVj.mjs.map +1 -0
- package/dist/chunks/hi-DWX6k5ZD.mjs +2 -0
- package/dist/chunks/hi-DWX6k5ZD.mjs.map +1 -0
- package/dist/chunks/hi-DY55FuDK.mjs +2 -0
- package/dist/chunks/hi-DY55FuDK.mjs.map +1 -0
- package/dist/chunks/hi-DsdXcOB6.mjs +2 -0
- package/dist/chunks/hi-DsdXcOB6.mjs.map +1 -0
- package/dist/chunks/hi-Dt89SxNy.mjs +2 -0
- package/dist/chunks/hi-Dt89SxNy.mjs.map +1 -0
- package/dist/chunks/hi-J8ErB5nB.mjs +2 -0
- package/dist/chunks/hi-J8ErB5nB.mjs.map +1 -0
- package/dist/chunks/hi-L6pJxZam.mjs +2 -0
- package/dist/chunks/hi-L6pJxZam.mjs.map +1 -0
- package/dist/chunks/hi-SECtQQzq.mjs +2 -0
- package/dist/chunks/hi-SECtQQzq.mjs.map +1 -0
- package/dist/chunks/hi-aH9HZG23.mjs +2 -0
- package/dist/chunks/hi-aH9HZG23.mjs.map +1 -0
- package/dist/chunks/hi-j3TDLMYd.mjs +2 -0
- package/dist/chunks/hi-j3TDLMYd.mjs.map +1 -0
- package/dist/chunks/hi-l6DA-aOw.mjs +2 -0
- package/dist/chunks/hi-l6DA-aOw.mjs.map +1 -0
- package/dist/chunks/hi-uACJUw53.mjs +2 -0
- package/dist/chunks/hi-uACJUw53.mjs.map +1 -0
- package/dist/chunks/minimal-D5v-raei.mjs +2 -0
- package/dist/chunks/minimal-D5v-raei.mjs.map +1 -0
- package/dist/chunks/pt-5VeuNDd2.mjs +2 -0
- package/dist/chunks/pt-5VeuNDd2.mjs.map +1 -0
- package/dist/chunks/pt-BCXgUDiU.mjs +2 -0
- package/dist/chunks/pt-BCXgUDiU.mjs.map +1 -0
- package/dist/chunks/pt-BDam9cDu.mjs +2 -0
- package/dist/chunks/pt-BDam9cDu.mjs.map +1 -0
- package/dist/chunks/pt-Bb908r0n.mjs +2 -0
- package/dist/chunks/pt-Bb908r0n.mjs.map +1 -0
- package/dist/chunks/pt-BkpVtod-.mjs +2 -0
- package/dist/chunks/pt-BkpVtod-.mjs.map +1 -0
- package/dist/chunks/pt-BlFAJZo7.mjs +2 -0
- package/dist/chunks/pt-BlFAJZo7.mjs.map +1 -0
- package/dist/chunks/pt-Bu7Mbz67.mjs +2 -0
- package/dist/chunks/pt-Bu7Mbz67.mjs.map +1 -0
- package/dist/chunks/pt-C8sOyw0V.mjs +2 -0
- package/dist/chunks/pt-C8sOyw0V.mjs.map +1 -0
- package/dist/chunks/pt-CEUgbrii.mjs +2 -0
- package/dist/chunks/pt-CEUgbrii.mjs.map +1 -0
- package/dist/chunks/pt-CMrFpUWS.mjs +2 -0
- package/dist/chunks/pt-CMrFpUWS.mjs.map +1 -0
- package/dist/chunks/pt-CMx2wPPY.mjs +2 -0
- package/dist/chunks/pt-CMx2wPPY.mjs.map +1 -0
- package/dist/chunks/pt-CR4j8gtE.mjs +2 -0
- package/dist/chunks/pt-CR4j8gtE.mjs.map +1 -0
- package/dist/chunks/pt-Cc4zysaT.mjs +2 -0
- package/dist/chunks/pt-Cc4zysaT.mjs.map +1 -0
- package/dist/chunks/pt-Cv6q7x5x.mjs +2 -0
- package/dist/chunks/pt-Cv6q7x5x.mjs.map +1 -0
- package/dist/chunks/pt-DFKJVh7k.mjs +2 -0
- package/dist/chunks/pt-DFKJVh7k.mjs.map +1 -0
- package/dist/chunks/pt-DYMyMgKQ.mjs +2 -0
- package/dist/chunks/pt-DYMyMgKQ.mjs.map +1 -0
- package/dist/chunks/pt-D__tcM2T.mjs +2 -0
- package/dist/chunks/pt-D__tcM2T.mjs.map +1 -0
- package/dist/chunks/pt-Dg2ctkug.mjs +2 -0
- package/dist/chunks/pt-Dg2ctkug.mjs.map +1 -0
- package/dist/chunks/pt-DgfMoLWR.mjs +2 -0
- package/dist/chunks/pt-DgfMoLWR.mjs.map +1 -0
- package/dist/chunks/pt-DmN9u3NX.mjs +2 -0
- package/dist/chunks/pt-DmN9u3NX.mjs.map +1 -0
- package/dist/chunks/pt-GqLw5tN0.mjs +2 -0
- package/dist/chunks/pt-GqLw5tN0.mjs.map +1 -0
- package/dist/chunks/pt-Hy-0Xnnc.mjs +2 -0
- package/dist/chunks/pt-Hy-0Xnnc.mjs.map +1 -0
- package/dist/chunks/pt-OXa_IR4Q.mjs +2 -0
- package/dist/chunks/pt-OXa_IR4Q.mjs.map +1 -0
- package/dist/chunks/pt-UPF7DBlz.mjs +2 -0
- package/dist/chunks/pt-UPF7DBlz.mjs.map +1 -0
- package/dist/chunks/pt-_qxIe7zX.mjs +2 -0
- package/dist/chunks/pt-_qxIe7zX.mjs.map +1 -0
- package/dist/chunks/pt-paXY7HFt.mjs +2 -0
- package/dist/chunks/pt-paXY7HFt.mjs.map +1 -0
- package/dist/chunks/pt-zMHcNGPk.mjs +2 -0
- package/dist/chunks/pt-zMHcNGPk.mjs.map +1 -0
- package/dist/chunks/ru-4g_qsaLr.mjs +2 -0
- package/dist/chunks/ru-4g_qsaLr.mjs.map +1 -0
- package/dist/chunks/ru-B1m8J9dl.mjs +2 -0
- package/dist/chunks/ru-B1m8J9dl.mjs.map +1 -0
- package/dist/chunks/ru-BFpEOrVp.mjs +2 -0
- package/dist/chunks/ru-BFpEOrVp.mjs.map +1 -0
- package/dist/chunks/ru-BNPUT-3S.mjs +2 -0
- package/dist/chunks/ru-BNPUT-3S.mjs.map +1 -0
- package/dist/chunks/ru-BotG0MFT.mjs +2 -0
- package/dist/chunks/ru-BotG0MFT.mjs.map +1 -0
- package/dist/chunks/ru-BxySx7an.mjs +2 -0
- package/dist/chunks/ru-BxySx7an.mjs.map +1 -0
- package/dist/chunks/ru-C-APN_dm.mjs +2 -0
- package/dist/chunks/ru-C-APN_dm.mjs.map +1 -0
- package/dist/chunks/ru-C9yFslEG.mjs +2 -0
- package/dist/chunks/ru-C9yFslEG.mjs.map +1 -0
- package/dist/chunks/ru-CkG_bpfo.mjs +2 -0
- package/dist/chunks/ru-CkG_bpfo.mjs.map +1 -0
- package/dist/chunks/ru-Cs8KCNyq.mjs +2 -0
- package/dist/chunks/ru-Cs8KCNyq.mjs.map +1 -0
- package/dist/chunks/ru-CvDl-yEd.mjs +2 -0
- package/dist/chunks/ru-CvDl-yEd.mjs.map +1 -0
- package/dist/chunks/ru-CwyPz2Va.mjs +2 -0
- package/dist/chunks/ru-CwyPz2Va.mjs.map +1 -0
- package/dist/chunks/ru-D53d-_UB.mjs +2 -0
- package/dist/chunks/ru-D53d-_UB.mjs.map +1 -0
- package/dist/chunks/ru-DJMpeuey.mjs +2 -0
- package/dist/chunks/ru-DJMpeuey.mjs.map +1 -0
- package/dist/chunks/ru-DSRv3_Rg.mjs +2 -0
- package/dist/chunks/ru-DSRv3_Rg.mjs.map +1 -0
- package/dist/chunks/ru-DV-lgEtM.mjs +2 -0
- package/dist/chunks/ru-DV-lgEtM.mjs.map +1 -0
- package/dist/chunks/ru-DiwQV30V.mjs +2 -0
- package/dist/chunks/ru-DiwQV30V.mjs.map +1 -0
- package/dist/chunks/ru-DkW9XZFy.mjs +2 -0
- package/dist/chunks/ru-DkW9XZFy.mjs.map +1 -0
- package/dist/chunks/ru-DyCTlhjg.mjs +2 -0
- package/dist/chunks/ru-DyCTlhjg.mjs.map +1 -0
- package/dist/chunks/ru-QGX8lOTs.mjs +2 -0
- package/dist/chunks/ru-QGX8lOTs.mjs.map +1 -0
- package/dist/chunks/ru-QcTo2yoL.mjs +2 -0
- package/dist/chunks/ru-QcTo2yoL.mjs.map +1 -0
- package/dist/chunks/ru-Y11wuxOB.mjs +2 -0
- package/dist/chunks/ru-Y11wuxOB.mjs.map +1 -0
- package/dist/chunks/ru-Yngw7nFP.mjs +2 -0
- package/dist/chunks/ru-Yngw7nFP.mjs.map +1 -0
- package/dist/chunks/ru-d68SZpEe.mjs +2 -0
- package/dist/chunks/ru-d68SZpEe.mjs.map +1 -0
- package/dist/chunks/ru-k7o3Qks3.mjs +2 -0
- package/dist/chunks/ru-k7o3Qks3.mjs.map +1 -0
- package/dist/chunks/ru-l73diFXn.mjs +2 -0
- package/dist/chunks/ru-l73diFXn.mjs.map +1 -0
- package/dist/chunks/ru-q8kz-237.mjs +2 -0
- package/dist/chunks/ru-q8kz-237.mjs.map +1 -0
- package/dist/chunks/src-C5Lblp2i.mjs +2 -0
- package/dist/chunks/src-C5Lblp2i.mjs.map +1 -0
- package/dist/chunks/zh-BGYJXxVl.mjs +2 -0
- package/dist/chunks/zh-BGYJXxVl.mjs.map +1 -0
- package/dist/chunks/zh-BP97XjlS.mjs +2 -0
- package/dist/chunks/zh-BP97XjlS.mjs.map +1 -0
- package/dist/chunks/zh-BQ73oqxc.mjs +2 -0
- package/dist/chunks/zh-BQ73oqxc.mjs.map +1 -0
- package/dist/chunks/zh-BQqf3wJZ.mjs +2 -0
- package/dist/chunks/zh-BQqf3wJZ.mjs.map +1 -0
- package/dist/chunks/zh-Baxh6v0j.mjs +2 -0
- package/dist/chunks/zh-Baxh6v0j.mjs.map +1 -0
- package/dist/chunks/zh-BjoyjClN.mjs +2 -0
- package/dist/chunks/zh-BjoyjClN.mjs.map +1 -0
- package/dist/chunks/zh-BvuAbM2S.mjs +2 -0
- package/dist/chunks/zh-BvuAbM2S.mjs.map +1 -0
- package/dist/chunks/zh-C-wHnDo5.mjs +2 -0
- package/dist/chunks/zh-C-wHnDo5.mjs.map +1 -0
- package/dist/chunks/zh-C7iCgCRP.mjs +2 -0
- package/dist/chunks/zh-C7iCgCRP.mjs.map +1 -0
- package/dist/chunks/zh-CRsDvfPR.mjs +2 -0
- package/dist/chunks/zh-CRsDvfPR.mjs.map +1 -0
- package/dist/chunks/zh-CWGAPVei.mjs +2 -0
- package/dist/chunks/zh-CWGAPVei.mjs.map +1 -0
- package/dist/chunks/zh-CWIzJcXi.mjs +2 -0
- package/dist/chunks/zh-CWIzJcXi.mjs.map +1 -0
- package/dist/chunks/zh-CYV-db-K.mjs +2 -0
- package/dist/chunks/zh-CYV-db-K.mjs.map +1 -0
- package/dist/chunks/zh-CnW44JEw.mjs +2 -0
- package/dist/chunks/zh-CnW44JEw.mjs.map +1 -0
- package/dist/chunks/zh-D1HSmSOf.mjs +2 -0
- package/dist/chunks/zh-D1HSmSOf.mjs.map +1 -0
- package/dist/chunks/zh-DWN1Jqn3.mjs +2 -0
- package/dist/chunks/zh-DWN1Jqn3.mjs.map +1 -0
- package/dist/chunks/zh-DYD476c5.mjs +2 -0
- package/dist/chunks/zh-DYD476c5.mjs.map +1 -0
- package/dist/chunks/zh-DdzgYD7k.mjs +2 -0
- package/dist/chunks/zh-DdzgYD7k.mjs.map +1 -0
- package/dist/chunks/zh-DeZP08HI.mjs +2 -0
- package/dist/chunks/zh-DeZP08HI.mjs.map +1 -0
- package/dist/chunks/zh-DgSmvLyw.mjs +2 -0
- package/dist/chunks/zh-DgSmvLyw.mjs.map +1 -0
- package/dist/chunks/zh-DlVfQn4z.mjs +2 -0
- package/dist/chunks/zh-DlVfQn4z.mjs.map +1 -0
- package/dist/chunks/zh-DuucmOns.mjs +2 -0
- package/dist/chunks/zh-DuucmOns.mjs.map +1 -0
- package/dist/chunks/zh-Oj-qSUEp.mjs +2 -0
- package/dist/chunks/zh-Oj-qSUEp.mjs.map +1 -0
- package/dist/chunks/zh-YfuE_m2y.mjs +2 -0
- package/dist/chunks/zh-YfuE_m2y.mjs.map +1 -0
- package/dist/chunks/zh-dGSDBBzb.mjs +2 -0
- package/dist/chunks/zh-dGSDBBzb.mjs.map +1 -0
- package/dist/chunks/zh-ikm3rSTR.mjs +2 -0
- package/dist/chunks/zh-ikm3rSTR.mjs.map +1 -0
- package/dist/chunks/zh-oZl1P_p0.mjs +2 -0
- package/dist/chunks/zh-oZl1P_p0.mjs.map +1 -0
- package/dist/commands/BlockInsertion.d.ts +49 -2
- package/dist/commands/BlockInsertion.d.ts.map +1 -1
- package/dist/commands/NodeSelectionCommands.d.ts +10 -2
- package/dist/commands/NodeSelectionCommands.d.ts.map +1 -1
- package/dist/editor/styles/list.d.ts +1 -1
- package/dist/editor/styles/list.d.ts.map +1 -1
- package/dist/fonts.mjs +1 -1
- package/dist/full.mjs +1 -1
- package/dist/html.mjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/input/KeyDescriptor.d.ts +40 -0
- package/dist/input/KeyDescriptor.d.ts.map +1 -0
- package/dist/input/KeyboardHandler.d.ts +17 -5
- package/dist/input/KeyboardHandler.d.ts.map +1 -1
- package/dist/input/PasteHTMLHandler.d.ts.map +1 -1
- package/dist/input/PasteRichBlockHandler.d.ts +22 -3
- package/dist/input/PasteRichBlockHandler.d.ts.map +1 -1
- package/dist/model/Document.d.ts +2 -2
- package/dist/model/Document.d.ts.map +1 -1
- package/dist/notectl-core.mjs +1 -1
- package/dist/notectl-core.umd.js +1 -1
- package/dist/notectl-core.umd.js.map +1 -1
- package/dist/plugins/alignment.mjs +1 -1
- package/dist/plugins/bidi-isolation.mjs +1 -1
- package/dist/plugins/blockquote.mjs +1 -1
- package/dist/plugins/caret-navigation.mjs +1 -1
- package/dist/plugins/code-block.mjs +1 -1
- package/dist/plugins/font-size.mjs +1 -1
- package/dist/plugins/font.mjs +1 -1
- package/dist/plugins/formula/DisplayMathNodeSpec.d.ts.map +1 -1
- package/dist/plugins/formula/FormulaCommands.d.ts +14 -0
- package/dist/plugins/formula/FormulaCommands.d.ts.map +1 -1
- package/dist/plugins/formula/FormulaEditorMount.d.ts.map +1 -1
- package/dist/plugins/formula/FormulaLocale.d.ts +7 -1
- package/dist/plugins/formula/FormulaLocale.d.ts.map +1 -1
- package/dist/plugins/formula/FormulaPasteInterceptor.d.ts +12 -3
- package/dist/plugins/formula/FormulaPasteInterceptor.d.ts.map +1 -1
- package/dist/plugins/formula/FormulaSerialization.d.ts +17 -0
- package/dist/plugins/formula/FormulaSerialization.d.ts.map +1 -0
- package/dist/plugins/formula/FormulaStyles.d.ts +1 -1
- package/dist/plugins/formula/FormulaStyles.d.ts.map +1 -1
- package/dist/plugins/formula/InlineMathNodeSpec.d.ts.map +1 -1
- package/dist/plugins/formula/locales/ar.d.ts.map +1 -1
- package/dist/plugins/formula/locales/de.d.ts.map +1 -1
- package/dist/plugins/formula/locales/es.d.ts.map +1 -1
- package/dist/plugins/formula/locales/fr.d.ts.map +1 -1
- package/dist/plugins/formula/locales/hi.d.ts.map +1 -1
- package/dist/plugins/formula/locales/pt.d.ts.map +1 -1
- package/dist/plugins/formula/locales/ru.d.ts.map +1 -1
- package/dist/plugins/formula/locales/zh.d.ts.map +1 -1
- package/dist/plugins/formula/math-field/MathPalette.d.ts.map +1 -1
- package/dist/plugins/formula/math-field/MathPaletteData.d.ts +7 -1
- package/dist/plugins/formula/math-field/MathPaletteData.d.ts.map +1 -1
- package/dist/plugins/formula/mathml/MathMLDocument.d.ts +13 -0
- package/dist/plugins/formula/mathml/MathMLDocument.d.ts.map +1 -1
- package/dist/plugins/formula.mjs +1 -1
- package/dist/plugins/gap-cursor.mjs +1 -1
- package/dist/plugins/hard-break.mjs +1 -1
- package/dist/plugins/heading.mjs +1 -1
- package/dist/plugins/highlight.mjs +1 -1
- package/dist/plugins/horizontal-rule.mjs +1 -1
- package/dist/plugins/image.mjs +1 -1
- package/dist/plugins/inline-code.mjs +1 -1
- package/dist/plugins/language.mjs +1 -1
- package/dist/plugins/link.mjs +1 -1
- package/dist/plugins/list/ListCommands.d.ts +16 -3
- package/dist/plugins/list/ListCommands.d.ts.map +1 -1
- package/dist/plugins/list/ListLocale.d.ts +6 -0
- package/dist/plugins/list/ListLocale.d.ts.map +1 -1
- package/dist/plugins/list/ListMarker.d.ts +14 -0
- package/dist/plugins/list/ListMarker.d.ts.map +1 -0
- package/dist/plugins/list/ListPlugin.d.ts.map +1 -1
- package/dist/plugins/list/locales/ar.d.ts.map +1 -1
- package/dist/plugins/list/locales/de.d.ts.map +1 -1
- package/dist/plugins/list/locales/es.d.ts.map +1 -1
- package/dist/plugins/list/locales/fr.d.ts.map +1 -1
- package/dist/plugins/list/locales/hi.d.ts.map +1 -1
- package/dist/plugins/list/locales/pt.d.ts.map +1 -1
- package/dist/plugins/list/locales/ru.d.ts.map +1 -1
- package/dist/plugins/list/locales/zh.d.ts.map +1 -1
- package/dist/plugins/list.mjs +1 -1
- package/dist/plugins/print.mjs +1 -1
- package/dist/plugins/shared.mjs +1 -1
- package/dist/plugins/smart-paste.mjs +1 -1
- package/dist/plugins/strikethrough.mjs +1 -1
- package/dist/plugins/super-sub.mjs +1 -1
- package/dist/plugins/table/TableCommands.d.ts.map +1 -1
- package/dist/plugins/table.mjs +1 -1
- package/dist/plugins/text-color.mjs +1 -1
- package/dist/plugins/text-direction-auto.mjs +1 -1
- package/dist/plugins/text-direction.mjs +1 -1
- package/dist/plugins/text-formatting.mjs +1 -1
- package/dist/plugins/toolbar/ToolbarPopupController.d.ts.map +1 -1
- package/dist/plugins/toolbar.mjs +1 -1
- package/dist/plugins/video/VideoCommands.d.ts.map +1 -1
- package/dist/plugins/video.mjs +1 -1
- package/dist/presets/full.mjs +1 -1
- package/dist/presets/minimal.mjs +1 -1
- package/dist/presets.mjs +1 -1
- package/dist/state/InlineContentOps.d.ts +5 -3
- package/dist/state/InlineContentOps.d.ts.map +1 -1
- package/dist/state/StepInversion.d.ts.map +1 -1
- package/dist/state/StepMaps.d.ts.map +1 -1
- package/dist/state/Steps.d.ts +20 -3
- package/dist/state/Steps.d.ts.map +1 -1
- package/dist/state/TransactionBuilder.d.ts +3 -3
- package/dist/state/TransactionBuilder.d.ts.map +1 -1
- package/dist/test/TestUtils.d.ts +2 -0
- package/dist/test/TestUtils.d.ts.map +1 -1
- package/dist/view/SelectionSync.d.ts.map +1 -1
- package/package.json +423 -415
- package/dist/chunks/AlignmentPlugin-BLzRjrUl.mjs +0 -2
- package/dist/chunks/AlignmentPlugin-BLzRjrUl.mjs.map +0 -1
- package/dist/chunks/AttrRegistry-CRnXTPha.mjs +0 -2
- package/dist/chunks/AttrRegistry-CRnXTPha.mjs.map +0 -1
- package/dist/chunks/AttributedMarkCommands-CxhdUsuE.mjs +0 -2
- package/dist/chunks/AttributedMarkCommands-CxhdUsuE.mjs.map +0 -1
- package/dist/chunks/BidiIsolationPlugin-DNPXe5ga.mjs +0 -2
- package/dist/chunks/BidiIsolationPlugin-DNPXe5ga.mjs.map +0 -1
- package/dist/chunks/BlockInsertion-C7jFEeYB.mjs +0 -2
- package/dist/chunks/BlockInsertion-C7jFEeYB.mjs.map +0 -1
- package/dist/chunks/BlockTypePickerRegistry-U4uY7-lN.mjs +0 -2
- package/dist/chunks/BlockTypePickerRegistry-U4uY7-lN.mjs.map +0 -1
- package/dist/chunks/BlockquotePlugin-YgXcV4mT.mjs +0 -2
- package/dist/chunks/BlockquotePlugin-YgXcV4mT.mjs.map +0 -1
- package/dist/chunks/CaretNavigationPlugin-P6OYaTSq.mjs +0 -2
- package/dist/chunks/CaretNavigationPlugin-P6OYaTSq.mjs.map +0 -1
- package/dist/chunks/CodeBlockPlugin-ChPv3Edf.mjs +0 -2
- package/dist/chunks/CodeBlockPlugin-ChPv3Edf.mjs.map +0 -1
- package/dist/chunks/ColorGrid-D5-teEjD.mjs +0 -2
- package/dist/chunks/ColorGrid-D5-teEjD.mjs.map +0 -1
- package/dist/chunks/ColorPickerPopup-_Gp09pdx.mjs +0 -2
- package/dist/chunks/ColorPickerPopup-_Gp09pdx.mjs.map +0 -1
- package/dist/chunks/ColorValidation-okAvytHQ.mjs +0 -2
- package/dist/chunks/ColorValidation-okAvytHQ.mjs.map +0 -1
- package/dist/chunks/CommandHelpers-NV80Ff1G.mjs +0 -2
- package/dist/chunks/CommandHelpers-NV80Ff1G.mjs.map +0 -1
- package/dist/chunks/Commands-ixGhPiRG.mjs +0 -2
- package/dist/chunks/Commands-ixGhPiRG.mjs.map +0 -1
- package/dist/chunks/Decoration-DZK7hrL1.mjs +0 -2
- package/dist/chunks/Decoration-DZK7hrL1.mjs.map +0 -1
- package/dist/chunks/DirectionDetection-7HmMUZrx.mjs +0 -2
- package/dist/chunks/DirectionDetection-7HmMUZrx.mjs.map +0 -1
- package/dist/chunks/DirectionIcons-DhRvPVoz.mjs +0 -2
- package/dist/chunks/DirectionIcons-DhRvPVoz.mjs.map +0 -1
- package/dist/chunks/Document-znhIcvM9.mjs +0 -2
- package/dist/chunks/Document-znhIcvM9.mjs.map +0 -1
- package/dist/chunks/DocumentParser-DCjOW3us.mjs +0 -2
- package/dist/chunks/DocumentParser-DCjOW3us.mjs.map +0 -1
- package/dist/chunks/DomUtils-RKbAVBQz.mjs +0 -2
- package/dist/chunks/DomUtils-RKbAVBQz.mjs.map +0 -1
- package/dist/chunks/FontPlugin-COYtG1Uo.mjs +0 -2
- package/dist/chunks/FontPlugin-COYtG1Uo.mjs.map +0 -1
- package/dist/chunks/FontSizePlugin-CLcfdTm3.mjs +0 -2
- package/dist/chunks/FontSizePlugin-CLcfdTm3.mjs.map +0 -1
- package/dist/chunks/FormulaPlugin-DphHU4Rn.mjs +0 -2
- package/dist/chunks/FormulaPlugin-DphHU4Rn.mjs.map +0 -1
- package/dist/chunks/GapCursorNavigation-Bkuu_Ek8.mjs +0 -2
- package/dist/chunks/GapCursorNavigation-Bkuu_Ek8.mjs.map +0 -1
- package/dist/chunks/GapCursorPlugin-CRDmQEi1.mjs +0 -2
- package/dist/chunks/GapCursorPlugin-CRDmQEi1.mjs.map +0 -1
- package/dist/chunks/HTMLUtils-brwcaufP.mjs +0 -2
- package/dist/chunks/HTMLUtils-brwcaufP.mjs.map +0 -1
- package/dist/chunks/HardBreakPlugin-Cr6dMQ-H.mjs +0 -2
- package/dist/chunks/HardBreakPlugin-Cr6dMQ-H.mjs.map +0 -1
- package/dist/chunks/HeadingPlugin-3NL4ARPp.mjs +0 -2
- package/dist/chunks/HeadingPlugin-3NL4ARPp.mjs.map +0 -1
- package/dist/chunks/HighlightPlugin-dHxnAuoW.mjs +0 -2
- package/dist/chunks/HighlightPlugin-dHxnAuoW.mjs.map +0 -1
- package/dist/chunks/HorizontalRulePlugin-BYPaI4TR.mjs +0 -2
- package/dist/chunks/HorizontalRulePlugin-BYPaI4TR.mjs.map +0 -1
- package/dist/chunks/ImagePlugin-kgokm-a1.mjs +0 -2
- package/dist/chunks/ImagePlugin-kgokm-a1.mjs.map +0 -1
- package/dist/chunks/InlineCodePlugin-Bl1jyDwk.mjs +0 -2
- package/dist/chunks/InlineCodePlugin-Bl1jyDwk.mjs.map +0 -1
- package/dist/chunks/InlineStyleMarkSpec-Cc-b1tlm.mjs +0 -2
- package/dist/chunks/InlineStyleMarkSpec-Cc-b1tlm.mjs.map +0 -1
- package/dist/chunks/KeyboardNav-DZXdTg-_.mjs +0 -2
- package/dist/chunks/KeyboardNav-DZXdTg-_.mjs.map +0 -1
- package/dist/chunks/LinkPlugin-Dmcfo3On.mjs +0 -2
- package/dist/chunks/LinkPlugin-Dmcfo3On.mjs.map +0 -1
- package/dist/chunks/ListPlugin-Ch-5CsFc.mjs +0 -2
- package/dist/chunks/ListPlugin-Ch-5CsFc.mjs.map +0 -1
- package/dist/chunks/NavigationQueries-3zTaNBlp.mjs +0 -2
- package/dist/chunks/NavigationQueries-3zTaNBlp.mjs.map +0 -1
- package/dist/chunks/NodeResolver-BplmzA7c.mjs +0 -2
- package/dist/chunks/NodeResolver-BplmzA7c.mjs.map +0 -1
- package/dist/chunks/NodeSelectionCommands-dUmbRoZ2.mjs +0 -2
- package/dist/chunks/NodeSelectionCommands-dUmbRoZ2.mjs.map +0 -1
- package/dist/chunks/NodeSpecPatching-DToX09gc.mjs +0 -2
- package/dist/chunks/NodeSpecPatching-DToX09gc.mjs.map +0 -1
- package/dist/chunks/Platform-wPvKFB9m.mjs +0 -2
- package/dist/chunks/Platform-wPvKFB9m.mjs.map +0 -1
- package/dist/chunks/PluginHelpers-C3aCCGfX.mjs +0 -2
- package/dist/chunks/PluginHelpers-C3aCCGfX.mjs.map +0 -1
- package/dist/chunks/PopupKeyboardPatterns-ZdAQB78m.mjs +0 -2
- package/dist/chunks/PopupKeyboardPatterns-ZdAQB78m.mjs.map +0 -1
- package/dist/chunks/PopupManager-DsT1uRWi.mjs +0 -2
- package/dist/chunks/PopupManager-DsT1uRWi.mjs.map +0 -1
- package/dist/chunks/PopupPositioning-BEnz90Oh.mjs +0 -2
- package/dist/chunks/PopupPositioning-BEnz90Oh.mjs.map +0 -1
- package/dist/chunks/PrintPlugin-Bq-Z14K1.mjs +0 -2
- package/dist/chunks/PrintPlugin-Bq-Z14K1.mjs.map +0 -1
- package/dist/chunks/PrintTypes-DA0Cc--M.mjs +0 -2
- package/dist/chunks/PrintTypes-DA0Cc--M.mjs.map +0 -1
- package/dist/chunks/RangeIterator-Cl4_k8cx.mjs +0 -2
- package/dist/chunks/RangeIterator-Cl4_k8cx.mjs.map +0 -1
- package/dist/chunks/Selection-aeiSsvhe.mjs +0 -2
- package/dist/chunks/Selection-aeiSsvhe.mjs.map +0 -1
- package/dist/chunks/SelectionSync-DCJpNFat.mjs +0 -2
- package/dist/chunks/SelectionSync-DCJpNFat.mjs.map +0 -1
- package/dist/chunks/ShortcutFormatting-DZK70CN9.mjs +0 -2
- package/dist/chunks/ShortcutFormatting-DZK70CN9.mjs.map +0 -1
- package/dist/chunks/SimpleMark-CezTJnXh.mjs +0 -2
- package/dist/chunks/SimpleMark-CezTJnXh.mjs.map +0 -1
- package/dist/chunks/SmartPastePlugin-DlApY6Vw.mjs +0 -2
- package/dist/chunks/SmartPastePlugin-DlApY6Vw.mjs.map +0 -1
- package/dist/chunks/StrikethroughPlugin-BuFDABvz.mjs +0 -2
- package/dist/chunks/StrikethroughPlugin-BuFDABvz.mjs.map +0 -1
- package/dist/chunks/StyleRuntime-Bwde5icB.mjs +0 -2
- package/dist/chunks/StyleRuntime-Bwde5icB.mjs.map +0 -1
- package/dist/chunks/SuperSubPlugin-CiLJ7i4s.mjs +0 -2
- package/dist/chunks/SuperSubPlugin-CiLJ7i4s.mjs.map +0 -1
- package/dist/chunks/SyntaxTokenTypes-C9dGwufi.mjs +0 -2
- package/dist/chunks/SyntaxTokenTypes-C9dGwufi.mjs.map +0 -1
- package/dist/chunks/TablePlugin-5ru-y-YX.mjs +0 -2
- package/dist/chunks/TablePlugin-5ru-y-YX.mjs.map +0 -1
- package/dist/chunks/TextColorPlugin-Vz-Nz8aH.mjs +0 -2
- package/dist/chunks/TextColorPlugin-Vz-Nz8aH.mjs.map +0 -1
- package/dist/chunks/TextDirectionAutoPlugin-Behl6KMe.mjs +0 -2
- package/dist/chunks/TextDirectionAutoPlugin-Behl6KMe.mjs.map +0 -1
- package/dist/chunks/TextDirectionPlugin-C3h1n-aA.mjs +0 -2
- package/dist/chunks/TextDirectionPlugin-C3h1n-aA.mjs.map +0 -1
- package/dist/chunks/TextDirectionService-DRfeQnF6.mjs +0 -2
- package/dist/chunks/TextDirectionService-DRfeQnF6.mjs.map +0 -1
- package/dist/chunks/TextFormattingPlugin-D_nRMeBn.mjs +0 -2
- package/dist/chunks/TextFormattingPlugin-D_nRMeBn.mjs.map +0 -1
- package/dist/chunks/ToolbarPlugin-CSMSgjPM.mjs +0 -2
- package/dist/chunks/ToolbarPlugin-CSMSgjPM.mjs.map +0 -1
- package/dist/chunks/TypeBrands-BZDKMjR-.mjs +0 -2
- package/dist/chunks/TypeBrands-BZDKMjR-.mjs.map +0 -1
- package/dist/chunks/TypedKeys-E3jOGByL.mjs +0 -2
- package/dist/chunks/TypedKeys-E3jOGByL.mjs.map +0 -1
- package/dist/chunks/VideoPlugin-BUCGIYXr.mjs +0 -2
- package/dist/chunks/VideoPlugin-BUCGIYXr.mjs.map +0 -1
- package/dist/chunks/WordBoundary-CYDAtEks.mjs +0 -2
- package/dist/chunks/WordBoundary-CYDAtEks.mjs.map +0 -1
- package/dist/chunks/XmlDetector-DxBGXqua.mjs +0 -2
- package/dist/chunks/XmlDetector-DxBGXqua.mjs.map +0 -1
- package/dist/chunks/XmlPatterns-BiHS8w3k.mjs +0 -2
- package/dist/chunks/XmlPatterns-BiHS8w3k.mjs.map +0 -1
- package/dist/chunks/XmlSupport-B_F65M8G.mjs +0 -2
- package/dist/chunks/XmlSupport-B_F65M8G.mjs.map +0 -1
- package/dist/chunks/ar-B38MlRRN.mjs +0 -2
- package/dist/chunks/ar-B38MlRRN.mjs.map +0 -1
- package/dist/chunks/ar-BIeE0C5A.mjs +0 -2
- package/dist/chunks/ar-BIeE0C5A.mjs.map +0 -1
- package/dist/chunks/ar-BK0rFxF_.mjs +0 -2
- package/dist/chunks/ar-BK0rFxF_.mjs.map +0 -1
- package/dist/chunks/ar-BK4O36ep.mjs +0 -2
- package/dist/chunks/ar-BK4O36ep.mjs.map +0 -1
- package/dist/chunks/ar-BNUWuZe3.mjs +0 -2
- package/dist/chunks/ar-BNUWuZe3.mjs.map +0 -1
- package/dist/chunks/ar-BSXH8acw.mjs +0 -2
- package/dist/chunks/ar-BSXH8acw.mjs.map +0 -1
- package/dist/chunks/ar-BY8yNlGe.mjs +0 -2
- package/dist/chunks/ar-BY8yNlGe.mjs.map +0 -1
- package/dist/chunks/ar-BgHkduPE.mjs +0 -2
- package/dist/chunks/ar-BgHkduPE.mjs.map +0 -1
- package/dist/chunks/ar-BnfWtLhK.mjs +0 -2
- package/dist/chunks/ar-BnfWtLhK.mjs.map +0 -1
- package/dist/chunks/ar-BwCPhCf6.mjs +0 -2
- package/dist/chunks/ar-BwCPhCf6.mjs.map +0 -1
- package/dist/chunks/ar-Bymjd9Z_.mjs +0 -2
- package/dist/chunks/ar-Bymjd9Z_.mjs.map +0 -1
- package/dist/chunks/ar-CKPpdJ7F.mjs +0 -2
- package/dist/chunks/ar-CKPpdJ7F.mjs.map +0 -1
- package/dist/chunks/ar-C_ir5Uf4.mjs +0 -2
- package/dist/chunks/ar-C_ir5Uf4.mjs.map +0 -1
- package/dist/chunks/ar-CkE6GDVA.mjs +0 -2
- package/dist/chunks/ar-CkE6GDVA.mjs.map +0 -1
- package/dist/chunks/ar-ClgA1KQM.mjs +0 -2
- package/dist/chunks/ar-ClgA1KQM.mjs.map +0 -1
- package/dist/chunks/ar-Cm1DOK74.mjs +0 -2
- package/dist/chunks/ar-Cm1DOK74.mjs.map +0 -1
- package/dist/chunks/ar-CseGhQtS.mjs +0 -2
- package/dist/chunks/ar-CseGhQtS.mjs.map +0 -1
- package/dist/chunks/ar-D0bqkviV.mjs +0 -2
- package/dist/chunks/ar-D0bqkviV.mjs.map +0 -1
- package/dist/chunks/ar-D5d185g0.mjs +0 -2
- package/dist/chunks/ar-D5d185g0.mjs.map +0 -1
- package/dist/chunks/ar-DSwUyX47.mjs +0 -2
- package/dist/chunks/ar-DSwUyX47.mjs.map +0 -1
- package/dist/chunks/ar-DfSNWZX7.mjs +0 -2
- package/dist/chunks/ar-DfSNWZX7.mjs.map +0 -1
- package/dist/chunks/ar-Dghtfs46.mjs +0 -2
- package/dist/chunks/ar-Dghtfs46.mjs.map +0 -1
- package/dist/chunks/ar-DvNKBrJd.mjs +0 -2
- package/dist/chunks/ar-DvNKBrJd.mjs.map +0 -1
- package/dist/chunks/ar-KNULRI8r.mjs +0 -2
- package/dist/chunks/ar-KNULRI8r.mjs.map +0 -1
- package/dist/chunks/ar-NtGRavHz.mjs +0 -2
- package/dist/chunks/ar-NtGRavHz.mjs.map +0 -1
- package/dist/chunks/ar-Y9KjJLX8.mjs +0 -2
- package/dist/chunks/ar-Y9KjJLX8.mjs.map +0 -1
- package/dist/chunks/ar-odM5gkvw.mjs +0 -2
- package/dist/chunks/ar-odM5gkvw.mjs.map +0 -1
- package/dist/chunks/color-picker-C89H4SVX.mjs +0 -2
- package/dist/chunks/color-picker-C89H4SVX.mjs.map +0 -1
- package/dist/chunks/de-B1TXiyll.mjs +0 -2
- package/dist/chunks/de-B1TXiyll.mjs.map +0 -1
- package/dist/chunks/de-BDRaxLyi.mjs +0 -2
- package/dist/chunks/de-BDRaxLyi.mjs.map +0 -1
- package/dist/chunks/de-BGOpZ8Ls.mjs +0 -2
- package/dist/chunks/de-BGOpZ8Ls.mjs.map +0 -1
- package/dist/chunks/de-BfZ5qXWz.mjs +0 -2
- package/dist/chunks/de-BfZ5qXWz.mjs.map +0 -1
- package/dist/chunks/de-BibufNIa.mjs +0 -2
- package/dist/chunks/de-BibufNIa.mjs.map +0 -1
- package/dist/chunks/de-BkZqCmzL.mjs +0 -2
- package/dist/chunks/de-BkZqCmzL.mjs.map +0 -1
- package/dist/chunks/de-BzRd2oyR.mjs +0 -2
- package/dist/chunks/de-BzRd2oyR.mjs.map +0 -1
- package/dist/chunks/de-C4gnHDmk.mjs +0 -2
- package/dist/chunks/de-C4gnHDmk.mjs.map +0 -1
- package/dist/chunks/de-C4iw9SEp.mjs +0 -2
- package/dist/chunks/de-C4iw9SEp.mjs.map +0 -1
- package/dist/chunks/de-CLWzcDoW.mjs +0 -2
- package/dist/chunks/de-CLWzcDoW.mjs.map +0 -1
- package/dist/chunks/de-Cbv0otYM.mjs +0 -2
- package/dist/chunks/de-Cbv0otYM.mjs.map +0 -1
- package/dist/chunks/de-Cinp7zmo.mjs +0 -2
- package/dist/chunks/de-Cinp7zmo.mjs.map +0 -1
- package/dist/chunks/de-CvnyjI_X.mjs +0 -2
- package/dist/chunks/de-CvnyjI_X.mjs.map +0 -1
- package/dist/chunks/de-DCx3Shj3.mjs +0 -2
- package/dist/chunks/de-DCx3Shj3.mjs.map +0 -1
- package/dist/chunks/de-Dav2GzjV.mjs +0 -2
- package/dist/chunks/de-Dav2GzjV.mjs.map +0 -1
- package/dist/chunks/de-Dc7GRbWc.mjs +0 -2
- package/dist/chunks/de-Dc7GRbWc.mjs.map +0 -1
- package/dist/chunks/de-DdntlpT3.mjs +0 -2
- package/dist/chunks/de-DdntlpT3.mjs.map +0 -1
- package/dist/chunks/de-DefykdF-.mjs +0 -2
- package/dist/chunks/de-DefykdF-.mjs.map +0 -1
- package/dist/chunks/de-DfQQIP8Y.mjs +0 -2
- package/dist/chunks/de-DfQQIP8Y.mjs.map +0 -1
- package/dist/chunks/de-DkcKDkbA.mjs +0 -2
- package/dist/chunks/de-DkcKDkbA.mjs.map +0 -1
- package/dist/chunks/de-DqGfLfeV.mjs +0 -2
- package/dist/chunks/de-DqGfLfeV.mjs.map +0 -1
- package/dist/chunks/de-DudqIJho.mjs +0 -2
- package/dist/chunks/de-DudqIJho.mjs.map +0 -1
- package/dist/chunks/de-LCXA2xWj.mjs +0 -2
- package/dist/chunks/de-LCXA2xWj.mjs.map +0 -1
- package/dist/chunks/de-YygmrxGp.mjs +0 -2
- package/dist/chunks/de-YygmrxGp.mjs.map +0 -1
- package/dist/chunks/de-asI3UlFG.mjs +0 -2
- package/dist/chunks/de-asI3UlFG.mjs.map +0 -1
- package/dist/chunks/de-kvMvD3AJ.mjs +0 -2
- package/dist/chunks/de-kvMvD3AJ.mjs.map +0 -1
- package/dist/chunks/de-pnfTnS03.mjs +0 -2
- package/dist/chunks/de-pnfTnS03.mjs.map +0 -1
- package/dist/chunks/es-4tbAR0If.mjs +0 -2
- package/dist/chunks/es-4tbAR0If.mjs.map +0 -1
- package/dist/chunks/es-B9z2Xwj0.mjs +0 -2
- package/dist/chunks/es-B9z2Xwj0.mjs.map +0 -1
- package/dist/chunks/es-BJxjRQSg.mjs +0 -2
- package/dist/chunks/es-BJxjRQSg.mjs.map +0 -1
- package/dist/chunks/es-BSyxBRjn.mjs +0 -2
- package/dist/chunks/es-BSyxBRjn.mjs.map +0 -1
- package/dist/chunks/es-Bcpq2xfU.mjs +0 -2
- package/dist/chunks/es-Bcpq2xfU.mjs.map +0 -1
- package/dist/chunks/es-BhUjc8mO.mjs +0 -2
- package/dist/chunks/es-BhUjc8mO.mjs.map +0 -1
- package/dist/chunks/es-Bm7hoJSI.mjs +0 -2
- package/dist/chunks/es-Bm7hoJSI.mjs.map +0 -1
- package/dist/chunks/es-C0E-lFIC.mjs +0 -2
- package/dist/chunks/es-C0E-lFIC.mjs.map +0 -1
- package/dist/chunks/es-C2wBBQ7N.mjs +0 -2
- package/dist/chunks/es-C2wBBQ7N.mjs.map +0 -1
- package/dist/chunks/es-C9vhYpfP.mjs +0 -2
- package/dist/chunks/es-C9vhYpfP.mjs.map +0 -1
- package/dist/chunks/es-Cgslt0Hp.mjs +0 -2
- package/dist/chunks/es-Cgslt0Hp.mjs.map +0 -1
- package/dist/chunks/es-CksXDFxg.mjs +0 -2
- package/dist/chunks/es-CksXDFxg.mjs.map +0 -1
- package/dist/chunks/es-CnQUZlfY.mjs +0 -2
- package/dist/chunks/es-CnQUZlfY.mjs.map +0 -1
- package/dist/chunks/es-CrRNOn2Q.mjs +0 -2
- package/dist/chunks/es-CrRNOn2Q.mjs.map +0 -1
- package/dist/chunks/es-D0427MIH.mjs +0 -2
- package/dist/chunks/es-D0427MIH.mjs.map +0 -1
- package/dist/chunks/es-D19xfXus.mjs +0 -2
- package/dist/chunks/es-D19xfXus.mjs.map +0 -1
- package/dist/chunks/es-Dk6lCcOt.mjs +0 -2
- package/dist/chunks/es-Dk6lCcOt.mjs.map +0 -1
- package/dist/chunks/es-Dls_xPCW.mjs +0 -2
- package/dist/chunks/es-Dls_xPCW.mjs.map +0 -1
- package/dist/chunks/es-DrcsyDvI.mjs +0 -2
- package/dist/chunks/es-DrcsyDvI.mjs.map +0 -1
- package/dist/chunks/es-DwKejbO9.mjs +0 -2
- package/dist/chunks/es-DwKejbO9.mjs.map +0 -1
- package/dist/chunks/es-NcrWuNe1.mjs +0 -2
- package/dist/chunks/es-NcrWuNe1.mjs.map +0 -1
- package/dist/chunks/es-RaZerssd.mjs +0 -2
- package/dist/chunks/es-RaZerssd.mjs.map +0 -1
- package/dist/chunks/es-TIjHCFNF.mjs +0 -2
- package/dist/chunks/es-TIjHCFNF.mjs.map +0 -1
- package/dist/chunks/es-eZcDkBb-.mjs +0 -2
- package/dist/chunks/es-eZcDkBb-.mjs.map +0 -1
- package/dist/chunks/es-j_-KW9-4.mjs +0 -2
- package/dist/chunks/es-j_-KW9-4.mjs.map +0 -1
- package/dist/chunks/es-kGLwn8EB.mjs +0 -2
- package/dist/chunks/es-kGLwn8EB.mjs.map +0 -1
- package/dist/chunks/es-qQRDC0Ge.mjs +0 -2
- package/dist/chunks/es-qQRDC0Ge.mjs.map +0 -1
- package/dist/chunks/fonts-ZXAIMT3b.mjs +0 -2
- package/dist/chunks/fonts-ZXAIMT3b.mjs.map +0 -1
- package/dist/chunks/fr-B27zAq0X.mjs +0 -2
- package/dist/chunks/fr-B27zAq0X.mjs.map +0 -1
- package/dist/chunks/fr-BEd3ZHO4.mjs +0 -2
- package/dist/chunks/fr-BEd3ZHO4.mjs.map +0 -1
- package/dist/chunks/fr-BHXLpdaH.mjs +0 -2
- package/dist/chunks/fr-BHXLpdaH.mjs.map +0 -1
- package/dist/chunks/fr-BKu4eU3V.mjs +0 -2
- package/dist/chunks/fr-BKu4eU3V.mjs.map +0 -1
- package/dist/chunks/fr-BUrUZ5UQ.mjs +0 -2
- package/dist/chunks/fr-BUrUZ5UQ.mjs.map +0 -1
- package/dist/chunks/fr-BlqlUQ3b.mjs +0 -2
- package/dist/chunks/fr-BlqlUQ3b.mjs.map +0 -1
- package/dist/chunks/fr-BruEqDw1.mjs +0 -2
- package/dist/chunks/fr-BruEqDw1.mjs.map +0 -1
- package/dist/chunks/fr-BwuuFBkA.mjs +0 -2
- package/dist/chunks/fr-BwuuFBkA.mjs.map +0 -1
- package/dist/chunks/fr-C2lLh5Ti.mjs +0 -2
- package/dist/chunks/fr-C2lLh5Ti.mjs.map +0 -1
- package/dist/chunks/fr-C7N2_AlK.mjs +0 -2
- package/dist/chunks/fr-C7N2_AlK.mjs.map +0 -1
- package/dist/chunks/fr-COfd6sLW.mjs +0 -2
- package/dist/chunks/fr-COfd6sLW.mjs.map +0 -1
- package/dist/chunks/fr-COx4cSxc.mjs +0 -2
- package/dist/chunks/fr-COx4cSxc.mjs.map +0 -1
- package/dist/chunks/fr-CX37XjPO.mjs +0 -2
- package/dist/chunks/fr-CX37XjPO.mjs.map +0 -1
- package/dist/chunks/fr-CYn6fMiH.mjs +0 -2
- package/dist/chunks/fr-CYn6fMiH.mjs.map +0 -1
- package/dist/chunks/fr-CbsiyDEa.mjs +0 -2
- package/dist/chunks/fr-CbsiyDEa.mjs.map +0 -1
- package/dist/chunks/fr-CcZiELJY.mjs +0 -2
- package/dist/chunks/fr-CcZiELJY.mjs.map +0 -1
- package/dist/chunks/fr-CeHzUPVT.mjs +0 -2
- package/dist/chunks/fr-CeHzUPVT.mjs.map +0 -1
- package/dist/chunks/fr-Cv73J4QZ.mjs +0 -2
- package/dist/chunks/fr-Cv73J4QZ.mjs.map +0 -1
- package/dist/chunks/fr-DDLuorz7.mjs +0 -2
- package/dist/chunks/fr-DDLuorz7.mjs.map +0 -1
- package/dist/chunks/fr-DMA4CAyo.mjs +0 -2
- package/dist/chunks/fr-DMA4CAyo.mjs.map +0 -1
- package/dist/chunks/fr-DNJuGtO1.mjs +0 -2
- package/dist/chunks/fr-DNJuGtO1.mjs.map +0 -1
- package/dist/chunks/fr-DQOE8O6_.mjs +0 -2
- package/dist/chunks/fr-DQOE8O6_.mjs.map +0 -1
- package/dist/chunks/fr-DXjOwGew.mjs +0 -2
- package/dist/chunks/fr-DXjOwGew.mjs.map +0 -1
- package/dist/chunks/fr-DilrEvE_.mjs +0 -2
- package/dist/chunks/fr-DilrEvE_.mjs.map +0 -1
- package/dist/chunks/fr-P7iY3ntE.mjs +0 -2
- package/dist/chunks/fr-P7iY3ntE.mjs.map +0 -1
- package/dist/chunks/fr-ViUNGo_J.mjs +0 -2
- package/dist/chunks/fr-ViUNGo_J.mjs.map +0 -1
- package/dist/chunks/fr-gdIyLcGC.mjs +0 -2
- package/dist/chunks/fr-gdIyLcGC.mjs.map +0 -1
- package/dist/chunks/full-h88Sb2MR.mjs +0 -2
- package/dist/chunks/full-h88Sb2MR.mjs.map +0 -1
- package/dist/chunks/hi-BC82Jxjl.mjs +0 -2
- package/dist/chunks/hi-BC82Jxjl.mjs.map +0 -1
- package/dist/chunks/hi-BCTarnem.mjs +0 -2
- package/dist/chunks/hi-BCTarnem.mjs.map +0 -1
- package/dist/chunks/hi-BMStjhJF.mjs +0 -2
- package/dist/chunks/hi-BMStjhJF.mjs.map +0 -1
- package/dist/chunks/hi-BQ2Fyx7t.mjs +0 -2
- package/dist/chunks/hi-BQ2Fyx7t.mjs.map +0 -1
- package/dist/chunks/hi-Bg4-z2Os.mjs +0 -2
- package/dist/chunks/hi-Bg4-z2Os.mjs.map +0 -1
- package/dist/chunks/hi-BgqI_gOH.mjs +0 -2
- package/dist/chunks/hi-BgqI_gOH.mjs.map +0 -1
- package/dist/chunks/hi-CEPSeUBX.mjs +0 -2
- package/dist/chunks/hi-CEPSeUBX.mjs.map +0 -1
- package/dist/chunks/hi-CRaZj5Uo.mjs +0 -2
- package/dist/chunks/hi-CRaZj5Uo.mjs.map +0 -1
- package/dist/chunks/hi-CT0uK1Me.mjs +0 -2
- package/dist/chunks/hi-CT0uK1Me.mjs.map +0 -1
- package/dist/chunks/hi-CnIpMd8L.mjs +0 -2
- package/dist/chunks/hi-CnIpMd8L.mjs.map +0 -1
- package/dist/chunks/hi-CnSv0JhL.mjs +0 -2
- package/dist/chunks/hi-CnSv0JhL.mjs.map +0 -1
- package/dist/chunks/hi-DLLBZu67.mjs +0 -2
- package/dist/chunks/hi-DLLBZu67.mjs.map +0 -1
- package/dist/chunks/hi-DMg_aiSR.mjs +0 -2
- package/dist/chunks/hi-DMg_aiSR.mjs.map +0 -1
- package/dist/chunks/hi-DWwLzOX5.mjs +0 -2
- package/dist/chunks/hi-DWwLzOX5.mjs.map +0 -1
- package/dist/chunks/hi-D_4Xi4Nv.mjs +0 -2
- package/dist/chunks/hi-D_4Xi4Nv.mjs.map +0 -1
- package/dist/chunks/hi-D_Jtykmj.mjs +0 -2
- package/dist/chunks/hi-D_Jtykmj.mjs.map +0 -1
- package/dist/chunks/hi-Da5pRz8E.mjs +0 -2
- package/dist/chunks/hi-Da5pRz8E.mjs.map +0 -1
- package/dist/chunks/hi-DqL20WmM.mjs +0 -2
- package/dist/chunks/hi-DqL20WmM.mjs.map +0 -1
- package/dist/chunks/hi-DwQopxRg.mjs +0 -2
- package/dist/chunks/hi-DwQopxRg.mjs.map +0 -1
- package/dist/chunks/hi-IuMohSSw.mjs +0 -2
- package/dist/chunks/hi-IuMohSSw.mjs.map +0 -1
- package/dist/chunks/hi-PUX7dDPm.mjs +0 -2
- package/dist/chunks/hi-PUX7dDPm.mjs.map +0 -1
- package/dist/chunks/hi-RmfZAmwT.mjs +0 -2
- package/dist/chunks/hi-RmfZAmwT.mjs.map +0 -1
- package/dist/chunks/hi-UIBrTEVu.mjs +0 -2
- package/dist/chunks/hi-UIBrTEVu.mjs.map +0 -1
- package/dist/chunks/hi-_SjWnfeh.mjs +0 -2
- package/dist/chunks/hi-_SjWnfeh.mjs.map +0 -1
- package/dist/chunks/hi-dV2GZgH_.mjs +0 -2
- package/dist/chunks/hi-dV2GZgH_.mjs.map +0 -1
- package/dist/chunks/hi-ehh5oKz3.mjs +0 -2
- package/dist/chunks/hi-ehh5oKz3.mjs.map +0 -1
- package/dist/chunks/hi-yXnRBFJK.mjs +0 -2
- package/dist/chunks/hi-yXnRBFJK.mjs.map +0 -1
- package/dist/chunks/minimal-a40NeBQ_.mjs +0 -2
- package/dist/chunks/minimal-a40NeBQ_.mjs.map +0 -1
- package/dist/chunks/pt-2a8Oto6x.mjs +0 -2
- package/dist/chunks/pt-2a8Oto6x.mjs.map +0 -1
- package/dist/chunks/pt-ALzIyTiI.mjs +0 -2
- package/dist/chunks/pt-ALzIyTiI.mjs.map +0 -1
- package/dist/chunks/pt-B2hMlTc6.mjs +0 -2
- package/dist/chunks/pt-B2hMlTc6.mjs.map +0 -1
- package/dist/chunks/pt-BCIkSb0w.mjs +0 -2
- package/dist/chunks/pt-BCIkSb0w.mjs.map +0 -1
- package/dist/chunks/pt-BFotmq5x.mjs +0 -2
- package/dist/chunks/pt-BFotmq5x.mjs.map +0 -1
- package/dist/chunks/pt-BM7OScX6.mjs +0 -2
- package/dist/chunks/pt-BM7OScX6.mjs.map +0 -1
- package/dist/chunks/pt-BM7zXWxW.mjs +0 -2
- package/dist/chunks/pt-BM7zXWxW.mjs.map +0 -1
- package/dist/chunks/pt-BchCuzFq.mjs +0 -2
- package/dist/chunks/pt-BchCuzFq.mjs.map +0 -1
- package/dist/chunks/pt-BmcHFWoR.mjs +0 -2
- package/dist/chunks/pt-BmcHFWoR.mjs.map +0 -1
- package/dist/chunks/pt-C53W99RV.mjs +0 -2
- package/dist/chunks/pt-C53W99RV.mjs.map +0 -1
- package/dist/chunks/pt-CORQy8qv.mjs +0 -2
- package/dist/chunks/pt-CORQy8qv.mjs.map +0 -1
- package/dist/chunks/pt-CUPKr943.mjs +0 -2
- package/dist/chunks/pt-CUPKr943.mjs.map +0 -1
- package/dist/chunks/pt-CYkKDsLa.mjs +0 -2
- package/dist/chunks/pt-CYkKDsLa.mjs.map +0 -1
- package/dist/chunks/pt-Cd_SXHKt.mjs +0 -2
- package/dist/chunks/pt-Cd_SXHKt.mjs.map +0 -1
- package/dist/chunks/pt-CjN3Oq-6.mjs +0 -2
- package/dist/chunks/pt-CjN3Oq-6.mjs.map +0 -1
- package/dist/chunks/pt-CrKrgktr.mjs +0 -2
- package/dist/chunks/pt-CrKrgktr.mjs.map +0 -1
- package/dist/chunks/pt-Crmbkj0e.mjs +0 -2
- package/dist/chunks/pt-Crmbkj0e.mjs.map +0 -1
- package/dist/chunks/pt-D19IWOM_.mjs +0 -2
- package/dist/chunks/pt-D19IWOM_.mjs.map +0 -1
- package/dist/chunks/pt-D6zY7l2E.mjs +0 -2
- package/dist/chunks/pt-D6zY7l2E.mjs.map +0 -1
- package/dist/chunks/pt-DA5hufLZ.mjs +0 -2
- package/dist/chunks/pt-DA5hufLZ.mjs.map +0 -1
- package/dist/chunks/pt-DEfBqu-c.mjs +0 -2
- package/dist/chunks/pt-DEfBqu-c.mjs.map +0 -1
- package/dist/chunks/pt-DG3rw6nK.mjs +0 -2
- package/dist/chunks/pt-DG3rw6nK.mjs.map +0 -1
- package/dist/chunks/pt-DRoAHNZi.mjs +0 -2
- package/dist/chunks/pt-DRoAHNZi.mjs.map +0 -1
- package/dist/chunks/pt-Eml9QiUL.mjs +0 -2
- package/dist/chunks/pt-Eml9QiUL.mjs.map +0 -1
- package/dist/chunks/pt-Haa3wVmA.mjs +0 -2
- package/dist/chunks/pt-Haa3wVmA.mjs.map +0 -1
- package/dist/chunks/pt-aj7zOxTg.mjs +0 -2
- package/dist/chunks/pt-aj7zOxTg.mjs.map +0 -1
- package/dist/chunks/pt-l6dTmkQk.mjs +0 -2
- package/dist/chunks/pt-l6dTmkQk.mjs.map +0 -1
- package/dist/chunks/ru--JPEpdcJ.mjs +0 -2
- package/dist/chunks/ru--JPEpdcJ.mjs.map +0 -1
- package/dist/chunks/ru-B76ORyqe.mjs +0 -2
- package/dist/chunks/ru-B76ORyqe.mjs.map +0 -1
- package/dist/chunks/ru-BDQ62WuE.mjs +0 -2
- package/dist/chunks/ru-BDQ62WuE.mjs.map +0 -1
- package/dist/chunks/ru-BQ6W3lwr.mjs +0 -2
- package/dist/chunks/ru-BQ6W3lwr.mjs.map +0 -1
- package/dist/chunks/ru-BQpaitci.mjs +0 -2
- package/dist/chunks/ru-BQpaitci.mjs.map +0 -1
- package/dist/chunks/ru-Bm9VwJLu.mjs +0 -2
- package/dist/chunks/ru-Bm9VwJLu.mjs.map +0 -1
- package/dist/chunks/ru-BnNdik6i.mjs +0 -2
- package/dist/chunks/ru-BnNdik6i.mjs.map +0 -1
- package/dist/chunks/ru-Bo4am8cd.mjs +0 -2
- package/dist/chunks/ru-Bo4am8cd.mjs.map +0 -1
- package/dist/chunks/ru-C1k56xWQ.mjs +0 -2
- package/dist/chunks/ru-C1k56xWQ.mjs.map +0 -1
- package/dist/chunks/ru-C4rnSQlI.mjs +0 -2
- package/dist/chunks/ru-C4rnSQlI.mjs.map +0 -1
- package/dist/chunks/ru-CKM3t1sv.mjs +0 -2
- package/dist/chunks/ru-CKM3t1sv.mjs.map +0 -1
- package/dist/chunks/ru-CO6eCsxU.mjs +0 -2
- package/dist/chunks/ru-CO6eCsxU.mjs.map +0 -1
- package/dist/chunks/ru-CTaYpQ9_.mjs +0 -2
- package/dist/chunks/ru-CTaYpQ9_.mjs.map +0 -1
- package/dist/chunks/ru-CdY8d80t.mjs +0 -2
- package/dist/chunks/ru-CdY8d80t.mjs.map +0 -1
- package/dist/chunks/ru-CsDtaWRd.mjs +0 -2
- package/dist/chunks/ru-CsDtaWRd.mjs.map +0 -1
- package/dist/chunks/ru-Cy_4nn8h.mjs +0 -2
- package/dist/chunks/ru-Cy_4nn8h.mjs.map +0 -1
- package/dist/chunks/ru-DACtjNuJ.mjs +0 -2
- package/dist/chunks/ru-DACtjNuJ.mjs.map +0 -1
- package/dist/chunks/ru-DN6yN_w9.mjs +0 -2
- package/dist/chunks/ru-DN6yN_w9.mjs.map +0 -1
- package/dist/chunks/ru-DThFtd76.mjs +0 -2
- package/dist/chunks/ru-DThFtd76.mjs.map +0 -1
- package/dist/chunks/ru-Dd_P7hP7.mjs +0 -2
- package/dist/chunks/ru-Dd_P7hP7.mjs.map +0 -1
- package/dist/chunks/ru-Dhuxwzwy.mjs +0 -2
- package/dist/chunks/ru-Dhuxwzwy.mjs.map +0 -1
- package/dist/chunks/ru-Dn6UDGIG.mjs +0 -2
- package/dist/chunks/ru-Dn6UDGIG.mjs.map +0 -1
- package/dist/chunks/ru-DojHc5wu.mjs +0 -2
- package/dist/chunks/ru-DojHc5wu.mjs.map +0 -1
- package/dist/chunks/ru-DyWzWBjV.mjs +0 -2
- package/dist/chunks/ru-DyWzWBjV.mjs.map +0 -1
- package/dist/chunks/ru-NBxCkjlP.mjs +0 -2
- package/dist/chunks/ru-NBxCkjlP.mjs.map +0 -1
- package/dist/chunks/ru-_MQaVHam.mjs +0 -2
- package/dist/chunks/ru-_MQaVHam.mjs.map +0 -1
- package/dist/chunks/ru-wv17PPrd.mjs +0 -2
- package/dist/chunks/ru-wv17PPrd.mjs.map +0 -1
- package/dist/chunks/src-ooaZ_Egu.mjs +0 -2
- package/dist/chunks/src-ooaZ_Egu.mjs.map +0 -1
- package/dist/chunks/zh-2-Y3Limy.mjs +0 -2
- package/dist/chunks/zh-2-Y3Limy.mjs.map +0 -1
- package/dist/chunks/zh-B02VPMqX.mjs +0 -2
- package/dist/chunks/zh-B02VPMqX.mjs.map +0 -1
- package/dist/chunks/zh-BYjLBWWN.mjs +0 -2
- package/dist/chunks/zh-BYjLBWWN.mjs.map +0 -1
- package/dist/chunks/zh-Bt2ZdHcS.mjs +0 -2
- package/dist/chunks/zh-Bt2ZdHcS.mjs.map +0 -1
- package/dist/chunks/zh-BuN_C4o-.mjs +0 -2
- package/dist/chunks/zh-BuN_C4o-.mjs.map +0 -1
- package/dist/chunks/zh-CA3BDj0Y.mjs +0 -2
- package/dist/chunks/zh-CA3BDj0Y.mjs.map +0 -1
- package/dist/chunks/zh-CHuGP7RS.mjs +0 -2
- package/dist/chunks/zh-CHuGP7RS.mjs.map +0 -1
- package/dist/chunks/zh-CIPsF5P8.mjs +0 -2
- package/dist/chunks/zh-CIPsF5P8.mjs.map +0 -1
- package/dist/chunks/zh-C_YS18re.mjs +0 -2
- package/dist/chunks/zh-C_YS18re.mjs.map +0 -1
- package/dist/chunks/zh-CfMPFWUg.mjs +0 -2
- package/dist/chunks/zh-CfMPFWUg.mjs.map +0 -1
- package/dist/chunks/zh-CfjCcBIB.mjs +0 -2
- package/dist/chunks/zh-CfjCcBIB.mjs.map +0 -1
- package/dist/chunks/zh-CqQph809.mjs +0 -2
- package/dist/chunks/zh-CqQph809.mjs.map +0 -1
- package/dist/chunks/zh-Cxe42GC5.mjs +0 -2
- package/dist/chunks/zh-Cxe42GC5.mjs.map +0 -1
- package/dist/chunks/zh-CyMU2cTf.mjs +0 -2
- package/dist/chunks/zh-CyMU2cTf.mjs.map +0 -1
- package/dist/chunks/zh-Cynz1sBa.mjs +0 -2
- package/dist/chunks/zh-Cynz1sBa.mjs.map +0 -1
- package/dist/chunks/zh-DRKs6Q0a.mjs +0 -2
- package/dist/chunks/zh-DRKs6Q0a.mjs.map +0 -1
- package/dist/chunks/zh-DTuIJjx6.mjs +0 -2
- package/dist/chunks/zh-DTuIJjx6.mjs.map +0 -1
- package/dist/chunks/zh-DTz9l6mp.mjs +0 -2
- package/dist/chunks/zh-DTz9l6mp.mjs.map +0 -1
- package/dist/chunks/zh-DZwjiJmn.mjs +0 -2
- package/dist/chunks/zh-DZwjiJmn.mjs.map +0 -1
- package/dist/chunks/zh-D_VJDQl4.mjs +0 -2
- package/dist/chunks/zh-D_VJDQl4.mjs.map +0 -1
- package/dist/chunks/zh-Dt20Om7Z.mjs +0 -2
- package/dist/chunks/zh-Dt20Om7Z.mjs.map +0 -1
- package/dist/chunks/zh-SgsZ9f-W.mjs +0 -2
- package/dist/chunks/zh-SgsZ9f-W.mjs.map +0 -1
- package/dist/chunks/zh-XR7Ls7m-.mjs +0 -2
- package/dist/chunks/zh-XR7Ls7m-.mjs.map +0 -1
- package/dist/chunks/zh-aXPI9lKF.mjs +0 -2
- package/dist/chunks/zh-aXPI9lKF.mjs.map +0 -1
- package/dist/chunks/zh-cLXIKkZQ.mjs +0 -2
- package/dist/chunks/zh-cLXIKkZQ.mjs.map +0 -1
- package/dist/chunks/zh-cZUtN871.mjs +0 -2
- package/dist/chunks/zh-cZUtN871.mjs.map +0 -1
- package/dist/chunks/zh-hcdnCGUp.mjs +0 -2
- package/dist/chunks/zh-hcdnCGUp.mjs.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ru-DN6yN_w9.mjs","names":[],"sources":["../../src/plugins/super-sub/locales/ru.ts"],"sourcesContent":["import type { SuperSubLocale } from '../SuperSubLocale.js';\n\nconst locale: SuperSubLocale = {\n\tsuperscriptLabel: '\\u041d\\u0430\\u0434\\u0441\\u0442\\u0440\\u043e\\u0447\\u043d\\u044b\\u0439',\n\tsuperscriptTooltip: (shortcut: string) =>\n\t\t`\\u041d\\u0430\\u0434\\u0441\\u0442\\u0440\\u043e\\u0447\\u043d\\u044b\\u0439 (${shortcut})`,\n\tsubscriptLabel: '\\u041f\\u043e\\u0434\\u0441\\u0442\\u0440\\u043e\\u0447\\u043d\\u044b\\u0439',\n\tsubscriptTooltip: (shortcut: string) =>\n\t\t`\\u041f\\u043e\\u0434\\u0441\\u0442\\u0440\\u043e\\u0447\\u043d\\u044b\\u0439 (${shortcut})`,\n};\n\nexport default locale;\n"],"mappings":"AAEA,IAAM,EAAyB,CAC9B,iBAAkB,cAClB,mBAAqB,GACpB,gBAAuE,KACxE,eAAgB,cAChB,iBAAmB,GAClB,gBAAuE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ru-DThFtd76.mjs","names":[],"sources":["../../src/plugins/list/locales/ru.ts"],"sourcesContent":["import type { ListLocale } from '../ListLocale.js';\n\nconst locale: ListLocale = {\n\tbulletList: 'Маркированный список',\n\tnumberedList: 'Нумерованный список',\n\tchecklist: 'Чек-лист',\n};\n\nexport default locale;\n"],"mappings":"AAEA,IAAM,EAAqB,CAC1B,WAAY,uBACZ,aAAc,sBACd,UAAW"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ru-Dd_P7hP7.mjs","names":[],"sources":["../../src/plugins/horizontal-rule/locales/ru.ts"],"sourcesContent":["import type { HorizontalRuleLocale } from '../HorizontalRuleLocale.js';\n\nconst locale: HorizontalRuleLocale = {\n\tlabel: 'Горизонтальная линия',\n\ttooltip: (shortcut: string) => `Горизонтальная линия (${shortcut})`,\n};\n\nexport default locale;\n"],"mappings":"AAEA,IAAM,EAA+B,CACpC,MAAO,uBACP,QAAU,GAAqB,yBAAyB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ru-Dhuxwzwy.mjs","names":[],"sources":["../../src/plugins/font/locales/ru.ts"],"sourcesContent":["import type { FontLocale } from '../FontLocale.js';\n\nconst locale: FontLocale = {\n\tlabel: 'Шрифт',\n\ttooltip: 'Семейство шрифтов',\n};\n\nexport default locale;\n"],"mappings":"AAEA,IAAM,EAAqB,CAC1B,MAAO,QACP,QAAS"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var e={insertRowAbove:"Вставить строку сверху",insertRowBelow:"Вставить строку снизу",insertColumnLeft:"Вставить столбец слева",insertColumnRight:"Вставить столбец справа",deleteRow:"Удалить строку",deleteColumn:"Удалить столбец",borderColorLabel:"Цвет границы…",deleteTable:"Удалить таблицу",tableActions:"Действия с таблицей",menuKeyboardHint:"↑↓ Навигация · Enter Выбрать · Esc Закрыть",insertRow:"Вставить строку",insertColumn:"Вставить столбец",addRow:"Добавить строку",addColumn:"Добавить столбец",tableActionsHint:"Действия с таблицей (ПКМ или Shift+F10)",contextMenuHint:"ПКМ или Shift+F10 для действий с таблицей",borderColor:"Цвет границы",defaultColor:"По умолчанию",noBorders:"Без границ",borderColorPicker:"Выбор цвета границы",announceBorderColorSet:e=>`Цвет границы таблицы установлен на ${e}`,announceBorderReset:"Границы таблицы сброшены по умолчанию",borderSwatchLabel:e=>`Граница ${e}`,announceRowInsertedAbove:"Строка вставлена сверху",announceRowInsertedBelow:"Строка вставлена снизу",announceColumnInserted:e=>`Столбец вставлен ${e}`,announceRowDeleted:"Строка удалена",announceColumnDeleted:"Столбец удален",announceTableDeleted:"Таблица удалена",insertTable:"Вставить таблицу",tableAriaLabel:(e,n)=>`Таблица: ${e} строк, ${n} столбцов`,tableAriaDescription:"ПКМ или Shift+F10 для действий с таблицей"};export{e as default};
|
|
2
|
-
//# sourceMappingURL=ru-Dn6UDGIG.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ru-Dn6UDGIG.mjs","names":[],"sources":["../../src/plugins/table/locales/ru.ts"],"sourcesContent":["import type { TableLocale } from '../TableLocale.js';\n\nconst locale: TableLocale = {\n\tinsertRowAbove:\n\t\t'\\u0412\\u0441\\u0442\\u0430\\u0432\\u0438\\u0442\\u044c \\u0441\\u0442\\u0440\\u043e\\u043a\\u0443 \\u0441\\u0432\\u0435\\u0440\\u0445\\u0443',\n\tinsertRowBelow:\n\t\t'\\u0412\\u0441\\u0442\\u0430\\u0432\\u0438\\u0442\\u044c \\u0441\\u0442\\u0440\\u043e\\u043a\\u0443 \\u0441\\u043d\\u0438\\u0437\\u0443',\n\tinsertColumnLeft:\n\t\t'\\u0412\\u0441\\u0442\\u0430\\u0432\\u0438\\u0442\\u044c \\u0441\\u0442\\u043e\\u043b\\u0431\\u0435\\u0446 \\u0441\\u043b\\u0435\\u0432\\u0430',\n\tinsertColumnRight:\n\t\t'\\u0412\\u0441\\u0442\\u0430\\u0432\\u0438\\u0442\\u044c \\u0441\\u0442\\u043e\\u043b\\u0431\\u0435\\u0446 \\u0441\\u043f\\u0440\\u0430\\u0432\\u0430',\n\tdeleteRow: '\\u0423\\u0434\\u0430\\u043b\\u0438\\u0442\\u044c \\u0441\\u0442\\u0440\\u043e\\u043a\\u0443',\n\tdeleteColumn:\n\t\t'\\u0423\\u0434\\u0430\\u043b\\u0438\\u0442\\u044c \\u0441\\u0442\\u043e\\u043b\\u0431\\u0435\\u0446',\n\tborderColorLabel: '\\u0426\\u0432\\u0435\\u0442 \\u0433\\u0440\\u0430\\u043d\\u0438\\u0446\\u044b\\u2026',\n\tdeleteTable:\n\t\t'\\u0423\\u0434\\u0430\\u043b\\u0438\\u0442\\u044c \\u0442\\u0430\\u0431\\u043b\\u0438\\u0446\\u0443',\n\n\ttableActions:\n\t\t'\\u0414\\u0435\\u0439\\u0441\\u0442\\u0432\\u0438\\u044f \\u0441 \\u0442\\u0430\\u0431\\u043b\\u0438\\u0446\\u0435\\u0439',\n\tmenuKeyboardHint:\n\t\t'\\u2191\\u2193 \\u041d\\u0430\\u0432\\u0438\\u0433\\u0430\\u0446\\u0438\\u044f \\u00b7 Enter \\u0412\\u044b\\u0431\\u0440\\u0430\\u0442\\u044c \\u00b7 Esc \\u0417\\u0430\\u043a\\u0440\\u044b\\u0442\\u044c',\n\n\tinsertRow:\n\t\t'\\u0412\\u0441\\u0442\\u0430\\u0432\\u0438\\u0442\\u044c \\u0441\\u0442\\u0440\\u043e\\u043a\\u0443',\n\tinsertColumn:\n\t\t'\\u0412\\u0441\\u0442\\u0430\\u0432\\u0438\\u0442\\u044c \\u0441\\u0442\\u043e\\u043b\\u0431\\u0435\\u0446',\n\taddRow: '\\u0414\\u043e\\u0431\\u0430\\u0432\\u0438\\u0442\\u044c \\u0441\\u0442\\u0440\\u043e\\u043a\\u0443',\n\taddColumn:\n\t\t'\\u0414\\u043e\\u0431\\u0430\\u0432\\u0438\\u0442\\u044c \\u0441\\u0442\\u043e\\u043b\\u0431\\u0435\\u0446',\n\ttableActionsHint:\n\t\t'\\u0414\\u0435\\u0439\\u0441\\u0442\\u0432\\u0438\\u044f \\u0441 \\u0442\\u0430\\u0431\\u043b\\u0438\\u0446\\u0435\\u0439 (\\u041f\\u041a\\u041c \\u0438\\u043b\\u0438 Shift+F10)',\n\tcontextMenuHint:\n\t\t'\\u041f\\u041a\\u041c \\u0438\\u043b\\u0438 Shift+F10 \\u0434\\u043b\\u044f \\u0434\\u0435\\u0439\\u0441\\u0442\\u0432\\u0438\\u0439 \\u0441 \\u0442\\u0430\\u0431\\u043b\\u0438\\u0446\\u0435\\u0439',\n\tborderColor: '\\u0426\\u0432\\u0435\\u0442 \\u0433\\u0440\\u0430\\u043d\\u0438\\u0446\\u044b',\n\n\tdefaultColor: '\\u041f\\u043e \\u0443\\u043c\\u043e\\u043b\\u0447\\u0430\\u043d\\u0438\\u044e',\n\tnoBorders: '\\u0411\\u0435\\u0437 \\u0433\\u0440\\u0430\\u043d\\u0438\\u0446',\n\tborderColorPicker:\n\t\t'\\u0412\\u044b\\u0431\\u043e\\u0440 \\u0446\\u0432\\u0435\\u0442\\u0430 \\u0433\\u0440\\u0430\\u043d\\u0438\\u0446\\u044b',\n\tannounceBorderColorSet: (colorName: string) =>\n\t\t`\\u0426\\u0432\\u0435\\u0442 \\u0433\\u0440\\u0430\\u043d\\u0438\\u0446\\u044b \\u0442\\u0430\\u0431\\u043b\\u0438\\u0446\\u044b \\u0443\\u0441\\u0442\\u0430\\u043d\\u043e\\u0432\\u043b\\u0435\\u043d \\u043d\\u0430 ${colorName}`,\n\tannounceBorderReset:\n\t\t'\\u0413\\u0440\\u0430\\u043d\\u0438\\u0446\\u044b \\u0442\\u0430\\u0431\\u043b\\u0438\\u0446\\u044b \\u0441\\u0431\\u0440\\u043e\\u0448\\u0435\\u043d\\u044b \\u043f\\u043e \\u0443\\u043c\\u043e\\u043b\\u0447\\u0430\\u043d\\u0438\\u044e',\n\tborderSwatchLabel: (colorName: string) =>\n\t\t`\\u0413\\u0440\\u0430\\u043d\\u0438\\u0446\\u0430 ${colorName}`,\n\n\tannounceRowInsertedAbove:\n\t\t'\\u0421\\u0442\\u0440\\u043e\\u043a\\u0430 \\u0432\\u0441\\u0442\\u0430\\u0432\\u043b\\u0435\\u043d\\u0430 \\u0441\\u0432\\u0435\\u0440\\u0445\\u0443',\n\tannounceRowInsertedBelow:\n\t\t'\\u0421\\u0442\\u0440\\u043e\\u043a\\u0430 \\u0432\\u0441\\u0442\\u0430\\u0432\\u043b\\u0435\\u043d\\u0430 \\u0441\\u043d\\u0438\\u0437\\u0443',\n\tannounceColumnInserted: (side: string) =>\n\t\t`\\u0421\\u0442\\u043e\\u043b\\u0431\\u0435\\u0446 \\u0432\\u0441\\u0442\\u0430\\u0432\\u043b\\u0435\\u043d ${side}`,\n\tannounceRowDeleted:\n\t\t'\\u0421\\u0442\\u0440\\u043e\\u043a\\u0430 \\u0443\\u0434\\u0430\\u043b\\u0435\\u043d\\u0430',\n\tannounceColumnDeleted:\n\t\t'\\u0421\\u0442\\u043e\\u043b\\u0431\\u0435\\u0446 \\u0443\\u0434\\u0430\\u043b\\u0435\\u043d',\n\tannounceTableDeleted:\n\t\t'\\u0422\\u0430\\u0431\\u043b\\u0438\\u0446\\u0430 \\u0443\\u0434\\u0430\\u043b\\u0435\\u043d\\u0430',\n\n\tinsertTable:\n\t\t'\\u0412\\u0441\\u0442\\u0430\\u0432\\u0438\\u0442\\u044c \\u0442\\u0430\\u0431\\u043b\\u0438\\u0446\\u0443',\n\n\ttableAriaLabel: (rows: number, cols: number) =>\n\t\t`\\u0422\\u0430\\u0431\\u043b\\u0438\\u0446\\u0430: ${rows} \\u0441\\u0442\\u0440\\u043e\\u043a, ${cols} \\u0441\\u0442\\u043e\\u043b\\u0431\\u0446\\u043e\\u0432`,\n\ttableAriaDescription:\n\t\t'\\u041f\\u041a\\u041c \\u0438\\u043b\\u0438 Shift+F10 \\u0434\\u043b\\u044f \\u0434\\u0435\\u0439\\u0441\\u0442\\u0432\\u0438\\u0439 \\u0441 \\u0442\\u0430\\u0431\\u043b\\u0438\\u0446\\u0435\\u0439',\n};\n\nexport default locale;\n"],"mappings":"AAEA,IAAM,EAAsB,CAC3B,eACC,yBACD,eACC,wBACD,iBACC,yBACD,kBACC,0BACD,UAAW,iBACX,aACC,kBACD,iBAAkB,gBAClB,YACC,kBAED,aACC,sBACD,iBACC,6CAED,UACC,kBACD,aACC,mBACD,OAAQ,kBACR,UACC,mBACD,iBACC,0CACD,gBACC,4CACD,YAAa,eAEb,aAAc,eACd,UAAW,aACX,kBACC,sBACD,uBAAyB,GACxB,sCAA4L,IAC7L,oBACC,wCACD,kBAAoB,GACnB,WAA8C,IAE/C,yBACC,0BACD,yBACC,yBACD,uBAAyB,GACxB,oBAA+F,IAChG,mBACC,iBACD,sBACC,iBACD,qBACC,kBAED,YACC,mBAED,eAAA,CAAiB,EAAc,IAC9B,YAA+C,YAAwC,aACxF,qBACC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ru-DojHc5wu.mjs","names":[],"sources":["../../src/plugins/strikethrough/locales/ru.ts"],"sourcesContent":["import type { StrikethroughLocale } from '../StrikethroughLocale.js';\n\nconst locale: StrikethroughLocale = {\n\tlabel: 'Зачёркнутый',\n\ttooltip: (shortcut: string) => `Зачёркнутый (${shortcut})`,\n};\n\nexport default locale;\n"],"mappings":"AAEA,IAAM,EAA8B,CACnC,MAAO,cACP,QAAU,GAAqB,gBAAgB"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var l={label:"Ссылка",tooltip:l=>`Вставить ссылку (${l})`,removeLink:"Удалить ссылку",removeLinkAria:"Удалить ссылку",urlPlaceholder:"https://...",urlAria:"URL ссылки",apply:"Применить",applyAria:"Применить ссылку",invalidUrl:"Разрешены только http(s), mailto, tel, якоря и относительные пути."};export{l as default};
|
|
2
|
-
//# sourceMappingURL=ru-DyWzWBjV.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ru-DyWzWBjV.mjs","names":[],"sources":["../../src/plugins/link/locales/ru.ts"],"sourcesContent":["import type { LinkLocale } from '../LinkLocale.js';\n\nconst locale: LinkLocale = {\n\tlabel: 'Ссылка',\n\ttooltip: (shortcut: string) => `Вставить ссылку (${shortcut})`,\n\tremoveLink: 'Удалить ссылку',\n\tremoveLinkAria: 'Удалить ссылку',\n\turlPlaceholder: 'https://...',\n\turlAria: 'URL ссылки',\n\tapply: 'Применить',\n\tapplyAria: 'Применить ссылку',\n\tinvalidUrl: 'Разрешены только http(s), mailto, tel, якоря и относительные пути.',\n};\n\nexport default locale;\n"],"mappings":"AAEA,IAAM,EAAqB,CAC1B,MAAO,SACP,QAAU,GAAqB,oBAAoB,KACnD,WAAY,iBACZ,eAAgB,iBAChB,eAAgB,cAChB,QAAS,aACT,MAAO,YACP,UAAW,mBACX,WAAY"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var e={insertImage:"Вставить изображение",insertImageTooltip:"Вставить изображение",uploadFromComputer:"Загрузить с компьютера",uploadAria:"Загрузить изображение с компьютера",separator:"или",urlPlaceholder:"https://...",urlAria:"URL изображения",insertButton:"Вставить",insertAria:"Вставить изображение",imageAria:(e,t,i)=>{const a=[e||"Изображение"];return void 0!==t&&void 0!==i&&a.push(`${t} на ${i} пикселей`),a.join(", ")},resetToNaturalSize:"Изображение сброшено до исходного размера.",uploadFailed:"Ошибка загрузки изображения.",uploading:"Загрузка...",resizeHandleLabel:e=>`Изменить размер ${{"top-left":"верхний левый","top-right":"верхний правый","bottom-left":"нижний левый","bottom-right":"нижний правый"}[e]??e}`,imageSelected:"Изображение выбрано.",altTextPrefix:"Альт. текст: ",imageSizeAnnounce:(e,t)=>`Размер: ${e} на ${t} пикселей.`,resizeHint:(e,t)=>`${e} / ${t} для изменения размера.`,imageResized:(e,t)=>`Размер изображения изменён на ${e} на ${t} пикселей.`,keyboardResizeHint:(e,t)=>`${e} / ${t} для изменения размера`};export{e as default};
|
|
2
|
-
//# sourceMappingURL=ru-NBxCkjlP.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ru-NBxCkjlP.mjs","names":[],"sources":["../../src/plugins/image/locales/ru.ts"],"sourcesContent":["import type { ImageLocale } from '../ImageLocale.js';\n\nconst locale: ImageLocale = {\n\tinsertImage:\n\t\t'\\u0412\\u0441\\u0442\\u0430\\u0432\\u0438\\u0442\\u044c \\u0438\\u0437\\u043e\\u0431\\u0440\\u0430\\u0436\\u0435\\u043d\\u0438\\u0435',\n\tinsertImageTooltip:\n\t\t'\\u0412\\u0441\\u0442\\u0430\\u0432\\u0438\\u0442\\u044c \\u0438\\u0437\\u043e\\u0431\\u0440\\u0430\\u0436\\u0435\\u043d\\u0438\\u0435',\n\tuploadFromComputer:\n\t\t'\\u0417\\u0430\\u0433\\u0440\\u0443\\u0437\\u0438\\u0442\\u044c \\u0441 \\u043a\\u043e\\u043c\\u043f\\u044c\\u044e\\u0442\\u0435\\u0440\\u0430',\n\tuploadAria:\n\t\t'\\u0417\\u0430\\u0433\\u0440\\u0443\\u0437\\u0438\\u0442\\u044c \\u0438\\u0437\\u043e\\u0431\\u0440\\u0430\\u0436\\u0435\\u043d\\u0438\\u0435 \\u0441 \\u043a\\u043e\\u043c\\u043f\\u044c\\u044e\\u0442\\u0435\\u0440\\u0430',\n\tseparator: '\\u0438\\u043b\\u0438',\n\turlPlaceholder: 'https://...',\n\turlAria: 'URL \\u0438\\u0437\\u043e\\u0431\\u0440\\u0430\\u0436\\u0435\\u043d\\u0438\\u044f',\n\tinsertButton: '\\u0412\\u0441\\u0442\\u0430\\u0432\\u0438\\u0442\\u044c',\n\tinsertAria:\n\t\t'\\u0412\\u0441\\u0442\\u0430\\u0432\\u0438\\u0442\\u044c \\u0438\\u0437\\u043e\\u0431\\u0440\\u0430\\u0436\\u0435\\u043d\\u0438\\u0435',\n\timageAria: (alt: string, width?: number, height?: number) => {\n\t\tconst parts: string[] = [\n\t\t\talt || '\\u0418\\u0437\\u043e\\u0431\\u0440\\u0430\\u0436\\u0435\\u043d\\u0438\\u0435',\n\t\t];\n\t\tif (width !== undefined && height !== undefined) {\n\t\t\tparts.push(\n\t\t\t\t`${width} \\u043d\\u0430 ${height} \\u043f\\u0438\\u043a\\u0441\\u0435\\u043b\\u0435\\u0439`,\n\t\t\t);\n\t\t}\n\t\treturn parts.join(', ');\n\t},\n\tresetToNaturalSize:\n\t\t'\\u0418\\u0437\\u043e\\u0431\\u0440\\u0430\\u0436\\u0435\\u043d\\u0438\\u0435 \\u0441\\u0431\\u0440\\u043e\\u0448\\u0435\\u043d\\u043e \\u0434\\u043e \\u0438\\u0441\\u0445\\u043e\\u0434\\u043d\\u043e\\u0433\\u043e \\u0440\\u0430\\u0437\\u043c\\u0435\\u0440\\u0430.',\n\tuploadFailed:\n\t\t'\\u041e\\u0448\\u0438\\u0431\\u043a\\u0430 \\u0437\\u0430\\u0433\\u0440\\u0443\\u0437\\u043a\\u0438 \\u0438\\u0437\\u043e\\u0431\\u0440\\u0430\\u0436\\u0435\\u043d\\u0438\\u044f.',\n\tuploading: '\\u0417\\u0430\\u0433\\u0440\\u0443\\u0437\\u043a\\u0430...',\n\tresizeHandleLabel: (position: string) => {\n\t\tconst positions: Record<string, string> = {\n\t\t\t'top-left': '\\u0432\\u0435\\u0440\\u0445\\u043d\\u0438\\u0439 \\u043b\\u0435\\u0432\\u044b\\u0439',\n\t\t\t'top-right':\n\t\t\t\t'\\u0432\\u0435\\u0440\\u0445\\u043d\\u0438\\u0439 \\u043f\\u0440\\u0430\\u0432\\u044b\\u0439',\n\t\t\t'bottom-left': '\\u043d\\u0438\\u0436\\u043d\\u0438\\u0439 \\u043b\\u0435\\u0432\\u044b\\u0439',\n\t\t\t'bottom-right': '\\u043d\\u0438\\u0436\\u043d\\u0438\\u0439 \\u043f\\u0440\\u0430\\u0432\\u044b\\u0439',\n\t\t};\n\t\treturn `\\u0418\\u0437\\u043c\\u0435\\u043d\\u0438\\u0442\\u044c \\u0440\\u0430\\u0437\\u043c\\u0435\\u0440 ${positions[position] ?? position}`;\n\t},\n\timageSelected:\n\t\t'\\u0418\\u0437\\u043e\\u0431\\u0440\\u0430\\u0436\\u0435\\u043d\\u0438\\u0435 \\u0432\\u044b\\u0431\\u0440\\u0430\\u043d\\u043e.',\n\taltTextPrefix: '\\u0410\\u043b\\u044c\\u0442. \\u0442\\u0435\\u043a\\u0441\\u0442: ',\n\timageSizeAnnounce: (w: number, h: number) =>\n\t\t`\\u0420\\u0430\\u0437\\u043c\\u0435\\u0440: ${w} \\u043d\\u0430 ${h} \\u043f\\u0438\\u043a\\u0441\\u0435\\u043b\\u0435\\u0439.`,\n\tresizeHint: (shrink: string, grow: string) =>\n\t\t`${shrink} / ${grow} \\u0434\\u043b\\u044f \\u0438\\u0437\\u043c\\u0435\\u043d\\u0435\\u043d\\u0438\\u044f \\u0440\\u0430\\u0437\\u043c\\u0435\\u0440\\u0430.`,\n\timageResized: (w: number, h: number) =>\n\t\t`\\u0420\\u0430\\u0437\\u043c\\u0435\\u0440 \\u0438\\u0437\\u043e\\u0431\\u0440\\u0430\\u0436\\u0435\\u043d\\u0438\\u044f \\u0438\\u0437\\u043c\\u0435\\u043d\\u0451\\u043d \\u043d\\u0430 ${w} \\u043d\\u0430 ${h} \\u043f\\u0438\\u043a\\u0441\\u0435\\u043b\\u0435\\u0439.`,\n\tkeyboardResizeHint: (shrink: string, grow: string) =>\n\t\t`${shrink} / ${grow} \\u0434\\u043b\\u044f \\u0438\\u0437\\u043c\\u0435\\u043d\\u0435\\u043d\\u0438\\u044f \\u0440\\u0430\\u0437\\u043c\\u0435\\u0440\\u0430`,\n};\n\nexport default locale;\n"],"mappings":"AAEA,IAAM,EAAsB,CAC3B,YACC,uBACD,mBACC,uBACD,mBACC,yBACD,WACC,qCACD,UAAW,MACX,eAAgB,cAChB,QAAS,kBACT,aAAc,WACd,WACC,uBACD,UAAA,CAAY,EAAa,EAAgB,KACxC,MAAM,EAAkB,CACvB,GAAO,eAOR,YALc,IAAV,QAAkC,IAAX,GAC1B,EAAM,KACL,GAAG,QAAsB,cAGpB,EAAM,KAAK,OAEnB,mBACC,6CACD,aACC,+BACD,UAAW,cACX,kBAAoB,GAQZ,mBAPmC,CACzC,WAAY,gBACZ,YACC,iBACD,cAAe,eACf,eAAgB,iBAEyF,IAAa,IAExH,cACC,uBACD,cAAe,gBACf,kBAAA,CAAoB,EAAW,IAC9B,WAAyC,QAAkB,cAC5D,WAAA,CAAa,EAAgB,IAC5B,GAAG,OAAY,2BAChB,aAAA,CAAe,EAAW,IACzB,iCAAmK,QAAkB,cACtL,mBAAA,CAAqB,EAAgB,IACpC,GAAG,OAAY"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var a={paragraph:"Абзац",heading1:"Заголовок 1",heading2:"Заголовок 2",heading3:"Заголовок 3",heading4:"Заголовок 4",heading5:"Заголовок 5",heading6:"Заголовок 6",codeBlock:"Блок кода",blockquote:"Цитата",listItem:"Элемент списка",horizontalRule:"Горизонтальная линия",image:"Изображение",table:"Таблица"};export{a as default};
|
|
2
|
-
//# sourceMappingURL=ru-_MQaVHam.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ru-_MQaVHam.mjs","names":[],"sources":["../../src/plugins/caret-navigation/locales/ru.ts"],"sourcesContent":["import type { CaretNavigationLocale } from '../CaretNavigationLocale.js';\n\nconst locale: CaretNavigationLocale = {\n\tparagraph: 'Абзац',\n\theading1: 'Заголовок 1',\n\theading2: 'Заголовок 2',\n\theading3: 'Заголовок 3',\n\theading4: 'Заголовок 4',\n\theading5: 'Заголовок 5',\n\theading6: 'Заголовок 6',\n\tcodeBlock: 'Блок кода',\n\tblockquote: 'Цитата',\n\tlistItem: 'Элемент списка',\n\thorizontalRule: 'Горизонтальная линия',\n\timage: 'Изображение',\n\ttable: 'Таблица',\n};\n\nexport default locale;\n"],"mappings":"AAEA,IAAM,EAAgC,CACrC,UAAW,QACX,SAAU,cACV,SAAU,cACV,SAAU,cACV,SAAU,cACV,SAAU,cACV,SAAU,cACV,UAAW,YACX,WAAY,SACZ,SAAU,iBACV,eAAgB,uBAChB,MAAO,cACP,MAAO"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var e={insertInline:"Вставить формулу",insertInlineTooltip:"Вставить встроенную формулу",editFormula:"Редактировать формулу",latexLabel:"LaTeX",latexPlaceholder:"напр. \\frac{a}{b} + \\sqrt{x}",previewLabel:"Предпросмотр",insertButton:"Вставить",updateButton:"Обновить",cancelButton:"Отмена",displayToggle:"Блочная (выключная) формула",sizeLabel:"Размер",sizeDefault:"По умолчанию",altLabel:"Описание",altPlaceholder:"Устное описание (необязательно)",paletteLabel:"Символы и структуры",emptyPreview:"Пока нечего показать.",inserted:"Формула вставлена.",updated:"Формула обновлена.",editing:"Редактирование формулы.",selected:"Формула выбрана. Нажмите Enter для редактирования.",unknownCommand:e=>`Неизвестная команда LaTeX: ${e}`,groupFractions:"Дроби",groupScripts:"Индексы и степени",groupRoots:"Корни",groupOperators:"Операторы",groupGreek:"Греческие буквы",groupRelations:"Отношения",groupMatrices:"Матрицы",groupArrows:"Стрелки"};export{e as default};
|
|
2
|
-
//# sourceMappingURL=ru-wv17PPrd.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ru-wv17PPrd.mjs","names":[],"sources":["../../src/plugins/formula/locales/ru.ts"],"sourcesContent":["import type { FormulaLocale } from '../FormulaLocale.js';\n\nconst locale: FormulaLocale = {\n\tinsertInline: 'Вставить формулу',\n\tinsertInlineTooltip: 'Вставить встроенную формулу',\n\teditFormula: 'Редактировать формулу',\n\tlatexLabel: 'LaTeX',\n\tlatexPlaceholder: 'напр. \\\\frac{a}{b} + \\\\sqrt{x}',\n\tpreviewLabel: 'Предпросмотр',\n\tinsertButton: 'Вставить',\n\tupdateButton: 'Обновить',\n\tcancelButton: 'Отмена',\n\tdisplayToggle: 'Блочная (выключная) формула',\n\tsizeLabel: 'Размер',\n\tsizeDefault: 'По умолчанию',\n\taltLabel: 'Описание',\n\taltPlaceholder: 'Устное описание (необязательно)',\n\tpaletteLabel: 'Символы и структуры',\n\temptyPreview: 'Пока нечего показать.',\n\tinserted: 'Формула вставлена.',\n\tupdated: 'Формула обновлена.',\n\tediting: 'Редактирование формулы.',\n\tselected: 'Формула выбрана. Нажмите Enter для редактирования.',\n\tunknownCommand: (command: string) => `Неизвестная команда LaTeX: ${command}`,\n\tgroupFractions: 'Дроби',\n\tgroupScripts: 'Индексы и степени',\n\tgroupRoots: 'Корни',\n\tgroupOperators: 'Операторы',\n\tgroupGreek: 'Греческие буквы',\n\tgroupRelations: 'Отношения',\n\tgroupMatrices: 'Матрицы',\n\tgroupArrows: 'Стрелки',\n};\n\nexport default locale;\n"],"mappings":"AAEA,IAAM,EAAwB,CAC7B,aAAc,mBACd,oBAAqB,8BACrB,YAAa,wBACb,WAAY,QACZ,iBAAkB,iCAClB,aAAc,eACd,aAAc,WACd,aAAc,WACd,aAAc,SACd,cAAe,8BACf,UAAW,SACX,YAAa,eACb,SAAU,WACV,eAAgB,kCAChB,aAAc,sBACd,aAAc,wBACd,SAAU,qBACV,QAAS,qBACT,QAAS,0BACT,SAAU,qDACV,eAAiB,GAAoB,8BAA8B,IACnE,eAAgB,QAChB,aAAc,oBACd,WAAY,QACZ,eAAgB,YAChB,WAAY,kBACZ,eAAgB,YAChB,cAAe,UACf,YAAa"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{A as e,C as t,E as n,S as s,T as i,a as r,c as o,d as a,f as l,g as c,h,i as d,j as p,l as u,m as g,o as m,p as f,r as y,s as k,u as S,v as w,w as v,x as b}from"./Document-znhIcvM9.mjs";import{a as R,c as I,d as C,f as x,i as T,l as E,n as P,o as M,r as A,t as N,u as B}from"./Selection-aeiSsvhe.mjs";import{C as D,S as O,b as L,c as H,d as z,f as _,i as F,l as K,m as $,n as V,o as j,p as U,r as q,s as W,t as G,u as Q,w as J,x as X,y as Y}from"./Commands-ixGhPiRG.mjs";import{a as Z,i as ee,r as te,t as ne}from"./TypeBrands-BZDKMjR-.mjs";import{n as se,t as ie}from"./DomUtils-RKbAVBQz.mjs";import{a as re,i as oe,t as ae}from"./HTMLUtils-brwcaufP.mjs";import{n as le,o as ce,r as he,s as de}from"./NodeResolver-BplmzA7c.mjs";import{_ as pe,c as ue,d as ge,f as me,h as fe,n as ye,o as ke,p as Se,s as we,t as ve,u as be,x as Re}from"./Decoration-DZK7hrL1.mjs";import{t as Ie}from"./GapCursorNavigation-Bkuu_Ek8.mjs";import{C as Ce,S as xe,b as Te,t as Ee,v as Pe,x as Me,y as Ae}from"./CaretNavigationPlugin-P6OYaTSq.mjs";import{a as Ne,c as Be,o as De,r as Oe,s as Le}from"./CommandHelpers-NV80Ff1G.mjs";import{i as He,t as ze}from"./NodeSelectionCommands-dUmbRoZ2.mjs";import{t as _e}from"./Platform-wPvKFB9m.mjs";import{a as Fe,n as Ke,o as $e,r as Ve,t as je}from"./SelectionSync-DCJpNFat.mjs";import{a as Ue,c as qe,n as We,o as Ge,s as Qe,t as Je}from"./DocumentParser-DCjOW3us.mjs";import{c as Xe,d as Ye,i as Ze,l as et,n as tt,r as nt,t as st,u as it}from"./BlockInsertion-C7jFEeYB.mjs";import{c as rt,i as ot,l as at,n as lt,s as ct,t as ht}from"./StyleRuntime-Bwde5icB.mjs";import{t as dt}from"./BlockTypePickerRegistry-U4uY7-lN.mjs";import{o as pt,t as ut}from"./ToolbarPlugin-CSMSgjPM.mjs";import{_ as gt,a as mt,f as ft,h as yt,i as kt,l as St,n as wt,o as vt,u as bt}from"./PrintTypes-DA0Cc--M.mjs";import{c as Rt,l as It,s as Ct}from"./PluginHelpers-C3aCCGfX.mjs";import{t as xt}from"./GapCursorPlugin-CRDmQEi1.mjs";import{t as Tt}from"./TextFormattingPlugin-D_nRMeBn.mjs";import Et from"dompurify";var Pt=class{_nodeSpecs=/* @__PURE__ */new Map;_markSpecs=/* @__PURE__ */new Map;_inlineNodeSpecs=/* @__PURE__ */new Map;registerNodeSpec(e){if(this._nodeSpecs.has(e.type))throw new Error(`NodeSpec for type "${e.type}" is already registered.`);this._nodeSpecs.set(e.type,e)}getNodeSpec(e){return this._nodeSpecs.get(e)}removeNodeSpec(e){this._nodeSpecs.delete(e)}getNodeTypes(){return[...this._nodeSpecs.keys()]}registerMarkSpec(e){if(this._markSpecs.has(e.type))throw new Error(`MarkSpec for type "${e.type}" is already registered.`);this._markSpecs.set(e.type,e)}getMarkSpec(e){return this._markSpecs.get(e)}removeMarkSpec(e){this._markSpecs.delete(e)}getMarkTypes(){return[...this._markSpecs.keys()]}registerInlineNodeSpec(e){if(this._inlineNodeSpecs.has(e.type))throw new Error(`InlineNodeSpec for type "${e.type}" is already registered.`);this._inlineNodeSpecs.set(e.type,e)}getInlineNodeSpec(e){return this._inlineNodeSpecs.get(e)}removeInlineNodeSpec(e){this._inlineNodeSpecs.delete(e)}getInlineNodeTypes(){return[...this._inlineNodeSpecs.keys()]}getBlockParseRules(){return this.collectParseRules(this._nodeSpecs)}getInlineParseRules(){return this.collectParseRules(this._inlineNodeSpecs)}getMarkParseRules(){return this.collectParseRules(this._markSpecs)}getAllowedTags(){return[...this.collectSanitizeValues(new Set(["p","br","div","span"]),e=>e.sanitize?.tags)]}getAllowedAttrs(){return[...this.collectSanitizeValues(new Set(["style","dir"]),e=>e.sanitize?.attrs)]}collectParseRules(e){const t=[];for(const[n,s]of e)if(s.parseHTML)for(const e of s.parseHTML)t.push({rule:e,type:n});return t.sort((e,t)=>(t.rule.priority??50)-(e.rule.priority??50))}collectSanitizeValues(e,t){const n=[this._nodeSpecs,this._inlineNodeSpecs,this._markSpecs];for(const s of n)for(const n of s.values()){const s=t(n);if(s)for(const t of s)e.add(t)}return e}clear(){this._nodeSpecs.clear(),this._markSpecs.clear(),this._inlineNodeSpecs.clear()}};function Mt(e,t,n){const s=e.getNodeSpec(t);if(!s?.content)return!0;const i=e.getNodeSpec(n)?.group;for(const r of s.content.allow){if(r===n)return!0;if("text"!==r&&i&&r===i)return!0}return!1}function At(e,t,n){const s=e.getNodeSpec(t);if(!s?.content)return!0;const{min:i=0,max:r=Number.POSITIVE_INFINITY}=s.content,o=n.filter(e=>"text"!==e);if(o.length<i||o.length>r)return!1;for(const a of o)if(!Mt(e,t,a))return!1;return!0}function Nt(e){e.registerNodeSpec({type:"paragraph",group:"block",content:{allow:["text"]},toDOM:e=>se("p",e.id),toHTML:(e,t)=>`<p>${t||"<br>"}</p>`,parseHTML:[{tag:"p"},{tag:"div",priority:10}],sanitize:{tags:["p"]}})}var Bt=class{steps=[];stepMaps=[];selection;storedMarks;selectionBefore;origin;workingDoc;_readonlyAllowed=!1;constructor(e,t,n="api",s){this.selection=e,this.selectionBefore=e,this.storedMarks=t,this.origin=n,this.workingDoc=s??null}insertText(e,t,n,s,i){const r={type:"insertText",blockId:e,offset:t,text:n,marks:s,...i?{segments:i}:{}};return this.steps.push(r),this.advanceDoc(r),this}deleteText(e,t,n,s,i,r){let o;if(r)o=r;else if(this.workingDoc){const r=le(this.workingDoc,e);o=r?g(r,t,n):[{text:s,marks:[...i]}]}else o=[{text:s,marks:[...i]}];const a={type:"deleteText",blockId:e,from:t,to:n,deletedText:s,deletedMarks:i,deletedSegments:o};return this.steps.push(a),this.advanceDoc(a),this}deleteTextAt(e,t,n){const s=this.requireDoc("deleteTextAt"),i=this.requireBlock(s,e),r=h(i).slice(t,n),o=f(i,t),a=g(i,t,n);return this.deleteText(e,t,n,r,o,a)}splitBlock(e,t,n){const s={type:"splitBlock",blockId:e,offset:t,newBlockId:n};return this.steps.push(s),this.advanceDoc(s),this}mergeBlocks(e,t,n,s,i){const r={type:"mergeBlocks",targetBlockId:e,sourceBlockId:t,targetLengthBefore:n,...void 0!==s?{sourceType:s}:{},...i?{sourceAttrs:i}:{}};return this.steps.push(r),this.advanceDoc(r),this}mergeBlocksAt(e,t){const n=this.requireDoc("mergeBlocksAt"),s=this.requireBlock(n,e),i=this.requireBlock(n,t),r=l(s);return this.mergeBlocks(e,t,r,i.type,i.attrs)}addMark(e,t,n,s){const i=this.tryGetBlock(e);if(!i){const i={type:"addMark",blockId:e,from:t,to:n,mark:s};return this.steps.push(i),this.advanceDoc(i),this}const r=me(w(i),t,n,s.type);for(const o of r){const t={type:"addMark",blockId:e,from:o.from,to:o.to,mark:s};this.steps.push(t),this.advanceDoc(t)}return this}removeMark(e,t,n,s){const i=this.tryGetBlock(e);if(!i){const i={type:"removeMark",blockId:e,from:t,to:n,mark:s};return this.steps.push(i),this.advanceDoc(i),this}const r=Se(w(i),t,n,s.type);for(const o of r){const t={type:"removeMark",blockId:e,from:o.from,to:o.to,mark:o.mark};this.steps.push(t),this.advanceDoc(t)}return this}setBlockType(e,t,n){const s=this.requireDoc("setBlockType"),i=this.requireBlock(s,e),r={type:"setBlockType",blockId:e,nodeType:t,...n?{attrs:n}:{},previousNodeType:i.type,...i.attrs?{previousAttrs:i.attrs}:{}};return this.steps.push(r),this.advanceDoc(r),this}insertNode(e,t,n){const s={type:"insertNode",parentPath:e,index:t,node:n};return this.steps.push(s),this.advanceDoc(s),this}removeNode(e,t){const n=ce(this.requireDoc("removeNode"),e,t);if(!n)throw new Error(`Node at index ${t} not found under parent path [${e.join(", ")}].`);const s={type:"removeNode",parentPath:e,index:t,removedNode:n};return this.steps.push(s),this.advanceDoc(s),this}setNodeAttr(e,t){const n=de(this.requireDoc("setNodeAttr"),e);if(!n)throw new Error(`Node not found at path [${e.join(", ")}].`);const s={type:"setNodeAttr",path:e,attrs:t,...n.attrs?{previousAttrs:n.attrs}:{}};return this.steps.push(s),this.advanceDoc(s),this}insertInlineNode(e,t,n){const s={type:"insertInlineNode",blockId:e,offset:t,node:n};return this.steps.push(s),this.advanceDoc(s),this}removeInlineNode(e,t){const n=this.requireDoc("removeInlineNode"),s=c(this.requireBlock(n,e),t);if(!s||"inline"!==s.kind)throw new Error(`No InlineNode at offset ${t} in block "${e}".`);const i={type:"removeInlineNode",blockId:e,offset:t,removedNode:s.node};return this.steps.push(i),this.advanceDoc(i),this}setInlineNodeAttr(e,n,s){const i=this.requireDoc("setInlineNodeAttr"),r=w(this.requireBlock(i,e));let o=0;for(const a of r){if(t(a)&&o===n){const t={type:"setInlineNodeAttr",blockId:e,offset:n,attrs:s,previousAttrs:a.attrs};return this.steps.push(t),this.advanceDoc(t),this}o+=t(a)?1:a.text.length}throw new Error(`No InlineNode at offset ${n} in block "${e}".`)}readonlyAllowed(){return this._readonlyAllowed=!0,this}setSelection(e){return this.selection=e,this}setNodeSelection(e,t){return this.selection=A(e,t),this}setStoredMarks(e,t){return this.steps.push({type:"setStoredMarks",marks:e,previousMarks:t}),this.storedMarks=e,this}build(){return{steps:[...this.steps],selectionBefore:this.selectionBefore,selectionAfter:this.selection,storedMarksAfter:this.storedMarks,mapping:fe.from(this.stepMaps),forwardStepMaps:[...this.stepMaps],metadata:{origin:this.origin,timestamp:Date.now(),...this._readonlyAllowed?{readonlyAllowed:!0}:{}}}}requireDoc(e){if(!this.workingDoc)throw new Error(`${e} requires a document. Use state.transaction() or provide doc to constructor.`);return this.workingDoc}requireBlock(e,t){const n=le(e,t);if(!n)throw new Error(`Block "${t}" not found in working document.`);return n}tryGetBlock(e){return this.workingDoc?le(this.workingDoc,e)??null:null}advanceDoc(e){const t=this.workingDoc??Dt;this.stepMaps.push(we(t,e)),this.workingDoc&&(this.workingDoc=ke(this.workingDoc,e))}},Dt={children:[]},Ot=class e{doc;selection;storedMarks;schema;_blockMap=null;_blockOrder=null;constructor(e,t,n,s){this.doc=e,this.selection=t,this.storedMarks=n,this.schema=s}static create(t){const n=t?.schema??X(),s=t?.doc??d(),i=_t(s.children);return new e(s,t?.selection??N(i?i.id:ne(""),0),null,n)}transaction(e="api"){return new Bt(this.selection,this.storedMarks,e,this.doc)}apply(t){let n=this.doc;for(const e of t.steps)n=ke(n,e);const s=Ht(n,t.selectionAfter);return new e(n,s,t.storedMarksAfter,this.schema)}getBlock(e){return this._blockMap??=function(e){const t=/* @__PURE__ */new Map;return function e(n){for(const i of n)s(i)&&(t.set(i.id,i),e(i.children))}(e.children),t}(this.doc),this._blockMap.get(e)}getBlockOrder(){return this._blockOrder??=function(e){const t=[];return function e(n){for(const i of n)s(i)&&(v(i)?t.push(i.id):e(i.children))}(e.children),t}(this.doc),this._blockOrder}getNodePath(e){return he(this.doc,e)}getParent(e){const t=he(this.doc,e);if(!t||t.length<=1)return;const n=t[t.length-2];return n?le(this.doc,n):void 0}withSelection(t){const n=Ht(this.doc,t);return new e(this.doc,n,this.storedMarks,this.schema)}toJSON(){return{doc:this.doc,selection:this.selection}}static fromJSON(t,n){return new e(t.doc,t.selection,null,n??X())}};function Lt(e,t){const n=le(e,t.blockId);if(n){const e=l(n);return t.offset>e?T(t.blockId,e,t.path):t}const s=e.children[0];return s?T(s.id,0):t}function Ht(e,t){if(E(t))return le(e,t.nodeId)?t:zt(e,t);if(I(t))return le(e,t.blockId)?t:zt(e,t);const n=Lt(e,t.anchor),s=Lt(e,t.head);return n===t.anchor&&s===t.head?t:R(n,s)}function zt(e,t){const n=_t(e.children);return n?N(n.id,0):t}function _t(e){for(const t of e){if(!s(t))continue;if(v(t))return t;const e=_t(t.children);if(e)return e}return null}function Ft(e,t){return t.isEmpty?e:E(e)?function(e,t){const n={blockId:e.nodeId,offset:0},s=t.mapResult(n,-1);return s.deleted||s.pos.blockId!==e.nodeId?null:A(e.nodeId,e.path)}(e,t):I(e)?function(e,t){const n={blockId:e.blockId,offset:0},s=t.mapResult(n,-1);return s.deleted||s.pos.blockId!==e.blockId?null:P(e.blockId,e.side,e.path)}(e,t):Kt(e,t)}function Kt(e,t){if(M(e)){const n=t.map(e.anchor,-1);return n===e.anchor?e:N(n.blockId,n.offset)}const n=t.map(e.anchor,-1),s=t.map(e.head,1);return n===e.anchor&&s===e.head?e:R(n,s)}function $t(e){for(const t of e.steps)if("setStoredMarks"!==t.type)return!1;return!0}function Vt(e){return!!e.metadata.readonlyAllowed||$t(e)}var jt=class{undoStack=[];redoStack=[];groupTimeoutMs;maxDepth;lastOrigin=null;constructor(e){this.groupTimeoutMs=e?.groupTimeoutMs??500,this.maxDepth=e?.maxDepth??100}push(e){if("history"===e.metadata.origin)return;if(!e.steps.some(e=>"setStoredMarks"!==e.type))return void(this.lastOrigin=null);const t=e.metadata.timestamp,n=this.undoStack[this.undoStack.length-1];for(n&&"input"===e.metadata.origin&&"input"===this.lastOrigin&&t-n.timestamp<this.groupTimeoutMs&&this.isSameInputType(n.transactions,e)&&n?this.undoStack[this.undoStack.length-1]={...n,transactions:[...n.transactions,e],timestamp:t}:this.undoStack.push({transactions:[e],timestamp:t,interveningMapping:fe.empty}),this.lastOrigin=e.metadata.origin,this.redoStack=[];this.undoStack.length>this.maxDepth;)this.undoStack.shift()}recordIntervening(e){e.isEmpty||(Wt(this.undoStack,e),Wt(this.redoStack,e))}undo(e){const t=this.undoStack.pop();if(!t)return null;const n=Ut(t,e,"undo");return null===n?(this.lastOrigin=null,null):(this.redoStack.push({transactions:[n.transaction],timestamp:Date.now(),interveningMapping:fe.empty}),this.lastOrigin=null,{state:n.newState,transaction:n.transaction})}redo(e){const t=this.redoStack.pop();if(!t)return null;const n=Ut(t,e,"redo");return null===n?(this.lastOrigin=null,null):(this.undoStack.push({transactions:[n.transaction],timestamp:Date.now(),interveningMapping:fe.empty}),this.lastOrigin=null,{state:n.newState,transaction:n.transaction})}canUndo(){return this.undoStack.length>0}canRedo(){return this.redoStack.length>0}clear(){this.undoStack=[],this.redoStack=[],this.lastOrigin=null}isSameInputType(e,t){const n=e[e.length-1];return!!n&&n.steps[0]?.type===t.steps[0]?.type}};function Ut(e,t,n){let s=e.interveningMapping,i=t.doc;const r=[],o=[];for(let d=e.transactions.length-1;d>=0;d--){const t=e.transactions[d];if(t)for(let e=t.steps.length-1;e>=0;e--){const n=t.steps[e],a=t.forwardStepMaps[e];if(!n||!a)continue;const l=be(ue(n),s,i);if(null===l)return null;const c=we(i,l);r.push(l),o.push(c),i=ke(i,l),s=qt(a,s,c)}}const a=function(e){const t=e.transactions[0];return t?ge(t):null}(e),l={steps:r,selectionBefore:t.selection,selectionAfter:t.selection,storedMarksAfter:a,mapping:fe.from(o),forwardStepMaps:o,metadata:{origin:"history",timestamp:Date.now(),historyDirection:n}};let c=t.apply(l);const h=e.transactions[0];if(h){const e=Ft(h.selectionBefore,s);null!==e&&(c=c.withSelection(e))}return{newState:c,transaction:{...l,selectionAfter:c.selection}}}function qt(e,t,n){return t.isEmpty&&Re(pe(e),n)?t:fe.from([e]).appendMapping(t).appendMap(n)}function Wt(e,t){for(let n=0;n<e.length;n++){const s=e[n];s&&(e[n]={...s,interveningMapping:s.interveningMapping.appendMapping(t)})}}var Gt={ArrowLeft:"left",ArrowRight:"right",ArrowUp:"up",ArrowDown:"down"},Qt=class{getState;dispatch;undo;redo;keymapRegistry;isReadOnly;compositionTracker;getTextDirectionFn;navigateFromGapCursorFn;handleKeydown;constructor(e,t){this.element=e,this.getState=t.getState,this.dispatch=t.dispatch,this.undo=t.undo,this.redo=t.redo,this.keymapRegistry=t.keymapRegistry,this.isReadOnly=t.isReadOnly??(()=>!1),this.compositionTracker=t.compositionTracker,this.getTextDirectionFn=t.getTextDirection??(()=>"ltr"),this.navigateFromGapCursorFn=t.navigateFromGapCursor,this.handleKeydown=this.onKeydown.bind(this),e.addEventListener("keydown",this.handleKeydown)}onKeydown(e){if(this.compositionTracker?.isComposing)return;if(this.handleNodeSelectionKeys(e))return;if(this.handleGapCursorKeys(e))return;if(this.isReadOnly()){if(this.keymapRegistry){const t=Jt(e),n=this.keymapRegistry.getKeymapsByPriority().navigation;for(let s=n.length-1;s>=0;s--){const i=n[s]?.[t];if(i?.())return void e.preventDefault()}}return void this.handleEscape(e)}if(this.keymapRegistry){const t=Jt(e),n=this.keymapRegistry.getKeymapsByPriority();for(const s of[n.context,n.navigation,n.default])for(let n=s.length-1;n>=0;n--){const i=s[n]?.[t];if(i?.())return void e.preventDefault()}}if(this.handleGapCursorArrowFallback(e))return;if(this.handleTab(e))return;if(this.handleEscape(e))return;if(!e.metaKey&&!e.ctrlKey)return;const t=e.key.toLowerCase(),n=this.getState();let s=null;return"z"!==t||e.shiftKey?"z"===t&&e.shiftKey||"y"===t&&!e.shiftKey?(e.preventDefault(),void this.redo()):("a"!==t||e.shiftKey||(e.preventDefault(),s=j(n)),void(s&&this.dispatch(s))):(e.preventDefault(),void this.undo())}handleNodeSelectionKeys(e){const t=this.getState(),n=t.selection;if(!E(n))return!1;const s=e.key;if(!("ArrowLeft"!==s&&"ArrowUp"!==s&&"ArrowRight"!==s&&"ArrowDown"!==s||e.shiftKey||e.metaKey||e.ctrlKey||e.altKey)){const i=Gt[s];if(!i)return!1;const r=He(t,i,this.isSelectedBlockRtl(n.nodeId));return!!r&&(e.preventDefault(),this.dispatch(r),!0)}if("Backspace"===s||"Delete"===s){if(this.isReadOnly())return e.preventDefault(),!0;e.preventDefault();const s=ze(t,n);return s&&this.dispatch(s),!0}if("Enter"===s){if(this.isReadOnly())return e.preventDefault(),!0;e.preventDefault();const n=W(t);return n&&this.dispatch(n),!0}if("Escape"===s){e.preventDefault();const n=He(t,"right");return n&&this.dispatch(n),!0}return!1}handleGapCursorKeys(e){const t=this.getState(),n=t.selection;if(!I(n))return!1;const s=e.key;if("ArrowLeft"===s||"ArrowRight"===s||"ArrowUp"===s||"ArrowDown"===s)return!1;if("Escape"===s||"Tab"===s)return!1;if(e.ctrlKey||e.metaKey||e.altKey)return!1;if("Enter"===s){if(this.isReadOnly())return e.preventDefault(),!0;e.preventDefault();const n=W(t);return n&&this.dispatch(n),!0}if("Backspace"===s){if(this.isReadOnly())return e.preventDefault(),!0;e.preventDefault();const s=Y(t,n);return s&&this.dispatch(s),!0}if("Delete"===s){if(this.isReadOnly())return e.preventDefault(),!0;e.preventDefault();const s=L(t,n);return s&&this.dispatch(s),!0}if(1===s.length){if(this.isReadOnly())return e.preventDefault(),!0;e.preventDefault();const n=F(t,s);return this.dispatch(n),!0}return!1}handleGapCursorArrowFallback(e){const t=this.getState(),n=t.selection;if(!I(n))return!1;const s=e.key;if("ArrowLeft"!==s&&"ArrowRight"!==s&&"ArrowUp"!==s&&"ArrowDown"!==s)return!1;const i=Gt[s];if(!i)return!1;if(!this.navigateFromGapCursorFn)return!1;const r=this.navigateFromGapCursorFn(t,i,this.element);return!(!r||x(r.selectionAfter,n)||(e.preventDefault(),this.dispatch(r),0))}handleTab(e){if("Tab"!==e.key)return!1;if(e.metaKey||e.ctrlKey||e.altKey)return!1;if(e.preventDefault(),e.shiftKey)return!0;const t=F(this.getState(),"\t");return this.dispatch(t),!0}handleEscape(e){return"Escape"===e.key&&(this.element.blur(),!0)}isSelectedBlockRtl(e){const t=this.element.querySelector(`[data-block-id="${e}"]`);return t instanceof HTMLElement&&"rtl"===this.getTextDirectionFn(t)}destroy(){this.element.removeEventListener("keydown",this.handleKeydown)}};function Jt(e){const t=[];(e.metaKey||e.ctrlKey)&&t.push("Mod"),e.shiftKey&&t.push("Shift"),e.altKey&&t.push("Alt");let n=e.key;return" "===n?n="Space":1===n.length&&(n=n.toUpperCase()),t.push(n),t.join("-")}function Xt(t,n){if(v(t))return n.selectedLeafIds.has(t.id)?function(t,n){const s=l(t),i=t.id===n.firstBlockId?n.firstOffset:0,r=t.id===n.lastBlockId?n.lastOffset:s;if(0===i&&r===s)return t;const o=e(a(t,i,r));return{...t,children:o}}(t,n):null;const s=S(t),i=[];let r=s.length!==t.children.length;for(const e of s){const t=Xt(e,n);t?(i.push(t),t!==e&&(r=!0)):r=!0}return 0===i.length?null:r?{...t,children:i}:t}var Yt=class{getState;dispatch;schemaRegistry;syncSelection;isReadOnly;handleCopy;handleCut;constructor(e,t){this.element=e,this.getState=t.getState,this.dispatch=t.dispatch,this.schemaRegistry=t.schemaRegistry,this.syncSelection=t.syncSelection,this.isReadOnly=t.isReadOnly??(()=>!1),this.handleCopy=this.onCopy.bind(this),this.handleCut=this.onCut.bind(this),e.addEventListener("copy",this.handleCopy),e.addEventListener("cut",this.handleCut)}onCopy(e){this.syncSelection?.();const t=this.getState(),n=t.selection;if(I(n))return;if(B(n)&&M(n))return;e.preventDefault();const s=e.clipboardData;s&&(E(n)?this.writeNodeSelectionToClipboard(s,t):this.writeTextSelectionToClipboard(s,t))}onCut(e){if(this.isReadOnly())return;this.syncSelection?.();const t=this.getState(),n=t.selection;if(I(n))return;if(B(n)&&M(n))return;e.preventDefault();const s=e.clipboardData;if(s)if(E(n)){this.writeNodeSelectionToClipboard(s,t);const e=ze(t,n);e&&this.dispatch(e)}else{this.writeTextSelectionToClipboard(s,t);const e=V(t);e&&this.dispatch(e)}}writeNodeSelectionToClipboard(e,t){const n=t.selection;if(!E(n))return;const s=t.getBlock(n.nodeId);if(!s)return;const i={type:s.type,...s.attrs?{attrs:{...s.attrs}}:{}};e.setData("application/x-notectl-block",JSON.stringify(i));const r=this.schemaRegistry?.getNodeSpec(s.type);r?.toHTML&&e.setData("text/html",r.toHTML(s,""));const o=s.attrs,a="string"==typeof o?.alt?o.alt:"";e.setData("text/plain",a)}writeTextSelectionToClipboard(e,t){const n=t.selection;if(E(n))return;if(I(n))return;if(M(n))return;if(this.selectionRequiresDocumentSerializer(t))return void this.writeCompositeSelectionToClipboard(e,t);const s=t.getBlockOrder(),i=C(n,s),r=s.indexOf(i.from.blockId),o=s.indexOf(i.to.blockId),a=[],c=[],h=[];for(let p=r;p<=o;p++){const e=s[p];if(!e)continue;const n=t.getBlock(e);if(!n)continue;const d=l(n),u=p===r?i.from.offset:0,g=p===o?i.to.offset:d,m=this.extractSegmentsForRange(n,u,g),f=this.plainTextFromSegments(m);a.push(f),h.push({block:n,start:u,end:g}),c.push({type:n.type,text:f,...n.attrs?{attrs:{...n.attrs}}:{},...m.length>0?{segments:m}:{}})}const d=a.join("\n");if(e.setData("text/plain",d),this.schemaRegistry){const n=Qe(this.schemaRegistry),a=r!==o,l=c.some(e=>void 0!==e.type&&"paragraph"!==e.type);if(a||this.containsInlineSegments(c)||l){const t=this.serializeBlocksToClipboardHTML(h,n,c);e.setData("text/html",t)}else{const o=s[r],a=o?t.getBlock(o):void 0;if(a){const t=this.serializeBlockRangeToHTML(a,i.from.offset,i.to.offset,n);e.setData("text/html",t)}}}}selectionRequiresDocumentSerializer(e){const t=this.getTextSelection(e);if(!t||M(t))return!1;const n=C(t,e.getBlockOrder()),s=he(e.doc,n.from.blockId),i=he(e.doc,n.to.blockId);if(!s||!i)return!1;if(s[0]===i[0]){const t=e.doc.children.find(e=>e.id===s[0]);return!(!t||v(t))}const r=e.doc.children.findIndex(e=>e.id===s[0]),o=e.doc.children.findIndex(e=>e.id===i[0]);for(let a=r;a<=o;a++){const t=e.doc.children[a];if(t){if(!v(t))return!0;if((this.schemaRegistry?.getNodeSpec(t.type))?.isVoid)return!0}}return!1}getTextSelection(e){const t=e.selection;if(B(t))return t}extractPlainTextForRange(e,t,n){return this.plainTextFromSegments(this.extractSegmentsForRange(e,t,n))}plainTextFromSegments(e){return e.map(e=>"inline"===e.kind?"":e.text).join("")}writeCompositeSelectionToClipboard(e,t){const n=this.getTextSelection(t);if(!n)return;const s=t.getBlockOrder(),i=C(n,s),r=s.indexOf(i.from.blockId),o=s.indexOf(i.to.blockId),a=[];for(let c=r;c<=o;c++){const e=s[c];if(!e)continue;const n=t.getBlock(e);if(!n)continue;const h=c===r?i.from.offset:0,d=c===o?i.to.offset:l(n);a.push(this.extractPlainTextForRange(n,h,d))}if(e.setData("text/plain",a.join("\n")),this.schemaRegistry){const s=function(e,t){const n=e.getBlockOrder(),s=C(t,n),i=n.indexOf(s.from.blockId),r=n.indexOf(s.to.blockId);if(-1===i||-1===r||i>r)return{children:[]};const o=e.getNodePath(s.from.blockId),a=e.getNodePath(s.to.blockId),l=o?.[0],c=a?.[0];if(!l||!c)return{children:[]};const h=e.doc.children.findIndex(e=>e.id===l),d=e.doc.children.findIndex(e=>e.id===c);if(-1===h||-1===d||h>d)return{children:[]};const p={firstBlockId:s.from.blockId,firstOffset:s.from.offset,lastBlockId:s.to.blockId,lastOffset:s.to.offset,selectedLeafIds:new Set(n.slice(i,r+1))},u=[];for(let g=h;g<=d;g++){const t=e.doc.children[g];if(!t)continue;const n=Xt(t,p);n&&u.push(n)}return{children:u}}(t,n);if(s.children.length>0){const t=Ge(s,this.schemaRegistry);e.setData("text/html",t)}}}serializeBlockRangeToHTML(e,t,n,s){const i=[];return o(e,t,n,{onText:(e,t)=>{this.schemaRegistry&&i.push(qe(e,t,this.schemaRegistry,s))},onInline:e=>{const t=this.schemaRegistry?.getInlineNodeSpec(e.inlineType);t?.toHTMLString&&i.push(t.toHTMLString(e))}}),i.join("")}extractSegmentsForRange(e,t,n){const s=[];return o(e,t,n,{onText:(e,t)=>{s.push({text:e,marks:t.map(e=>({type:e.type,...e.attrs?{attrs:{...e.attrs}}:{}}))})},onInline:e=>{s.push({kind:"inline",inlineType:e.inlineType,...Object.keys(e.attrs).length>0?{attrs:{...e.attrs}}:{}})}}),s}containsInlineSegments(e){return e.some(e=>e.segments?.some(e=>"inline"===e.kind))}serializeBlocksToClipboardHTML(e,t,n){const s=[];let i,r=[];const o=()=>{r.length>0&&i&&(s.push(`<${i}>${r.join("")}</${i}>`),r=[],i=void 0)};for(const l of e){const{block:e,start:n,end:a}=l,c=this.serializeBlockRangeToHTML(e,n,a,t),h=this.schemaRegistry?.getNodeSpec(e.type);if(h?.wrapper){const t=h.wrapper(e).tag;i!==t&&(o(),i=t),h.toHTML?r.push(h.toHTML(e,c)):r.push(`<li>${c}</li>`)}else o(),h?.toHTML?s.push(h.toHTML(e,c)):s.push(`<p>${c}</p>`)}o();const a=JSON.stringify(n).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/'/g,"'").replace(/"/g,""");return s.push(`<span data-notectl-rich="${a}" hidden></span>`),s.join("")}destroy(){this.element.removeEventListener("copy",this.handleCopy),this.element.removeEventListener("cut",this.handleCut)}},Zt=class{_composing=!1;_activeBlockId=null;get isComposing(){return this._composing}get activeBlockId(){return this._activeBlockId}start(e){this._composing=!0,this._activeBlockId=e}end(){this._composing=!1,this._activeBlockId=null}},en=class{getState;dispatch;syncSelection;inputRuleRegistry;isReadOnly;compositionTracker;getTextInputInterceptors;compositionCommitHandled=!1;handleBeforeInput;handleCompositionStart;handleCompositionEnd;constructor(e,t){this.element=e,this.getState=t.getState,this.dispatch=t.dispatch,this.syncSelection=t.syncSelection,this.inputRuleRegistry=t.inputRuleRegistry,this.isReadOnly=t.isReadOnly??(()=>!1),this.compositionTracker=t.compositionTracker??new Zt,this.getTextInputInterceptors=t.getTextInputInterceptors??(()=>[]),this.handleBeforeInput=this.onBeforeInput.bind(this),this.handleCompositionStart=this.onCompositionStart.bind(this),this.handleCompositionEnd=this.onCompositionEnd.bind(this),e.addEventListener("beforeinput",this.handleBeforeInput),e.addEventListener("compositionstart",this.handleCompositionStart),e.addEventListener("compositionend",this.handleCompositionEnd)}onBeforeInput(e){if(this.isReadOnly())return;if(this.compositionTracker.isComposing&&"insertCompositionText"===e.inputType)return;if(!function(e){switch(e){case"insertText":case"insertReplacementText":case"insertFromComposition":case"insertParagraph":case"insertLineBreak":case"deleteContentBackward":case"deleteContentForward":case"deleteWordBackward":case"deleteWordForward":case"deleteSoftLineBackward":case"deleteSoftLineForward":case"deleteByCut":case"insertFromPaste":case"insertFromDrop":case"formatBold":case"formatItalic":case"formatUnderline":case"historyUndo":case"historyRedo":return!0;default:return!1}}(e.inputType))return;"insertText"!==e.inputType&&"insertCompositionText"!==e.inputType&&"insertFromComposition"!==e.inputType&&this.syncSelection(),e.preventDefault();const t=this.getState();let n=null;switch(e.inputType){case"insertText":case"insertReplacementText":e.data&&(n=this.runTextInputInterceptors(e.data,t)??F(t,e.data,"input"));break;case"insertFromComposition":e.data&&(this.compositionCommitHandled=!0,n=this.runTextInputInterceptors(e.data,t)??F(t,e.data,"input"));break;case"insertParagraph":n=W(t);break;case"insertLineBreak":n=q(t);break;case"deleteContentBackward":n=H(t);break;case"deleteContentForward":n=K(t);break;case"deleteWordBackward":n=_(t);break;case"deleteWordForward":n=U(t);break;case"deleteSoftLineBackward":n=Q(t);break;case"deleteSoftLineForward":n=z(t)}n&&(this.dispatch(n),"insertText"!==e.inputType&&"insertReplacementText"!==e.inputType||this.checkInputRules())}onCompositionStart(e){const t=this.getState();B(t.selection)&&(this.compositionCommitHandled=!1,this.compositionTracker.start(t.selection.anchor.blockId))}onCompositionEnd(e){if(this.compositionTracker.end(),this.isReadOnly())return;if(this.compositionCommitHandled)return void(this.compositionCommitHandled=!1);const t=e.data;if(!t)return;const n=F(this.getState(),t,"input");this.dispatch(n)}runTextInputInterceptors(e,t){const n=this.getTextInputInterceptors();if(0===n.length)return null;for(const s of n){const n=s.interceptor(e,t);if(n)return n}return null}checkInputRules(){if(!this.inputRuleRegistry)return;const e=this.inputRuleRegistry.getInputRules();if(0===e.length)return;const t=this.getState();if(!B(t.selection))return;const{anchor:n}=t.selection,s=t.getBlock(n.blockId);if(!s)return;const i=h(s).slice(0,n.offset);for(const r of e){const e=r.pattern.exec(i);if(e){const n=e.index,s=n+e[0].length,i=r.handler(t,e,n,s);if(i)return void this.dispatch(i)}}}destroy(){this.element.removeEventListener("beforeinput",this.handleBeforeInput),this.element.removeEventListener("compositionstart",this.handleCompositionStart),this.element.removeEventListener("compositionend",this.handleCompositionEnd)}};function tn(e){return e.reduce((e,t)=>e+("inline"===t.kind?1:t.text.length),0)}function nn(t,n){if(0===n.blocks.length)return t.transaction("paste").setSelection(t.selection).build();const s=n.blocks[0];return s?1===n.blocks.length&&s.type===Z("paragraph")?function(e,t){const n=e.selection;if(E(n))return e.transaction("paste").setSelection(n).build();if(I(n))return function(e,t,n){const s=on(e,t);if(!s)return e.transaction("paste").setSelection(t).build();const i=u(),r=e.transaction("paste");r.insertNode(s.parentPath,s.insertIndex,y(Z("paragraph"),[k("")],i));const o=rn(r,i,0,n);return r.setSelection(N(i,o)),r.build()}(e,n,t);const{builder:s,insertBlockId:i,insertOffset:r}=sn(e,n),o=rn(s,i,r,t);return s.setSelection(N(i,o)),s.build()}(t,s.segments):1===n.blocks.length?function(e,t){const n=e.selection;if(E(n))return e.transaction("paste").setSelection(n).build();if(I(n))return an(e,n,[t]);const{builder:s,insertBlockId:i,insertOffset:r}=sn(e,n);s.setBlockType(i,t.type,t.attrs);const o=rn(s,i,r,t.segments);return s.setSelection(N(i,o)),s.build()}(t,s):function(t,n){const s=t.selection;if(E(s))return t.transaction("paste").setSelection(s).build();if(I(s))return an(t,s,n.blocks);const{builder:i,landingId:r,resolved:o,insertBlockId:a,insertOffset:l}=sn(t,s),c=t.getBlockOrder();let h;if(r){const e=he(t.doc,o.blockId)?.[0];h=e?t.doc.children.findIndex(t=>t.id===e):0}else h=c.indexOf(a);const d=n.blocks[0],p=n.blocks[n.blocks.length-1];if(!d||!p)return i.build();const g=n.blocks.slice(1,-1),m=rn(i,a,l,d.segments);d.type!==Z("paragraph")&&i.setBlockType(a,d.type,d.attrs);const f=u();i.splitBlock(a,m,f);let k=h+1;for(const S of g){const t=y(S.type,e(S.segments),u(),S.attrs);i.insertNode([],k,t),k++}return rn(i,f,0,p.segments),p.type!==Z("paragraph")&&i.setBlockType(f,p.type,p.attrs),i.setSelection(N(f,tn(p.segments))),i.build()}(t,n):t.transaction("paste").setSelection(t.selection).build()}function sn(e,t){const n=e.transaction("paste");let s;M(t)||(s=G(e,n));const i=Be(t,e.getBlockOrder());return{builder:n,landingId:s,resolved:i,insertBlockId:s??i.blockId,insertOffset:s?0:i.offset}}function rn(e,t,n,s){let i=n,r=[];const o=()=>{if(0===r.length)return;const n=r.map(e=>e.text).join("");n.length>0&&(e.insertText(t,i,n,[],r),i+=n.length),r=[]};for(const a of s)"inline"===a.kind?(o(),e.insertInlineNode(t,i,a.node),i+=1):r.push({text:a.text,marks:a.marks});return o(),i}function on(e,t){const n=he(e.doc,t.blockId);if(!n)return null;const s=Oe(n),i=De(Le(e,s),t.blockId);return i<0?null:{parentPath:s,insertIndex:"before"===t.side?i:i+1}}function an(t,n,s){const i=on(t,n);if(!i)return t.transaction("paste").setSelection(n).build();const r=t.transaction("paste");let o,a=i.insertIndex,l=0;for(const c of s){const t=u(),n=y(c.type,e(c.segments),t,c.attrs);r.insertNode(i.parentPath,a,n),a++,o=t,l=tn(c.segments)}return o&&r.setSelection(N(o,l)),r.build()}var ln=new Set(["P","DIV","H1","H2","H3","H4","H5","H6","BLOCKQUOTE","UL","OL","LI","HR","PRE","TABLE","THEAD","TBODY","TR"]),cn=new Set(["STRONG","B","EM","I","U","S","STRIKE","DEL","A","SPAN","BR","SUB","SUP","CODE"]),hn=/^H([1-6])$/;function dn(e){const t=e.style.fontWeight,n=Number.parseInt(t,10);return!("normal"===t||!Number.isNaN(n)&&n<700)&&{}}var pn=new Map([["STRONG",{markName:"bold",getAttrs:dn}],["B",{markName:"bold",getAttrs:dn}],["EM",{markName:"italic"}],["I",{markName:"italic"}],["U",{markName:"underline"}],["S",{markName:"strikethrough"}],["STRIKE",{markName:"strikethrough"}],["DEL",{markName:"strikethrough"}],["A",{markName:"link",getAttrs:function(e){return{href:re(e.getAttribute("href")??"")}}}]]),un=class{schema;blockParseRules;markParseRules;inlineParseRules;blockTagHandlers;constructor(e){this.schema=e.schema,this.blockParseRules=e.schemaRegistry?.getBlockParseRules()??[],this.markParseRules=e.schemaRegistry?.getMarkParseRules()??[],this.inlineParseRules=e.schemaRegistry?.getInlineParseRules()??[],this.blockTagHandlers=this.buildBlockTagHandlers()}parse(e){We(e);const t=this.parseContainer(e);return 0===t.length?{blocks:[{type:this.resolveBlockType(Z("paragraph")),segments:[p("")]}]}:{blocks:t}}buildBlockTagHandlers(){const e=e=>this.parseBlockWithLineBreaks(e,this.resolveBlockType(Z("paragraph"))),t=e=>this.parseTableAsParagraphs(e);return new Map([["P",e],["DIV",e],["BLOCKQUOTE",e=>this.parseBlockquote(e)],["UL",e=>this.parseList(e,"bullet",0)],["OL",e=>this.parseList(e,"ordered",0)],["LI",e=>this.parseListItem(e,"bullet",0)],["HR",()=>[{type:this.resolveBlockType(Z("horizontal_rule")),segments:[]}]],["PRE",e=>[{type:this.resolveBlockType(Z("paragraph")),segments:this.ensureSegments(this.parsePreContent(e))}]],["TABLE",t],["THEAD",t],["TBODY",t],["TR",t]])}parseContainer(e){const t=[];let n=[];for(const s of Array.from(e.childNodes))if(s.nodeType===Node.ELEMENT_NODE){const e=s;this.isBlockElement(e)?(this.flushPendingSegments(t,n),n=[],t.push(...this.parseBlockElement(e))):e.children.length>0&&this.containsBlockDescendants(e)?(this.flushPendingSegments(t,n),n=[],t.push(...this.parseContainerWithMarks(e,this.marksFromElement(e)))):n.push(...this.parseInlineNode(s,[]))}else if(s.nodeType===Node.TEXT_NODE){const e=s.textContent??"";e&&n.push(p(e))}return this.flushPendingSegments(t,n),t}parseBlockElement(e){const t=hn.exec(e.tagName);if(t)return this.parseHeading(e,Number(t[1]));const n=this.blockTagHandlers.get(e.tagName);return n?n(e):this.parseUnknownBlock(e)}parseHeading(e,t){const n=this.resolveBlockType(Z("heading"));return[{type:n,...n===Z("heading")?{attrs:{level:t}}:{},segments:this.ensureSegments(this.parseInlineChildren(e,[]))}]}parseUnknownBlock(e){const t=this.matchBlockRule(e);return t?[{type:t.type,...t.attrs?{attrs:t.attrs}:{},segments:this.ensureSegments(this.parseInlineChildren(e,[]))}]:[{type:this.resolveBlockType(Z("paragraph")),segments:this.ensureSegments(this.parseInlineChildren(e,[]))}]}parseBlockquote(e){const t=this.resolveBlockType(Z("blockquote"));return Array.from(e.childNodes).some(e=>e.nodeType===Node.ELEMENT_NODE&&this.isBlockElement(e))?this.parseContainer(e).map(e=>({type:t,segments:e.segments})):[{type:t,segments:this.ensureSegments(this.parseInlineChildren(e,[]))}]}parseList(e,t,n){const s=[];for(const i of Array.from(e.children)){const e=i;"LI"===e.tagName?s.push(...this.parseListItem(e,t,n)):"UL"===e.tagName?s.push(...this.parseList(e,"bullet",n+1)):"OL"===e.tagName&&s.push(...this.parseList(e,"ordered",n+1))}return s}parseListItem(e,t,n){const s=[],i=this.resolveBlockType(Z("list_item")),r=this.hasCheckbox(e),o=r?"checklist":t,a=!!r&&this.isCheckboxChecked(e),l=[],c=[];for(const h of Array.from(e.childNodes))if(h.nodeType===Node.ELEMENT_NODE){const e=h;"UL"===e.tagName||"OL"===e.tagName?c.push(e):"INPUT"===e.tagName&&"checkbox"===e.getAttribute("type")||(this.isBlockElement(e)?l.push(...this.parseInlineChildren(e,[])):l.push(...this.parseInlineNode(h,[])))}else if(h.nodeType===Node.TEXT_NODE){const e=h.textContent??"";e&&l.push(p(e))}s.push({type:i,attrs:{listType:o,indent:n,..."checklist"===o?{checked:a}:{}},segments:this.ensureSegments(this.normalizeSegments(l))});for(const h of c){const e="OL"===h.tagName?"ordered":"bullet";s.push(...this.parseList(h,e,n+1))}return s}parseInlineChildren(e,t){const n=[];for(const s of Array.from(e.childNodes))n.push(...this.parseInlineNode(s,t));return this.normalizeSegments(n)}parseInlineNode(e,t){if(e.nodeType===Node.TEXT_NODE){const n=e.textContent??"";return n?[p(n,this.resolveMarks(t))]:[]}if(e.nodeType!==Node.ELEMENT_NODE)return[];const n=e,s=n.tagName;if("BR"===s)return[p("\n",this.resolveMarks(t))];const i=this.matchInlineNodeRule(n);if(i)return[b(i)];if(this.isBlockElement(n)&&!cn.has(s))return this.parseInlineChildren(n,t);const r=this.mergeMarks(t,this.marksFromElement(n));return this.parseInlineChildren(n,r)}matchInlineNodeRule(e){if(0===this.inlineParseRules.length)return null;const t=e.tagName.toLowerCase();for(const n of this.inlineParseRules)if(n.rule.tag===t){if(n.rule.getAttrs){const t=n.rule.getAttrs(e);if(!1===t)continue;return m(te(n.type),t)}return m(te(n.type))}return null}parsePreContent(e){const t=e.textContent??"";return t?[p(t)]:[]}parseTableAsParagraphs(e){const t=[],n=e.querySelectorAll("td, th");for(const s of Array.from(n)){const e=this.parseInlineChildren(s,[]);e.some(e=>"inline"===e.kind||e.text.length>0)&&t.push({type:this.resolveBlockType(Z("paragraph")),segments:this.ensureSegments(e)})}return t}marksFromElement(e){return this.matchMarkRules(e)||this.fallbackMarksFromElement(e)}matchMarkRules(e){if(0===this.markParseRules.length)return null;const t=e.tagName.toLowerCase(),n=[],s=/* @__PURE__ */new Set;for(const i of this.markParseRules)if(i.rule.tag===t&&!s.has(i.type)){if(i.rule.getAttrs){const t=i.rule.getAttrs(e);if(!1===t)continue;n.push({type:ee(i.type),...Object.keys(t).length>0?{attrs:t}:{}})}else n.push({type:ee(i.type)});s.add(i.type)}return s.size>0?n:null}fallbackMarksFromElement(e){const t=pn.get(e.tagName);if(!t)return[];if(t.getAttrs){const n=t.getAttrs(e);return!1===n?[]:Object.keys(n).length>0?[{type:ee(t.markName),attrs:n}]:[{type:ee(t.markName)}]}return[{type:ee(t.markName)}]}mergeMarks(e,t){const n=[...e];for(const s of t)n.some(e=>e.type===s.type)||n.push(s);return n}resolveMarks(e){return e.filter(e=>O(this.schema,e.type))}resolveBlockType(e){return D(this.schema,e)?e:Z("paragraph")}normalizeSegments(e){if(0===e.length)return[];const t=[];for(const s of e){if("inline"===s.kind){t.push(s);continue}const e=t[t.length-1];e&&"text"===e.kind&&n(e.marks,s.marks)?t[t.length-1]=p(e.text+s.text,e.marks):s.text.length>0&&t.push(s)}return t}ensureSegments(e){return 0===e.length?[p("")]:e}matchBlockRule(e){const t=e.tagName.toLowerCase();for(const n of this.blockParseRules)if(n.rule.tag===t){if(n.rule.getAttrs){const t=n.rule.getAttrs(e);if(!1===t)continue;return{type:Z(n.type),attrs:t}}return{type:Z(n.type)}}return null}isBlockElement(e){if(ln.has(e.tagName))return!0;const t=e.tagName.toLowerCase();return this.blockParseRules.some(e=>e.rule.tag===t)}hasCheckbox(e){return null!==e.querySelector('input[type="checkbox"]')}isCheckboxChecked(e){return e.querySelector('input[type="checkbox"]')?.hasAttribute("checked")??!1}containsBlockDescendants(e){for(const t of Array.from(e.children)){if(this.isBlockElement(t))return!0;if(this.containsBlockDescendants(t))return!0}return!1}parseContainerWithMarks(e,t){const n=this.parseContainer(e);return 0===t.length?n:n.map(e=>({...e,segments:this.prependMarks(e.segments,t)}))}prependMarks(e,t){return e.map(e=>"inline"===e.kind?e:p(e.text,this.mergeMarks(t,e.marks)))}parseBlockWithLineBreaks(e,t){const n=this.parseInlineChildren(e,[]);if(!n.some(e=>"text"===e.kind&&e.text.includes("\n")))return[{type:t,segments:this.ensureSegments(n)}];const s=[];let i=[];for(const r of n){if("inline"===r.kind){i.push(r);continue}const e=r.text.split("\n");for(let n=0;n<e.length;n++){n>0&&(s.push({type:t,segments:this.ensureSegments(this.normalizeSegments(i))}),i=[]);const o=e[n]??"";o&&i.push(p(o,r.marks))}}return s.push({type:t,segments:this.ensureSegments(this.normalizeSegments(i))}),s}flushPendingSegments(e,t){const n=this.normalizeSegments(t);0!==n.length&&(n.every(e=>"text"===e.kind&&""===e.text.trim())||e.push({type:this.resolveBlockType(Z("paragraph")),segments:n}))}},gn={1:"x-small",2:"small",3:"medium",4:"large",5:"x-large",6:"xx-large",7:"xxx-large"};function mn(e){return e.toLowerCase().includes("font-size")}function fn(e,t){for(;e.firstChild;)t.appendChild(e.firstChild)}function yn(e){const t=e.parentNode;if(t){for(;e.firstChild;)t.insertBefore(e.firstChild,e);t.removeChild(e)}}var kn=["script","style","iframe","object","embed","form","noscript"],Sn=class{constructor(e,t,n,s){this.getState=e,this.dispatch=t,this.schemaRegistry=n,this.tryRichPasteFromJson=s}handleHTMLOrTextPaste(e,t){const n=this.getState(),s=e.getData("text/html");if(s)this.handleHTML(s,n);else if(t){const e={blocks:t.split(/\r?\n/).map(e=>({type:Z("paragraph"),segments:[p(e)]}))};this.dispatch(nn(this.getState(),e))}}handleHTML(e,t){const n=Et.sanitize(e,{FORBID_TAGS:kn,ADD_TAGS:this.schemaRegistry?this.schemaRegistry.getAllowedTags():[],ADD_ATTR:this.schemaRegistry?this.schemaRegistry.getAllowedAttrs():[],ALLOWED_URI_REGEXP:ae}),s=this.extractRichData(n);if(s&&this.tryRichPasteFromJson(s))return;const i=document.createElement("template");i.innerHTML=n,function(e){const t=Array.from(e.querySelectorAll("font"));for(const n of t){const e=n.getAttribute("color"),t=n.getAttribute("face"),s=n.getAttribute("size"),i=n.getAttribute("style")??"";if(!(null!==e||null!==t||null!==s||i.length>0)){yn(n);continue}const r=document.createElement("span"),o=[];if(i&&o.push(i.endsWith(";")?i:`${i};`),e&&o.push(`color: ${e};`),t&&o.push(`font-family: ${t};`),s&&!mn(i)){const e=gn[s];e&&o.push(`font-size: ${e};`)}rt(r,o.join(" ")),fn(n,r),n.parentNode?.replaceChild(r,n)}}(i.content);const r=i.innerHTML,o=this.schemaRegistry?this.schemaRegistry.getAllowedTags():["strong","em","u","b","i","p","br","div","span"],a=this.schemaRegistry?this.schemaRegistry.getAllowedAttrs():[],l=Et.sanitize(r,{ALLOWED_TAGS:o,ALLOWED_ATTR:a,ALLOWED_URI_REGEXP:ae});if(this.schemaRegistry){const e=document.createElement("template");if(e.innerHTML=l,this.requiresDocumentParser(l,e.content))return void this.handleDocumentPaste(l,t);const n=new un({schema:J(this.schemaRegistry),schemaRegistry:this.schemaRegistry}).parse(e.content);this.dispatch(nn(t,n))}else{const e=this.extractTextFromHTML(l);e&&this.dispatch(F(t,e,"paste"))}}extractRichData(e){const t=document.createElement("template");t.innerHTML=e;const n=t.content.querySelector("[data-notectl-rich]")?.getAttribute("data-notectl-rich");if(n)return this.decodeHTMLEntities(n)}decodeHTMLEntities(e){return e.replace(/"/g,'"').replace(/'/g,"'").replace(/>/g,">").replace(/</g,"<").replace(/&/g,"&")}requiresDocumentParser(e,t){return!!/<table[\s>]/i.test(e)||!!/<blockquote[\s>]/i.test(e)||this.containsVoidBlockElements(t)}containsVoidBlockElements(e){if(!this.schemaRegistry)return!1;const t=this.schemaRegistry.getBlockParseRules();for(const n of t){if(!this.schemaRegistry.getNodeSpec(n.type)?.isVoid)continue;const t=e.querySelectorAll(n.rule.tag);for(const e of Array.from(t)){if(!n.rule.getAttrs)return!0;if(!1!==n.rule.getAttrs(e))return!0}}return!1}handleDocumentPaste(e,t){if(!this.schemaRegistry)return;const n=Je(e,this.schemaRegistry);if(0===n.children.length)return;const s=t.selection,i=t.transaction("paste");let r;B(s)&&!M(s)&&(r=G(t,i));const o=et(t,r??(E(s)?s.nodeId:I(s)?s.blockId:s.anchor.blockId),this.schemaRegistry);if(!o)return;const a=I(s)&&"before"===s.side?0:1;let l,c,d=o.anchorIndex+a;for(const h of n.children){const e=st(h,u());i.insertNode(o.parentPath,d,e),d++,l=Ne(e),c=e}if(o.isAnchorEmpty&&!I(s)&&i.removeNode(o.parentPath,o.anchorIndex),l&&c){const e=nt(c,l),t=e?h(e).length:0;i.setSelection(N(l,t))}this.dispatch(i.build())}extractTextFromHTML(e){const t=document.createElement("template");return t.innerHTML=e,t.content.textContent??""}},wn=class{constructor(e,t,n){this.getState=e,this.dispatch=t,this.schemaRegistry=n}handleBlockPaste(e){let t;try{t=JSON.parse(e)}catch{return}const n=t.type;if(!n)return;const s=this.schemaRegistry?.getNodeSpec(n);if(this.schemaRegistry&&!s)return;const i=this.getState(),r=i.selection,o=E(r)?r.nodeId:I(r)?r.blockId:r.anchor.blockId,a=u(),l=it(t.attrs,s?.attrs),c=y(Z(n),void 0,a,l),h=Ze(i,o);if(h){const e=Xe(i,o,h,this.schemaRegistry);if(!e)return;const t=i.getBlock(h);if(!t)return;const n=i.transaction("paste");return n.insertNode(e.parentPath,t.children.length,c),n.setSelection(A(a,[...e.parentPath,a])),void this.dispatch(n.build())}const d=et(i,o,this.schemaRegistry);if(!d)return;const p=I(r)&&"before"===r.side?0:1,g=i.transaction("paste");g.insertNode(d.parentPath,d.anchorIndex+p,c),g.setSelection(A(a,[...d.parentPath,a])),this.dispatch(g.build())}handleRichPasteFromJson(e){let t;try{t=JSON.parse(e)}catch{return!1}return!(!Array.isArray(t)||0===t.length)&&this.handleRichPaste(t)}handleRichPaste(e){if(0===e.length)return!1;if(!e.some(e=>void 0!==e.type&&"paragraph"!==e.type||e.segments?.some(e=>"inline"===e.kind))&&e.length<=1)return!1;let t=this.getState();const n=t.selection;if(B(n)&&!M(n)){const n=t.transaction("paste"),s=G(t,n),i=n.build();if(this.dispatch(i),t=t.apply(i),s)return this.resolveAndInsertRichBlocks(e,t,s)}const s=E(n)?n.nodeId:I(n)?n.blockId:n.anchor.blockId;return this.resolveAndInsertRichBlocks(e,t,s)}resolveAndInsertRichBlocks(e,t,n){const s=t.selection,i=Ze(t,n);if(i){const s=Xe(t,n,i,this.schemaRegistry);if(!s)return!1;const r=t.getBlock(i),o=s.anchorIndex>=0?s.anchorIndex+1:r?.children.length??0;return this.insertRichBlocks(e,t,s,o,!0)}const r=et(t,n,this.schemaRegistry);if(!r)return!1;const o=I(s)&&"before"===s.side?0:1;return this.insertRichBlocks(e,t,r,r.anchorIndex+o,!I(s))}insertRichBlocks(e,t,n,s,i){const r=t.transaction("paste");let o,a=s,l=0;for(const c of e){const e=Ye(c,this.schemaRegistry);if(!e)continue;const t=tt(e);r.insertNode(n.parentPath,a,t),a++,o=t.id,l=(e.text??"").length}return i&&n.isAnchorEmpty&&n.anchorIndex>=0&&r.removeNode(n.parentPath,n.anchorIndex),o&&r.setSelection(N(o,l)),this.dispatch(r.build()),!0}},vn=class{getState;dispatch;fileHandlerRegistry;isReadOnly;getPasteInterceptors;handlePaste;htmlHandler;richBlockHandler;constructor(e,t){this.element=e,this.getState=t.getState,this.dispatch=t.dispatch,this.fileHandlerRegistry=t.fileHandlerRegistry,this.isReadOnly=t.isReadOnly??(()=>!1),this.getPasteInterceptors=t.getPasteInterceptors??(()=>[]),this.richBlockHandler=new wn(t.getState,t.dispatch,t.schemaRegistry),this.htmlHandler=new Sn(t.getState,t.dispatch,t.schemaRegistry,e=>this.richBlockHandler.handleRichPasteFromJson(e)),this.handlePaste=this.onPaste.bind(this),e.addEventListener("paste",this.handlePaste)}onPaste(e){if(e.preventDefault(),this.isReadOnly())return;const t=e.clipboardData;if(!t)return;const n=t.getData("application/x-notectl-block");if(n)return void this.richBlockHandler.handleBlockPaste(n);if(this.handleFilePaste(t))return;const s=t.getData("text/plain"),i=t.getData("text/html");s&&this.tryPasteInterceptors(s,i)||this.htmlHandler.handleHTMLOrTextPaste(t,s)}tryPasteInterceptors(e,t){const n=this.getPasteInterceptors(),s=this.getState();for(const i of n){const n=i.interceptor(e,t,s);if(n)return this.dispatch(n),!0}return!1}handleFilePaste(e){if(!this.fileHandlerRegistry)return!1;const t=Array.from(e.files);if(0===t.length)for(let s=0;s<e.items.length;s++){const n=e.items[s];if(n&&"file"===n.kind){const e=n.getAsFile();e&&t.push(e)}}if(0===t.length)return!1;let n=!1;for(const s of t){const e=this.fileHandlerRegistry.matchFileHandlers(s.type);for(const t of e){const e=t(s,null);if(!0===e||e instanceof Promise){n=!0;break}}}return n}destroy(){this.element.removeEventListener("paste",this.handlePaste)}},bn=class{compositionTracker;inputHandler;keyboardHandler;pasteHandler;clipboardHandler;constructor(e,t){this.compositionTracker=new Zt,this.inputHandler=new en(e,{getState:t.getState,dispatch:t.dispatch,syncSelection:t.syncSelection,inputRuleRegistry:t.inputRuleRegistry,isReadOnly:t.isReadOnly,compositionTracker:this.compositionTracker,getTextInputInterceptors:t.getTextInputInterceptors}),this.keyboardHandler=new Qt(e,{getState:t.getState,dispatch:t.dispatch,undo:t.undo,redo:t.redo,keymapRegistry:t.keymapRegistry,isReadOnly:t.isReadOnly,compositionTracker:this.compositionTracker,getTextDirection:t.getTextDirection,navigateFromGapCursor:t.navigateFromGapCursor}),this.pasteHandler=new vn(e,{getState:t.getState,dispatch:t.dispatch,schemaRegistry:t.schemaRegistry,fileHandlerRegistry:t.fileHandlerRegistry,isReadOnly:t.isReadOnly,getPasteInterceptors:t.getPasteInterceptors}),this.clipboardHandler=new Yt(e,{getState:t.getState,dispatch:t.dispatch,schemaRegistry:t.schemaRegistry,syncSelection:t.syncSelection,isReadOnly:t.isReadOnly})}destroy(){this.inputHandler.destroy(),this.keyboardHandler.destroy(),this.pasteHandler.destroy(),this.clipboardHandler.destroy()}},Rn=class{_contextKeymaps=[];_navigationKeymaps=[];_defaultKeymaps=[];registerKeymap(e,t){const n=t?.priority??"default";this.keymapArrayForPriority(n).push(e)}getKeymaps(){return[...this._contextKeymaps,...this._navigationKeymaps,...this._defaultKeymaps]}getKeymapsByPriority(){return{context:[...this._contextKeymaps],navigation:[...this._navigationKeymaps],default:[...this._defaultKeymaps]}}removeKeymap(e){for(const t of[this._contextKeymaps,this._navigationKeymaps,this._defaultKeymaps]){const n=t.indexOf(e);if(-1!==n)return void t.splice(n,1)}}clear(){this._contextKeymaps.length=0,this._navigationKeymaps.length=0,this._defaultKeymaps.length=0}keymapArrayForPriority(e){switch(e){case"context":return this._contextKeymaps;case"navigation":return this._navigationKeymaps;case"default":return this._defaultKeymaps}}},In=class{_inputRules=[];registerInputRule(e){this._inputRules.push(e)}getInputRules(){return this._inputRules}removeInputRule(e){const t=this._inputRules.indexOf(e);-1!==t&&this._inputRules.splice(t,1)}clear(){this._inputRules.length=0}},Cn=class{_fileHandlers=[];registerFileHandler(e,t){this._fileHandlers.push({pattern:e,handler:t})}getFileHandlers(){return this._fileHandlers}matchFileHandlers(e){const t=[];for(const n of this._fileHandlers)xn(n.pattern,e)&&t.push(n.handler);return t}removeFileHandler(e){const t=this._fileHandlers.findIndex(t=>t.handler===e);-1!==t&&this._fileHandlers.splice(t,1)}clear(){this._fileHandlers.length=0}};function xn(e,t){if("*"===e||"*/*"===e)return!0;if(e===t)return!0;if(e.endsWith("/*")){const n=e.slice(0,-1);return t.startsWith(n)}return!1}var Tn=class{_nodeViews=/* @__PURE__ */new Map;registerNodeView(e,t){if(this._nodeViews.has(e))throw new Error(`NodeView for type "${e}" is already registered.`);this._nodeViews.set(e,t)}getNodeViewFactory(e){return this._nodeViews.get(e)}removeNodeView(e){this._nodeViews.delete(e)}clear(){this._nodeViews.clear()}};function En(e,t){if(t){const n=t.getMarkSpec(e.type);if(n)return n.rank??100}switch(e.type){case"bold":return 0;case"italic":return 1;case"underline":return 2;default:return 100}}function Pn(e,t,n){if(0===t.length)return e;const s=[...t].sort((e,t)=>En(e,n)-En(t,n));let i=e;for(let r=s.length-1;r>=0;r--){const e=s[r];if(!e)continue;const t=Mn(e,n);t.appendChild(i),i=t}return i}function Mn(e,t){if(t){const n=t.getMarkSpec(e.type);if(n)return n.toDOM(e)}switch(e.type){case"bold":return document.createElement("strong");case"italic":return document.createElement("em");case"underline":return document.createElement("u");default:return document.createElement("span")}}var An=class{wrapperElement=null;container;registry;constructor(e,t){this.container=e,this.registry=t}get isActive(){return null!==this.wrapperElement}onCompositionStart(e){this.cleanup();const t=e.storedMarks;if(!t||0===t.length)return;const n=e.selection;if(!B(n))return;if(!M(n))return;const s=document.createElement("span");s.setAttribute("data-cursor-wrapper","");const i=document.createTextNode(""),r=Pn(i,t,this.registry);s.appendChild(r);const o=Ke();if(!o||0===o.rangeCount)return;let a;const l=Ve(this.container,o);if(l){const e=document.createRange();try{e.setStart(l.anchorNode,l.anchorOffset),e.setEnd(l.focusNode,l.focusOffset)}catch{return}a=e}else a=o.getRangeAt(0);a.insertNode(s);try{o.collapse(i,i.length)}catch{}this.wrapperElement=s}cleanup(){this.wrapperElement&&(this.wrapperElement.remove(),this.wrapperElement=null)}},Nn={error(e,t){void 0===t?console.error(e):console.error(e,t)},warn(e,t){void 0===t?console.warn(e):console.warn(e,t)},info(e,t){void 0===t?console.info(e):console.info(e,t)},debug(e,t){void 0===t?console.debug(e):console.debug(e,t)}},Bn={error(){},warn(){},info(){},debug(){}};function Dn(e,t){const n=`[${t}]`;return{error(t,s){e.error(`${n} ${t}`,s)},warn(t,s){e.warn(`${n} ${t}`,s)},info(t,s){e.info(`${n} ${t}`,s)},debug(t,s){e.debug(`${n} ${t}`,s)}}}var On=class{listeners=/* @__PURE__ */new Map;log;constructor(e=Nn){this.log=Dn(e,"EventBus")}emit(e,t){const n=this.listeners.get(e.id);if(n)for(const i of n)try{i(t)}catch(s){this.log.error(`Listener error on "${e.id}"`,s)}}on(e,t){const n=e.id;this.listeners.has(n)||this.listeners.set(n,/* @__PURE__ */new Set);const s=this.listeners.get(n)??/* @__PURE__ */new Set;return s.add(t),()=>{s.delete(t),0===s.size&&this.listeners.delete(n)}}off(e,t){const n=this.listeners.get(e.id);n&&(n.delete(t),0===n.size&&this.listeners.delete(e.id))}clear(){this.listeners.clear()}},Ln=class{commands=/* @__PURE__ */new Map;readonlyBypassActive=!1;log;constructor(e=Nn){this.log=Dn(e,"CommandRegistry")}register(e,t,n,s){if(this.commands.has(e)){const t=this.commands.get(e);throw new Error(`Command "${e}" is already registered by plugin "${t?.pluginId}".`)}const i=s?.readonlyAllowed??!1;this.commands.set(e,{name:e,handler:t,pluginId:n,readonlyAllowed:i})}canExecute(e,t){const n=this.commands.get(e);return!(!n||t&&!n.readonlyAllowed)}execute(e,t){const n=this.commands.get(e);if(!n)return!1;if(t&&!n.readonlyAllowed)return!1;const s=t&&n.readonlyAllowed;s&&(this.readonlyBypassActive=!0);try{return n.handler()}catch(i){return this.log.error(`Command "${e}" error`,i),!1}finally{s&&(this.readonlyBypassActive=!1)}}isReadonlyBypassed(){return this.readonlyBypassActive}has(e){return this.commands.has(e)}remove(e){this.commands.delete(e)}clear(){this.commands.clear(),this.readonlyBypassActive=!1}get rawMap(){return this.commands}},Hn=class{middlewares=[];middlewareSorted=null;pasteInterceptors=[];pasteInterceptorsSorted=null;textInputInterceptors=[];textInputInterceptorsSorted=null;log;constructor(e=Nn){this.log=Dn(e,"MiddlewareChain")}addMiddleware(e){this.middlewares.push(e),this.middlewareSorted=null}removeMiddleware(e){const t=this.middlewares.indexOf(e);-1!==t&&this.middlewares.splice(t,1),this.middlewareSorted=null}invalidateMiddlewareSort(){this.middlewareSorted=null}dispatch(e,t,n){if(0===this.middlewares.length)return void n(e);const s=this.getSortedMiddleware();let i=0,r=!1;const o=e=>{if(i<s.length){const n=s[i++];if(!n)return;let r=!1;const l=e=>{r||(r=!0,o(e))};try{n.middleware(e,t,l)}catch(a){this.log.error(`Middleware "${n.name}" error`,a),l(e)}}else r||(r=!0,n(e))};o(e)}getChain(){return this.getSortedMiddleware().map(e=>({name:e.name,priority:e.priority,pluginId:e.pluginId}))}addPasteInterceptor(e){this.pasteInterceptors.push(e),this.pasteInterceptorsSorted=null}removePasteInterceptor(e){const t=this.pasteInterceptors.indexOf(e);-1!==t&&this.pasteInterceptors.splice(t,1),this.pasteInterceptorsSorted=null}invalidatePasteSort(){this.pasteInterceptorsSorted=null}getPasteInterceptors(){return this.getSortedPasteInterceptors()}addTextInputInterceptor(e){this.textInputInterceptors.push(e),this.textInputInterceptorsSorted=null}removeTextInputInterceptor(e){const t=this.textInputInterceptors.indexOf(e);-1!==t&&this.textInputInterceptors.splice(t,1),this.textInputInterceptorsSorted=null}invalidateTextInputSort(){this.textInputInterceptorsSorted=null}getTextInputInterceptors(){return this.getSortedTextInputInterceptors()}get rawMiddlewares(){return this.middlewares}get rawPasteInterceptors(){return this.pasteInterceptors}get rawTextInputInterceptors(){return this.textInputInterceptors}clear(){this.middlewares.length=0,this.middlewareSorted=null,this.pasteInterceptors.length=0,this.pasteInterceptorsSorted=null,this.textInputInterceptors.length=0,this.textInputInterceptorsSorted=null}getSortedMiddleware(){return this.middlewareSorted||(this.middlewareSorted=[...this.middlewares].sort((e,t)=>e.priority-t.priority)),this.middlewareSorted}getSortedPasteInterceptors(){return this.pasteInterceptorsSorted||(this.pasteInterceptorsSorted=[...this.pasteInterceptors].sort((e,t)=>e.priority-t.priority)),this.pasteInterceptorsSorted}getSortedTextInputInterceptors(){return this.textInputInterceptorsSorted||(this.textInputInterceptorsSorted=[...this.textInputInterceptors].sort((e,t)=>e.priority-t.priority)),this.textInputInterceptorsSorted}};function zn(e,t,n,s){return{registerCommand:(s,i,r)=>{if(t.has(s)){const e=t.get(s);throw new Error(`Command "${s}" is already registered by plugin "${e?.pluginId}".`)}const o=r?.readonlyAllowed??!1;t.set(s,{name:s,handler:i,pluginId:e,readonlyAllowed:o}),n.commands.push(s)},executeCommand:s}}function _n(e,t){return{registerService:(n,s)=>{if(e.has(n.id))throw new Error(`Service "${n.id}" is already registered by another plugin.`);e.set(n.id,s),t.services.push(n.id)},getService:t=>e.get(t.id)}}function Fn(e,t){const{pluginId:n,middlewares:s,pasteInterceptors:i,textInputInterceptors:r,invalidateMiddlewareSort:o,invalidatePasteSort:a,invalidateTextInputSort:l}=e;return{registerMiddleware:(e,i)=>{const r={name:i?.name??(e.name||"anonymous"),pluginId:n,middleware:e,priority:i?.priority??100};s.push(r),t.middlewares.push(r),o()},registerPasteInterceptor:(e,s)=>{const r={name:s?.name??"anonymous",pluginId:n,interceptor:e,priority:s?.priority??100};i.push(r),t.pasteInterceptors.push(r),a()},registerTextInputInterceptor:(e,s)=>{const i={name:s?.name??"anonymous",pluginId:n,interceptor:e,priority:s?.priority??100};r.push(i),t.textInputInterceptors.push(i),l()}}}function Kn(e,t){return{registerNodeSpec:n=>{e.registerNodeSpec(n),t.nodeSpecs.push(n.type)},registerMarkSpec:n=>{e.registerMarkSpec(n),t.markSpecs.push(n.type)},registerInlineNodeSpec:n=>{e.registerInlineNodeSpec(n),t.inlineNodeSpecs.push(n.type)}}}function $n(e,t,n){return{registerNodeView:(e,s)=>{t.nodeViewRegistry.registerNodeView(e,s),n.nodeViews.push(e)},registerKeymap:(e,s)=>{t.keymapRegistry.registerKeymap(e,s),n.keymaps.push(e)},registerInputRule:e=>{t.inputRuleRegistry.registerInputRule(e),n.inputRules.push(e)},registerToolbarItem:s=>{t.toolbarRegistry.registerToolbarItem(s,e),n.toolbarItems.push(s.id)},registerBlockTypePickerEntry:e=>{t.blockTypePickerRegistry.registerBlockTypePickerEntry(e),n.blockTypePickerEntries.push(e.id)},registerFileHandler:(e,s)=>{t.fileHandlerRegistry.registerFileHandler(e,s),n.fileHandlers.push(s)},registerStyleSheet:e=>{const s=new CSSStyleSheet;s.replaceSync(e),t.pluginStyleSheets.push(s),n.stylesheets.push(s)}}}function Vn(e){return{getSchemaRegistry:()=>e.schemaRegistry,getKeymapRegistry:()=>e.keymapRegistry,getInputRuleRegistry:()=>e.inputRuleRegistry,getFileHandlerRegistry:()=>e.fileHandlerRegistry,getNodeViewRegistry:()=>e.nodeViewRegistry,getToolbarRegistry:()=>e.toolbarRegistry,getBlockTypePickerRegistry:()=>e.blockTypePickerRegistry}}var jn=class{plugins=/* @__PURE__ */new Map;initOrder=[];startedInitOrder=[];initialized=!1;initializing=!1;readOnly=!1;log;constructor(e,t=Nn){this.tracker=e,this.log=Dn(t,"PluginLifecycle")}register(e){if(this.initialized||this.initializing)throw new Error(`Cannot register plugin "${e.id}" after initialization.`);if(this.plugins.has(e.id))throw new Error(`Plugin "${e.id}" is already registered.`);this.plugins.set(e.id,e)}get(e){return this.plugins.get(e)}getPluginIds(){return[...this.plugins.keys()]}async init(e,t){if(!this.initialized&&!this.initializing){this.initializing=!0;try{this.initOrder=this.resolveOrder();for(const s of this.initOrder){if(e.isCancelled?.())return;const i=this.plugins.get(s);if(!i)continue;this.startedInitOrder.push(s);const r=t(s,e);try{await i.init(r)}catch(n){throw await this.rollbackStartedPlugins(),n}}if(e.isCancelled?.())return;if(e.onBeforeReady&&await e.onBeforeReady(),e.isCancelled?.())return;for(const t of this.initOrder){if(e.isCancelled?.())return;const s=this.plugins.get(t);if(s?.onReady)try{await s.onReady()}catch(n){this.log.error(`Plugin "${t}" error in onReady`,n)}}this.initialized=!0}finally{this.initializing=!1}}}async destroy(){const e=[...this.startedInitOrder].reverse();for(const t of e)await this.destroyPlugin(t);this.plugins.clear(),this.initOrder=[],this.startedInitOrder=[],this.initialized=!1,this.initializing=!1}notifyStateChange(e,t,n){for(const i of this.initOrder){const r=this.plugins.get(i);if(r?.onStateChange)try{r.onStateChange(e,t,n)}catch(s){this.log.error(`Plugin "${i}" error in onStateChange`,s)}}}collectDecorations(e,t){let n=ve.empty;for(const i of this.initOrder){const r=this.plugins.get(i);if(r?.decorations)try{const s=r.decorations(e,t);s.isEmpty||(n=n.merge(s))}catch(s){this.log.error(`Plugin "${i}" error in decorations()`,s)}}return n}configurePlugin(e,t){const n=this.plugins.get(e);if(!n)throw new Error(`Plugin "${e}" not found.`);if(n.onConfigure)try{n.onConfigure(t)}catch(s){this.log.error(`Plugin "${e}" error in onConfigure`,s)}}isReadOnly(){return this.readOnly}setReadOnly(e){if(this.readOnly!==e){this.readOnly=e;for(const n of this.initOrder){const s=this.plugins.get(n);if(s?.onReadOnlyChange)try{s.onReadOnlyChange(e)}catch(t){this.log.error(`Plugin "${n}" error in onReadOnlyChange`,t)}}}}get rawPlugins(){return this.plugins}get isInitialized(){return this.initialized}async destroyPlugin(e){const t=this.plugins.get(e);if(t?.destroy)try{await t.destroy()}catch(n){this.log.error(`Plugin "${e}" error in destroy`,n)}this.tracker.cleanup(e)}async rollbackStartedPlugins(){const e=[...this.startedInitOrder].reverse();for(const t of e)await this.destroyPlugin(t);this.startedInitOrder=[],this.initOrder=[],this.initialized=!1}resolveOrder(){const e=[...this.plugins.keys()];for(const r of e){const e=this.plugins.get(r);if(e)for(const t of e.dependencies??[])if(!this.plugins.has(t))throw new Error(`Plugin "${r}" depends on "${t}", which is not registered.`)}const t=/* @__PURE__ */new Map,n=/* @__PURE__ */new Map;for(const r of e)t.set(r,0),n.set(r,[]);for(const r of e){const e=this.plugins.get(r)?.dependencies??[];t.set(r,e.length);for(const t of e){const e=n.get(t);e&&e.push(r)}}const s=[];for(const[r,o]of t)0===o&&s.push(r);const i=[];for(;s.length>0;){s.sort((e,t)=>(this.plugins.get(e)?.priority??100)-(this.plugins.get(t)?.priority??100));const e=s.shift();if(!e)break;i.push(e);for(const i of n.get(e)??[]){const e=(t.get(i)??0)-1;t.set(i,e),0===e&&s.push(i)}}if(i.length!==e.length){const t=e.filter(e=>!i.includes(e));throw new Error(`Circular dependency detected among plugins: ${t.join(", ")}`)}return i}},Un=class{registrations=/* @__PURE__ */new Map;pluginStyleSheets=[];constructor(e){this.deps=e}track(e,t){this.registrations.set(e,t)}cleanup(e){const t=this.registrations.get(e);if(t){for(const e of t.commands)this.deps.commandRegistry.remove(e);for(const e of t.services)this.deps.serviceRegistry.remove(e);for(const e of t.middlewares)this.deps.middlewareChain.removeMiddleware(e);for(const e of t.pasteInterceptors)this.deps.middlewareChain.removePasteInterceptor(e);for(const e of t.textInputInterceptors)this.deps.middlewareChain.removeTextInputInterceptor(e);for(const e of t.unsubscribers)e();for(const e of t.nodeSpecs)this.deps.schemaRegistry.removeNodeSpec(e);for(const e of t.markSpecs)this.deps.schemaRegistry.removeMarkSpec(e);for(const e of t.inlineNodeSpecs)this.deps.schemaRegistry.removeInlineNodeSpec(e);for(const e of t.nodeViews)this.deps.nodeViewRegistry.removeNodeView(e);for(const e of t.keymaps)this.deps.keymapRegistry.removeKeymap(e);for(const e of t.inputRules)this.deps.inputRuleRegistry.removeInputRule(e);for(const e of t.toolbarItems)this.deps.toolbarRegistry.removeToolbarItem(e);for(const e of t.fileHandlers)this.deps.fileHandlerRegistry.removeFileHandler(e);for(const e of t.blockTypePickerEntries)this.deps.blockTypePickerRegistry.removeBlockTypePickerEntry(e);for(const e of t.stylesheets){const t=this.pluginStyleSheets.indexOf(e);-1!==t&&this.pluginStyleSheets.splice(t,1)}this.registrations.delete(e)}}clear(){this.registrations.clear(),this.pluginStyleSheets.length=0}get rawStyleSheets(){return this.pluginStyleSheets}},qn=class{services=/* @__PURE__ */new Map;register(e,t){if(this.services.has(e.id))throw new Error(`Service "${e.id}" is already registered.`);this.services.set(e.id,t)}get(e){return this.services.get(e.id)}has(e){return this.services.has(e)}remove(e){this.services.delete(e)}clear(){this.services.clear()}get rawMap(){return this.services}},Wn=class{schemaRegistry=new Pt;keymapRegistry=new Rn;inputRuleRegistry=new In;fileHandlerRegistry=new Cn;nodeViewRegistry=new Tn;toolbarRegistry=new pt;blockTypePickerRegistry=new dt;logger;commandRegistry;serviceRegistry=new qn;middlewareChain;eventBus;registrationTracker;lifecycle;constructor(e={}){this.logger=e.logger??Nn,this.commandRegistry=new Ln(this.logger),this.middlewareChain=new Hn(this.logger),this.eventBus=new On(this.logger),this.registrationTracker=new Un({commandRegistry:this.commandRegistry,serviceRegistry:this.serviceRegistry,middlewareChain:this.middlewareChain,schemaRegistry:this.schemaRegistry,keymapRegistry:this.keymapRegistry,inputRuleRegistry:this.inputRuleRegistry,nodeViewRegistry:this.nodeViewRegistry,toolbarRegistry:this.toolbarRegistry,fileHandlerRegistry:this.fileHandlerRegistry,blockTypePickerRegistry:this.blockTypePickerRegistry}),this.lifecycle=new jn(this.registrationTracker,this.logger)}registerService(e,t){this.serviceRegistry.register(e,t)}register(e){this.lifecycle.register(e)}async init(e){return this.lifecycle.init(e,(e,t)=>this.createContext(e,t))}notifyStateChange(e,t,n){this.lifecycle.notifyStateChange(e,t,n)}collectDecorations(e,t){return this.lifecycle.collectDecorations(e,t)}dispatchWithMiddleware(e,t,n){this.middlewareChain.dispatch(e,t,n)}canExecuteCommand(e){return this.commandRegistry.canExecute(e,this.lifecycle.isReadOnly())}executeCommand(e){return this.commandRegistry.execute(e,this.lifecycle.isReadOnly())}isReadonlyBypassed(){return this.commandRegistry.isReadonlyBypassed()}configurePlugin(e,t){this.lifecycle.configurePlugin(e,t)}isReadOnly(){return this.lifecycle.isReadOnly()}setReadOnly(e){this.lifecycle.setReadOnly(e)}getPluginIds(){return this.lifecycle.getPluginIds()}getMiddlewareChain(){return this.middlewareChain.getChain()}getPasteInterceptors(){return this.middlewareChain.getPasteInterceptors()}getTextInputInterceptors(){return this.middlewareChain.getTextInputInterceptors()}get(e){return this.lifecycle.get(e)}getService(e){return this.serviceRegistry.get(e)}onEvent(e,t){return this.eventBus.on(e,t)}getPluginStyleSheets(){return this.registrationTracker.rawStyleSheets}async destroy(){await this.lifecycle.destroy(),this.commandRegistry.clear(),this.serviceRegistry.clear(),this.middlewareChain.clear(),this.registrationTracker.clear(),this.eventBus.clear(),this.schemaRegistry.clear(),this.keymapRegistry.clear(),this.inputRuleRegistry.clear(),this.fileHandlerRegistry.clear(),this.nodeViewRegistry.clear(),this.toolbarRegistry.clear(),this.blockTypePickerRegistry.clear()}createContext(e,t){const n=t.getCompositionState??(()=>Gn),{context:s,registrations:i}=function(e){const t={commands:[],services:[],middlewares:[],pasteInterceptors:[],textInputInterceptors:[],unsubscribers:[],nodeSpecs:[],markSpecs:[],inlineNodeSpecs:[],nodeViews:[],keymaps:[],inputRules:[],toolbarItems:[],fileHandlers:[],blockTypePickerEntries:[],stylesheets:[]},n=function(e,t){return{emit:(t,n)=>e.emit(t,n),on:(n,s)=>{const i=e.on(n,s);return t.unsubscribers.push(i),i},off:(t,n)=>e.off(t,n)}}(e.eventBus,t);return{context:{getState:e.getState,dispatch:e.dispatch,getContainer:e.getContainer,getPluginContainer:e.getPluginContainer,isReadOnly:e.isReadOnly,getEventBus:()=>n,...zn(e.pluginId,e.commands,t,e.executeCommand),..._n(e.services,t),...Fn(e,t),...Kn(e.schemaRegistry,t),...$n(e.pluginId,e,t),...Vn(e),updateConfig:t=>{const n=e.plugins.get(e.pluginId);if(n?.onConfigure)try{n.onConfigure(t)}catch(s){const t=`[PluginContext] Plugin "${e.pluginId}" error in onConfigure`;e.logger.error(t,s)}},announce:t=>{e.announce?.(t)},hasAnnouncement:()=>e.hasAnnouncement?.()??!1,getCompositionState:()=>e.getCompositionState()},registrations:t}}({pluginId:e,logger:this.logger,getState:t.getState,dispatch:t.dispatch,getContainer:t.getContainer,getPluginContainer:t.getPluginContainer,announce:t.announce,hasAnnouncement:t.hasAnnouncement,commands:this.commandRegistry.rawMap,services:this.serviceRegistry.rawMap,middlewares:this.middlewareChain.rawMiddlewares,pasteInterceptors:this.middlewareChain.rawPasteInterceptors,textInputInterceptors:this.middlewareChain.rawTextInputInterceptors,pluginStyleSheets:this.registrationTracker.rawStyleSheets,plugins:this.lifecycle.rawPlugins,eventBus:this.eventBus,schemaRegistry:this.schemaRegistry,keymapRegistry:this.keymapRegistry,inputRuleRegistry:this.inputRuleRegistry,toolbarRegistry:this.toolbarRegistry,blockTypePickerRegistry:this.blockTypePickerRegistry,fileHandlerRegistry:this.fileHandlerRegistry,nodeViewRegistry:this.nodeViewRegistry,getCompositionState:n,isReadOnly:()=>this.lifecycle.isReadOnly(),invalidateMiddlewareSort:()=>this.middlewareChain.invalidateMiddlewareSort(),invalidatePasteSort:()=>this.middlewareChain.invalidatePasteSort(),invalidateTextInputSort:()=>this.middlewareChain.invalidateTextInputSort(),executeCommand:e=>this.executeCommand(e)});return this.registrationTracker.track(e,i),s}},Gn={isComposing:!1,activeBlockId:null},Qn={EN:"en",DE:"de",ES:"es",FR:"fr",ZH:"zh",RU:"ru",AR:"ar",HI:"hi",PT:"pt",BROWSER:"browser"},Jn={paragraph:"Paragraph",heading:"Heading",code_block:"Code Block",blockquote:"Block Quote",list_item:"List Item",horizontal_rule:"Horizontal Rule",image:"Image",table:"Table"};function Xn(e,t){return"heading"===e&&t?.level?`Heading ${t.level}`:Jn[e]??e}function Yn(e,t){const n=t?.document??globalThis.document,s=t?.container??n.head;if(t?.id){const s=n.getElementById(t.id);if(s instanceof HTMLStyleElement)return s.textContent=e,t.nonce&&s.setAttribute("nonce",t.nonce),s}const i=n.createElement("style");return i.textContent=e,t?.id&&(i.id=t.id),t?.nonce&&i.setAttribute("nonce",t.nonce),s.appendChild(i),i}function Zn(e,t){const n=(t??globalThis.document).getElementById(e);n&&n.remove()}var es=/* @__PURE__ */new WeakSet;function ts(e,t){const n=t?.target??globalThis.document,s=new CSSStyleSheet;return s.replaceSync(e),es.add(s),t?.replace&&(n.adoptedStyleSheets=n.adoptedStyleSheets.filter(e=>!es.has(e))),n.adoptedStyleSheets=[...n.adoptedStyleSheets,s],s}function ns(e,t){const n=t??globalThis.document;n.adoptedStyleSheets=n.adoptedStyleSheets.filter(t=>t!==e)}function ss(e,t,n){const s=t?function(e,t){return{children:e.children.map(e=>is(e,t))}}(e,t):e,i=t?J(t):void 0;n(Ot.create({doc:s,schema:i}))}function is(e,n){const s=n.getNodeSpec(e.type);if(!s?.content||!((r=s.content).allow.length>0)||r.allow.includes("text"))return e;var r;if(v(e)){const t=e.children.length>0?e.children:void 0,n=y(Z("paragraph"),t);return y(e.type,[n],e.id,e.attrs)}const o=e.children.map(e=>i(e)||t(e)?e:is(e,n));return y(e.type,o,e.id,e.attrs)}function rs(e){return e.doc.children.map(os).join("\n")}function os(e){return v(e)?h(e):S(e).map(os).join("\n")}function as(e){if(!e)return!0;if(0===e.children.length)return!0;if(e.children.length>1)return!1;const t=e.children[0];return!t||"paragraph"===t.type&&0===l(t)}var ls=class{config={};getConfig(){return this.config}setConfig(e){this.config=e}mergeConfig(e){this.config={...this.config,...e}}applyAttribute(e,t,n){if("placeholder"===e){const e=t??void 0;this.config={...this.config,placeholder:e},this.applyPlaceholder(e,n.contentElement)}if("readonly"===e){const e=null!==t;this.applyReadonly(e,n.contentElement,n.pluginManager),this.config={...this.config,readonly:e}}if("theme"===e){const e=t??void 0;this.config={...this.config,theme:e},n.themeController?.apply(e??yt.Light)}"paper-size"===e&&(null===t?(n.applyPaperSize(void 0),this.config={...this.config,paperSize:void 0}):bt(t)&&(n.applyPaperSize(t),this.config={...this.config,paperSize:t})),"dir"===e&&this.applyDir("ltr"===t||"rtl"===t?t:void 0,n.contentElement,n.editorWrapper)}applyRuntimeConfig(e,t){void 0!==e.placeholder&&this.applyPlaceholder(e.placeholder,t.contentElement),void 0!==e.readonly&&this.applyReadonly(e.readonly,t.contentElement,t.pluginManager),"paperSize"in e&&t.applyPaperSize(e.paperSize),"dir"in e&&this.applyDir(e.dir,t.contentElement,t.editorWrapper),this.config={...this.config,...e}}applyTheme(e,t){this.config={...this.config,theme:e},t?.apply(e)}getTheme(){return this.config.theme??yt.Light}get isReadOnly(){return this.config.readonly??!1}getPaperSize(){return this.config.paperSize}applyPlaceholder(e,t){if(!t)return;const n=t.getAttribute("data-default-placeholder")??"";t.setAttribute("data-placeholder",e??n)}applyReadonly(e,t,n){t&&(t.contentEditable=e?"false":"true",e?t.setAttribute("aria-readonly","true"):t.removeAttribute("aria-readonly"),n?.setReadOnly(e))}applyDir(e,t,n){t&&(e?(n?.setAttribute("dir",e),t.setAttribute("dir",e)):(n?.removeAttribute("dir"),t.removeAttribute("dir")))}},cs=class{listeners=/* @__PURE__ */new Map;on(e,t){this.listeners.has(e)||this.listeners.set(e,/* @__PURE__ */new Set),this.listeners.get(e)?.add(t)}off(e,t){this.listeners.get(e)?.delete(t)}emit(e,t){const n=this.listeners.get(e);if(n)for(const s of n)s(t)}clear(){this.listeners.clear()}},hs=class{deps;handleSelectionChange;handleMousedown;handleDragover;handleDrop;handleCompositionStart;handleCompositionEnd;pendingNodeSelectionClear=!1;pendingGapCursorClear=!1;constructor(e){this.deps=e,this.handleCompositionStart=()=>{e.cursorWrapper.onCompositionStart(e.getState())},this.handleCompositionEnd=()=>{e.cursorWrapper.cleanup()},e.contentElement.addEventListener("compositionstart",this.handleCompositionStart),e.contentElement.addEventListener("compositionend",this.handleCompositionEnd),this.handleSelectionChange=this.onSelectionChange.bind(this),document.addEventListener("selectionchange",this.handleSelectionChange),this.handleMousedown=this.onMousedown.bind(this),e.contentElement.addEventListener("mousedown",this.handleMousedown),this.handleDragover=this.onDragover.bind(this),e.contentElement.addEventListener("dragover",this.handleDragover),this.handleDrop=this.onDrop.bind(this),e.contentElement.addEventListener("drop",this.handleDrop)}syncSelectionFromDOM(){if(this.deps.compositionState.isComposing)return;this.deps.cursorWrapper.isActive&&this.deps.cursorWrapper.cleanup();const e=this.deps.getState();if(E(e.selection)&&!this.pendingNodeSelectionClear)return;if(I(e.selection)&&!this.pendingGapCursorClear)return;this.pendingNodeSelectionClear=!1,this.pendingGapCursorClear=!1;const t=Fe(this.deps.contentElement);if(!t)return;if(x(t,e.selection))return;const n=e.transaction("input").setSelection(t).setStoredMarks(null,e.storedMarks).build(),s=e.apply(n);this.deps.applyUpdate(s,n,!0)}destroy(){const e=this.deps.contentElement;e.removeEventListener("compositionstart",this.handleCompositionStart),e.removeEventListener("compositionend",this.handleCompositionEnd),document.removeEventListener("selectionchange",this.handleSelectionChange),e.removeEventListener("mousedown",this.handleMousedown),e.removeEventListener("dragover",this.handleDragover),e.removeEventListener("drop",this.handleDrop)}onSelectionChange(){if(this.deps.isUpdating())return;const e=this.deps.contentElement.getRootNode(),t="activeElement"in e?e.activeElement:document.activeElement;(this.deps.contentElement.contains(t)||t===this.deps.contentElement)&&this.syncSelectionFromDOM()}onMousedown(e){if(this.deps.isUpdating())return;this.deps.onMousedown?.();const t=e.target;if(!(t instanceof HTMLElement))return;const n=t.closest("[data-block-id]");if(!(n instanceof HTMLElement&&this.deps.contentElement.contains(n)))return void((this.deps.contentElement.contains(t)||t===this.deps.contentElement)&&this.handleClickBelowContent(e));if(!n.hasAttribute("data-void")&&!n.hasAttribute("data-selectable"))return void this.markPendingSelectionClear();if(n.querySelector("[data-content-dom]")?.contains(t))return void this.markPendingSelectionClear();e.preventDefault(),this.deps.contentElement.focus();const s=A(ne(n.getAttribute("data-block-id")??""),ie(this.deps.contentElement,n)),i=this.deps.getState(),r=i.transaction("input").setSelection(s).setStoredMarks(null,i.storedMarks).build(),o=i.apply(r);this.deps.applyUpdate(o,r)}handleClickBelowContent(e){if(this.deps.isReadOnly())return;const t=this.deps.getState(),n=t.doc.children[t.doc.children.length-1];if(!n)return;const s=n.id,i=this.deps.contentElement.querySelector(`[data-block-id="${s}"]`);if(!i)return;const o=i.getBoundingClientRect();if(e.clientY<=o.bottom)return;const a=t.getBlock(s);if("paragraph"===a?.type&&0===l(a)){const n=t.transaction("input").setSelection(N(s,0)).build();return this.deps.dispatch(n),void e.preventDefault()}e.preventDefault(),this.deps.contentElement.focus();const c=u(),h=t.transaction("input").insertNode([],t.doc.children.length,r(c)).setSelection(N(c,0)).build();this.deps.dispatch(h)}onDragover(e){this.deps.fileHandlerRegistry&&e.dataTransfer&&e.dataTransfer.types.includes("Files")&&e.preventDefault()}onDrop(e){if(this.deps.isReadOnly())return;if(!this.deps.fileHandlerRegistry)return;if(!e.dataTransfer)return;const t=Array.from(e.dataTransfer.files);if(0===t.length)return;const n=this.getPositionFromPoint(e.clientX,e.clientY);let s=!1;for(const i of t){const e=this.deps.fileHandlerRegistry.matchFileHandlers(i.type);for(const t of e){const e=t(i,n);if(!0===e||e instanceof Promise){s=!0;break}}}s&&e.preventDefault()}getPositionFromPoint(e,t){const n=Ce(this.deps.contentElement.getRootNode(),e,t);return n&&this.deps.contentElement.contains(n.node)?je(this.deps.contentElement,n.node,n.offset):null}markPendingSelectionClear(){const e=this.deps.getState();E(e.selection)&&(this.pendingNodeSelectionClear=!0),I(e.selection)&&(this.pendingGapCursorClear=!0)}},ds=class{deps;navigationKeymap=null;goalColumn=null;preserveGoalColumn=!1;constructor(e){this.deps=e,this.registerKeymaps()}resetAfterUpdate(){this.preserveGoalColumn||(this.goalColumn=null)}clearGoalColumn(){this.goalColumn=null}destroy(){this.navigationKeymap&&this.deps.keymapRegistry&&(this.deps.keymapRegistry.removeKeymap(this.navigationKeymap),this.navigationKeymap=null)}registerKeymaps(){if(!this.deps.keymapRegistry)return;const e={ArrowLeft:"left",ArrowRight:"right",ArrowUp:"up",ArrowDown:"down"},t={};for(const[n,s]of Object.entries(e))t[n]=()=>this.handleArrow(s);this.navigationKeymap=t,this.deps.keymapRegistry.registerKeymap(t,{priority:"navigation"})}handleArrow(e){const t=this.deps.getState();return!E(t.selection)&&!I(t.selection)&&!!M(t.selection)&&("left"===e||"right"===e?this.handleHorizontalArrow(e):this.handleVerticalArrow(e))}handleHorizontalArrow(e){this.goalColumn=null;const t=this.deps.getState(),n=this.resolveLogicalDirection(t,e),s=xe(t,n);if(s)return this.deps.dispatch(s),this.validateSelectionAfterInlineSkip(),!0;if(!Pe(this.deps.contentElement,t,e))return!1;const i=Te(t,n);return!!i&&(this.deps.dispatch(i),!0)}resolveLogicalDirection(e,t){const n=e.selection;if(!B(n))return t;const s=this.deps.contentElement.querySelector(`[data-block-id="${n.anchor.blockId}"]`);return s instanceof HTMLElement&&"rtl"===_e(s)?"left"===t?"right":"left":t}handleVerticalArrow(e){const t=this.deps.getState(),n=this.deps.contentElement.ownerDocument.getSelection?.()??null,s=n?Ae(n,this.deps.contentElement):null;if(!Pe(this.deps.contentElement,t,e,s))return!1;null===this.goalColumn&&s&&(this.goalColumn=s.left),this.preserveGoalColumn=!0;const i=Me(this.deps.contentElement,t,e,this.goalColumn);return i?(this.deps.dispatch(i),this.preserveGoalColumn=!1,!0):(this.preserveGoalColumn=!1,!1)}validateSelectionAfterInlineSkip(){const e=this.deps.getState(),t=Fe(this.deps.contentElement);t&&x(t,e.selection)||$e(this.deps.contentElement,e.selection)}};function ps(e,t){const n=[];let s=null,i=[];for(const r of e){const e=t.getNodeSpec(r.type)?.wrapper?.(r);e&&s&&e.key===s.key?i.push(r.id):e?(s&&i.length>0&&n.push({spec:s,blockIds:i}),s=e,i=[r.id]):(s&&i.length>0&&n.push({spec:s,blockIds:i}),s=null,i=[])}return s&&i.length>0&&n.push({spec:s,blockIds:i}),n}function us(e,t){if(t.className&&e.className!==t.className&&(e.className=t.className),t.attrs)for(const[n,s]of Object.entries(t.attrs))e.getAttribute(n)!==s&&e.setAttribute(n,s)}function gs(e){const t=document.createElement(e.tag);if(t.setAttribute("data-block-wrapper",e.key),e.className&&(t.className=e.className),e.attrs)for(const[n,s]of Object.entries(e.attrs))t.setAttribute(n,s);return t}function ms(e,t,n){t!==(n?n.nextSibling:e.firstChild)&&(n||t.parentNode!==e||t!==e.firstChild)&&(n?n.after(t):e.insertBefore(t,e.firstChild))}function fs(e,t,n){for(let i=0;i<t.length;i++){const s=t[i];if(!s)continue;const r=n.querySelector(`[data-block-id="${s}"]`);if(!r)continue;const o=e.children[i]??null;r!==o&&(o?e.insertBefore(r,o):e.appendChild(r))}const s=new Set(t);for(const i of Array.from(e.children)){const t=i.getAttribute("data-block-id");t&&!s.has(t)&&n.insertBefore(i,e)}}function ys(e,t,n){if(!n)return;const s=ps(t,n);for(const i of s){const t=e.querySelector(`[data-block-id="${i.blockIds[0]}"]`);if(!t)continue;const n=gs(i.spec);t.before(n);for(const s of i.blockIds){const t=e.querySelector(`[data-block-id="${s}"]`);t&&n.appendChild(t)}}}function ks(e){e.parentElement?.removeChild(e)}function Ss(e,t,n){const s=e.parentElement;s?s.replaceChild(t,e):n.replaceChild(t,e)}function ws(e,t,n){if(t?.parentElement){const e=t.parentElement;return void(t.nextSibling?e.insertBefore(n,t.nextSibling):e.appendChild(n))}e.firstChild?e.insertBefore(n,e.firstChild):e.appendChild(n)}function vs(e,t){if(t){const n=t.getInlineNodeSpec(e.inlineType);if(n){const t=n.toDOM(e);return t.setAttribute("contenteditable","false"),t}}const n=document.createElement("span");return n.setAttribute("data-inline-type",e.inlineType),n.setAttribute("contenteditable","false"),n}function bs(e){let t=e.replace(/ {2}/g," ");return t.endsWith(" ")&&(t=`${t.slice(0,-1)} `),t.startsWith(" ")&&(t=` ${t.slice(1)}`),t}function Rs(e){const t=e.nodeName??"span",n=document.createElement(t);if(n.setAttribute("data-decoration","true"),e.class)for(const s of e.class.split(" "))s&&n.classList.add(s);e.style&&rt(n,e.style);for(const[s,i]of Object.entries(e))"class"!==s&&"style"!==s&&"nodeName"!==s&&void 0!==i&&n.setAttribute(s,i);return n}function Is(e,t,n){const s=n?.decorations?.findNode(t);if(s&&0!==s.length)for(const i of s){if(i.attrs.class)for(const t of i.attrs.class.split(" "))t&&e.classList.add(t);i.attrs.style&&ht(e,i.attrs.style)}}function Cs(e,t,n,s){const i=s?.decorations?.findInline(e.id),r=s?.nodeViewRegistry;if(r&&t&&n&&s?.getState&&s?.dispatch){const o=r.getNodeViewFactory(e.type);if(o){const r=o(e,s.getState,s.dispatch);n.set(e.id,r);const a=t.getNodeSpec(e.type);if(a?.isVoid&&r.dom.setAttribute("data-void","true"),a?.selectable&&r.dom.setAttribute("data-selectable","true"),r.contentDOM&&r.contentDOM!==r.dom&&r.contentDOM.setAttribute("data-content-dom","true"),v(e)&&r.contentDOM)xs(r.contentDOM,e,t,i);else{const i=S(e),o=/* @__PURE__ */new Map;for(const e of i){const i=r.getContentDOM?.(e.id)??r.contentDOM;if(i){const r=Cs(e,t,n,s);i.appendChild(r);let a=o.get(i);a||(a=[],o.set(i,a)),a.push(e)}}for(const[e,n]of o)ys(e,n,t)}return r.dom.setAttribute("data-block-type",e.type),Is(r.dom,e.id,s),r.dom}}if(t){const r=t.getNodeSpec(e.type);if(r){const o=r.toDOM(e);if(r.isVoid&&o.setAttribute("data-void","true"),r.selectable&&o.setAttribute("data-selectable","true"),!r.isVoid)if(v(e))xs(o,e,t,i);else{const i=S(e);for(const e of i){const i=Cs(e,t,n,s);o.appendChild(i)}ys(o,i,t)}return o.setAttribute("data-block-type",e.type),Is(o,e.id,s),o}}return function(e,t,n){const s=se("p",e.id);return s.setAttribute("data-block-type",e.type),xs(s,e,t,n),s}(e,t,i)}function xs(e,n,s,r){for(const t of e.querySelectorAll("[data-cursor-wrapper]"))t.remove();const o=w(n);if(1===o.length&&i(o[0])&&""===o[0].text)return void e.appendChild(document.createElement("br"));if(r&&0!==r.length)!function(e,n,s,i){let r=0;for(const o of n){if(t(o)){e.appendChild(vs(o,i)),r+=1;continue}const n=r,a=r+o.text.length;if(0===o.text.length){r=a;continue}const l=/* @__PURE__ */new Set;l.add(n),l.add(a);for(const e of s){const t=Math.max(n,e.from),s=Math.min(a,e.to);t>n&&t<a&&l.add(t),s>n&&s<a&&l.add(s)}const c=[...l].sort((e,t)=>e-t);for(let t=0;t<c.length-1;t++){const r=c[t],a=c[t+1];if(void 0===r||void 0===a||r>=a)continue;const l=r-n,h=a-n,d=o.text.slice(l,h),p=[];for(const e of s)e.from<=r&&e.to>=a&&p.push(e);let u=Pn(document.createTextNode(bs(d)),o.marks,i);for(const e of p){const t=Rs(e.attrs);t.appendChild(u),u=t}e.appendChild(u)}r=a}}(e,o,r,s);else for(const t of o)i(t)?e.appendChild(Ts(t,s)):e.appendChild(vs(t,s));const a=o[o.length-1];a&&t(a)&&"hard_break"===a.inlineType&&e.appendChild(document.createElement("br"))}function Ts(e,t){return""===e.text?document.createTextNode(""):Pn(document.createTextNode(bs(e.text)),e.marks,t)}function Es(e,t,n,s){const i=t?.doc.children??[],r=n.doc.children,o=s?.registry,a=s?.nodeViews,l=null!=s?.compositionBlockId,c=/* @__PURE__ */new Map;for(const m of function(e){const t=[];for(const n of Array.from(e.children))if(n instanceof HTMLElement)if(n.hasAttribute("data-block-id"))t.push(n);else if(n.hasAttribute("data-block-wrapper"))for(const e of Array.from(n.children))e instanceof HTMLElement&&e.hasAttribute("data-block-id")&&t.push(e);return t}(e)){const e=m.getAttribute("data-block-id");e&&c.set(ne(e),m)}const h=new Set(r.map(e=>e.id));for(const[m,f]of c)if(!h.has(m)){ks(f),c.delete(m);const e=a?.get(m);e&&(e.destroy?.(),a?.delete(m))}const d=/* @__PURE__ */new Map;for(const m of i)d.set(m.id,m);let p=null;const u=s?.selectedNodeId,g=s?.previousSelectedNodeId;for(const m of r){const t=c.get(m.id),n=d.get(m.id);if(s?.compositionBlockId===m.id&&t){p=t;continue}const i=s?.oldDecorations?.find(m.id),r=s?.decorations?.find(m.id);if(t&&n&&!Ps(n,m,i,r))p=t;else if(t){const n=a?.get(m.id);if(n){if(n.update?.(m)){if(v(m)&&n.contentDOM){n.contentDOM.textContent="";const e=s?.decorations?.findInline(m.id);xs(n.contentDOM,m,o,e)}p=n.dom;continue}n.destroy?.(),a?.delete(m.id)}const i=Cs(m,o,a,s);Ss(t,i,e),p=i}else{const t=Cs(m,o,a,s);ws(e,p,t),p=t}if(u===m.id){const e=a?.get(m.id);if(e)e.selectNode?.();else{const e=c.get(m.id)??p;e instanceof HTMLElement&&e.classList.add("notectl-node-selected")}}else if(g===m.id){const e=a?.get(m.id);if(e)e.deselectNode?.();else{const e=c.get(m.id)??p;e instanceof HTMLElement&&e.classList.remove("notectl-node-selected")}}}if(g&&g!==u){const e=a?.get(g);e&&!h.has(g)&&e.deselectNode?.()}if(u&&!h.has(u)){const e=a?.get(u);e&&e.selectNode?.()}!l&&o&&function(e,t,n){const s=ps(t,n),i=function(e,t){const n=[],s=/* @__PURE__ */new Set;for(const r of t)for(const e of r.blockIds)s.add(e);let i=0;for(const r of e){if(!s.has(r.id)){n.push({type:"bare",blockId:r.id});continue}const e=t[i];e&&e.blockIds[0]===r.id&&(n.push({type:"wrapper",key:e.spec.key,blockIds:e.blockIds}),i++)}return n}(t,s),r=function(e){const t=[];for(const n of Array.from(e.children))if(n instanceof HTMLElement)if(n.hasAttribute("data-block-wrapper")){const e=n.getAttribute("data-block-wrapper")??"",s=[];for(const t of Array.from(n.children)){if(!(t instanceof HTMLElement))continue;const e=t.getAttribute("data-block-id");e&&s.push(ne(e))}t.push({type:"wrapper",element:n,key:e,blockIds:s})}else if(n.hasAttribute("data-block-id")){const e=n.getAttribute("data-block-id")??"";t.push({type:"bare",element:n,blockId:ne(e)})}return t}(e);if(function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++){const s=e[n],i=t[n];if(!s||!i)return!1;if(s.type!==i.type)return!1;if("bare"===s.type&&"bare"===i.type){if(s.blockId!==i.blockId)return!1}else if("wrapper"===s.type&&"wrapper"===i.type){if(s.key!==i.key)return!1;if(s.blockIds.length!==i.blockIds.length)return!1;for(let e=0;e<s.blockIds.length;e++)if(s.blockIds[e]!==i.blockIds[e])return!1}}return!0}(i,r)){let e=0;for(const t of r)if("wrapper"===t.type){const n=s[e];n&&us(t.element,n.spec),e++}return}const o=/* @__PURE__ */new Map;for(const h of r){if("wrapper"!==h.type)continue;let e=o.get(h.key);e||(e=[],o.set(h.key,e)),e.push(h.element)}const a=/* @__PURE__ */new Set;let l=null,c=0;for(const h of i){if("bare"===h.type){const t=e.querySelector(`[data-block-id="${h.blockId}"]`);if(!t)continue;t.parentNode!==e?l?l.after(t):e.insertBefore(t,e.firstChild):ms(e,t,l),l=t;continue}const t=s[c];if(!t)continue;c++;const n=o.get(h.key);let i=null;if(n&&n.length>0){const e=n.shift();e&&(i=e.tagName.toLowerCase()===t.spec.tag?e:gs(t.spec))}i||(i=gs(t.spec)),a.add(i),us(i,t.spec),i.parentNode!==e?l?l.after(i):e.insertBefore(i,e.firstChild):ms(e,i,l),fs(i,h.blockIds,e),l=i}for(const h of r)if("wrapper"===h.type&&!a.has(h.element)){for(;h.element.firstChild;)e.insertBefore(h.element.firstChild,h.element);h.element.remove()}}(e,r,o)}function Ps(e,s,r,o){if(e.type!==s.type)return!0;if(e.children.length!==s.children.length)return!0;const a=e.attrs,l=s.attrs;if(a!==l){if(!a||!l)return!0;const e=Object.keys(a),t=Object.keys(l);if(e.length!==t.length)return!0;for(const n of e)if(a[n]!==l[n])return!0}for(let d=0;d<e.children.length;d++){const r=e.children[d],o=s.children[d];if(!r||!o)return!0;if(i(r)&&i(o)){if(r.text!==o.text)return!0;if(!n(r.marks,o.marks))return!0}else if(t(r)&&t(o)){if(r.inlineType!==o.inlineType)return!0;if(!Ms(r.attrs,o.attrs))return!0}else{if(i(r)||i(o)||t(r)||t(o))return!0;if(Ps(r,o))return!0}}const c=r??[],h=o??[];return c!==h&&!ye(c,h)}function Ms(e,t){const n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;for(const i of n)if(e[i]!==t[i])return!1;return!0}var As=class{state;contentElement;history;stateChangeCallbacks=[];isUpdating=!1;schemaRegistry;nodeViewRegistry;nodeViews=/* @__PURE__ */new Map;decorations=ve.empty;getDecorations;isReadOnly;isReadonlyBypassed;compositionState;cursorWrapper;navigation;events;constructor(e,t){this.state=t.state,this.contentElement=e,this.schemaRegistry=t.schemaRegistry,this.nodeViewRegistry=t.nodeViewRegistry,this.getDecorations=t.getDecorations,this.isReadOnly=t.isReadOnly??(()=>!1),this.isReadonlyBypassed=t.isReadonlyBypassed??(()=>!1),this.compositionState=t.compositionState??{isComposing:!1,activeBlockId:null},this.history=new jt({maxDepth:t.maxHistoryDepth??100}),t.onStateChange&&this.stateChangeCallbacks.push(t.onStateChange),this.cursorWrapper=new An(e,this.schemaRegistry),this.navigation=new ds({contentElement:e,getState:()=>this.state,dispatch:e=>this.dispatch(e),keymapRegistry:t.keymapRegistry}),this.events=new hs({contentElement:e,getState:()=>this.state,dispatch:e=>this.dispatch(e),applyUpdate:(e,t,n)=>this.applyUpdate(e,t,{skipSelectionSync:n}),isUpdating:()=>this.isUpdating,compositionState:this.compositionState,cursorWrapper:this.cursorWrapper,isReadOnly:this.isReadOnly,fileHandlerRegistry:t.fileHandlerRegistry,onMousedown:()=>this.navigation.clearGoalColumn()}),this.decorations=this.getDecorations?.(this.state)??ve.empty,Es(e,null,this.state,{...this.reconcileOptions(),decorations:this.decorations}),$e(e,this.state.selection)}getState(){return this.state}applyUpdate(e,t,n){if(!this.isUpdating){this.isUpdating=!0;try{const s=this.state;this.state=e,this.cursorWrapper.isActive&&!e.storedMarks?.length&&this.cursorWrapper.cleanup(),(n?.pushHistory&&"history"!==t.metadata.origin||$t(t))&&this.history.push(t);const i=this.getDecorations?.(e,t)??ve.empty;this.reconcileAndSync(s,e,i,n?.skipSelectionSync);for(const n of this.stateChangeCallbacks)n(s,e,t);this.navigation.resetAfterUpdate()}finally{this.isUpdating=!1}}}dispatch(e){if(this.isReadOnly()&&!Vt(e)&&!this.isReadonlyBypassed())return;const t=this.state.apply(e);this.applyUpdate(t,e,{pushHistory:!0})}undo(){if(this.isUpdating||this.isReadOnly())return;const e=this.history.undo(this.state);e&&this.applyUpdate(e.state,e.transaction)}redo(){if(this.isUpdating||this.isReadOnly())return;const e=this.history.redo(this.state);e&&this.applyUpdate(e.state,e.transaction)}onStateChange(e){return this.stateChangeCallbacks.push(e),()=>{const t=this.stateChangeCallbacks.indexOf(e);-1!==t&&this.stateChangeCallbacks.splice(t,1)}}replaceState(e){if(!this.isUpdating){this.isUpdating=!0;try{const t=this.state,n=e.withSelection(t.selection);this.state=n,this.history.clear(),this.cursorWrapper.isActive&&!n.storedMarks?.length&&this.cursorWrapper.cleanup();const s={steps:[],selectionBefore:t.selection,selectionAfter:n.selection,storedMarksAfter:n.storedMarks,mapping:fe.empty,forwardStepMaps:[],metadata:{origin:"api",timestamp:Date.now()}},i=this.getDecorations?.(n,s)??ve.empty;this.reconcileAndSync(t,n,i);for(const e of this.stateChangeCallbacks)e(t,n,s);this.navigation.resetAfterUpdate()}finally{this.isUpdating=!1}}}syncSelection(){this.events.syncSelectionFromDOM()}reconcileAndSync(e,t,n,s){const i=this.decorations;this.decorations=n,Es(this.contentElement,e,t,{...this.reconcileOptions(e.selection),decorations:n,oldDecorations:i,compositionBlockId:this.compositionState.isComposing?this.compositionState.activeBlockId??void 0:void 0}),this.compositionState.isComposing||s||$e(this.contentElement,t.selection)}reconcileOptions(e){const t=E(this.state.selection)?this.state.selection.nodeId:void 0,n=e&&E(e)?e.nodeId:void 0;return{registry:this.schemaRegistry,nodeViewRegistry:this.nodeViewRegistry,nodeViews:this.nodeViews,getState:()=>this.state,dispatch:e=>this.dispatch(e),selectedNodeId:t,previousSelectedNodeId:n}}destroy(){this.cursorWrapper.cleanup(),this.events.destroy(),this.navigation.destroy();for(const e of this.nodeViews.values())e.destroy?.();this.nodeViews.clear()}},Ns={ariaLabel:"Rich text editor",ariaDescription:"Press Escape to exit the editor",defaultPlaceholder:"Start typing..."},Bs=/* @__PURE__ */Object.assign({"./locales/ar.ts":()=>import("./ar-odM5gkvw.mjs"),"./locales/de.ts":()=>import("./de-LCXA2xWj.mjs"),"./locales/es.ts":()=>import("./es-C9vhYpfP.mjs"),"./locales/fr.ts":()=>import("./fr-DDLuorz7.mjs"),"./locales/hi.ts":()=>import("./hi-CT0uK1Me.mjs"),"./locales/pt.ts":()=>import("./pt-BmcHFWoR.mjs"),"./locales/ru.ts":()=>import("./ru-CO6eCsxU.mjs"),"./locales/zh.ts":()=>import("./zh-2-Y3Limy.mjs")}),Ds=["\n/**\n * Public theme tokens.\n *\n * Declared via @property so that:\n * - DevTools surfaces them as first-class CSS variables,\n * - invalid values are rejected at the engine level instead of breaking\n * downstream rules silently,\n * - the values are interpolatable for animations.\n *\n * The registration is scoped to this shadow root. Consumers override these\n * by setting the same custom properties on a parent (e.g. ::host).\n *\n * Components use the three-tier cascade:\n * var(--notectl-<component>-<prop>, var(--notectl-<prop>, <fallback>))\n */\n@property --notectl-bg { syntax: '<color>'; initial-value: #ffffff; inherits: true; }\n@property --notectl-fg { syntax: '<color>'; initial-value: #1f2328; inherits: true; }\n@property --notectl-fg-muted { syntax: '<color>'; initial-value: #6e7781; inherits: true; }\n@property --notectl-border { syntax: '<color>'; initial-value: #d0d7de; inherits: true; }\n@property --notectl-border-focus { syntax: '<color>'; initial-value: #0969da; inherits: true; }\n@property --notectl-primary { syntax: '<color>'; initial-value: #0969da; inherits: true; }\n@property --notectl-primary-fg { syntax: '<color>'; initial-value: #ffffff; inherits: true; }\n@property --notectl-focus-ring { syntax: '<color>'; initial-value: rgba(9, 105, 218, 0.3); inherits: true; }\n\n:host {\n\tdisplay: block;\n\tfont-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;\n\tfont-size: 16px;\n\tline-height: 1.6;\n\tcolor: var(--notectl-fg);\n}\n\n.notectl-editor {\n\tdisplay: flex;\n\tflex-direction: column;\n\tborder: 1px solid var(--notectl-border);\n\tborder-radius: var(--notectl-border-radius, 6px);\n\toverflow: hidden;\n\tbackground: var(--notectl-bg);\n\t/* Fill any explicit host height so embedders can size <notectl-editor>\n\t (e.g. height: 500px) and have the toolbar/content/footer fit inside.\n\t border-box keeps the 1px border within the host's height; min-height: 0\n\t lets the flex content shrink below its intrinsic size so internal\n\t scrolling can engage. */\n\tbox-sizing: border-box;\n\theight: 100%;\n\tmin-height: 0;\n}\n\n.notectl-editor:focus-within {\n\tborder-color: var(--notectl-border-focus);\n\tbox-shadow: 0 0 0 2px var(--notectl-focus-ring);\n}\n\n/* Content Area */\n.notectl-content {\n\tflex: 1;\n\tpadding: 12px 16px;\n\toutline: none;\n\tmin-height: var(--notectl-content-min-height, 400px);\n\tmax-height: var(--notectl-content-max-height, none);\n\toverflow-y: auto;\n\tcursor: text;\n\tposition: relative;\n\twhite-space: pre-wrap;\n\tword-wrap: break-word;\n\t-webkit-user-select: text;\n\tuser-select: text;\n\t-moz-tab-size: 4;\n\ttab-size: 4;\n}\n\n.notectl-content p {\n\tmargin: 0;\n\tpadding: 2px 0;\n\tmin-height: 1.6em;\n}\n\n.notectl-content p + p {\n\tmargin-top: 0;\n}\n\n/* Horizontal Rule */\n.notectl-content hr {\n\tborder: none;\n\tborder-top: 1px solid var(--notectl-border);\n\tmargin: 8px 0;\n\tpadding: 0;\n\tcursor: default;\n\tuser-select: none;\n}\n\n/* Placeholder */\n.notectl-content.notectl-content--empty::before {\n\tcontent: attr(data-placeholder);\n\tcolor: var(--notectl-fg-muted);\n\tpointer-events: none;\n\tposition: absolute;\n\ttop: 12px;\n\tinset-inline-start: 16px;\n}\n\n/* Plugin container bottom */\n.notectl-plugin-container--bottom {\n\tborder-top: 1px solid var(--notectl-border);\n\tflex-shrink: 0;\n}\n\n/* Screen reader announcements */\n.notectl-sr-only {\n\tposition: absolute;\n\twidth: 1px;\n\theight: 1px;\n\tmargin: -1px;\n\tpadding: 0;\n\toverflow: hidden;\n\tclip: rect(0, 0, 0, 0);\n\twhite-space: nowrap;\n\tborder: 0;\n}\n\n/* Node selection */\n.notectl-node-selected {\n\toutline: 2px solid var(--notectl-primary);\n\toutline-offset: 2px;\n}\n\n/* High-contrast / forced-colors mode (Windows High Contrast, etc.) */\n@media (forced-colors: active) {\n\t.notectl-editor {\n\t\tborder-color: CanvasText;\n\t}\n\t.notectl-editor:focus-within {\n\t\tborder-color: Highlight;\n\t\tbox-shadow: 0 0 0 2px Highlight;\n\t}\n\t.notectl-content {\n\t\tcolor: CanvasText;\n\t}\n\t.notectl-plugin-container--top,\n\t.notectl-plugin-container--bottom {\n\t\tborder-color: CanvasText;\n\t}\n\t.notectl-node-selected {\n\t\toutline-color: Highlight;\n\t}\n}\n","\n@media (prefers-reduced-motion: reduce) {\n\t.notectl-toolbar-btn,\n\t.notectl-image__resize-handle,\n\t.notectl-image__size-indicator,\n\t.notectl-color-picker__swatch,\n\t.notectl-font-picker__item,\n\t.notectl-heading-picker__item,\n\t.notectl-font-size-picker__item,\n\t.ntbl-handle,\n\t.ntbl-handle-delete,\n\t.ntbl-insert-line,\n\t.ntbl-insert-btn,\n\t.ntbl-add-zone,\n\t.ntbl-add-icon,\n\t.ntbl-col-bar,\n\t.ntbl-row-bar,\n\t.ntbl-delete-table-btn,\n\t.notectl-code-block__copy {\n\t\ttransition: none !important;\n\t}\n}\n",'\n/* Paper viewport: scroll container with centered gray background */\n.notectl-paper-viewport {\n\tflex: 1;\n\toverflow-y: auto;\n\toverflow-x: hidden;\n\tbackground: var(--notectl-paper-viewport-bg, #e8e8e8);\n\tpadding: 24px 0;\n}\n\n/* Paper surface: white page with shadow, centered */\n.notectl-paper-surface {\n\tmargin: 0 auto;\n\tbackground: var(--notectl-bg);\n\tborder-radius: 2px;\n\tbox-shadow: 0 2px 8px var(--notectl-shadow, rgba(0, 0, 0, 0.15));\n\ttransform-origin: top center;\n\ttransition: transform 0.15s ease-out;\n}\n\n/* Content overrides in paper mode: wider document margins */\n.notectl-editor[data-paper-mode] .notectl-content {\n\tflex: none;\n\tpadding: 48px 56px;\n\tmin-height: auto;\n}\n\n/* Placeholder position override for paper mode */\n.notectl-editor[data-paper-mode] .notectl-content.notectl-content--empty::before {\n\ttop: 48px;\n\tinset-inline-start: 56px;\n}\n\n/* Dark mode: darker viewport background */\n:host([theme="dark"]) .notectl-paper-viewport {\n\t--notectl-paper-viewport-bg: #181825;\n}\n\n@media (prefers-reduced-motion: reduce) {\n\t.notectl-paper-surface {\n\t\ttransition: none !important;\n\t}\n}\n'].join("\n"),Os=null,Ls=class{themeStyleSheet=new CSSStyleSheet;systemThemeQuery=null;systemThemeHandler=null;pluginSheets=[];runtimeSheets=[];shadow;constructor(e){this.shadow=e}apply(e){if(this.cleanupSystemThemeListener(),e===yt.System){this.setupSystemThemeListener();const e=gt(this.getSystemTheme());this.setThemeStyleSheet(e)}else this.setThemeStyleSheet(gt(e))}setPluginStyleSheets(e){this.pluginSheets=e,this.refreshAdoptedStyleSheets()}setRuntimeStyleSheets(e){this.runtimeSheets=e,this.refreshAdoptedStyleSheets()}destroy(){this.cleanupSystemThemeListener()}setThemeStyleSheet(e){this.themeStyleSheet.replaceSync(ft(e)),this.refreshAdoptedStyleSheets()}refreshAdoptedStyleSheets(){this.shadow.adoptedStyleSheets=[this.themeStyleSheet,(Os||(Os=new CSSStyleSheet).replaceSync(Ds),Os),...this.pluginSheets,...this.runtimeSheets]}setupSystemThemeListener(){this.systemThemeQuery=window.matchMedia("(prefers-color-scheme: dark)"),this.systemThemeHandler=e=>{const t=gt(this.getSystemTheme());this.setThemeStyleSheet(t)},this.systemThemeQuery.addEventListener("change",this.systemThemeHandler)}cleanupSystemThemeListener(){this.systemThemeQuery&&this.systemThemeHandler&&this.systemThemeQuery.removeEventListener("change",this.systemThemeHandler),this.systemThemeQuery=null,this.systemThemeHandler=null}getSystemTheme(){return(this.systemThemeQuery??window.matchMedia("(prefers-color-scheme: dark)")).matches?yt.Dark:yt.Light}},Hs=class{wrapper;content;viewport=null;surface=null;viewportObserver=null;surfaceObserver=null;currentSize=null;currentPaperWidthPx=0;currentPaperHeightPx=0;currentScale=1;compensationFrameId=null;constructor(e,t){this.wrapper=e,this.content=t}apply(e){if(null===e)return void this.disable();const t=St(e);this.currentPaperWidthPx=t.widthPx,this.currentPaperHeightPx=t.heightPx,this.currentSize=e,this.viewport||this.enable(),this.updateSurfaceDimensions(),this.wrapper.setAttribute("data-paper-mode",e)}destroy(){this.disable()}getPaperSize(){return this.currentSize}enable(){this.viewport=document.createElement("div"),this.viewport.className="notectl-paper-viewport",this.surface=document.createElement("div"),this.surface.className="notectl-paper-surface",this.wrapper.removeChild(this.content),this.surface.appendChild(this.content),this.viewport.appendChild(this.surface);const e=this.wrapper.querySelector(".notectl-plugin-container--bottom");e?this.wrapper.insertBefore(this.viewport,e):this.wrapper.appendChild(this.viewport),this.viewportObserver=new ResizeObserver(e=>{for(const t of e)this.onViewportResize(t.contentRect.width)}),this.viewportObserver.observe(this.viewport),this.surfaceObserver=new ResizeObserver(e=>{for(const t of e)this.onSurfaceResize(t.contentRect.height)}),this.surfaceObserver.observe(this.surface)}disable(){if(null!==this.compensationFrameId&&(cancelAnimationFrame(this.compensationFrameId),this.compensationFrameId=null),this.viewportObserver?.disconnect(),this.viewportObserver=null,this.surfaceObserver?.disconnect(),this.surfaceObserver=null,this.viewport&&this.surface){this.surface.removeChild(this.content);const e=this.wrapper.querySelector(".notectl-plugin-container--bottom");e?this.wrapper.insertBefore(this.content,e):this.wrapper.appendChild(this.content),this.wrapper.removeChild(this.viewport)}this.viewport=null,this.surface=null,this.currentSize=null,this.currentPaperWidthPx=0,this.currentPaperHeightPx=0,this.currentScale=1,this.wrapper.removeAttribute("data-paper-mode")}updateSurfaceDimensions(){this.surface&&(ct(this.surface,"width",`${this.currentPaperWidthPx}px`),ct(this.surface,"minHeight",`${this.currentPaperHeightPx}px`))}onViewportResize(e){if(!this.surface||0===this.currentPaperWidthPx)return;const t=e-48,n=Math.min(1,t/this.currentPaperWidthPx);this.currentScale=n,ct(this.surface,"transform",n<1?`scale(${n})`:""),this.scheduleHeightCompensation(n)}onSurfaceResize(e){this.surface&&this.viewport&&this.scheduleHeightCompensation(this.currentScale)}scheduleHeightCompensation(e){null!==this.compensationFrameId&&cancelAnimationFrame(this.compensationFrameId),this.compensationFrameId=requestAnimationFrame(()=>{this.compensationFrameId=null,this.updateHeightCompensation(e)})}updateHeightCompensation(e){if(!this.surface)return;if(e>=1)return void ct(this.surface,"marginBottom","");const t=this.surface.scrollHeight,n=t*e-t;ct(this.surface,"marginBottom",`${n}px`)}};function zs(e){return!Array.isArray(e)}function _s(e){if(Array.isArray(e))return{plugins:e,label:void 0};const t=e;return{plugins:t.plugins,label:t.label}}var Fs=class{cfg;themeController=null;domElements=null;paperLayout=null;pluginManager=null;inputManager=null;view=null;cleanedUp=!1;constructor(e){this.deps=e,this.cfg=e.config}async run(){try{if(this.setupTheme(),this.isCancelled())return this.abort();const e=await async function(e){const t=new Rt(e.locale??"browser").getLocale();return"en"===t?Ns:await async function(e){return Ct(Bs,e,Ns)}(t)}(this.cfg);if(this.isCancelled())return this.abort();if(this.setupDOM(e),this.setupPlugins(),await this.initPluginsAndView(),this.isCancelled()||!this.view||!this.inputManager||!this.pluginManager||!this.domElements||!this.themeController)return this.abort();const t=this.view,n=this.inputManager,s=this.pluginManager,i=this.domElements,r=this.themeController;return this.finalizeSetup(s,i),{view:t,inputManager:n,pluginManager:s,domElements:i,themeController:r,paperLayout:this.paperLayout,release:()=>{this.view=null}}}catch(e){throw await this.cleanup(),e}}setupTheme(){this.themeController=new Ls(this.deps.shadow),this.deps.styleCoordinator.setup(this.deps.shadow,this.cfg.styleNonce,this.themeController),this.themeController.apply(this.cfg.theme??yt.Light)}setupDOM(e){this.domElements=function(e){const t=e.locale??Ns,n=t.defaultPlaceholder,s=document.createElement("div");s.className="notectl-editor",s.setAttribute("part","editor");const i=document.createElement("div");i.className="notectl-plugin-container--top",i.setAttribute("part","plugin-container plugin-container-top"),i.setAttribute("data-notectl-no-print","");const r=document.createElement("div");r.className="notectl-content",r.setAttribute("part","content"),r.contentEditable=e.readonly?"false":"true",r.setAttribute("role","textbox"),r.setAttribute("aria-multiline","true"),r.setAttribute("aria-label",t.ariaLabel),e.readonly&&r.setAttribute("aria-readonly","true"),r.setAttribute("aria-description",t.ariaDescription),r.setAttribute("data-default-placeholder",n),r.setAttribute("data-placeholder",e.placeholder??n),e.dir&&(s.setAttribute("dir",e.dir),r.setAttribute("dir",e.dir));const o=document.createElement("div");o.className="notectl-plugin-container--bottom",o.setAttribute("part","plugin-container plugin-container-bottom"),o.setAttribute("data-notectl-no-print","");const a=document.createElement("div");return a.className="notectl-sr-only",a.setAttribute("data-notectl-no-print",""),a.setAttribute("aria-live","polite"),a.setAttribute("aria-atomic","true"),s.appendChild(i),s.appendChild(r),s.appendChild(o),s.appendChild(a),{wrapper:s,content:r,topPluginContainer:i,bottomPluginContainer:o,announcer:a}}({readonly:this.cfg.readonly,placeholder:this.cfg.placeholder,dir:this.cfg.dir??this.deps.hostDir,locale:e}),this.deps.shadow.appendChild(this.domElements.wrapper),this.cfg.paperSize&&(this.paperLayout=new Hs(this.domElements.wrapper,this.domElements.content),this.paperLayout.apply(this.cfg.paperSize))}setupPlugins(){if(this.domElements){this.pluginManager=new Wn({logger:this.cfg.logger}),this.pluginManager.registerService(It,new Rt(this.cfg.locale??"browser")),Nt(this.pluginManager.schemaRegistry),function(e,t){if(!t)return;const n=zs(t)?t.groups:t,s=zs(t)?t.overflow:void 0,i=[];for(const o of n){const{plugins:t,label:n}=_s(o),s=[];for(const i of t)s.push(i.id),e.register(i);i.push(void 0!==n?{plugins:s,label:n}:s)}const r={groups:i,overflow:s};e.register(new ut(r))}(this.pluginManager,this.cfg.toolbar);for(const e of this.cfg.plugins??[])this.pluginManager.register(e);for(const e of this.deps.preInitPlugins)this.pluginManager.register(e);e=this.pluginManager,t=this.cfg.features,function(e,t){if(void 0!==e.get("text-formatting"))return;const n={bold:t?.bold??!0,italic:t?.italic??!0,underline:t?.underline??!0};e.register(new Tt(n))}(e,t),function(e){void 0===e.get("caret-navigation")&&e.register(new Ee)}(e),function(e){void 0===e.get("gap-cursor")&&e.register(new xt)}(e),this.domElements.content.addEventListener("focus",()=>this.deps.events.emit("focus",void 0)),this.domElements.content.addEventListener("blur",()=>this.deps.events.emit("blur",void 0))}var e,t}async initPluginsAndView(){if(!this.pluginManager||!this.domElements||!this.themeController)return;const e=this.domElements,t=this.pluginManager,n=this.themeController;await t.init({isCancelled:()=>this.isCancelled(),getState:()=>{if(!this.view)throw new Error("View not initialized");return this.view.getState()},dispatch:e=>this.dispatch(e),getContainer:()=>e.content,getPluginContainer:t=>"top"===t?e.topPluginContainer:e.bottomPluginContainer,announce:t=>{e.announcer&&(e.announcer.textContent=t)},hasAnnouncement:()=>!!e.announcer?.textContent,getCompositionState:()=>{const e=this.inputManager?.compositionTracker;return e||Ks},onBeforeReady:()=>this.createInputAndView(e,t,n)})}createInputAndView(e,t,n){if(this.isCancelled()||!this.pluginManager||!this.themeController)return;const s=J(t.schemaRegistry),i=Ot.create({schema:s});this.inputManager=new bn(e.content,{getState:()=>{if(!this.view)throw new Error("View not initialized");return this.view.getState()},dispatch:e=>this.dispatch(e),syncSelection:()=>this.view?.syncSelection(),undo:()=>this.view?.undo(),redo:()=>this.view?.redo(),schemaRegistry:t.schemaRegistry,keymapRegistry:t.keymapRegistry,inputRuleRegistry:t.inputRuleRegistry,fileHandlerRegistry:t.fileHandlerRegistry,isReadOnly:()=>this.deps.configController.isReadOnly,getPasteInterceptors:()=>t.getPasteInterceptors(),getTextInputInterceptors:()=>t.getTextInputInterceptors(),getTextDirection:_e,navigateFromGapCursor:Ie}),this.view=new As(e.content,{state:i,schemaRegistry:t.schemaRegistry,keymapRegistry:t.keymapRegistry,fileHandlerRegistry:t.fileHandlerRegistry,nodeViewRegistry:t.nodeViewRegistry,maxHistoryDepth:this.cfg.maxHistoryDepth,getDecorations:(e,n)=>t.collectDecorations(e,n)??ve.empty,onStateChange:(n,s,i)=>{!function(e,t,n,s,i,r){const o=s.announcer;if(o&&(o.textContent=""),i.notifyStateChange(e,t,n),$s(s.content,t.doc),r.emit("stateChange",{oldState:e,newState:t,transaction:n}),x(e.selection,t.selection)||r.emit("selectionChange",{selection:t.selection}),!o?.textContent){const s=function(e,t,n){if("undo"===n.metadata.historyDirection)return"Undo";if("redo"===n.metadata.historyDirection)return"Redo";for(const s of n.steps)if("setBlockType"===s.type)return Xn(s.nodeType,s.attrs);for(const s of t.schema.markTypes){const n=ee(s),i=$(e,n),r=$(t,n);if(i!==r)return`${s} ${r?"on":"off"}`}return null}(e,t,n);s&&o&&(o.textContent=s)}}(n,s,i,e,t,this.deps.events)},isReadOnly:()=>this.deps.configController.isReadOnly,isReadonlyBypassed:()=>t.isReadonlyBypassed(),compositionState:this.inputManager.compositionTracker}),$s(e.content,this.view.getState().doc);const r=t.getPluginStyleSheets();r.length>0&&n.setPluginStyleSheets(r)}finalizeSetup(e,t){if(this.cfg.readonly&&e.setReadOnly(!0),e.onEvent(wt,e=>{!e.options.paperSize&&this.deps.configController.getPaperSize()&&(e.options={...e.options,paperSize:this.deps.configController.getPaperSize()})}),this.cfg.autofocus){const e=t.content;requestAnimationFrame(()=>e.focus())}}dispatch(e){this.view&&this.pluginManager&&this.pluginManager.dispatchWithMiddleware(e,this.view.getState(),e=>this.view?.dispatch(e))}isCancelled(){return this.deps.isCancelled?.()??!1}async abort(){return await this.cleanup(),null}async cleanup(){if(this.cleanedUp)return;this.cleanedUp=!0;const e=this.view;this.view=null,this.paperLayout?.destroy(),this.paperLayout=null,this.deps.styleCoordinator.teardown(this.deps.shadow,this.themeController),this.themeController?.destroy(),this.themeController=null,this.inputManager?.destroy(),this.inputManager=null,e?.destroy();const t=this.pluginManager;this.pluginManager=null,await(t?.destroy()),this.domElements?.wrapper.remove(),this.domElements=null}},Ks={isComposing:!1,activeBlockId:null};function $s(e,t){e.classList.toggle("notectl-content--empty",as(t))}var Vs=class{state="idle";readyPromiseResolve=null;readyPromiseReject=null;readyPromise;preInitPlugins=[];constructor(){this.readyPromise=this.createReadyPromise()}isInitialized(){return"initializing"===this.state||"ready"===this.state}markInitialized(){return"initializing"!==this.state&&"ready"!==this.state&&("failed"===this.state&&(this.readyPromise=this.createReadyPromise()),this.state="initializing",!0)}whenReady(){return this.readyPromise}resolveReady(){"initializing"===this.state&&(this.state="ready",this.readyPromiseResolve?.(),this.readyPromiseResolve=null,this.readyPromiseReject=null)}failReady(e){"initializing"===this.state&&(this.state="failed",this.readyPromiseReject?.(e),this.readyPromiseResolve=null,this.readyPromiseReject=null)}registerPreInitPlugin(e){if("initializing"===this.state||"ready"===this.state)throw new Error("Cannot register plugins after initialization. Register before calling init() or adding to DOM.");this.preInitPlugins.push(e)}consumePreInitPlugins(){const e=this.preInitPlugins;return this.preInitPlugins=[],e}restorePreInitPlugins(e){0!==e.length&&(this.preInitPlugins=[...e,...this.preInitPlugins])}reset(){this.state="idle",this.preInitPlugins=[],this.readyPromise=this.createReadyPromise()}createReadyPromise(){const e=new Promise((e,t)=>{this.readyPromiseResolve=e,this.readyPromiseReject=t});return e.catch(()=>{}),e}},js=class{runtimeStyleSheet=null;setup(e,t,n){at(e),this.runtimeStyleSheet=lt(),n?.setRuntimeStyleSheets(this.runtimeStyleSheet?[this.runtimeStyleSheet]:[]),ot(e,{nonce:t,sheet:this.runtimeStyleSheet})}teardown(e,t){e&&at(e),this.runtimeStyleSheet=null,t?.setRuntimeStyleSheets([])}},Us=class extends HTMLElement{view=null;inputManager=null;pluginManager=null;domElements=null;configController=new ls;events=new cs;lifecycle=new Vs;styleCoordinator=new js;themeController=null;paperLayout=null;pendingInitPromise=null;cancelPendingInit=null;autoInitToken=0;autoInitQueued=!1;initVersion=0;releaseInit=null;constructor(){super(),this.attachShadow({mode:"open"})}static get observedAttributes(){return["placeholder","readonly","theme","paper-size","dir"]}connectedCallback(){this.lifecycle.isInitialized()||this.scheduleAutoInit()}disconnectedCallback(){setTimeout(()=>{this.isConnected||this.destroy()},0)}attributeChangedCallback(e,t,n){this.configController.applyAttribute(e,n,this.getConfigDeps())}registerPlugin(e){this.lifecycle.registerPreInitPlugin(e)}async init(e){if(this.cancelAutoInit(),!this.lifecycle.markInitialized())return;e&&this.configController.setConfig(e);const t=this.shadowRoot;if(!t){const e=/* @__PURE__ */new Error("Editor shadow root not available.");throw this.lifecycle.failReady(e),e}const n=++this.initVersion;let s=!1;this.cancelPendingInit=()=>{s=!0};const i=this.lifecycle.consumePreInitPlugins(),r=async function(e){return new Fs(e).run()}({shadow:t,config:this.configController.getConfig(),hostDir:this.getAttribute("dir")??void 0,configController:this.configController,styleCoordinator:this.styleCoordinator,events:this.events,preInitPlugins:i,isCancelled:()=>s||n!==this.initVersion});this.pendingInitPromise=r;try{const e=await r;if(!e){if(s||n!==this.initVersion)return;throw new Error("Editor initialization completed without a result.")}if(n!==this.initVersion)return;this.view=e.view,this.inputManager=e.inputManager,this.pluginManager=e.pluginManager,this.domElements=e.domElements,this.themeController=e.themeController,this.paperLayout=e.paperLayout,this.releaseInit=e.release,this.lifecycle.resolveReady(),this.events.emit("ready",void 0)}catch(o){throw n===this.initVersion&&(this.lifecycle.restorePreInitPlugins(i),this.lifecycle.failReady(o)),o}finally{this.pendingInitPromise===r&&(this.pendingInitPromise=null,this.cancelPendingInit=null)}}get isReadOnly(){return this.configController.isReadOnly}getJSON(){if(!this.view)throw new Error("Editor not initialized");return this.view.getState().doc}setJSON(e){this.assertInitialized(),ss(e,this.pluginManager?.schemaRegistry,e=>this.replaceState(e))}async getContentHTML(e){if(!this.view)throw new Error("Editor not initialized");return function(e,t,n){const s=e.doc;if("classes"===n?.cssMode){const e=Ue(s,t,n);return n.pretty?{html:oe(e.html),css:e.css,styleMap:e.styleMap}:e}const i=Ge(s,t,n);return n?.pretty?oe(i):i}(this.view.getState(),this.pluginManager?.schemaRegistry,e)}async setContentHTML(e,t){return this.assertInitialized(),function(e,t,n,s){ss(Je(e,t,s),t,n)}(e,this.pluginManager?.schemaRegistry,e=>this.replaceState(e),t)}getText(){if(!this.view)throw new Error("Editor not initialized");return rs(this.view.getState())}setText(e){this.assertInitialized(),this.view&&function(e,t,n,s){if(e===rs(t))return;const i=e.split("\n"),r=t.doc.children.map(e=>e.id),o=i.map((e,t)=>y(Z("paragraph"),[k(e)],r[t])),a=n?J(n):void 0;s(Ot.create({doc:{children:o},schema:a}))}(e,this.view.getState(),this.pluginManager?.schemaRegistry,e=>this.replaceState(e))}isEmpty(){return!this.view||as(this.view.getState().doc)}commands={toggleBold:()=>this.executeCommand("toggleBold"),toggleItalic:()=>this.executeCommand("toggleItalic"),toggleUnderline:()=>this.executeCommand("toggleUnderline"),undo:()=>{this.configController.isReadOnly||this.view?.undo()},redo:()=>{this.configController.isReadOnly||this.view?.redo()},selectAll:()=>{if(!this.view)return;const e=j(this.view.getState());this.dispatch(e)}};can(){const e=this.view?.getState().schema,t=this.configController.isReadOnly;return{toggleBold:()=>!t&&!!e&&O(e,"bold"),toggleItalic:()=>!t&&!!e&&O(e,"italic"),toggleUnderline:()=>!t&&!!e&&O(e,"underline"),undo:()=>!t&&(this.view?.history.canUndo()??!1),redo:()=>!t&&(this.view?.history.canRedo()??!1),selectAll:()=>this.canExecuteCommand("selectAll")}}canExecuteCommand(e){return this.pluginManager?.canExecuteCommand(e)??!1}executeCommand(e){return this.pluginManager?.executeCommand(e)??!1}configurePlugin(e,t){this.pluginManager?.configurePlugin(e,t)}getService(e){return this.pluginManager?.getService(e)}onPluginEvent(e,t){return this.pluginManager?.onEvent(e,t)??(()=>{})}getState(){if(!this.view)throw new Error("Editor not initialized");return this.view.getState()}dispatch(e){this.view&&this.pluginManager&&this.pluginManager.dispatchWithMiddleware(e,this.view.getState(),e=>this.view?.dispatch(e))}on(e,t){this.events.on(e,t)}off(e,t){this.events.off(e,t)}whenReady(){return this.lifecycle.whenReady()}configure(e){this.configController.applyRuntimeConfig(e,this.getConfigDeps())}setTheme(e){this.configController.applyTheme(e,this.themeController)}getTheme(){return this.configController.getTheme()}getPaperSize(){return this.configController.getPaperSize()}destroy(){this.cancelAutoInit(),this.initVersion++,this.cancelPendingInit?.(),this.cancelPendingInit=null;const e=this.pendingInitPromise?.then(()=>{},()=>{})??Promise.resolve();this.pendingInitPromise=null,this.releaseInit?.(),this.releaseInit=null,this.paperLayout?.destroy(),this.paperLayout=null,this.styleCoordinator.teardown(this.shadowRoot,this.themeController),this.themeController?.destroy(),this.themeController=null,this.inputManager?.destroy(),this.inputManager=null,this.view?.destroy();const t=this.pluginManager?.destroy()??Promise.resolve();return this.view=null,this.pluginManager=null,this.lifecycle.reset(),this.events.clear(),this.domElements?.wrapper.remove(),this.domElements=null,Promise.all([t,e]).then(()=>{})}getConfigDeps(){return{contentElement:this.domElements?.content??null,editorWrapper:this.domElements?.wrapper??null,pluginManager:this.pluginManager,themeController:this.themeController,applyPaperSize:e=>this.applyPaperSize(e)}}scheduleAutoInit(){const e=++this.autoInitToken;this.autoInitQueued=!0,queueMicrotask(()=>{this.isConnected&&this.autoInitQueued&&this.autoInitToken===e&&(this.autoInitQueued=!1,this.lifecycle.isInitialized()||this.init().catch(()=>{}))})}cancelAutoInit(){this.autoInitToken++,this.autoInitQueued=!1}applyPaperSize(e){this.domElements&&(e?(this.paperLayout||(this.paperLayout=new Hs(this.domElements.wrapper,this.domElements.content)),this.paperLayout.apply(e)):this.paperLayout?.apply(null))}replaceState(e){this.view&&this.view.replaceState(e)}assertInitialized(){if(!this.view)throw new Error("Editor not initialized")}};async function qs(e){const t=document.createElement("notectl-editor");return await t.init(e),t}"undefined"==typeof customElements||customElements.get("notectl-editor")||customElements.define("notectl-editor",Us);export{Nt as A,jt as C,Kt as D,Ft as E,At as M,Pt as N,Ot as O,Jt as S,$t as T,In as _,ns as a,Zt as b,Qn as c,Nn as d,Dn as f,Cn as g,Tn as h,Yn as i,Mt as j,Bt as k,Wn as l,An as m,qs as n,Zn as o,Bn as p,ts as r,Xn as s,Us as t,On as u,Rn as v,Vt as w,Yt as x,bn as y};
|
|
2
|
-
//# sourceMappingURL=src-ooaZ_Egu.mjs.map
|