@ncino/web-components 5.0.0-preview.1 → 5.0.0-preview.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (168) hide show
  1. package/dist/_virtual/_commonjsHelpers.js +1 -1
  2. package/dist/_virtual/index_html.js +1 -1
  3. package/dist/_virtual/index_react.js +1 -1
  4. package/dist/_virtual/preload-helper.js +1 -1
  5. package/dist/assets/node_modules/.pnpm/ckeditor5@45.2.1/node_modules/ckeditor5/dist/ckeditor5.css +1 -1
  6. package/dist/components/accordion/gator/base/accordion.gator.js +6 -6
  7. package/dist/components/avatar/gator/avatar.gator.js +2 -2
  8. package/dist/components/badge/gator/badge.gator.js +2 -2
  9. package/dist/components/boolean/boolean.gator.js +6 -6
  10. package/dist/components/breadcrumbs/gator/breadcrumb/breadcrumb.gator.js +2 -2
  11. package/dist/components/button/gator/button.gator.js +4 -4
  12. package/dist/components/button-group/gator/button-group.gator.js +2 -2
  13. package/dist/components/checkbox/checkbox.gator.js +5 -5
  14. package/dist/components/checkbox-group/checkbox-group.gator.js +8 -8
  15. package/dist/components/combobox/base/combobox.js +1 -1
  16. package/dist/components/combobox/base/combobox.slds.js +13 -13
  17. package/dist/components/date-picker/base/gator/datepicker.gator.js +18 -18
  18. package/dist/components/date-picker/year-month-selector/year-month-selector.gator.js +2 -2
  19. package/dist/components/headline-card/gator/headline-card.gator.js +2 -2
  20. package/dist/components/icon/gator/icon.gator.js +2 -2
  21. package/dist/components/illustration/gator/illustration.gator.js +2 -2
  22. package/dist/components/input/base/input-base.gator.js +1 -1
  23. package/dist/components/input/gator/dropdown/input-dropdown.gator.js +11 -11
  24. package/dist/components/input/gator/input-currency/input-currency.gator.js +2 -2
  25. package/dist/components/input/gator/input-date/input-date.gator.js +15 -15
  26. package/dist/components/input/gator/input-file/input-file.gator.js +3 -3
  27. package/dist/components/input/gator/input-masked/input-masked.gator.js +1 -1
  28. package/dist/components/input/gator/input-phone/input-phone.gator.js +2 -2
  29. package/dist/components/input/gator/input-search/input-search.gator.js +2 -2
  30. package/dist/components/input/gator/input-text/input-text.gator.js +1 -1
  31. package/dist/components/input/gator/input-time/input-time.gator.js +2 -2
  32. package/dist/components/list/gator/list/list.gator.js +2 -2
  33. package/dist/components/list/gator/list-item/list-item.gator.js +6 -6
  34. package/dist/components/menu/base/gator/menu.gator.js +3 -3
  35. package/dist/components/menu/base/slds/menu.slds.js +2 -2
  36. package/dist/components/menu/menu-item/gator/menu-item.gator.js +2 -2
  37. package/dist/components/menu/menu-submenu/menu-submenu.js +1 -1
  38. package/dist/components/modal/gator/modal.gator.js +38 -39
  39. package/dist/components/page-header/gator/page-header.gator.js +2 -2
  40. package/dist/components/panel/gator/panel.gator.js +13 -13
  41. package/dist/components/panel/gator/panel.storybook-test.js +1 -1
  42. package/dist/components/pill/pill.slds.js +3 -3
  43. package/dist/components/popover/gator/popover.gator.js +10 -10
  44. package/dist/components/popover/popover.js +1 -1
  45. package/dist/components/radio/radio.gator.js +2 -2
  46. package/dist/components/radio-group/radio-group.gator.js +2 -2
  47. package/dist/components/selection-box-group/selection-box-group.gator.js +5 -5
  48. package/dist/components/selector/gator/selector.gator.js +2 -2
  49. package/dist/components/switch/gator/switch.gator.js +2 -2
  50. package/dist/components/tabs/gator/tabset/tabset.gator.js +3 -3
  51. package/dist/components/text-detail/gator/text-detail.gator.js +17 -18
  52. package/dist/components/time-picker/gator/time-picker.gator.js +19 -19
  53. package/dist/components/tooltip/tooltip.js +1 -1
  54. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-autosave@45.2.1/node_modules/@ckeditor/ckeditor5-autosave/dist/index.js +2 -2
  55. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-basic-styles@45.2.1/node_modules/@ckeditor/ckeditor5-basic-styles/dist/index.js +2 -2
  56. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-clipboard@45.2.1/node_modules/@ckeditor/ckeditor5-clipboard/dist/index.js +10 -10
  57. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-cloud-services@45.2.1/node_modules/@ckeditor/ckeditor5-cloud-services/dist/index.js +2 -2
  58. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-code-block@45.2.1/node_modules/@ckeditor/ckeditor5-code-block/dist/index.js +5 -5
  59. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-core@45.2.1/node_modules/@ckeditor/ckeditor5-core/dist/index.js +2 -2
  60. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-editor-classic@45.2.1/node_modules/@ckeditor/ckeditor5-editor-classic/dist/index.js +2 -2
  61. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-engine@45.2.1/node_modules/@ckeditor/ckeditor5-engine/dist/index.js +12 -12
  62. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-find-and-replace@45.2.1/node_modules/@ckeditor/ckeditor5-find-and-replace/dist/index.js +3 -3
  63. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-font@45.2.1/node_modules/@ckeditor/ckeditor5-font/dist/index.js +3 -3
  64. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-heading@45.2.1/node_modules/@ckeditor/ckeditor5-heading/dist/index.js +3 -3
  65. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-html-embed@45.2.1/node_modules/@ckeditor/ckeditor5-html-embed/dist/index.js +2 -2
  66. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-html-support@45.2.1/node_modules/@ckeditor/ckeditor5-html-support/dist/index.js +6 -6
  67. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-image@45.2.1/node_modules/@ckeditor/ckeditor5-image/dist/index.js +4 -4
  68. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-indent@45.2.1/node_modules/@ckeditor/ckeditor5-indent/dist/index.js +4 -4
  69. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-link@45.2.1/node_modules/@ckeditor/ckeditor5-link/dist/index.js +2 -2
  70. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-list@45.2.1/node_modules/@ckeditor/ckeditor5-list/dist/index.js +5 -5
  71. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-markdown-gfm@45.2.1/node_modules/@ckeditor/ckeditor5-markdown-gfm/dist/index.js +4 -4
  72. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-media-embed@45.2.1/node_modules/@ckeditor/ckeditor5-media-embed/dist/index.js +2 -2
  73. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-paragraph@45.2.1/node_modules/@ckeditor/ckeditor5-paragraph/dist/index.js +2 -2
  74. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-paste-from-office@45.2.1/node_modules/@ckeditor/ckeditor5-paste-from-office/dist/index.js +9 -9
  75. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-source-editing@45.2.1/node_modules/@ckeditor/ckeditor5-source-editing/dist/index.js +2 -2
  76. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-special-characters@45.2.1/node_modules/@ckeditor/ckeditor5-special-characters/dist/index.js +2 -2
  77. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-style@45.2.1/node_modules/@ckeditor/ckeditor5-style/dist/index.js +2 -2
  78. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-table@45.2.1/node_modules/@ckeditor/ckeditor5-table/dist/index.js +6 -6
  79. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-typing@45.2.1/node_modules/@ckeditor/ckeditor5-typing/dist/index.js +4 -4
  80. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-ui@45.2.1/node_modules/@ckeditor/ckeditor5-ui/dist/index.js +10 -10
  81. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-undo@45.2.1/node_modules/@ckeditor/ckeditor5-undo/dist/index.js +2 -2
  82. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-upload@45.2.1/node_modules/@ckeditor/ckeditor5-upload/dist/index.js +2 -2
  83. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-utils@45.2.1/node_modules/@ckeditor/ckeditor5-utils/dist/index.js +38 -38
  84. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-watchdog@45.2.1/node_modules/@ckeditor/ckeditor5-watchdog/dist/index.js +3 -3
  85. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-widget@45.2.1/node_modules/@ckeditor/ckeditor5-widget/dist/index.js +2 -2
  86. package/dist/node_modules/.pnpm/@deltablot_dropzone@7.3.1/node_modules/@deltablot/dropzone/dist/dropzone.js +1 -1
  87. package/dist/node_modules/.pnpm/@fastify_busboy@2.1.1/node_modules/@fastify/busboy/lib/main.js +1 -1
  88. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.4/node_modules/@figma/code-connect/dist/common/fetch.js +1 -0
  89. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.4/node_modules/@figma/code-connect/dist/connect/figma_rest_api.js +1 -0
  90. package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/connect/helpers.js +1 -1
  91. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.4/node_modules/@figma/code-connect/package.json.js +1 -0
  92. package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.2/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +1 -1
  93. package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js +2 -2
  94. package/dist/node_modules/.pnpm/@storybook_core@8.6.14_prettier@3.6.2_storybook@8.6.14_prettier@3.6.2_/node_modules/@storybook/core/dist/channels/index.js +9 -9
  95. package/dist/node_modules/.pnpm/@storybook_core@8.6.14_prettier@3.6.2_storybook@8.6.14_prettier@3.6.2_/node_modules/@storybook/core/dist/csf/index.js +1 -1
  96. package/dist/node_modules/.pnpm/@storybook_core@8.6.14_prettier@3.6.2_storybook@8.6.14_prettier@3.6.2_/node_modules/@storybook/core/dist/preview-api/index.js +22 -22
  97. package/dist/node_modules/.pnpm/@storybook_instrumenter@8.6.14_storybook@8.6.14_prettier@3.6.2_/node_modules/@storybook/instrumenter/dist/index.js +36 -36
  98. package/dist/node_modules/.pnpm/@storybook_test@8.6.14_storybook@8.6.14_prettier@3.6.2_/node_modules/@storybook/test/dist/index.js +111 -111
  99. package/dist/node_modules/.pnpm/@vitest_browser@3.2.4_msw@2.7.3_@types_node@24.0.10_typescript@5.8.3__playwright@1.53.2_77c47ac19cbe97978028e1e5ac862536/node_modules/@vitest/browser/context.js +1 -0
  100. package/dist/node_modules/.pnpm/@vitest_expect@3.2.4/node_modules/@vitest/expect/dist/index.js +8 -8
  101. package/dist/node_modules/.pnpm/@vitest_pretty-format@3.2.4/node_modules/@vitest/pretty-format/dist/index.js +2 -2
  102. package/dist/node_modules/.pnpm/@vitest_runner@3.2.4/node_modules/@vitest/runner/dist/chunk-hooks.js +5 -5
  103. package/dist/node_modules/.pnpm/@vitest_snapshot@3.2.4/node_modules/@vitest/snapshot/dist/index.js +11 -11
  104. package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/diff.js +21 -21
  105. package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/error.js +2 -2
  106. package/dist/node_modules/.pnpm/axe-core@4.10.3/node_modules/axe-core/axe.js +4 -4
  107. package/dist/node_modules/.pnpm/chai@5.2.0/node_modules/chai/chai.js +3 -3
  108. package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/_internal/isPrototype.js +1 -1
  109. package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.js +1 -1
  110. package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/object/get.js +1 -1
  111. package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/object/unset.js +1 -1
  112. package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/predicate/isPlainObject.js +1 -1
  113. package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/function/debounce.js +1 -1
  114. package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/object/cloneDeepWith.js +1 -1
  115. package/dist/node_modules/.pnpm/lit-element@4.2.0/node_modules/lit-element/lit-element.js +2 -2
  116. package/dist/node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/async-directive.js +1 -1
  117. package/dist/node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/class-map.js +2 -2
  118. package/dist/node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/ref.js +2 -2
  119. package/dist/node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/lit-html.js +3 -3
  120. package/dist/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js +1 -1
  121. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/cache/cache.js +1 -1
  122. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/cache/cachestorage.js +1 -1
  123. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/cookies/parse.js +1 -1
  124. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/constants.js +1 -1
  125. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/headers.js +1 -1
  126. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/index.js +1 -1
  127. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/request.js +1 -1
  128. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/response.js +1 -1
  129. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/util.js +2 -2
  130. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/webidl.js +1 -1
  131. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/connection.js +1 -1
  132. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/events.js +1 -1
  133. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/frame.js +1 -1
  134. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/receiver.js +1 -1
  135. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/util.js +1 -1
  136. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/websocket.js +1 -1
  137. package/dist/node_modules/.pnpm/vitest@3.2.4_@types_debug@4.1.12_@types_node@24.0.10_@vitest_browser@3.2.4_@vitest_ui@3_8c34ee540b1f52c214debce201d1e515/node_modules/vitest/dist/chunks/utils.XdZDrNZV.js +1 -1
  138. package/dist/node_modules/.pnpm/vitest@3.2.4_@types_debug@4.1.12_@types_node@24.0.10_@vitest_browser@3.2.4_@vitest_ui@3_8c34ee540b1f52c214debce201d1e515/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js +8 -8
  139. package/dist/packages/web-components/src/components/button/gator/button.gator.scss.js +1 -1
  140. package/dist/packages/web-components/src/components/chip/gator/chip.gator.scss.js +1 -1
  141. package/dist/packages/web-components/src/components/modal/gator/modal.gator.scss.js +1 -1
  142. package/dist/packages/web-components/src/components/switch/gator/switch.gator.scss.js +1 -1
  143. package/dist/packages/web-components/src/components/text-detail/gator/text-detail.gator.scss.js +1 -1
  144. package/dist/packages/web-components/src/index.slds.scss.js +1 -1
  145. package/dist/types/components/modal/gator/modal.gator.d.ts +1 -1
  146. package/dist/types/components/text-detail/gator/text-detail.gator.d.ts +4 -2
  147. package/dist/utils/accessibility-utils.js +1 -1
  148. package/dist/utils/datatestid-utils.js +1 -1
  149. package/dist/utils/lightdom-utils.js +1 -1
  150. package/dist/utils/vitest-a11y-utils.js +1 -1
  151. package/dist/utils/vitest-utils.js +1 -1
  152. package/package.json +10 -10
  153. package/web-types.json +2 -3
  154. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.3/node_modules/@figma/code-connect/dist/common/fetch.js +0 -1
  155. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.3/node_modules/@figma/code-connect/dist/connect/figma_rest_api.js +0 -1
  156. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.3/node_modules/@figma/code-connect/package.json.js +0 -1
  157. package/dist/node_modules/.pnpm/@vitest_browser@3.2.4_msw@2.7.3_@types_node@24.0.10_typescript@5.8.3__playwright@1.53.1_5fd2997ee9a97429a51e07bc2023c338/node_modules/@vitest/browser/context.js +0 -1
  158. /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/client/external.js +0 -0
  159. /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/client/figma_client.js +0 -0
  160. /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/common/logging.js +0 -0
  161. /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/common/updates.js +0 -0
  162. /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/connect/external_types.js +0 -0
  163. /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/connect/index_common.js +0 -0
  164. /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/html/external.js +0 -0
  165. /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/html/index_html.js +0 -0
  166. /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/html/template_literal.js +0 -0
  167. /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/react/external.js +0 -0
  168. /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/react/index_react.js +0 -0
@@ -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
+ import{Plugin as u,Command as _}from"../../../../../@ckeditor_ckeditor5-core@45.2.1/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{transformSets as B,NoOperation as b}from"../../../../../@ckeditor_ckeditor5-engine@45.2.1/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";import{ButtonView as y,MenuBarMenuListItemButtonView as R}from"../../../../../@ckeditor_ckeditor5-ui@45.2.1/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{IconUndo as f,IconRedo as p}from"../../../../../@ckeditor_ckeditor5-icons@45.2.1/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
- */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};
4
+ */class g extends _{_stack=[];_createdBatches=new WeakSet;constructor(t){super(t),this.refresh(),this._isEnabledBasedOnSelection=!1,this.listenTo(t.data,"set",(e,o)=>{o[1]={...o[1]};const s=o[1];s.batchType||(s.batchType={isUndoable:!1})},{priority:"high"}),this.listenTo(t.data,"set",(e,o)=>{o[1].batchType.isUndoable||this.clearStack()})}refresh(){this.isEnabled=this._stack.length>0}get createdBatches(){return this._createdBatches}addBatch(t){const e=this.editor.model.document.selection,o={ranges:e.hasOwnRange?Array.from(e.getRanges()):[],isBackward:e.isBackward};this._stack.push({batch:t,selection:o}),this.refresh()}clearStack(){this._stack=[],this.refresh()}_restoreSelection(t,e,o){const s=this.editor.model,i=s.document,n=[],d=t.map(r=>r.getTransformedByOperations(o)),h=d.flat();for(const r of d){const l=r.filter(c=>c.root!=i.graveyard).filter(c=>!C(c,h));l.length&&(k(l),n.push(l[0]))}n.length&&s.change(r=>{r.setSelection(n,{backward:e})})}_undo(t,e){const o=this.editor.model,s=o.document;this._createdBatches.add(e);const i=t.operations.slice().filter(n=>n.isDocumentOperation);i.reverse();for(const n of i){const d=n.baseVersion+1,h=Array.from(s.history.getOperations(d)),l=B([n.getReversed()],h,{useRelations:!0,document:this.editor.model.document,forceWeakRemove:!0}).operationsA;for(let c of l){const m=c.affectedSelectable;m&&!o.canEditAt(m)&&(c=new b(c.baseVersion)),e.addOperation(c),o.applyOperation(c),s.history.setOperationAsUndone(n,c)}}}}function k(a){a.sort((t,e)=>t.start.isBefore(e.start)?-1:1);for(let t=1;t<a.length;t++){const o=a[t-1].getJoined(a[t],!0);o&&(t--,a.splice(t,2,o))}}function C(a,t){return t.some(e=>e!==a&&e.containsRange(a,!0))}class T extends g{execute(t=null){const e=t?this._stack.findIndex(i=>i.batch==t):this._stack.length-1,o=this._stack.splice(e,1)[0],s=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(s,()=>{this._undo(o.batch,s);const i=this.editor.model.document.history.getOperations(o.batch.baseVersion);this._restoreSelection(o.selection.ranges,o.selection.isBackward,i)}),this.fire("revert",o.batch,s),this.refresh()}}class U extends g{execute(){const t=this._stack.pop(),e=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(e,()=>{const s=t.batch.operations[t.batch.operations.length-1].baseVersion+1,i=this.editor.model.document.history.getOperations(s);this._restoreSelection(t.selection.ranges,t.selection.isBackward,i),this._undo(t.batch,e)}),this.refresh()}}class O extends u{_undoCommand;_redoCommand;_batchRegistry=new WeakSet;static get pluginName(){return"UndoEditing"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=t.t;this._undoCommand=new T(t),this._redoCommand=new U(t),t.commands.add("undo",this._undoCommand),t.commands.add("redo",this._redoCommand),this.listenTo(t.model,"applyOperation",(o,s)=>{const i=s[0];if(!i.isDocumentOperation)return;const n=i.batch,d=this._redoCommand.createdBatches.has(n),h=this._undoCommand.createdBatches.has(n);this._batchRegistry.has(n)||(this._batchRegistry.add(n),n.isUndoable&&(d?this._undoCommand.addBatch(n):h||(this._undoCommand.addBatch(n),this._redoCommand.clearStack())))},{priority:"highest"}),this.listenTo(this._undoCommand,"revert",(o,s,i)=>{this._redoCommand.addBatch(i)}),t.keystrokes.set("CTRL+Z","undo"),t.keystrokes.set("CTRL+Y","redo"),t.keystrokes.set("CTRL+SHIFT+Z","redo"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:e("Undo"),keystroke:"CTRL+Z"},{label:e("Redo"),keystroke:[["CTRL+Y"],["CTRL+SHIFT+Z"]]}]})}}class w extends u{static get pluginName(){return"UndoUI"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=t.locale,o=t.t,s=e.uiLanguageDirection=="ltr"?f:p,i=e.uiLanguageDirection=="ltr"?p:f;this._addButtonsToFactory("undo",o("Undo"),"CTRL+Z",s),this._addButtonsToFactory("redo",o("Redo"),"CTRL+Y",i)}_addButtonsToFactory(t,e,o,s){const i=this.editor;i.ui.componentFactory.add(t,()=>{const n=this._createButton(y,t,e,o,s);return n.set({tooltip:!0}),n}),i.ui.componentFactory.add("menuBar:"+t,()=>this._createButton(R,t,e,o,s))}_createButton(t,e,o,s,i){const n=this.editor,d=n.locale,h=n.commands.get(e),r=new t(d);return r.set({label:o,icon:i,keystroke:s}),r.bind("isEnabled").to(h,"isEnabled"),this.listenTo(r,"execute",()=>{n.execute(e),n.editing.view.focus()}),r}}class L extends u{static get requires(){return[O,w]}static get pluginName(){return"Undo"}static get isOfficialPlugin(){return!0}}export{L as Undo,O as UndoEditing,w 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
+ import{Plugin as h,PendingActions as o}from"../../../../../@ckeditor_ckeditor5-core@45.2.1/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{Collection as u,logWarning as c,ObservableMixin as p,uid as g,CKEditorError as d}from"../../../../../@ckeditor_ckeditor5-utils@45.2.1/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
- */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};
4
+ */class _ extends p(){total;_reader;_data;constructor(){super();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 a=t.result;this._data=a,r(a)},t.onerror=()=>{s("error")},t.onabort=()=>{s("aborted")},this._reader.readAsDataURL(e)})}abort(){this._reader.abort()}}class n extends h{loaders=new u;_loadersMap=new Map;_pendingAction=null;static get pluginName(){return"FileRepository"}static get isOfficialPlugin(){return!0}static get requires(){return[o]}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 c("filerepository-no-upload-adapter"),null;const t=new l(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 l?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(o);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 l extends p(){id;_filePromiseWrapper;_adapter;_reader;constructor(e,t){super(),this.id=g(),this._filePromiseWrapper=this._createFilePromiseWrapper(e),this._adapter=t(this),this._reader=new _,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 d("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 d("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(a=>{t.isFulfilled=!0,r(a)}).catch(a=>{t.isFulfilled=!0,s(a)})}),t}}class b extends h{static get requires(){return[n]}static get pluginName(){return"Base64UploadAdapter"}static get isOfficialPlugin(){return!0}init(){this.editor.plugins.get(n).createUploadAdapter=e=>new f(e)}}let f=class{loader;reader;constructor(e){this.loader=e}upload(){return new Promise((e,t)=>{const r=this.reader=new window.FileReader;r.addEventListener("load",()=>{e({default:r.result})}),r.addEventListener("error",s=>{t(s)}),r.addEventListener("abort",()=>{t()}),this.loader.file.then(s=>{r.readAsDataURL(s)})})}abort(){this.reader.abort()}};export{b as Base64UploadAdapter,n as FileRepository};
@@ -1,112 +1,112 @@
1
- var Gt=Object.defineProperty;var qt=(t,n,e)=>n in t?Gt(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e;var u=(t,n,e)=>qt(t,typeof n!="symbol"?n+"":n,e);import{isObject as Yt}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/predicate/isObject.js";import{isString as ot}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/predicate/isString.js";import{isFunction as rt}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/predicate/isFunction.js";import{isElement as Lt}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/predicate/isElement.js";import{isPlainObject as k}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/predicate/isPlainObject.js";import{cloneDeepWith as zt}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.js";import{merge as Xt}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/object/merge.js";/**
1
+ import{isObject as Ut}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/predicate/isObject.js";import{isString as ot}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/predicate/isString.js";import{isFunction as st}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/predicate/isFunction.js";import{isElement as xt}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/predicate/isElement.js";import{isPlainObject as k}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/predicate/isPlainObject.js";import{cloneDeepWith as $t}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.js";import{merge as Gt}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/object/merge.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
  *//**
5
5
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
6
6
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
7
- */let G;try{G={window,document}}catch{/* istanbul ignore next -- @preserve */G={window:{},document:{}}}var T=G;function Jt(){try{return navigator.userAgent.toLowerCase()}catch{return""}}const A=Jt(),F={isMac:At(A),isWindows:Qt(A),isGecko:Zt(A),isSafari:te(A),isiOS:ee(A),isAndroid:ne(A),isBlink:ie(A),get isMediaForcedColors(){return se()}};function At(t){return t.indexOf("macintosh")>-1}function Qt(t){return t.indexOf("windows")>-1}function Zt(t){return!!t.match(/gecko\/\d+/)}function te(t){return t.indexOf(" applewebkit/")>-1&&t.indexOf("chrome")===-1}function ee(t){return!!t.match(/iphone|ipad/i)||At(t)&&navigator.maxTouchPoints>0}function ne(t){return t.indexOf("android")>-1}function ie(t){return t.indexOf("chrome/")>-1&&t.indexOf("edge/")<0}function se(){return T.window.matchMedia?T.window.matchMedia("(forced-colors: active)").matches:!1}/**
7
+ */let $;try{$={window,document}}catch{/* istanbul ignore next -- @preserve */$={window:{},document:{}}}var w=$;function qt(){try{return navigator.userAgent.toLowerCase()}catch{return""}}const x=qt(),A={isMac:It(x),isWindows:Yt(x),isGecko:Xt(x),isSafari:Jt(x),isiOS:Qt(x),isAndroid:Zt(x),isBlink:zt(x),get isMediaForcedColors(){return te()}};function It(e){return e.indexOf("macintosh")>-1}function Yt(e){return e.indexOf("windows")>-1}function Xt(e){return!!e.match(/gecko\/\d+/)}function Jt(e){return e.indexOf(" applewebkit/")>-1&&e.indexOf("chrome")===-1}function Qt(e){return!!e.match(/iphone|ipad/i)||It(e)&&navigator.maxTouchPoints>0}function Zt(e){return e.indexOf("android")>-1}function zt(e){return e.indexOf("chrome/")>-1&&e.indexOf("edge/")<0}function te(){return w.window.matchMedia?w.window.matchMedia("(forced-colors: active)").matches:!1}/**
8
8
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
9
9
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
10
- */function oe(t,n,e,i){e=e||function(a,l){return a===l};const s=Array.isArray(t)?t:Array.prototype.slice.call(t),o=Array.isArray(n)?n:Array.prototype.slice.call(n),r=re(s,o,e);return i?ce(r,o.length):le(o,r)}function re(t,n,e){const i=lt(t,n,e);if(i===-1)return{firstIndex:-1,lastIndexOld:-1,lastIndexNew:-1};const s=ct(t,i),o=ct(n,i),r=lt(s,o,e),c=t.length-r,a=n.length-r;return{firstIndex:i,lastIndexOld:c,lastIndexNew:a}}function lt(t,n,e){for(let i=0;i<Math.max(t.length,n.length);i++)if(t[i]===void 0||n[i]===void 0||!e(t[i],n[i]))return i;return-1}function ct(t,n){return t.slice(n).reverse()}function le(t,n){const e=[],{firstIndex:i,lastIndexOld:s,lastIndexNew:o}=n;return o-i>0&&e.push({index:i,type:"insert",values:t.slice(i,o)}),s-i>0&&e.push({index:i+(o-i),type:"delete",howMany:s-i}),e}function ce(t,n){const{firstIndex:e,lastIndexOld:i,lastIndexNew:s}=t;if(e===-1)return Array(n).fill("equal");let o=[];return e>0&&(o=o.concat(Array(e).fill("equal"))),s-e>0&&(o=o.concat(Array(s-e).fill("insert"))),i-e>0&&(o=o.concat(Array(i-e).fill("delete"))),s<n&&(o=o.concat(Array(n-s).fill("equal"))),o}function vt(t,n,e){e=e||function(b,x){return b===x};const i=t.length,s=n.length;if(i>200||s>200||i+s>300)return vt.fastDiff(t,n,e,!0);let o,r;if(s<i){const b=t;t=n,n=b,o="delete",r="insert"}else o="insert",r="delete";const c=t.length,a=n.length,l=a-c,f={},d={};function h(b){const x=(d[b-1]!==void 0?d[b-1]:-1)+1,C=d[b+1]!==void 0?d[b+1]:-1,st=x>C?-1:1;f[b+st]&&(f[b]=f[b+st].slice(0)),f[b]||(f[b]=[]),f[b].push(x>C?o:r);let M=Math.max(x,C),W=M-b;for(;W<c&&M<a&&e(t[W],n[M]);)W++,M++,f[b].push("equal");return M}let _=0,m;do{for(m=-_;m<l;m++)d[m]=h(m);for(m=l+_;m>l;m--)d[m]=h(m);d[l]=h(l),_++}while(d[l]!==a);return f[l].slice(1)}vt.fastDiff=oe;/**
10
+ */function ee(e,t,n,i){n=n||function(c,a){return c===a};const o=Array.isArray(e)?e:Array.prototype.slice.call(e),s=Array.isArray(t)?t:Array.prototype.slice.call(t),r=ne(o,s,n);return i?oe(r,s.length):ie(s,r)}function ne(e,t,n){const i=rt(e,t,n);if(i===-1)return{firstIndex:-1,lastIndexOld:-1,lastIndexNew:-1};const o=lt(e,i),s=lt(t,i),r=rt(o,s,n),l=e.length-r,c=t.length-r;return{firstIndex:i,lastIndexOld:l,lastIndexNew:c}}function rt(e,t,n){for(let i=0;i<Math.max(e.length,t.length);i++)if(e[i]===void 0||t[i]===void 0||!n(e[i],t[i]))return i;return-1}function lt(e,t){return e.slice(t).reverse()}function ie(e,t){const n=[],{firstIndex:i,lastIndexOld:o,lastIndexNew:s}=t;return s-i>0&&n.push({index:i,type:"insert",values:e.slice(i,s)}),o-i>0&&n.push({index:i+(s-i),type:"delete",howMany:o-i}),n}function oe(e,t){const{firstIndex:n,lastIndexOld:i,lastIndexNew:o}=e;if(n===-1)return Array(t).fill("equal");let s=[];return n>0&&(s=s.concat(Array(n).fill("equal"))),o-n>0&&(s=s.concat(Array(o-n).fill("insert"))),i-n>0&&(s=s.concat(Array(i-n).fill("delete"))),o<t&&(s=s.concat(Array(t-o).fill("equal"))),s}function Lt(e,t,n){n=n||function(p,F){return p===F};const i=e.length,o=t.length;if(i>200||o>200||i+o>300)return Lt.fastDiff(e,t,n,!0);let s,r;if(o<i){const p=e;e=t,t=p,s="delete",r="insert"}else s="insert",r="delete";const l=e.length,c=t.length,a=c-l,f={},u={};function _(p){const F=(u[p-1]!==void 0?u[p-1]:-1)+1,j=u[p+1]!==void 0?u[p+1]:-1,it=F>j?-1:1;f[p+it]&&(f[p]=f[p+it].slice(0)),f[p]||(f[p]=[]),f[p].push(F>j?s:r);let M=Math.max(F,j),O=M-p;for(;O<l&&M<c&&n(e[O],t[M]);)O++,M++,f[p].push("equal");return M}let C=0,y;do{for(y=-C;y<a;y++)u[y]=_(y);for(y=a+C;y>a;y--)u[y]=_(y);u[a]=_(a),C++}while(u[a]!==c);return f[a].slice(1)}Lt.fastDiff=ee;/**
11
11
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
12
12
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
13
- */function at(){return function t(){t.called=!0}}class q{constructor(n,e){u(this,"source");u(this,"name");u(this,"path");u(this,"stop");u(this,"off");u(this,"return");this.source=n,this.name=e,this.path=[],this.stop=at(),this.off=at()}}/**
13
+ */function ct(){return function e(){e.called=!0}}class G{source;name;path;stop;off;return;constructor(t,n){this.source=t,this.name=n,this.path=[],this.stop=ct(),this.off=ct()}}/**
14
14
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
15
15
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
16
- */const E=new Array(256).fill("").map((t,n)=>("0"+n.toString(16)).slice(-2));function Q(){const[t,n,e,i]=crypto.getRandomValues(new Uint32Array(4));return"e"+E[t>>0&255]+E[t>>8&255]+E[t>>16&255]+E[t>>24&255]+E[n>>0&255]+E[n>>8&255]+E[n>>16&255]+E[n>>24&255]+E[e>>0&255]+E[e>>8&255]+E[e>>16&255]+E[e>>24&255]+E[i>>0&255]+E[i>>8&255]+E[i>>16&255]+E[i>>24&255]}/**
16
+ */const b=new Array(256).fill("").map((e,t)=>("0"+t.toString(16)).slice(-2));function Q(){const[e,t,n,i]=crypto.getRandomValues(new Uint32Array(4));return"e"+b[e>>0&255]+b[e>>8&255]+b[e>>16&255]+b[e>>24&255]+b[t>>0&255]+b[t>>8&255]+b[t>>16&255]+b[t>>24&255]+b[n>>0&255]+b[n>>8&255]+b[n>>16&255]+b[n>>24&255]+b[i>>0&255]+b[i>>8&255]+b[i>>16&255]+b[i>>24&255]}/**
17
17
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
18
18
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
19
- */const Y={get(t="normal"){return typeof t!="number"?this[t]||this.normal:t},highest:1e5,high:1e3,normal:0,low:-1e3,lowest:-1e5};function ae(t,n){const e=Y.get(n.priority);let i=0,s=t.length;for(;i<s;){const o=i+s>>1;Y.get(t[o].priority)<e?s=o:i=o+1}t.splice(i,0,n)}/**
19
+ */const q={get(e="normal"){return typeof e!="number"?this[e]||this.normal:e},highest:1e5,high:1e3,normal:0,low:-1e3,lowest:-1e5};function se(e,t){const n=q.get(t.priority);let i=0,o=e.length;for(;i<o;){const s=i+o>>1;q.get(e[s].priority)<n?o=s:i=s+1}e.splice(i,0,t)}/**
20
20
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
21
21
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
22
- */const fe="https://ckeditor.com/docs/ckeditor5/latest/support/error-codes.html";class p extends Error{constructor(e,i,s){super(ue(e,s));u(this,"context");u(this,"data");this.name="CKEditorError",this.context=i,this.data=s}is(e){return e==="CKEditorError"}static rethrowUnexpectedError(e,i){if(e.is&&e.is("CKEditorError"))throw e;const s=new p(e.message,i);throw s.stack=e.stack,s}}function bn(t,n){console.warn(...Rt(t,n))}function _n(t,n){console.error(...Rt(t,n))}function Ct(t){return`
23
- Read more: ${fe}#error-${t}`}function ue(t,n){const e=new WeakSet,s=n?` ${JSON.stringify(n,(r,c)=>{if(typeof c=="object"&&c!==null){if(e.has(c))return`[object ${c.constructor.name}]`;e.add(c)}return c})}`:"",o=Ct(t);return t+s+o}function Rt(t,n){const e=Ct(t);return n?[t,n,e]:[t,e]}const de="45.2.1",wn=new Date(2025,5,24);/* istanbul ignore next -- @preserve */if(globalThis.CKEDITOR_VERSION)throw new p("ckeditor-duplicated-modules",null);globalThis.CKEDITOR_VERSION=de;const R=Symbol("listeningTo"),z=Symbol("emitterId"),I=Symbol("delegations"),Ft=L(Object);function L(t){if(!t)return Ft;class n extends t{on(i,s,o){this.listenTo(this,i,s,o)}once(i,s,o){let r=!1;const c=(a,...l)=>{r||(r=!0,a.off(),s.call(this,a,...l))};this.listenTo(this,i,c,o)}off(i,s){this.stopListening(this,i,s)}listenTo(i,s,o,r={}){let c,a;this[R]||(this[R]={});const l=this[R];K(i)||Mt(i);const f=K(i);(c=l[f])||(c=l[f]={emitter:i,callbacks:{}}),(a=c.callbacks[s])||(a=c.callbacks[s]=[]),a.push(o),be(this,i,s,o,r)}stopListening(i,s,o){const r=this[R];let c=i&&K(i);const a=r&&c?r[c]:void 0,l=a&&s?a.callbacks[s]:void 0;if(!(!r||i&&!a||s&&!l))if(o)H(this,i,s,o),l.indexOf(o)!==-1&&(l.length===1?delete a.callbacks[s]:H(this,i,s,o));else if(l){for(;o=l.pop();)H(this,i,s,o);delete a.callbacks[s]}else if(a){for(s in a.callbacks)this.stopListening(i,s);delete r[c]}else{for(c in r)this.stopListening(r[c].emitter);delete this[R]}}fire(i,...s){try{const o=i instanceof q?i:new q(this,i),r=o.name;let c=me(this,r);if(o.path.push(this),c){c=c.slice();for(let l=0;l<c.length;l++){const f=c[l].callback;if(f.call(this,o,...s),o.off.called&&(delete o.off.called,this._removeEventListener(r,f)),o.stop.called)break}}const a=this[I];if(a){const l=a.get(r),f=a.get("*");l&&ft(l,o,s),f&&ft(f,o,s)}return o.return}catch(o){/* istanbul ignore next -- @preserve */p.rethrowUnexpectedError(o,this)}}delegate(...i){return{to:(s,o)=>{this[I]||(this[I]=new Map),i.forEach(r=>{const c=this[I].get(r);c?c.set(s,o):this[I].set(r,new Map([[s,o]]))})}}}stopDelegating(i,s){if(this[I])if(!i)this[I].clear();else if(!s)this[I].delete(i);else{const o=this[I].get(i);o&&o.delete(s)}}_addEventListener(i,s,o){ge(this,i);const r=X(this,i),c=Y.get(o.priority),a={callback:s,priority:c};for(const l of r)ae(l,a)}_removeEventListener(i,s){const o=X(this,i);for(const r of o)for(let c=0;c<r.length;c++)r[c].callback==s&&(r.splice(c,1),c--)}}return n}["on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach(t=>{L[t]=Ft.prototype[t]});function he(t,n){const e=t[R];return e&&e[n]?e[n].emitter:null}function Mt(t,n){t[z]||(t[z]=n||Q())}function K(t){return t[z]}function kt(t){return t._events||Object.defineProperty(t,"_events",{value:{}}),t._events}function pe(){return{callbacks:[],childEvents:[]}}function ge(t,n){const e=kt(t);if(e[n])return;let i=n,s=null;const o=[];for(;i!==""&&!e[i];)e[i]=pe(),o.push(e[i]),s&&e[i].childEvents.push(s),s=i,i=i.substr(0,i.lastIndexOf(":"));if(i!==""){for(const r of o)r.callbacks=e[i].callbacks.slice();e[i].childEvents.push(s)}}function X(t,n){const e=kt(t)[n];if(!e)return[];let i=[e.callbacks];for(let s=0;s<e.childEvents.length;s++){const o=X(t,e.childEvents[s]);i=i.concat(o)}return i}function me(t,n){if(!t._events)return null;let e=n;do{const i=t._events[e];if(i&&i.callbacks&&i.callbacks.length)return i.callbacks;const s=e.lastIndexOf(":");e=s>-1?e.substring(0,s):""}while(e);return null}function ft(t,n,e){for(let[i,s]of t){s?typeof s=="function"&&(s=s(n.name)):s=n.name;const o=new q(n.source,s);o.path=[...n.path],i.fire(o,...e)}}function be(t,n,e,i,s){n._addEventListener?n._addEventListener(e,i,s):t._addEventListener.call(n,e,i,s)}function H(t,n,e,i){n._removeEventListener?n._removeEventListener(e,i):t._removeEventListener.call(n,e,i)}const S=Symbol("observableProperties"),P=Symbol("boundObservables"),V=Symbol("boundProperties"),v=Symbol("decoratedMethods"),ut=Symbol("decoratedOriginal"),St=Z(L());function Z(t){var e,i,s,o,r;if(!t)return St;class n extends(r=t,o=S,s=v,i=V,e=P,r){constructor(){super(...arguments);u(this,o);u(this,s);u(this,i);u(this,e)}set(l,f){if(Yt(l)){Object.keys(l).forEach(h=>{this.set(h,l[h])},this);return}U(this);const d=this[S];if(l in this&&!d.has(l))throw new p("observable-set-cannot-override",this);Object.defineProperty(this,l,{enumerable:!0,configurable:!0,get(){return d.get(l)},set(h){const _=d.get(l);let m=this.fire(`set:${l}`,l,h,_);m===void 0&&(m=h),(_!==m||!d.has(l))&&(d.set(l,m),this.fire(`change:${l}`,l,m,_))}}),this[l]=f}bind(...l){if(!l.length||!dt(l))throw new p("observable-bind-wrong-properties",this);if(new Set(l).size!==l.length)throw new p("observable-bind-duplicate-properties",this);U(this);const f=this[V];l.forEach(h=>{if(f.has(h))throw new p("observable-bind-rebind",this)});const d=new Map;return l.forEach(h=>{const _={property:h,to:[]};f.set(h,_),d.set(h,_)}),{to:_e,toMany:we,_observable:this,_bindProperties:l,_to:[],_bindings:d}}unbind(...l){if(!this[S])return;const f=this[V],d=this[P];if(l.length){if(!dt(l))throw new p("observable-unbind-wrong-properties",this);l.forEach(h=>{const _=f.get(h);_&&(_.to.forEach(([m,b])=>{const x=d.get(m),C=x[b];C.delete(_),C.size||delete x[b],Object.keys(x).length||(d.delete(m),this.stopListening(m,"change"))}),f.delete(h))})}else d.forEach((h,_)=>{this.stopListening(_,"change")}),d.clear(),f.clear()}decorate(l){U(this);const f=this[l];if(!f)throw new p("observablemixin-cannot-decorate-undefined",this,{object:this,methodName:l});this.on(l,(d,h)=>{d.return=f.apply(this,h)}),this[l]=function(...d){return this.fire(l,d)},this[l][ut]=f,this[v]||(this[v]=[]),this[v].push(l)}stopListening(l,f,d){if(!l&&this[v]){for(const h of this[v])this[h]=this[h][ut];delete this[v]}super.stopListening(l,f,d)}}return n}["set","bind","unbind","decorate","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach(t=>{Z[t]=St.prototype[t]});function U(t){t[S]||(Object.defineProperty(t,S,{value:new Map}),Object.defineProperty(t,P,{value:new Map}),Object.defineProperty(t,V,{value:new Map}))}function _e(...t){const n=Ee(...t),e=Array.from(this._bindings.keys()),i=e.length;if(!n.callback&&n.to.length>1)throw new p("observable-bind-to-no-callback",this);if(i>1&&n.callback)throw new p("observable-bind-to-extra-callback",this);n.to.forEach(s=>{if(s.properties.length&&s.properties.length!==i)throw new p("observable-bind-to-properties-length",this);s.properties.length||(s.properties=this._bindProperties)}),this._to=n.to,n.callback&&(this._bindings.get(e[0]).callback=n.callback),Ie(this._observable,this._to),xe(this),this._bindProperties.forEach(s=>{Vt(this._observable,s)})}function we(t,n,e){if(this._bindings.size>1)throw new p("observable-bind-to-many-not-one-binding",this);this.to(...ye(t,n),e)}function ye(t,n){const e=t.map(i=>[i,n]);return Array.prototype.concat.apply([],e)}function dt(t){return t.every(n=>typeof n=="string")}function Ee(...t){if(!t.length)throw new p("observable-bind-to-parse-error",null);const n={to:[]};let e;return typeof t[t.length-1]=="function"&&(n.callback=t.pop()),t.forEach(i=>{if(typeof i=="string")e.properties.push(i);else if(typeof i=="object")e={observable:i,properties:[]},n.to.push(e);else throw new p("observable-bind-to-parse-error",null)}),n}function Te(t,n,e,i){const s=t[P],o=s.get(e),r=o||{};r[i]||(r[i]=new Set),r[i].add(n),o||s.set(e,r)}function xe(t){let n;t._bindings.forEach((e,i)=>{t._to.forEach(s=>{n=s.properties[e.callback?0:t._bindProperties.indexOf(i)],e.to.push([s.observable,n]),Te(t._observable,e,s.observable,n)})})}function Vt(t,n){const i=t[V].get(n);let s;i.callback?s=i.callback.apply(t,i.to.map(o=>o[0][o[1]])):(s=i.to[0],s=s[0][s[1]]),Object.prototype.hasOwnProperty.call(t,n)?t[n]=s:t.set(n,s)}function Ie(t,n){n.forEach(e=>{const i=t[P];let s;i.get(e.observable)||t.listenTo(e.observable,"change",(o,r)=>{s=i.get(e.observable)[r],s&&s.forEach(c=>{Vt(t,c.property)})})})}/**
22
+ */const re="https://ckeditor.com/docs/ckeditor5/latest/support/error-codes.html";class d extends Error{context;data;constructor(t,n,i){super(le(t,i)),this.name="CKEditorError",this.context=n,this.data=i}is(t){return t==="CKEditorError"}static rethrowUnexpectedError(t,n){if(t.is&&t.is("CKEditorError"))throw t;const i=new d(t.message,n);throw i.stack=t.stack,i}}function dn(e,t){console.warn(...Ct(e,t))}function hn(e,t){console.error(...Ct(e,t))}function At(e){return`
23
+ Read more: ${re}#error-${e}`}function le(e,t){const n=new WeakSet,o=t?` ${JSON.stringify(t,(r,l)=>{if(typeof l=="object"&&l!==null){if(n.has(l))return`[object ${l.constructor.name}]`;n.add(l)}return l})}`:"",s=At(e);return e+o+s}function Ct(e,t){const n=At(e);return t?[e,t,n]:[e,n]}const ce="45.2.1",pn=new Date(2025,5,24);/* istanbul ignore next -- @preserve */if(globalThis.CKEDITOR_VERSION)throw new d("ckeditor-duplicated-modules",null);globalThis.CKEDITOR_VERSION=ce;const L=Symbol("listeningTo"),Y=Symbol("emitterId"),E=Symbol("delegations"),Ft=T(Object);function T(e){if(!e)return Ft;class t extends e{on(i,o,s){this.listenTo(this,i,o,s)}once(i,o,s){let r=!1;const l=(c,...a)=>{r||(r=!0,c.off(),o.call(this,c,...a))};this.listenTo(this,i,l,s)}off(i,o){this.stopListening(this,i,o)}listenTo(i,o,s,r={}){let l,c;this[L]||(this[L]={});const a=this[L];W(i)||Mt(i);const f=W(i);(l=a[f])||(l=a[f]={emitter:i,callbacks:{}}),(c=l.callbacks[o])||(c=l.callbacks[o]=[]),c.push(s),he(this,i,o,s,r)}stopListening(i,o,s){const r=this[L];let l=i&&W(i);const c=r&&l?r[l]:void 0,a=c&&o?c.callbacks[o]:void 0;if(!(!r||i&&!c||o&&!a))if(s)K(this,i,o,s),a.indexOf(s)!==-1&&(a.length===1?delete c.callbacks[o]:K(this,i,o,s));else if(a){for(;s=a.pop();)K(this,i,o,s);delete c.callbacks[o]}else if(c){for(o in c.callbacks)this.stopListening(i,o);delete r[l]}else{for(l in r)this.stopListening(r[l].emitter);delete this[L]}}fire(i,...o){try{const s=i instanceof G?i:new G(this,i),r=s.name;let l=de(this,r);if(s.path.push(this),l){l=l.slice();for(let a=0;a<l.length;a++){const f=l[a].callback;if(f.call(this,s,...o),s.off.called&&(delete s.off.called,this._removeEventListener(r,f)),s.stop.called)break}}const c=this[E];if(c){const a=c.get(r),f=c.get("*");a&&at(a,s,o),f&&at(f,s,o)}return s.return}catch(s){/* istanbul ignore next -- @preserve */d.rethrowUnexpectedError(s,this)}}delegate(...i){return{to:(o,s)=>{this[E]||(this[E]=new Map),i.forEach(r=>{const l=this[E].get(r);l?l.set(o,s):this[E].set(r,new Map([[o,s]]))})}}}stopDelegating(i,o){if(this[E])if(!i)this[E].clear();else if(!o)this[E].delete(i);else{const s=this[E].get(i);s&&s.delete(o)}}_addEventListener(i,o,s){ue(this,i);const r=X(this,i),l=q.get(s.priority),c={callback:o,priority:l};for(const a of r)se(a,c)}_removeEventListener(i,o){const s=X(this,i);for(const r of s)for(let l=0;l<r.length;l++)r[l].callback==o&&(r.splice(l,1),l--)}}return t}["on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach(e=>{T[e]=Ft.prototype[e]});function ae(e,t){const n=e[L];return n&&n[t]?n[t].emitter:null}function Mt(e,t){e[Y]||(e[Y]=t||Q())}function W(e){return e[Y]}function kt(e){return e._events||Object.defineProperty(e,"_events",{value:{}}),e._events}function fe(){return{callbacks:[],childEvents:[]}}function ue(e,t){const n=kt(e);if(n[t])return;let i=t,o=null;const s=[];for(;i!==""&&!n[i];)n[i]=fe(),s.push(n[i]),o&&n[i].childEvents.push(o),o=i,i=i.substr(0,i.lastIndexOf(":"));if(i!==""){for(const r of s)r.callbacks=n[i].callbacks.slice();n[i].childEvents.push(o)}}function X(e,t){const n=kt(e)[t];if(!n)return[];let i=[n.callbacks];for(let o=0;o<n.childEvents.length;o++){const s=X(e,n.childEvents[o]);i=i.concat(s)}return i}function de(e,t){if(!e._events)return null;let n=t;do{const i=e._events[n];if(i&&i.callbacks&&i.callbacks.length)return i.callbacks;const o=n.lastIndexOf(":");n=o>-1?n.substring(0,o):""}while(n);return null}function at(e,t,n){for(let[i,o]of e){o?typeof o=="function"&&(o=o(t.name)):o=t.name;const s=new G(t.source,o);s.path=[...t.path],i.fire(s,...n)}}function he(e,t,n,i,o){t._addEventListener?t._addEventListener(n,i,o):e._addEventListener.call(t,n,i,o)}function K(e,t,n,i){t._removeEventListener?t._removeEventListener(n,i):e._removeEventListener.call(t,n,i)}const v=Symbol("observableProperties"),V=Symbol("boundObservables"),S=Symbol("boundProperties"),I=Symbol("decoratedMethods"),ft=Symbol("decoratedOriginal"),vt=Z(T());function Z(e){if(!e)return vt;class t extends e{set(i,o){if(Ut(i)){Object.keys(i).forEach(r=>{this.set(r,i[r])},this);return}H(this);const s=this[v];if(i in this&&!s.has(i))throw new d("observable-set-cannot-override",this);Object.defineProperty(this,i,{enumerable:!0,configurable:!0,get(){return s.get(i)},set(r){const l=s.get(i);let c=this.fire(`set:${i}`,i,r,l);c===void 0&&(c=r),(l!==c||!s.has(i))&&(s.set(i,c),this.fire(`change:${i}`,i,c,l))}}),this[i]=o}bind(...i){if(!i.length||!ut(i))throw new d("observable-bind-wrong-properties",this);if(new Set(i).size!==i.length)throw new d("observable-bind-duplicate-properties",this);H(this);const o=this[S];i.forEach(r=>{if(o.has(r))throw new d("observable-bind-rebind",this)});const s=new Map;return i.forEach(r=>{const l={property:r,to:[]};o.set(r,l),s.set(r,l)}),{to:pe,toMany:ge,_observable:this,_bindProperties:i,_to:[],_bindings:s}}unbind(...i){if(!this[v])return;const o=this[S],s=this[V];if(i.length){if(!ut(i))throw new d("observable-unbind-wrong-properties",this);i.forEach(r=>{const l=o.get(r);l&&(l.to.forEach(([c,a])=>{const f=s.get(c),u=f[a];u.delete(l),u.size||delete f[a],Object.keys(f).length||(s.delete(c),this.stopListening(c,"change"))}),o.delete(r))})}else s.forEach((r,l)=>{this.stopListening(l,"change")}),s.clear(),o.clear()}decorate(i){H(this);const o=this[i];if(!o)throw new d("observablemixin-cannot-decorate-undefined",this,{object:this,methodName:i});this.on(i,(s,r)=>{s.return=o.apply(this,r)}),this[i]=function(...s){return this.fire(i,s)},this[i][ft]=o,this[I]||(this[I]=[]),this[I].push(i)}stopListening(i,o,s){if(!i&&this[I]){for(const r of this[I])this[r]=this[r][ft];delete this[I]}super.stopListening(i,o,s)}[v];[I];[S];[V]}return t}["set","bind","unbind","decorate","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach(e=>{Z[e]=vt.prototype[e]});function H(e){e[v]||(Object.defineProperty(e,v,{value:new Map}),Object.defineProperty(e,V,{value:new Map}),Object.defineProperty(e,S,{value:new Map}))}function pe(...e){const t=be(...e),n=Array.from(this._bindings.keys()),i=n.length;if(!t.callback&&t.to.length>1)throw new d("observable-bind-to-no-callback",this);if(i>1&&t.callback)throw new d("observable-bind-to-extra-callback",this);t.to.forEach(o=>{if(o.properties.length&&o.properties.length!==i)throw new d("observable-bind-to-properties-length",this);o.properties.length||(o.properties=this._bindProperties)}),this._to=t.to,t.callback&&(this._bindings.get(n[0]).callback=t.callback),ye(this._observable,this._to),we(this),this._bindProperties.forEach(o=>{St(this._observable,o)})}function ge(e,t,n){if(this._bindings.size>1)throw new d("observable-bind-to-many-not-one-binding",this);this.to(...me(e,t),n)}function me(e,t){const n=e.map(i=>[i,t]);return Array.prototype.concat.apply([],n)}function ut(e){return e.every(t=>typeof t=="string")}function be(...e){if(!e.length)throw new d("observable-bind-to-parse-error",null);const t={to:[]};let n;return typeof e[e.length-1]=="function"&&(t.callback=e.pop()),e.forEach(i=>{if(typeof i=="string")n.properties.push(i);else if(typeof i=="object")n={observable:i,properties:[]},t.to.push(n);else throw new d("observable-bind-to-parse-error",null)}),t}function _e(e,t,n,i){const o=e[V],s=o.get(n),r=s||{};r[i]||(r[i]=new Set),r[i].add(t),s||o.set(n,r)}function we(e){let t;e._bindings.forEach((n,i)=>{e._to.forEach(o=>{t=o.properties[n.callback?0:e._bindProperties.indexOf(i)],n.to.push([o.observable,t]),_e(e._observable,n,o.observable,t)})})}function St(e,t){const i=e[S].get(t);let o;i.callback?o=i.callback.apply(e,i.to.map(s=>s[0][s[1]])):(o=i.to[0],o=o[0][o[1]]),Object.prototype.hasOwnProperty.call(e,t)?e[t]=o:e.set(t,o)}function ye(e,t){t.forEach(n=>{const i=e[V];let o;i.get(n.observable)||e.listenTo(n.observable,"change",(s,r)=>{o=i.get(n.observable)[r],o&&o.forEach(l=>{St(e,l.property)})})})}/**
24
24
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
25
25
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
26
- */class yn{constructor(){u(this,"_replacedElements");this._replacedElements=[]}replace(n,e){this._replacedElements.push({element:n,newElement:e}),n.style.display="none",e&&n.parentNode.insertBefore(e,n.nextSibling)}restore(){this._replacedElements.forEach(({element:n,newElement:e})=>{n.style.display="",e&&e.remove()}),this._replacedElements=[]}}/**
26
+ */class gn{_replacedElements;constructor(){this._replacedElements=[]}replace(t,n){this._replacedElements.push({element:t,newElement:n}),t.style.display="none",n&&t.parentNode.insertBefore(n,t.nextSibling)}restore(){this._replacedElements.forEach(({element:t,newElement:n})=>{t.style.display="",n&&n.remove()}),this._replacedElements=[]}}/**
27
27
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
28
28
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
29
- */function En(t){let n=0;for(const e of t)n++;return n}/**
29
+ */function mn(e){let t=0;for(const n of e)t++;return t}/**
30
30
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
31
31
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
32
- */function Tn(t,n){const e=Math.min(t.length,n.length);for(let i=0;i<e;i++)if(t[i]!=n[i])return i;return t.length==n.length?"same":t.length<n.length?"prefix":"extension"}/**
32
+ */function bn(e,t){const n=Math.min(e.length,t.length);for(let i=0;i<n;i++)if(e[i]!=t[i])return i;return e.length==t.length?"same":e.length<t.length?"prefix":"extension"}/**
33
33
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
34
34
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
35
- */function tt(t){return!!(t&&t[Symbol.iterator])}function xn(t,n,e={},i=[]){const s=e&&e.xmlns,o=s?t.createElementNS(s,n):t.createElement(n);for(const r in e)o.setAttribute(r,e[r]);(ot(i)||!tt(i))&&(i=[i]);for(let r of i)ot(r)&&(r=t.createTextNode(r)),o.appendChild(r);return o}class In{constructor(n,e){u(this,"_config");this._config=Object.create(null),e&&this.define(ht(e)),n&&this._setObjectToTarget(this._config,n)}set(n,e){this._setToTarget(this._config,n,e)}define(n,e){this._setToTarget(this._config,n,e,!0)}get(n){return this._getFromSource(this._config,n)}*names(){for(const n of Object.keys(this._config))yield n}_setToTarget(n,e,i,s=!1){if(k(e)){this._setObjectToTarget(n,e,s);return}const o=e.split(".");e=o.pop();for(const r of o)k(n[r])||(n[r]=Object.create(null)),n=n[r];if(k(i)){k(n[e])||(n[e]=Object.create(null)),n=n[e],this._setObjectToTarget(n,i,s);return}s&&typeof n[e]<"u"||(n[e]=i)}_getFromSource(n,e){const i=e.split(".");e=i.pop();for(const s of i){if(!k(n[s])){n=null;break}n=n[s]}return n?ht(n[e]):void 0}_setObjectToTarget(n,e,i){Object.keys(e).forEach(s=>{this._setToTarget(n,s,e[s],i)})}}function ht(t){return zt(t,Le)}function Le(t){return Lt(t)||typeof t=="function"?t:void 0}/**
35
+ */function z(e){return!!(e&&e[Symbol.iterator])}function _n(e,t,n={},i=[]){const o=n&&n.xmlns,s=o?e.createElementNS(o,t):e.createElement(t);for(const r in n)s.setAttribute(r,n[r]);(ot(i)||!z(i))&&(i=[i]);for(let r of i)ot(r)&&(r=e.createTextNode(r)),s.appendChild(r);return s}class wn{_config;constructor(t,n){this._config=Object.create(null),n&&this.define(dt(n)),t&&this._setObjectToTarget(this._config,t)}set(t,n){this._setToTarget(this._config,t,n)}define(t,n){this._setToTarget(this._config,t,n,!0)}get(t){return this._getFromSource(this._config,t)}*names(){for(const t of Object.keys(this._config))yield t}_setToTarget(t,n,i,o=!1){if(k(n)){this._setObjectToTarget(t,n,o);return}const s=n.split(".");n=s.pop();for(const r of s)k(t[r])||(t[r]=Object.create(null)),t=t[r];if(k(i)){k(t[n])||(t[n]=Object.create(null)),t=t[n],this._setObjectToTarget(t,i,o);return}o&&typeof t[n]<"u"||(t[n]=i)}_getFromSource(t,n){const i=n.split(".");n=i.pop();for(const o of i){if(!k(t[o])){t=null;break}t=t[o]}return t?dt(t[n]):void 0}_setObjectToTarget(t,n,i){Object.keys(n).forEach(o=>{this._setToTarget(t,o,n[o],i)})}}function dt(e){return $t(e,Ee)}function Ee(e){return xt(e)||typeof e=="function"?e:void 0}/**
36
36
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
37
37
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
38
- */function pt(t){if(t){if(t.defaultView)return t instanceof t.defaultView.Document;if(t.ownerDocument&&t.ownerDocument.defaultView)return t instanceof t.ownerDocument.defaultView.Node}return!1}/**
38
+ */function ht(e){if(e){if(e.defaultView)return e instanceof e.defaultView.Document;if(e.ownerDocument&&e.ownerDocument.defaultView)return e instanceof e.ownerDocument.defaultView.Node}return!1}/**
39
39
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
40
40
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
41
- */function O(t){const n=Object.prototype.toString.apply(t);return n=="[object Window]"||n=="[object global]"}const Pt=j(L());function j(t){if(!t)return Pt;class n extends t{listenTo(i,s,o,r={}){if(pt(i)||O(i)||i instanceof T.window.EventTarget){const c={capture:!!r.useCapture,passive:!!r.usePassive},a=this._getProxyEmitter(i,c)||new Ae(i,c);this.listenTo(a,s,o,r)}else super.listenTo(i,s,o,r)}stopListening(i,s,o){if(pt(i)||O(i)||i instanceof T.window.EventTarget){const r=this._getAllProxyEmitters(i);for(const c of r)this.stopListening(c,s,o)}else super.stopListening(i,s,o)}_getProxyEmitter(i,s){return he(this,Nt(i,s))}_getAllProxyEmitters(i){return[{capture:!1,passive:!1},{capture:!1,passive:!0},{capture:!0,passive:!1},{capture:!0,passive:!0}].map(s=>this._getProxyEmitter(i,s)).filter(s=>!!s)}}return n}["_getProxyEmitter","_getAllProxyEmitters","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach(t=>{j[t]=Pt.prototype[t]});class Ae extends L(){constructor(e,i){super();u(this,"_domNode");u(this,"_options");u(this,"_domListeners");Mt(this,Nt(e,i)),this._domNode=e,this._options=i}attach(e){if(this._domListeners&&this._domListeners[e])return;const i=this._createDomListener(e);this._domNode.addEventListener(e,i,this._options),this._domListeners||(this._domListeners={}),this._domListeners[e]=i}detach(e){let i;this._domListeners[e]&&(!(i=this._events[e])||!i.callbacks.length)&&this._domListeners[e].removeListener()}_addEventListener(e,i,s){this.attach(e),L().prototype._addEventListener.call(this,e,i,s)}_removeEventListener(e,i){L().prototype._removeEventListener.call(this,e,i),this.detach(e)}_createDomListener(e){const i=s=>{this.fire(e,s)};return i.removeListener=()=>{this._domNode.removeEventListener(e,i,this._options),delete this._domListeners[e]},i}}function ve(t){return t["data-ck-expando"]||(t["data-ck-expando"]=Q())}function Nt(t,n){let e=ve(t);for(const i of Object.keys(n).sort())n[i]&&(e+="-"+i);return e}/**
41
+ */function N(e){const t=Object.prototype.toString.apply(e);return t=="[object Window]"||t=="[object global]"}const Vt=D(T());function D(e){if(!e)return Vt;class t extends e{listenTo(i,o,s,r={}){if(ht(i)||N(i)||i instanceof w.window.EventTarget){const l={capture:!!r.useCapture,passive:!!r.usePassive},c=this._getProxyEmitter(i,l)||new Te(i,l);this.listenTo(c,o,s,r)}else super.listenTo(i,o,s,r)}stopListening(i,o,s){if(ht(i)||N(i)||i instanceof w.window.EventTarget){const r=this._getAllProxyEmitters(i);for(const l of r)this.stopListening(l,o,s)}else super.stopListening(i,o,s)}_getProxyEmitter(i,o){return ae(this,Rt(i,o))}_getAllProxyEmitters(i){return[{capture:!1,passive:!1},{capture:!1,passive:!0},{capture:!0,passive:!1},{capture:!0,passive:!0}].map(o=>this._getProxyEmitter(i,o)).filter(o=>!!o)}}return t}["_getProxyEmitter","_getAllProxyEmitters","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach(e=>{D[e]=Vt.prototype[e]});class Te extends T(){_domNode;_options;constructor(t,n){super(),Mt(this,Rt(t,n)),this._domNode=t,this._options=n}_domListeners;attach(t){if(this._domListeners&&this._domListeners[t])return;const n=this._createDomListener(t);this._domNode.addEventListener(t,n,this._options),this._domListeners||(this._domListeners={}),this._domListeners[t]=n}detach(t){let n;this._domListeners[t]&&(!(n=this._events[t])||!n.callbacks.length)&&this._domListeners[t].removeListener()}_addEventListener(t,n,i){this.attach(t),T().prototype._addEventListener.call(this,t,n,i)}_removeEventListener(t,n){T().prototype._removeEventListener.call(this,t,n),this.detach(t)}_createDomListener(t){const n=i=>{this.fire(t,i)};return n.removeListener=()=>{this._domNode.removeEventListener(t,n,this._options),delete this._domListeners[t]},n}}function xe(e){return e["data-ck-expando"]||(e["data-ck-expando"]=Q())}function Rt(e,t){let n=xe(e);for(const i of Object.keys(t).sort())t[i]&&(n+="-"+i);return n}/**
42
42
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
43
43
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
44
- */function Ln(t){const n=[];let e=t;for(;e&&e.nodeType!=Node.DOCUMENT_NODE;)n.unshift(e),e=e.parentNode;return n}/**
44
+ */function yn(e){const t=[];let n=e;for(;n&&n.nodeType!=Node.DOCUMENT_NODE;)t.unshift(n),n=n.parentNode;return t}/**
45
45
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
46
46
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
47
- */function An(t){return t instanceof HTMLTextAreaElement?t.value:t.innerHTML}/**
47
+ */function En(e){return e instanceof HTMLTextAreaElement?e.value:e.innerHTML}/**
48
48
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
49
49
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
50
- */function Bt(t){const n=t.ownerDocument.defaultView.getComputedStyle(t);return{top:parseInt(n.borderTopWidth,10),right:parseInt(n.borderRightWidth,10),bottom:parseInt(n.borderBottomWidth,10),left:parseInt(n.borderLeftWidth,10)}}/**
50
+ */function Pt(e){const t=e.ownerDocument.defaultView.getComputedStyle(e);return{top:parseInt(t.borderTopWidth,10),right:parseInt(t.borderRightWidth,10),bottom:parseInt(t.borderBottomWidth,10),left:parseInt(t.borderLeftWidth,10)}}/**
51
51
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
52
52
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
53
- */function vn(t){if(!t.target)return null;const n=t.target.ownerDocument,e=t.clientX,i=t.clientY;let s=null;return n.caretRangeFromPoint&&n.caretRangeFromPoint(e,i)?s=n.caretRangeFromPoint(e,i):t.rangeParent&&(s=n.createRange(),s.setStart(t.rangeParent,t.rangeOffset),s.collapse(!0)),s}/**
53
+ */function Tn(e){if(!e.target)return null;const t=e.target.ownerDocument,n=e.clientX,i=e.clientY;let o=null;return t.caretRangeFromPoint&&t.caretRangeFromPoint(n,i)?o=t.caretRangeFromPoint(n,i):e.rangeParent&&(o=t.createRange(),o.setStart(e.rangeParent,e.rangeOffset),o.collapse(!0)),o}/**
54
54
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
55
55
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
56
- */function et(t){return Object.prototype.toString.call(t)=="[object Text]"}/**
56
+ */function tt(e){return Object.prototype.toString.call(e)=="[object Text]"}/**
57
57
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
58
58
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
59
- */function nt(t){return Object.prototype.toString.apply(t)=="[object Range]"}function Ot(t){return!t||!t.parentNode||t.offsetParent===T.document.body?null:t.offsetParent}const Dt=["top","right","bottom","left","width","height"];class y{constructor(n){u(this,"top");u(this,"right");u(this,"bottom");u(this,"left");u(this,"width");u(this,"height");u(this,"_source");const e=nt(n);if(Object.defineProperty(this,"_source",{value:n._source||n,writable:!0,enumerable:!1}),J(n)||e)if(e){const i=y.getDomRangeRects(n);N(this,y.getBoundingRect(i))}else N(this,n.getBoundingClientRect());else if(O(n)){const{innerWidth:i,innerHeight:s}=n;N(this,{top:0,right:i,bottom:s,left:0,width:i,height:s})}else N(this,n)}clone(){return new y(this)}moveTo(n,e){return this.top=e,this.right=n+this.width,this.bottom=e+this.height,this.left=n,this}moveBy(n,e){return this.top+=e,this.right+=n,this.left+=n,this.bottom+=e,this}getIntersection(n){const e={top:Math.max(this.top,n.top),right:Math.min(this.right,n.right),bottom:Math.min(this.bottom,n.bottom),left:Math.max(this.left,n.left),width:0,height:0};if(e.width=e.right-e.left,e.height=e.bottom-e.top,e.width<0||e.height<0)return null;{const i=new y(e);return i._source=this._source,i}}getIntersectionArea(n){const e=this.getIntersection(n);return e?e.getArea():0}getArea(){return this.width*this.height}getVisible(){const n=this._source;let e=this.clone();if(gt(n))return e;let i=n,s=n.parentNode||n.commonAncestorContainer,o;for(;s&&!gt(s);){const r=Ce(s)==="visible";i instanceof HTMLElement&&mt(i)==="absolute"&&(o=i);const c=mt(s);if(r||o&&(c==="relative"&&r||c!=="relative")){i=s,s=s.parentNode;continue}const a=new y(s),l=e.getIntersection(a);if(l)l.getArea()<e.getArea()&&(e=l);else return null;i=s,s=s.parentNode}return e}isEqual(n){for(const e of Dt)if(this[e]!==n[e])return!1;return!0}contains(n){const e=this.getIntersection(n);return!!(e&&e.isEqual(n))}toAbsoluteRect(){const{scrollX:n,scrollY:e}=T.window,i=this.clone().moveBy(n,e);if(J(i._source)){const s=Ot(i._source);s&&Re(i,s)}return i}excludeScrollbarsAndBorders(){const n=this._source;let e,i,s;if(O(n))e=n.innerWidth-n.document.documentElement.clientWidth,i=n.innerHeight-n.document.documentElement.clientHeight,s=n.getComputedStyle(n.document.documentElement).direction;else{const o=Bt(n);e=n.offsetWidth-n.clientWidth-o.left-o.right,i=n.offsetHeight-n.clientHeight-o.top-o.bottom,s=n.ownerDocument.defaultView.getComputedStyle(n).direction,this.left+=o.left,this.top+=o.top,this.right-=o.right,this.bottom-=o.bottom,this.width=this.right-this.left,this.height=this.bottom-this.top}return this.width-=e,s==="ltr"?this.right-=e:this.left+=e,this.height-=i,this.bottom-=i,this}static getDomRangeRects(n){const e=[],i=Array.from(n.getClientRects());if(i.length)for(const s of i)e.push(new y(s));else{let s=n.startContainer;et(s)&&(s=s.parentNode);const o=new y(s.getBoundingClientRect());o.right=o.left,o.width=0,e.push(o)}return e}static getBoundingRect(n){const e={left:Number.POSITIVE_INFINITY,top:Number.POSITIVE_INFINITY,right:Number.NEGATIVE_INFINITY,bottom:Number.NEGATIVE_INFINITY,width:0,height:0};let i=0;for(const s of n)i++,e.left=Math.min(e.left,s.left),e.top=Math.min(e.top,s.top),e.right=Math.max(e.right,s.right),e.bottom=Math.max(e.bottom,s.bottom);return i==0?null:(e.width=e.right-e.left,e.height=e.bottom-e.top,new y(e))}}function N(t,n){for(const e of Dt)t[e]=n[e]}function gt(t){return J(t)?t===t.ownerDocument.body:!1}function J(t){return t!==null&&typeof t=="object"&&t.nodeType===1&&typeof t.getBoundingClientRect=="function"}function mt(t){return t instanceof HTMLElement?t.ownerDocument.defaultView.getComputedStyle(t).position:"static"}function Ce(t){return t instanceof HTMLElement?t.ownerDocument.defaultView.getComputedStyle(t).overflow:"visible"}function Re(t,n){const e=new y(n),i=Bt(n);let s=0,o=0;s-=e.left,o-=e.top,s+=n.scrollLeft,o+=n.scrollTop,s-=i.left,o-=i.top,t.moveBy(s,o)}const g=class g{constructor(n,e){u(this,"_element");u(this,"_callback");g._observerInstance||g._createObserver(),this._element=n,this._callback=e,g._addElementCallback(n,e),g._observerInstance.observe(n)}get element(){return this._element}destroy(){g._deleteElementCallback(this._element,this._callback)}static _addElementCallback(n,e){g._elementCallbacks||(g._elementCallbacks=new Map);let i=g._elementCallbacks.get(n);i||(i=new Set,g._elementCallbacks.set(n,i)),i.add(e)}static _deleteElementCallback(n,e){const i=g._getElementCallbacks(n);i&&(i.delete(e),i.size||(g._elementCallbacks.delete(n),g._observerInstance.unobserve(n))),g._elementCallbacks&&!g._elementCallbacks.size&&(g._observerInstance=null,g._elementCallbacks=null)}static _getElementCallbacks(n){return g._elementCallbacks?g._elementCallbacks.get(n):null}static _createObserver(){g._observerInstance=new T.window.ResizeObserver(n=>{for(const e of n){const i=g._getElementCallbacks(e.target);if(i)for(const s of i)s(e)}})}};u(g,"_observerInstance",null),u(g,"_elementCallbacks",null);let bt=g;/**
59
+ */function et(e){return Object.prototype.toString.apply(e)=="[object Range]"}function Nt(e){return!e||!e.parentNode||e.offsetParent===w.document.body?null:e.offsetParent}const Bt=["top","right","bottom","left","width","height"];class m{top;right;bottom;left;width;height;_source;constructor(t){const n=et(t);if(Object.defineProperty(this,"_source",{value:t._source||t,writable:!0,enumerable:!1}),J(t)||n)if(n){const i=m.getDomRangeRects(t);R(this,m.getBoundingRect(i))}else R(this,t.getBoundingClientRect());else if(N(t)){const{innerWidth:i,innerHeight:o}=t;R(this,{top:0,right:i,bottom:o,left:0,width:i,height:o})}else R(this,t)}clone(){return new m(this)}moveTo(t,n){return this.top=n,this.right=t+this.width,this.bottom=n+this.height,this.left=t,this}moveBy(t,n){return this.top+=n,this.right+=t,this.left+=t,this.bottom+=n,this}getIntersection(t){const n={top:Math.max(this.top,t.top),right:Math.min(this.right,t.right),bottom:Math.min(this.bottom,t.bottom),left:Math.max(this.left,t.left),width:0,height:0};if(n.width=n.right-n.left,n.height=n.bottom-n.top,n.width<0||n.height<0)return null;{const i=new m(n);return i._source=this._source,i}}getIntersectionArea(t){const n=this.getIntersection(t);return n?n.getArea():0}getArea(){return this.width*this.height}getVisible(){const t=this._source;let n=this.clone();if(pt(t))return n;let i=t,o=t.parentNode||t.commonAncestorContainer,s;for(;o&&!pt(o);){const r=Ie(o)==="visible";i instanceof HTMLElement&&gt(i)==="absolute"&&(s=i);const l=gt(o);if(r||s&&(l==="relative"&&r||l!=="relative")){i=o,o=o.parentNode;continue}const c=new m(o),a=n.getIntersection(c);if(a)a.getArea()<n.getArea()&&(n=a);else return null;i=o,o=o.parentNode}return n}isEqual(t){for(const n of Bt)if(this[n]!==t[n])return!1;return!0}contains(t){const n=this.getIntersection(t);return!!(n&&n.isEqual(t))}toAbsoluteRect(){const{scrollX:t,scrollY:n}=w.window,i=this.clone().moveBy(t,n);if(J(i._source)){const o=Nt(i._source);o&&Le(i,o)}return i}excludeScrollbarsAndBorders(){const t=this._source;let n,i,o;if(N(t))n=t.innerWidth-t.document.documentElement.clientWidth,i=t.innerHeight-t.document.documentElement.clientHeight,o=t.getComputedStyle(t.document.documentElement).direction;else{const s=Pt(t);n=t.offsetWidth-t.clientWidth-s.left-s.right,i=t.offsetHeight-t.clientHeight-s.top-s.bottom,o=t.ownerDocument.defaultView.getComputedStyle(t).direction,this.left+=s.left,this.top+=s.top,this.right-=s.right,this.bottom-=s.bottom,this.width=this.right-this.left,this.height=this.bottom-this.top}return this.width-=n,o==="ltr"?this.right-=n:this.left+=n,this.height-=i,this.bottom-=i,this}static getDomRangeRects(t){const n=[],i=Array.from(t.getClientRects());if(i.length)for(const o of i)n.push(new m(o));else{let o=t.startContainer;tt(o)&&(o=o.parentNode);const s=new m(o.getBoundingClientRect());s.right=s.left,s.width=0,n.push(s)}return n}static getBoundingRect(t){const n={left:Number.POSITIVE_INFINITY,top:Number.POSITIVE_INFINITY,right:Number.NEGATIVE_INFINITY,bottom:Number.NEGATIVE_INFINITY,width:0,height:0};let i=0;for(const o of t)i++,n.left=Math.min(n.left,o.left),n.top=Math.min(n.top,o.top),n.right=Math.max(n.right,o.right),n.bottom=Math.max(n.bottom,o.bottom);return i==0?null:(n.width=n.right-n.left,n.height=n.bottom-n.top,new m(n))}}function R(e,t){for(const n of Bt)e[n]=t[n]}function pt(e){return J(e)?e===e.ownerDocument.body:!1}function J(e){return e!==null&&typeof e=="object"&&e.nodeType===1&&typeof e.getBoundingClientRect=="function"}function gt(e){return e instanceof HTMLElement?e.ownerDocument.defaultView.getComputedStyle(e).position:"static"}function Ie(e){return e instanceof HTMLElement?e.ownerDocument.defaultView.getComputedStyle(e).overflow:"visible"}function Le(e,t){const n=new m(t),i=Pt(t);let o=0,s=0;o-=n.left,s-=n.top,o+=t.scrollLeft,s+=t.scrollTop,o-=i.left,s-=i.top,e.moveBy(o,s)}class h{_element;_callback;static _observerInstance=null;static _elementCallbacks=null;constructor(t,n){h._observerInstance||h._createObserver(),this._element=t,this._callback=n,h._addElementCallback(t,n),h._observerInstance.observe(t)}get element(){return this._element}destroy(){h._deleteElementCallback(this._element,this._callback)}static _addElementCallback(t,n){h._elementCallbacks||(h._elementCallbacks=new Map);let i=h._elementCallbacks.get(t);i||(i=new Set,h._elementCallbacks.set(t,i)),i.add(n)}static _deleteElementCallback(t,n){const i=h._getElementCallbacks(t);i&&(i.delete(n),i.size||(h._elementCallbacks.delete(t),h._observerInstance.unobserve(t))),h._elementCallbacks&&!h._elementCallbacks.size&&(h._observerInstance=null,h._elementCallbacks=null)}static _getElementCallbacks(t){return h._elementCallbacks?h._elementCallbacks.get(t):null}static _createObserver(){h._observerInstance=new w.window.ResizeObserver(t=>{for(const n of t){const i=h._getElementCallbacks(n.target);if(i)for(const o of i)o(n)}})}}/**
60
60
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
61
61
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
62
- */function Cn(t,n){t instanceof HTMLTextAreaElement&&(t.value=n),t.innerHTML=n}/**
62
+ */function xn(e,t){e instanceof HTMLTextAreaElement&&(e.value=t),e.innerHTML=t}/**
63
63
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
64
64
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
65
- */function Rn(t){return n=>n+t}/**
65
+ */function In(e){return t=>t+e}/**
66
66
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
67
67
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
68
- */function Fn(t){let n=0;for(;t.previousSibling;)t=t.previousSibling,n++;return n}/**
68
+ */function Ln(e){let t=0;for(;e.previousSibling;)e=e.previousSibling,t++;return t}/**
69
69
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
70
70
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
71
- */function Mn(t,n,e){t.insertBefore(e,t.childNodes[n]||null)}/**
71
+ */function An(e,t,n){e.insertBefore(n,e.childNodes[t]||null)}/**
72
72
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
73
73
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
74
- */function kn(t){return t&&t.nodeType===Node.COMMENT_NODE}function Sn(t){try{T.document.createAttribute(t)}catch{return!1}return!0}function Fe(t){return t?et(t)?Fe(t.parentElement):t.getClientRects?!!t.getClientRects().length:!1:!1}function Vn({element:t,target:n,positions:e,limiter:i,fitInViewport:s,viewportOffsetConfig:o}){rt(n)&&(n=n()),rt(i)&&(i=i());const r=Ot(t),c=Me(o),a=new y(t),l=_t(n,c);let f;if(!l||!c.getIntersection(l))return null;const d={targetRect:l,elementRect:a,positionedElementAncestor:r,viewportRect:c};if(!i&&!s)f=new jt(e[0],d);else{if(i){const h=_t(i,c);h&&(d.limiterRect=h)}f=ke(e,d)}return f}function _t(t,n){const e=new y(t).getVisible();return e?e.getIntersection(n):null}function Me(t){t=Object.assign({top:0,bottom:0,left:0,right:0},t);const n=new y(T.window);return n.top+=t.top,n.height-=t.top,n.bottom-=t.bottom,n.height-=t.bottom,n}function ke(t,n){const{elementRect:e}=n,i=e.getArea(),s=t.map(c=>new jt(c,n)).filter(c=>!!c.name);let o=0,r=null;for(const c of s){const{limiterIntersectionArea:a,viewportIntersectionArea:l}=c;if(a===i)return c;const f=l**2+a**2;f>o&&(o=f,r=c)}return r}class jt{constructor(n,e){u(this,"name");u(this,"config");u(this,"_positioningFunctionCoordinates");u(this,"_options");u(this,"_cachedRect");u(this,"_cachedAbsoluteRect");const i=n(e.targetRect,e.elementRect,e.viewportRect,e.limiterRect);if(!i)return;const{left:s,top:o,name:r,config:c}=i;this.name=r,this.config=c,this._positioningFunctionCoordinates={left:s,top:o},this._options=e}get left(){return this._absoluteRect.left}get top(){return this._absoluteRect.top}get limiterIntersectionArea(){const n=this._options.limiterRect;return n?n.getIntersectionArea(this._rect):0}get viewportIntersectionArea(){return this._options.viewportRect.getIntersectionArea(this._rect)}get _rect(){return this._cachedRect?this._cachedRect:(this._cachedRect=this._options.elementRect.clone().moveTo(this._positioningFunctionCoordinates.left,this._positioningFunctionCoordinates.top),this._cachedRect)}get _absoluteRect(){return this._cachedAbsoluteRect?this._cachedAbsoluteRect:(this._cachedAbsoluteRect=this._rect.toAbsoluteRect(),this._cachedAbsoluteRect)}}/**
74
+ */function Cn(e){return e&&e.nodeType===Node.COMMENT_NODE}function Fn(e){try{w.document.createAttribute(e)}catch{return!1}return!0}function Ae(e){return e?tt(e)?Ae(e.parentElement):e.getClientRects?!!e.getClientRects().length:!1:!1}function Mn({element:e,target:t,positions:n,limiter:i,fitInViewport:o,viewportOffsetConfig:s}){st(t)&&(t=t()),st(i)&&(i=i());const r=Nt(e),l=Ce(s),c=new m(e),a=mt(t,l);let f;if(!a||!l.getIntersection(a))return null;const u={targetRect:a,elementRect:c,positionedElementAncestor:r,viewportRect:l};if(!i&&!o)f=new Dt(n[0],u);else{if(i){const _=mt(i,l);_&&(u.limiterRect=_)}f=Fe(n,u)}return f}function mt(e,t){const n=new m(e).getVisible();return n?n.getIntersection(t):null}function Ce(e){e=Object.assign({top:0,bottom:0,left:0,right:0},e);const t=new m(w.window);return t.top+=e.top,t.height-=e.top,t.bottom-=e.bottom,t.height-=e.bottom,t}function Fe(e,t){const{elementRect:n}=t,i=n.getArea(),o=e.map(l=>new Dt(l,t)).filter(l=>!!l.name);let s=0,r=null;for(const l of o){const{limiterIntersectionArea:c,viewportIntersectionArea:a}=l;if(c===i)return l;const f=a**2+c**2;f>s&&(s=f,r=l)}return r}class Dt{name;config;_positioningFunctionCoordinates;_options;_cachedRect;_cachedAbsoluteRect;constructor(t,n){const i=t(n.targetRect,n.elementRect,n.viewportRect,n.limiterRect);if(!i)return;const{left:o,top:s,name:r,config:l}=i;this.name=r,this.config=l,this._positioningFunctionCoordinates={left:o,top:s},this._options=n}get left(){return this._absoluteRect.left}get top(){return this._absoluteRect.top}get limiterIntersectionArea(){const t=this._options.limiterRect;return t?t.getIntersectionArea(this._rect):0}get viewportIntersectionArea(){return this._options.viewportRect.getIntersectionArea(this._rect)}get _rect(){return this._cachedRect?this._cachedRect:(this._cachedRect=this._options.elementRect.clone().moveTo(this._positioningFunctionCoordinates.left,this._positioningFunctionCoordinates.top),this._cachedRect)}get _absoluteRect(){return this._cachedAbsoluteRect?this._cachedAbsoluteRect:(this._cachedAbsoluteRect=this._rect.toAbsoluteRect(),this._cachedAbsoluteRect)}}/**
75
75
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
76
76
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
77
- */function Pn(t){const n=t.parentNode;n&&n.removeChild(t)}function Nn(){const t=T.window.visualViewport;if(!t||!(F.isiOS||F.isSafari))return{left:0,top:0};const n=Math.max(Math.round(t.offsetLeft),0),e=Math.max(Math.round(t.offsetTop),0);return{left:n,top:e}}function Bn({target:t,viewportOffset:n=0,ancestorOffset:e=0,alignToTop:i,forceScroll:s}){const o=it(t);let r=o,c=null;for(n=Pe(n);r;){let a;r==o?a=wt(t):a=wt(c),Ve({parent:a,getRect:()=>$(t,r),alignToTop:i,ancestorOffset:e,forceScroll:s});let l=$(t,r);const f=$(a,r);if(l.height>f.height){const d=l.getIntersection(f);d&&(l=d)}if(Se({window:r,rect:l,viewportOffset:n,alignToTop:i,forceScroll:s}),r.parent!=r){if(c=r.frameElement,r=r.parent,!c)return}else r=null}}function Se({window:t,rect:n,alignToTop:e,forceScroll:i,viewportOffset:s}){const o=n.clone().moveBy(0,s.bottom),r=n.clone().moveBy(0,-s.top),c=new y(t).excludeScrollbarsAndBorders(),a=[r,o],l=e&&i,f=a.every(b=>c.contains(b));let{scrollX:d,scrollY:h}=t;const _=d,m=h;l?h-=c.top-n.top+s.top:f||(Kt(r,c)?h-=c.top-n.top+s.top:Wt(o,c)&&(e?h+=n.top-c.top-s.top:h+=n.bottom-c.bottom+s.bottom)),f||(Ht(n,c)?d-=c.left-n.left+s.left:Ut(n,c)&&(d+=n.right-c.right+s.right)),(d!=_||h!==m)&&t.scrollTo(d,h)}function Ve({parent:t,getRect:n,alignToTop:e,forceScroll:i,ancestorOffset:s=0,limiterElement:o}){const r=it(t),c=e&&i;let a,l,f;const d=o||r.document.body;for(;t!=d;)l=n(),a=new y(t).excludeScrollbarsAndBorders(),f=a.contains(l),c?t.scrollTop-=a.top-l.top+s:f||(Kt(l,a)?t.scrollTop-=a.top-l.top+s:Wt(l,a)&&(e?t.scrollTop+=l.top-a.top-s:t.scrollTop+=l.bottom-a.bottom+s)),f||(Ht(l,a)?t.scrollLeft-=a.left-l.left+s:Ut(l,a)&&(t.scrollLeft+=l.right-a.right+s)),t=t.parentNode}function Wt(t,n){return t.bottom>n.bottom}function Kt(t,n){return t.top<n.top}function Ht(t,n){return t.left<n.left}function Ut(t,n){return t.right>n.right}function it(t){return nt(t)?t.startContainer.ownerDocument.defaultView:t.ownerDocument.defaultView}function wt(t){if(nt(t)){let n=t.commonAncestorContainer;return et(n)&&(n=n.parentNode),n}else return t.parentNode}function $(t,n){const e=it(t),i=new y(t);if(e===n)return i;{let s=e;for(;s!=n;){const o=s.frameElement,r=new y(o).excludeScrollbarsAndBorders();i.moveBy(r.left,r.top),s=s.parent}}return i}function Pe(t){return typeof t=="number"?{top:t,bottom:t,left:t,right:t}:t}const Ne={ctrl:"⌃",cmd:"⌘",alt:"⌥",shift:"⇧"},Be={ctrl:"Ctrl+",alt:"Alt+",shift:"Shift+"},yt={37:"←",38:"↑",39:"→",40:"↓",9:"⇥",33:"Page Up",34:"Page Down"},w=We(),Oe=Object.fromEntries(Object.entries(w).map(([t,n])=>{let e;return n in yt?e=yt[n]:e=t.charAt(0).toUpperCase()+t.slice(1),[n,e]}));function D(t){let n;if(typeof t=="string"){if(n=w[t.toLowerCase()],!n)throw new p("keyboard-unknown-key",null,{key:t})}else n=t.keyCode+(t.altKey?w.alt:0)+(t.ctrlKey?w.ctrl:0)+(t.shiftKey?w.shift:0)+(t.metaKey?w.cmd:0);return n}function $t(t){return typeof t=="string"&&(t=Ke(t)),t.map(n=>typeof n=="string"?je(n):n).reduce((n,e)=>e+n,0)}function On(t,n){let e=$t(t);const i=F.isMac||F.isiOS;return Object.entries(i?Ne:Be).reduce((r,[c,a])=>((e&w[c])!=0&&(e&=~w[c],r+=a),r),"")+(e?Oe[e]:"")}function Dn(t){return t==w.arrowright||t==w.arrowleft||t==w.arrowup||t==w.arrowdown}function De(t,n){const e=n==="ltr";switch(t){case w.arrowleft:return e?"left":"right";case w.arrowright:return e?"right":"left";case w.arrowup:return"up";case w.arrowdown:return"down"}}function je(t){if(t.endsWith("!"))return D(t.slice(0,-1));const n=D(t);return(F.isMac||F.isiOS)&&n==w.ctrl?w.cmd:n}function jn(t,n){const e=De(t,n);return e==="down"||e==="right"}function We(){const t={pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,backspace:8,delete:46,enter:13,space:32,esc:27,tab:9,ctrl:1114112,shift:2228224,alt:4456448,cmd:8912896};for(let n=65;n<=90;n++){const e=String.fromCharCode(n);t[e.toLowerCase()]=n}for(let n=48;n<=57;n++)t[n-48]=n;for(let n=112;n<=123;n++)t["f"+(n-111)]=n;return Object.assign(t,{"'":222,",":108,"-":109,".":110,"/":111,";":186,"=":187,"[":219,"\\":220,"]":221,"`":223}),t}function Ke(t){return t.split("+").map(n=>n.trim())}/**
77
+ */function kn(e){const t=e.parentNode;t&&t.removeChild(e)}function vn(){const e=w.window.visualViewport;if(!e||!(A.isiOS||A.isSafari))return{left:0,top:0};const t=Math.max(Math.round(e.offsetLeft),0),n=Math.max(Math.round(e.offsetTop),0);return{left:t,top:n}}function Sn({target:e,viewportOffset:t=0,ancestorOffset:n=0,alignToTop:i,forceScroll:o}){const s=nt(e);let r=s,l=null;for(t=ve(t);r;){let c;r==s?c=bt(e):c=bt(l),ke({parent:c,getRect:()=>U(e,r),alignToTop:i,ancestorOffset:n,forceScroll:o});let a=U(e,r);const f=U(c,r);if(a.height>f.height){const u=a.getIntersection(f);u&&(a=u)}if(Me({window:r,rect:a,viewportOffset:t,alignToTop:i,forceScroll:o}),r.parent!=r){if(l=r.frameElement,r=r.parent,!l)return}else r=null}}function Me({window:e,rect:t,alignToTop:n,forceScroll:i,viewportOffset:o}){const s=t.clone().moveBy(0,o.bottom),r=t.clone().moveBy(0,-o.top),l=new m(e).excludeScrollbarsAndBorders(),c=[r,s],a=n&&i,f=c.every(p=>l.contains(p));let{scrollX:u,scrollY:_}=e;const C=u,y=_;a?_-=l.top-t.top+o.top:f||(Ot(r,l)?_-=l.top-t.top+o.top:jt(s,l)&&(n?_+=t.top-l.top-o.top:_+=t.bottom-l.bottom+o.bottom)),f||(Wt(t,l)?u-=l.left-t.left+o.left:Kt(t,l)&&(u+=t.right-l.right+o.right)),(u!=C||_!==y)&&e.scrollTo(u,_)}function ke({parent:e,getRect:t,alignToTop:n,forceScroll:i,ancestorOffset:o=0,limiterElement:s}){const r=nt(e),l=n&&i;let c,a,f;const u=s||r.document.body;for(;e!=u;)a=t(),c=new m(e).excludeScrollbarsAndBorders(),f=c.contains(a),l?e.scrollTop-=c.top-a.top+o:f||(Ot(a,c)?e.scrollTop-=c.top-a.top+o:jt(a,c)&&(n?e.scrollTop+=a.top-c.top-o:e.scrollTop+=a.bottom-c.bottom+o)),f||(Wt(a,c)?e.scrollLeft-=c.left-a.left+o:Kt(a,c)&&(e.scrollLeft+=a.right-c.right+o)),e=e.parentNode}function jt(e,t){return e.bottom>t.bottom}function Ot(e,t){return e.top<t.top}function Wt(e,t){return e.left<t.left}function Kt(e,t){return e.right>t.right}function nt(e){return et(e)?e.startContainer.ownerDocument.defaultView:e.ownerDocument.defaultView}function bt(e){if(et(e)){let t=e.commonAncestorContainer;return tt(t)&&(t=t.parentNode),t}else return e.parentNode}function U(e,t){const n=nt(e),i=new m(e);if(n===t)return i;{let o=n;for(;o!=t;){const s=o.frameElement,r=new m(s).excludeScrollbarsAndBorders();i.moveBy(r.left,r.top),o=o.parent}}return i}function ve(e){return typeof e=="number"?{top:e,bottom:e,left:e,right:e}:e}const Se={ctrl:"⌃",cmd:"⌘",alt:"⌥",shift:"⇧"},Ve={ctrl:"Ctrl+",alt:"Alt+",shift:"Shift+"},_t={37:"←",38:"↑",39:"→",40:"↓",9:"⇥",33:"Page Up",34:"Page Down"},g=Be(),Re=Object.fromEntries(Object.entries(g).map(([e,t])=>{let n;return t in _t?n=_t[t]:n=e.charAt(0).toUpperCase()+e.slice(1),[t,n]}));function B(e){let t;if(typeof e=="string"){if(t=g[e.toLowerCase()],!t)throw new d("keyboard-unknown-key",null,{key:e})}else t=e.keyCode+(e.altKey?g.alt:0)+(e.ctrlKey?g.ctrl:0)+(e.shiftKey?g.shift:0)+(e.metaKey?g.cmd:0);return t}function Ht(e){return typeof e=="string"&&(e=De(e)),e.map(t=>typeof t=="string"?Ne(t):t).reduce((t,n)=>n+t,0)}function Vn(e,t){let n=Ht(e);const i=A.isMac||A.isiOS;return Object.entries(i?Se:Ve).reduce((r,[l,c])=>((n&g[l])!=0&&(n&=~g[l],r+=c),r),"")+(n?Re[n]:"")}function Rn(e){return e==g.arrowright||e==g.arrowleft||e==g.arrowup||e==g.arrowdown}function Pe(e,t){const n=t==="ltr";switch(e){case g.arrowleft:return n?"left":"right";case g.arrowright:return n?"right":"left";case g.arrowup:return"up";case g.arrowdown:return"down"}}function Ne(e){if(e.endsWith("!"))return B(e.slice(0,-1));const t=B(e);return(A.isMac||A.isiOS)&&t==g.ctrl?g.cmd:t}function Pn(e,t){const n=Pe(e,t);return n==="down"||n==="right"}function Be(){const e={pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,backspace:8,delete:46,enter:13,space:32,esc:27,tab:9,ctrl:1114112,shift:2228224,alt:4456448,cmd:8912896};for(let t=65;t<=90;t++){const n=String.fromCharCode(t);e[n.toLowerCase()]=t}for(let t=48;t<=57;t++)e[t-48]=t;for(let t=112;t<=123;t++)e["f"+(t-111)]=t;return Object.assign(e,{"'":222,",":108,"-":109,".":110,"/":111,";":186,"=":187,"[":219,"\\":220,"]":221,"`":223}),e}function De(e){return e.split("+").map(t=>t.trim())}/**
78
78
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
79
79
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
80
- */const He=["ar","ara","dv","div","fa","per","fas","he","heb","ku","kur","ug","uig","ur","urd"];function Et(t){return He.includes(t)?"rtl":"ltr"}/**
80
+ */const je=["ar","ara","dv","div","fa","per","fas","he","heb","ku","kur","ug","uig","ur","urd"];function wt(e){return je.includes(e)?"rtl":"ltr"}/**
81
81
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
82
82
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
83
- */function Ue(t){return Array.isArray(t)?t:[t]}/* istanbul ignore else -- @preserve */T.window.CKEDITOR_TRANSLATIONS||(T.window.CKEDITOR_TRANSLATIONS={});function $e(t,n,e=1,i){if(typeof e!="number")throw new p("translation-service-quantity-not-a-number",null,{quantity:e});const s=i||T.window.CKEDITOR_TRANSLATIONS,o=Ye(s);o===1&&(t=Object.keys(s)[0]);const r=n.id||n.string;if(o===0||!qe(t,r,s))return e!==1?n.plural:n.string;const c=s[t].dictionary,a=s[t].getPluralForm||(d=>d===1?0:1),l=c[r];if(typeof l=="string")return l;const f=Number(a(e));return l[f]}function Ge(t){return Array.isArray(t)?t.reduce((n,e)=>Xt(n,e)):t}function qe(t,n,e){return!!e[t]&&!!e[t].dictionary[n]}function Ye(t){return Object.keys(t).length}class Wn{constructor({uiLanguage:n="en",contentLanguage:e,translations:i}={}){u(this,"uiLanguage");u(this,"uiLanguageDirection");u(this,"contentLanguage");u(this,"contentLanguageDirection");u(this,"t");u(this,"translations");this.uiLanguage=n,this.contentLanguage=e||this.uiLanguage,this.uiLanguageDirection=Et(this.uiLanguage),this.contentLanguageDirection=Et(this.contentLanguage),this.translations=Ge(i),this.t=(s,o)=>this._t(s,o)}get language(){return console.warn("locale-deprecated-language-property: The Locale#language property has been deprecated and will be removed in the near future. Please use #uiLanguage and #contentLanguage properties instead."),this.uiLanguage}_t(n,e=[]){e=Ue(e),typeof n=="string"&&(n={string:n});const s=!!n.plural?e[0]:1,o=$e(this.uiLanguage,n,s,this.translations);return ze(o,e)}}function ze(t,n){return t.replace(/%(\d+)/g,(e,i)=>i<n.length?n[i]:e)}class Kn extends L(){constructor(e={},i={}){super();u(this,"_items");u(this,"_itemMap");u(this,"_idProperty");u(this,"_bindToCollection");u(this,"_bindToExternalToInternalMap");u(this,"_bindToInternalToExternalMap");u(this,"_skippedIndexesFromExternal");const s=tt(e);if(s||(i=e),this._items=[],this._itemMap=new Map,this._idProperty=i.idProperty||"id",this._bindToExternalToInternalMap=new WeakMap,this._bindToInternalToExternalMap=new WeakMap,this._skippedIndexesFromExternal=[],s)for(const o of e)this._items.push(o),this._itemMap.set(this._getItemIdBeforeAdding(o),o)}get length(){return this._items.length}get first(){return this._items[0]||null}get last(){return this._items[this.length-1]||null}add(e,i){return this.addMany([e],i)}addMany(e,i){if(i===void 0)i=this._items.length;else if(i>this._items.length||i<0)throw new p("collection-add-item-invalid-index",this);let s=0;for(const o of e){const r=this._getItemIdBeforeAdding(o),c=i+s;this._items.splice(c,0,o),this._itemMap.set(r,o),this.fire("add",o,c),s++}return this.fire("change",{added:e,removed:[],index:i}),this}get(e){let i;if(typeof e=="string")i=this._itemMap.get(e);else if(typeof e=="number")i=this._items[e];else throw new p("collection-get-invalid-arg",this);return i||null}has(e){if(typeof e=="string")return this._itemMap.has(e);{const i=this._idProperty,s=e[i];return s&&this._itemMap.has(s)}}getIndex(e){let i;return typeof e=="string"?i=this._itemMap.get(e):i=e,i?this._items.indexOf(i):-1}remove(e){const[i,s]=this._remove(e);return this.fire("change",{added:[],removed:[i],index:s}),i}map(e,i){return this._items.map(e,i)}forEach(e,i){this._items.forEach(e,i)}find(e,i){return this._items.find(e,i)}filter(e,i){return this._items.filter(e,i)}clear(){this._bindToCollection&&(this.stopListening(this._bindToCollection),this._bindToCollection=null);const e=Array.from(this._items);for(;this.length;)this._remove(0);this.fire("change",{added:[],removed:e,index:0})}bindTo(e){if(this._bindToCollection)throw new p("collection-bind-to-rebind",this);return this._bindToCollection=e,{as:i=>{this._setUpBindToBinding(s=>new i(s))},using:i=>{typeof i=="function"?this._setUpBindToBinding(i):this._setUpBindToBinding(s=>s[i])}}}_setUpBindToBinding(e){const i=this._bindToCollection,s=(o,r,c)=>{const a=i._bindToCollection==this,l=i._bindToInternalToExternalMap.get(r);if(a&&l)this._bindToExternalToInternalMap.set(r,l),this._bindToInternalToExternalMap.set(l,r);else{const f=e(r);if(!f){this._skippedIndexesFromExternal.push(c);return}let d=c;for(const h of this._skippedIndexesFromExternal)c>h&&d--;for(const h of i._skippedIndexesFromExternal)d>=h&&d++;this._bindToExternalToInternalMap.set(r,f),this._bindToInternalToExternalMap.set(f,r),this.add(f,d);for(let h=0;h<i._skippedIndexesFromExternal.length;h++)d<=i._skippedIndexesFromExternal[h]&&i._skippedIndexesFromExternal[h]++}};for(const o of i)s(null,o,i.getIndex(o));this.listenTo(i,"add",s),this.listenTo(i,"remove",(o,r,c)=>{const a=this._bindToExternalToInternalMap.get(r);a&&this.remove(a),this._skippedIndexesFromExternal=this._skippedIndexesFromExternal.reduce((l,f)=>(c<f&&l.push(f-1),c>f&&l.push(f),l),[])})}_getItemIdBeforeAdding(e){const i=this._idProperty;let s;if(i in e){if(s=e[i],typeof s!="string")throw new p("collection-add-invalid-id",this);if(this.get(s))throw new p("collection-add-item-already-exists",this)}else e[i]=s=Q();return s}_remove(e){let i,s,o,r=!1;const c=this._idProperty;if(typeof e=="string"?(s=e,o=this._itemMap.get(s),r=!o,o&&(i=this._items.indexOf(o))):typeof e=="number"?(i=e,o=this._items[i],r=!o,o&&(s=o[c])):(o=e,s=o[c],i=this._items.indexOf(o),r=i==-1||!this._itemMap.get(s)),r)throw new p("collection-remove-404",this);this._items.splice(i,1),this._itemMap.delete(s);const a=this._bindToInternalToExternalMap.get(o);return this._bindToInternalToExternalMap.delete(o),this._bindToExternalToInternalMap.delete(a),this.fire("remove",o,i),[o,i]}[Symbol.iterator](){return this._items[Symbol.iterator]()}}/**
83
+ */function Oe(e){return Array.isArray(e)?e:[e]}/* istanbul ignore else -- @preserve */w.window.CKEDITOR_TRANSLATIONS||(w.window.CKEDITOR_TRANSLATIONS={});function We(e,t,n=1,i){if(typeof n!="number")throw new d("translation-service-quantity-not-a-number",null,{quantity:n});const o=i||w.window.CKEDITOR_TRANSLATIONS,s=Ue(o);s===1&&(e=Object.keys(o)[0]);const r=t.id||t.string;if(s===0||!He(e,r,o))return n!==1?t.plural:t.string;const l=o[e].dictionary,c=o[e].getPluralForm||(u=>u===1?0:1),a=l[r];if(typeof a=="string")return a;const f=Number(c(n));return a[f]}function Ke(e){return Array.isArray(e)?e.reduce((t,n)=>Gt(t,n)):e}function He(e,t,n){return!!n[e]&&!!n[e].dictionary[t]}function Ue(e){return Object.keys(e).length}class Nn{uiLanguage;uiLanguageDirection;contentLanguage;contentLanguageDirection;t;translations;constructor({uiLanguage:t="en",contentLanguage:n,translations:i}={}){this.uiLanguage=t,this.contentLanguage=n||this.uiLanguage,this.uiLanguageDirection=wt(this.uiLanguage),this.contentLanguageDirection=wt(this.contentLanguage),this.translations=Ke(i),this.t=(o,s)=>this._t(o,s)}get language(){return console.warn("locale-deprecated-language-property: The Locale#language property has been deprecated and will be removed in the near future. Please use #uiLanguage and #contentLanguage properties instead."),this.uiLanguage}_t(t,n=[]){n=Oe(n),typeof t=="string"&&(t={string:t});const o=!!t.plural?n[0]:1,s=We(this.uiLanguage,t,o,this.translations);return $e(s,n)}}function $e(e,t){return e.replace(/%(\d+)/g,(n,i)=>i<t.length?t[i]:n)}class Bn extends T(){_items;_itemMap;_idProperty;_bindToCollection;_bindToExternalToInternalMap;_bindToInternalToExternalMap;_skippedIndexesFromExternal;constructor(t={},n={}){super();const i=z(t);if(i||(n=t),this._items=[],this._itemMap=new Map,this._idProperty=n.idProperty||"id",this._bindToExternalToInternalMap=new WeakMap,this._bindToInternalToExternalMap=new WeakMap,this._skippedIndexesFromExternal=[],i)for(const o of t)this._items.push(o),this._itemMap.set(this._getItemIdBeforeAdding(o),o)}get length(){return this._items.length}get first(){return this._items[0]||null}get last(){return this._items[this.length-1]||null}add(t,n){return this.addMany([t],n)}addMany(t,n){if(n===void 0)n=this._items.length;else if(n>this._items.length||n<0)throw new d("collection-add-item-invalid-index",this);let i=0;for(const o of t){const s=this._getItemIdBeforeAdding(o),r=n+i;this._items.splice(r,0,o),this._itemMap.set(s,o),this.fire("add",o,r),i++}return this.fire("change",{added:t,removed:[],index:n}),this}get(t){let n;if(typeof t=="string")n=this._itemMap.get(t);else if(typeof t=="number")n=this._items[t];else throw new d("collection-get-invalid-arg",this);return n||null}has(t){if(typeof t=="string")return this._itemMap.has(t);{const n=this._idProperty,i=t[n];return i&&this._itemMap.has(i)}}getIndex(t){let n;return typeof t=="string"?n=this._itemMap.get(t):n=t,n?this._items.indexOf(n):-1}remove(t){const[n,i]=this._remove(t);return this.fire("change",{added:[],removed:[n],index:i}),n}map(t,n){return this._items.map(t,n)}forEach(t,n){this._items.forEach(t,n)}find(t,n){return this._items.find(t,n)}filter(t,n){return this._items.filter(t,n)}clear(){this._bindToCollection&&(this.stopListening(this._bindToCollection),this._bindToCollection=null);const t=Array.from(this._items);for(;this.length;)this._remove(0);this.fire("change",{added:[],removed:t,index:0})}bindTo(t){if(this._bindToCollection)throw new d("collection-bind-to-rebind",this);return this._bindToCollection=t,{as:n=>{this._setUpBindToBinding(i=>new n(i))},using:n=>{typeof n=="function"?this._setUpBindToBinding(n):this._setUpBindToBinding(i=>i[n])}}}_setUpBindToBinding(t){const n=this._bindToCollection,i=(o,s,r)=>{const l=n._bindToCollection==this,c=n._bindToInternalToExternalMap.get(s);if(l&&c)this._bindToExternalToInternalMap.set(s,c),this._bindToInternalToExternalMap.set(c,s);else{const a=t(s);if(!a){this._skippedIndexesFromExternal.push(r);return}let f=r;for(const u of this._skippedIndexesFromExternal)r>u&&f--;for(const u of n._skippedIndexesFromExternal)f>=u&&f++;this._bindToExternalToInternalMap.set(s,a),this._bindToInternalToExternalMap.set(a,s),this.add(a,f);for(let u=0;u<n._skippedIndexesFromExternal.length;u++)f<=n._skippedIndexesFromExternal[u]&&n._skippedIndexesFromExternal[u]++}};for(const o of n)i(null,o,n.getIndex(o));this.listenTo(n,"add",i),this.listenTo(n,"remove",(o,s,r)=>{const l=this._bindToExternalToInternalMap.get(s);l&&this.remove(l),this._skippedIndexesFromExternal=this._skippedIndexesFromExternal.reduce((c,a)=>(r<a&&c.push(a-1),r>a&&c.push(a),c),[])})}_getItemIdBeforeAdding(t){const n=this._idProperty;let i;if(n in t){if(i=t[n],typeof i!="string")throw new d("collection-add-invalid-id",this);if(this.get(i))throw new d("collection-add-item-already-exists",this)}else t[n]=i=Q();return i}_remove(t){let n,i,o,s=!1;const r=this._idProperty;if(typeof t=="string"?(i=t,o=this._itemMap.get(i),s=!o,o&&(n=this._items.indexOf(o))):typeof t=="number"?(n=t,o=this._items[n],s=!o,o&&(i=o[r])):(o=t,i=o[r],n=this._items.indexOf(o),s=n==-1||!this._itemMap.get(i)),s)throw new d("collection-remove-404",this);this._items.splice(n,1),this._itemMap.delete(i);const l=this._bindToInternalToExternalMap.get(o);return this._bindToInternalToExternalMap.delete(o),this._bindToExternalToInternalMap.delete(l),this.fire("remove",o,n),[o,n]}[Symbol.iterator](){return this._items[Symbol.iterator]()}}/**
84
84
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
85
85
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
86
- */function Hn(t){const n=t.next();return n.done?null:n.value}class Xe extends j(Z()){constructor(){super();u(this,"_elements",new Set);u(this,"_externalViews",new Set);u(this,"_blurTimeout",null);this.set("isFocused",!1),this.set("focusedElement",null)}get elements(){return Array.from(this._elements.values())}get externalViews(){return Array.from(this._externalViews.values())}add(e){if(xt(e))this._addElement(e);else if(Tt(e))this._addView(e);else{if(!e.element)throw new p("focustracker-add-view-missing-element",{focusTracker:this,view:e});this._addElement(e.element)}}remove(e){xt(e)?this._removeElement(e):Tt(e)?this._removeView(e):this._removeElement(e.element)}_addElement(e){if(this._elements.has(e))throw new p("focustracker-add-element-already-exist",this);this.listenTo(e,"focus",()=>{const i=this.externalViews.find(s=>Je(e,s));i?this._focus(i.element):this._focus(e)},{useCapture:!0}),this.listenTo(e,"blur",()=>{this._blur()},{useCapture:!0}),this._elements.add(e)}_removeElement(e){this._elements.has(e)&&(this.stopListening(e),this._elements.delete(e)),e===this.focusedElement&&this._blur()}_addView(e){e.element&&this._addElement(e.element),this.listenTo(e.focusTracker,"change:focusedElement",()=>{e.focusTracker.focusedElement?e.element&&this._focus(e.element):this._blur()}),this._externalViews.add(e)}_removeView(e){e.element&&this._removeElement(e.element),this.stopListening(e.focusTracker),this._externalViews.delete(e)}destroy(){this.stopListening(),this._elements.clear(),this._externalViews.clear(),this.isFocused=!1,this.focusedElement=null}_focus(e){this._clearBlurTimeout(),this.focusedElement=e,this.isFocused=!0}_blur(){this.elements.find(s=>s.contains(document.activeElement))||this.externalViews.find(s=>s.focusTracker.isFocused&&!s.focusTracker._blurTimeout)||(this._clearBlurTimeout(),this._blurTimeout=setTimeout(()=>{this.focusedElement=null,this.isFocused=!1},0))}_clearBlurTimeout(){clearTimeout(this._blurTimeout),this._blurTimeout=null}}function Tt(t){return"focusTracker"in t&&t.focusTracker instanceof Xe}function xt(t){return Lt(t)}function Je(t,n){return It(t,n)?!0:!!n.focusTracker.externalViews.find(e=>It(t,e))}function It(t,n){return!!n.element&&n.element.contains(document.activeElement)&&t.contains(n.element)}class Un{constructor(){u(this,"_listener");this._listener=new(j())}listenTo(n){this._listener.listenTo(n,"keydown",(e,i)=>{this._listener.fire("_keydown:"+D(i),i)})}set(n,e,i={}){const s=$t(n),o=i.priority;this._listener.listenTo(this._listener,"_keydown:"+s,(r,c)=>{i.filter&&!i.filter(c)||(e(c,()=>{c.preventDefault(),c.stopPropagation(),r.stop()}),r.return=!0)},{priority:o})}press(n){return!!this._listener.fire("_keydown:"+D(n),n)}stopListening(n){this._listener.stopListening(n)}destroy(){this.stopListening()}}/**
86
+ */function Dn(e){const t=e.next();return t.done?null:t.value}class Ge extends D(Z()){_elements=new Set;_externalViews=new Set;_blurTimeout=null;constructor(){super(),this.set("isFocused",!1),this.set("focusedElement",null)}get elements(){return Array.from(this._elements.values())}get externalViews(){return Array.from(this._externalViews.values())}add(t){if(Et(t))this._addElement(t);else if(yt(t))this._addView(t);else{if(!t.element)throw new d("focustracker-add-view-missing-element",{focusTracker:this,view:t});this._addElement(t.element)}}remove(t){Et(t)?this._removeElement(t):yt(t)?this._removeView(t):this._removeElement(t.element)}_addElement(t){if(this._elements.has(t))throw new d("focustracker-add-element-already-exist",this);this.listenTo(t,"focus",()=>{const n=this.externalViews.find(i=>qe(t,i));n?this._focus(n.element):this._focus(t)},{useCapture:!0}),this.listenTo(t,"blur",()=>{this._blur()},{useCapture:!0}),this._elements.add(t)}_removeElement(t){this._elements.has(t)&&(this.stopListening(t),this._elements.delete(t)),t===this.focusedElement&&this._blur()}_addView(t){t.element&&this._addElement(t.element),this.listenTo(t.focusTracker,"change:focusedElement",()=>{t.focusTracker.focusedElement?t.element&&this._focus(t.element):this._blur()}),this._externalViews.add(t)}_removeView(t){t.element&&this._removeElement(t.element),this.stopListening(t.focusTracker),this._externalViews.delete(t)}destroy(){this.stopListening(),this._elements.clear(),this._externalViews.clear(),this.isFocused=!1,this.focusedElement=null}_focus(t){this._clearBlurTimeout(),this.focusedElement=t,this.isFocused=!0}_blur(){this.elements.find(i=>i.contains(document.activeElement))||this.externalViews.find(i=>i.focusTracker.isFocused&&!i.focusTracker._blurTimeout)||(this._clearBlurTimeout(),this._blurTimeout=setTimeout(()=>{this.focusedElement=null,this.isFocused=!1},0))}_clearBlurTimeout(){clearTimeout(this._blurTimeout),this._blurTimeout=null}}function yt(e){return"focusTracker"in e&&e.focusTracker instanceof Ge}function Et(e){return xt(e)}function qe(e,t){return Tt(e,t)?!0:!!t.focusTracker.externalViews.find(n=>Tt(e,n))}function Tt(e,t){return!!t.element&&t.element.contains(document.activeElement)&&e.contains(t.element)}class jn{_listener;constructor(){this._listener=new(D())}listenTo(t){this._listener.listenTo(t,"keydown",(n,i)=>{this._listener.fire("_keydown:"+B(i),i)})}set(t,n,i={}){const o=Ht(t),s=i.priority;this._listener.listenTo(this._listener,"_keydown:"+o,(r,l)=>{i.filter&&!i.filter(l)||(n(l,()=>{l.preventDefault(),l.stopPropagation(),r.stop()}),r.return=!0)},{priority:s})}press(t){return!!this._listener.fire("_keydown:"+B(t),t)}stopListening(t){this._listener.stopListening(t)}destroy(){this.stopListening()}}/**
87
87
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
88
88
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
89
- */function Qe(t){const n=new Map;for(const e in t)n.set(e,t[e]);return n}function $n(t){return tt(t)?new Map(t):Qe(t)}/**
89
+ */function Ye(e){const t=new Map;for(const n in e)t.set(n,e[n]);return t}function On(e){return z(e)?new Map(e):Ye(e)}/**
90
90
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
91
91
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
92
- */function Gn(t,n,e){const i=t.length,s=n.length;for(let o=i-1;o>=e;o--)t[o+s]=t[o];for(let o=0;o<s;o++)t[e+o]=n[o]}/**
92
+ */function Wn(e,t,n){const i=e.length,o=t.length;for(let s=i-1;s>=n;s--)e[s+o]=e[s];for(let s=0;s<o;s++)e[n+s]=t[s]}/**
93
93
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
94
94
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
95
- */function qn(t,n){let e;function i(...s){i.cancel(),e=setTimeout(()=>t(...s),n)}return i.cancel=()=>{clearTimeout(e)},i}/**
95
+ */function Kn(e,t){let n;function i(...o){i.cancel(),n=setTimeout(()=>e(...o),t)}return i.cancel=()=>{clearTimeout(n)},i}/**
96
96
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
97
97
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
98
- */function Yn(t){try{if(!t.startsWith("ey"))return null;const n=atob(t.replace(/-/g,"+").replace(/_/g,"/"));return JSON.parse(n)}catch{return null}}/**
98
+ */function Hn(e){try{if(!e.startsWith("ey"))return null;const t=atob(e.replace(/-/g,"+").replace(/_/g,"/"));return JSON.parse(t)}catch{return null}}/**
99
99
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
100
100
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
101
- */function Ze(){const t=[];for(let n=0;n<256;n++){let e=n;for(let i=0;i<8;i++)e&1?e=3988292384^e>>>1:e=e>>>1;t[n]=e}return t}function zn(t){const n=Array.isArray(t)?t:[t],e=Ze();let i=-1;const s=n.map(o=>Array.isArray(o)?o.join(""):String(o)).join("");for(let o=0;o<s.length;o++){const r=s.charCodeAt(o);i=i>>>8^e[(i^r)&255]}return i=(i^-1)>>>0,i.toString(16).padStart(8,"0")}/**
101
+ */function Xe(){const e=[];for(let t=0;t<256;t++){let n=t;for(let i=0;i<8;i++)n&1?n=3988292384^n>>>1:n=n>>>1;e[t]=n}return e}function Un(e){const t=Array.isArray(e)?e:[e],n=Xe();let i=-1;const o=t.map(s=>Array.isArray(s)?s.join(""):String(s)).join("");for(let s=0;s<o.length;s++){const r=o.charCodeAt(s);i=i>>>8^n[(i^r)&255]}return i=(i^-1)>>>0,i.toString(16).padStart(8,"0")}/**
102
102
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
103
103
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
104
- */function Xn(t){const n=[{name:"address",isVoid:!1},{name:"article",isVoid:!1},{name:"aside",isVoid:!1},{name:"blockquote",isVoid:!1},{name:"details",isVoid:!1},{name:"dialog",isVoid:!1},{name:"dd",isVoid:!1},{name:"div",isVoid:!1},{name:"dl",isVoid:!1},{name:"dt",isVoid:!1},{name:"fieldset",isVoid:!1},{name:"figcaption",isVoid:!1},{name:"figure",isVoid:!1},{name:"footer",isVoid:!1},{name:"form",isVoid:!1},{name:"h1",isVoid:!1},{name:"h2",isVoid:!1},{name:"h3",isVoid:!1},{name:"h4",isVoid:!1},{name:"h5",isVoid:!1},{name:"h6",isVoid:!1},{name:"header",isVoid:!1},{name:"hgroup",isVoid:!1},{name:"hr",isVoid:!0},{name:"li",isVoid:!1},{name:"main",isVoid:!1},{name:"nav",isVoid:!1},{name:"ol",isVoid:!1},{name:"p",isVoid:!1},{name:"section",isVoid:!1},{name:"table",isVoid:!1},{name:"tbody",isVoid:!1},{name:"td",isVoid:!1},{name:"th",isVoid:!1},{name:"thead",isVoid:!1},{name:"tr",isVoid:!1},{name:"ul",isVoid:!1}],e=n.map(r=>r.name).join("|"),i=t.replace(new RegExp(`</?(${e})( .*?)?>`,"g"),`
104
+ */function $n(e){const t=[{name:"address",isVoid:!1},{name:"article",isVoid:!1},{name:"aside",isVoid:!1},{name:"blockquote",isVoid:!1},{name:"details",isVoid:!1},{name:"dialog",isVoid:!1},{name:"dd",isVoid:!1},{name:"div",isVoid:!1},{name:"dl",isVoid:!1},{name:"dt",isVoid:!1},{name:"fieldset",isVoid:!1},{name:"figcaption",isVoid:!1},{name:"figure",isVoid:!1},{name:"footer",isVoid:!1},{name:"form",isVoid:!1},{name:"h1",isVoid:!1},{name:"h2",isVoid:!1},{name:"h3",isVoid:!1},{name:"h4",isVoid:!1},{name:"h5",isVoid:!1},{name:"h6",isVoid:!1},{name:"header",isVoid:!1},{name:"hgroup",isVoid:!1},{name:"hr",isVoid:!0},{name:"li",isVoid:!1},{name:"main",isVoid:!1},{name:"nav",isVoid:!1},{name:"ol",isVoid:!1},{name:"p",isVoid:!1},{name:"section",isVoid:!1},{name:"table",isVoid:!1},{name:"tbody",isVoid:!1},{name:"td",isVoid:!1},{name:"th",isVoid:!1},{name:"thead",isVoid:!1},{name:"tr",isVoid:!1},{name:"ul",isVoid:!1}],n=t.map(r=>r.name).join("|"),i=e.replace(new RegExp(`</?(${n})( .*?)?>`,"g"),`
105
105
  $&
106
106
  `).replace(/<br[^>]*>/g,`$&
107
107
  `).split(`
108
- `);let s=0,o=!1;return i.map(r=>(o=nn(r,o),!r.length&&!o?"":tn(r,n)?B(r,s++):en(r,n)?B(r,--s):o==="middle"||o==="last"?B(r,0):B(r,s))).join("").trimEnd()}function tn(t,n){return n.some(e=>!(e.isVoid||!new RegExp(`<${e.name}( .*?)?>`).test(t)))}function en(t,n){return n.some(e=>new RegExp(`</${e.name}>`).test(t))}function B(t,n,e=" "){return`${e.repeat(Math.max(0,n))}${t}
109
- `}function nn(t,n){const e=/<pre( .*?)?>/.test(t),i=/<\/pre>/.test(t);return e&&i?!1:e?"first":i?"last":n==="first"||n==="middle"?"middle":!1}/**
108
+ `);let o=0,s=!1;return i.map(r=>(s=Ze(r,s),!r.length&&!s?"":Je(r,t)?P(r,o++):Qe(r,t)?P(r,--o):s==="middle"||s==="last"?P(r,0):P(r,o))).join("").trimEnd()}function Je(e,t){return t.some(n=>!(n.isVoid||!new RegExp(`<${n.name}( .*?)?>`).test(e)))}function Qe(e,t){return t.some(n=>new RegExp(`</${n.name}>`).test(e))}function P(e,t,n=" "){return`${n.repeat(Math.max(0,t))}${e}
109
+ `}function Ze(e,t){const n=/<pre( .*?)?>/.test(e),i=/<\/pre>/.test(e);return n&&i?!1:n?"first":i?"last":t==="first"||t==="middle"?"middle":!1}/**
110
110
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
111
111
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
112
- */function sn(t){return!!t&&t.length==1&&/[\u0300-\u036f\u1ab0-\u1aff\u1dc0-\u1dff\u20d0-\u20ff\ufe20-\ufe2f]/.test(t)}function on(t){return!!t&&t.length==1&&/[\ud800-\udbff]/.test(t)}function rn(t){return!!t&&t.length==1&&/[\udc00-\udfff]/.test(t)}function Jn(t,n){return on(t.charAt(n-1))&&rn(t.charAt(n))}function Qn(t,n){return sn(t.charAt(n))}const ln=cn();function Zn(t,n){const e=String(t).matchAll(ln);return Array.from(e).some(i=>i.index<n&&n<i.index+i[0].length)}function cn(){const t=[new RegExp("\\p{Emoji}[\\u{E0020}-\\u{E007E}]+\\u{E007F}","u"),new RegExp("\\p{Emoji}\\u{FE0F}?\\u{20E3}","u"),new RegExp("\\p{Emoji}\\u{FE0F}","u"),new RegExp("(?=\\p{General_Category=Other_Symbol})\\p{Emoji}\\p{Emoji_Modifier}*","u")],n=new RegExp("\\p{Regional_Indicator}{2}","u").source,e="(?:"+t.map(s=>s.source).join("|")+")",i=`${n}|${e}(?:‍${e})*`;return new RegExp(i,"ug")}export{p as CKEditorError,Kn as Collection,In as Config,j as DomEmitterMixin,yn as ElementReplacer,L as EmitterMixin,q as EventInfo,Xe as FocusTracker,Un as KeystrokeHandler,Wn as Locale,Z as ObservableMixin,y as Rect,bt as ResizeObserver,Tn as compareArrays,En as count,zn as crc32,xn as createElement,qn as delay,vt as diff,F as env,oe as fastDiff,Hn as first,Xn as formatHtml,Ln as getAncestors,Bt as getBorderWidths,D as getCode,An as getDataFromElement,On as getEnvKeystrokeText,Et as getLanguageDirection,De as getLocalizedArrowKeyCodeDirection,Vn as getOptimalPosition,vn as getRangeFromMouseEvent,Nn as getVisualViewportOffset,T as global,Fn as indexOf,Mn as insertAt,ae as insertToPriorityArray,Dn as isArrowKeyCode,sn as isCombiningMark,kn as isComment,jn as isForwardArrowKeyCode,on as isHighSurrogateHalf,Qn as isInsideCombinedSymbol,Zn as isInsideEmojiSequence,Jn as isInsideSurrogatePair,tt as isIterable,rn as isLowSurrogateHalf,pt as isNode,nt as isRange,et as isText,Sn as isValidAttributeName,Tt as isViewWithFocusTracker,Fe as isVisible,w as keyCodes,_n as logError,bn as logWarning,Yn as parseBase64EncodedObject,$t as parseKeystroke,Y as priorities,wn as releaseDate,Pn as remove,Bn as scrollViewportToShowTarget,Cn as setDataInElement,Gn as spliceArray,Ue as toArray,$n as toMap,Rn as toUnit,Q as uid,de as version};
112
+ */function ze(e){return!!e&&e.length==1&&/[\u0300-\u036f\u1ab0-\u1aff\u1dc0-\u1dff\u20d0-\u20ff\ufe20-\ufe2f]/.test(e)}function tn(e){return!!e&&e.length==1&&/[\ud800-\udbff]/.test(e)}function en(e){return!!e&&e.length==1&&/[\udc00-\udfff]/.test(e)}function Gn(e,t){return tn(e.charAt(t-1))&&en(e.charAt(t))}function qn(e,t){return ze(e.charAt(t))}const nn=on();function Yn(e,t){const n=String(e).matchAll(nn);return Array.from(n).some(i=>i.index<t&&t<i.index+i[0].length)}function on(){const e=[new RegExp("\\p{Emoji}[\\u{E0020}-\\u{E007E}]+\\u{E007F}","u"),new RegExp("\\p{Emoji}\\u{FE0F}?\\u{20E3}","u"),new RegExp("\\p{Emoji}\\u{FE0F}","u"),new RegExp("(?=\\p{General_Category=Other_Symbol})\\p{Emoji}\\p{Emoji_Modifier}*","u")],t=new RegExp("\\p{Regional_Indicator}{2}","u").source,n="(?:"+e.map(o=>o.source).join("|")+")",i=`${t}|${n}(?:‍${n})*`;return new RegExp(i,"ug")}export{d as CKEditorError,Bn as Collection,wn as Config,D as DomEmitterMixin,gn as ElementReplacer,T as EmitterMixin,G as EventInfo,Ge as FocusTracker,jn as KeystrokeHandler,Nn as Locale,Z as ObservableMixin,m as Rect,h as ResizeObserver,bn as compareArrays,mn as count,Un as crc32,_n as createElement,Kn as delay,Lt as diff,A as env,ee as fastDiff,Dn as first,$n as formatHtml,yn as getAncestors,Pt as getBorderWidths,B as getCode,En as getDataFromElement,Vn as getEnvKeystrokeText,wt as getLanguageDirection,Pe as getLocalizedArrowKeyCodeDirection,Mn as getOptimalPosition,Tn as getRangeFromMouseEvent,vn as getVisualViewportOffset,w as global,Ln as indexOf,An as insertAt,se as insertToPriorityArray,Rn as isArrowKeyCode,ze as isCombiningMark,Cn as isComment,Pn as isForwardArrowKeyCode,tn as isHighSurrogateHalf,qn as isInsideCombinedSymbol,Yn as isInsideEmojiSequence,Gn as isInsideSurrogatePair,z as isIterable,en as isLowSurrogateHalf,ht as isNode,et as isRange,tt as isText,Fn as isValidAttributeName,yt as isViewWithFocusTracker,Ae as isVisible,g as keyCodes,hn as logError,dn as logWarning,Hn as parseBase64EncodedObject,Ht as parseKeystroke,q as priorities,pn as releaseDate,kn as remove,Sn as scrollViewportToShowTarget,xn as setDataInElement,Wn as spliceArray,Oe as toArray,On as toMap,In as toUnit,Q as uid,ce as version};