@ncino/web-components 4.3.0-preview.12 → 4.3.0-preview.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (175) hide show
  1. package/dist/_virtual/index10.js +1 -1
  2. package/dist/_virtual/index11.js +1 -1
  3. package/dist/_virtual/index12.js +1 -1
  4. package/dist/_virtual/index4.js +1 -1
  5. package/dist/_virtual/index5.js +1 -1
  6. package/dist/_virtual/index6.js +1 -1
  7. package/dist/_virtual/index7.js +1 -1
  8. package/dist/_virtual/index8.js +1 -1
  9. package/dist/_virtual/index9.js +1 -1
  10. package/dist/assets/node_modules/.pnpm/{ckeditor5@45.2.1 → ckeditor5@45.2.0}/node_modules/ckeditor5/dist/ckeditor5.css +1 -1
  11. package/dist/components/avatar/gator/avatar.gator.js +5 -5
  12. package/dist/components/banner/gator/banner.gator.js +5 -6
  13. package/dist/components/button/gator/button.gator.figma.js +4 -12
  14. package/dist/components/checkbox/checkbox.gator.js +6 -9
  15. package/dist/components/icon/gator/icon.gator.figma.js +2 -7
  16. package/dist/components/input/gator/dropdown/input-dropdown.gator.js +1 -1
  17. package/dist/components/input/gator/input-date/input-date.gator.js +1 -1
  18. package/dist/components/input/gator/input-time/input-time.gator.js +1 -1
  19. package/dist/components/input-rich-text/ckeditor-config.js +1 -1
  20. package/dist/components/input-rich-text/input-rich-text.slds.js +2 -2
  21. package/dist/components/menu/base/gator/menu.gator.js +1 -1
  22. package/dist/components/menu/menu-item/gator/menu-item.gator.js +2 -2
  23. package/dist/components/panel/gator/panel.storybook-test.js +1 -1
  24. package/dist/components/popover/gator/popover.gator.js +1 -1
  25. package/dist/components/table/gator/__tests__/test-table-data.js +1 -1
  26. package/dist/components/table/gator/table.gator.js +32 -77
  27. package/dist/components/tooltip/gator/tooltip.gator.js +1 -1
  28. package/dist/components/tooltip/slds/tooltip.slds.js +1 -1
  29. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-alignment@45.2.1 → @ckeditor_ckeditor5-alignment@45.2.0}/node_modules/@ckeditor/ckeditor5-alignment/dist/index.js +1 -1
  30. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-autoformat@45.2.1 → @ckeditor_ckeditor5-autoformat@45.2.0}/node_modules/@ckeditor/ckeditor5-autoformat/dist/index.js +1 -1
  31. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-autosave@45.2.1 → @ckeditor_ckeditor5-autosave@45.2.0}/node_modules/@ckeditor/ckeditor5-autosave/dist/index.js +1 -1
  32. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-basic-styles@45.2.1 → @ckeditor_ckeditor5-basic-styles@45.2.0}/node_modules/@ckeditor/ckeditor5-basic-styles/dist/index.js +1 -1
  33. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-block-quote@45.2.1 → @ckeditor_ckeditor5-block-quote@45.2.0}/node_modules/@ckeditor/ckeditor5-block-quote/dist/index.js +1 -1
  34. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-clipboard@45.2.1 → @ckeditor_ckeditor5-clipboard@45.2.0}/node_modules/@ckeditor/ckeditor5-clipboard/dist/index.js +1 -1
  35. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-cloud-services@45.2.1 → @ckeditor_ckeditor5-cloud-services@45.2.0}/node_modules/@ckeditor/ckeditor5-cloud-services/dist/index.js +1 -1
  36. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-code-block@45.2.1 → @ckeditor_ckeditor5-code-block@45.2.0}/node_modules/@ckeditor/ckeditor5-code-block/dist/index.js +1 -1
  37. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-core@45.2.1 → @ckeditor_ckeditor5-core@45.2.0}/node_modules/@ckeditor/ckeditor5-core/dist/index.js +1 -1
  38. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-editor-classic@45.2.1 → @ckeditor_ckeditor5-editor-classic@45.2.0}/node_modules/@ckeditor/ckeditor5-editor-classic/dist/index.js +1 -1
  39. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-engine@45.2.1 → @ckeditor_ckeditor5-engine@45.2.0}/node_modules/@ckeditor/ckeditor5-engine/dist/index.js +11 -11
  40. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-enter@45.2.1 → @ckeditor_ckeditor5-enter@45.2.0}/node_modules/@ckeditor/ckeditor5-enter/dist/index.js +1 -1
  41. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-essentials@45.2.1 → @ckeditor_ckeditor5-essentials@45.2.0}/node_modules/@ckeditor/ckeditor5-essentials/dist/index.js +1 -1
  42. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-find-and-replace@45.2.1 → @ckeditor_ckeditor5-find-and-replace@45.2.0}/node_modules/@ckeditor/ckeditor5-find-and-replace/dist/index.js +1 -1
  43. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-font@45.2.1 → @ckeditor_ckeditor5-font@45.2.0}/node_modules/@ckeditor/ckeditor5-font/dist/index.js +1 -1
  44. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-heading@45.2.1 → @ckeditor_ckeditor5-heading@45.2.0}/node_modules/@ckeditor/ckeditor5-heading/dist/index.js +1 -1
  45. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-highlight@45.2.1 → @ckeditor_ckeditor5-highlight@45.2.0}/node_modules/@ckeditor/ckeditor5-highlight/dist/index.js +1 -1
  46. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-horizontal-line@45.2.1 → @ckeditor_ckeditor5-horizontal-line@45.2.0}/node_modules/@ckeditor/ckeditor5-horizontal-line/dist/index.js +1 -1
  47. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-html-embed@45.2.1 → @ckeditor_ckeditor5-html-embed@45.2.0}/node_modules/@ckeditor/ckeditor5-html-embed/dist/index.js +1 -1
  48. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-html-support@45.2.1 → @ckeditor_ckeditor5-html-support@45.2.0}/node_modules/@ckeditor/ckeditor5-html-support/dist/index.js +1 -1
  49. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-image@45.2.1 → @ckeditor_ckeditor5-image@45.2.0}/node_modules/@ckeditor/ckeditor5-image/dist/index.js +1 -1
  50. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-indent@45.2.1 → @ckeditor_ckeditor5-indent@45.2.0}/node_modules/@ckeditor/ckeditor5-indent/dist/index.js +1 -1
  51. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-language@45.2.1 → @ckeditor_ckeditor5-language@45.2.0}/node_modules/@ckeditor/ckeditor5-language/dist/index.js +1 -1
  52. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-link@45.2.1 → @ckeditor_ckeditor5-link@45.2.0}/node_modules/@ckeditor/ckeditor5-link/dist/index.js +1 -1
  53. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-list@45.2.1 → @ckeditor_ckeditor5-list@45.2.0}/node_modules/@ckeditor/ckeditor5-list/dist/index.js +1 -1
  54. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-markdown-gfm@45.2.1 → @ckeditor_ckeditor5-markdown-gfm@45.2.0}/node_modules/@ckeditor/ckeditor5-markdown-gfm/dist/index.js +1 -1
  55. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-media-embed@45.2.1 → @ckeditor_ckeditor5-media-embed@45.2.0}/node_modules/@ckeditor/ckeditor5-media-embed/dist/index.js +1 -1
  56. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-mention@45.2.1 → @ckeditor_ckeditor5-mention@45.2.0}/node_modules/@ckeditor/ckeditor5-mention/dist/index.js +1 -1
  57. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-page-break@45.2.1 → @ckeditor_ckeditor5-page-break@45.2.0}/node_modules/@ckeditor/ckeditor5-page-break/dist/index.js +1 -1
  58. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-paragraph@45.2.1 → @ckeditor_ckeditor5-paragraph@45.2.0}/node_modules/@ckeditor/ckeditor5-paragraph/dist/index.js +1 -1
  59. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-paste-from-office@45.2.1 → @ckeditor_ckeditor5-paste-from-office@45.2.0}/node_modules/@ckeditor/ckeditor5-paste-from-office/dist/index.js +1 -1
  60. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-remove-format@45.2.1 → @ckeditor_ckeditor5-remove-format@45.2.0}/node_modules/@ckeditor/ckeditor5-remove-format/dist/index.js +1 -1
  61. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-select-all@45.2.1 → @ckeditor_ckeditor5-select-all@45.2.0}/node_modules/@ckeditor/ckeditor5-select-all/dist/index.js +1 -1
  62. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-show-blocks@45.2.1 → @ckeditor_ckeditor5-show-blocks@45.2.0}/node_modules/@ckeditor/ckeditor5-show-blocks/dist/index.js +1 -1
  63. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-source-editing@45.2.1 → @ckeditor_ckeditor5-source-editing@45.2.0}/node_modules/@ckeditor/ckeditor5-source-editing/dist/index.js +1 -1
  64. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-special-characters@45.2.1 → @ckeditor_ckeditor5-special-characters@45.2.0}/node_modules/@ckeditor/ckeditor5-special-characters/dist/index.js +1 -1
  65. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-style@45.2.1 → @ckeditor_ckeditor5-style@45.2.0}/node_modules/@ckeditor/ckeditor5-style/dist/index.js +1 -1
  66. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-table@45.2.1 → @ckeditor_ckeditor5-table@45.2.0}/node_modules/@ckeditor/ckeditor5-table/dist/index.js +1 -1
  67. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-typing@45.2.0/node_modules/@ckeditor/ckeditor5-typing/dist/index.js +13 -0
  68. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-ui@45.2.1 → @ckeditor_ckeditor5-ui@45.2.0}/node_modules/@ckeditor/ckeditor5-ui/dist/index.js +1 -1
  69. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-undo@45.2.1 → @ckeditor_ckeditor5-undo@45.2.0}/node_modules/@ckeditor/ckeditor5-undo/dist/index.js +1 -1
  70. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-upload@45.2.1 → @ckeditor_ckeditor5-upload@45.2.0}/node_modules/@ckeditor/ckeditor5-upload/dist/index.js +1 -1
  71. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-utils@45.2.1 → @ckeditor_ckeditor5-utils@45.2.0}/node_modules/@ckeditor/ckeditor5-utils/dist/index.js +1 -1
  72. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-widget@45.2.1 → @ckeditor_ckeditor5-widget@45.2.0}/node_modules/@ckeditor/ckeditor5-widget/dist/index.js +1 -1
  73. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.3/node_modules/@figma/code-connect/dist/client/external.js +1 -1
  74. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.3/node_modules/@figma/code-connect/dist/common/updates.js +1 -1
  75. package/dist/node_modules/.pnpm/@floating-ui_core@1.7.1/node_modules/@floating-ui/core/dist/floating-ui.core.js +1 -0
  76. package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.1/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +1 -0
  77. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.9/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +1 -0
  78. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.9/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +1 -0
  79. package/dist/node_modules/.pnpm/{@storybook_instrumenter@8.6.14_storybook@8.6.14_prettier@3.6.2_ → @storybook_instrumenter@8.6.14_storybook@8.6.14_prettier@3.5.3_}/node_modules/@storybook/instrumenter/dist/index.js +1 -1
  80. package/dist/node_modules/.pnpm/{@storybook_test@8.6.14_storybook@8.6.14_prettier@3.6.2_ → @storybook_test@8.6.14_storybook@8.6.14_prettier@3.5.3_}/node_modules/@storybook/test/dist/index.js +1 -1
  81. package/dist/node_modules/.pnpm/{@vitest_expect@3.2.4 → @vitest_expect@3.2.3}/node_modules/@vitest/expect/dist/index.js +10 -10
  82. package/dist/node_modules/.pnpm/{@vitest_runner@3.2.4 → @vitest_runner@3.2.3}/node_modules/@vitest/runner/dist/chunk-hooks.js +3 -3
  83. package/dist/node_modules/.pnpm/@vitest_snapshot@3.2.3/node_modules/@vitest/snapshot/dist/index.js +27 -0
  84. package/dist/node_modules/.pnpm/@vitest_spy@3.2.3/node_modules/@vitest/spy/dist/index.js +1 -0
  85. package/dist/node_modules/.pnpm/{@vitest_utils@3.2.4 → @vitest_utils@3.2.3}/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js +1 -1
  86. package/dist/node_modules/.pnpm/{@vitest_utils@3.2.4 → @vitest_utils@3.2.3}/node_modules/@vitest/utils/dist/diff.js +1 -1
  87. package/dist/node_modules/.pnpm/@vitest_utils@3.2.3/node_modules/@vitest/utils/dist/error.js +2 -0
  88. package/dist/node_modules/.pnpm/{@vitest_utils@3.2.4 → @vitest_utils@3.2.3}/node_modules/@vitest/utils/dist/helpers.js +1 -1
  89. package/dist/node_modules/.pnpm/@vitest_utils@3.2.3/node_modules/@vitest/utils/dist/index.js +1 -0
  90. package/dist/node_modules/.pnpm/ansi-styles@4.3.0/node_modules/ansi-styles/index.js +1 -1
  91. package/dist/node_modules/.pnpm/base64-js@1.5.1/node_modules/base64-js/index.js +1 -1
  92. package/dist/node_modules/.pnpm/buffer@5.7.1/node_modules/buffer/index.js +1 -1
  93. package/dist/node_modules/.pnpm/call-bind@1.0.8/node_modules/call-bind/index.js +1 -1
  94. package/dist/node_modules/.pnpm/ieee754@1.2.1/node_modules/ieee754/index.js +1 -1
  95. package/dist/node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/html.js +2 -0
  96. package/dist/node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/index.js +1 -0
  97. package/dist/node_modules/.pnpm/safe-buffer@5.1.2/node_modules/safe-buffer/index.js +1 -1
  98. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/index.js +1 -1
  99. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/api/index.js +1 -1
  100. package/dist/node_modules/.pnpm/{vitest@3.2.4_@types_debug@4.1.12_@types_node@24.0.7_@vitest_browser@3.2.4_@vitest_ui@3._93f645c93c51b497c065da8f21fff0a5 → vitest@3.2.3_@types_debug@4.1.12_@types_node@24.0.1_@vitest_browser@3.2.3_@vitest_ui@3._a591a0367320796449cdd25961131eb5}/node_modules/vitest/dist/chunks/utils.XdZDrNZV.js +1 -1
  101. package/dist/node_modules/.pnpm/{vitest@3.2.4_@types_debug@4.1.12_@types_node@24.0.7_@vitest_browser@3.2.4_@vitest_ui@3._93f645c93c51b497c065da8f21fff0a5 → vitest@3.2.3_@types_debug@4.1.12_@types_node@24.0.1_@vitest_browser@3.2.3_@vitest_ui@3._a591a0367320796449cdd25961131eb5}/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js +1 -1
  102. package/dist/packages/web-components/src/components/banner/gator/banner.gator.scss.js +1 -1
  103. package/dist/packages/web-components/src/components/table/gator/table.gator.scss.js +1 -1
  104. package/dist/types/components/avatar/gator/avatar.gator.d.ts +0 -1
  105. package/dist/types/components/banner/gator/banner.gator.d.ts +0 -5
  106. package/dist/types/components/checkbox/checkbox.gator.d.ts +0 -4
  107. package/dist/types/components/menu/menu-item/gator/menu-item.gator.d.ts +0 -1
  108. package/dist/types/components/table/gator/__tests__/test-table-data.d.ts +0 -31
  109. package/dist/types/components/table/gator/table.gator.d.ts +0 -5
  110. package/dist/types/components/table/table.d.ts +0 -2
  111. package/dist/utils/vitest-a11y-utils.js +1 -1
  112. package/package.json +20 -21
  113. package/web-types.json +1 -12
  114. package/dist/_virtual/external3.js +0 -1
  115. package/dist/_virtual/index13.js +0 -1
  116. package/dist/_virtual/index_react.js +0 -1
  117. package/dist/_virtual/index_react2.js +0 -1
  118. package/dist/_virtual/react.production.js +0 -1
  119. package/dist/components/alert/alert.gator.figma.js +0 -7
  120. package/dist/components/avatar/gator/avatar.gator.figma.js +0 -9
  121. package/dist/components/banner/gator/banner.gator.figma.js +0 -8
  122. package/dist/components/boolean/boolean.gator.figma.js +0 -11
  123. package/dist/components/button-group/gator/button-group.gator.figma.js +0 -7
  124. package/dist/components/icon/gator/icons.gator.figma.js +0 -1
  125. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-typing@45.2.1/node_modules/@ckeditor/ckeditor5-typing/dist/index.js +0 -13
  126. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.3/node_modules/@figma/code-connect/dist/react/external.js +0 -1
  127. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.3/node_modules/@figma/code-connect/dist/react/index_react.js +0 -1
  128. package/dist/node_modules/.pnpm/@floating-ui_core@1.7.2/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -1
  129. package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.2/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -1
  130. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -1
  131. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -1
  132. package/dist/node_modules/.pnpm/@vitest_snapshot@3.2.4/node_modules/@vitest/snapshot/dist/index.js +0 -27
  133. package/dist/node_modules/.pnpm/@vitest_spy@3.2.4/node_modules/@vitest/spy/dist/index.js +0 -1
  134. package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/error.js +0 -2
  135. package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/index.js +0 -1
  136. package/dist/node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/html.js +0 -2
  137. package/dist/node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/index.js +0 -1
  138. package/dist/node_modules/.pnpm/react@19.1.0/node_modules/react/cjs/react.production.js +0 -9
  139. package/dist/node_modules/.pnpm/react@19.1.0/node_modules/react/index.js +0 -1
  140. package/dist/types/components/alert/alert.gator.figma.d.ts +0 -1
  141. package/dist/types/components/avatar/gator/avatar.gator.figma.d.ts +0 -1
  142. package/dist/types/components/banner/gator/banner.gator.figma.d.ts +0 -1
  143. package/dist/types/components/boolean/boolean.gator.figma.d.ts +0 -1
  144. package/dist/types/components/button-group/gator/button-group.gator.figma.d.ts +0 -1
  145. package/dist/types/components/icon/gator/icons.gator.figma.d.ts +0 -1
  146. /package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-icons@45.2.1 → @ckeditor_ckeditor5-icons@45.2.0}/node_modules/@ckeditor/ckeditor5-icons/dist/index.js +0 -0
  147. /package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-watchdog@45.2.1 → @ckeditor_ckeditor5-watchdog@45.2.0}/node_modules/@ckeditor/ckeditor5-watchdog/dist/index.js +0 -0
  148. /package/dist/node_modules/.pnpm/{@storybook_core@8.6.14_prettier@3.6.2_storybook@8.6.14_prettier@3.6.2_ → @storybook_core@8.6.14_prettier@3.5.3_storybook@8.6.14_prettier@3.5.3_}/node_modules/@storybook/core/dist/channels/index.js +0 -0
  149. /package/dist/node_modules/.pnpm/{@storybook_core@8.6.14_prettier@3.6.2_storybook@8.6.14_prettier@3.6.2_ → @storybook_core@8.6.14_prettier@3.5.3_storybook@8.6.14_prettier@3.5.3_}/node_modules/@storybook/core/dist/client-logger/index.js +0 -0
  150. /package/dist/node_modules/.pnpm/{@storybook_core@8.6.14_prettier@3.6.2_storybook@8.6.14_prettier@3.6.2_ → @storybook_core@8.6.14_prettier@3.5.3_storybook@8.6.14_prettier@3.5.3_}/node_modules/@storybook/core/dist/core-events/index.js +0 -0
  151. /package/dist/node_modules/.pnpm/{@storybook_core@8.6.14_prettier@3.6.2_storybook@8.6.14_prettier@3.6.2_ → @storybook_core@8.6.14_prettier@3.5.3_storybook@8.6.14_prettier@3.5.3_}/node_modules/@storybook/core/dist/csf/index.js +0 -0
  152. /package/dist/node_modules/.pnpm/{@storybook_core@8.6.14_prettier@3.6.2_storybook@8.6.14_prettier@3.6.2_ → @storybook_core@8.6.14_prettier@3.5.3_storybook@8.6.14_prettier@3.5.3_}/node_modules/@storybook/core/dist/preview-api/index.js +0 -0
  153. /package/dist/node_modules/.pnpm/{@storybook_core@8.6.14_prettier@3.6.2_storybook@8.6.14_prettier@3.6.2_ → @storybook_core@8.6.14_prettier@3.5.3_storybook@8.6.14_prettier@3.5.3_}/node_modules/@storybook/core/dist/preview-errors.js +0 -0
  154. /package/dist/node_modules/.pnpm/{@vitest_browser@3.2.4_msw@2.7.3_@types_node@24.0.7_typescript@5.8.3__playwright@1.53.1__894c207534f0ba223b8299d9f5ff1049 → @vitest_browser@3.2.3_msw@2.7.3_@types_node@24.0.1_typescript@5.8.3__playwright@1.52.0__43e5121a65d82cd327038d090e2dfb2c}/node_modules/@vitest/browser/context.js +0 -0
  155. /package/dist/node_modules/.pnpm/{@vitest_pretty-format@3.2.4 → @vitest_pretty-format@3.2.3}/node_modules/@vitest/pretty-format/dist/index.js +0 -0
  156. /package/dist/node_modules/.pnpm/{@vitest_utils@3.2.4 → @vitest_utils@3.2.3}/node_modules/@vitest/utils/dist/source-map.js +0 -0
  157. /package/dist/node_modules/.pnpm/{loupe@3.1.4 → loupe@3.1.3}/node_modules/loupe/lib/arguments.js +0 -0
  158. /package/dist/node_modules/.pnpm/{loupe@3.1.4 → loupe@3.1.3}/node_modules/loupe/lib/array.js +0 -0
  159. /package/dist/node_modules/.pnpm/{loupe@3.1.4 → loupe@3.1.3}/node_modules/loupe/lib/bigint.js +0 -0
  160. /package/dist/node_modules/.pnpm/{loupe@3.1.4 → loupe@3.1.3}/node_modules/loupe/lib/class.js +0 -0
  161. /package/dist/node_modules/.pnpm/{loupe@3.1.4 → loupe@3.1.3}/node_modules/loupe/lib/date.js +0 -0
  162. /package/dist/node_modules/.pnpm/{loupe@3.1.4 → loupe@3.1.3}/node_modules/loupe/lib/error.js +0 -0
  163. /package/dist/node_modules/.pnpm/{loupe@3.1.4 → loupe@3.1.3}/node_modules/loupe/lib/function.js +0 -0
  164. /package/dist/node_modules/.pnpm/{loupe@3.1.4 → loupe@3.1.3}/node_modules/loupe/lib/helpers.js +0 -0
  165. /package/dist/node_modules/.pnpm/{loupe@3.1.4 → loupe@3.1.3}/node_modules/loupe/lib/map.js +0 -0
  166. /package/dist/node_modules/.pnpm/{loupe@3.1.4 → loupe@3.1.3}/node_modules/loupe/lib/number.js +0 -0
  167. /package/dist/node_modules/.pnpm/{loupe@3.1.4 → loupe@3.1.3}/node_modules/loupe/lib/object.js +0 -0
  168. /package/dist/node_modules/.pnpm/{loupe@3.1.4 → loupe@3.1.3}/node_modules/loupe/lib/promise.js +0 -0
  169. /package/dist/node_modules/.pnpm/{loupe@3.1.4 → loupe@3.1.3}/node_modules/loupe/lib/regexp.js +0 -0
  170. /package/dist/node_modules/.pnpm/{loupe@3.1.4 → loupe@3.1.3}/node_modules/loupe/lib/set.js +0 -0
  171. /package/dist/node_modules/.pnpm/{loupe@3.1.4 → loupe@3.1.3}/node_modules/loupe/lib/string.js +0 -0
  172. /package/dist/node_modules/.pnpm/{loupe@3.1.4 → loupe@3.1.3}/node_modules/loupe/lib/symbol.js +0 -0
  173. /package/dist/node_modules/.pnpm/{loupe@3.1.4 → loupe@3.1.3}/node_modules/loupe/lib/typedarray.js +0 -0
  174. /package/dist/node_modules/.pnpm/{vitest@3.2.4_@types_debug@4.1.12_@types_node@24.0.7_@vitest_browser@3.2.4_@vitest_ui@3._93f645c93c51b497c065da8f21fff0a5 → vitest@3.2.3_@types_debug@4.1.12_@types_node@24.0.1_@vitest_browser@3.2.3_@vitest_ui@3._a591a0367320796449cdd25961131eb5}/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.js +0 -0
  175. /package/dist/node_modules/.pnpm/{vitest@3.2.4_@types_debug@4.1.12_@types_node@24.0.7_@vitest_browser@3.2.4_@vitest_ui@3._93f645c93c51b497c065da8f21fff0a5 → vitest@3.2.3_@types_debug@4.1.12_@types_node@24.0.1_@vitest_browser@3.2.3_@vitest_ui@3._a591a0367320796449cdd25961131eb5}/node_modules/vitest/dist/chunks/date.Bq6ZW5rf.js +0 -0
@@ -1,4 +1,4 @@
1
- var Fe=Object.defineProperty;var Oe=(s,i,e)=>i in s?Fe(s,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[i]=e;var p=(s,i,e)=>Oe(s,typeof i!="symbol"?i+"":i,e);import{Plugin as w,Command as v}from"../../../../../@ckeditor_ckeditor5-core@45.2.1/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{Delete as Re}from"../../../../../@ckeditor_ckeditor5-typing@45.2.1/node_modules/@ckeditor/ckeditor5-typing/dist/index.js";import{Enter as Me}from"../../../../../@ckeditor_ckeditor5-enter@45.2.1/node_modules/@ckeditor/ckeditor5-enter/dist/index.js";import{CKEditorError as De,getCode as Ue,toArray as L,first as U,parseKeystroke as $e,getLocalizedArrowKeyCodeDirection as Ke,uid as We,FocusTracker as te,KeystrokeHandler as ie,global as je}from"../../../../../@ckeditor_ckeditor5-utils@45.2.1/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{ClipboardPipeline as qe}from"../../../../../@ckeditor_ckeditor5-clipboard@45.2.1/node_modules/@ckeditor/ckeditor5-clipboard/dist/index.js";import{createDropdown as He,SplitButtonView as Ye,MenuBarMenuView as ze,ButtonView as Z,MenuBarMenuListItemButtonView as Ge,focusChildOnDropdownOpen as Ze,View as se,ViewCollection as Je,FocusCycler as Qe,addKeyboardHandlingForGrid as Xe,CollapsibleView as et,LabeledFieldView as tt,createLabeledInputNumber as it,SwitchButtonView as st}from"../../../../../@ckeditor_ckeditor5-ui@45.2.1/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{IconListStyleDisc as nt,IconListStyleCircle as rt,IconListStyleSquare as ot,IconListStyleDecimal as lt,IconListStyleDecimalLeadingZero as ct,IconListStyleLowerRoman as at,IconListStyleUpperRoman as ut,IconListStyleLowerLatin as dt,IconListStyleUpperLatin as ft,IconBulletedList as J,IconNumberedList as Q,IconTodoList as mt}from"../../../../../@ckeditor_ckeditor5-icons@45.2.1/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";import{DomEventObserver as pt,Matcher as ye}from"../../../../../@ckeditor_ckeditor5-engine@45.2.1/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";/**
1
+ var Fe=Object.defineProperty;var Oe=(s,i,e)=>i in s?Fe(s,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[i]=e;var p=(s,i,e)=>Oe(s,typeof i!="symbol"?i+"":i,e);import{Plugin as w,Command as v}from"../../../../../@ckeditor_ckeditor5-core@45.2.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{Delete as Re}from"../../../../../@ckeditor_ckeditor5-typing@45.2.0/node_modules/@ckeditor/ckeditor5-typing/dist/index.js";import{Enter as Me}from"../../../../../@ckeditor_ckeditor5-enter@45.2.0/node_modules/@ckeditor/ckeditor5-enter/dist/index.js";import{CKEditorError as De,getCode as Ue,toArray as L,first as U,parseKeystroke as $e,getLocalizedArrowKeyCodeDirection as Ke,uid as We,FocusTracker as te,KeystrokeHandler as ie,global as je}from"../../../../../@ckeditor_ckeditor5-utils@45.2.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{ClipboardPipeline as qe}from"../../../../../@ckeditor_ckeditor5-clipboard@45.2.0/node_modules/@ckeditor/ckeditor5-clipboard/dist/index.js";import{createDropdown as He,SplitButtonView as Ye,MenuBarMenuView as ze,ButtonView as Z,MenuBarMenuListItemButtonView as Ge,focusChildOnDropdownOpen as Ze,View as se,ViewCollection as Je,FocusCycler as Qe,addKeyboardHandlingForGrid as Xe,CollapsibleView as et,LabeledFieldView as tt,createLabeledInputNumber as it,SwitchButtonView as st}from"../../../../../@ckeditor_ckeditor5-ui@45.2.0/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{IconListStyleDisc as nt,IconListStyleCircle as rt,IconListStyleSquare as ot,IconListStyleDecimal as lt,IconListStyleDecimalLeadingZero as ct,IconListStyleLowerRoman as at,IconListStyleUpperRoman as ut,IconListStyleLowerLatin as dt,IconListStyleUpperLatin as ft,IconBulletedList as J,IconNumberedList as Q,IconTodoList as mt}from"../../../../../@ckeditor_ckeditor5-icons@45.2.0/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";import{DomEventObserver as pt,Matcher as ye}from"../../../../../@ckeditor_ckeditor5-engine@45.2.0/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";/**
2
2
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */class y{constructor(i,e){p(this,"_startElement");p(this,"_referenceIndent");p(this,"_isForward");p(this,"_includeSelf");p(this,"_sameAttributes");p(this,"_sameIndent");p(this,"_lowerIndent");p(this,"_higherIndent");this._startElement=i,this._referenceIndent=i.getAttribute("listIndent"),this._isForward=e.direction=="forward",this._includeSelf=!!e.includeSelf,this._sameAttributes=L(e.sameAttributes||[]),this._sameIndent=!!e.sameIndent,this._lowerIndent=!!e.lowerIndent,this._higherIndent=!!e.higherIndent}static first(i,e){const n=new this(i,e)[Symbol.iterator]();return U(n)}*[Symbol.iterator](){const i=[];for(const{node:e}of new N(this._getStartNode(),this._isForward?"forward":"backward")){const t=e.getAttribute("listIndent");if(t<this._referenceIndent){if(!this._lowerIndent)break;this._referenceIndent=t}else if(t>this._referenceIndent){if(!this._higherIndent)continue;if(!this._isForward){i.push(e);continue}}else{if(!this._sameIndent){if(this._higherIndent){i.length&&(yield*i,i.length=0);break}continue}if(this._sameAttributes.some(n=>e.getAttribute(n)!==this._startElement.getAttribute(n)))break}i.length&&(yield*i,i.length=0),yield e}}_getStartNode(){return this._includeSelf?this._startElement:this._isForward?this._startElement.nextSibling:this._startElement.previousSibling}}class N{constructor(i,e="forward"){p(this,"_node");p(this,"_isForward");p(this,"_previousNodesByIndent",[]);p(this,"_previous",null);p(this,"_previousNodeIndent",null);this._node=i,this._isForward=e==="forward"}[Symbol.iterator](){return this}next(){if(!h(this._node))return{done:!0,value:void 0};const i=this._node.getAttribute("listIndent");let e=null;if(this._previous){const n=this._previousNodeIndent;i>n?this._previousNodesByIndent[n]=this._previous:i<n?(e=this._previousNodesByIndent[i]||null,this._previousNodesByIndent.length=i):e=this._previous}const t={node:this._node,previous:this._previous,previousNodeInList:e};return this._previous=this._node,this._previousNodeIndent=i,this._node=this._isForward?this._node.nextSibling:this._node.previousSibling,{value:t,done:!1}}}class ht{constructor(i){p(this,"_listHead");this._listHead=i}[Symbol.iterator](){return new N(this._listHead)}}class _{static next(){return We()}}function h(s){return!!s&&s.is("element")&&s.hasAttribute("listItemId")}function C(s,i={}){return[...T(s,{...i,direction:"backward"}),...T(s,{...i,direction:"forward"})]}function T(s,i={}){const e=i.direction=="forward",t=Array.from(new y(s,{...i,includeSelf:e,sameIndent:!0,sameAttributes:"listItemId"}));return e?t:t.reverse()}function gt(s){return Array.from(new y(s,{direction:"forward",higherIndent:!0}))}function Ie(s,i){const e=new y(s,{sameIndent:!0,sameAttributes:"listType",...i}),t=new y(s,{sameIndent:!0,sameAttributes:"listType",includeSelf:!0,direction:"forward",...i});return[...Array.from(e).reverse(),...t]}function k(s){return!y.first(s,{sameIndent:!0,sameAttributes:"listItemId"})}function ne(s){return!y.first(s,{direction:"forward",sameIndent:!0,sameAttributes:"listItemId"})}function F(s,i={}){s=L(s);const e=i.withNested!==!1,t=new Set;for(const n of s)for(const r of C(n,{higherIndent:e}))t.add(r);return S(t)}function $(s){s=L(s);const i=new Set;for(const e of s)for(const t of Ie(e))i.add(t);return S(i)}function X(s,i){const e=T(s,{direction:"forward"}),t=_.next();for(const n of e)i.setAttribute("listItemId",t,n);return e}function q(s,i,e){const t={};for(const[r,o]of i.getAttributes())r.startsWith("list")&&(t[r]=o);const n=T(s,{direction:"forward"});for(const r of n)e.setAttributes(t,r);return n}function H(s,i,{expand:e,indentBy:t=1}={}){s=L(s);const n=e?F(s):s;for(const r of n){const o=r.getAttribute("listIndent")+t;o<0?K(r,i):i.setAttribute("listIndent",o,r)}return n}function bt(s,i){s=L(s);const e=F(s),t=new Set,n=Math.min(...e.map(o=>o.getAttribute("listIndent"))),r=new Map;for(const o of e)r.set(o,y.first(o,{lowerIndent:!0}));for(const o of e){if(t.has(o))continue;t.add(o);const l=o.getAttribute("listIndent")-1;if(l<0){K(o,i);continue}if(o.getAttribute("listIndent")==n){const c=It(o,r.get(o),i);for(const a of c)t.add(a);if(c.length)continue}i.setAttribute("listIndent",l,o)}return S(t)}function K(s,i){s=L(s);for(const e of s)e.is("element","listItem")&&i.rename(e,"paragraph");for(const e of s)for(const t of e.getAttributeKeys())t.startsWith("list")&&i.removeAttribute(t,e);return s}function B(s){if(!s.length)return!1;const i=s[0].getAttribute("listItemId");return i?!s.some(e=>e.getAttribute("listItemId")!=i):!1}function yt(s,i){const e=[];let t=Number.POSITIVE_INFINITY;for(const{node:n}of new N(s.nextSibling)){const r=n.getAttribute("listIndent");if(r==0)break;r<t&&(t=r);const o=r-t;i.setAttribute("listIndent",o,n),e.push(n)}return e}function S(s){return Array.from(s).filter(i=>i.root.rootName!=="$graveyard").sort((i,e)=>i.index-e.index)}function P(s){const i=s.document.selection.getSelectedElement();return i&&s.schema.isObject(i)&&s.schema.isBlock(i)?i:null}function W(s,i){return i.checkChild(s.parent,"listItem")&&i.checkChild(s,"$text")&&!i.isObject(s)}function D(s){return s=="numbered"||s=="customNumbered"}function It(s,i,e){return T(i,{direction:"forward"}).pop().index>s.index?q(s,i,e):[]}class re extends v{constructor(e,t){super(e);p(this,"_direction");this._direction=t}refresh(){this.isEnabled=this._checkEnabled()}execute(){const e=this.editor.model,t=oe(e.document.selection);e.change(n=>{const r=[];B(t)&&!k(t[0])?(this._direction=="forward"&&r.push(...H(t,n)),r.push(...X(t[0],n))):this._direction=="forward"?r.push(...H(t,n,{expand:!0})):r.push(...bt(t,n));for(const o of r){if(!o.hasAttribute("listType"))continue;const l=y.first(o,{sameIndent:!0});l&&n.setAttribute("listType",l.getAttribute("listType"),o)}this._fireAfterExecute(r)})}_fireAfterExecute(e){this.fire("afterExecute",S(new Set(e)))}_checkEnabled(){let e=oe(this.editor.model.document.selection),t=e[0];if(!t)return!1;if(this._direction=="backward"||B(e)&&!k(e[0]))return!0;e=F(e),t=e[0];const n=y.first(t,{sameIndent:!0});return n?n.getAttribute("listType")==t.getAttribute("listType"):!1}}function oe(s){const i=Array.from(s.getSelectedBlocks()),e=i.findIndex(t=>!h(t));return e!=-1&&(i.length=e),i}class E extends v{constructor(e,t,n={}){super(e);p(this,"type");p(this,"_listWalkerOptions");this.type=t,this._listWalkerOptions=n.multiLevel?{higherIndent:!0,lowerIndent:!0,sameAttributes:[]}:void 0}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(e={}){const t=this.editor.model,n=t.document,r=P(t),o=Array.from(n.selection.getSelectedBlocks()).filter(c=>t.schema.checkAttribute(c,"listType")||W(c,t.schema)),l=e.forceValue!==void 0?!e.forceValue:this.value;t.change(c=>{if(l){const a=o[o.length-1],u=T(a,{direction:"forward"}),d=[];u.length>1&&d.push(...X(u[1],c)),d.push(...K(o,c)),d.push(...yt(a,c)),this._fireAfterExecute(d)}else if((r||n.selection.isCollapsed)&&h(o[0])){const a=Ie(r||o[0],this._listWalkerOptions);for(const u of a)c.setAttributes({...e.additionalAttributes,listType:this.type},u);this._fireAfterExecute(a)}else{const a=[];for(const u of o)if(!u.hasAttribute("listType"))!u.is("element","listItem")&&W(u,t.schema)&&c.rename(u,"listItem"),c.setAttributes({...e.additionalAttributes,listIndent:0,listItemId:_.next(),listType:this.type},u),a.push(u);else for(const d of F(u,{withNested:!1}))d.getAttribute("listType")!=this.type&&(c.setAttributes({...e.additionalAttributes,listType:this.type},d),a.push(d));this._fireAfterExecute(a)}})}_fireAfterExecute(e){this.fire("afterExecute",S(new Set(e)))}_getValue(){const e=this.editor.model.document.selection,t=Array.from(e.getSelectedBlocks());if(!t.length)return!1;for(const n of t)if(n.getAttribute("listType")!=this.type)return!1;return!0}_checkEnabled(){const e=this.editor.model,t=e.schema,n=e.document.selection,r=Array.from(n.getSelectedBlocks());if(!r.length)return!1;if(this.value)return!0;for(const o of r)if(t.checkAttribute(o,"listType")||W(o,t))return!0;return!1}}class le extends v{constructor(e,t){super(e);p(this,"_direction");this._direction=t}refresh(){this.isEnabled=this._checkEnabled()}execute({shouldMergeOnBlocksContentLevel:e=!1}={}){const t=this.editor.model,n=t.document.selection,r=[];t.change(o=>{const{firstElement:l,lastElement:c}=this._getMergeSubjectElements(n,e),a=l.getAttribute("listIndent")||0,u=c.getAttribute("listIndent"),d=c.getAttribute("listItemId");if(a!=u){const f=gt(c);r.push(...H([c,...f],o,{indentBy:a-u,expand:a<u}))}if(e){let f=n;n.isCollapsed&&(f=o.createSelection(o.createRange(o.createPositionAt(l,"end"),o.createPositionAt(c,0)))),t.deleteContent(f,{doNotResetEntireContent:n.isCollapsed});const m=f.getLastPosition().parent,g=m.nextSibling;r.push(m),g&&g!==c&&g.getAttribute("listItemId")==d&&r.push(...q(g,m,o))}else r.push(...q(c,l,o));this._fireAfterExecute(r)})}_fireAfterExecute(e){this.fire("afterExecute",S(new Set(e)))}_checkEnabled(){const e=this.editor.model,t=e.document.selection,n=P(e);if(t.isCollapsed||n){const r=n||t.getFirstPosition().parent;if(!h(r))return!1;const o=this._direction=="backward"?r.previousSibling:r.nextSibling;if(!o||B([r,o]))return!1}else{const r=t.getLastPosition(),o=t.getFirstPosition();if(r.parent===o.parent||!h(r.parent))return!1}return!0}_getMergeSubjectElements(e,t){const n=this.editor.model,r=P(n);let o,l;if(e.isCollapsed||r){const c=r||e.getFirstPosition().parent,a=k(c);this._direction=="backward"?(l=c,a&&!t?o=y.first(c,{sameIndent:!0,lowerIndent:!0}):o=c.previousSibling):(o=c,l=c.nextSibling)}else o=e.getFirstPosition().parent,l=e.getLastPosition().parent;return{firstElement:o,lastElement:l}}}class ce extends v{constructor(e,t){super(e);p(this,"_direction");this._direction=t}refresh(){this.isEnabled=this._checkEnabled()}execute(){this.editor.model.change(t=>{const n=X(this._getStartBlock(),t);this._fireAfterExecute(n)})}_fireAfterExecute(e){this.fire("afterExecute",S(new Set(e)))}_checkEnabled(){const e=this.editor.model.document.selection,t=this._getStartBlock();return e.isCollapsed&&h(t)&&!k(t)}_getStartBlock(){const t=this.editor.model.document.selection.getFirstPosition().parent;return this._direction=="before"?t:t.nextSibling}}class wt extends w{static get pluginName(){return"ListUtils"}static get isOfficialPlugin(){return!0}expandListBlocksToCompleteList(i){return $(i)}isFirstBlockOfListItem(i){return k(i)}isListItemBlock(i){return h(i)}expandListBlocksToCompleteItems(i,e={}){return F(i,e)}isNumberedListType(i){return D(i)}}/**
@@ -1,4 +1,4 @@
1
- var g=Object.defineProperty;var w=(o,e,t)=>e in o?g(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var c=(o,e,t)=>w(o,typeof e!="symbol"?e+"":e,t);import{Plugin as u}from"../../../../../@ckeditor_ckeditor5-core@45.2.1/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{HtmlDataProcessor as _}from"../../../../../@ckeditor_ckeditor5-engine@45.2.1/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";import{marked as p}from"../../../../../marked@4.0.12/node_modules/marked/lib/marked.esm.js";import k from"../../../../../turndown@7.2.0/node_modules/turndown/lib/turndown.browser.es.js";import{gfm as T}from"../../../../../turndown-plugin-gfm@1.0.2/node_modules/turndown-plugin-gfm/lib/turndown-plugin-gfm.es.js";import{ClipboardPipeline as P}from"../../../../../@ckeditor_ckeditor5-clipboard@45.2.1/node_modules/@ckeditor/ckeditor5-clipboard/dist/index.js";/**
1
+ var g=Object.defineProperty;var w=(o,e,t)=>e in o?g(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var c=(o,e,t)=>w(o,typeof e!="symbol"?e+"":e,t);import{Plugin as u}from"../../../../../@ckeditor_ckeditor5-core@45.2.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{HtmlDataProcessor as _}from"../../../../../@ckeditor_ckeditor5-engine@45.2.0/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";import{marked as p}from"../../../../../marked@4.0.12/node_modules/marked/lib/marked.esm.js";import k from"../../../../../turndown@7.2.0/node_modules/turndown/lib/turndown.browser.es.js";import{gfm as T}from"../../../../../turndown-plugin-gfm@1.0.2/node_modules/turndown-plugin-gfm/lib/turndown-plugin-gfm.es.js";import{ClipboardPipeline as P}from"../../../../../@ckeditor_ckeditor5-clipboard@45.2.0/node_modules/@ckeditor/ckeditor5-clipboard/dist/index.js";/**
2
2
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */class b{constructor(){c(this,"_parser");c(this,"_options",{gfm:!0,breaks:!0,tables:!0,xhtml:!0,headerIds:!1});p.use({tokenizer:{autolink:()=>null,url:()=>null},renderer:{checkbox(...e){return Object.getPrototypeOf(this).checkbox.call(this,...e).trimRight()},code(...e){return Object.getPrototypeOf(this).code.call(this,...e).replace(`
@@ -1,4 +1,4 @@
1
- var P=Object.defineProperty;var k=(r,i,e)=>i in r?P(r,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[i]=e;var m=(r,i,e)=>k(r,typeof i!="symbol"?i+"":i,e);import{Plugin as f,Command as x}from"../../../../../@ckeditor_ckeditor5-core@45.2.1/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{Widget as R,toWidget as D,findOptimalInsertionRange as C}from"../../../../../@ckeditor_ckeditor5-widget@45.2.1/node_modules/@ckeditor/ckeditor5-widget/dist/index.js";import{global as v,first as F,logWarning as U,toArray as S,FocusTracker as L,KeystrokeHandler as B}from"../../../../../@ckeditor_ckeditor5-utils@45.2.1/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{Dialog as A,ButtonView as N,MenuBarMenuListItemButtonView as O,CssTransitionDisablerMixin as $,IconView as H,Template as W,View as q,submitHandler as j,LabeledFieldView as z,createLabeledInputText as G}from"../../../../../@ckeditor_ckeditor5-ui@45.2.1/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{IconMedia as K,IconMediaPlaceholder as X}from"../../../../../@ckeditor_ckeditor5-icons@45.2.1/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";import{LivePosition as w,LiveRange as J}from"../../../../../@ckeditor_ckeditor5-engine@45.2.1/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";import{Clipboard as Q}from"../../../../../@ckeditor_ckeditor5-clipboard@45.2.1/node_modules/@ckeditor/ckeditor5-clipboard/dist/index.js";import{Delete as _}from"../../../../../@ckeditor_ckeditor5-typing@45.2.1/node_modules/@ckeditor/ckeditor5-typing/dist/index.js";import{Undo as Y}from"../../../../../@ckeditor_ckeditor5-undo@45.2.1/node_modules/@ckeditor/ckeditor5-undo/dist/index.js";/**
1
+ var P=Object.defineProperty;var k=(r,i,e)=>i in r?P(r,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[i]=e;var m=(r,i,e)=>k(r,typeof i!="symbol"?i+"":i,e);import{Plugin as f,Command as x}from"../../../../../@ckeditor_ckeditor5-core@45.2.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{Widget as R,toWidget as D,findOptimalInsertionRange as C}from"../../../../../@ckeditor_ckeditor5-widget@45.2.0/node_modules/@ckeditor/ckeditor5-widget/dist/index.js";import{global as v,first as F,logWarning as U,toArray as S,FocusTracker as L,KeystrokeHandler as B}from"../../../../../@ckeditor_ckeditor5-utils@45.2.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{Dialog as A,ButtonView as N,MenuBarMenuListItemButtonView as O,CssTransitionDisablerMixin as $,IconView as H,Template as W,View as q,submitHandler as j,LabeledFieldView as z,createLabeledInputText as G}from"../../../../../@ckeditor_ckeditor5-ui@45.2.0/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{IconMedia as K,IconMediaPlaceholder as X}from"../../../../../@ckeditor_ckeditor5-icons@45.2.0/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";import{LivePosition as w,LiveRange as J}from"../../../../../@ckeditor_ckeditor5-engine@45.2.0/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";import{Clipboard as Q}from"../../../../../@ckeditor_ckeditor5-clipboard@45.2.0/node_modules/@ckeditor/ckeditor5-clipboard/dist/index.js";import{Delete as _}from"../../../../../@ckeditor_ckeditor5-typing@45.2.0/node_modules/@ckeditor/ckeditor5-typing/dist/index.js";import{Undo as Y}from"../../../../../@ckeditor_ckeditor5-undo@45.2.0/node_modules/@ckeditor/ckeditor5-undo/dist/index.js";/**
2
2
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  *//**
@@ -1,4 +1,4 @@
1
- import"../../../../../@ckeditor_ckeditor5-core@45.2.1/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{keyCodes as r}from"../../../../../@ckeditor_ckeditor5-utils@45.2.1/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import"../../../../../@ckeditor_ckeditor5-engine@45.2.1/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";/**
1
+ import"../../../../../@ckeditor_ckeditor5-core@45.2.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{keyCodes as r}from"../../../../../@ckeditor_ckeditor5-utils@45.2.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import"../../../../../@ckeditor_ckeditor5-engine@45.2.0/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";/**
2
2
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */r.arrowup,r.arrowdown,r.esc;r.enter,r.tab;
@@ -1,4 +1,4 @@
1
- import{Plugin as l,Command as d}from"../../../../../@ckeditor_ckeditor5-core@45.2.1/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{Widget as m,toWidget as p,findOptimalInsertionRange as k}from"../../../../../@ckeditor_ckeditor5-widget@45.2.1/node_modules/@ckeditor/ckeditor5-widget/dist/index.js";import{IconPageBreak as B}from"../../../../../@ckeditor_ckeditor5-icons@45.2.1/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";import{ButtonView as f,MenuBarMenuListItemButtonView as h}from"../../../../../@ckeditor_ckeditor5-ui@45.2.1/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";/**
1
+ import{Plugin as l,Command as d}from"../../../../../@ckeditor_ckeditor5-core@45.2.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{Widget as m,toWidget as p,findOptimalInsertionRange as k}from"../../../../../@ckeditor_ckeditor5-widget@45.2.0/node_modules/@ckeditor/ckeditor5-widget/dist/index.js";import{IconPageBreak as B}from"../../../../../@ckeditor_ckeditor5-icons@45.2.0/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";import{ButtonView as f,MenuBarMenuListItemButtonView as h}from"../../../../../@ckeditor_ckeditor5-ui@45.2.0/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";/**
2
2
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */class P extends d{refresh(){const e=this.editor.model,t=e.schema,a=e.document.selection;this.isEnabled=b(a,t,e)}execute(){const e=this.editor.model;e.change(t=>{const a=t.createElement("pageBreak");e.insertObject(a,null,null,{setSelection:"after"})})}}function b(o,e,t){const a=E(o,t);return e.checkChild(a,"pageBreak")}function E(o,e){const a=k(o,e).start.parent;return a.isEmpty&&!a.is("element","$root")?a.parent:a}class v extends l{static get pluginName(){return"PageBreakEditing"}static get isOfficialPlugin(){return!0}init(){const e=this.editor,t=e.model.schema,a=e.t,s=e.conversion;t.register("pageBreak",{inheritAllFrom:"$blockObject"}),s.for("dataDowncast").elementToStructure({model:"pageBreak",view:(r,{writer:n})=>n.createContainerElement("div",{class:"page-break",style:"page-break-after: always"},n.createContainerElement("span",{style:"display: none"}))}),s.for("editingDowncast").elementToStructure({model:"pageBreak",view:(r,{writer:n})=>{const c=a("Page break"),i=n.createContainerElement("div"),g=n.createRawElement("span",{class:"page-break__label"},function(u){u.innerText=a("Page break")});return n.addClass("page-break",i),n.insert(n.createPositionAt(i,0),g),y(i,n,c)}}),s.for("upcast").elementToElement({view:r=>{const n=r.getStyle("page-break-before")=="always",c=r.getStyle("page-break-after")=="always";if(!n&&!c)return null;if(r.childCount==1){const i=r.getChild(0);if(!i.is("element","span")||i.getStyle("display")!="none")return null}else if(r.childCount>1)return null;return{name:!0}},model:"pageBreak",converterPriority:"high"}),e.commands.add("pageBreak",new P(e))}}function y(o,e,t){return e.setCustomProperty("pageBreak",!0,o),p(o,e,{label:t})}class w extends l{static get pluginName(){return"PageBreakUI"}static get isOfficialPlugin(){return!0}init(){const e=this.editor;e.ui.componentFactory.add("pageBreak",()=>{const t=this._createButton(f);return t.set({tooltip:!0}),t}),e.ui.componentFactory.add("menuBar:pageBreak",()=>this._createButton(h))}_createButton(e){const t=this.editor,a=t.locale,s=t.commands.get("pageBreak"),r=new e(t.locale),n=a.t;return r.set({label:n("Page break"),icon:B}),r.bind("isEnabled").to(s,"isEnabled"),this.listenTo(r,"execute",()=>{t.execute("pageBreak"),t.editing.view.focus()}),r}}class O extends l{static get requires(){return[v,w,m]}static get pluginName(){return"PageBreak"}static get isOfficialPlugin(){return!0}}export{O as PageBreak,v as PageBreakEditing,w as PageBreakUI};
@@ -1,4 +1,4 @@
1
- var p=Object.defineProperty;var u=(s,e,t)=>e in s?p(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var l=(s,e,t)=>u(s,typeof e!="symbol"?e+"":e,t);import{Plugin as g,Command as m}from"../../../../../@ckeditor_ckeditor5-core@45.2.1/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{first as f}from"../../../../../@ckeditor_ckeditor5-utils@45.2.1/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";/**
1
+ var p=Object.defineProperty;var u=(s,e,t)=>e in s?p(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var l=(s,e,t)=>u(s,typeof e!="symbol"?e+"":e,t);import{Plugin as g,Command as m}from"../../../../../@ckeditor_ckeditor5-core@45.2.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{first as f}from"../../../../../@ckeditor_ckeditor5-utils@45.2.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";/**
2
2
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */class P extends m{constructor(e){super(e),this._isEnabledBasedOnSelection=!1}refresh(){const e=this.editor.model,t=e.document,r=f(t.selection.getSelectedBlocks());this.value=!!r&&r.is("element","paragraph"),this.isEnabled=!!r&&d(r,e.schema)}execute(e={}){const t=this.editor.model,r=t.document,n=e.selection||r.selection;t.canEditAt(n)&&t.change(a=>{const o=n.getSelectedBlocks();for(const c of o)!c.is("element","paragraph")&&d(c,t.schema)&&a.rename(c,"paragraph")})}}function d(s,e){return e.checkChild(s.parent,"paragraph")&&!e.isObject(s)}class E extends m{constructor(e){super(e),this._isEnabledBasedOnSelection=!1}execute(e){const t=this.editor.model,r=e.attributes;let n=e.position;return t.canEditAt(n)?t.change(a=>{if(n=this._findPositionToInsertParagraph(n,a),!n)return null;const o=a.createElement("paragraph");return r&&t.schema.setAllowedAttributes(o,r,a),t.insertContent(o,n),a.setSelection(o,"in"),a.createPositionAt(o,0)}):null}_findPositionToInsertParagraph(e,t){const r=this.editor.model;if(r.schema.checkChild(e,"paragraph"))return e;const n=r.schema.findAllowedParent(e,"paragraph");if(!n)return null;const a=e.parent,o=r.schema.checkChild(a,"$text");return a.isEmpty||o&&e.isAtEnd?r.createPositionAfter(a):!a.isEmpty&&o&&e.isAtStart?r.createPositionBefore(a):t.split(e,n).position}}const i=class i extends g{static get pluginName(){return"Paragraph"}static get isOfficialPlugin(){return!0}init(){const e=this.editor,t=e.model;e.commands.add("paragraph",new P(e)),e.commands.add("insertParagraph",new E(e)),t.schema.register("paragraph",{inheritAllFrom:"$block"}),e.conversion.elementToElement({model:"paragraph",view:"p"}),e.conversion.for("upcast").elementToElement({model:(r,{writer:n})=>!i.paragraphLikeElements.has(r.name)||r.isEmpty?null:n.createElement("paragraph"),view:/.+/,converterPriority:"low"})}};l(i,"paragraphLikeElements",new Set(["blockquote","dd","div","dt","h1","h2","h3","h4","h5","h6","li","p","td","th"]));let h=i;export{h as Paragraph};
@@ -1,4 +1,4 @@
1
- var M=Object.defineProperty;var T=(t,e,n)=>e in t?M(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var b=(t,e,n)=>T(t,typeof e!="symbol"?e+"":e,n);import{Plugin as P}from"../../../../../@ckeditor_ckeditor5-core@45.2.1/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{ClipboardPipeline as R}from"../../../../../@ckeditor_ckeditor5-clipboard@45.2.1/node_modules/@ckeditor/ckeditor5-clipboard/dist/index.js";import{UpcastWriter as y,ViewDocument as L,DomConverter as E,Matcher as x}from"../../../../../@ckeditor_ckeditor5-engine@45.2.1/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";/**
1
+ var M=Object.defineProperty;var T=(t,e,n)=>e in t?M(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var b=(t,e,n)=>T(t,typeof e!="symbol"?e+"":e,n);import{Plugin as P}from"../../../../../@ckeditor_ckeditor5-core@45.2.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{ClipboardPipeline as R}from"../../../../../@ckeditor_ckeditor5-clipboard@45.2.0/node_modules/@ckeditor/ckeditor5-clipboard/dist/index.js";import{UpcastWriter as y,ViewDocument as L,DomConverter as E,Matcher as x}from"../../../../../@ckeditor_ckeditor5-engine@45.2.0/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";/**
2
2
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  *//**
@@ -1,4 +1,4 @@
1
- import{Plugin as a,Command as u}from"../../../../../@ckeditor_ckeditor5-core@45.2.1/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{IconRemoveFormat as g}from"../../../../../@ckeditor_ckeditor5-icons@45.2.1/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";import{ButtonView as l,MenuBarMenuListItemButtonView as d}from"../../../../../@ckeditor_ckeditor5-ui@45.2.1/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{first as c}from"../../../../../@ckeditor_ckeditor5-utils@45.2.1/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";/**
1
+ import{Plugin as a,Command as u}from"../../../../../@ckeditor_ckeditor5-core@45.2.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{IconRemoveFormat as g}from"../../../../../@ckeditor_ckeditor5-icons@45.2.0/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";import{ButtonView as l,MenuBarMenuListItemButtonView as d}from"../../../../../@ckeditor_ckeditor5-ui@45.2.0/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{first as c}from"../../../../../@ckeditor_ckeditor5-utils@45.2.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";/**
2
2
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */const n="removeFormat";class f extends a{static get pluginName(){return"RemoveFormatUI"}static get isOfficialPlugin(){return!0}init(){const t=this.editor;t.ui.componentFactory.add(n,()=>{const e=this._createButton(l);return e.set({tooltip:!0}),e}),t.ui.componentFactory.add(`menuBar:${n}`,()=>this._createButton(d))}_createButton(t){const e=this.editor,i=e.locale,o=e.commands.get(n),r=new t(e.locale),m=i.t;return r.set({label:m("Remove Format"),icon:g}),r.bind("isEnabled").to(o,"isEnabled"),this.listenTo(r,"execute",()=>{e.execute(n),e.editing.view.focus()}),r}}class F extends u{refresh(){const t=this.editor.model;this.isEnabled=!!c(this._getFormattingItems(t.document.selection,t.schema))}execute(){const t=this.editor.model,e=t.schema;t.change(i=>{for(const o of this._getFormattingItems(t.document.selection,e))if(o.is("selection"))for(const r of this._getFormattingAttributes(o,e))i.removeSelectionAttribute(r);else{const r=i.createRangeOn(o);for(const m of this._getFormattingAttributes(o,e))i.removeAttribute(m,r)}})}*_getFormattingItems(t,e){const i=o=>!!c(this._getFormattingAttributes(o,e));for(const o of t.getRanges())for(const r of o.getItems())!e.isBlock(r)&&i(r)&&(yield r);for(const o of t.getSelectedBlocks())i(o)&&(yield o);i(t)&&(yield t)}*_getFormattingAttributes(t,e){for(const[i]of t.getAttributes()){const o=e.getAttributeProperties(i);o&&o.isFormatting&&(yield i)}}}class b extends a{static get pluginName(){return"RemoveFormatEditing"}static get isOfficialPlugin(){return!0}init(){const t=this.editor;t.commands.add("removeFormat",new F(t))}}class _ extends a{static get requires(){return[b,f]}static get pluginName(){return"RemoveFormat"}static get isOfficialPlugin(){return!0}}export{_ as RemoveFormat,b as RemoveFormatEditing,f as RemoveFormatUI};
@@ -1,4 +1,4 @@
1
- import{Plugin as o,Command as a}from"../../../../../@ckeditor_ckeditor5-core@45.2.1/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{getCode as u,parseKeystroke as d}from"../../../../../@ckeditor_ckeditor5-utils@45.2.1/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{IconSelectAll as m}from"../../../../../@ckeditor_ckeditor5-icons@45.2.1/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";import{ButtonView as g,MenuBarMenuListItemButtonView as f}from"../../../../../@ckeditor_ckeditor5-ui@45.2.1/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";/**
1
+ import{Plugin as o,Command as a}from"../../../../../@ckeditor_ckeditor5-core@45.2.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{getCode as u,parseKeystroke as d}from"../../../../../@ckeditor_ckeditor5-utils@45.2.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{IconSelectAll as m}from"../../../../../@ckeditor_ckeditor5-icons@45.2.0/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";import{ButtonView as g,MenuBarMenuListItemButtonView as f}from"../../../../../@ckeditor_ckeditor5-ui@45.2.0/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";/**
2
2
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */class A extends a{constructor(e){super(e),this.affectsData=!1}execute(){const e=this.editor.model,t=e.document.selection;let i=e.schema.getLimitElement(t);if(t.containsEntireContent(i)||!r(e.schema,i))do if(i=i.parent,!i)return;while(!r(e.schema,i));e.change(n=>{n.setSelection(i,"in")})}}function r(l,e){return l.isLimit(e)&&(l.checkChild(e,"$text")||l.checkChild(e,"paragraph"))}const p=d("Ctrl+A");class h extends o{static get pluginName(){return"SelectAllEditing"}static get isOfficialPlugin(){return!0}init(){const e=this.editor,t=e.t,n=e.editing.view.document;e.commands.add("selectAll",new A(e)),this.listenTo(n,"keydown",(c,s)=>{u(s)===p&&(e.execute("selectAll"),s.preventDefault())}),e.accessibility.addKeystrokeInfos({keystrokes:[{label:t("Select all"),keystroke:"CTRL+A"}]})}}class S extends o{static get pluginName(){return"SelectAllUI"}static get isOfficialPlugin(){return!0}init(){const e=this.editor;e.ui.componentFactory.add("selectAll",()=>{const t=this._createButton(g);return t.set({tooltip:!0}),t}),e.ui.componentFactory.add("menuBar:selectAll",()=>this._createButton(f))}_createButton(e){const t=this.editor,i=t.locale,n=t.commands.get("selectAll"),c=new e(t.locale),s=i.t;return c.set({label:s("Select all"),icon:m,keystroke:"Ctrl+A"}),c.bind("isEnabled").to(n,"isEnabled"),this.listenTo(c,"execute",()=>{t.execute("selectAll"),t.editing.view.focus()}),c}}class E extends o{static get requires(){return[h,S]}static get pluginName(){return"SelectAll"}static get isOfficialPlugin(){return!0}}export{E as SelectAll,h as SelectAllEditing,S as SelectAllUI};
@@ -1,4 +1,4 @@
1
- import{Plugin as c,Command as u}from"../../../../../@ckeditor_ckeditor5-core@45.2.1/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{IconShowBlocks as d}from"../../../../../@ckeditor_ckeditor5-icons@45.2.1/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";import{ButtonView as h,MenuBarMenuListItemButtonView as m}from"../../../../../@ckeditor_ckeditor5-ui@45.2.1/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";/**
1
+ import{Plugin as c,Command as u}from"../../../../../@ckeditor_ckeditor5-core@45.2.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{IconShowBlocks as d}from"../../../../../@ckeditor_ckeditor5-icons@45.2.0/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";import{ButtonView as h,MenuBarMenuListItemButtonView as m}from"../../../../../@ckeditor_ckeditor5-ui@45.2.0/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";/**
2
2
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */class w extends u{constructor(t){super(t),this.affectsData=!1,this.value=!1}execute(){const t="ck-show-blocks",e=this.editor.editing.view;e.change(s=>{for(const o of e.document.roots)o.hasClass(t)?(s.removeClass(t,o),this.value=!1):(s.addClass(t,o),this.value=!0)})}}class g extends c{static get pluginName(){return"ShowBlocksEditing"}static get isOfficialPlugin(){return!0}init(){const{editor:t}=this;t.commands.add("showBlocks",new w(t))}}class B extends c{static get pluginName(){return"ShowBlocksUI"}static get isOfficialPlugin(){return!0}init(){const t=this.editor;t.ui.componentFactory.add("showBlocks",()=>{const e=this._createButton(h);return e.set({tooltip:!0,icon:d}),e}),t.ui.componentFactory.add("menuBar:showBlocks",()=>this._createButton(m))}_createButton(t){const e=this.editor,s=e.locale,o=e.commands.get("showBlocks"),i=new t(s),a=s.t;return i.set({label:a("Show blocks"),isToggleable:!0,role:"menuitemcheckbox"}),i.bind("isEnabled").to(o),i.bind("isOn").to(o,"value",o,"isEnabled",(l,r)=>l&&r),this.listenTo(i,"execute",()=>{e.execute("showBlocks"),e.editing.view.focus()}),i}}class S extends c{static get pluginName(){return"ShowBlocks"}static get isOfficialPlugin(){return!0}static get requires(){return[g,B]}}export{S as ShowBlocks,w as ShowBlocksCommand,g as ShowBlocksEditing,B as ShowBlocksUI};
@@ -1,4 +1,4 @@
1
- var p=Object.defineProperty;var E=(s,r,e)=>r in s?p(s,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[r]=e;var c=(s,r,e)=>E(s,typeof r!="symbol"?r+"":r,e);import{Plugin as b,PendingActions as h}from"../../../../../@ckeditor_ckeditor5-core@45.2.1/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{IconSource as _}from"../../../../../@ckeditor_ckeditor5-icons@45.2.1/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";import{ButtonView as w,MenuBarMenuListItemButtonView as R}from"../../../../../@ckeditor_ckeditor5-ui@45.2.1/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{ElementReplacer as S,CKEditorError as y,createElement as m,formatHtml as v}from"../../../../../@ckeditor_ckeditor5-utils@45.2.1/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";/**
1
+ var p=Object.defineProperty;var E=(s,r,e)=>r in s?p(s,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[r]=e;var c=(s,r,e)=>E(s,typeof r!="symbol"?r+"":r,e);import{Plugin as b,PendingActions as h}from"../../../../../@ckeditor_ckeditor5-core@45.2.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{IconSource as _}from"../../../../../@ckeditor_ckeditor5-icons@45.2.0/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";import{ButtonView as w,MenuBarMenuListItemButtonView as R}from"../../../../../@ckeditor_ckeditor5-ui@45.2.0/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{ElementReplacer as S,CKEditorError as y,createElement as m,formatHtml as v}from"../../../../../@ckeditor_ckeditor5-utils@45.2.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";/**
2
2
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */const l="SourceEditingMode";class I extends b{constructor(e){super(e);c(this,"_elementReplacer");c(this,"_replacedRoots");c(this,"_dataFromRoots");this.set("isSourceEditingMode",!1),this._elementReplacer=new S,this._replacedRoots=new Map,this._dataFromRoots=new Map,e.config.define("sourceEditing.allowCollaborationFeatures",!1)}static get pluginName(){return"SourceEditing"}static get isOfficialPlugin(){return!0}static get requires(){return[h]}init(){this._checkCompatibility();const e=this.editor,t=e.locale.t;e.ui.componentFactory.add("sourceEditing",()=>{const i=this._createButton(w);return i.set({label:t("Source"),icon:_,tooltip:!0,class:"ck-source-editing-button"}),i}),e.ui.componentFactory.add("menuBar:sourceEditing",()=>{const i=this._createButton(R);return i.set({label:t("Show source"),role:"menuitemcheckbox"}),i}),this._isAllowedToHandleSourceEditingMode()&&(this.on("change:isSourceEditingMode",(i,o,n)=>{n?(this._hideVisibleDialog(),this._showSourceEditing(),this._disableCommands()):(this._hideSourceEditing(),this._enableCommands())}),this.on("change:isEnabled",(i,o,n)=>this._handleReadOnlyMode(!n)),this.listenTo(e,"change:isReadOnly",(i,o,n)=>this._handleReadOnlyMode(n))),e.data.on("get",()=>{this.isSourceEditingMode&&this.updateEditorData()},{priority:"high"})}updateEditorData(){const e=this.editor,t={};for(const[i,o]of this._replacedRoots){const n=this._dataFromRoots.get(i),a=o.dataset.value;n!==a&&(t[i]=a,this._dataFromRoots.set(i,a))}Object.keys(t).length&&e.data.set(t,{batchType:{isUndoable:!0},suppressErrorInCollaboration:!0})}_checkCompatibility(){const e=this.editor,t=e.config.get("sourceEditing.allowCollaborationFeatures");if(!t&&e.plugins.has("RealTimeCollaborativeEditing"))throw new y("source-editing-incompatible-with-real-time-collaboration",null);!t&&["CommentsEditing","TrackChangesEditing","RevisionHistory"].some(o=>e.plugins.has(o))&&console.warn("You initialized the editor with the source editing feature and at least one of the collaboration features. Please be advised that the source editing feature may not work, and be careful when editing document source that contains markers created by the collaboration features."),e.plugins.has("RestrictedEditingModeEditing")&&console.warn("You initialized the editor with the source editing feature and restricted editing feature. Please be advised that the source editing feature may not work, and be careful when editing document source that contains markers created by the restricted editing feature.")}_showSourceEditing(){const e=this.editor,t=e.editing.view,i=e.model;i.change(o=>{o.setSelection(null),o.removeSelectionAttribute(i.document.selection.getAttributeKeys())});for(const[o,n]of t.domRoots){const a=D(e.data.get({rootName:o})),d=m(n.ownerDocument,"textarea",{rows:"1","aria-label":"Source code editing area"}),u=m(n.ownerDocument,"div",{class:"ck-source-editing-area","data-value":a},[d]);d.value=a,d.setSelectionRange(0,0),d.addEventListener("input",()=>{u.dataset.value=d.value,e.ui.update()}),t.change(g=>{const f=t.document.getRoot(o);g.addClass("ck-hidden",f)}),e.ui.setEditableElement("sourceEditing:"+o,d),this._replacedRoots.set(o,u),this._elementReplacer.replace(n,u),this._dataFromRoots.set(o,a)}this._hideDocumentOutline(),this._refreshAnnotationsVisibility(),this._focusSourceEditing()}_hideSourceEditing(){const t=this.editor.editing.view;this.updateEditorData(),t.change(i=>{for(const[o]of this._replacedRoots)i.removeClass("ck-hidden",t.document.getRoot(o))}),this._elementReplacer.restore(),this._replacedRoots.clear(),this._dataFromRoots.clear(),this._showDocumentOutline(),this._refreshAnnotationsVisibility(),t.focus()}_hideDocumentOutline(){this.editor.plugins.has("DocumentOutlineUI")&&(this.editor.plugins.get("DocumentOutlineUI").view.element.style.display="none")}_showDocumentOutline(){this.editor.plugins.has("DocumentOutlineUI")&&(this.editor.plugins.get("DocumentOutlineUI").view.element.style.display="")}_refreshAnnotationsVisibility(){this.editor.plugins.has("Annotations")&&this.editor.plugins.get("Annotations").refreshVisibility()}_focusSourceEditing(){const e=this.editor,[t]=this._replacedRoots.values(),i=t.querySelector("textarea");e.editing.view.document.isFocused=!1,i.focus()}_disableCommands(){const e=this.editor;for(const t of e.commands.commands())t.forceDisabled(l);e.plugins.has("CommentsArchiveUI")&&e.plugins.get("CommentsArchiveUI").forceDisabled(l)}_enableCommands(){const e=this.editor;for(const t of e.commands.commands())t.clearForceDisabled(l);e.plugins.has("CommentsArchiveUI")&&e.plugins.get("CommentsArchiveUI").clearForceDisabled(l)}_handleReadOnlyMode(e){if(this.isSourceEditingMode)for(const[,t]of this._replacedRoots)t.querySelector("textarea").readOnly=e}_isAllowedToHandleSourceEditingMode(){const t=this.editor.ui.view.editable;return t&&!t.hasExternalElement}_hideVisibleDialog(){if(this.editor.plugins.has("Dialog")){const e=this.editor.plugins.get("Dialog");e.isOpen&&e.hide()}}_createButton(e){const t=this.editor,i=new e(t.locale);return i.set({withText:!0,isToggleable:!0}),i.bind("isOn").to(this,"isSourceEditingMode"),i.bind("isEnabled").to(this,"isEnabled",t,"isReadOnly",t.plugins.get(h),"hasAny",(o,n,a)=>!(!o||n||a)),this.listenTo(i,"execute",()=>{this.isSourceEditingMode=!this.isSourceEditingMode}),i}}function D(s){return C(s)?v(s):s}function C(s){return s.startsWith("<")}export{I as SourceEditing};
@@ -1,4 +1,4 @@
1
- var k=Object.defineProperty;var C=(c,i,t)=>i in c?k(c,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):c[i]=t;var s=(c,i,t)=>C(c,typeof i!="symbol"?i+"":i,t);import{Plugin as u}from"../../../../../@ckeditor_ckeditor5-core@45.2.1/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{Typing as _}from"../../../../../@ckeditor_ckeditor5-typing@45.2.1/node_modules/@ckeditor/ckeditor5-typing/dist/index.js";import{IconSpecialCharacters as y}from"../../../../../@ckeditor_ckeditor5-icons@45.2.1/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";import{Dialog as x,ButtonView as m,MenuBarMenuListItemButtonView as v,DialogViewPosition as T,View as d,LabeledFieldView as V,createLabeledDropdown as S,ViewModel as D,addListToDropdown as P,addKeyboardHandlingForGrid as G,FocusCycler as q}from"../../../../../@ckeditor_ckeditor5-ui@45.2.1/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{CKEditorError as p,Collection as N,FocusTracker as L,KeystrokeHandler as f,global as I}from"../../../../../@ckeditor_ckeditor5-utils@45.2.1/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";/**
1
+ var k=Object.defineProperty;var C=(c,i,t)=>i in c?k(c,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):c[i]=t;var s=(c,i,t)=>C(c,typeof i!="symbol"?i+"":i,t);import{Plugin as u}from"../../../../../@ckeditor_ckeditor5-core@45.2.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{Typing as _}from"../../../../../@ckeditor_ckeditor5-typing@45.2.0/node_modules/@ckeditor/ckeditor5-typing/dist/index.js";import{IconSpecialCharacters as y}from"../../../../../@ckeditor_ckeditor5-icons@45.2.0/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";import{Dialog as x,ButtonView as m,MenuBarMenuListItemButtonView as v,DialogViewPosition as T,View as d,LabeledFieldView as V,createLabeledDropdown as S,ViewModel as D,addListToDropdown as P,addKeyboardHandlingForGrid as G,FocusCycler as q}from"../../../../../@ckeditor_ckeditor5-ui@45.2.0/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{CKEditorError as p,Collection as N,FocusTracker as L,KeystrokeHandler as f,global as I}from"../../../../../@ckeditor_ckeditor5-utils@45.2.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";/**
2
2
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */class A extends d{constructor(t){super(t);s(this,"tiles");s(this,"focusTracker");s(this,"keystrokes");this.tiles=this.createCollection(),this.setTemplate({tag:"div",children:[{tag:"div",attributes:{class:["ck","ck-character-grid__tiles"]},children:this.tiles}],attributes:{class:["ck","ck-character-grid"]}}),this.focusTracker=new L,this.keystrokes=new f,G({keystrokeHandler:this.keystrokes,focusTracker:this.focusTracker,gridItems:this.tiles,numberOfColumns:()=>I.window.getComputedStyle(this.element.firstChild).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}createTile(t,e){const a=new m(this.locale);return a.set({label:t,withText:!0,class:"ck-character-grid__tile"}),a.extendTemplate({attributes:{title:e},on:{mouseover:a.bindTemplate.to("mouseover"),focus:a.bindTemplate.to("focus")}}),a.on("mouseover",()=>{this.fire("tileHover",{name:e,character:t})}),a.on("focus",()=>{this.fire("tileFocus",{name:e,character:t})}),a.on("execute",()=>{this.fire("execute",{name:e,character:t})}),a}render(){super.render();for(const t of this.tiles)this.focusTracker.add(t.element);this.tiles.on("change",(t,{added:e,removed:a})=>{if(e.length>0)for(const r of e)this.focusTracker.add(r.element);if(a.length>0)for(const r of a)this.focusTracker.remove(r.element)}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.keystrokes.destroy()}focus(){this.tiles.first.focus()}}class E extends d{constructor(i){super(i);const t=this.bindTemplate;this.set("character",null),this.set("name",null),this.bind("code").to(this,"character",M),this.setTemplate({tag:"div",children:[{tag:"span",attributes:{class:["ck-character-info__name"]},children:[{text:t.to("name",e=>e||"​")}]},{tag:"span",attributes:{class:["ck-character-info__code"]},children:[{text:t.to("code")}]}],attributes:{class:["ck","ck-character-info"]}})}}function M(c){return c===null?"":"U+"+("0000"+c.codePointAt(0).toString(16)).slice(-4)}class O extends d{constructor(t,e,a,r){super(t);s(this,"items");s(this,"focusTracker");s(this,"keystrokes");s(this,"_focusCycler");s(this,"categoriesView");s(this,"gridView");s(this,"infoView");this.categoriesView=e,this.gridView=a,this.infoView=r,this.items=this.createCollection(),this.focusTracker=new L,this.keystrokes=new f,this._focusCycler=new q({focusables:this.items,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"div",children:[this.categoriesView,this.gridView,this.infoView],attributes:{tabindex:"-1"}}),this.items.add(this.categoriesView),this.items.add(this.gridView)}render(){super.render(),this.focusTracker.add(this.categoriesView.element),this.focusTracker.add(this.gridView.element),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}}class F extends d{constructor(t,e){super(t);s(this,"_groupNames");s(this,"_dropdownView");this.set("currentGroupName",Array.from(e.entries())[0][0]),this._groupNames=e,this._dropdownView=new V(t,S),this.setTemplate({tag:"div",attributes:{class:["ck","ck-character-categories"]},children:[this._dropdownView]})}render(){super.render(),this._setupDropdown()}focus(){this._dropdownView.focus()}_setupDropdown(){const t=new N;for(const[r,l]of this._groupNames){const o={type:"button",model:new D({name:r,label:l,role:"menuitemradio",withText:!0})};o.model.bind("isOn").to(this,"currentGroupName",n=>n===r),t.add(o)}const e=this.locale.t,a=e("Category");this._dropdownView.set({label:a,isEmpty:!1}),this._dropdownView.fieldView.panelPosition=this.locale.uiLanguageDirection==="rtl"?"se":"sw",this._dropdownView.fieldView.buttonView.set({withText:!0,tooltip:a,ariaLabel:a,ariaLabelledBy:void 0,isOn:!1}),this._dropdownView.fieldView.buttonView.bind("label").to(this,"currentGroupName",r=>this._groupNames.get(r)),this._dropdownView.fieldView.on("execute",({source:r})=>{this.currentGroupName=r.name}),P(this._dropdownView.fieldView,t,{ariaLabel:a,role:"menu"})}}const w="All";class J extends u{constructor(t){super(t);s(this,"_characters");s(this,"_groups");s(this,"_allSpecialCharactersGroupLabel");const e=t.t;this._characters=new Map,this._groups=new Map,this._allSpecialCharactersGroupLabel=e("All")}static get requires(){return[_,x]}static get pluginName(){return"SpecialCharacters"}static get isOfficialPlugin(){return!0}init(){const t=this.editor;t.ui.componentFactory.add("specialCharacters",()=>{const e=this._createDialogButton(m);return e.set({tooltip:!0}),e}),t.ui.componentFactory.add("menuBar:specialCharacters",()=>this._createDialogButton(v))}addItems(t,e,a={label:t}){if(t===w)throw new p("special-character-invalid-group-name",null);const r=this._getGroup(t,a.label);for(const l of e)r.items.add(l.title),this._characters.set(l.title,l.character)}getGroups(){const t=Array.from(this._groups.keys()),e=this.editor.config.get("specialCharacters.order")||[],a=e.find(r=>!t.includes(r));if(a)throw new p("special-character-invalid-order-group-name",null,{invalidGroup:a});return new Set([...e,...t])}getCharactersForGroup(t){if(t===w)return new Set(this._characters.keys());const e=this._groups.get(t);if(e)return e.items}getCharacter(t){return this._characters.get(t)}_getGroup(t,e){return this._groups.has(t)||this._groups.set(t,{items:new Set,label:e}),this._groups.get(t)}_updateGrid(t,e){e.tiles.clear();const a=this.getCharactersForGroup(t);for(const r of a){const l=this.getCharacter(r);e.tiles.add(e.createTile(l,r))}}_createDropdownPanelContent(t){const e=Array.from(this.getGroups()).map(n=>[n,this._groups.get(n).label]),a=new Map([[w,this._allSpecialCharactersGroupLabel],...e]),r=new F(t,a),l=new A(t),o=new E(t);return l.on("tileHover",(n,h)=>{o.set(h)}),l.on("tileFocus",(n,h)=>{o.set(h)}),r.on("change:currentGroupName",(n,h,g)=>{this._updateGrid(g,l)}),this._updateGrid(r.currentGroupName,l),{categoriesView:r,gridView:l,infoView:o}}_createDialogButton(t){const e=this.editor,a=e.locale,r=new t(e.locale),l=e.commands.get("insertText"),o=a.t,n=this.editor.plugins.get("Dialog");return r.set({label:o("Special characters"),icon:y,isToggleable:!0}),r.bind("isOn").to(n,"id",h=>h==="specialCharacters"),r.bind("isEnabled").to(l,"isEnabled"),r.on("execute",()=>{if(n.id==="specialCharacters"){n.hide();return}this._showDialog()}),r}_showDialog(){const t=this.editor,e=t.plugins.get("Dialog"),a=t.locale,r=a.t,{categoriesView:l,gridView:o,infoView:n}=this._createDropdownPanelContent(a),h=new O(a,l,o,n);o.on("execute",(g,b)=>{t.execute("insertText",{text:b.character})}),e.show({id:"specialCharacters",title:r("Special characters"),className:"ck-special-characters",content:h,position:T.EDITOR_TOP_SIDE})}}class R extends u{static get pluginName(){return"SpecialCharactersArrows"}static get isOfficialPlugin(){return!0}init(){const i=this.editor,t=i.t;i.plugins.get("SpecialCharacters").addItems("Arrows",[{title:t("leftwards simple arrow"),character:"←"},{title:t("rightwards simple arrow"),character:"→"},{title:t("upwards simple arrow"),character:"↑"},{title:t("downwards simple arrow"),character:"↓"},{title:t("leftwards double arrow"),character:"⇐"},{title:t("rightwards double arrow"),character:"⇒"},{title:t("upwards double arrow"),character:"⇑"},{title:t("downwards double arrow"),character:"⇓"},{title:t("leftwards dashed arrow"),character:"⇠"},{title:t("rightwards dashed arrow"),character:"⇢"},{title:t("upwards dashed arrow"),character:"⇡"},{title:t("downwards dashed arrow"),character:"⇣"},{title:t("leftwards arrow to bar"),character:"⇤"},{title:t("rightwards arrow to bar"),character:"⇥"},{title:t("upwards arrow to bar"),character:"⤒"},{title:t("downwards arrow to bar"),character:"⤓"},{title:t("up down arrow with base"),character:"↨"},{title:t("back with leftwards arrow above"),character:"🔙"},{title:t("end with leftwards arrow above"),character:"🔚"},{title:t("on with exclamation mark with left right arrow above"),character:"🔛"},{title:t("soon with rightwards arrow above"),character:"🔜"},{title:t("top with upwards arrow above"),character:"🔝"}],{label:t("Arrows")})}}class B extends u{static get pluginName(){return"SpecialCharactersText"}static get isOfficialPlugin(){return!0}init(){const i=this.editor,t=i.t;i.plugins.get("SpecialCharacters").addItems("Text",[{character:"‹",title:t("Single left-pointing angle quotation mark")},{character:"›",title:t("Single right-pointing angle quotation mark")},{character:"«",title:t("Left-pointing double angle quotation mark")},{character:"»",title:t("Right-pointing double angle quotation mark")},{character:"‘",title:t("Left single quotation mark")},{character:"’",title:t("Right single quotation mark")},{character:"“",title:t("Left double quotation mark")},{character:"”",title:t("Right double quotation mark")},{character:"‚",title:t("Single low-9 quotation mark")},{character:"„",title:t("Double low-9 quotation mark")},{character:"¡",title:t("Inverted exclamation mark")},{character:"¿",title:t("Inverted question mark")},{character:"‥",title:t("Two dot leader")},{character:"…",title:t("Horizontal ellipsis")},{character:"‡",title:t("Double dagger")},{character:"‰",title:t("Per mille sign")},{character:"‱",title:t("Per ten thousand sign")},{character:"‼",title:t("Double exclamation mark")},{character:"⁈",title:t("Question exclamation mark")},{character:"⁉",title:t("Exclamation question mark")},{character:"⁇",title:t("Double question mark")},{character:"©",title:t("Copyright sign")},{character:"®",title:t("Registered sign")},{character:"™",title:t("Trade mark sign")},{character:"§",title:t("Section sign")},{character:"¶",title:t("Paragraph sign")},{character:"⁋",title:t("Reversed paragraph sign")}],{label:t("Text")})}}class H extends u{static get pluginName(){return"SpecialCharactersMathematical"}static get isOfficialPlugin(){return!0}init(){const i=this.editor,t=i.t;i.plugins.get("SpecialCharacters").addItems("Mathematical",[{character:"<",title:t("Less-than sign")},{character:">",title:t("Greater-than sign")},{character:"≤",title:t("Less-than or equal to")},{character:"≥",title:t("Greater-than or equal to")},{character:"–",title:t("En dash")},{character:"—",title:t("Em dash")},{character:"¯",title:t("Macron")},{character:"‾",title:t("Overline")},{character:"°",title:t("Degree sign")},{character:"−",title:t("Minus sign")},{character:"±",title:t("Plus-minus sign")},{character:"÷",title:t("Division sign")},{character:"⁄",title:t("Fraction slash")},{character:"×",title:t("Multiplication sign")},{character:"ƒ",title:t("Latin small letter f with hook")},{character:"∫",title:t("Integral")},{character:"∑",title:t("N-ary summation")},{character:"∞",title:t("Infinity")},{character:"√",title:t("Square root")},{character:"∼",title:t("Tilde operator")},{character:"≅",title:t("Approximately equal to")},{character:"≈",title:t("Almost equal to")},{character:"≠",title:t("Not equal to")},{character:"≡",title:t("Identical to")},{character:"∈",title:t("Element of")},{character:"∉",title:t("Not an element of")},{character:"∋",title:t("Contains as member")},{character:"∏",title:t("N-ary product")},{character:"∧",title:t("Logical and")},{character:"∨",title:t("Logical or")},{character:"¬",title:t("Not sign")},{character:"∩",title:t("Intersection")},{character:"∪",title:t("Union")},{character:"∂",title:t("Partial differential")},{character:"∀",title:t("For all")},{character:"∃",title:t("There exists")},{character:"∅",title:t("Empty set")},{character:"∇",title:t("Nabla")},{character:"∗",title:t("Asterisk operator")},{character:"∝",title:t("Proportional to")},{character:"∠",title:t("Angle")},{character:"¼",title:t("Vulgar fraction one quarter")},{character:"½",title:t("Vulgar fraction one half")},{character:"¾",title:t("Vulgar fraction three quarters")}],{label:t("Mathematical")})}}class z extends u{static get pluginName(){return"SpecialCharactersLatin"}static get isOfficialPlugin(){return!0}init(){const i=this.editor,t=i.t;i.plugins.get("SpecialCharacters").addItems("Latin",[{character:"Ā",title:t("Latin capital letter a with macron")},{character:"ā",title:t("Latin small letter a with macron")},{character:"Ă",title:t("Latin capital letter a with breve")},{character:"ă",title:t("Latin small letter a with breve")},{character:"Ą",title:t("Latin capital letter a with ogonek")},{character:"ą",title:t("Latin small letter a with ogonek")},{character:"Ć",title:t("Latin capital letter c with acute")},{character:"ć",title:t("Latin small letter c with acute")},{character:"Ĉ",title:t("Latin capital letter c with circumflex")},{character:"ĉ",title:t("Latin small letter c with circumflex")},{character:"Ċ",title:t("Latin capital letter c with dot above")},{character:"ċ",title:t("Latin small letter c with dot above")},{character:"Č",title:t("Latin capital letter c with caron")},{character:"č",title:t("Latin small letter c with caron")},{character:"Ď",title:t("Latin capital letter d with caron")},{character:"ď",title:t("Latin small letter d with caron")},{character:"Đ",title:t("Latin capital letter d with stroke")},{character:"đ",title:t("Latin small letter d with stroke")},{character:"Ē",title:t("Latin capital letter e with macron")},{character:"ē",title:t("Latin small letter e with macron")},{character:"Ĕ",title:t("Latin capital letter e with breve")},{character:"ĕ",title:t("Latin small letter e with breve")},{character:"Ė",title:t("Latin capital letter e with dot above")},{character:"ė",title:t("Latin small letter e with dot above")},{character:"Ę",title:t("Latin capital letter e with ogonek")},{character:"ę",title:t("Latin small letter e with ogonek")},{character:"Ě",title:t("Latin capital letter e with caron")},{character:"ě",title:t("Latin small letter e with caron")},{character:"Ĝ",title:t("Latin capital letter g with circumflex")},{character:"ĝ",title:t("Latin small letter g with circumflex")},{character:"Ğ",title:t("Latin capital letter g with breve")},{character:"ğ",title:t("Latin small letter g with breve")},{character:"Ġ",title:t("Latin capital letter g with dot above")},{character:"ġ",title:t("Latin small letter g with dot above")},{character:"Ģ",title:t("Latin capital letter g with cedilla")},{character:"ģ",title:t("Latin small letter g with cedilla")},{character:"Ĥ",title:t("Latin capital letter h with circumflex")},{character:"ĥ",title:t("Latin small letter h with circumflex")},{character:"Ħ",title:t("Latin capital letter h with stroke")},{character:"ħ",title:t("Latin small letter h with stroke")},{character:"Ĩ",title:t("Latin capital letter i with tilde")},{character:"ĩ",title:t("Latin small letter i with tilde")},{character:"Ī",title:t("Latin capital letter i with macron")},{character:"ī",title:t("Latin small letter i with macron")},{character:"Ĭ",title:t("Latin capital letter i with breve")},{character:"ĭ",title:t("Latin small letter i with breve")},{character:"Į",title:t("Latin capital letter i with ogonek")},{character:"į",title:t("Latin small letter i with ogonek")},{character:"İ",title:t("Latin capital letter i with dot above")},{character:"ı",title:t("Latin small letter dotless i")},{character:"IJ",title:t("Latin capital ligature ij")},{character:"ij",title:t("Latin small ligature ij")},{character:"Ĵ",title:t("Latin capital letter j with circumflex")},{character:"ĵ",title:t("Latin small letter j with circumflex")},{character:"Ķ",title:t("Latin capital letter k with cedilla")},{character:"ķ",title:t("Latin small letter k with cedilla")},{character:"ĸ",title:t("Latin small letter kra")},{character:"Ĺ",title:t("Latin capital letter l with acute")},{character:"ĺ",title:t("Latin small letter l with acute")},{character:"Ļ",title:t("Latin capital letter l with cedilla")},{character:"ļ",title:t("Latin small letter l with cedilla")},{character:"Ľ",title:t("Latin capital letter l with caron")},{character:"ľ",title:t("Latin small letter l with caron")},{character:"Ŀ",title:t("Latin capital letter l with middle dot")},{character:"ŀ",title:t("Latin small letter l with middle dot")},{character:"Ł",title:t("Latin capital letter l with stroke")},{character:"ł",title:t("Latin small letter l with stroke")},{character:"Ń",title:t("Latin capital letter n with acute")},{character:"ń",title:t("Latin small letter n with acute")},{character:"Ņ",title:t("Latin capital letter n with cedilla")},{character:"ņ",title:t("Latin small letter n with cedilla")},{character:"Ň",title:t("Latin capital letter n with caron")},{character:"ň",title:t("Latin small letter n with caron")},{character:"ʼn",title:t("Latin small letter n preceded by apostrophe")},{character:"Ŋ",title:t("Latin capital letter eng")},{character:"ŋ",title:t("Latin small letter eng")},{character:"Ō",title:t("Latin capital letter o with macron")},{character:"ō",title:t("Latin small letter o with macron")},{character:"Ŏ",title:t("Latin capital letter o with breve")},{character:"ŏ",title:t("Latin small letter o with breve")},{character:"Ő",title:t("Latin capital letter o with double acute")},{character:"ő",title:t("Latin small letter o with double acute")},{character:"Œ",title:t("Latin capital ligature oe")},{character:"œ",title:t("Latin small ligature oe")},{character:"Ŕ",title:t("Latin capital letter r with acute")},{character:"ŕ",title:t("Latin small letter r with acute")},{character:"Ŗ",title:t("Latin capital letter r with cedilla")},{character:"ŗ",title:t("Latin small letter r with cedilla")},{character:"Ř",title:t("Latin capital letter r with caron")},{character:"ř",title:t("Latin small letter r with caron")},{character:"Ś",title:t("Latin capital letter s with acute")},{character:"ś",title:t("Latin small letter s with acute")},{character:"Ŝ",title:t("Latin capital letter s with circumflex")},{character:"ŝ",title:t("Latin small letter s with circumflex")},{character:"Ş",title:t("Latin capital letter s with cedilla")},{character:"ş",title:t("Latin small letter s with cedilla")},{character:"Š",title:t("Latin capital letter s with caron")},{character:"š",title:t("Latin small letter s with caron")},{character:"Ţ",title:t("Latin capital letter t with cedilla")},{character:"ţ",title:t("Latin small letter t with cedilla")},{character:"Ť",title:t("Latin capital letter t with caron")},{character:"ť",title:t("Latin small letter t with caron")},{character:"Ŧ",title:t("Latin capital letter t with stroke")},{character:"ŧ",title:t("Latin small letter t with stroke")},{character:"Ũ",title:t("Latin capital letter u with tilde")},{character:"ũ",title:t("Latin small letter u with tilde")},{character:"Ū",title:t("Latin capital letter u with macron")},{character:"ū",title:t("Latin small letter u with macron")},{character:"Ŭ",title:t("Latin capital letter u with breve")},{character:"ŭ",title:t("Latin small letter u with breve")},{character:"Ů",title:t("Latin capital letter u with ring above")},{character:"ů",title:t("Latin small letter u with ring above")},{character:"Ű",title:t("Latin capital letter u with double acute")},{character:"ű",title:t("Latin small letter u with double acute")},{character:"Ų",title:t("Latin capital letter u with ogonek")},{character:"ų",title:t("Latin small letter u with ogonek")},{character:"Ŵ",title:t("Latin capital letter w with circumflex")},{character:"ŵ",title:t("Latin small letter w with circumflex")},{character:"Ŷ",title:t("Latin capital letter y with circumflex")},{character:"ŷ",title:t("Latin small letter y with circumflex")},{character:"Ÿ",title:t("Latin capital letter y with diaeresis")},{character:"Ź",title:t("Latin capital letter z with acute")},{character:"ź",title:t("Latin small letter z with acute")},{character:"Ż",title:t("Latin capital letter z with dot above")},{character:"ż",title:t("Latin small letter z with dot above")},{character:"Ž",title:t("Latin capital letter z with caron")},{character:"ž",title:t("Latin small letter z with caron")},{character:"ſ",title:t("Latin small letter long s")}],{label:t("Latin")})}}class j extends u{static get pluginName(){return"SpecialCharactersCurrency"}static get isOfficialPlugin(){return!0}init(){const i=this.editor,t=i.t;i.plugins.get("SpecialCharacters").addItems("Currency",[{character:"$",title:t("Dollar sign")},{character:"€",title:t("Euro sign")},{character:"¥",title:t("Yen sign")},{character:"£",title:t("Pound sign")},{character:"¢",title:t("Cent sign")},{character:"₠",title:t("Euro-currency sign")},{character:"₡",title:t("Colon sign")},{character:"₢",title:t("Cruzeiro sign")},{character:"₣",title:t("French franc sign")},{character:"₤",title:t("Lira sign")},{character:"¤",title:t("Currency sign")},{character:"₿",title:t("Bitcoin sign")},{character:"₥",title:t("Mill sign")},{character:"₦",title:t("Naira sign")},{character:"₧",title:t("Peseta sign")},{character:"₨",title:t("Rupee sign")},{character:"₩",title:t("Won sign")},{character:"₪",title:t("New sheqel sign")},{character:"₫",title:t("Dong sign")},{character:"₭",title:t("Kip sign")},{character:"₮",title:t("Tugrik sign")},{character:"₯",title:t("Drachma sign")},{character:"₰",title:t("German penny sign")},{character:"₱",title:t("Peso sign")},{character:"₲",title:t("Guarani sign")},{character:"₳",title:t("Austral sign")},{character:"₴",title:t("Hryvnia sign")},{character:"₵",title:t("Cedi sign")},{character:"₶",title:t("Livre tournois sign")},{character:"₷",title:t("Spesmilo sign")},{character:"₸",title:t("Tenge sign")},{character:"₹",title:t("Indian rupee sign")},{character:"₺",title:t("Turkish lira sign")},{character:"₻",title:t("Nordic mark sign")},{character:"₼",title:t("Manat sign")},{character:"₽",title:t("Ruble sign")}],{label:t("Currency")})}}class X extends u{static get pluginName(){return"SpecialCharactersEssentials"}static get isOfficialPlugin(){return!0}static get requires(){return[j,B,H,R,z]}}export{J as SpecialCharacters,R as SpecialCharactersArrows,j as SpecialCharactersCurrency,X as SpecialCharactersEssentials,z as SpecialCharactersLatin,H as SpecialCharactersMathematical,B as SpecialCharactersText};
@@ -1,4 +1,4 @@
1
- var w=Object.defineProperty;var A=(n,r,t)=>r in n?w(n,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[r]=t;var u=(n,r,t)=>A(n,typeof r!="symbol"?r+"":r,t);import{Plugin as g,Command as B}from"../../../../../@ckeditor_ckeditor5-core@45.2.1/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{createDropdown as F,View as m,ViewCollection as V,FocusCycler as T,LabelView as v,addKeyboardHandlingForGrid as U,ButtonView as E}from"../../../../../@ckeditor_ckeditor5-ui@45.2.1/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{first as x,logWarning as C,FocusTracker as k,KeystrokeHandler as _}from"../../../../../@ckeditor_ckeditor5-utils@45.2.1/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{findAttributeRange as D,findAttributeRangeBound as G}from"../../../../../@ckeditor_ckeditor5-typing@45.2.1/node_modules/@ckeditor/ckeditor5-typing/dist/index.js";import{isObject as H}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/predicate/isObject.js";/**
1
+ var w=Object.defineProperty;var A=(n,r,t)=>r in n?w(n,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[r]=t;var u=(n,r,t)=>A(n,typeof r!="symbol"?r+"":r,t);import{Plugin as g,Command as B}from"../../../../../@ckeditor_ckeditor5-core@45.2.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{createDropdown as F,View as m,ViewCollection as V,FocusCycler as T,LabelView as v,addKeyboardHandlingForGrid as U,ButtonView as E}from"../../../../../@ckeditor_ckeditor5-ui@45.2.0/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{first as x,logWarning as C,FocusTracker as k,KeystrokeHandler as _}from"../../../../../@ckeditor_ckeditor5-utils@45.2.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{findAttributeRange as D,findAttributeRangeBound as G}from"../../../../../@ckeditor_ckeditor5-typing@45.2.0/node_modules/@ckeditor/ckeditor5-typing/dist/index.js";import{isObject as H}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/predicate/isObject.js";/**
2
2
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */class N extends E{constructor(t,e){super(t);u(this,"styleDefinition");u(this,"previewView");this.styleDefinition=e,this.previewView=this._createPreview(),this.set({label:e.name,class:"ck-style-grid__button",withText:!0}),this.extendTemplate({attributes:{role:"option"}}),this.children.add(this.previewView,0)}_createPreview(){const t=new m(this.locale);return t.setTemplate({tag:"div",attributes:{class:["ck","ck-reset_all-excluded","ck-style-grid__button__preview","ck-content"],"aria-hidden":"true"},children:[this.styleDefinition.previewTemplate]}),t}}class P extends m{constructor(t,e){super(t);u(this,"focusTracker");u(this,"keystrokes");u(this,"children");this.focusTracker=new k,this.keystrokes=new _,this.set("activeStyles",[]),this.set("enabledStyles",[]),this.children=this.createCollection(),this.children.delegate("execute").to(this);for(const s of e){const i=new N(t,s);this.children.add(i)}this.on("change:activeStyles",()=>{for(const s of this.children)s.isOn=this.activeStyles.includes(s.styleDefinition.name)}),this.on("change:enabledStyles",()=>{for(const s of this.children)s.isEnabled=this.enabledStyles.includes(s.styleDefinition.name)}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-style-grid"],role:"listbox"},children:this.children})}render(){super.render();for(const t of this.children)this.focusTracker.add(t.element);U({keystrokeHandler:this.keystrokes,focusTracker:this.focusTracker,gridItems:this.children,numberOfColumns:3,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection}),this.keystrokes.listenTo(this.element)}focus(){this.children.first.focus()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}}class p extends m{constructor(t,e,s){super(t);u(this,"gridView");u(this,"labelView");this.labelView=new v(t),this.labelView.text=e,this.gridView=new P(t,s),this.setTemplate({tag:"div",attributes:{class:["ck","ck-style-panel__style-group"],role:"group","aria-labelledby":this.labelView.id},children:[this.labelView,this.gridView]})}}class I extends m{constructor(t,e){super(t);u(this,"focusTracker");u(this,"keystrokes");u(this,"children");u(this,"blockStylesGroupView");u(this,"inlineStylesGroupView");u(this,"_focusables");u(this,"_focusCycler");const s=t.t;this.focusTracker=new k,this.keystrokes=new _,this.children=this.createCollection(),this.blockStylesGroupView=new p(t,s("Block styles"),e.block),this.inlineStylesGroupView=new p(t,s("Text styles"),e.inline),this.set("activeStyles",[]),this.set("enabledStyles",[]),this._focusables=new V,this._focusCycler=new T({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:["shift + tab"],focusNext:["tab"]}}),e.block.length&&this.children.add(this.blockStylesGroupView),e.inline.length&&this.children.add(this.inlineStylesGroupView),this.blockStylesGroupView.gridView.delegate("execute").to(this),this.inlineStylesGroupView.gridView.delegate("execute").to(this),this.blockStylesGroupView.gridView.bind("activeStyles","enabledStyles").to(this,"activeStyles","enabledStyles"),this.inlineStylesGroupView.gridView.bind("activeStyles","enabledStyles").to(this,"activeStyles","enabledStyles"),this.setTemplate({tag:"div",attributes:{class:["ck","ck-style-panel"]},children:this.children})}render(){super.render(),this._focusables.add(this.blockStylesGroupView.gridView),this._focusables.add(this.inlineStylesGroupView.gridView),this.focusTracker.add(this.blockStylesGroupView.gridView.element),this.focusTracker.add(this.inlineStylesGroupView.gridView.element),this.keystrokes.listenTo(this.element)}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}}const L=["caption","colgroup","dd","dt","figcaption","legend","li","optgroup","option","rp","rt","summary","tbody","td","tfoot","th","thead","tr"];class f extends g{constructor(t){super(t);u(this,"_htmlSupport");this.decorate("isStyleEnabledForBlock"),this.decorate("isStyleActiveForBlock"),this.decorate("getAffectedBlocks"),this.decorate("isStyleEnabledForInlineSelection"),this.decorate("isStyleActiveForInlineSelection"),this.decorate("getAffectedInlineSelectable"),this.decorate("getStylePreview"),this.decorate("configureGHSDataFilter")}static get pluginName(){return"StyleUtils"}static get isOfficialPlugin(){return!0}init(){this._htmlSupport=this.editor.plugins.get("GeneralHtmlSupport")}normalizeConfig(t,e=[]){const s={block:[],inline:[]};for(const i of e){const l=[],o=[];for(const c of t.getDefinitionsForView(i.element)){const h="appliesToBlock"in c?c.appliesToBlock:!1;if(c.isBlock||h){if(typeof h=="string")l.push(h);else if(c.isBlock){const d=c;l.push(c.model),d.paragraphLikeModel&&l.push(d.paragraphLikeModel)}}else o.push(c.model)}const a=this.getStylePreview(i,[{text:"AaBbCcDdEeFfGgHhIiJj"}]);l.length?s.block.push({...i,previewTemplate:a,modelElements:l,isBlock:!0}):s.inline.push({...i,previewTemplate:a,ghsAttributes:o})}return s}isStyleEnabledForBlock(t,e){const s=this.editor.model,i=this._htmlSupport.getGhsAttributeNameForElement(t.element);return s.schema.checkAttribute(e,i)?t.modelElements.includes(e.name):!1}isStyleActiveForBlock(t,e){const s=this._htmlSupport.getGhsAttributeNameForElement(t.element),i=e.getAttribute(s);return this.hasAllClasses(i,t.classes)}getAffectedBlocks(t,e){return t.modelElements.includes(e.name)?[e]:null}isStyleEnabledForInlineSelection(t,e){const s=this.editor.model;for(const i of t.ghsAttributes)if(s.schema.checkAttributeInSelection(e,i))return!0;return!1}isStyleActiveForInlineSelection(t,e){for(const s of t.ghsAttributes){const i=this._getValueFromFirstAllowedNode(e,s);if(this.hasAllClasses(i,t.classes))return!0}return!1}getAffectedInlineSelectable(t,e){return e}getStylePreview(t,e){const{element:s,classes:i}=t;return{tag:O(s)?s:"div",attributes:{class:i},children:e}}hasAllClasses(t,e){return H(t)&&R(t)&&e.every(s=>t.classes.includes(s))}configureGHSDataFilter({block:t,inline:e}){const s=this.editor.plugins.get("DataFilter");s.loadAllowedConfig(t.map(b)),s.loadAllowedConfig(e.map(b))}_getValueFromFirstAllowedNode(t,e){const i=this.editor.model.schema;if(t.isCollapsed)return t.getAttribute(e);for(const l of t.getRanges())for(const o of l.getItems())if(i.checkAttribute(o,e))return o.getAttribute(e);return null}}function R(n){return!!n.classes&&Array.isArray(n.classes)}function O(n){return!L.includes(n)}function b({element:n,classes:r}){return{name:n,classes:r}}class z extends g{static get pluginName(){return"StyleUI"}static get isOfficialPlugin(){return!0}static get requires(){return[f]}init(){const r=this.editor,t=r.plugins.get("DataSchema"),e=r.plugins.get("StyleUtils"),s=r.config.get("style.definitions"),i=e.normalizeConfig(t,s);r.ui.componentFactory.add("style",l=>{const o=l.t,a=F(l),c=r.commands.get("style");return a.once("change:isOpen",()=>{const h=new I(l,i);a.panelView.children.add(h),h.delegate("execute").to(a),h.bind("activeStyles").to(c,"value"),h.bind("enabledStyles").to(c,"enabledStyles")}),a.bind("isEnabled").to(c),a.buttonView.withText=!0,a.buttonView.bind("label").to(c,"value",h=>h.length>1?o("Multiple styles"):h.length===1?h[0]:o("Styles")),a.bind("class").to(c,"value",h=>{const d=["ck-style-dropdown"];return h.length>1&&d.push("ck-style-dropdown_multiple-active"),d.join(" ")}),a.on("execute",h=>{r.execute("style",{styleName:h.source.styleDefinition.name}),r.editing.view.focus()}),a})}}class M extends B{constructor(t,e){super(t);u(this,"_styleDefinitions");u(this,"_styleUtils");this.set("value",[]),this.set("enabledStyles",[]),this._styleDefinitions=e,this._styleUtils=this.editor.plugins.get(f)}refresh(){const t=this.editor.model,e=t.document.selection,s=new Set,i=new Set;for(const o of this._styleDefinitions.inline)this._styleUtils.isStyleEnabledForInlineSelection(o,e)&&i.add(o.name),this._styleUtils.isStyleActiveForInlineSelection(o,e)&&s.add(o.name);const l=x(e.getSelectedBlocks())||e.getFirstPosition().parent;if(l){const o=l.getAncestors({includeSelf:!0,parentFirst:!0});for(const a of o){if(a.is("rootElement"))break;for(const c of this._styleDefinitions.block)this._styleUtils.isStyleEnabledForBlock(c,a)&&(i.add(c.name),this._styleUtils.isStyleActiveForBlock(c,a)&&s.add(c.name));if(t.schema.isObject(a))break}}this.enabledStyles=Array.from(i).sort(),this.isEnabled=this.enabledStyles.length>0,this.value=this.isEnabled?Array.from(s).sort():[]}execute({styleName:t,forceValue:e}){if(!this.enabledStyles.includes(t)){C("style-command-executed-with-incorrect-style-name");return}const s=this.editor.model,i=s.document.selection,l=this.editor.plugins.get("GeneralHtmlSupport"),o=[...this._styleDefinitions.inline,...this._styleDefinitions.block],a=o.filter(({name:d})=>this.value.includes(d)),c=o.find(({name:d})=>d==t),h=e===void 0?!this.value.includes(c.name):e;s.change(()=>{let d;j(c)?d=this._findAffectedBlocks($(i),c):d=[this._styleUtils.getAffectedInlineSelectable(c,i)];for(const y of d)h?l.addModelHtmlClass(c.element,c.classes,y):l.removeModelHtmlClass(c.element,q(a,c),y)})}_findAffectedBlocks(t,e){const s=new Set;for(const i of t){const l=i.getAncestors({includeSelf:!0,parentFirst:!0});for(const o of l){if(o.is("rootElement"))break;const a=this._styleUtils.getAffectedBlocks(e,o);if(a){for(const c of a)s.add(c);break}}}return s}}function q(n,r){return n.reduce((t,e)=>e.name===r.name?t:t.filter(s=>!e.classes.includes(s)),r.classes)}function j(n){return"isBlock"in n}function $(n){const r=Array.from(n.getSelectedBlocks());return r.length?r:[n.getFirstPosition().parent]}class J extends g{constructor(){super(...arguments);u(this,"_listUtils");u(this,"_styleUtils");u(this,"_htmlSupport")}static get pluginName(){return"ListStyleSupport"}static get isOfficialPlugin(){return!0}static get requires(){return[f,"GeneralHtmlSupport"]}init(){const t=this.editor;t.plugins.has("ListEditing")&&(this._styleUtils=t.plugins.get(f),this._listUtils=this.editor.plugins.get("ListUtils"),this._htmlSupport=this.editor.plugins.get("GeneralHtmlSupport"),this.listenTo(this._styleUtils,"isStyleEnabledForBlock",(e,[s,i])=>{this._isStyleEnabledForBlock(s,i)&&(e.return=!0,e.stop())},{priority:"high"}),this.listenTo(this._styleUtils,"isStyleActiveForBlock",(e,[s,i])=>{this._isStyleActiveForBlock(s,i)&&(e.return=!0,e.stop())},{priority:"high"}),this.listenTo(this._styleUtils,"getAffectedBlocks",(e,[s,i])=>{const l=this._getAffectedBlocks(s,i);l&&(e.return=l,e.stop())},{priority:"high"}),this.listenTo(this._styleUtils,"getStylePreview",(e,[s,i])=>{const l=this._getStylePreview(s,i);l&&(e.return=l,e.stop())},{priority:"high"}))}_isStyleEnabledForBlock(t,e){const s=this.editor.model;if(!["ol","ul","li"].includes(t.element)||!this._listUtils.isListItemBlock(e))return!1;const i=this._htmlSupport.getGhsAttributeNameForElement(t.element);if(t.element=="ol"||t.element=="ul"){if(!s.schema.checkAttribute(e,i))return!1;const o=this._listUtils.isNumberedListType(e.getAttribute("listType"))?"ol":"ul";return t.element==o}else return s.schema.checkAttribute(e,i)}_isStyleActiveForBlock(t,e){const s=this._htmlSupport.getGhsAttributeNameForElement(t.element),i=e.getAttribute(s);return this._styleUtils.hasAllClasses(i,t.classes)}_getAffectedBlocks(t,e){return this._isStyleEnabledForBlock(t,e)?t.element=="li"?this._listUtils.expandListBlocksToCompleteItems(e,{withNested:!1}):this._listUtils.expandListBlocksToCompleteList(e):null}_getStylePreview(t,e){const{element:s,classes:i}=t;return s=="ol"||s=="ul"?{tag:s,attributes:{class:i},children:[{tag:"li",children:e}]}:s=="li"?{tag:"ol",children:[{tag:s,attributes:{class:i},children:e}]}:null}}class K extends g{constructor(){super(...arguments);u(this,"_tableUtils");u(this,"_styleUtils")}static get pluginName(){return"TableStyleSupport"}static get isOfficialPlugin(){return!0}static get requires(){return[f]}init(){const t=this.editor;t.plugins.has("TableEditing")&&(this._styleUtils=t.plugins.get(f),this._tableUtils=this.editor.plugins.get("TableUtils"),this.listenTo(this._styleUtils,"isStyleEnabledForBlock",(e,[s,i])=>{this._isApplicable(s,i)&&(e.return=this._isStyleEnabledForBlock(s,i),e.stop())},{priority:"high"}),this.listenTo(this._styleUtils,"getAffectedBlocks",(e,[s,i])=>{this._isApplicable(s,i)&&(e.return=this._getAffectedBlocks(s,i),e.stop())},{priority:"high"}),this.listenTo(this._styleUtils,"configureGHSDataFilter",(e,[{block:s}])=>{this.editor.plugins.get("DataFilter").loadAllowedConfig(s.filter(l=>l.element=="figcaption").map(l=>({name:"caption",classes:l.classes})))}))}_isApplicable(t,e){return["td","th"].includes(t.element)?e.name=="tableCell":["thead","tbody"].includes(t.element)?e.name=="table":!1}_isStyleEnabledForBlock(t,e){if(["td","th"].includes(t.element)){const s=this._tableUtils.getCellLocation(e),l=e.parent.parent,o=l.getAttribute("headingRows")||0,a=l.getAttribute("headingColumns")||0,c=s.row<o||s.column<a;return t.element=="th"?c:!c}if(["thead","tbody"].includes(t.element)){const s=e.getAttribute("headingRows")||0;return t.element=="thead"?s>0:s<this._tableUtils.getRows(e)}/* istanbul ignore next -- @preserve */return!1}_getAffectedBlocks(t,e){return this._isStyleEnabledForBlock(t,e)?[e]:null}}class W extends g{constructor(){super(...arguments);u(this,"_styleUtils");u(this,"_htmlSupport")}static get pluginName(){return"LinkStyleSupport"}static get isOfficialPlugin(){return!0}static get requires(){return[f,"GeneralHtmlSupport"]}init(){const t=this.editor;t.plugins.has("LinkEditing")&&(this._styleUtils=t.plugins.get(f),this._htmlSupport=this.editor.plugins.get("GeneralHtmlSupport"),this.listenTo(this._styleUtils,"isStyleEnabledForInlineSelection",(e,[s,i])=>{s.element=="a"&&(e.return=this._isStyleEnabled(s,i),e.stop())},{priority:"high"}),this.listenTo(this._styleUtils,"isStyleActiveForInlineSelection",(e,[s,i])=>{s.element=="a"&&(e.return=this._isStyleActive(s,i),e.stop())},{priority:"high"}),this.listenTo(this._styleUtils,"getAffectedInlineSelectable",(e,[s,i])=>{if(s.element!="a")return;const l=this._getAffectedSelectable(s,i);l&&(e.return=l,e.stop())},{priority:"high"}))}_isStyleEnabled(t,e){const s=this.editor.model;if(e.isCollapsed)return e.hasAttribute("linkHref");for(const i of e.getRanges())for(const l of i.getItems())if((l.is("$textProxy")||s.schema.isInline(l))&&l.hasAttribute("linkHref"))return!0;return!1}_isStyleActive(t,e){const s=this.editor.model,i=this._htmlSupport.getGhsAttributeNameForElement(t.element);if(e.isCollapsed){if(e.hasAttribute("linkHref")){const l=e.getAttribute(i);if(this._styleUtils.hasAllClasses(l,t.classes))return!0}return!1}for(const l of e.getRanges())for(const o of l.getItems())if((o.is("$textProxy")||s.schema.isInline(o))&&o.hasAttribute("linkHref")){const a=o.getAttribute(i);return this._styleUtils.hasAllClasses(a,t.classes)}return!1}_getAffectedSelectable(t,e){const s=this.editor.model;if(e.isCollapsed){const l=e.getAttribute("linkHref");return D(e.getFirstPosition(),"linkHref",l,s)}const i=[];for(const l of e.getRanges()){const o=s.createRange(S(l.start,"linkHref",!0,s),S(l.end,"linkHref",!1,s));for(const a of o.getItems())(a.is("$textProxy")||s.schema.isInline(a))&&a.hasAttribute("linkHref")&&i.push(this.editor.model.createRangeOn(a))}return Q(i)}}function S(n,r,t,e){const s=n.textNode||(t?n.nodeAfter:n.nodeBefore);if(!s||!s.hasAttribute(r))return n;const i=s.getAttribute(r);return G(n,r,i,t,e)}function Q(n){for(let r=1;r<n.length;r++){const t=n[r-1].getJoined(n[r]);t&&n.splice(--r,2,t)}return n}class X extends g{static get pluginName(){return"StyleEditing"}static get isOfficialPlugin(){return!0}static get requires(){return["GeneralHtmlSupport",f,J,K,W]}init(){const r=this.editor,t=r.plugins.get("DataSchema"),e=r.plugins.get("StyleUtils"),s=r.config.get("style.definitions"),i=e.normalizeConfig(t,s);r.commands.add("style",new M(r,i)),e.configureGHSDataFilter(i)}}class le extends g{static get pluginName(){return"Style"}static get isOfficialPlugin(){return!0}static get requires(){return[X,z]}}export{le as Style,X as StyleEditing,z as StyleUI,f as StyleUtils};
@@ -1,4 +1,4 @@
1
- var so=Object.defineProperty;var ro=(i,t,e)=>t in i?so(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e;var g=(i,t,e)=>ro(i,typeof t!="symbol"?t+"":t,e);import{Plugin as v,Command as S}from"../../../../../@ckeditor_ckeditor5-core@45.2.1/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{Widget as ao,WidgetToolbarRepository as $e,toWidgetEditable as wt,isWidget as co,toWidget as uo}from"../../../../../@ckeditor_ckeditor5-widget@45.2.1/node_modules/@ckeditor/ckeditor5-widget/dist/index.js";import{Collection as Ct,first as Le,getLocalizedArrowKeyCodeDirection as ho,DomEmitterMixin as mo,global as se,Rect as re,toUnit as go,CKEditorError as Ge,KeystrokeHandler as be,FocusTracker as fe}from"../../../../../@ckeditor_ckeditor5-utils@45.2.1/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{IconTable as je,IconTableColumn as bo,IconTableRow as fo,IconTableMergeCell as po,IconCaption as wo,IconTableCellProperties as Co,IconTableProperties as To,IconCheck as Tt,IconCancel as _t,IconObjectInlineRight as _o,IconObjectCenter as yo,IconObjectInlineLeft as vo,IconAlignBottom as Ao,IconAlignMiddle as So,IconAlignTop as Ro,IconAlignJustify as Io,IconAlignRight as xo,IconAlignCenter as ko,IconAlignLeft as Vo}from"../../../../../@ckeditor_ckeditor5-icons@45.2.1/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";import{createDropdown as oe,MenuBarMenuView as Po,SwitchButtonView as Eo,addListToDropdown as Be,ButtonView as E,ContextualBalloon as ae,normalizeColorOptions as ce,getLocalizedColorOptions as de,clickOutsideHandler as yt,SplitButtonView as Wo,View as O,addKeyboardHandlingForGrid as Lo,ViewModel as vt,ViewCollection as De,FocusCycler as Fe,FormHeaderView as At,FormRowView as x,submitHandler as St,LabelView as L,LabeledFieldView as k,createLabeledDropdown as Rt,createLabeledInputText as M,ToolbarView as _e,BalloonPanelView as N,InputTextView as Bo,ColorSelectorView as Do}from"../../../../../@ckeditor_ckeditor5-ui@45.2.1/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{ClipboardMarkersUtils as Ce,ClipboardPipeline as Ke}from"../../../../../@ckeditor_ckeditor5-clipboard@45.2.1/node_modules/@ckeditor/ckeditor5-clipboard/dist/index.js";import{enablePlaceholder as Fo,Element as No,addBorderRules as It,addPaddingRules as Mo,addBackgroundRules as xt,DomEventObserver as Oo,isColor as zo,isLength as kt,isPercentage as Ho}from"../../../../../@ckeditor_ckeditor5-engine@45.2.1/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";import{debounce as Vt}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/function/debounce.js";import{isEqual as qe}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/predicate/isEqual.js";import{throttle as Uo}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/function/throttle.js";import{isObject as $o}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/predicate/isObject.js";/**
1
+ var so=Object.defineProperty;var ro=(i,t,e)=>t in i?so(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e;var g=(i,t,e)=>ro(i,typeof t!="symbol"?t+"":t,e);import{Plugin as v,Command as S}from"../../../../../@ckeditor_ckeditor5-core@45.2.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{Widget as ao,WidgetToolbarRepository as $e,toWidgetEditable as wt,isWidget as co,toWidget as uo}from"../../../../../@ckeditor_ckeditor5-widget@45.2.0/node_modules/@ckeditor/ckeditor5-widget/dist/index.js";import{Collection as Ct,first as Le,getLocalizedArrowKeyCodeDirection as ho,DomEmitterMixin as mo,global as se,Rect as re,toUnit as go,CKEditorError as Ge,KeystrokeHandler as be,FocusTracker as fe}from"../../../../../@ckeditor_ckeditor5-utils@45.2.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{IconTable as je,IconTableColumn as bo,IconTableRow as fo,IconTableMergeCell as po,IconCaption as wo,IconTableCellProperties as Co,IconTableProperties as To,IconCheck as Tt,IconCancel as _t,IconObjectInlineRight as _o,IconObjectCenter as yo,IconObjectInlineLeft as vo,IconAlignBottom as Ao,IconAlignMiddle as So,IconAlignTop as Ro,IconAlignJustify as Io,IconAlignRight as xo,IconAlignCenter as ko,IconAlignLeft as Vo}from"../../../../../@ckeditor_ckeditor5-icons@45.2.0/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";import{createDropdown as oe,MenuBarMenuView as Po,SwitchButtonView as Eo,addListToDropdown as Be,ButtonView as E,ContextualBalloon as ae,normalizeColorOptions as ce,getLocalizedColorOptions as de,clickOutsideHandler as yt,SplitButtonView as Wo,View as O,addKeyboardHandlingForGrid as Lo,ViewModel as vt,ViewCollection as De,FocusCycler as Fe,FormHeaderView as At,FormRowView as x,submitHandler as St,LabelView as L,LabeledFieldView as k,createLabeledDropdown as Rt,createLabeledInputText as M,ToolbarView as _e,BalloonPanelView as N,InputTextView as Bo,ColorSelectorView as Do}from"../../../../../@ckeditor_ckeditor5-ui@45.2.0/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{ClipboardMarkersUtils as Ce,ClipboardPipeline as Ke}from"../../../../../@ckeditor_ckeditor5-clipboard@45.2.0/node_modules/@ckeditor/ckeditor5-clipboard/dist/index.js";import{enablePlaceholder as Fo,Element as No,addBorderRules as It,addPaddingRules as Mo,addBackgroundRules as xt,DomEventObserver as Oo,isColor as zo,isLength as kt,isPercentage as Ho}from"../../../../../@ckeditor_ckeditor5-engine@45.2.0/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";import{debounce as Vt}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/function/debounce.js";import{isEqual as qe}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/predicate/isEqual.js";import{throttle as Uo}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/function/throttle.js";import{isObject as $o}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/predicate/isObject.js";/**
2
2
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */function Ne(i,t){const{modelAttribute:e,styleName:o,viewElement:n,defaultValue:l,reduceBoxSides:s=!1,shouldUpcast:r=()=>!0}=t;i.for("upcast").attributeToAttribute({view:{name:n,styles:{[o]:/[\s\S]+/}},model:{key:e,value:(a,d,c)=>{if(!r(a))return;const u=B(l,"",c),h=a.getNormalizedStyle(o),m=s?le(h):h;if(u!==m)return m}}})}function ye(i,t,e,o){i.for("upcast").add(n=>n.on("element:"+t,(l,s,r)=>{if(!s.modelRange)return;const a=["border-top-width","border-top-color","border-top-style","border-bottom-width","border-bottom-color","border-bottom-style","border-right-width","border-right-color","border-right-style","border-left-width","border-left-color","border-left-style"].filter(b=>s.viewItem.hasStyle(b));if(!a.length)return;const d={styles:a};if(!r.consumable.test(s.viewItem,d))return;const c=[...s.modelRange.getItems({shallow:!0})].pop(),u=c.findAncestor("table",{includeSelf:!0});let h=o;u&&u.getAttribute("tableType")=="layout"&&(h={style:"none",color:"",width:""}),r.consumable.consume(s.viewItem,d);const m={style:s.viewItem.getNormalizedStyle("border-style"),color:s.viewItem.getNormalizedStyle("border-color"),width:s.viewItem.getNormalizedStyle("border-width")},p={style:le(m.style),color:le(m.color),width:le(m.width)};p.style!==h.style&&r.writer.setAttribute(e.style,p.style,c),p.color!==h.color&&r.writer.setAttribute(e.color,p.color,c),p.width!==h.width&&r.writer.setAttribute(e.width,p.width,c)}))}function K(i,t){const{modelElement:e,modelAttribute:o,styleName:n}=t;i.for("downcast").attributeToAttribute({model:{name:e,key:o},view:l=>({key:"style",value:{[n]:l}})})}function ne(i,t){const{modelAttribute:e,styleName:o}=t;i.for("downcast").add(n=>n.on(`attribute:${e}:table`,(l,s,r)=>{const{item:a,attributeNewValue:d}=s,{mapper:c,writer:u}=r;if(!r.consumable.consume(s.item,l.name))return;const h=[...c.toViewElement(a).getChildren()].find(m=>m.is("element","table"));d?u.setStyle(o,d,h):u.removeStyle(o,h)}))}function B(i,t,e){const o=e.modelRange&&Le(e.modelRange.getItems({shallow:!0})),n=o&&o.is("element")&&o.findAncestor("table",{includeSelf:!0});return n&&n.getAttribute("tableType")==="layout"?t:i}function le(i){if(!i)return;const t=["top","right","bottom","left"];if(!t.every(l=>i[l]))return i;const o=i.top;return t.every(l=>i[l]===o)?o:i}function y(i,t,e,o,n=1){t!=null&&n!==void 0&&n!==null&&t>n?o.setAttribute(i,t,e):o.removeAttribute(i,e)}function z(i,t,e={}){const o=i.createElement("tableCell",e);return i.insertElement("paragraph",o),i.insert(o,t),o}function ve(i,t){const e=t.parent.parent,o=parseInt(e.getAttribute("headingColumns")||"0"),{column:n}=i.getCellLocation(t);return!!o&&n<o}function ie(i,t,e){const{modelAttribute:o}=e;i.extend("tableCell",{allowAttributes:[o]}),Ne(t,{viewElement:/^(td|th)$/,...e}),K(t,{modelElement:"tableCell",...e})}function D(i){const t=i.getSelectedElement();return t&&t.is("element","table")?t:i.getFirstPosition().findAncestor("table")}function Go(){return i=>{i.on("element:figure",(t,e,o)=>{if(!o.consumable.test(e.viewItem,{name:!0,classes:"table"}))return;const n=qo(e.viewItem);if(!n||!o.consumable.test(n,{name:!0}))return;o.consumable.consume(e.viewItem,{name:!0,classes:"table"});const l=o.convertItem(n,e.modelCursor),s=Le(l.modelRange.getItems());if(!s){o.consumable.revert(e.viewItem,{name:!0,classes:"table"});return}o.convertChildren(e.viewItem,o.writer.createPositionAt(s,"end")),o.updateConversionResult(s,e)})}}function jo(){return i=>{i.on("element:table",(t,e,o)=>{const n=e.viewItem;if(!o.consumable.test(n,{name:!0}))return;const{rows:l,headingRows:s,headingColumns:r}=Xo(n),a={};r&&(a.headingColumns=r),s&&(a.headingRows=s);const d=o.writer.createElement("table",a);if(o.safeInsert(d,e.modelCursor)){if(o.consumable.consume(n,{name:!0}),l.forEach(c=>o.convertItem(c,o.writer.createPositionAt(d,"end"))),o.convertChildren(n,o.writer.createPositionAt(d,"end")),d.isEmpty){const c=o.writer.createElement("tableRow");o.writer.insert(c,o.writer.createPositionAt(d,"end")),z(o.writer,o.writer.createPositionAt(c,"end"))}o.updateConversionResult(d,e)}})}}function Ko(){return i=>{i.on("element:tr",(t,e)=>{e.viewItem.isEmpty&&e.modelCursor.index==0&&t.stop()},{priority:"high"})}}function Xe(i){return t=>{t.on(`element:${i}`,(e,o,{writer:n})=>{if(!o.modelRange)return;const l=o.modelRange.start.nodeAfter,s=n.createPositionAt(l,0);if(o.viewItem.isEmpty){n.insertElement("paragraph",s);return}const r=Array.from(l.getChildren());if(r.every(a=>a.is("element","$marker"))){const a=n.createElement("paragraph");n.insert(a,n.createPositionAt(l,0));for(const d of r)n.move(n.createRangeOn(d),n.createPositionAt(a,"end"))}},{priority:"low"})}}function qo(i){for(const t of i.getChildren())if(t.is("element","table"))return t}function Xo(i){let t=0,e;const o=[],n=[];let l;for(const s of Array.from(i.getChildren())){if(s.name!=="tbody"&&s.name!=="thead"&&s.name!=="tfoot")continue;s.name==="thead"&&!l&&(l=s);const r=Array.from(s.getChildren()).filter(d=>d.is("element","tr"));let a=null;for(const d of r){const c=Array.from(d.getChildren()).filter(u=>u.is("element","td")||u.is("element","th"));if(l&&s===l||s.name==="tbody"&&c.length>0&&(a===null||c.length===a)&&c.every(u=>u.is("element","th")))t++,o.push(d);else{n.push(d);const u=Jo(d);(!e||u<e)&&(e=u)}a=Math.max(a||0,c.length)}}return{headingRows:t,headingColumns:e||0,rows:[...o,...n]}}function Jo(i){let t=0,e=0;const o=Array.from(i.getChildren()).filter(n=>n.name==="th"||n.name==="td");for(;e<o.length&&o[e].name==="th";){const n=o[e],l=parseInt(n.getAttribute("colspan")||"1");t=t+l,e++}return t}/**
@@ -0,0 +1,13 @@
1
+ var V=Object.defineProperty;var Y=(o,r,e)=>r in o?V(o,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[r]=e;var h=(o,r,e)=>Y(o,typeof r!="symbol"?r+"":r,e);import{Plugin as O,Command as $}from"../../../../../@ckeditor_ckeditor5-core@45.2.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{keyCodes as E,ObservableMixin as J,env as T,count as X,isInsideSurrogatePair as Z,isInsideCombinedSymbol as ee,isInsideEmojiSequence as te,EventInfo as ne}from"../../../../../@ckeditor_ckeditor5-utils@45.2.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{BubblingEventInfo as F,DomEventData as R,Observer as W,MouseObserver as ie,TouchObserver as se,LiveRange as oe,FocusObserver as re}from"../../../../../@ckeditor_ckeditor5-engine@45.2.0/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";import{escapeRegExp as ce}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/string/escapeRegExp.js";import{debounce as le}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/function/debounce.js";/**
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ *//**
5
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
6
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
7
+ */class U{constructor(r,e=20){h(this,"model");h(this,"limit");h(this,"_isLocked");h(this,"_size");h(this,"_batch",null);h(this,"_changeCallback");h(this,"_selectionChangeCallback");this.model=r,this._size=0,this.limit=e,this._isLocked=!1,this._changeCallback=(t,n)=>{n.isLocal&&n.isUndoable&&n!==this._batch&&this._reset(!0)},this._selectionChangeCallback=()=>{this._reset()},this.model.document.on("change",this._changeCallback),this.model.document.selection.on("change:range",this._selectionChangeCallback),this.model.document.selection.on("change:attribute",this._selectionChangeCallback)}get batch(){return this._batch||(this._batch=this.model.createBatch({isTyping:!0})),this._batch}get size(){return this._size}input(r){this._size+=r,this._size>=this.limit&&this._reset(!0)}get isLocked(){return this._isLocked}lock(){this._isLocked=!0}unlock(){this._isLocked=!1}destroy(){this.model.document.off("change",this._changeCallback),this.model.document.selection.off("change:range",this._selectionChangeCallback),this.model.document.selection.off("change:attribute",this._selectionChangeCallback)}_reset(r=!1){(!this.isLocked||r)&&(this._batch=null,this._size=0)}}class ae extends ${constructor(e,t){super(e);h(this,"_buffer");this._buffer=new U(e.model,t),this._isEnabledBasedOnSelection=!1}get buffer(){return this._buffer}destroy(){super.destroy(),this._buffer.destroy()}execute(e={}){const t=this.editor.model,n=t.document,i=e.text||"",s=i.length;let l=n.selection;if(e.selection?l=e.selection:e.range&&(l=t.createSelection(e.range)),!t.canEditAt(l))return;const c=e.resultRange;t.enqueueChange(this._buffer.batch,a=>{this._buffer.lock();const u=Array.from(n.selection.getAttributes());t.deleteContent(l),i&&t.insertContent(a.createText(i,u),l),c?a.setSelection(c):l.is("documentSelection")||a.setSelection(l),this._buffer.unlock(),this._buffer.input(s)})}}const Q=["insertText","insertReplacementText"],ue=[...Q,"insertCompositionText"];class de extends W{constructor(e){super(e);h(this,"focusObserver");this.focusObserver=e.getObserver(re);const t=T.isAndroid?ue:Q,n=e.document;n.on("beforeinput",(i,s)=>{if(!this.isEnabled)return;const{data:l,targetRanges:c,inputType:a,domEvent:u,isComposing:d}=s;if(!t.includes(a))return;this.focusObserver.flush();const f=new ne(n,"insertText");n.fire(f,new R(e,u,{text:l,selection:e.createSelection(c),isComposing:d})),f.stop.called&&i.stop()}),T.isAndroid||n.on("compositionend",(i,{data:s,domEvent:l})=>{this.isEnabled&&s&&n.fire("insertText",new R(e,l,{text:s,isComposing:!0}))},{priority:"low"})}observe(){}stopObserving(){}}class fe extends O{constructor(){super(...arguments);h(this,"_typingQueue")}static get pluginName(){return"Input"}static get isOfficialPlugin(){return!0}init(){const e=this.editor,t=e.model,n=e.editing.view,i=e.editing.mapper,s=t.document.selection;this._typingQueue=new he(e),n.addObserver(de);const l=new ae(e,e.config.get("typing.undoStep")||20);e.commands.add("insertText",l),e.commands.add("input",l),this.listenTo(n.document,"beforeinput",()=>{this._typingQueue.flush("next beforeinput")},{priority:"high"}),this.listenTo(n.document,"insertText",(c,a)=>{const{text:u,selection:d}=a;if(n.document.selection.isFake&&d&&n.document.selection.isSimilar(d)&&a.preventDefault(),!l.isEnabled){a.preventDefault();return}let f;d?f=Array.from(d.getRanges()).map(g=>i.toModelRange(g)):f=Array.from(s.getRanges());let m=u;if(T.isAndroid){const g=Array.from(f[0].getItems()).reduce((v,w)=>v+(w.is("$textProxy")?w.data:""),"");if(g&&(g.length<=m.length?m.startsWith(g)&&(m=m.substring(g.length),f[0].start=f[0].start.getShiftedBy(g.length)):g.startsWith(m)&&(f[0].start=f[0].start.getShiftedBy(m.length),m="")),m.length==0&&f[0].isCollapsed)return}const p={text:m,selection:t.createSelection(f)};this._typingQueue.push(p,!!a.isComposing),a.domEvent.defaultPrevented&&this._typingQueue.flush("beforeinput default prevented")}),T.isAndroid?this.listenTo(n.document,"keydown",(c,a)=>{s.isCollapsed||a.keyCode!=229||!n.document.isComposing||I(t,l)}):this.listenTo(n.document,"compositionstart",()=>{s.isCollapsed||I(t,l)},{priority:"high"}),this.listenTo(n.document,"mutations",(c,{mutations:a})=>{if(this._typingQueue.hasAffectedElements())for(const{node:u}of a){const d=ge(u,i),f=i.toModelElement(d);if(this._typingQueue.isElementAffected(f)){this._typingQueue.flush("mutations");return}}}),this.listenTo(n.document,"compositionend",()=>{this._typingQueue.flush("before composition end")},{priority:"high"}),this.listenTo(n.document,"compositionend",()=>{this._typingQueue.flush("after composition end");const c=[];if(this._typingQueue.hasAffectedElements())for(const a of this._typingQueue.flushAffectedElements()){const u=i.toViewElement(a);u&&c.push({type:"children",node:u})}(c.length||!T.isAndroid)&&n.document.fire("mutations",{mutations:c})},{priority:"lowest"})}destroy(){super.destroy(),this._typingQueue.destroy()}}class he{constructor(r){h(this,"editor");h(this,"flushDebounced",le(()=>this.flush("timeout"),50));h(this,"_queue",[]);h(this,"_isComposing",!1);h(this,"_affectedElements",new Set);this.editor=r}destroy(){for(this.flushDebounced.cancel(),this._affectedElements.clear();this._queue.length;)this.shift()}get length(){return this._queue.length}push(r,e){const t={text:r.text};if(r.selection){t.selectionRanges=[];for(const n of r.selection.getRanges())t.selectionRanges.push(oe.fromRange(n)),this._affectedElements.add(n.start.parent)}this._queue.push(t),this._isComposing||(this._isComposing=e),this.flushDebounced()}shift(){const r=this._queue.shift(),e={text:r.text};if(r.selectionRanges){const t=r.selectionRanges.map(n=>me(n)).filter(n=>!!n);t.length&&(e.selection=this.editor.model.createSelection(t))}return e}flush(r){const e=this.editor,t=e.model,n=e.editing.view;if(this.flushDebounced.cancel(),!this._queue.length)return;const s=e.commands.get("insertText").buffer;t.enqueueChange(s.batch,()=>{for(s.lock();this._queue.length;){const l=this.shift();e.execute("insertText",l)}s.unlock(),this._isComposing||this._affectedElements.clear(),this._isComposing=!1}),n.scrollToTheSelection()}isElementAffected(r){return this._affectedElements.has(r)}hasAffectedElements(){return this._affectedElements.size>0}flushAffectedElements(){const r=Array.from(this._affectedElements);return this._affectedElements.clear(),r}}function I(o,r){if(!r.isEnabled)return;const e=r.buffer;e.lock(),o.enqueueChange(e.batch,()=>{o.deleteContent(o.document.selection)}),e.unlock()}function me(o){const r=o.toRange();return o.detach(),r.root.rootName=="$graveyard"?null:r}function ge(o,r){let e=o.is("$text")?o.parent:o;for(;!r.toModelElement(e);)e=e.parent;return e}class L extends ${constructor(e,t){super(e);h(this,"direction");h(this,"_buffer");this.direction=t,this._buffer=new U(e.model,e.config.get("typing.undoStep")),this._isEnabledBasedOnSelection=!1}get buffer(){return this._buffer}execute(e={}){const t=this.editor.model,n=t.document;t.enqueueChange(this._buffer.batch,i=>{this._buffer.lock();const s=i.createSelection(e.selection||n.selection);if(!t.canEditAt(s))return;const l=e.sequence||1,c=s.isCollapsed;if(s.isCollapsed&&t.modifySelection(s,{direction:this.direction,unit:e.unit,treatEmojiAsSingleUnit:!0}),this._shouldEntireContentBeReplacedWithParagraph(l)){this._replaceEntireContentWithParagraph(i);return}if(this._shouldReplaceFirstBlockWithParagraph(s,l)){this.editor.execute("paragraph",{selection:s});return}if(s.isCollapsed)return;let a=0;s.getFirstRange().getMinimalFlatRanges().forEach(u=>{a+=X(u.getWalker({singleCharacters:!0,ignoreElementEnd:!0,shallow:!0}))}),t.deleteContent(s,{doNotResetEntireContent:c,direction:this.direction}),this._buffer.input(a),i.setSelection(s),this._buffer.unlock()})}_shouldEntireContentBeReplacedWithParagraph(e){if(e>1)return!1;const t=this.editor.model,i=t.document.selection,s=t.schema.getLimitElement(i);if(!(i.isCollapsed&&i.containsEntireContent(s))||!t.schema.checkChild(s,"paragraph"))return!1;const c=s.getChild(0);return!(c&&c.is("element","paragraph"))}_replaceEntireContentWithParagraph(e){const t=this.editor.model,i=t.document.selection,s=t.schema.getLimitElement(i),l=e.createElement("paragraph");e.remove(e.createRangeIn(s)),e.insert(l,s),e.setSelection(l,0)}_shouldReplaceFirstBlockWithParagraph(e,t){const n=this.editor.model;if(t>1||this.direction!="backward"||!e.isCollapsed)return!1;const i=e.getFirstPosition(),s=n.schema.getLimitElement(i),l=s.getChild(0);return!(i.parent!=l||!e.containsEntireContent(l)||!n.schema.checkChild(s,"paragraph")||l.name=="paragraph")}}const pe="character",q="word",be="codePoint",y="selection",x="backward",k="forward",j={deleteContent:{unit:y,direction:x},deleteContentBackward:{unit:be,direction:x},deleteWordBackward:{unit:q,direction:x},deleteHardLineBackward:{unit:y,direction:x},deleteSoftLineBackward:{unit:y,direction:x},deleteContentForward:{unit:pe,direction:k},deleteWordForward:{unit:q,direction:k},deleteHardLineForward:{unit:y,direction:k},deleteSoftLineForward:{unit:y,direction:k}};class _e extends W{constructor(r){super(r);const e=r.document;let t=0;e.on("keydown",()=>{t++}),e.on("keyup",()=>{t=0}),e.on("beforeinput",(n,i)=>{if(!this.isEnabled)return;const{targetRanges:s,domEvent:l,inputType:c}=i,a=j[c];if(!a)return;const u={direction:a.direction,unit:a.unit,sequence:t};u.unit==y&&(u.selectionToRemove=r.createSelection(s[0])),c==="deleteContentBackward"&&(T.isAndroid&&(u.sequence=1),ye(s)&&(u.unit=y,u.selectionToRemove=r.createSelection(s)));const d=new F(e,"delete",s[0]);e.fire(d,new R(r,l,u)),d.stop.called&&n.stop()}),T.isBlink&&ve(this)}observe(){}stopObserving(){}}function ve(o){const r=o.view,e=r.document;let t=null,n=!1;e.on("keydown",(l,{keyCode:c})=>{t=c,n=!1}),e.on("keyup",(l,{keyCode:c,domEvent:a})=>{const u=e.selection,d=o.isEnabled&&c==t&&i(c)&&!u.isCollapsed&&!n;if(t=null,d){const f=u.getFirstRange(),m=new F(e,"delete",f),p={unit:y,direction:s(c),selectionToRemove:u};e.fire(m,new R(r,a,p))}}),e.on("beforeinput",(l,{inputType:c})=>{const a=j[c];i(t)&&a&&a.direction==s(t)&&(n=!0)},{priority:"high"}),e.on("beforeinput",(l,{inputType:c,data:a})=>{t==E.delete&&c=="insertText"&&a==""&&l.stop()},{priority:"high"});function i(l){return l==E.backspace||l==E.delete}function s(l){return l==E.backspace?x:k}}function ye(o){if(o.length!=1||o[0].isCollapsed)return!1;const r=o[0].getWalker({direction:"backward",singleCharacters:!0,ignoreElementEnd:!0});let e=0;for(const{nextPosition:t,item:n}of r){if(t.parent.is("$text")){const i=t.parent.data,s=t.offset;if(Z(i,s)||ee(i,s)||te(i,s))continue;e++}else(n.is("containerElement")||n.is("emptyElement"))&&e++;if(e>1)return!0}return!1}class Ee extends O{constructor(){super(...arguments);h(this,"_undoOnBackspace")}static get pluginName(){return"Delete"}static get isOfficialPlugin(){return!0}init(){const e=this.editor,t=e.editing.view,n=t.document,i=e.model.document;t.addObserver(_e),this._undoOnBackspace=!1;const s=new L(e,"forward");e.commands.add("deleteForward",s),e.commands.add("forwardDelete",s),e.commands.add("delete",new L(e,"backward")),this.listenTo(n,"delete",(l,c)=>{n.isComposing||c.preventDefault();const{direction:a,sequence:u,selectionToRemove:d,unit:f}=c,m=a==="forward"?"deleteForward":"delete",p={sequence:u};if(f=="selection"){const g=Array.from(d.getRanges()).map(v=>e.editing.mapper.toModelRange(v));p.selection=e.model.createSelection(g)}else p.unit=f;e.execute(m,p),t.scrollToTheSelection()},{priority:"low"}),this.listenTo(n,"keydown",(l,c)=>{if(n.isComposing||c.keyCode!=E.backspace||!i.selection.isCollapsed)return;const a=e.model.schema.getLimitElement(i.selection),u=e.model.createPositionAt(a,0);if(u.isTouching(i.selection.getFirstPosition())){c.preventDefault();const d=e.model.schema.getNearestSelectionRange(u,"forward");if(!d)return;const f=t.createSelection(e.editing.mapper.toViewRange(d)),m=f.getFirstRange(),p=new F(document,"delete",m),g={unit:"selection",direction:"backward",selectionToRemove:f};n.fire(p,new R(t,c.domEvent,g))}}),this.editor.plugins.has("UndoEditing")&&(this.listenTo(n,"delete",(l,c)=>{this._undoOnBackspace&&c.direction=="backward"&&c.sequence==1&&c.unit=="codePoint"&&(this._undoOnBackspace=!1,e.execute("undo"),c.preventDefault(),l.stop())},{context:"$capture"}),this.listenTo(i,"change",()=>{this._undoOnBackspace=!1}))}requestUndoOnBackspace(){this.editor.plugins.has("UndoEditing")&&(this._undoOnBackspace=!0)}}class qe extends O{static get requires(){return[fe,Ee]}static get pluginName(){return"Typing"}static get isOfficialPlugin(){return!0}}/**
8
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
9
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
10
+ */function Te(o,r){let e=o.start;return{text:Array.from(o.getWalker({ignoreElementEnd:!1})).reduce((n,{item:i})=>i.is("$text")||i.is("$textProxy")?n+i.data:(e=r.createPositionAfter(i),""),""),range:r.createRange(e,o.end)}}class Ce extends J(){constructor(e,t){super();h(this,"model");h(this,"testCallback");h(this,"_hasMatch");this.model=e,this.testCallback=t,this._hasMatch=!1,this.set("isEnabled",!0),this.on("change:isEnabled",()=>{this.isEnabled?this._startListening():(this.stopListening(e.document.selection),this.stopListening(e.document))}),this._startListening()}get hasMatch(){return this._hasMatch}_startListening(){const t=this.model.document;this.listenTo(t.selection,"change:range",(n,{directChange:i})=>{if(i){if(!t.selection.isCollapsed){this.hasMatch&&(this.fire("unmatched"),this._hasMatch=!1);return}this._evaluateTextBeforeSelection("selection")}}),this.listenTo(t,"change:data",(n,i)=>{i.isUndo||!i.isLocal||this._evaluateTextBeforeSelection("data",{batch:i})})}_evaluateTextBeforeSelection(e,t={}){const n=this.model,s=n.document.selection,l=n.createRange(n.createPositionAt(s.focus.parent,0),s.focus),{text:c,range:a}=Te(l,n),u=this.testCallback(c);if(!u&&this.hasMatch&&this.fire("unmatched"),this._hasMatch=!!u,u){const d=Object.assign(t,{text:c,range:a});typeof u=="object"&&Object.assign(d,u),this.fire(`matched:${e}`,d)}}}class Ne extends O{constructor(e){super(e);h(this,"attributes");h(this,"_overrideUid");h(this,"_isNextGravityRestorationSkipped",!1);this.attributes=new Set,this._overrideUid=null}static get pluginName(){return"TwoStepCaretMovement"}static get isOfficialPlugin(){return!0}init(){const e=this.editor,t=e.model,n=e.editing.view,i=e.locale,s=t.document.selection;this.listenTo(n.document,"arrowKey",(l,c)=>{if(!s.isCollapsed||c.shiftKey||c.altKey||c.ctrlKey)return;const a=c.keyCode==E.arrowright,u=c.keyCode==E.arrowleft;if(!a&&!u)return;const d=i.contentLanguageDirection;let f=!1;d==="ltr"&&a||d==="rtl"&&u?f=this._handleForwardMovement(c):f=this._handleBackwardMovement(c),f===!0&&l.stop()},{context:"$text",priority:"highest"}),this.listenTo(s,"change:range",(l,c)=>{if(this._isNextGravityRestorationSkipped){this._isNextGravityRestorationSkipped=!1;return}this._isGravityOverridden&&(!c.directChange&&b(s.getFirstPosition(),this.attributes)||this._restoreGravity())}),this._enableClickingAfterNode(),this._enableInsertContentSelectionAttributesFixer(),this._handleDeleteContentAfterNode()}registerAttribute(e){this.attributes.add(e)}_handleForwardMovement(e){const t=this.attributes,n=this.editor.model,i=n.document.selection,s=i.getFirstPosition();return this._isGravityOverridden||s.isAtStart&&_(i,t)?!1:b(s,t)?(e&&S(e),_(i,t)&&b(s,t,!0)?A(n,t):this._overrideGravity(),!0):!1}_handleBackwardMovement(e){const t=this.attributes,n=this.editor.model,i=n.document.selection,s=i.getFirstPosition();return this._isGravityOverridden?(e&&S(e),this._restoreGravity(),b(s,t,!0)?A(n,t):P(n,t,s),!0):s.isAtStart?_(i,t)?(e&&S(e),P(n,t,s),!0):!1:!_(i,t)&&b(s,t,!0)?(e&&S(e),P(n,t,s),!0):N(s,t)?s.isAtEnd&&!_(i,t)&&b(s,t)?(e&&S(e),P(n,t,s),!0):(this._isNextGravityRestorationSkipped=!0,this._overrideGravity(),!1):!1}_enableClickingAfterNode(){const e=this.editor,t=e.model,n=t.document.selection,i=e.editing.view.document;e.editing.view.addObserver(ie),e.editing.view.addObserver(se);let s=!1,l=!1;this.listenTo(i,"touchstart",()=>{l=!1,s=!0}),this.listenTo(i,"mousedown",()=>{l=!0}),this.listenTo(i,"selectionChange",()=>{const c=this.attributes;if(!l&&!s||(l=!1,s=!1,!n.isCollapsed)||!_(n,c))return;const a=n.getFirstPosition();b(a,c)&&(a.isAtStart||b(a,c,!0)?A(t,c):this._isGravityOverridden||this._overrideGravity())})}_enableInsertContentSelectionAttributesFixer(){const t=this.editor.model,n=t.document.selection,i=this.attributes;this.listenTo(t,"insertContent",()=>{const s=n.getFirstPosition();_(n,i)&&b(s,i)&&A(t,i)},{priority:"low"})}_handleDeleteContentAfterNode(){const e=this.editor,t=e.model,n=t.document.selection,i=e.editing.view;let s=!1,l=!1;this.listenTo(i.document,"delete",(c,a)=>{s=a.direction==="backward"},{priority:"high"}),this.listenTo(t,"deleteContent",()=>{if(!s)return;const c=n.getFirstPosition();l=_(n,this.attributes)&&!N(c,this.attributes)},{priority:"high"}),this.listenTo(t,"deleteContent",()=>{s&&(s=!1,!l&&e.model.enqueueChange(()=>{const c=n.getFirstPosition();_(n,this.attributes)&&b(c,this.attributes)&&(c.isAtStart||b(c,this.attributes,!0)?A(t,this.attributes):this._isGravityOverridden||this._overrideGravity())}))},{priority:"low"})}get _isGravityOverridden(){return!!this._overrideUid}_overrideGravity(){this._overrideUid=this.editor.model.change(e=>e.overrideSelectionGravity())}_restoreGravity(){this.editor.model.change(e=>{e.restoreSelectionGravity(this._overrideUid),this._overrideUid=null})}}function _(o,r){for(const e of r)if(o.hasAttribute(e))return!0;return!1}function P(o,r,e){const t=e.nodeBefore;o.change(n=>{if(t){const i=[],s=o.schema.isObject(t)&&o.schema.isInline(t);for(const[l,c]of t.getAttributes())o.schema.checkAttribute("$text",l)&&(!s||o.schema.getAttributeProperties(l).copyFromObject!==!1)&&i.push([l,c]);n.setSelectionAttribute(i)}else n.removeSelectionAttribute(r)})}function A(o,r){o.change(e=>{e.removeSelectionAttribute(r)})}function S(o){o.preventDefault()}function N(o,r){const e=o.getShiftedBy(-1);return b(e,r)}function b(o,r,e=!1){const{nodeBefore:t,nodeAfter:n}=o;for(const i of r){const s=t?t.getAttribute(i):void 0,l=n?n.getAttribute(i):void 0;if(!(e&&(s===void 0||l===void 0))&&l!==s)return!0}return!1}const M={copyright:{from:"(c)",to:"©"},registeredTrademark:{from:"(r)",to:"®"},trademark:{from:"(tm)",to:"™"},oneHalf:{from:/(^|[^/a-z0-9])(1\/2)([^/a-z0-9])$/i,to:[null,"½",null]},oneThird:{from:/(^|[^/a-z0-9])(1\/3)([^/a-z0-9])$/i,to:[null,"⅓",null]},twoThirds:{from:/(^|[^/a-z0-9])(2\/3)([^/a-z0-9])$/i,to:[null,"⅔",null]},oneForth:{from:/(^|[^/a-z0-9])(1\/4)([^/a-z0-9])$/i,to:[null,"¼",null]},threeQuarters:{from:/(^|[^/a-z0-9])(3\/4)([^/a-z0-9])$/i,to:[null,"¾",null]},lessThanOrEqual:{from:"<=",to:"≤"},greaterThanOrEqual:{from:">=",to:"≥"},notEqual:{from:"!=",to:"≠"},arrowLeft:{from:"<-",to:"←"},arrowRight:{from:"->",to:"→"},horizontalEllipsis:{from:"...",to:"…"},enDash:{from:/(^| )(--)( )$/,to:[null,"–",null]},emDash:{from:/(^| )(---)( )$/,to:[null,"—",null]},quotesPrimary:{from:C('"'),to:[null,"“",null,"”"]},quotesSecondary:{from:C("'"),to:[null,"‘",null,"’"]},quotesPrimaryEnGb:{from:C("'"),to:[null,"‘",null,"’"]},quotesSecondaryEnGb:{from:C('"'),to:[null,"“",null,"”"]},quotesPrimaryPl:{from:C('"'),to:[null,"„",null,"”"]},quotesSecondaryPl:{from:C("'"),to:[null,"‚",null,"’"]}},G={symbols:["copyright","registeredTrademark","trademark"],mathematical:["oneHalf","oneThird","twoThirds","oneForth","threeQuarters","lessThanOrEqual","greaterThanOrEqual","notEqual","arrowLeft","arrowRight"],typography:["horizontalEllipsis","enDash","emDash"],quotes:["quotesPrimary","quotesSecondary"]},xe=["symbols","mathematical","typography","quotes"];class Me extends O{static get requires(){return["Delete","Input"]}static get pluginName(){return"TextTransformation"}static get isOfficialPlugin(){return!0}constructor(r){super(r),r.config.define("typing",{transformations:{include:xe}})}init(){const e=this.editor.model.document.selection;e.on("change:range",()=>{this.isEnabled=!e.anchor.parent.is("element","codeBlock")}),this._enableTransformationWatchers()}_enableTransformationWatchers(){const r=this.editor,e=r.model,t=r.plugins.get("Delete"),n=ke(r.config.get("typing.transformations")),i=l=>{for(const c of n)if(c.from.test(l))return{normalizedTransformation:c}},s=new Ce(r.model,i);s.on("matched:data",(l,c)=>{if(!c.batch.isTyping)return;const{from:a,to:u}=c.normalizedTransformation,d=a.exec(c.text),f=u(d.slice(1)),m=c.range;let p=d.index;e.enqueueChange(g=>{for(let v=1;v<d.length;v++){const w=d[v],D=f[v-1];if(D==null){p+=w.length;continue}const B=m.start.getShiftedBy(p),H=e.createRange(B,B.getShiftedBy(w.length)),K=Se(B);e.insertContent(g.createText(D,K),H),p+=D.length}e.enqueueChange(()=>{t.requestUndoOnBackspace()})})}),s.bind("isEnabled").to(this)}}function we(o){return typeof o=="string"?new RegExp(`(${ce(o)})$`):o}function Ae(o){return typeof o=="string"?()=>[o]:o instanceof Array?()=>o:o}function Se(o){return(o.textNode?o.textNode:o.nodeAfter).getAttributes()}function C(o){return new RegExp(`(^|\\s)(${o})([^${o}]*)(${o})$`)}function ke(o){const r=o.extra||[],e=o.remove||[],t=i=>!e.includes(i),n=o.include.concat(r).filter(t);return Re(n).filter(t).map(i=>typeof i=="string"&&M[i]?M[i]:i).filter(i=>typeof i=="object").map(i=>({from:we(i.from),to:Ae(i.to)}))}function Re(o){const r=new Set;for(const e of o)if(typeof e=="string"&&G[e])for(const t of G[e])r.add(t);else r.add(e);return Array.from(r)}/**
11
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
12
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
13
+ */function Oe(o,r,e,t){return t.createRange(z(o,r,e,!0,t),z(o,r,e,!1,t))}function z(o,r,e,t,n){let i=o.textNode||(t?o.nodeBefore:o.nodeAfter),s=null;for(;i&&i.getAttribute(r)==e;)s=i,i=t?i.previousSibling:i.nextSibling;return s?n.createPositionAt(s,t?"before":"after"):o}function Ge(o,r,e,t){const n=o.editing.view,i=new Set;n.document.registerPostFixer(s=>{const l=o.model.document.selection;let c=!1;if(l.hasAttribute(r)){const a=Oe(l.getFirstPosition(),r,l.getAttribute(r),o.model),u=o.editing.mapper.toViewRange(a);for(const d of u.getItems())d.is("element",e)&&!d.hasClass(t)&&(s.addClass(t,d),i.add(d),c=!0)}return c}),o.conversion.for("editingDowncast").add(s=>{s.on("insert",l,{priority:"highest"}),s.on("remove",l,{priority:"highest"}),s.on("attribute",l,{priority:"highest"}),s.on("selection",l,{priority:"highest"});function l(){n.change(c=>{for(const a of i.values())c.removeClass(t,a),i.delete(a)})}})}export{Ee as Delete,fe as Input,ae as InsertTextCommand,Me as TextTransformation,Ce as TextWatcher,Ne as TwoStepCaretMovement,qe as Typing,Oe as findAttributeRange,z as findAttributeRangeBound,Te as getLastTextLine,Ge as inlineHighlight};
@@ -1,4 +1,4 @@
1
- var Rt=Object.defineProperty;var Ht=(s,o,e)=>o in s?Rt(s,o,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[o]=e;var l=(s,o,e)=>Ht(s,typeof o!="symbol"?o+"":o,e);import{getEnvKeystrokeText as ee,uid as te,env as S,delay as zt,createElement as I,KeystrokeHandler as O,FocusTracker as T,toUnit as le,global as f,Rect as C,DomEmitterMixin as ae,ObservableMixin as ce,Collection as Ve,isIterable as Se,CKEditorError as V,getOptimalPosition as xe,logWarning as x,EmitterMixin as at,getVisualViewportOffset as Y,isVisible as B,isNode as ct,priorities as Ut,isText as $t,ResizeObserver as ht,toArray as he,first as Kt,parseBase64EncodedObject as ut,isRange as jt}from"../../../../../@ckeditor_ckeditor5-utils@45.2.1/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{Plugin as Ee,ContextPlugin as Xt}from"../../../../../@ckeditor_ckeditor5-core@45.2.1/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{IconAccessibility as Me,IconCancel as dt,IconDropdownArrow as ue,IconDragIndicator as qt,IconPilcrow as Yt,IconThreeVerticalDots as Ie,IconText as Qt,IconPlus as Zt,IconParagraph as Jt,IconImportExport as ei,IconBold as ti,IconAlignLeft as ii,IconCheck as ft,IconPreviousArrow as si,IconNextArrow as oi,IconColorPalette as ni,IconEraser as ri,IconProjectLogo as li,IconColorTileCheck as ai}from"../../../../../@ckeditor_ckeditor5-icons@45.2.1/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";import Ne from"../../../../../color-parse@1.4.2/node_modules/color-parse/index.js";import*as pt from"../../../../../../../_virtual/index.js";import{HexBase as ci}from"../../../../../vanilla-colorful@0.7.2/node_modules/vanilla-colorful/lib/entrypoints/hex.js";import"../../../../../@ckeditor_ckeditor5-engine@45.2.1/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";import{assignIn as hi}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/object/assignIn.js";import{isObject as ie}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/predicate/isObject.js";import{cloneDeep as Oe}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/object/cloneDeep.js";import{debounce as _e}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/function/debounce.js";import{isElement as Pe}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/predicate/isElement.js";import{cloneDeepWith as ui}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.js";import{throttle as di}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/function/throttle.js";/**
1
+ var Rt=Object.defineProperty;var Ht=(s,o,e)=>o in s?Rt(s,o,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[o]=e;var l=(s,o,e)=>Ht(s,typeof o!="symbol"?o+"":o,e);import{getEnvKeystrokeText as ee,uid as te,env as S,delay as zt,createElement as I,KeystrokeHandler as O,FocusTracker as T,toUnit as le,global as f,Rect as C,DomEmitterMixin as ae,ObservableMixin as ce,Collection as Ve,isIterable as Se,CKEditorError as V,getOptimalPosition as xe,logWarning as x,EmitterMixin as at,getVisualViewportOffset as Y,isVisible as B,isNode as ct,priorities as Ut,isText as $t,ResizeObserver as ht,toArray as he,first as Kt,parseBase64EncodedObject as ut,isRange as jt}from"../../../../../@ckeditor_ckeditor5-utils@45.2.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{Plugin as Ee,ContextPlugin as Xt}from"../../../../../@ckeditor_ckeditor5-core@45.2.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{IconAccessibility as Me,IconCancel as dt,IconDropdownArrow as ue,IconDragIndicator as qt,IconPilcrow as Yt,IconThreeVerticalDots as Ie,IconText as Qt,IconPlus as Zt,IconParagraph as Jt,IconImportExport as ei,IconBold as ti,IconAlignLeft as ii,IconCheck as ft,IconPreviousArrow as si,IconNextArrow as oi,IconColorPalette as ni,IconEraser as ri,IconProjectLogo as li,IconColorTileCheck as ai}from"../../../../../@ckeditor_ckeditor5-icons@45.2.0/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";import Ne from"../../../../../color-parse@1.4.2/node_modules/color-parse/index.js";import*as pt from"../../../../../../../_virtual/index.js";import{HexBase as ci}from"../../../../../vanilla-colorful@0.7.2/node_modules/vanilla-colorful/lib/entrypoints/hex.js";import"../../../../../@ckeditor_ckeditor5-engine@45.2.0/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";import{assignIn as hi}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/object/assignIn.js";import{isObject as ie}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/predicate/isObject.js";import{cloneDeep as Oe}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/object/cloneDeep.js";import{debounce as _e}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/function/debounce.js";import{isElement as Pe}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/predicate/isElement.js";import{cloneDeepWith as ui}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.js";import{throttle as di}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/function/throttle.js";/**
2
2
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */class A extends Ve{constructor(e=[]){super(e,{idProperty:"viewUid"});l(this,"_parentElement");this.on("add",(t,i,n)=>{this._renderViewIntoCollectionParent(i,n)}),this.on("remove",(t,i)=>{i.element&&this._parentElement&&i.element.remove()}),this._parentElement=null}destroy(){this.map(e=>e.destroy())}setParent(e){this._parentElement=e;for(const t of this)this._renderViewIntoCollectionParent(t)}delegate(...e){if(!e.length||!fi(e))throw new V("ui-viewcollection-delegate-wrong-events",this);return{to:t=>{for(const i of this)for(const n of e)i.delegate(n).to(t);this.on("add",(i,n)=>{for(const r of e)n.delegate(r).to(t)}),this.on("remove",(i,n)=>{for(const r of e)n.stopDelegating(r,t)})}}}_renderViewIntoCollectionParent(e,t){e.isRendered||e.render(),e.element&&this._parentElement&&this._parentElement.insertBefore(e.element,this._parentElement.children[t])}remove(e){return super.remove(e)}}function fi(s){return s.every(o=>typeof o=="string")}const pi="http://www.w3.org/1999/xhtml";class E extends at(){constructor(e){super();l(this,"ns");l(this,"tag");l(this,"text");l(this,"attributes");l(this,"children");l(this,"eventListeners");l(this,"_isRendered");l(this,"_revertData");Object.assign(this,Ge(We(e))),this._isRendered=!1,this._revertData=null}render(){const e=this._renderNode({intoFragment:!0});return this._isRendered=!0,e}apply(e){return this._revertData=ze(),this._renderNode({node:e,intoFragment:!1,isApplying:!0,revertData:this._revertData}),e}revert(e){if(!this._revertData)throw new V("ui-template-revert-not-applied",[this,e]);this._revertTemplateFromNode(e,this._revertData)}*getViews(){function*e(t){if(t.children)for(const i of t.children)se(i)?yield i:Be(i)&&(yield*e(i))}yield*e(this)}static bind(e,t){return{to(i,n){return new mi({eventNameOrFunction:i,attribute:i,observable:e,emitter:t,callback:n})},if(i,n,r){return new mt({observable:e,emitter:t,attribute:i,valueIfTrue:n,callback:r})}}}static extend(e,t){if(e._isRendered)throw new V("template-extend-render",[this,e]);_t(e,Ge(We(t)))}_renderNode(e){let t;if(e.node?t=this.tag&&this.text:t=this.tag?this.text:!this.text,t)throw new V("ui-template-wrong-syntax",this);return this.text?this._renderText(e):this._renderElement(e)}_renderElement(e){let t=e.node;return t||(t=e.node=document.createElementNS(this.ns||pi,this.tag)),this._renderAttributes(e),this._renderElementChildren(e),this._setUpListeners(e),t}_renderText(e){let t=e.node;return t?e.revertData.text=t.textContent:t=e.node=document.createTextNode(""),Q(this.text)?this._bindToObservable({schema:this.text,updater:bi(t),data:e}):t.textContent=this.text.join(""),t}_renderAttributes(e){if(!this.attributes)return;const t=e.node,i=e.revertData;for(const n in this.attributes){const r=t.getAttribute(n),a=this.attributes[n];i&&(i.attributes[n]=r);const u=He(a)?a[0].ns:null;if(Q(a)){const c=He(a)?a[0].value:a;i&&Ue(n)&&c.unshift(r),this._bindToObservable({schema:c,updater:gi(t,n,u),data:e})}else if(n=="style"&&typeof a[0]!="string")this._renderStyleAttribute(a[0],e);else{i&&r&&Ue(n)&&a.unshift(r);const c=a.map(h=>h&&(h.value||h)).reduce((h,p)=>h.concat(p),[]).reduce(gt,"");G(c)||t.setAttributeNS(u,n,c)}}}_renderStyleAttribute(e,t){const i=t.node;for(const n in e){const r=e[n];Q(r)?this._bindToObservable({schema:[r],updater:_i(i,n),data:t}):i.style[n]=r}}_renderElementChildren(e){const t=e.node,i=e.intoFragment?document.createDocumentFragment():t,n=e.isApplying;let r=0;for(const a of this.children)if(Le(a)){if(!n){a.setParent(t);for(const u of a)i.appendChild(u.element)}}else if(se(a))n||(a.isRendered||a.render(),i.appendChild(a.element));else if(ct(a))i.appendChild(a);else if(n){const u=e.revertData,c=ze();u.children.push(c),a._renderNode({intoFragment:!1,node:i.childNodes[r++],isApplying:!0,revertData:c})}else i.appendChild(a.render());e.intoFragment&&t.appendChild(i)}_setUpListeners(e){if(this.eventListeners)for(const t in this.eventListeners){const i=this.eventListeners[t].map(n=>{const[r,a]=t.split("@");return n.activateDomEventListener(r,a,e)});e.revertData&&e.revertData.bindings.push(i)}}_bindToObservable({schema:e,updater:t,data:i}){const n=i.revertData;wt(e,t,i);const r=e.filter(a=>!G(a)).filter(a=>a.observable).map(a=>a.activateAttributeListener(e,t,i));n&&n.bindings.push(r)}_revertTemplateFromNode(e,t){for(const n of t.bindings)for(const r of n)r();if(t.text){e.textContent=t.text;return}const i=e;for(const n in t.attributes){const r=t.attributes[n];r===null?i.removeAttribute(n):i.setAttribute(n,r)}for(let n=0;n<t.children.length;++n)this._revertTemplateFromNode(i.childNodes[n],t.children[n])}}class K{constructor(o){l(this,"attribute");l(this,"observable");l(this,"emitter");l(this,"callback");this.attribute=o.attribute,this.observable=o.observable,this.emitter=o.emitter,this.callback=o.callback}getValue(o){const e=this.observable[this.attribute];return this.callback?this.callback(e,o):e}activateAttributeListener(o,e,t){const i=()=>wt(o,e,t);return this.emitter.listenTo(this.observable,`change:${this.attribute}`,i),()=>{this.emitter.stopListening(this.observable,`change:${this.attribute}`,i)}}}class mi extends K{constructor(e){super(e);l(this,"eventNameOrFunction");this.eventNameOrFunction=e.eventNameOrFunction}activateDomEventListener(e,t,i){const n=(r,a)=>{(!t||a.target.matches(t))&&(typeof this.eventNameOrFunction=="function"?this.eventNameOrFunction(a):this.observable.fire(this.eventNameOrFunction,a))};return this.emitter.listenTo(i.node,e,n),()=>{this.emitter.stopListening(i.node,e,n)}}}class mt extends K{constructor(e){super(e);l(this,"valueIfTrue");this.valueIfTrue=e.valueIfTrue}getValue(e){const t=super.getValue(e);return G(t)?!1:this.valueIfTrue||!0}}function Q(s){return s?(s.value&&(s=s.value),Array.isArray(s)?s.some(Q):s instanceof K):!1}function wi(s,o){return s.map(e=>e instanceof K?e.getValue(o):e)}function wt(s,o,{node:e}){const t=wi(s,e);let i;s.length==1&&s[0]instanceof mt?i=t[0]:i=t.reduce(gt,""),G(i)?o.remove():o.set(i)}function bi(s){return{set(o){s.textContent=o},remove(){s.textContent=""}}}function gi(s,o,e){return{set(t){s.setAttributeNS(e,o,t)},remove(){s.removeAttributeNS(e,o)}}}function _i(s,o){return{set(e){s.style[o]=e},remove(){s.style[o]=null}}}function We(s){return ui(s,e=>{if(e&&(e instanceof K||Be(e)||se(e)||Le(e)))return e})}function Ge(s){if(typeof s=="string"?s=vi(s):s.text&&yi(s),s.on&&(s.eventListeners=Ti(s.on),delete s.on),!s.text){s.attributes&&ki(s.attributes);const o=[];if(s.children)if(Le(s.children))o.push(s.children);else for(const e of s.children)Be(e)||se(e)||ct(e)?o.push(e):o.push(new E(e));s.children=o}return s}function ki(s){for(const o in s)s[o].value&&(s[o].value=he(s[o].value)),bt(s,o)}function Ti(s){for(const o in s)bt(s,o);return s}function vi(s){return{text:[s]}}function yi(s){s.text=he(s.text)}function bt(s,o){s[o]=he(s[o])}function gt(s,o){return G(o)?s:G(s)?o:`${s} ${o}`}function Re(s,o){for(const e in o)s[e]?s[e].push(...o[e]):s[e]=o[e]}function _t(s,o){if(o.attributes&&(s.attributes||(s.attributes={}),Re(s.attributes,o.attributes)),o.eventListeners&&(s.eventListeners||(s.eventListeners={}),Re(s.eventListeners,o.eventListeners)),o.text&&s.text.push(...o.text),o.children&&o.children.length){if(s.children.length!=o.children.length)throw new V("ui-template-extend-children-mismatch",s);let e=0;for(const t of o.children)_t(s.children[e++],t)}}function G(s){return!s&&s!==0}function se(s){return s instanceof d}function Be(s){return s instanceof E}function Le(s){return s instanceof A}function He(s){return ie(s[0])&&s[0].ns}function ze(){return{children:[],bindings:[],attributes:{}}}function Ue(s){return s=="class"||s=="style"}class d extends ae(ce()){constructor(e){super();l(this,"element");l(this,"isRendered");l(this,"locale");l(this,"t");l(this,"template");l(this,"_viewCollections");l(this,"_unboundChildren");l(this,"_bindTemplate");this.element=null,this.isRendered=!1,this.locale=e,this.t=e&&e.t,this._viewCollections=new Ve,this._unboundChildren=this.createCollection(),this._viewCollections.on("add",(t,i)=>{i.locale=e,i.t=e&&e.t}),this.decorate("render")}get bindTemplate(){return this._bindTemplate?this._bindTemplate:this._bindTemplate=E.bind(this,this)}createCollection(e){const t=new A(e);return this._viewCollections.add(t),t}registerChild(e){Se(e)||(e=[e]);for(const t of e)this._unboundChildren.add(t)}deregisterChild(e){Se(e)||(e=[e]);for(const t of e)this._unboundChildren.remove(t)}setTemplate(e){this.template=new E(e)}extendTemplate(e){E.extend(this.template,e)}render(){if(this.isRendered)throw new V("ui-view-render-already-rendered",this);this.template&&(this.element=this.template.render(),this.registerChild(this.template.getViews())),this.isRendered=!0}destroy(){this.stopListening(),this._viewCollections.map(e=>e.destroy()),this.template&&this.template._revertData&&this.template.revert(this.element)}}/**
@@ -1,4 +1,4 @@
1
- var b=Object.defineProperty;var y=(i,e,t)=>e in i?b(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var u=(i,e,t)=>y(i,typeof e!="symbol"?e+"":e,t);import{Plugin as f,Command as R}from"../../../../../@ckeditor_ckeditor5-core@45.2.1/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{transformSets as k,NoOperation as C}from"../../../../../@ckeditor_ckeditor5-engine@45.2.1/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";import{ButtonView as T,MenuBarMenuListItemButtonView as U}from"../../../../../@ckeditor_ckeditor5-ui@45.2.1/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{IconUndo as g,IconRedo as _}from"../../../../../@ckeditor_ckeditor5-icons@45.2.1/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";/**
1
+ var b=Object.defineProperty;var y=(i,e,t)=>e in i?b(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var u=(i,e,t)=>y(i,typeof e!="symbol"?e+"":e,t);import{Plugin as f,Command as R}from"../../../../../@ckeditor_ckeditor5-core@45.2.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{transformSets as k,NoOperation as C}from"../../../../../@ckeditor_ckeditor5-engine@45.2.0/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";import{ButtonView as T,MenuBarMenuListItemButtonView as U}from"../../../../../@ckeditor_ckeditor5-ui@45.2.0/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{IconUndo as g,IconRedo as _}from"../../../../../@ckeditor_ckeditor5-icons@45.2.0/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";/**
2
2
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */class B extends R{constructor(t){super(t);u(this,"_stack",[]);u(this,"_createdBatches",new WeakSet);this.refresh(),this._isEnabledBasedOnSelection=!1,this.listenTo(t.data,"set",(o,s)=>{s[1]={...s[1]};const n=s[1];n.batchType||(n.batchType={isUndoable:!1})},{priority:"high"}),this.listenTo(t.data,"set",(o,s)=>{s[1].batchType.isUndoable||this.clearStack()})}refresh(){this.isEnabled=this._stack.length>0}get createdBatches(){return this._createdBatches}addBatch(t){const o=this.editor.model.document.selection,s={ranges:o.hasOwnRange?Array.from(o.getRanges()):[],isBackward:o.isBackward};this._stack.push({batch:t,selection:s}),this.refresh()}clearStack(){this._stack=[],this.refresh()}_restoreSelection(t,o,s){const n=this.editor.model,r=n.document,a=[],h=t.map(l=>l.getTransformedByOperations(s)),c=h.flat();for(const l of h){const m=l.filter(d=>d.root!=r.graveyard).filter(d=>!w(d,c));m.length&&(O(m),a.push(m[0]))}a.length&&n.change(l=>{l.setSelection(a,{backward:o})})}_undo(t,o){const s=this.editor.model,n=s.document;this._createdBatches.add(o);const r=t.operations.slice().filter(a=>a.isDocumentOperation);r.reverse();for(const a of r){const h=a.baseVersion+1,c=Array.from(n.history.getOperations(h)),m=k([a.getReversed()],c,{useRelations:!0,document:this.editor.model.document,forceWeakRemove:!0}).operationsA;for(let d of m){const p=d.affectedSelectable;p&&!s.canEditAt(p)&&(d=new C(d.baseVersion)),o.addOperation(d),s.applyOperation(d),n.history.setOperationAsUndone(a,d)}}}}function O(i){i.sort((e,t)=>e.start.isBefore(t.start)?-1:1);for(let e=1;e<i.length;e++){const o=i[e-1].getJoined(i[e],!0);o&&(e--,i.splice(e,2,o))}}function w(i,e){return e.some(t=>t!==i&&t.containsRange(i,!0))}class S extends B{execute(e=null){const t=e?this._stack.findIndex(n=>n.batch==e):this._stack.length-1,o=this._stack.splice(t,1)[0],s=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(s,()=>{this._undo(o.batch,s);const n=this.editor.model.document.history.getOperations(o.batch.baseVersion);this._restoreSelection(o.selection.ranges,o.selection.isBackward,n)}),this.fire("revert",o.batch,s),this.refresh()}}class v extends B{execute(){const e=this._stack.pop(),t=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(t,()=>{const s=e.batch.operations[e.batch.operations.length-1].baseVersion+1,n=this.editor.model.document.history.getOperations(s);this._restoreSelection(e.selection.ranges,e.selection.isBackward,n),this._undo(e.batch,t)}),this.refresh()}}class x extends f{constructor(){super(...arguments);u(this,"_undoCommand");u(this,"_redoCommand");u(this,"_batchRegistry",new WeakSet)}static get pluginName(){return"UndoEditing"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,o=t.t;this._undoCommand=new S(t),this._redoCommand=new v(t),t.commands.add("undo",this._undoCommand),t.commands.add("redo",this._redoCommand),this.listenTo(t.model,"applyOperation",(s,n)=>{const r=n[0];if(!r.isDocumentOperation)return;const a=r.batch,h=this._redoCommand.createdBatches.has(a),c=this._undoCommand.createdBatches.has(a);this._batchRegistry.has(a)||(this._batchRegistry.add(a),a.isUndoable&&(h?this._undoCommand.addBatch(a):c||(this._undoCommand.addBatch(a),this._redoCommand.clearStack())))},{priority:"highest"}),this.listenTo(this._undoCommand,"revert",(s,n,r)=>{this._redoCommand.addBatch(r)}),t.keystrokes.set("CTRL+Z","undo"),t.keystrokes.set("CTRL+Y","redo"),t.keystrokes.set("CTRL+SHIFT+Z","redo"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:o("Undo"),keystroke:"CTRL+Z"},{label:o("Redo"),keystroke:[["CTRL+Y"],["CTRL+SHIFT+Z"]]}]})}}class I extends f{static get pluginName(){return"UndoUI"}static get isOfficialPlugin(){return!0}init(){const e=this.editor,t=e.locale,o=e.t,s=t.uiLanguageDirection=="ltr"?g:_,n=t.uiLanguageDirection=="ltr"?_:g;this._addButtonsToFactory("undo",o("Undo"),"CTRL+Z",s),this._addButtonsToFactory("redo",o("Redo"),"CTRL+Y",n)}_addButtonsToFactory(e,t,o,s){const n=this.editor;n.ui.componentFactory.add(e,()=>{const r=this._createButton(T,e,t,o,s);return r.set({tooltip:!0}),r}),n.ui.componentFactory.add("menuBar:"+e,()=>this._createButton(U,e,t,o,s))}_createButton(e,t,o,s,n){const r=this.editor,a=r.locale,h=r.commands.get(t),c=new e(a);return c.set({label:o,icon:n,keystroke:s}),c.bind("isEnabled").to(h,"isEnabled"),this.listenTo(c,"execute",()=>{r.execute(t),r.editing.view.focus()}),c}}class P extends f{static get requires(){return[x,I]}static get pluginName(){return"Undo"}static get isOfficialPlugin(){return!0}}export{P as Undo,x as UndoEditing,I as UndoUI};
@@ -1,4 +1,4 @@
1
- var g=Object.defineProperty;var _=(o,a,e)=>a in o?g(o,a,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[a]=e;var i=(o,a,e)=>_(o,typeof a!="symbol"?a+"":a,e);import{Plugin as u,PendingActions as n}from"../../../../../@ckeditor_ckeditor5-core@45.2.1/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{Collection as f,logWarning as w,ObservableMixin as c,uid as m,CKEditorError as l}from"../../../../../@ckeditor_ckeditor5-utils@45.2.1/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";/**
1
+ var g=Object.defineProperty;var _=(o,a,e)=>a in o?g(o,a,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[a]=e;var i=(o,a,e)=>_(o,typeof a!="symbol"?a+"":a,e);import{Plugin as u,PendingActions as n}from"../../../../../@ckeditor_ckeditor5-core@45.2.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{Collection as f,logWarning as w,ObservableMixin as c,uid as m,CKEditorError as l}from"../../../../../@ckeditor_ckeditor5-utils@45.2.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";/**
2
2
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */class b extends c(){constructor(){super();i(this,"total");i(this,"_reader");i(this,"_data");const e=new window.FileReader;this._reader=e,this._data=void 0,this.set("loaded",0),e.onprogress=t=>{this.loaded=t.loaded}}get error(){return this._reader.error}get data(){return this._data}read(e){const t=this._reader;return this.total=e.size,new Promise((r,s)=>{t.onload=()=>{const d=t.result;this._data=d,r(d)},t.onerror=()=>{s("error")},t.onabort=()=>{s("aborted")},this._reader.readAsDataURL(e)})}abort(){this._reader.abort()}}class h extends u{constructor(){super(...arguments);i(this,"loaders",new f);i(this,"_loadersMap",new Map);i(this,"_pendingAction",null)}static get pluginName(){return"FileRepository"}static get isOfficialPlugin(){return!0}static get requires(){return[n]}init(){this.loaders.on("change",()=>this._updatePendingAction()),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(e,t)=>t?e/t*100:0)}getLoader(e){return this._loadersMap.get(e)||null}createLoader(e){if(!this.createUploadAdapter)return w("filerepository-no-upload-adapter"),null;const t=new p(Promise.resolve(e),this.createUploadAdapter);return this.loaders.add(t),this._loadersMap.set(e,t),e instanceof Promise&&t.file.then(r=>{this._loadersMap.set(r,t)}).catch(()=>{}),t.on("change:uploaded",()=>{let r=0;for(const s of this.loaders)r+=s.uploaded;this.uploaded=r}),t.on("change:uploadTotal",()=>{let r=0;for(const s of this.loaders)s.uploadTotal&&(r+=s.uploadTotal);this.uploadTotal=r}),t}destroyLoader(e){const t=e instanceof p?e:this.getLoader(e);t._destroy(),this.loaders.remove(t),this._loadersMap.forEach((r,s)=>{r===t&&this._loadersMap.delete(s)})}_updatePendingAction(){const e=this.editor.plugins.get(n);if(this.loaders.length){if(!this._pendingAction){const t=this.editor.t,r=s=>`${t("Upload in progress")} ${parseInt(s)}%.`;this._pendingAction=e.add(r(this.uploadedPercent)),this._pendingAction.bind("message").to(this,"uploadedPercent",r)}}else e.remove(this._pendingAction),this._pendingAction=null}}class p extends c(){constructor(e,t){super();i(this,"id");i(this,"_filePromiseWrapper");i(this,"_adapter");i(this,"_reader");this.id=m(),this._filePromiseWrapper=this._createFilePromiseWrapper(e),this._adapter=t(this),this._reader=new b,this.set("status","idle"),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(r,s)=>s?r/s*100:0),this.set("uploadResponse",null)}get file(){return this._filePromiseWrapper?this._filePromiseWrapper.promise.then(e=>this._filePromiseWrapper?e:null):Promise.resolve(null)}get data(){return this._reader.data}read(){if(this.status!="idle")throw new l("filerepository-read-wrong-status",this);return this.status="reading",this.file.then(e=>this._reader.read(e)).then(e=>{if(this.status!=="reading")throw this.status;return this.status="idle",e}).catch(e=>{throw e==="aborted"?(this.status="aborted","aborted"):(this.status="error",this._reader.error?this._reader.error:e)})}upload(){if(this.status!="idle")throw new l("filerepository-upload-wrong-status",this);return this.status="uploading",this.file.then(()=>this._adapter.upload()).then(e=>(this.uploadResponse=e,this.status="idle",e)).catch(e=>{throw this.status==="aborted"?"aborted":(this.status="error",e)})}abort(){const e=this.status;this.status="aborted",this._filePromiseWrapper.isFulfilled?e=="reading"?this._reader.abort():e=="uploading"&&this._adapter.abort&&this._adapter.abort():(this._filePromiseWrapper.promise.catch(()=>{}),this._filePromiseWrapper.rejecter("aborted")),this._destroy()}_destroy(){this._filePromiseWrapper=void 0,this._reader=void 0,this._adapter=void 0,this.uploadResponse=void 0}_createFilePromiseWrapper(e){const t={};return t.promise=new Promise((r,s)=>{t.rejecter=s,t.isFulfilled=!1,e.then(d=>{t.isFulfilled=!0,r(d)}).catch(d=>{t.isFulfilled=!0,s(d)})}),t}}class R extends u{static get requires(){return[h]}static get pluginName(){return"Base64UploadAdapter"}static get isOfficialPlugin(){return!0}init(){this.editor.plugins.get(h).createUploadAdapter=a=>new P(a)}}let P=class{constructor(a){i(this,"loader");i(this,"reader");this.loader=a}upload(){return new Promise((a,e)=>{const t=this.reader=new window.FileReader;t.addEventListener("load",()=>{a({default:t.result})}),t.addEventListener("error",r=>{e(r)}),t.addEventListener("abort",()=>{e()}),this.loader.file.then(r=>{t.readAsDataURL(r)})})}abort(){this.reader.abort()}};export{R as Base64UploadAdapter,h as FileRepository};