@hkyhy/marsun-components-core 0.1.82 → 0.1.98

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 (285) hide show
  1. package/dist/components/Audit/AuditLogList.d.ts +27 -0
  2. package/dist/components/Audit/AuditLogList.js +272 -0
  3. package/dist/components/Audit/AuditLogList.js.map +1 -0
  4. package/dist/components/Audit/formatAuditCurl.d.ts +27 -0
  5. package/dist/components/Audit/formatAuditCurl.js +115 -0
  6. package/dist/components/Audit/formatAuditCurl.js.map +1 -0
  7. package/dist/components/Audit/formatAuditJson.d.ts +15 -0
  8. package/dist/components/Audit/formatAuditJson.js +135 -0
  9. package/dist/components/Audit/formatAuditJson.js.map +1 -0
  10. package/dist/components/Audit/index.d.ts +3 -0
  11. package/dist/components/Audit/style.module.scss.js +30 -0
  12. package/dist/components/Audit/style.module.scss.js.map +1 -0
  13. package/dist/components/Audit/types.d.ts +39 -0
  14. package/dist/components/Editor/RichTextEditor/RichTextEditor.d.ts +24 -0
  15. package/dist/components/Editor/RichTextEditor/RichTextEditor.js +93 -0
  16. package/dist/components/Editor/RichTextEditor/RichTextEditor.js.map +1 -0
  17. package/dist/components/Editor/RichTextEditor/index.d.ts +2 -0
  18. package/dist/components/Editor/RichTextEditor/style.module.scss.js +11 -0
  19. package/dist/components/Editor/RichTextEditor/style.module.scss.js.map +1 -0
  20. package/dist/components/Editor/VariablePicker.d.ts +19 -0
  21. package/dist/components/Editor/VariablePicker.js +55 -0
  22. package/dist/components/Editor/VariablePicker.js.map +1 -0
  23. package/dist/components/Editor/index.d.ts +7 -0
  24. package/dist/components/Editor/index.js +21 -0
  25. package/dist/components/Editor/index.js.map +1 -0
  26. package/dist/components/Editor/msgVarTokenPlugin.d.ts +13 -0
  27. package/dist/components/Editor/msgVarTokenPlugin.js +94 -0
  28. package/dist/components/Editor/msgVarTokenPlugin.js.map +1 -0
  29. package/dist/components/Editor/variableMention.d.ts +37 -0
  30. package/dist/components/Editor/variableMention.js +64 -0
  31. package/dist/components/Editor/variableMention.js.map +1 -0
  32. package/dist/components/FormInfo/RichTextField/index.d.ts +21 -0
  33. package/dist/components/FormInfo/RichTextField/index.js +82 -0
  34. package/dist/components/FormInfo/RichTextField/index.js.map +1 -0
  35. package/dist/components/FormInfo/RichTextField/style.module.scss.js +9 -0
  36. package/dist/components/FormInfo/RichTextField/style.module.scss.js.map +1 -0
  37. package/dist/components/FormInfo/VariableMentionInput/index.d.ts +17 -0
  38. package/dist/components/FormInfo/VariableMentionInput/index.js +73 -0
  39. package/dist/components/FormInfo/VariableMentionInput/index.js.map +1 -0
  40. package/dist/components/FormInfo/VariableMentionInput/style.module.scss.js +11 -0
  41. package/dist/components/FormInfo/VariableMentionInput/style.module.scss.js.map +1 -0
  42. package/dist/components/FormInfo/fields.d.ts +5 -0
  43. package/dist/components/FormInfo/fields.js +32 -23
  44. package/dist/components/FormInfo/fields.js.map +1 -1
  45. package/dist/components/FormInfo/index.d.ts +4 -0
  46. package/dist/components/StateBar/StateBar.d.ts +19 -6
  47. package/dist/components/StateBar/StateBar.js +87 -50
  48. package/dist/components/StateBar/StateBar.js.map +1 -1
  49. package/dist/components/StateBar/style.module.scss.js +13 -10
  50. package/dist/components/StateBar/style.module.scss.js.map +1 -1
  51. package/dist/components/Table/ResizableHeaderCell.js +37 -38
  52. package/dist/components/Table/ResizableHeaderCell.js.map +1 -1
  53. package/dist/components/Table/Table.js +88 -89
  54. package/dist/components/Table/Table.js.map +1 -1
  55. package/dist/components/Table/columnConfigUtils.d.ts +1 -1
  56. package/dist/components/Table/columnConfigUtils.js.map +1 -1
  57. package/dist/components/Table/style.module.scss.js +34 -34
  58. package/dist/components/Tools/Inbox/InboxBell/InboxBell.d.ts +45 -0
  59. package/dist/components/Tools/Inbox/InboxBell/InboxBell.js +156 -0
  60. package/dist/components/Tools/Inbox/InboxBell/InboxBell.js.map +1 -0
  61. package/dist/components/Tools/Inbox/InboxBell/index.d.ts +2 -0
  62. package/dist/components/Tools/Inbox/InboxBell/style.module.scss.js +30 -0
  63. package/dist/components/Tools/Inbox/InboxBell/style.module.scss.js.map +1 -0
  64. package/dist/components/Tools/Inbox/index.d.ts +2 -0
  65. package/dist/components/Tools/MessageCenter/MessageTemplateAdmin/List/columns.d.ts +8 -0
  66. package/dist/components/Tools/MessageCenter/MessageTemplateAdmin/List/columns.js +56 -0
  67. package/dist/components/Tools/MessageCenter/MessageTemplateAdmin/List/columns.js.map +1 -0
  68. package/dist/components/Tools/MessageCenter/MessageTemplateAdmin/MessageTemplateAdmin.d.ts +8 -0
  69. package/dist/components/Tools/MessageCenter/MessageTemplateAdmin/MessageTemplateAdmin.js +216 -0
  70. package/dist/components/Tools/MessageCenter/MessageTemplateAdmin/MessageTemplateAdmin.js.map +1 -0
  71. package/dist/components/Tools/MessageCenter/MessageTemplateAdmin/Modal/TemplateFormModal.d.ts +26 -0
  72. package/dist/components/Tools/MessageCenter/MessageTemplateAdmin/Modal/TemplateFormModal.js +190 -0
  73. package/dist/components/Tools/MessageCenter/MessageTemplateAdmin/Modal/TemplateFormModal.js.map +1 -0
  74. package/dist/components/Tools/MessageCenter/MessageTemplateAdmin/index.d.ts +3 -0
  75. package/dist/components/Tools/MessageCenter/MessageTemplateAdmin/style.module.scss.js +12 -0
  76. package/dist/components/Tools/MessageCenter/MessageTemplateAdmin/style.module.scss.js.map +1 -0
  77. package/dist/components/Tools/MessageCenter/MessageTemplateAdmin/types.d.ts +76 -0
  78. package/dist/components/Tools/MessageCenter/MessageTemplateAdmin/types.js +26 -0
  79. package/dist/components/Tools/MessageCenter/MessageTemplateAdmin/types.js.map +1 -0
  80. package/dist/components/Tools/MessageCenter/index.d.ts +3 -0
  81. package/dist/components/Tools/MessageCenter/utils/templateCode.d.ts +8 -0
  82. package/dist/components/Tools/MessageCenter/utils/templateCode.js +25 -0
  83. package/dist/components/Tools/MessageCenter/utils/templateCode.js.map +1 -0
  84. package/dist/components/Tools/index.d.ts +5 -0
  85. package/dist/components/index.d.ts +3 -0
  86. package/dist/editor.d.ts +5 -0
  87. package/dist/editor.js +21 -0
  88. package/dist/editor.js.map +1 -0
  89. package/dist/form-info.js +33 -29
  90. package/dist/form-info.js.map +1 -1
  91. package/dist/index.d.ts +5 -0
  92. package/dist/index.js +805 -773
  93. package/dist/index.js.map +1 -1
  94. package/dist/marsun-components-core.css +4 -1
  95. package/dist/node_modules/@ckeditor/ckeditor5-basic-styles/dist/index.js +301 -0
  96. package/dist/node_modules/@ckeditor/ckeditor5-basic-styles/dist/index.js.map +1 -0
  97. package/dist/node_modules/@ckeditor/ckeditor5-clipboard/dist/index.js +1256 -0
  98. package/dist/node_modules/@ckeditor/ckeditor5-clipboard/dist/index.js.map +1 -0
  99. package/dist/node_modules/@ckeditor/ckeditor5-core/dist/index.js +2107 -0
  100. package/dist/node_modules/@ckeditor/ckeditor5-core/dist/index.js.map +1 -0
  101. package/dist/node_modules/@ckeditor/ckeditor5-editor-classic/dist/index.js +259 -0
  102. package/dist/node_modules/@ckeditor/ckeditor5-editor-classic/dist/index.js.map +1 -0
  103. package/dist/node_modules/@ckeditor/ckeditor5-engine/dist/index.js +23990 -0
  104. package/dist/node_modules/@ckeditor/ckeditor5-engine/dist/index.js.map +1 -0
  105. package/dist/node_modules/@ckeditor/ckeditor5-enter/dist/index.js +249 -0
  106. package/dist/node_modules/@ckeditor/ckeditor5-enter/dist/index.js.map +1 -0
  107. package/dist/node_modules/@ckeditor/ckeditor5-essentials/dist/index.js +47 -0
  108. package/dist/node_modules/@ckeditor/ckeditor5-essentials/dist/index.js.map +1 -0
  109. package/dist/node_modules/@ckeditor/ckeditor5-font/dist/index.js +100 -0
  110. package/dist/node_modules/@ckeditor/ckeditor5-font/dist/index.js.map +1 -0
  111. package/dist/node_modules/@ckeditor/ckeditor5-icons/dist/index.js +31 -0
  112. package/dist/node_modules/@ckeditor/ckeditor5-icons/dist/index.js.map +1 -0
  113. package/dist/node_modules/@ckeditor/ckeditor5-integrations-common/dist/index.js +194 -0
  114. package/dist/node_modules/@ckeditor/ckeditor5-integrations-common/dist/index.js.map +1 -0
  115. package/dist/node_modules/@ckeditor/ckeditor5-list/dist/index.js +2042 -0
  116. package/dist/node_modules/@ckeditor/ckeditor5-list/dist/index.js.map +1 -0
  117. package/dist/node_modules/@ckeditor/ckeditor5-mention/dist/index.js +9 -0
  118. package/dist/node_modules/@ckeditor/ckeditor5-mention/dist/index.js.map +1 -0
  119. package/dist/node_modules/@ckeditor/ckeditor5-paragraph/dist/index.js +167 -0
  120. package/dist/node_modules/@ckeditor/ckeditor5-paragraph/dist/index.js.map +1 -0
  121. package/dist/node_modules/@ckeditor/ckeditor5-react/dist/index.js +471 -0
  122. package/dist/node_modules/@ckeditor/ckeditor5-react/dist/index.js.map +1 -0
  123. package/dist/node_modules/@ckeditor/ckeditor5-select-all/dist/index.js +139 -0
  124. package/dist/node_modules/@ckeditor/ckeditor5-select-all/dist/index.js.map +1 -0
  125. package/dist/node_modules/@ckeditor/ckeditor5-typing/dist/index.js +755 -0
  126. package/dist/node_modules/@ckeditor/ckeditor5-typing/dist/index.js.map +1 -0
  127. package/dist/node_modules/@ckeditor/ckeditor5-ui/dist/index.js +7838 -0
  128. package/dist/node_modules/@ckeditor/ckeditor5-ui/dist/index.js.map +1 -0
  129. package/dist/node_modules/@ckeditor/ckeditor5-ui/node_modules/color-convert/conversions.js +422 -0
  130. package/dist/node_modules/@ckeditor/ckeditor5-ui/node_modules/color-convert/conversions.js.map +1 -0
  131. package/dist/node_modules/@ckeditor/ckeditor5-ui/node_modules/color-convert/index.js +33 -0
  132. package/dist/node_modules/@ckeditor/ckeditor5-ui/node_modules/color-convert/index.js.map +1 -0
  133. package/dist/node_modules/@ckeditor/ckeditor5-ui/node_modules/color-convert/route.js +47 -0
  134. package/dist/node_modules/@ckeditor/ckeditor5-ui/node_modules/color-convert/route.js.map +1 -0
  135. package/dist/node_modules/@ckeditor/ckeditor5-ui/node_modules/color-name/index.js +156 -0
  136. package/dist/node_modules/@ckeditor/ckeditor5-ui/node_modules/color-name/index.js.map +1 -0
  137. package/dist/node_modules/@ckeditor/ckeditor5-undo/dist/index.js +313 -0
  138. package/dist/node_modules/@ckeditor/ckeditor5-undo/dist/index.js.map +1 -0
  139. package/dist/node_modules/@ckeditor/ckeditor5-utils/dist/index.js +2942 -0
  140. package/dist/node_modules/@ckeditor/ckeditor5-utils/dist/index.js.map +1 -0
  141. package/dist/node_modules/@ckeditor/ckeditor5-watchdog/dist/index.js +892 -0
  142. package/dist/node_modules/@ckeditor/ckeditor5-watchdog/dist/index.js.map +1 -0
  143. package/dist/node_modules/@ckeditor/ckeditor5-widget/dist/index.js +1047 -0
  144. package/dist/node_modules/@ckeditor/ckeditor5-widget/dist/index.js.map +1 -0
  145. package/dist/node_modules/color-parse/node_modules/color-name/index.js +153 -0
  146. package/dist/node_modules/color-parse/node_modules/color-name/index.js.map +1 -0
  147. package/dist/node_modules/es-toolkit/dist/_internal/globalThis.js +7 -0
  148. package/dist/node_modules/es-toolkit/dist/_internal/globalThis.js.map +1 -0
  149. package/dist/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.js +7 -0
  150. package/dist/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.js.map +1 -0
  151. package/dist/node_modules/es-toolkit/dist/_internal/isUnsafeToWriteProperty.js +7 -0
  152. package/dist/node_modules/es-toolkit/dist/_internal/isUnsafeToWriteProperty.js.map +1 -0
  153. package/dist/node_modules/es-toolkit/dist/compat/_internal/assignValue.js +9 -0
  154. package/dist/node_modules/es-toolkit/dist/compat/_internal/assignValue.js.map +1 -0
  155. package/dist/node_modules/es-toolkit/dist/compat/_internal/getSymbols.js +7 -0
  156. package/dist/node_modules/es-toolkit/dist/compat/_internal/getSymbols.js.map +1 -0
  157. package/dist/node_modules/es-toolkit/dist/compat/_internal/getTag.js +7 -0
  158. package/dist/node_modules/es-toolkit/dist/compat/_internal/getTag.js.map +1 -0
  159. package/dist/node_modules/es-toolkit/dist/compat/_internal/isDeepKey.js +16 -0
  160. package/dist/node_modules/es-toolkit/dist/compat/_internal/isDeepKey.js.map +1 -0
  161. package/dist/node_modules/es-toolkit/dist/compat/_internal/isIndex.js +15 -0
  162. package/dist/node_modules/es-toolkit/dist/compat/_internal/isIndex.js.map +1 -0
  163. package/dist/node_modules/es-toolkit/dist/compat/_internal/isKey.js +9 -0
  164. package/dist/node_modules/es-toolkit/dist/compat/_internal/isKey.js.map +1 -0
  165. package/dist/node_modules/es-toolkit/dist/compat/_internal/isPrototype.js +8 -0
  166. package/dist/node_modules/es-toolkit/dist/compat/_internal/isPrototype.js.map +1 -0
  167. package/dist/node_modules/es-toolkit/dist/compat/_internal/tags.js +30 -0
  168. package/dist/node_modules/es-toolkit/dist/compat/_internal/tags.js.map +1 -0
  169. package/dist/node_modules/es-toolkit/dist/compat/_internal/toKey.js +8 -0
  170. package/dist/node_modules/es-toolkit/dist/compat/_internal/toKey.js.map +1 -0
  171. package/dist/node_modules/es-toolkit/dist/compat/function/debounce.js +17 -0
  172. package/dist/node_modules/es-toolkit/dist/compat/function/debounce.js.map +1 -0
  173. package/dist/node_modules/es-toolkit/dist/compat/function/throttle.js +13 -0
  174. package/dist/node_modules/es-toolkit/dist/compat/function/throttle.js.map +1 -0
  175. package/dist/node_modules/es-toolkit/dist/compat/object/assignIn.js +17 -0
  176. package/dist/node_modules/es-toolkit/dist/compat/object/assignIn.js.map +1 -0
  177. package/dist/node_modules/es-toolkit/dist/compat/object/clone.js +102 -0
  178. package/dist/node_modules/es-toolkit/dist/compat/object/clone.js.map +1 -0
  179. package/dist/node_modules/es-toolkit/dist/compat/object/cloneDeep.js +8 -0
  180. package/dist/node_modules/es-toolkit/dist/compat/object/cloneDeep.js.map +1 -0
  181. package/dist/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.js +33 -0
  182. package/dist/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.js.map +1 -0
  183. package/dist/node_modules/es-toolkit/dist/compat/object/get.js +39 -0
  184. package/dist/node_modules/es-toolkit/dist/compat/object/get.js.map +1 -0
  185. package/dist/node_modules/es-toolkit/dist/compat/object/has.js +21 -0
  186. package/dist/node_modules/es-toolkit/dist/compat/object/has.js.map +1 -0
  187. package/dist/node_modules/es-toolkit/dist/compat/object/keysIn.js +33 -0
  188. package/dist/node_modules/es-toolkit/dist/compat/object/keysIn.js.map +1 -0
  189. package/dist/node_modules/es-toolkit/dist/compat/object/mapValues.js +10 -0
  190. package/dist/node_modules/es-toolkit/dist/compat/object/mapValues.js.map +1 -0
  191. package/dist/node_modules/es-toolkit/dist/compat/object/merge.js +9 -0
  192. package/dist/node_modules/es-toolkit/dist/compat/object/merge.js.map +1 -0
  193. package/dist/node_modules/es-toolkit/dist/compat/object/mergeWith.js +53 -0
  194. package/dist/node_modules/es-toolkit/dist/compat/object/mergeWith.js.map +1 -0
  195. package/dist/node_modules/es-toolkit/dist/compat/object/property.js +10 -0
  196. package/dist/node_modules/es-toolkit/dist/compat/object/property.js.map +1 -0
  197. package/dist/node_modules/es-toolkit/dist/compat/object/set.js +9 -0
  198. package/dist/node_modules/es-toolkit/dist/compat/object/set.js.map +1 -0
  199. package/dist/node_modules/es-toolkit/dist/compat/object/updateWith.js +31 -0
  200. package/dist/node_modules/es-toolkit/dist/compat/object/updateWith.js.map +1 -0
  201. package/dist/node_modules/es-toolkit/dist/compat/predicate/isArguments.js +8 -0
  202. package/dist/node_modules/es-toolkit/dist/compat/predicate/isArguments.js.map +1 -0
  203. package/dist/node_modules/es-toolkit/dist/compat/predicate/isArray.js +7 -0
  204. package/dist/node_modules/es-toolkit/dist/compat/predicate/isArray.js.map +1 -0
  205. package/dist/node_modules/es-toolkit/dist/compat/predicate/isArrayLike.js +8 -0
  206. package/dist/node_modules/es-toolkit/dist/compat/predicate/isArrayLike.js.map +1 -0
  207. package/dist/node_modules/es-toolkit/dist/compat/predicate/isArrayLikeObject.js +9 -0
  208. package/dist/node_modules/es-toolkit/dist/compat/predicate/isArrayLikeObject.js.map +1 -0
  209. package/dist/node_modules/es-toolkit/dist/compat/predicate/isElement.js +9 -0
  210. package/dist/node_modules/es-toolkit/dist/compat/predicate/isElement.js.map +1 -0
  211. package/dist/node_modules/es-toolkit/dist/compat/predicate/isEqualWith.js +15 -0
  212. package/dist/node_modules/es-toolkit/dist/compat/predicate/isEqualWith.js.map +1 -0
  213. package/dist/node_modules/es-toolkit/dist/compat/predicate/isFunction.js +7 -0
  214. package/dist/node_modules/es-toolkit/dist/compat/predicate/isFunction.js.map +1 -0
  215. package/dist/node_modules/es-toolkit/dist/compat/predicate/isMatch.js +9 -0
  216. package/dist/node_modules/es-toolkit/dist/compat/predicate/isMatch.js.map +1 -0
  217. package/dist/node_modules/es-toolkit/dist/compat/predicate/isMatchWith.js +81 -0
  218. package/dist/node_modules/es-toolkit/dist/compat/predicate/isMatchWith.js.map +1 -0
  219. package/dist/node_modules/es-toolkit/dist/compat/predicate/isObject.js +7 -0
  220. package/dist/node_modules/es-toolkit/dist/compat/predicate/isObject.js.map +1 -0
  221. package/dist/node_modules/es-toolkit/dist/compat/predicate/isObjectLike.js +7 -0
  222. package/dist/node_modules/es-toolkit/dist/compat/predicate/isObjectLike.js.map +1 -0
  223. package/dist/node_modules/es-toolkit/dist/compat/predicate/isPlainObject.js +16 -0
  224. package/dist/node_modules/es-toolkit/dist/compat/predicate/isPlainObject.js.map +1 -0
  225. package/dist/node_modules/es-toolkit/dist/compat/predicate/isString.js +7 -0
  226. package/dist/node_modules/es-toolkit/dist/compat/predicate/isString.js.map +1 -0
  227. package/dist/node_modules/es-toolkit/dist/compat/predicate/isSymbol.js +7 -0
  228. package/dist/node_modules/es-toolkit/dist/compat/predicate/isSymbol.js.map +1 -0
  229. package/dist/node_modules/es-toolkit/dist/compat/predicate/isTypedArray.js +8 -0
  230. package/dist/node_modules/es-toolkit/dist/compat/predicate/isTypedArray.js.map +1 -0
  231. package/dist/node_modules/es-toolkit/dist/compat/predicate/matches.js +9 -0
  232. package/dist/node_modules/es-toolkit/dist/compat/predicate/matches.js.map +1 -0
  233. package/dist/node_modules/es-toolkit/dist/compat/predicate/matchesProperty.js +23 -0
  234. package/dist/node_modules/es-toolkit/dist/compat/predicate/matchesProperty.js.map +1 -0
  235. package/dist/node_modules/es-toolkit/dist/compat/util/eq.js +7 -0
  236. package/dist/node_modules/es-toolkit/dist/compat/util/eq.js.map +1 -0
  237. package/dist/node_modules/es-toolkit/dist/compat/util/iteratee.js +19 -0
  238. package/dist/node_modules/es-toolkit/dist/compat/util/iteratee.js.map +1 -0
  239. package/dist/node_modules/es-toolkit/dist/compat/util/times.js +11 -0
  240. package/dist/node_modules/es-toolkit/dist/compat/util/times.js.map +1 -0
  241. package/dist/node_modules/es-toolkit/dist/compat/util/toFinite.js +8 -0
  242. package/dist/node_modules/es-toolkit/dist/compat/util/toFinite.js.map +1 -0
  243. package/dist/node_modules/es-toolkit/dist/compat/util/toInteger.js +9 -0
  244. package/dist/node_modules/es-toolkit/dist/compat/util/toInteger.js.map +1 -0
  245. package/dist/node_modules/es-toolkit/dist/compat/util/toNumber.js +8 -0
  246. package/dist/node_modules/es-toolkit/dist/compat/util/toNumber.js.map +1 -0
  247. package/dist/node_modules/es-toolkit/dist/compat/util/toPath.js +37 -0
  248. package/dist/node_modules/es-toolkit/dist/compat/util/toPath.js.map +1 -0
  249. package/dist/node_modules/es-toolkit/dist/compat/util/toString.js +15 -0
  250. package/dist/node_modules/es-toolkit/dist/compat/util/toString.js.map +1 -0
  251. package/dist/node_modules/es-toolkit/dist/function/after.js +11 -0
  252. package/dist/node_modules/es-toolkit/dist/function/after.js.map +1 -0
  253. package/dist/node_modules/es-toolkit/dist/function/debounce.js +30 -0
  254. package/dist/node_modules/es-toolkit/dist/function/debounce.js.map +1 -0
  255. package/dist/node_modules/es-toolkit/dist/function/identity.js +7 -0
  256. package/dist/node_modules/es-toolkit/dist/function/identity.js.map +1 -0
  257. package/dist/node_modules/es-toolkit/dist/function/noop.js +6 -0
  258. package/dist/node_modules/es-toolkit/dist/function/noop.js.map +1 -0
  259. package/dist/node_modules/es-toolkit/dist/object/clone.js +27 -0
  260. package/dist/node_modules/es-toolkit/dist/object/clone.js.map +1 -0
  261. package/dist/node_modules/es-toolkit/dist/object/cloneDeep.js +8 -0
  262. package/dist/node_modules/es-toolkit/dist/object/cloneDeep.js.map +1 -0
  263. package/dist/node_modules/es-toolkit/dist/object/cloneDeepWith.js +121 -0
  264. package/dist/node_modules/es-toolkit/dist/object/cloneDeepWith.js.map +1 -0
  265. package/dist/node_modules/es-toolkit/dist/object/mapValues.js +12 -0
  266. package/dist/node_modules/es-toolkit/dist/object/mapValues.js.map +1 -0
  267. package/dist/node_modules/es-toolkit/dist/predicate/isBuffer.js +8 -0
  268. package/dist/node_modules/es-toolkit/dist/predicate/isBuffer.js.map +1 -0
  269. package/dist/node_modules/es-toolkit/dist/predicate/isEqual.js +9 -0
  270. package/dist/node_modules/es-toolkit/dist/predicate/isEqual.js.map +1 -0
  271. package/dist/node_modules/es-toolkit/dist/predicate/isEqualWith.js +110 -0
  272. package/dist/node_modules/es-toolkit/dist/predicate/isEqualWith.js.map +1 -0
  273. package/dist/node_modules/es-toolkit/dist/predicate/isLength.js +7 -0
  274. package/dist/node_modules/es-toolkit/dist/predicate/isLength.js.map +1 -0
  275. package/dist/node_modules/es-toolkit/dist/predicate/isPlainObject.js +9 -0
  276. package/dist/node_modules/es-toolkit/dist/predicate/isPlainObject.js.map +1 -0
  277. package/dist/node_modules/es-toolkit/dist/predicate/isPrimitive.js +7 -0
  278. package/dist/node_modules/es-toolkit/dist/predicate/isPrimitive.js.map +1 -0
  279. package/dist/node_modules/es-toolkit/dist/predicate/isTypedArray.js +7 -0
  280. package/dist/node_modules/es-toolkit/dist/predicate/isTypedArray.js.map +1 -0
  281. package/dist/styles/global.css +4 -1
  282. package/dist/utils/copyText.d.ts +4 -0
  283. package/dist/utils/copyText.js +21 -0
  284. package/dist/utils/copyText.js.map +1 -0
  285. package/package.json +9 -2
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../node_modules/@ckeditor/ckeditor5-core/dist/index.js"],"sourcesContent":["/**\n * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options\n */\nimport { CKEditorError, Collection, Config, EmitterMixin, KeystrokeHandler, Locale, ObservableMixin, crc32, decodeLicenseKey, env, getDataFromElement, global, insertToPriorityArray, isFeatureBlockedByLicenseKey, logError, logWarning, releaseDate, setDataInElement, toArray, uid } from \"@ckeditor/ckeditor5-utils\";\nimport { get, isElement, isFunction, isPlainObject, set } from \"es-toolkit/compat\";\nimport { Conversion, DataController, EditingController, Model, StylesProcessor } from \"@ckeditor/ckeditor5-engine\";\nimport { ContextWatchdog, EditorWatchdog } from \"@ckeditor/ckeditor5-watchdog\";\n\n/**\n* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.\n* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options\n*/\n/**\n* @module core/plugin\n*/\nconst PluginBase = /* #__PURE__ */ ObservableMixin();\n/**\n* The base class for CKEditor plugin classes.\n*/\nvar Plugin = class extends PluginBase {\n\t/**\n\t* The editor instance.\n\t*\n\t* Note that most editors implement the {@link module:core/editor/editor~Editor#ui} property.\n\t* However, editors with an external UI (i.e. Bootstrap-based) or a headless editor may not have this property or\n\t* throw an error when accessing it.\n\t*\n\t* Because of above, to make plugins more universal, it is recommended to split features into:\n\t* - The \"editing\" part that uses the {@link module:core/editor/editor~Editor} class without `ui` property.\n\t* - The \"UI\" part that uses the {@link module:core/editor/editor~Editor} class and accesses `ui` property.\n\t*/\n\teditor;\n\t/**\n\t* Holds identifiers for {@link #forceDisabled} mechanism.\n\t*/\n\t_disableStack = /* @__PURE__ */ new Set();\n\t/**\n\t* @inheritDoc\n\t*/\n\tconstructor(editor) {\n\t\tsuper();\n\t\tthis.editor = editor;\n\t\tthis.set(\"isEnabled\", true);\n\t}\n\t/**\n\t* Disables the plugin.\n\t*\n\t* Plugin may be disabled by multiple features or algorithms (at once). When disabling a plugin, unique id should be passed\n\t* (e.g. feature name). The same identifier should be used when {@link #clearForceDisabled enabling back} the plugin.\n\t* The plugin becomes enabled only after all features {@link #clearForceDisabled enabled it back}.\n\t*\n\t* Disabling and enabling a plugin:\n\t*\n\t* ```ts\n\t* plugin.isEnabled; // -> true\n\t* plugin.forceDisabled( 'MyFeature' );\n\t* plugin.isEnabled; // -> false\n\t* plugin.clearForceDisabled( 'MyFeature' );\n\t* plugin.isEnabled; // -> true\n\t* ```\n\t*\n\t* Plugin disabled by multiple features:\n\t*\n\t* ```ts\n\t* plugin.forceDisabled( 'MyFeature' );\n\t* plugin.forceDisabled( 'OtherFeature' );\n\t* plugin.clearForceDisabled( 'MyFeature' );\n\t* plugin.isEnabled; // -> false\n\t* plugin.clearForceDisabled( 'OtherFeature' );\n\t* plugin.isEnabled; // -> true\n\t* ```\n\t*\n\t* Multiple disabling with the same identifier is redundant:\n\t*\n\t* ```ts\n\t* plugin.forceDisabled( 'MyFeature' );\n\t* plugin.forceDisabled( 'MyFeature' );\n\t* plugin.clearForceDisabled( 'MyFeature' );\n\t* plugin.isEnabled; // -> true\n\t* ```\n\t*\n\t* **Note:** some plugins or algorithms may have more complex logic when it comes to enabling or disabling certain plugins,\n\t* so the plugin might be still disabled after {@link #clearForceDisabled} was used.\n\t*\n\t* @param id Unique identifier for disabling. Use the same id when {@link #clearForceDisabled enabling back} the plugin.\n\t*/\n\tforceDisabled(id) {\n\t\tthis._disableStack.add(id);\n\t\tif (this._disableStack.size == 1) {\n\t\t\tthis.on(\"set:isEnabled\", forceDisable$1, { priority: \"highest\" });\n\t\t\tthis.isEnabled = false;\n\t\t}\n\t}\n\t/**\n\t* Clears forced disable previously set through {@link #forceDisabled}. See {@link #forceDisabled}.\n\t*\n\t* @param id Unique identifier, equal to the one passed in {@link #forceDisabled} call.\n\t*/\n\tclearForceDisabled(id) {\n\t\tthis._disableStack.delete(id);\n\t\tif (this._disableStack.size == 0) {\n\t\t\tthis.off(\"set:isEnabled\", forceDisable$1);\n\t\t\tthis.isEnabled = true;\n\t\t}\n\t}\n\t/**\n\t* @inheritDoc\n\t*/\n\tdestroy() {\n\t\tthis.stopListening();\n\t}\n\t/**\n\t* @inheritDoc\n\t*/\n\tstatic get isContextPlugin() {\n\t\treturn false;\n\t}\n\t/**\n\t* @inheritDoc\n\t* @internal\n\t*/\n\tstatic get isOfficialPlugin() {\n\t\treturn false;\n\t}\n\t/**\n\t* @inheritDoc\n\t* @internal\n\t*/\n\tstatic get isPremiumPlugin() {\n\t\treturn false;\n\t}\n};\n/**\n* Helper function that forces plugin to be disabled.\n*/\nfunction forceDisable$1(evt) {\n\tevt.return = false;\n\tevt.stop();\n}\n\n/**\n* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.\n* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options\n*/\n/**\n* @module core/command\n*/\nconst CommandBase = /* #__PURE__ */ ObservableMixin();\n/**\n* Base class for the CKEditor commands.\n*\n* Commands are the main way to manipulate the editor contents and state. They are mostly used by UI elements (or by other\n* commands) to make changes in the model. Commands are available in every part of the code that has access to\n* the {@link module:core/editor/editor~Editor editor} instance.\n*\n* Instances of registered commands can be retrieved from {@link module:core/editor/editor~Editor#commands `editor.commands`}.\n* The easiest way to execute a command is through {@link module:core/editor/editor~Editor#execute `editor.execute()`}.\n*\n* By default, commands are disabled when the editor is in the {@link module:core/editor/editor~Editor#isReadOnly read-only} mode\n* but commands with the {@link module:core/command~Command#affectsData `affectsData`} flag set to `false` will not be disabled.\n*/\nvar Command = class extends CommandBase {\n\t/**\n\t* The editor on which this command will be used.\n\t*/\n\teditor;\n\t/**\n\t* A flag indicating whether a command's `isEnabled` state should be changed depending on where the document\n\t* selection is placed.\n\t*\n\t* By default, it is set to `true`. If the document selection is placed in a\n\t* {@link module:engine/model/model~Model#canEditAt non-editable} place (such as non-editable root), the command becomes disabled.\n\t*\n\t* The flag should be changed to `false` in a concrete command's constructor if the command should not change its `isEnabled`\n\t* accordingly to the document selection.\n\t*/\n\t_isEnabledBasedOnSelection;\n\t/**\n\t* A flag indicating whether a command execution changes the editor data or not.\n\t*\n\t* @see #affectsData\n\t*/\n\t_affectsData;\n\t/**\n\t* Holds identifiers for {@link #forceDisabled} mechanism.\n\t*/\n\t_disableStack;\n\t/**\n\t* `Command` class is commonly put in `config.plugins` array.\n\t*\n\t* This property helps with better error detection.\n\t*\n\t* @internal\n\t*/\n\tstatic get _throwErrorWhenUsedAsAPlugin() {\n\t\treturn true;\n\t}\n\t/**\n\t* Creates a new `Command` instance.\n\t*\n\t* @param editor The editor on which this command will be used.\n\t*/\n\tconstructor(editor) {\n\t\tsuper();\n\t\tthis.editor = editor;\n\t\tthis.set(\"value\", void 0);\n\t\tthis.set(\"isEnabled\", false);\n\t\tthis._affectsData = true;\n\t\tthis._isEnabledBasedOnSelection = true;\n\t\tthis._disableStack = /* @__PURE__ */ new Set();\n\t\tthis.decorate(\"execute\");\n\t\tthis.listenTo(this.editor.model.document, \"change\", () => {\n\t\t\tthis.refresh();\n\t\t});\n\t\tthis.listenTo(editor, \"change:isReadOnly\", () => {\n\t\t\tthis.refresh();\n\t\t});\n\t\tthis.on(\"set:isEnabled\", (evt) => {\n\t\t\tif (!this.affectsData) return;\n\t\t\tconst selection = editor.model.document.selection;\n\t\t\tconst canEditAtSelection = !(selection.getFirstPosition().root.rootName == \"$graveyard\") && editor.model.canEditAt(selection);\n\t\t\tif (editor.isReadOnly || this._isEnabledBasedOnSelection && !canEditAtSelection) {\n\t\t\t\tevt.return = false;\n\t\t\t\tevt.stop();\n\t\t\t}\n\t\t}, { priority: \"highest\" });\n\t\tthis.on(\"execute\", (evt) => {\n\t\t\tif (!this.isEnabled) evt.stop();\n\t\t}, { priority: \"high\" });\n\t}\n\t/**\n\t* A flag indicating whether a command execution changes the editor data or not.\n\t*\n\t* Commands with `affectsData` set to `false` will not be automatically disabled in\n\t* the {@link module:core/editor/editor~Editor#isReadOnly read-only mode} and\n\t* {@glink features/read-only#related-features other editor modes} with restricted user write permissions.\n\t*\n\t* **Note:** You do not have to set it for your every command. It is `true` by default.\n\t*\n\t* @default true\n\t*/\n\tget affectsData() {\n\t\treturn this._affectsData;\n\t}\n\tset affectsData(affectsData) {\n\t\tthis._affectsData = affectsData;\n\t}\n\t/**\n\t* Refreshes the command. The command should update its {@link #isEnabled} and {@link #value} properties\n\t* in this method.\n\t*\n\t* This method is automatically called when\n\t* {@link module:engine/model/document~ModelDocument#event:change any changes are applied to the document}.\n\t*/\n\trefresh() {\n\t\tthis.isEnabled = true;\n\t}\n\t/**\n\t* Disables the command.\n\t*\n\t* Command may be disabled by multiple features or algorithms (at once). When disabling a command, unique id should be passed\n\t* (e.g. the feature name). The same identifier should be used when {@link #clearForceDisabled enabling back} the command.\n\t* The command becomes enabled only after all features {@link #clearForceDisabled enabled it back}.\n\t*\n\t* Disabling and enabling a command:\n\t*\n\t* ```ts\n\t* command.isEnabled; // -> true\n\t* command.forceDisabled( 'MyFeature' );\n\t* command.isEnabled; // -> false\n\t* command.clearForceDisabled( 'MyFeature' );\n\t* command.isEnabled; // -> true\n\t* ```\n\t*\n\t* Command disabled by multiple features:\n\t*\n\t* ```ts\n\t* command.forceDisabled( 'MyFeature' );\n\t* command.forceDisabled( 'OtherFeature' );\n\t* command.clearForceDisabled( 'MyFeature' );\n\t* command.isEnabled; // -> false\n\t* command.clearForceDisabled( 'OtherFeature' );\n\t* command.isEnabled; // -> true\n\t* ```\n\t*\n\t* Multiple disabling with the same identifier is redundant:\n\t*\n\t* ```ts\n\t* command.forceDisabled( 'MyFeature' );\n\t* command.forceDisabled( 'MyFeature' );\n\t* command.clearForceDisabled( 'MyFeature' );\n\t* command.isEnabled; // -> true\n\t* ```\n\t*\n\t* **Note:** some commands or algorithms may have more complex logic when it comes to enabling or disabling certain commands,\n\t* so the command might be still disabled after {@link #clearForceDisabled} was used.\n\t*\n\t* @param id Unique identifier for disabling. Use the same id when {@link #clearForceDisabled enabling back} the command.\n\t*/\n\tforceDisabled(id) {\n\t\tthis._disableStack.add(id);\n\t\tif (this._disableStack.size == 1) {\n\t\t\tthis.on(\"set:isEnabled\", forceDisable, { priority: \"highest\" });\n\t\t\tthis.isEnabled = false;\n\t\t}\n\t}\n\t/**\n\t* Clears forced disable previously set through {@link #forceDisabled}. See {@link #forceDisabled}.\n\t*\n\t* @param id Unique identifier, equal to the one passed in {@link #forceDisabled} call.\n\t*/\n\tclearForceDisabled(id) {\n\t\tthis._disableStack.delete(id);\n\t\tif (this._disableStack.size == 0) {\n\t\t\tthis.off(\"set:isEnabled\", forceDisable);\n\t\t\tthis.refresh();\n\t\t}\n\t}\n\t/**\n\t* Executes the command.\n\t*\n\t* A command may accept parameters. They will be passed from {@link module:core/editor/editor~Editor#execute `editor.execute()`}\n\t* to the command.\n\t*\n\t* The `execute()` method will automatically abort when the command is disabled ({@link #isEnabled} is `false`).\n\t* This behavior is implemented by a high priority listener to the {@link #event:execute} event.\n\t*\n\t* In order to see how to disable a command from \"outside\" see the {@link #isEnabled} documentation.\n\t*\n\t* This method may return a value, which would be forwarded all the way down to the\n\t* {@link module:core/editor/editor~Editor#execute `editor.execute()`}.\n\t*\n\t* @fires execute\n\t*/\n\texecute(...args) {}\n\t/**\n\t* Destroys the command.\n\t*/\n\tdestroy() {\n\t\tthis.stopListening();\n\t}\n};\n/**\n* Helper function that forces command to be disabled.\n*/\nfunction forceDisable(evt) {\n\tevt.return = false;\n\tevt.stop();\n}\n\n/**\n* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.\n* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options\n*/\n/**\n* @module core/multicommand\n*/\n/**\n* A CKEditor command that aggregates other commands.\n*\n* This command is used to proxy multiple commands. The multi-command is enabled when\n* at least one of its registered child commands is enabled.\n* When executing a multi-command, the first enabled command with highest priority will be executed.\n*\n* ```ts\n* const multiCommand = new MultiCommand( editor );\n*\n* const commandFoo = new Command( editor );\n* const commandBar = new Command( editor );\n*\n* // Register a child command.\n* multiCommand.registerChildCommand( commandFoo );\n* // Register a child command with a low priority.\n* multiCommand.registerChildCommand( commandBar, { priority: 'low' } );\n*\n* // Enable one of the commands.\n* commandBar.isEnabled = true;\n*\n* multiCommand.execute(); // Will execute commandBar.\n* ```\n*/\nvar MultiCommand = class extends Command {\n\t/**\n\t* Registered child commands definitions.\n\t*/\n\t_childCommandsDefinitions = [];\n\t/**\n\t* @inheritDoc\n\t*/\n\trefresh() {}\n\t/**\n\t* Executes the first enabled command which has the highest priority of all registered child commands.\n\t*\n\t* @returns The value returned by the {@link module:core/command~Command#execute `command.execute()`}.\n\t*/\n\texecute(...args) {\n\t\tconst command = this._getFirstEnabledCommand();\n\t\treturn !!command && command.execute(args);\n\t}\n\t/**\n\t* Registers a child command.\n\t*\n\t* @param options An object with configuration options.\n\t* @param options.priority Priority of a command to register.\n\t*/\n\tregisterChildCommand(command, options = {}) {\n\t\tinsertToPriorityArray(this._childCommandsDefinitions, {\n\t\t\tcommand,\n\t\t\tpriority: options.priority || \"normal\"\n\t\t});\n\t\tcommand.on(\"change:isEnabled\", () => this._checkEnabled());\n\t\tthis._checkEnabled();\n\t}\n\t/**\n\t* Checks if any of child commands is enabled.\n\t*/\n\t_checkEnabled() {\n\t\tthis.isEnabled = !!this._getFirstEnabledCommand();\n\t}\n\t/**\n\t* Returns a first enabled command with the highest priority or `undefined` if none of them is enabled.\n\t*/\n\t_getFirstEnabledCommand() {\n\t\tconst commandDefinition = this._childCommandsDefinitions.find(({ command }) => command.isEnabled);\n\t\treturn commandDefinition && commandDefinition.command;\n\t}\n};\n\n/**\n* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.\n* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options\n*/\n/**\n* @module core/commandcollection\n*/\n/**\n* Collection of commands. Its instance is available in {@link module:core/editor/editor~Editor#commands `editor.commands`}.\n*/\nvar CommandCollection = class {\n\t/**\n\t* Command map.\n\t*/\n\t_commands;\n\t/**\n\t* Creates collection instance.\n\t*/\n\tconstructor() {\n\t\tthis._commands = /* @__PURE__ */ new Map();\n\t}\n\t/**\n\t* Registers a new command.\n\t*\n\t* @param commandName The name of the command.\n\t*/\n\tadd(commandName, command) {\n\t\tthis._commands.set(commandName, command);\n\t}\n\t/**\n\t* Retrieves a command from the collection.\n\t*\n\t* @param commandName The name of the command.\n\t*/\n\tget(commandName) {\n\t\treturn this._commands.get(commandName);\n\t}\n\t/**\n\t* Executes a command.\n\t*\n\t* @param commandName The name of the command.\n\t* @param commandParams Command parameters.\n\t* @returns The value returned by the {@link module:core/command~Command#execute `command.execute()`}.\n\t*/\n\texecute(commandName, ...commandParams) {\n\t\tconst command = this.get(commandName);\n\t\tif (!command)\n /**\n\t\t* Command does not exist.\n\t\t*\n\t\t* @error commandcollection-command-not-found\n\t\t* @param {string} commandName Name of the command.\n\t\t*/\n\t\tthrow new CKEditorError(\"commandcollection-command-not-found\", this, { commandName });\n\t\treturn command.execute(...commandParams);\n\t}\n\t/**\n\t* Returns iterator of command names.\n\t*/\n\t*names() {\n\t\tyield* this._commands.keys();\n\t}\n\t/**\n\t* Returns iterator of command instances.\n\t*/\n\t*commands() {\n\t\tyield* this._commands.values();\n\t}\n\t/**\n\t* Iterable interface.\n\t*\n\t* Returns `[ commandName, commandInstance ]` pairs.\n\t*/\n\t[Symbol.iterator]() {\n\t\treturn this._commands[Symbol.iterator]();\n\t}\n\t/**\n\t* Destroys all collection commands.\n\t*/\n\tdestroy() {\n\t\tfor (const command of this.commands()) command.destroy();\n\t}\n};\n\n/**\n* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.\n* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options\n*/\n/**\n* @module core/plugincollection\n*/\nconst PluginCollectionBase = /* #__PURE__ */ EmitterMixin();\n/**\n* Manages a list of CKEditor plugins, including loading, resolving dependencies and initialization.\n*/\nvar PluginCollection = class extends PluginCollectionBase {\n\t_context;\n\t_plugins = /* @__PURE__ */ new Map();\n\t/**\n\t* A map of plugin constructors that can be retrieved by their names.\n\t*/\n\t_availablePlugins;\n\t/**\n\t* Map of {@link module:core/contextplugin~ContextPlugin context plugins} which can be retrieved by their constructors or instances.\n\t*/\n\t_contextPlugins;\n\t/**\n\t* Creates an instance of the plugin collection class.\n\t* Allows loading and initializing plugins and their dependencies.\n\t* Allows providing a list of already loaded plugins. These plugins will not be destroyed along with this collection.\n\t*\n\t* @param availablePlugins Plugins (constructors) which the collection will be able to use\n\t* when {@link module:core/plugincollection~PluginCollection#init} is used with the plugin names (strings, instead of constructors).\n\t* Usually, the editor will pass its built-in plugins to the collection so they can later be\n\t* used in `config.plugins` or `config.removePlugins` by names.\n\t* @param contextPlugins A list of already initialized plugins represented by a `[ PluginConstructor, pluginInstance ]` pair.\n\t*/\n\tconstructor(context, availablePlugins = [], contextPlugins = []) {\n\t\tsuper();\n\t\tthis._context = context;\n\t\tthis._availablePlugins = /* @__PURE__ */ new Map();\n\t\tfor (const PluginConstructor of availablePlugins) if (PluginConstructor.pluginName) this._availablePlugins.set(PluginConstructor.pluginName, PluginConstructor);\n\t\tthis._contextPlugins = /* @__PURE__ */ new Map();\n\t\tfor (const [PluginConstructor, pluginInstance] of contextPlugins) {\n\t\t\tthis._contextPlugins.set(PluginConstructor, pluginInstance);\n\t\t\tthis._contextPlugins.set(pluginInstance, PluginConstructor);\n\t\t\tif (PluginConstructor.pluginName) this._availablePlugins.set(PluginConstructor.pluginName, PluginConstructor);\n\t\t}\n\t}\n\t/**\n\t* Iterable interface.\n\t*\n\t* Returns `[ PluginConstructor, pluginInstance ]` pairs.\n\t*/\n\t*[Symbol.iterator]() {\n\t\tfor (const entry of this._plugins) if (typeof entry[0] == \"function\") yield entry;\n\t}\n\t/**\n\t* Gets the plugin instance by its constructor or name.\n\t*\n\t* ```ts\n\t* // Check if 'Clipboard' plugin was loaded.\n\t* if ( editor.plugins.has( 'ClipboardPipeline' ) ) {\n\t* \t// Get clipboard plugin instance\n\t* \tconst clipboard = editor.plugins.get( 'ClipboardPipeline' );\n\t*\n\t* \tthis.listenTo( clipboard, 'inputTransformation', ( evt, data ) => {\n\t* \t\t// Do something on clipboard input.\n\t* \t} );\n\t* }\n\t* ```\n\t*\n\t* **Note**: This method will throw an error if a plugin is not loaded. Use `{@link #has editor.plugins.has()}`\n\t* to check if a plugin is available.\n\t*\n\t* @param key The plugin constructor or {@link module:core/plugin~PluginStaticMembers#pluginName name}.\n\t*/\n\tget(key) {\n\t\tconst plugin = this._plugins.get(key);\n\t\tif (!plugin) {\n\t\t\tlet pluginName = key;\n\t\t\tif (typeof key == \"function\") pluginName = key.pluginName || key.name;\n\t\t\t/**\n\t\t\t* The plugin is not loaded and could not be obtained.\n\t\t\t*\n\t\t\t* Plugin classes (constructors) need to be provided to the editor and must be loaded before they can be obtained from\n\t\t\t* the plugin collection.\n\t\t\t*\n\t\t\t* **Note**: You can use `{@link module:core/plugincollection~PluginCollection#has editor.plugins.has()}`\n\t\t\t* to check if a plugin was loaded.\n\t\t\t*\n\t\t\t* @error plugincollection-plugin-not-loaded\n\t\t\t* @param {string} plugin The name of the plugin which is not loaded.\n\t\t\t*/\n\t\t\tthrow new CKEditorError(\"plugincollection-plugin-not-loaded\", this._context, { plugin: pluginName });\n\t\t}\n\t\treturn plugin;\n\t}\n\t/**\n\t* Checks if a plugin is loaded.\n\t*\n\t* ```ts\n\t* // Check if the 'Clipboard' plugin was loaded.\n\t* if ( editor.plugins.has( 'ClipboardPipeline' ) ) {\n\t* \t// Now use the clipboard plugin instance:\n\t* \tconst clipboard = editor.plugins.get( 'ClipboardPipeline' );\n\t*\n\t* \t// ...\n\t* }\n\t* ```\n\t*\n\t* @param key The plugin constructor or {@link module:core/plugin~PluginStaticMembers#pluginName name}.\n\t*/\n\thas(key) {\n\t\treturn this._plugins.has(key);\n\t}\n\t/**\n\t* Initializes a set of plugins and adds them to the collection.\n\t*\n\t* @param plugins An array of {@link module:core/plugin~PluginInterface plugin constructors}\n\t* or {@link module:core/plugin~PluginStaticMembers#pluginName plugin names}.\n\t* @param pluginsToRemove Names of the plugins or plugin constructors\n\t* that should not be loaded (despite being specified in the `plugins` array).\n\t* @param pluginsSubstitutions An array of {@link module:core/plugin~PluginInterface plugin constructors}\n\t* that will be used to replace plugins of the same names that were passed in `plugins` or that are in their dependency tree.\n\t* A useful option for replacing built-in plugins while creating tests (for mocking their APIs). Plugins that will be replaced\n\t* must follow these rules:\n\t* * The new plugin must be a class.\n\t* * The new plugin must be named.\n\t* * Both plugins must not depend on other plugins.\n\t* @returns A promise which gets resolved once all plugins are loaded and available in the collection.\n\t*/\n\tasync init(plugins, pluginsToRemove = [], pluginsSubstitutions = []) {\n\t\tconst that = this;\n\t\tconst context = this._context;\n\t\tfindAvailablePluginConstructors(plugins);\n\t\tvalidatePlugins(plugins);\n\t\tconst pluginConstructors = [...getPluginConstructors(plugins.filter((plugin) => !isPluginRemoved(plugin, pluginsToRemove)))];\n\t\tsubstitutePlugins(pluginConstructors, pluginsSubstitutions);\n\t\tconst pluginInstances = loadPlugins(pluginConstructors);\n\t\tawait initPlugins(pluginInstances, \"init\");\n\t\tawait initPlugins(pluginInstances, \"afterInit\");\n\t\treturn pluginInstances;\n\t\tfunction isPluginConstructor(plugin) {\n\t\t\treturn typeof plugin === \"function\";\n\t\t}\n\t\tfunction isContextPlugin(plugin) {\n\t\t\treturn isPluginConstructor(plugin) && !!plugin.isContextPlugin;\n\t\t}\n\t\tfunction isPluginRemoved(plugin, pluginsToRemove) {\n\t\t\treturn pluginsToRemove.some((removedPlugin) => {\n\t\t\t\tif (removedPlugin === plugin) return true;\n\t\t\t\tif (getPluginName(plugin) === removedPlugin) return true;\n\t\t\t\tif (getPluginName(removedPlugin) === plugin) return true;\n\t\t\t\treturn false;\n\t\t\t});\n\t\t}\n\t\tfunction getPluginName(plugin) {\n\t\t\treturn isPluginConstructor(plugin) ? plugin.pluginName || plugin.name : plugin;\n\t\t}\n\t\tfunction findAvailablePluginConstructors(plugins, processed = /* @__PURE__ */ new Set()) {\n\t\t\tplugins.forEach((plugin) => {\n\t\t\t\tif (!isPluginConstructor(plugin)) return;\n\t\t\t\tif (processed.has(plugin)) return;\n\t\t\t\tprocessed.add(plugin);\n\t\t\t\tif (plugin.pluginName && !that._availablePlugins.has(plugin.pluginName)) that._availablePlugins.set(plugin.pluginName, plugin);\n\t\t\t\tif (plugin.requires) findAvailablePluginConstructors(plugin.requires, processed);\n\t\t\t});\n\t\t}\n\t\tfunction getPluginConstructors(plugins, processed = /* @__PURE__ */ new Set()) {\n\t\t\treturn plugins.map((plugin) => {\n\t\t\t\treturn isPluginConstructor(plugin) ? plugin : that._availablePlugins.get(plugin);\n\t\t\t}).reduce((result, plugin) => {\n\t\t\t\tif (processed.has(plugin)) return result;\n\t\t\t\tprocessed.add(plugin);\n\t\t\t\tif (plugin.requires) {\n\t\t\t\t\tvalidatePlugins(plugin.requires, plugin);\n\t\t\t\t\tgetPluginConstructors(plugin.requires, processed).forEach((plugin) => result.add(plugin));\n\t\t\t\t}\n\t\t\t\treturn result.add(plugin);\n\t\t\t}, /* @__PURE__ */ new Set());\n\t\t}\n\t\tfunction validatePlugins(plugins, parentPluginConstructor = null) {\n\t\t\tplugins.map((plugin) => {\n\t\t\t\treturn isPluginConstructor(plugin) ? plugin : that._availablePlugins.get(plugin) || plugin;\n\t\t\t}).forEach((plugin) => {\n\t\t\t\tcheckPluginConstructor(plugin);\n\t\t\t\tcheckMissingPlugin(plugin, parentPluginConstructor);\n\t\t\t\tcheckContextPlugin(plugin, parentPluginConstructor);\n\t\t\t\tcheckRemovedPlugin(plugin, parentPluginConstructor);\n\t\t\t});\n\t\t}\n\t\tfunction checkPluginConstructor(plugin) {\n\t\t\tif (typeof plugin !== \"function\") return;\n\t\t\tif (plugin._throwErrorWhenUsedAsAPlugin)\n /**\n\t\t\t* The provided class constructor is not a plugin.\n\t\t\t*\n\t\t\t* This error is usually caused by passing an editor, context, or command\n\t\t\t* constructor in the `config.plugins` array.\n\t\t\t*\n\t\t\t* @param {String} name The name of the provided constructor.\n\t\t\t* @error plugincollection-plugin-invalid-constructor\n\t\t\t*/\n\t\t\tthrow new CKEditorError(\"plugincollection-plugin-invalid-constructor\", context, { name: plugin.name });\n\t\t}\n\t\tfunction checkMissingPlugin(plugin, parentPluginConstructor) {\n\t\t\tif (isPluginConstructor(plugin)) return;\n\t\t\tif (parentPluginConstructor)\n /**\n\t\t\t* A required \"soft\" dependency was not found on the plugin list.\n\t\t\t*\n\t\t\t* When configuring the editor, either prior to building (via\n\t\t\t* {@link module:core/editor/editor~Editor.builtinPlugins `Editor.builtinPlugins`}) or when\n\t\t\t* creating a new instance of the editor (e.g. via\n\t\t\t* {@link module:core/editor/editorconfig~EditorConfig#plugins `config.plugins`}), you need to provide\n\t\t\t* some of the dependencies for other plugins that you used.\n\t\t\t*\n\t\t\t* This error is thrown when one of these dependencies was not provided. The name of the missing plugin\n\t\t\t* can be found in `missingPlugin` and the plugin that required it in `requiredBy`.\n\t\t\t*\n\t\t\t* In order to resolve it, you need to import the missing plugin and add it to the\n\t\t\t* current list of plugins (`Editor.builtinPlugins` or `config.plugins`/`config.extraPlugins`).\n\t\t\t*\n\t\t\t* Soft requirements were introduced in version 26.0.0. If you happen to stumble upon this error\n\t\t\t* when upgrading to version 26.0.0, read also the `Update to v26.x` section in the\n\t\t\t* {@glink updating/guides/updating-from-older-versions updating from older versions} guide.\n\t\t\t*\n\t\t\t* @error plugincollection-soft-required\n\t\t\t* @param {string} missingPlugin The name of the required plugin.\n\t\t\t* @param {string} requiredBy The name of the plugin that requires the other plugin.\n\t\t\t*/\n\t\t\tthrow new CKEditorError(\"plugincollection-soft-required\", context, {\n\t\t\t\tmissingPlugin: plugin,\n\t\t\t\trequiredBy: getPluginName(parentPluginConstructor)\n\t\t\t});\n\t\t\t/**\n\t\t\t* A plugin is not available and could not be loaded.\n\t\t\t*\n\t\t\t* Plugin classes (constructors) need to be provided to the editor before they can be loaded by name.\n\t\t\t* This is usually done in the now deprecated CKEditor 5 builds by setting\n\t\t\t* the {@link module:core/editor/editor~Editor.builtinPlugins} property.\n\t\t\t*\n\t\t\t* **If you see this warning when using one of the deprecated CKEditor 5 Builds**,\n\t\t\t* it means that you tried to enable a plugin that was not included in that build. This may be due to a typo\n\t\t\t* in the plugin name or simply because that plugin was not a part of this build.\n\t\t\t*\n\t\t\t* **Predefined builds are no longer supported and you need to\n\t\t\t* {@glink updating/nim-migration/migration-to-new-installation-methods migrate to new installation methods}**.\n\t\t\t*\n\t\t\t* **If you see this warning when using one of the editor creators directly** (not a build), then it means\n\t\t\t* that you tried loading plugins by name. However, unlike CKEditor 4, CKEditor 5 does not implement a \"plugin loader\".\n\t\t\t* This means that CKEditor 5 does not know where to load the plugin modules from. Therefore, you need to\n\t\t\t* provide each plugin through a reference (as a constructor function). Check out the examples in the\n\t\t\t* {@glink getting-started/installation/cloud/quick-start Quick start} guide.\n\t\t\t*\n\t\t\t* @error plugincollection-plugin-not-found\n\t\t\t* @param {string} plugin The name of the plugin which could not be loaded.\n\t\t\t*/\n\t\t\tthrow new CKEditorError(\"plugincollection-plugin-not-found\", context, { plugin });\n\t\t}\n\t\tfunction checkContextPlugin(plugin, parentPluginConstructor) {\n\t\t\tif (!isContextPlugin(parentPluginConstructor)) return;\n\t\t\tif (isContextPlugin(plugin)) return;\n\t\t\t/**\n\t\t\t* If a plugin is a context plugin, all plugins it requires should also be context plugins\n\t\t\t* instead of plugins. In other words, if one plugin can be used in the context,\n\t\t\t* all its requirements should also be ready to be used in the context. Note that the context\n\t\t\t* provides only a part of the API provided by the editor. If one plugin needs a full\n\t\t\t* editor API, all plugins which require it are considered as plugins that need a full\n\t\t\t* editor API.\n\t\t\t*\n\t\t\t* @error plugincollection-context-required\n\t\t\t* @param {string} plugin The name of the required plugin.\n\t\t\t* @param {string} requiredBy The name of the parent plugin.\n\t\t\t*/\n\t\t\tthrow new CKEditorError(\"plugincollection-context-required\", context, {\n\t\t\t\tplugin: getPluginName(plugin),\n\t\t\t\trequiredBy: getPluginName(parentPluginConstructor)\n\t\t\t});\n\t\t}\n\t\tfunction checkRemovedPlugin(plugin, parentPluginConstructor) {\n\t\t\tif (!parentPluginConstructor) return;\n\t\t\tif (!isPluginRemoved(plugin, pluginsToRemove)) return;\n\t\t\t/**\n\t\t\t* Cannot load a plugin because one of its dependencies is listed in the `removePlugins` option.\n\t\t\t*\n\t\t\t* @error plugincollection-required\n\t\t\t* @param {string} plugin The name of the required plugin.\n\t\t\t* @param {string} requiredBy The name of the parent plugin.\n\t\t\t*/\n\t\t\tthrow new CKEditorError(\"plugincollection-required\", context, {\n\t\t\t\tplugin: getPluginName(plugin),\n\t\t\t\trequiredBy: getPluginName(parentPluginConstructor)\n\t\t\t});\n\t\t}\n\t\tfunction loadPlugins(pluginConstructors) {\n\t\t\treturn pluginConstructors.map((PluginConstructor) => {\n\t\t\t\tlet pluginInstance = that._contextPlugins.get(PluginConstructor);\n\t\t\t\tpluginInstance = pluginInstance || new PluginConstructor(context);\n\t\t\t\tthat._add(PluginConstructor, pluginInstance);\n\t\t\t\treturn pluginInstance;\n\t\t\t});\n\t\t}\n\t\tfunction initPlugins(pluginInstances, method) {\n\t\t\treturn pluginInstances.reduce((promise, plugin) => {\n\t\t\t\tif (!plugin[method]) return promise;\n\t\t\t\tif (that._contextPlugins.has(plugin)) return promise;\n\t\t\t\treturn promise.then(plugin[method].bind(plugin));\n\t\t\t}, Promise.resolve());\n\t\t}\n\t\t/**\n\t\t* Replaces plugin constructors with the specified set of plugins.\n\t\t*/\n\t\tfunction substitutePlugins(pluginConstructors, pluginsSubstitutions) {\n\t\t\tfor (const pluginItem of pluginsSubstitutions) {\n\t\t\t\tif (typeof pluginItem != \"function\")\n /**\n\t\t\t\t* The plugin replacing an existing plugin must be a function.\n\t\t\t\t*\n\t\t\t\t* @error plugincollection-replace-plugin-invalid-type\n\t\t\t\t* @param {never} pluginItem The plugin item.\n\t\t\t\t*/\n\t\t\t\tthrow new CKEditorError(\"plugincollection-replace-plugin-invalid-type\", null, { pluginItem });\n\t\t\t\tconst pluginName = pluginItem.pluginName;\n\t\t\t\tif (!pluginName)\n /**\n\t\t\t\t* The plugin replacing an existing plugin must have a name.\n\t\t\t\t*\n\t\t\t\t* @error plugincollection-replace-plugin-missing-name\n\t\t\t\t* @param {module:core/plugin~PluginConstructor} pluginItem The plugin item.\n\t\t\t\t*/\n\t\t\t\tthrow new CKEditorError(\"plugincollection-replace-plugin-missing-name\", null, { pluginItem });\n\t\t\t\tif (pluginItem.requires && pluginItem.requires.length)\n /**\n\t\t\t\t* The plugin replacing an existing plugin cannot depend on other plugins.\n\t\t\t\t*\n\t\t\t\t* @error plugincollection-plugin-for-replacing-cannot-have-dependencies\n\t\t\t\t* @param {string} pluginName The name of the plugin.\n\t\t\t\t*/\n\t\t\t\tthrow new CKEditorError(\"plugincollection-plugin-for-replacing-cannot-have-dependencies\", null, { pluginName });\n\t\t\t\tconst pluginToReplace = that._availablePlugins.get(pluginName);\n\t\t\t\tif (!pluginToReplace)\n /**\n\t\t\t\t* The replaced plugin does not exist in the\n\t\t\t\t* {@link module:core/plugincollection~PluginCollection available plugins} collection.\n\t\t\t\t*\n\t\t\t\t* @error plugincollection-plugin-for-replacing-not-exist\n\t\t\t\t* @param {string} pluginName The name of the plugin.\n\t\t\t\t*/\n\t\t\t\tthrow new CKEditorError(\"plugincollection-plugin-for-replacing-not-exist\", null, { pluginName });\n\t\t\t\tconst indexInPluginConstructors = pluginConstructors.indexOf(pluginToReplace);\n\t\t\t\tif (indexInPluginConstructors === -1) {\n\t\t\t\t\tif (that._contextPlugins.has(pluginToReplace)) return;\n\t\t\t\t\t/**\n\t\t\t\t\t* The replaced plugin will not be loaded so it cannot be replaced.\n\t\t\t\t\t*\n\t\t\t\t\t* @error plugincollection-plugin-for-replacing-not-loaded\n\t\t\t\t\t* @param {string} pluginName The name of the plugin.\n\t\t\t\t\t*/\n\t\t\t\t\tthrow new CKEditorError(\"plugincollection-plugin-for-replacing-not-loaded\", null, { pluginName });\n\t\t\t\t}\n\t\t\t\tif (pluginToReplace.requires && pluginToReplace.requires.length)\n /**\n\t\t\t\t* The replaced plugin cannot depend on other plugins.\n\t\t\t\t*\n\t\t\t\t* @error plugincollection-replaced-plugin-cannot-have-dependencies\n\t\t\t\t* @param {string} pluginName The name of the plugin.\n\t\t\t\t*/\n\t\t\t\tthrow new CKEditorError(\"plugincollection-replaced-plugin-cannot-have-dependencies\", null, { pluginName });\n\t\t\t\tpluginConstructors.splice(indexInPluginConstructors, 1, pluginItem);\n\t\t\t\tthat._availablePlugins.set(pluginName, pluginItem);\n\t\t\t}\n\t\t}\n\t}\n\t/**\n\t* Destroys all loaded plugins.\n\t*/\n\tdestroy() {\n\t\tconst promises = [];\n\t\tfor (const [, pluginInstance] of this) if (typeof pluginInstance.destroy == \"function\" && !this._contextPlugins.has(pluginInstance)) promises.push(pluginInstance.destroy());\n\t\treturn Promise.all(promises);\n\t}\n\t/**\n\t* Adds the plugin to the collection. Exposed mainly for testing purposes.\n\t*\n\t* @param PluginConstructor The plugin constructor.\n\t* @param plugin The instance of the plugin.\n\t*/\n\t_add(PluginConstructor, plugin) {\n\t\tthis._plugins.set(PluginConstructor, plugin);\n\t\tconst pluginName = PluginConstructor.pluginName;\n\t\tif (!pluginName) return;\n\t\tif (this._plugins.has(pluginName))\n /**\n\t\t* Two plugins with the same {@link module:core/plugin~PluginStaticMembers#pluginName} were loaded.\n\t\t* This will lead to runtime conflicts between these plugins.\n\t\t*\n\t\t* In practice, this warning usually means that new plugins were added to an existing CKEditor 5 build.\n\t\t* Plugins should always be added to a source version of the editor (`@ckeditor/ckeditor5-editor-*`),\n\t\t* not to an editor imported from one of the `@ckeditor/ckeditor5-build-*` packages.\n\t\t*\n\t\t* Check your import paths and the list of plugins passed to\n\t\t* {@link module:core/editor/editor~Editor.create `Editor.create()`}\n\t\t* or specified in {@link module:core/editor/editor~Editor.builtinPlugins `Editor.builtinPlugins`}.\n\t\t*\n\t\t* Predefined builds are a deprecated solution and we strongly advise\n\t\t* {@glink updating/nim-migration/migration-to-new-installation-methods migrating to new installation methods}.\n\t\t*\n\t\t* The second option is that your `node_modules/` directory contains duplicated versions of the same\n\t\t* CKEditor 5 packages. Normally, on clean installations, npm deduplicates packages in `node_modules/`, so\n\t\t* it may be enough to call `rm -rf node_modules && npm i`. However, if you installed conflicting versions\n\t\t* of some packages, their dependencies may need to be installed in more than one version which may lead to this\n\t\t* warning.\n\t\t*\n\t\t* Technically speaking, this error occurs because after adding a plugin to an existing editor build\n\t\t* the dependencies of this plugin are being duplicated.\n\t\t* They are already built into that editor build and now get added for the second time as dependencies\n\t\t* of the plugin you are installing.\n\t\t*\n\t\t* @error plugincollection-plugin-name-conflict\n\t\t* @param {string} pluginName The duplicated plugin name.\n\t\t* @param {module:core/plugin~PluginConstructor} plugin1 The first plugin constructor.\n\t\t* @param {module:core/plugin~PluginConstructor} plugin2 The second plugin constructor.\n\t\t*/\n\t\tthrow new CKEditorError(\"plugincollection-plugin-name-conflict\", null, {\n\t\t\tpluginName,\n\t\t\tplugin1: this._plugins.get(pluginName).constructor,\n\t\t\tplugin2: PluginConstructor\n\t\t});\n\t\tthis._plugins.set(pluginName, plugin);\n\t}\n};\n\n/**\n* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.\n* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options\n*/\n/**\n* @module core/context\n*/\n/**\n* Provides a common, higher-level environment for solutions that use multiple {@link module:core/editor/editor~Editor editors}\n* or plugins that work outside the editor. Use it instead of {@link module:core/editor/editor~Editor.create `Editor.create()`}\n* in advanced application integrations.\n*\n* All configuration options passed to a context will be used as default options for the editor instances initialized in that context.\n*\n* {@link module:core/contextplugin~ContextPlugin Context plugins} passed to a context instance will be shared among all\n* editor instances initialized in this context. These will be the same plugin instances for all the editors.\n*\n* **Note:** The context can only be initialized with {@link module:core/contextplugin~ContextPlugin context plugins}\n* (e.g. [comments](https://ckeditor.com/collaboration/comments/)). Regular {@link module:core/plugin~Plugin plugins} require an\n* editor instance to work and cannot be added to a context.\n*\n* **Note:** You can add a context plugin to an editor instance, though.\n*\n* If you are using multiple editor instances on one page and use any context plugins, create a context to share the configuration and\n* plugins among these editors. Some plugins will use the information about all existing editors to better integrate between them.\n*\n* If you are using plugins that do not require an editor to work (e.g. [comments](https://ckeditor.com/collaboration/comments/)),\n* enable and configure them using the context.\n*\n* If you are using only a single editor on each page, use {@link module:core/editor/editor~Editor.create `Editor.create()`} instead.\n* In such a case, a context instance will be created by the editor instance in a transparent way.\n*\n* See {@link ~Context.create `Context.create()`} for usage examples.\n*/\nvar Context = class {\n\t/**\n\t* Stores all the configurations specific to this context instance.\n\t*/\n\tconfig;\n\t/**\n\t* The plugins loaded and in use by this context instance.\n\t*/\n\tplugins;\n\tlocale;\n\t/**\n\t* Shorthand for {@link module:utils/locale~Locale#t}.\n\t*/\n\tt;\n\t/**\n\t* A list of editors that this context instance is injected to.\n\t*/\n\teditors;\n\t/**\n\t* The default configuration which is built into the `Context` class.\n\t*\n\t* It was used in the now deprecated CKEditor 5 builds featuring `Context` to provide the default configuration options\n\t* which are later used during the context initialization.\n\t*\n\t* ```ts\n\t* Context.defaultConfig = {\n\t* \tfoo: 1,\n\t* \tbar: 2\n\t* };\n\t*\n\t* Context\n\t* \t.create()\n\t* \t.then( context => {\n\t* \t\tcontext.config.get( 'foo' ); // -> 1\n\t* \t\tcontext.config.get( 'bar' ); // -> 2\n\t* \t} );\n\t*\n\t* // The default options can be overridden by the configuration passed to create().\n\t* Context\n\t* \t.create( { bar: 3 } )\n\t* \t.then( context => {\n\t* \t\tcontext.config.get( 'foo' ); // -> 1\n\t* \t\tcontext.config.get( 'bar' ); // -> 3\n\t* \t} );\n\t* ```\n\t*\n\t* See also {@link module:core/context~Context.builtinPlugins `Context.builtinPlugins`}\n\t* and {@link module:core/editor/editor~Editor.defaultConfig `Editor.defaultConfig`}.\n\t*/\n\tstatic defaultConfig;\n\t/**\n\t* An array of plugins built into the `Context` class.\n\t*\n\t* It was used in the now deprecated CKEditor 5 builds featuring `Context` to provide the default configuration options\n\t* which are later used during the context initialization.\n\t*\n\t* They will be automatically initialized by `Context` unless `config.plugins` is passed.\n\t*\n\t* ```ts\n\t* // Build some context plugins into the Context class first.\n\t* Context.builtinPlugins = [ FooPlugin, BarPlugin ];\n\t*\n\t* // Normally, you need to define config.plugins, but since Context.builtinPlugins was\n\t* // defined, now you can call create() without any configuration.\n\t* Context\n\t* \t.create()\n\t* \t.then( context => {\n\t* \t\tcontext.plugins.get( FooPlugin ); // -> An instance of the Foo plugin.\n\t* \t\tcontext.plugins.get( BarPlugin ); // -> An instance of the Bar plugin.\n\t* \t} );\n\t* ```\n\t*\n\t* See also {@link module:core/context~Context.defaultConfig `Context.defaultConfig`}\n\t* and {@link module:core/editor/editor~Editor.builtinPlugins `Editor.builtinPlugins`}.\n\t*/\n\tstatic builtinPlugins;\n\t/**\n\t* Reference to the editor which created the context.\n\t* Null when the context was created outside of the editor.\n\t*\n\t* It is used to destroy the context when removing the editor that has created the context.\n\t*/\n\t_contextOwner = null;\n\t/**\n\t* Creates a context instance with a given configuration.\n\t*\n\t* Usually not to be used directly. See the static {@link module:core/context~Context.create `create()`} method.\n\t*\n\t* @param config The context configuration.\n\t*/\n\tconstructor(config) {\n\t\tconst { translations, ...rest } = config || {};\n\t\tthis.config = new Config(rest, this.constructor.defaultConfig);\n\t\tconst availablePlugins = this.constructor.builtinPlugins;\n\t\tthis.config.define(\"plugins\", availablePlugins);\n\t\tthis.plugins = new PluginCollection(this, availablePlugins);\n\t\tconst languageConfig = this.config.get(\"language\") || {};\n\t\tthis.locale = new Locale({\n\t\t\tuiLanguage: typeof languageConfig === \"string\" ? languageConfig : languageConfig.ui,\n\t\t\tcontentLanguage: this.config.get(\"language.content\"),\n\t\t\ttranslations\n\t\t});\n\t\tthis.t = this.locale.t;\n\t\tthis.editors = new Collection();\n\t}\n\t/**\n\t* Loads and initializes plugins specified in the configuration.\n\t*\n\t* @returns A promise which resolves once the initialization is completed, providing an array of loaded plugins.\n\t*/\n\tinitPlugins() {\n\t\tconst plugins = this.config.get(\"plugins\") || [];\n\t\tconst substitutePlugins = this.config.get(\"substitutePlugins\") || [];\n\t\tfor (const Plugin of plugins.concat(substitutePlugins)) {\n\t\t\tif (typeof Plugin != \"function\")\n /**\n\t\t\t* Only a constructor function is allowed as a {@link module:core/contextplugin~ContextPlugin context plugin}.\n\t\t\t*\n\t\t\t* @error context-initplugins-constructor-only\n\t\t\t*/\n\t\t\tthrow new CKEditorError(\"context-initplugins-constructor-only\", null, { Plugin });\n\t\t\tif (Plugin.isContextPlugin !== true)\n /**\n\t\t\t* Only a plugin marked as a {@link module:core/contextplugin~ContextPlugin.isContextPlugin context plugin}\n\t\t\t* is allowed to be used with a context.\n\t\t\t*\n\t\t\t* @error context-initplugins-invalid-plugin\n\t\t\t*/\n\t\t\tthrow new CKEditorError(\"context-initplugins-invalid-plugin\", null, { Plugin });\n\t\t}\n\t\treturn this.plugins.init(plugins, [], substitutePlugins);\n\t}\n\t/**\n\t* Destroys the context instance and all editors used with the context,\n\t* releasing all resources used by the context.\n\t*\n\t* @returns A promise that resolves once the context instance is fully destroyed.\n\t*/\n\tdestroy() {\n\t\treturn Promise.all(Array.from(this.editors, (editor) => editor.destroy())).then(() => this.plugins.destroy());\n\t}\n\t/**\n\t* Adds a reference to the editor which is used with this context.\n\t*\n\t* When the given editor has created the context, the reference to this editor will be stored\n\t* as a {@link ~Context#_contextOwner}.\n\t*\n\t* This method should only be used by the editor.\n\t*\n\t* @internal\n\t* @param isContextOwner Stores the given editor as a context owner.\n\t*/\n\t_addEditor(editor, isContextOwner) {\n\t\tif (this._contextOwner)\n /**\n\t\t* Cannot add multiple editors to the context which is created by the editor.\n\t\t*\n\t\t* @error context-addeditor-private-context\n\t\t*/\n\t\tthrow new CKEditorError(\"context-addeditor-private-context\");\n\t\tthis.editors.add(editor);\n\t\tif (isContextOwner) this._contextOwner = editor;\n\t}\n\t/**\n\t* Removes a reference to the editor which was used with this context.\n\t* When the context was created by the given editor, the context will be destroyed.\n\t*\n\t* This method should only be used by the editor.\n\t*\n\t* @internal\n\t* @return A promise that resolves once the editor is removed from the context or when the context was destroyed.\n\t*/\n\t_removeEditor(editor) {\n\t\tif (this.editors.has(editor)) this.editors.remove(editor);\n\t\tif (this._contextOwner === editor) return this.destroy();\n\t\treturn Promise.resolve();\n\t}\n\t/**\n\t* Returns the context configuration which will be copied to the editors created using this context.\n\t*\n\t* The configuration returned by this method has the plugins configuration removed &ndash; plugins are shared with all editors\n\t* through another mechanism.\n\t*\n\t* This method should only be used by the editor.\n\t*\n\t* @internal\n\t* @returns Configuration as a plain object.\n\t*/\n\t_getEditorConfig() {\n\t\tconst result = {};\n\t\tfor (const name of this.config.names()) if (![\n\t\t\t\"plugins\",\n\t\t\t\"removePlugins\",\n\t\t\t\"extraPlugins\"\n\t\t].includes(name)) result[name] = this.config.get(name);\n\t\treturn result;\n\t}\n\t/**\n\t* Creates and initializes a new context instance.\n\t*\n\t* ```ts\n\t* const commonConfig = { ... }; // Configuration for all the plugins and editors.\n\t* const editorPlugins = [ ... ]; // Regular plugins here.\n\t*\n\t* Context\n\t* \t.create( {\n\t* \t\t// Only context plugins here.\n\t* \t\tplugins: [ ... ],\n\t*\n\t* \t\t// Configure the language for all the editors (it cannot be overwritten).\n\t* \t\tlanguage: { ... },\n\t*\n\t* \t\t// Configuration for context plugins.\n\t* \t\tcomments: { ... },\n\t* \t\t...\n\t*\n\t* \t\t// Default configuration for editor plugins.\n\t* \t\ttoolbar: { ... },\n\t* \t\timage: { ... },\n\t* \t\t...\n\t* \t} )\n\t* \t.then( context => {\n\t* \t\tconst promises = [];\n\t*\n\t* \t\tpromises.push( ClassicEditor.create(\n\t* \t\t\tdocument.getElementById( 'editor1' ),\n\t* \t\t\t{\n\t* \t\t\t\teditorPlugins,\n\t* \t\t\t\tcontext\n\t* \t\t\t}\n\t* \t\t) );\n\t*\n\t* \t\tpromises.push( ClassicEditor.create(\n\t* \t\t\tdocument.getElementById( 'editor2' ),\n\t* \t\t\t{\n\t* \t\t\t\teditorPlugins,\n\t* \t\t\t\tcontext,\n\t* \t\t\t\ttoolbar: { ... } // You can overwrite the configuration of the context.\n\t* \t\t\t}\n\t* \t\t) );\n\t*\n\t* \t\treturn Promise.all( promises );\n\t* \t} );\n\t* ```\n\t*\n\t* @param config The context configuration.\n\t* @returns A promise resolved once the context is ready. The promise resolves with the created context instance.\n\t*/\n\tstatic create(config) {\n\t\treturn new Promise((resolve) => {\n\t\t\tconst context = new this(config);\n\t\t\tresolve(context.initPlugins().then(() => context));\n\t\t});\n\t}\n\t/**\n\t* `Context` class is commonly put in `config.plugins` array.\n\t*\n\t* This property helps with better error detection.\n\t*\n\t* @internal\n\t*/\n\tstatic get _throwErrorWhenUsedAsAPlugin() {\n\t\treturn true;\n\t}\n};\n\n/**\n* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.\n* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options\n*/\n/**\n* @module core/contextplugin\n*/\nconst ContextPluginBase = /* #__PURE__ */ ObservableMixin();\n/**\n* The base class for {@link module:core/context~Context} plugin classes.\n*\n* A context plugin can either be initialized for an {@link module:core/editor/editor~Editor editor} or for\n* a {@link module:core/context~Context context}. In other words, it can either\n* work within one editor instance or with one or more editor instances that use a single context.\n* It is the context plugin's role to implement handling for both modes.\n*\n* There are a few rules for interaction between the editor plugins and context plugins:\n*\n* * A context plugin can require another context plugin.\n* * An {@link module:core/plugin~Plugin editor plugin} can require a context plugin.\n* * A context plugin MUST NOT require an {@link module:core/plugin~Plugin editor plugin}.\n*/\nvar ContextPlugin = class extends ContextPluginBase {\n\t/**\n\t* The context or editor instance.\n\t*/\n\tcontext;\n\t/**\n\t* Creates a new plugin instance.\n\t*/\n\tconstructor(context) {\n\t\tsuper();\n\t\tthis.context = context;\n\t}\n\t/**\n\t* @inheritDoc\n\t*/\n\tdestroy() {\n\t\tthis.stopListening();\n\t}\n\t/**\n\t* @inheritDoc\n\t*/\n\tstatic get isContextPlugin() {\n\t\treturn true;\n\t}\n\t/**\n\t* @inheritDoc\n\t*/\n\tstatic get isOfficialPlugin() {\n\t\treturn false;\n\t}\n\t/**\n\t* @inheritDoc\n\t*/\n\tstatic get isPremiumPlugin() {\n\t\treturn false;\n\t}\n};\n\n/**\n* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.\n* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options\n*/\n/**\n* @module core/editingkeystrokehandler\n*/\n/**\n* A keystroke handler for editor editing. Its instance is available\n* in {@link module:core/editor/editor~Editor#keystrokes} so plugins\n* can register their keystrokes.\n*\n* E.g. an undo plugin would do this:\n*\n* ```ts\n* editor.keystrokes.set( 'Ctrl+Z', 'undo' );\n* editor.keystrokes.set( 'Ctrl+Shift+Z', 'redo' );\n* editor.keystrokes.set( 'Ctrl+Y', 'redo' );\n* ```\n*/\nvar EditingKeystrokeHandler = class extends KeystrokeHandler {\n\t/**\n\t* The editor instance.\n\t*/\n\teditor;\n\t/**\n\t* Creates an instance of the keystroke handler.\n\t*/\n\tconstructor(editor) {\n\t\tsuper();\n\t\tthis.editor = editor;\n\t}\n\t/**\n\t* Registers a handler for the specified keystroke.\n\t*\n\t* The handler can be specified as a command name or a callback.\n\t*\n\t* @param keystroke Keystroke defined in a format accepted by\n\t* the {@link module:utils/keyboard~parseKeystroke} function.\n\t* @param callback If a string is passed, then the keystroke will\n\t* {@link module:core/editor/editor~Editor#execute execute a command}.\n\t* If a function, then it will be called with the\n\t* {@link module:engine/view/observer/keyobserver~ViewDocumentKeyEventData key event data} object and\n\t* a `cancel()` helper to both `preventDefault()` and `stopPropagation()` of the event.\n\t* @param options Additional options.\n\t* @param options.priority The priority of the keystroke callback. The higher the priority value\n\t* the sooner the callback will be executed. Keystrokes having the same priority\n\t* are called in the order they were added.\n\t*/\n\tset(keystroke, callback, options = {}) {\n\t\tif (typeof callback == \"string\") {\n\t\t\tconst commandName = callback;\n\t\t\tcallback = (evtData, cancel) => {\n\t\t\t\tthis.editor.execute(commandName);\n\t\t\t\tcancel();\n\t\t\t};\n\t\t}\n\t\tsuper.set(keystroke, callback, options);\n\t}\n};\n\n/**\n* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.\n* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options\n*/\n/**\n* @module core/accessibility\n*/\nconst DEFAULT_CATEGORY_ID = \"contentEditing\";\n/**\n* @internal\n*/\nconst DEFAULT_GROUP_ID = \"common\";\n/**\n* A common namespace for various accessibility features of the editor.\n*\n* **Information about editor keystrokes**\n*\n* * The information about keystrokes available in the editor is stored in the {@link #keystrokeInfos} property.\n* * New info entries can be added using the {@link #addKeystrokeInfoCategory}, {@link #addKeystrokeInfoGroup},\n* and {@link #addKeystrokeInfos} methods.\n*/\nvar Accessibility = class {\n\t/**\n\t* Stores information about keystrokes brought by editor features for the users to interact with the editor, mainly\n\t* keystroke combinations and their accessible labels.\n\t*\n\t* This information is particularly useful for screen reader and other assistive technology users. It gets displayed\n\t* by the {@link module:ui/editorui/accessibilityhelp/accessibilityhelp~AccessibilityHelp Accessibility help} dialog.\n\t*\n\t* Keystrokes are organized in categories and groups. They can be added using ({@link #addKeystrokeInfoCategory},\n\t* {@link #addKeystrokeInfoGroup}, and {@link #addKeystrokeInfos}) methods.\n\t*\n\t* Please note that:\n\t* * two categories are always available:\n\t* * `'contentEditing'` for keystrokes related to content creation,\n\t* * `'navigation'` for keystrokes related to navigation in the UI and the content.\n\t* * unless specified otherwise, new keystrokes are added into the `'contentEditing'` category and the `'common'`\n\t* keystroke group within that category while using the {@link #addKeystrokeInfos} method.\n\t*/\n\tkeystrokeInfos = /* @__PURE__ */ new Map();\n\t/**\n\t* The editor instance.\n\t*/\n\t_editor;\n\t/**\n\t* @inheritDoc\n\t*/\n\tconstructor(editor) {\n\t\tthis._editor = editor;\n\t\tconst isMenuBarVisible = editor.config.get(\"menuBar.isVisible\");\n\t\tconst t = editor.locale.t;\n\t\tthis.addKeystrokeInfoCategory({\n\t\t\tid: DEFAULT_CATEGORY_ID,\n\t\t\tlabel: t(\"Content editing keystrokes\"),\n\t\t\tdescription: t(\"These keyboard shortcuts allow for quick access to content editing features.\")\n\t\t});\n\t\tconst navigationKeystrokes = [\n\t\t\t{\n\t\t\t\tlabel: t(\"Close contextual balloons, dropdowns, and dialogs\"),\n\t\t\t\tkeystroke: \"Esc\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tlabel: t(\"Open the accessibility help dialog\"),\n\t\t\t\tkeystroke: \"Alt+0\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tlabel: t(\"Move focus between form fields (inputs, buttons, etc.)\"),\n\t\t\t\tkeystroke: [[\"Tab\"], [\"Shift+Tab\"]]\n\t\t\t},\n\t\t\t{\n\t\t\t\tlabel: t(\"Move focus to the toolbar, navigate between toolbars\"),\n\t\t\t\tkeystroke: \"Alt+F10\",\n\t\t\t\tmayRequireFn: true\n\t\t\t},\n\t\t\t{\n\t\t\t\tlabel: t(\"Navigate through the toolbar or menu bar\"),\n\t\t\t\tkeystroke: [\n\t\t\t\t\t[\"arrowup\"],\n\t\t\t\t\t[\"arrowright\"],\n\t\t\t\t\t[\"arrowdown\"],\n\t\t\t\t\t[\"arrowleft\"]\n\t\t\t\t]\n\t\t\t},\n\t\t\t{\n\t\t\t\tlabel: t(\"Execute the currently focused button. Executing buttons that interact with the editor content moves the focus back to the content.\"),\n\t\t\t\tkeystroke: [[\"Enter\"], [\"Space\"]]\n\t\t\t}\n\t\t];\n\t\tif (isMenuBarVisible) navigationKeystrokes.push({\n\t\t\tlabel: t(\"Move focus to the menu bar, navigate between menu bars\"),\n\t\t\tkeystroke: \"Alt+F9\",\n\t\t\tmayRequireFn: true\n\t\t});\n\t\tthis.addKeystrokeInfoCategory({\n\t\t\tid: \"navigation\",\n\t\t\tlabel: t(\"User interface and content navigation keystrokes\"),\n\t\t\tdescription: t(\"Use the following keystrokes for more efficient navigation in the CKEditor 5 user interface.\"),\n\t\t\tgroups: [{\n\t\t\t\tid: \"common\",\n\t\t\t\tkeystrokes: navigationKeystrokes\n\t\t\t}]\n\t\t});\n\t}\n\t/**\n\t* Adds a top-level category in the {@link #keystrokeInfos keystroke information database} with a label and optional description.\n\t*\n\t* Categories organize keystrokes and help users to find the right keystroke. Each category can have multiple groups\n\t* of keystrokes that narrow down the context in which the keystrokes are available. Every keystroke category comes\n\t* with a `'common'` group by default.\n\t*\n\t* By default, two categories are available:\n\t* * `'contentEditing'` for keystrokes related to content creation,\n\t* * `'navigation'` for keystrokes related to navigation in the UI and the content.\n\t*\n\t* To create a new keystroke category with new groups, use the following code:\n\t*\n\t* ```js\n\t* class MyPlugin extends Plugin {\n\t* \t// ...\n\t* \tinit() {\n\t* \t\tconst editor = this.editor;\n\t* \t\tconst t = editor.t;\n\t*\n\t* \t\t// ...\n\t*\n\t* \t\teditor.accessibility.addKeystrokeInfoCategory( {\n\t* \t\t\tid: 'myCategory',\n\t* \t\t\tlabel: t( 'My category' ),\n\t* \t\t\tdescription: t( 'My category description.' ),\n\t* \t\t\tgroups: [\n\t* \t\t\t\t{\n\t* \t\t\t\t\tid: 'myGroup',\n\t* \t\t\t\t\tlabel: t( 'My keystroke group' ),\n\t* \t\t\t\t\tkeystrokes: [\n\t* \t\t\t\t\t\t{\n\t* \t\t\t\t\t\t\tlabel: t( 'Keystroke label 1' ),\n\t* \t\t\t\t\t\t\tkeystroke: 'Ctrl+Shift+N'\n\t* \t\t\t\t\t\t},\n\t* \t\t\t\t\t\t{\n\t* \t\t\t\t\t\t\tlabel: t( 'Keystroke label 2' ),\n\t* \t\t\t\t\t\t\tkeystroke: 'Ctrl+Shift+M'\n\t* \t\t\t\t\t\t}\n\t* \t\t\t\t\t]\n\t* \t\t\t\t}\n\t* \t\t\t]\n\t* \t\t};\n\t* \t}\n\t* }\n\t* ```\n\t*\n\t* See {@link #keystrokeInfos}, {@link #addKeystrokeInfoGroup}, and {@link #addKeystrokeInfos}.\n\t*/\n\taddKeystrokeInfoCategory({ id, label, description, groups }) {\n\t\tthis.keystrokeInfos.set(id, {\n\t\t\tid,\n\t\t\tlabel,\n\t\t\tdescription,\n\t\t\tgroups: /* @__PURE__ */ new Map()\n\t\t});\n\t\tthis.addKeystrokeInfoGroup({\n\t\t\tcategoryId: id,\n\t\t\tid: DEFAULT_GROUP_ID\n\t\t});\n\t\tif (groups) groups.forEach((group) => {\n\t\t\tthis.addKeystrokeInfoGroup({\n\t\t\t\tcategoryId: id,\n\t\t\t\t...group\n\t\t\t});\n\t\t});\n\t}\n\t/**\n\t* Adds a group of keystrokes in a specific category to the {@link #keystrokeInfos keystroke information database}.\n\t*\n\t* Groups narrow down the context in which the keystrokes are available. When `categoryId` is not specified,\n\t* the group goes to the `'contentEditing'` category (default).\n\t*\n\t* To create a new group within an existing category, use the following code:\n\t*\n\t* ```js\n\t* class MyPlugin extends Plugin {\n\t* \t// ...\n\t* \tinit() {\n\t* \t\tconst editor = this.editor;\n\t* \t\tconst t = editor.t;\n\t*\n\t* \t\t// ...\n\t*\n\t* \t\teditor.accessibility.addKeystrokeInfoGroup( {\n\t* \t\t\tid: 'myGroup',\n\t* \t\t\tcategoryId: 'navigation',\n\t* \t\t\tlabel: t( 'My keystroke group' ),\n\t* \t\t\tkeystrokes: [\n\t* \t\t\t\t{\n\t* \t\t\t\t\tlabel: t( 'Keystroke label 1' ),\n\t* \t\t\t\t\tkeystroke: 'Ctrl+Shift+N'\n\t* \t\t\t\t},\n\t* \t\t\t\t{\n\t* \t\t\t\t\tlabel: t( 'Keystroke label 2' ),\n\t* \t\t\t\t\tkeystroke: 'Ctrl+Shift+M'\n\t* \t\t\t\t}\n\t* \t\t\t]\n\t* \t\t} );\n\t* \t}\n\t* }\n\t* ```\n\t*\n\t* See {@link #keystrokeInfos}, {@link #addKeystrokeInfoCategory}, and {@link #addKeystrokeInfos}.\n\t*/\n\taddKeystrokeInfoGroup({ categoryId = DEFAULT_CATEGORY_ID, id, label, keystrokes }) {\n\t\tconst category = this.keystrokeInfos.get(categoryId);\n\t\tif (!category) throw new CKEditorError(\"accessibility-unknown-keystroke-info-category\", this._editor, {\n\t\t\tgroupId: id,\n\t\t\tcategoryId\n\t\t});\n\t\tcategory.groups.set(id, {\n\t\t\tid,\n\t\t\tlabel,\n\t\t\tkeystrokes: keystrokes || []\n\t\t});\n\t}\n\t/**\n\t* Adds information about keystrokes to the {@link #keystrokeInfos keystroke information database}.\n\t*\n\t* Keystrokes without specified `groupId` or `categoryId` go to the `'common'` group in the `'contentEditing'` category (default).\n\t*\n\t* To add a keystroke brought by your plugin (using default group and category), use the following code:\n\t*\n\t* ```js\n\t* class MyPlugin extends Plugin {\n\t* \t// ...\n\t* \tinit() {\n\t* \t\tconst editor = this.editor;\n\t* \t\tconst t = editor.t;\n\t*\n\t* \t\t// ...\n\t*\n\t* \t\teditor.accessibility.addKeystrokeInfos( {\n\t* \t\t\tkeystrokes: [\n\t* \t\t\t\t{\n\t* \t\t\t\t\tlabel: t( 'Keystroke label' ),\n\t* \t\t\t\t\tkeystroke: 'CTRL+B'\n\t* \t\t\t\t}\n\t* \t\t\t]\n\t* \t\t} );\n\t* \t}\n\t* }\n\t* ```\n\t* To add a keystroke in a specific existing `'widget'` group in the default `'contentEditing'` category:\n\t*\n\t* ```js\n\t* class MyPlugin extends Plugin {\n\t* \t// ...\n\t* \tinit() {\n\t* \t\tconst editor = this.editor;\n\t* \t\tconst t = editor.t;\n\t*\n\t* \t\t// ...\n\t*\n\t* \t\teditor.accessibility.addKeystrokeInfos( {\n\t* \t\t\t// Add a keystroke to the existing \"widget\" group.\n\t* \t\t\tgroupId: 'widget',\n\t* \t\t\tkeystrokes: [\n\t* \t\t\t\t{\n\t* \t\t\t\t\tlabel: t( 'A an action on a selected widget' ),\n\t* \t\t\t\t\tkeystroke: 'Ctrl+D',\n\t* \t\t\t\t}\n\t* \t\t\t]\n\t* \t\t} );\n\t* \t}\n\t* }\n\t* ```\n\t*\n\t* To add a keystroke to another existing category (using default group):\n\t*\n\t* ```js\n\t* class MyPlugin extends Plugin {\n\t* \t// ...\n\t* \tinit() {\n\t* \t\tconst editor = this.editor;\n\t* \t\tconst t = editor.t;\n\t*\n\t* \t\t// ...\n\t*\n\t* \t\teditor.accessibility.addKeystrokeInfos( {\n\t* \t\t\t// Add keystrokes to the \"navigation\" category (one of defaults).\n\t* \t\t\tcategoryId: 'navigation',\n\t* \t\t\tkeystrokes: [\n\t* \t\t\t\t{\n\t* \t\t\t\t\tlabel: t( 'Keystroke label' ),\n\t* \t\t\t\t\tkeystroke: 'CTRL+B'\n\t* \t\t\t\t}\n\t* \t\t\t]\n\t* \t\t} );\n\t* \t}\n\t* }\n\t* ```\n\t*\n\t* See {@link #keystrokeInfos}, {@link #addKeystrokeInfoGroup}, and {@link #addKeystrokeInfoCategory}.\n\t*/\n\taddKeystrokeInfos({ categoryId = DEFAULT_CATEGORY_ID, groupId = DEFAULT_GROUP_ID, keystrokes }) {\n\t\tif (!this.keystrokeInfos.has(categoryId))\n /**\n\t\t* Cannot add keystrokes in an unknown category. Use\n\t\t* {@link module:core/accessibility~Accessibility#addKeystrokeInfoCategory}\n\t\t* to add a new category or make sure the specified category exists.\n\t\t*\n\t\t* @error accessibility-unknown-keystroke-info-category\n\t\t* @param {string} categoryId The id of the unknown keystroke category.\n\t\t* @param {module:core/accessibility~AddKeystrokeInfosData#keystrokes} keystrokes Keystroke definitions about to be added.\n\t\t*/\n\t\tthrow new CKEditorError(\"accessibility-unknown-keystroke-info-category\", this._editor, {\n\t\t\tcategoryId,\n\t\t\tkeystrokes\n\t\t});\n\t\tconst category = this.keystrokeInfos.get(categoryId);\n\t\tif (!category.groups.has(groupId))\n /**\n\t\t* Cannot add keystrokes to an unknown group.\n\t\t*\n\t\t* Use {@link module:core/accessibility~Accessibility#addKeystrokeInfoGroup}\n\t\t* to add a new group or make sure the specified group exists.\n\t\t*\n\t\t* @error accessibility-unknown-keystroke-info-group\n\t\t* @param {string} groupId The id of the unknown keystroke group.\n\t\t* @param {string} categoryId The id of category the unknown group should belong to.\n\t\t* @param {module:core/accessibility~AddKeystrokeInfosData#keystrokes} keystrokes Keystroke definitions about to be added.\n\t\t*/\n\t\tthrow new CKEditorError(\"accessibility-unknown-keystroke-info-group\", this._editor, {\n\t\t\tgroupId,\n\t\t\tcategoryId,\n\t\t\tkeystrokes\n\t\t});\n\t\tcategory.groups.get(groupId).keystrokes.push(...keystrokes);\n\t}\n};\n\n/**\n* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.\n* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options\n*/\n/**\n* @module core/editor/utils/editorusagedata\n*/\n/**\n* This part of the code is not executed in open-source implementations using a GPL key.\n* It only runs when a specific license key is provided. If you are uncertain whether\n* this applies to your installation, please contact our support team.\n*\n* @internal\n*/\nfunction getEditorUsageData(editor) {\n\treturn {\n\t\tsessionId: getSessionId(),\n\t\tpageSessionId: getPageSessionID(),\n\t\thostname: window.location.hostname,\n\t\tversion: globalThis.CKEDITOR_VERSION,\n\t\ttype: getEditorType(editor),\n\t\tplugins: getPluginsUsageData(editor.plugins),\n\t\tdistribution: getDistributionUsageData(),\n\t\tenv: getEnvUsageData(),\n\t\tintegration: Object.create(null),\n\t\tmenuBar: { isVisible: !!editor.config.get(\"menuBar.isVisible\") },\n\t\tlanguage: {\n\t\t\tui: editor.locale.uiLanguage,\n\t\t\tcontent: editor.locale.contentLanguage\n\t\t},\n\t\ttoolbar: {\n\t\t\tmain: getToolbarUsageData(editor.config.get(\"toolbar\")),\n\t\t\tblock: getToolbarUsageData(editor.config.get(\"blockToolbar\")),\n\t\t\tballoon: getToolbarUsageData(editor.config.get(\"balloonToolbar\"))\n\t\t}\n\t};\n}\nfunction getEditorType(editor) {\n\treturn Object.getPrototypeOf(editor).constructor.editorName;\n}\nfunction getPluginsUsageData(collection) {\n\treturn Array.from(collection).filter(([PluginConstructor]) => !!PluginConstructor.pluginName).map(([PluginConstructor]) => {\n\t\tconst { pluginName, isContextPlugin, isOfficialPlugin, isPremiumPlugin } = PluginConstructor;\n\t\treturn {\n\t\t\tisContext: !!isContextPlugin,\n\t\t\tisOfficial: !!isOfficialPlugin,\n\t\t\tisPremium: !!isPremiumPlugin,\n\t\t\tname: pluginName\n\t\t};\n\t});\n}\nfunction getToolbarUsageData(toolbarConfig) {\n\tif (!toolbarConfig) return;\n\tconst normalizedToolbar = Array.isArray(toolbarConfig) ? { items: toolbarConfig } : toolbarConfig;\n\tconst flattenToolbarConfigNames = extractToolbarConfigItemsNames(normalizedToolbar.items || []);\n\treturn {\n\t\tisMultiline: flattenToolbarConfigNames.includes(\"-\"),\n\t\tshouldNotGroupWhenFull: !!normalizedToolbar.shouldNotGroupWhenFull,\n\t\titems: stripToolbarSeparatorItems(flattenToolbarConfigNames)\n\t};\n\tfunction stripToolbarSeparatorItems(items) {\n\t\treturn items.filter((item) => item !== \"|\" && item !== \"-\");\n\t}\n\tfunction extractToolbarConfigItemsNames(items) {\n\t\treturn items.flatMap((item) => {\n\t\t\tif (typeof item === \"string\") return [item];\n\t\t\treturn extractToolbarConfigItemsNames(item.items);\n\t\t});\n\t}\n}\nfunction getDistributionUsageData() {\n\treturn { channel: window[Symbol.for(\"cke distribution\")] || \"sh\" };\n}\nfunction getEnvUsageData() {\n\tlet os = \"unknown\";\n\tlet browser = \"unknown\";\n\tif (env.isMac) os = \"mac\";\n\telse if (env.isWindows) os = \"windows\";\n\telse if (env.isiOS) os = \"ios\";\n\telse if (env.isAndroid) os = \"android\";\n\tif (env.isGecko) browser = \"gecko\";\n\telse if (env.isBlink) browser = \"blink\";\n\telse if (env.isSafari) browser = \"safari\";\n\treturn {\n\t\tos,\n\t\tbrowser\n\t};\n}\nfunction getSessionId() {\n\tif (!localStorage.getItem(\"__ckeditor-session-id\")) localStorage.setItem(\"__ckeditor-session-id\", uid());\n\treturn localStorage.getItem(\"__ckeditor-session-id\");\n}\nfunction getPageSessionID() {\n\tglobal.window.CKEDITOR_PAGE_SESSION_ID = global.window.CKEDITOR_PAGE_SESSION_ID || uid();\n\treturn global.window.CKEDITOR_PAGE_SESSION_ID;\n}\n\n/**\n* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.\n* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options\n*/\n/**\n* @module core/editor/editor\n*/\nconst EditorBase = /* #__PURE__ */ ObservableMixin();\n/**\n* The class representing a basic, generic editor.\n*\n* Check out the list of its subclasses to learn about specific editor implementations.\n*\n* All editor implementations (like {@link module:editor-classic/classiceditor~ClassicEditor} or\n* {@link module:editor-inline/inlineeditor~InlineEditor}) should extend this class. They can add their\n* own methods and properties.\n*\n* When you are implementing a plugin, this editor represents the API\n* which your plugin can expect to get when using its {@link module:core/plugin~Plugin#editor} property.\n*\n* This API should be sufficient in order to implement the \"editing\" part of your feature\n* (schema definition, conversion, commands, keystrokes, etc.).\n* It does not define the editor UI, which is available only if\n* the specific editor implements also the {@link ~Editor#ui} property\n* (as most editor implementations do).\n*/\nvar Editor = class extends EditorBase {\n\t/**\n\t* A required name of the editor class. The name should reflect the constructor name.\n\t*/\n\tstatic get editorName() {\n\t\treturn \"Editor\";\n\t}\n\t/**\n\t* A namespace for the accessibility features of the editor.\n\t*/\n\taccessibility;\n\t/**\n\t* Commands registered to the editor.\n\t*\n\t* Use the shorthand {@link #execute `editor.execute()`} method to execute commands:\n\t*\n\t* ```ts\n\t* // Execute the bold command:\n\t* editor.execute( 'bold' );\n\t*\n\t* // Check the state of the bold command:\n\t* editor.commands.get( 'bold' ).value;\n\t* ```\n\t*/\n\tcommands;\n\t/**\n\t* Stores all configurations specific to this editor instance.\n\t*\n\t* ```ts\n\t* editor.config.get( 'image.toolbar' );\n\t* // -> [ 'imageStyle:block', 'imageStyle:side', '|', 'toggleImageCaption', 'imageTextAlternative' ]\n\t* ```\n\t*/\n\tconfig;\n\t/**\n\t* Conversion manager through which you can register model-to-view and view-to-model converters.\n\t*\n\t* See the {@link module:engine/conversion/conversion~Conversion} documentation to learn how to add converters.\n\t*/\n\tconversion;\n\t/**\n\t* The {@link module:engine/controller/datacontroller~DataController data controller}.\n\t* Used e.g. for setting and retrieving the editor data.\n\t*/\n\tdata;\n\t/**\n\t* The {@link module:engine/controller/editingcontroller~EditingController editing controller}.\n\t* Controls user input and rendering the content for editing.\n\t*/\n\tediting;\n\t/**\n\t* The locale instance.\n\t*/\n\tlocale;\n\t/**\n\t* The editor's model.\n\t*\n\t* The central point of the editor's abstract data model.\n\t*/\n\tmodel;\n\t/**\n\t* The plugins loaded and in use by this editor instance.\n\t*\n\t* ```ts\n\t* editor.plugins.get( 'ClipboardPipeline' ); // -> An instance of the clipboard pipeline plugin.\n\t* ```\n\t*/\n\tplugins;\n\t/**\n\t* An instance of the {@link module:core/editingkeystrokehandler~EditingKeystrokeHandler}.\n\t*\n\t* It allows setting simple keystrokes:\n\t*\n\t* ```ts\n\t* // Execute the bold command on Ctrl+E:\n\t* editor.keystrokes.set( 'Ctrl+E', 'bold' );\n\t*\n\t* // Execute your own callback:\n\t* editor.keystrokes.set( 'Ctrl+E', ( data, cancel ) => {\n\t* \tconsole.log( data.keyCode );\n\t*\n\t* \t// Prevent the default (native) action and stop the underlying keydown event\n\t* \t// so no other editor feature will interfere.\n\t* \tcancel();\n\t* } );\n\t* ```\n\t*\n\t* Note: Certain typing-oriented keystrokes (like <kbd>Backspace</kbd> or <kbd>Enter</kbd>) are handled\n\t* by a low-level mechanism and trying to listen to them via the keystroke handler will not work reliably.\n\t* To handle these specific keystrokes, see the events fired by the\n\t* {@link module:engine/view/document~ViewDocument editing view document} (`editor.editing.view.document`).\n\t*/\n\tkeystrokes;\n\t/**\n\t* Shorthand for {@link module:utils/locale~Locale#t}.\n\t*\n\t* @see module:utils/locale~Locale#t\n\t*/\n\tt;\n\t/**\n\t* The default configuration which is built into the editor class.\n\t*\n\t* It was used in the now deprecated CKEditor 5 builds to provide the default configuration options\n\t* which are later used during the editor initialization.\n\t*\n\t* ```ts\n\t* ClassicEditor.defaultConfig = {\n\t* \tfoo: 1,\n\t* \tbar: 2\n\t* };\n\t*\n\t* ClassicEditor\n\t* \t.create( sourceElement )\n\t* \t.then( editor => {\n\t* \t\teditor.config.get( 'foo' ); // -> 1\n\t* \t\teditor.config.get( 'bar' ); // -> 2\n\t* \t} );\n\t*\n\t* // The default options can be overridden by the configuration passed to create().\n\t* ClassicEditor\n\t* \t.create( { bar: 3 } )\n\t* \t.then( editor => {\n\t* \t\teditor.config.get( 'foo' ); // -> 1\n\t* \t\teditor.config.get( 'bar' ); // -> 3\n\t* \t} );\n\t* ```\n\t*\n\t* See also {@link module:core/editor/editor~Editor.builtinPlugins}.\n\t*/\n\tstatic defaultConfig;\n\t/**\n\t* An array of plugins built into this editor class.\n\t*\n\t* It is used in the now deprecated CKEditor 5 builds to provide a list of plugins which are later automatically initialized\n\t* during the editor initialization.\n\t*\n\t* They will be automatically initialized by the editor, unless listed in `config.removePlugins` and\n\t* unless `config.plugins` is passed.\n\t*\n\t* ```ts\n\t* // Build some plugins into the editor class first.\n\t* ClassicEditor.builtinPlugins = [ FooPlugin, BarPlugin ];\n\t*\n\t* // Normally, you need to define config.plugins, but since ClassicEditor.builtinPlugins was\n\t* // defined, now you can call create() without any configuration.\n\t* ClassicEditor\n\t* \t.create( sourceElement )\n\t* \t.then( editor => {\n\t* \t\teditor.plugins.get( FooPlugin ); // -> An instance of the Foo plugin.\n\t* \t\teditor.plugins.get( BarPlugin ); // -> An instance of the Bar plugin.\n\t* \t} );\n\t*\n\t* ClassicEditor\n\t* \t.create( {\n\t* \t\t// Do not initialize these plugins (note: it is defined by a string):\n\t* \t\tremovePlugins: [ 'Foo' ]\n\t* \t} )\n\t* \t.then( editor => {\n\t* \t\teditor.plugins.get( FooPlugin ); // -> Undefined.\n\t* \t\teditor.config.get( BarPlugin ); // -> An instance of the Bar plugin.\n\t* \t} );\n\t*\n\t* ClassicEditor\n\t* \t.create( {\n\t* \t\t// Load only this plugin. It can also be defined by a string if\n\t* \t\t// this plugin was built into the editor class.\n\t* \t\tplugins: [ FooPlugin ]\n\t* \t} )\n\t* \t.then( editor => {\n\t* \t\teditor.plugins.get( FooPlugin ); // -> An instance of the Foo plugin.\n\t* \t\teditor.config.get( BarPlugin ); // -> Undefined.\n\t* \t} );\n\t* ```\n\t*\n\t* See also {@link module:core/editor/editor~Editor.defaultConfig}.\n\t*/\n\tstatic builtinPlugins;\n\t/**\n\t* The editor context.\n\t* When it is not provided through the configuration, the editor creates it.\n\t*/\n\t_context;\n\t/**\n\t* A set of lock IDs for the {@link #isReadOnly} getter.\n\t*/\n\t_readOnlyLocks;\n\t/**\n\t* Holds attributes keys that were passed in\n\t* {@link module:core/editor/editorconfig~EditorConfig#roots `config.roots.<rootName>.modelAttributes`}\n\t* or {@link module:core/editor/editorconfig~EditorConfig#root `config.root.modelAttributes`}.\n\t*/\n\t_registeredRootsAttributesKeys = /* @__PURE__ */ new Set();\n\t/**\n\t* `Editor` class is commonly put in `config.plugins` array.\n\t*\n\t* This property helps with better error detection.\n\t*\n\t* @internal\n\t*/\n\tstatic get _throwErrorWhenUsedAsAPlugin() {\n\t\treturn true;\n\t}\n\t/**\n\t* Creates a new instance of the editor class.\n\t*\n\t* Usually, not to be used directly. See the static {@link module:core/editor/editor~Editor.create `create()`} method.\n\t*\n\t* @param config The editor configuration.\n\t*/\n\tconstructor(config = {}) {\n\t\tsuper();\n\t\tif (typeof config !== \"object\" || Array.isArray(config))\n /**\n\t\t* Editor configuration must be an object.\n\t\t*\n\t\t* A common cause of this error is passing an Editor class (for example\n\t\t* `ClassicEditor`) in the `config.plugins` array. In such case, the editor\n\t\t* constructor is called with an Editor or Context instance instead of\n\t\t* the configuration object.\n\t\t*\n\t\t* @error editor-config-invalid-type\n\t\t*/\n\t\tthrow new CKEditorError(\"editor-config-invalid-type\");\n\t\tif (\"sanitizeHtml\" in config)\n /**\n\t\t* Configuration property `config.sanitizeHtml` was removed in CKEditor version 43.1.0 and is no longer supported.\n\t\t*\n\t\t* Please use `config.htmlEmbed.sanitizeHtml` and/or `config.mergeFields.sanitizeHtml` instead.\n\t\t*\n\t\t* @error editor-config-sanitizehtml-not-supported\n\t\t*/\n\t\tthrow new CKEditorError(\"editor-config-sanitizehtml-not-supported\");\n\t\tconst constructor = this.constructor;\n\t\tconst { translations: defaultTranslations, ...defaultConfig } = constructor.defaultConfig || {};\n\t\tconst { translations = defaultTranslations, ...rest } = config;\n\t\tconst language = config.language || defaultConfig.language;\n\t\tthis._context = config.context || new Context({\n\t\t\tlanguage,\n\t\t\ttranslations\n\t\t});\n\t\tthis._context._addEditor(this, !config.context);\n\t\tconst availablePlugins = Array.from(constructor.builtinPlugins || []);\n\t\tthis.config = new Config(rest, defaultConfig);\n\t\tthis.config.define(\"plugins\", availablePlugins);\n\t\tthis.config.define(this._context._getEditorConfig());\n\t\tcheckLicenseKeyIsDefined(this.config);\n\t\tthis.plugins = new PluginCollection(this, availablePlugins, this._context.plugins);\n\t\tthis.locale = this._context.locale;\n\t\tthis.t = this.locale.t;\n\t\tthis._readOnlyLocks = /* @__PURE__ */ new Set();\n\t\tthis.commands = new CommandCollection();\n\t\tthis.set(\"state\", \"initializing\");\n\t\tthis.once(\"ready\", () => this.state = \"ready\", { priority: \"high\" });\n\t\tthis.once(\"destroy\", () => this.state = \"destroyed\", { priority: \"high\" });\n\t\tthis.model = new Model(this.config);\n\t\tthis.on(\"change:isReadOnly\", () => {\n\t\t\tthis.model.document.isReadOnly = this.isReadOnly;\n\t\t});\n\t\tconst stylesProcessor = new StylesProcessor();\n\t\tthis.data = new DataController(this.model, stylesProcessor);\n\t\tthis.editing = new EditingController(this.model, stylesProcessor);\n\t\tthis.editing.view.document.bind(\"isReadOnly\").to(this);\n\t\tthis.conversion = new Conversion([this.editing.downcastDispatcher, this.data.downcastDispatcher], this.data.upcastDispatcher);\n\t\tthis.conversion.addAlias(\"dataDowncast\", this.data.downcastDispatcher);\n\t\tthis.conversion.addAlias(\"editingDowncast\", this.editing.downcastDispatcher);\n\t\tthis.keystrokes = new EditingKeystrokeHandler(this);\n\t\tthis.keystrokes.listenTo(this.editing.view.document);\n\t\tthis.accessibility = new Accessibility(this);\n\t\tverifyLicenseKey(this);\n\t\tfunction checkLicenseKeyIsDefined(config) {\n\t\t\tlet licenseKey = config.get(\"licenseKey\");\n\t\t\tif (!licenseKey && window.CKEDITOR_GLOBAL_LICENSE_KEY) {\n\t\t\t\tlicenseKey = window.CKEDITOR_GLOBAL_LICENSE_KEY;\n\t\t\t\tconfig.set(\"licenseKey\", licenseKey);\n\t\t\t}\n\t\t\tif (!licenseKey)\n /**\n\t\t\t* The `licenseKey` property is missing in the editor configuration.\n\t\t\t*\n\t\t\t* * If you are using the editor in a commercial setup, please provide your license key.\n\t\t\t* * If you still need to acquire a key, please [contact us](https://ckeditor.com/contact/) or\n\t\t\t* [create a free account with a 14 day premium features trial](https://portal.ckeditor.com/checkout?plan=free).\n\t\t\t* * If you are using the editor under a GPL license or another license from our Open Source Initiative,\n\t\t\t* use the 'GPL' license key instead.\n\t\t\t*\n\t\t\t* ```js\n\t\t\t* ClassicEditor.create( {\n\t\t\t* \tattachTo: document.querySelector( '#editor' ),\n\t\t\t* \tlicenseKey: '<YOUR_LICENSE_KEY>', // Or 'GPL'.\n\t\t\t* \t// ... Other configuration options ...\n\t\t\t* } ) ;\n\t\t\t*\n\t\t\t* @error license-key-missing\n\t\t\t*/\n\t\t\tthrow new CKEditorError(\"license-key-missing\");\n\t\t}\n\t\tfunction verifyLicenseKey(editor) {\n\t\t\tconst licenseKey = editor.config.get(\"licenseKey\");\n\t\t\tconst distributionChannel = window[Symbol.for(\"cke distribution\")] || \"sh\";\n\t\t\tfunction blockEditor(reason, name) {\n\t\t\t\teditor.enableReadOnlyMode(Symbol(\"invalidLicense\"));\n\t\t\t\teditor._showLicenseError(reason, name);\n\t\t\t}\n\t\t\tfunction hasAllRequiredFields(licensePayload) {\n\t\t\t\treturn [\n\t\t\t\t\t\"exp\",\n\t\t\t\t\t\"jti\",\n\t\t\t\t\t\"vc\"\n\t\t\t\t].every((field) => field in licensePayload);\n\t\t\t}\n\t\t\tfunction getCrcInputData(licensePayload) {\n\t\t\t\treturn Object.getOwnPropertyNames(licensePayload).sort().filter((key) => key != \"vc\" && licensePayload[key] != null).map((key) => licensePayload[key]);\n\t\t\t}\n\t\t\tfunction checkLicensedHosts(licensedHosts) {\n\t\t\t\tconst { hostname } = new URL(window.location.href);\n\t\t\t\tif (licensedHosts.includes(hostname)) return true;\n\t\t\t\tconst segments = hostname.split(\".\");\n\t\t\t\treturn licensedHosts.filter((host) => host.includes(\"*\")).map((host) => host.split(\".\")).filter((host) => host.length <= segments.length).map((host) => Array(segments.length - host.length).fill(host[0] === \"*\" ? \"*\" : \"\").concat(host)).some((octets) => segments.every((segment, index) => octets[index] === segment || octets[index] === \"*\"));\n\t\t\t}\n\t\t\tfunction warnAboutNonProductionLicenseKey(licenseType) {\n\t\t\t\tconst capitalizedLicenseType = licenseType[0].toUpperCase() + licenseType.slice(1);\n\t\t\t\tconst article = licenseType === \"evaluation\" ? \"an\" : \"a\";\n\t\t\t\tconsole.info(`%cCKEditor 5 ${capitalizedLicenseType} License`, \"color: #ffffff; background: #743CCD; font-size: 14px; padding: 4px 8px; border-radius: 4px;\");\n\t\t\t\tconsole.warn(`⚠️ You are using ${article} ${licenseType} license of CKEditor 5${licenseType === \"trial\" ? \" which is for evaluation purposes only\" : \"\"}. For production usage, please obtain a production license at https://portal.ckeditor.com/`);\n\t\t\t}\n\t\t\tif (licenseKey == \"GPL\") {\n\t\t\t\tif (distributionChannel == \"cloud\") blockEditor(\"distributionChannel\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tconst licensePayload = decodeLicenseKey(licenseKey);\n\t\t\tif (!licensePayload) {\n\t\t\t\tblockEditor(\"invalid\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (!hasAllRequiredFields(licensePayload)) {\n\t\t\t\tblockEditor(\"invalid\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (licensePayload.distributionChannel && !toArray(licensePayload.distributionChannel).includes(distributionChannel)) {\n\t\t\t\tblockEditor(\"distributionChannel\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (crc32(getCrcInputData(licensePayload)) != licensePayload.vc.toLowerCase()) {\n\t\t\t\tblockEditor(\"invalid\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (/* @__PURE__ */ new Date(licensePayload.exp * 1e3) < releaseDate) {\n\t\t\t\tblockEditor(\"expired\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tconst licensedHosts = licensePayload.licensedHosts;\n\t\t\tif (licensedHosts && licensedHosts.length > 0 && !checkLicensedHosts(licensedHosts)) {\n\t\t\t\tblockEditor(\"domainLimit\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif ([\"evaluation\", \"trial\"].includes(licensePayload.licenseType) && licensePayload.exp * 1e3 < Date.now()) {\n\t\t\t\tblockEditor(\"expired\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif ([\n\t\t\t\t\"development\",\n\t\t\t\t\"evaluation\",\n\t\t\t\t\"trial\"\n\t\t\t].includes(licensePayload.licenseType)) {\n\t\t\t\tconst { licenseType } = licensePayload;\n\t\t\t\twindow.CKEDITOR_WARNING_SUPPRESSIONS = window.CKEDITOR_WARNING_SUPPRESSIONS || {};\n\t\t\t\tif (!window.CKEDITOR_WARNING_SUPPRESSIONS[licenseType]) {\n\t\t\t\t\twarnAboutNonProductionLicenseKey(licenseType);\n\t\t\t\t\twindow.CKEDITOR_WARNING_SUPPRESSIONS[licenseType] = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (licensePayload.licenseType === \"evaluation\") {\n\t\t\t\tconst timerId = setTimeout(() => {\n\t\t\t\t\tblockEditor(\"evaluationLimit\");\n\t\t\t\t}, 6e5);\n\t\t\t\teditor.on(\"destroy\", () => {\n\t\t\t\t\tclearTimeout(timerId);\n\t\t\t\t});\n\t\t\t}\n\t\t\tif (licensePayload.usageEndpoint) editor.once(\"ready\", () => {\n\t\t\t\tconst request = {\n\t\t\t\t\trequestId: uid(),\n\t\t\t\t\trequestTime: Math.round(Date.now() / 1e3),\n\t\t\t\t\tlicense: licenseKey,\n\t\t\t\t\teditor: collectUsageData(editor)\n\t\t\t\t};\n\t\t\t\t/**\n\t\t\t\t* This part of the code is not executed in open-source implementations using a GPL key.\n\t\t\t\t* It only runs when a specific license key is provided. If you are uncertain whether\n\t\t\t\t* this applies to your installation, please contact our support team.\n\t\t\t\t*/\n\t\t\t\teditor._sendUsageRequest(licensePayload.usageEndpoint, request).then((response) => {\n\t\t\t\t\tconst { status, message } = response;\n\t\t\t\t\tif (message) console.warn(message);\n\t\t\t\t\tif (status != \"ok\") blockEditor(\"usageLimit\");\n\t\t\t\t}, () => {\n\t\t\t\t\t/**\n\t\t\t\t\t* Your license key cannot be validated due to a network issue.\n\t\t\t\t\t* Please ensure that your setup does not block requests to the validation endpoint.\n\t\t\t\t\t*\n\t\t\t\t\t* @error license-key-validation-endpoint-not-reachable\n\t\t\t\t\t* @param {string} url The URL that was attempted to be reached for validation.\n\t\t\t\t\t*/\n\t\t\t\t\tlogError(\"license-key-validation-endpoint-not-reachable\", { url: licensePayload.usageEndpoint });\n\t\t\t\t});\n\t\t\t}, { priority: \"high\" });\n\t\t}\n\t}\n\t/**\n\t* Defines whether the editor is in the read-only mode.\n\t*\n\t* In read-only mode the editor {@link #commands commands} are disabled so it is not possible\n\t* to modify the document by using them. Also, the editable element(s) become non-editable.\n\t*\n\t* In order to make the editor read-only, you need to call the {@link #enableReadOnlyMode} method:\n\t*\n\t* ```ts\n\t* editor.enableReadOnlyMode( 'feature-id' );\n\t* ```\n\t*\n\t* Later, to turn off the read-only mode, call {@link #disableReadOnlyMode}:\n\t*\n\t* ```ts\n\t* editor.disableReadOnlyMode( 'feature-id' );\n\t* ```\n\t*\n\t* @readonly\n\t* @observable\n\t*/\n\tget isReadOnly() {\n\t\treturn this._readOnlyLocks.size > 0;\n\t}\n\tset isReadOnly(value) {\n\t\t/**\n\t\t* The {@link module:core/editor/editor~Editor#isReadOnly Editor#isReadOnly} property is read-only since version `34.0.0`\n\t\t* and can be set only using {@link module:core/editor/editor~Editor#enableReadOnlyMode `Editor#enableReadOnlyMode( lockId )`} and\n\t\t* {@link module:core/editor/editor~Editor#disableReadOnlyMode `Editor#disableReadOnlyMode( lockId )`}.\n\t\t*\n\t\t* Usage before version `34.0.0`:\n\t\t*\n\t\t* ```ts\n\t\t* editor.isReadOnly = true;\n\t\t* editor.isReadOnly = false;\n\t\t* ```\n\t\t*\n\t\t* Usage since version `34.0.0`:\n\t\t*\n\t\t* ```ts\n\t\t* editor.enableReadOnlyMode( 'my-feature-id' );\n\t\t* editor.disableReadOnlyMode( 'my-feature-id' );\n\t\t* ```\n\t\t*\n\t\t* @error editor-isreadonly-has-no-setter\n\t\t*/\n\t\tthrow new CKEditorError(\"editor-isreadonly-has-no-setter\");\n\t}\n\t/**\n\t* Turns on the read-only mode in the editor.\n\t*\n\t* Editor can be switched to or out of the read-only mode by many features, under various circumstances. The editor supports locking\n\t* mechanism for the read-only mode. It enables easy control over the read-only mode when many features wants to turn it on or off at\n\t* the same time, without conflicting with each other. It guarantees that you will not make the editor editable accidentally (which\n\t* could lead to errors).\n\t*\n\t* Each read-only mode request is identified by a unique id (also called \"lock\"). If multiple plugins requested to turn on the\n\t* read-only mode, then, the editor will become editable only after all these plugins turn the read-only mode off (using the same ids).\n\t*\n\t* Note, that you cannot force the editor to disable the read-only mode if other plugins set it.\n\t*\n\t* After the first `enableReadOnlyMode()` call, the {@link #isReadOnly `isReadOnly` property} will be set to `true`:\n\t*\n\t* ```ts\n\t* editor.isReadOnly; // `false`.\n\t* editor.enableReadOnlyMode( 'my-feature-id' );\n\t* editor.isReadOnly; // `true`.\n\t* ```\n\t*\n\t* You can turn off the read-only mode (\"clear the lock\") using the {@link #disableReadOnlyMode `disableReadOnlyMode()`} method:\n\t*\n\t* ```ts\n\t* editor.enableReadOnlyMode( 'my-feature-id' );\n\t* // ...\n\t* editor.disableReadOnlyMode( 'my-feature-id' );\n\t* editor.isReadOnly; // `false`.\n\t* ```\n\t*\n\t* All \"locks\" need to be removed to enable editing:\n\t*\n\t* ```ts\n\t* editor.enableReadOnlyMode( 'my-feature-id' );\n\t* editor.enableReadOnlyMode( 'my-other-feature-id' );\n\t* // ...\n\t* editor.disableReadOnlyMode( 'my-feature-id' );\n\t* editor.isReadOnly; // `true`.\n\t* editor.disableReadOnlyMode( 'my-other-feature-id' );\n\t* editor.isReadOnly; // `false`.\n\t* ```\n\t*\n\t* @param lockId A unique ID for setting the editor to the read-only state.\n\t*/\n\tenableReadOnlyMode(lockId) {\n\t\tif (typeof lockId !== \"string\" && typeof lockId !== \"symbol\")\n /**\n\t\t* The lock ID is missing or it is not a string or symbol.\n\t\t*\n\t\t* @error editor-read-only-lock-id-invalid\n\t\t* @param {never} lockId Lock ID.\n\t\t*/\n\t\tthrow new CKEditorError(\"editor-read-only-lock-id-invalid\", null, { lockId });\n\t\tif (this._readOnlyLocks.has(lockId)) return;\n\t\tthis._readOnlyLocks.add(lockId);\n\t\tif (this._readOnlyLocks.size === 1) this.fire(\"change:isReadOnly\", \"isReadOnly\", true, false);\n\t}\n\t/**\n\t* Removes the read-only lock from the editor with given lock ID.\n\t*\n\t* When no lock is present on the editor anymore, then the {@link #isReadOnly `isReadOnly` property} will be set to `false`.\n\t*\n\t* @param lockId The lock ID for setting the editor to the read-only state.\n\t*/\n\tdisableReadOnlyMode(lockId) {\n\t\tif (typeof lockId !== \"string\" && typeof lockId !== \"symbol\") throw new CKEditorError(\"editor-read-only-lock-id-invalid\", null, { lockId });\n\t\tif (!this._readOnlyLocks.has(lockId)) return;\n\t\tthis._readOnlyLocks.delete(lockId);\n\t\tif (this._readOnlyLocks.size === 0) this.fire(\"change:isReadOnly\", \"isReadOnly\", false, true);\n\t}\n\t/**\n\t* Sets the data in the editor.\n\t*\n\t* ```ts\n\t* editor.setData( '<p>This is editor!</p>' );\n\t* ```\n\t*\n\t* If your editor implementation uses multiple roots, you should pass an object with keys corresponding\n\t* to the editor root names and values equal to the data that should be set in each root:\n\t*\n\t* ```ts\n\t* editor.setData( {\n\t* header: '<p>Content for header part.</p>',\n\t* content: '<p>Content for main part.</p>',\n\t* footer: '<p>Content for footer part.</p>'\n\t* } );\n\t* ```\n\t*\n\t* By default the editor accepts HTML. This can be controlled by injecting a different data processor.\n\t* See the {@glink features/markdown Markdown output} guide for more details.\n\t*\n\t* @param data Input data.\n\t*/\n\tsetData(data) {\n\t\tthis.data.set(data);\n\t}\n\t/**\n\t* Gets the data from the editor.\n\t*\n\t* ```ts\n\t* editor.getData(); // -> '<p>This is editor!</p>'\n\t* ```\n\t*\n\t* If your editor implementation uses multiple roots, you should pass root name as one of the options:\n\t*\n\t* ```ts\n\t* editor.getData( { rootName: 'header' } ); // -> '<p>Content for header part.</p>'\n\t* ```\n\t*\n\t* By default, the editor outputs HTML. This can be controlled by injecting a different data processor.\n\t* See the {@glink features/markdown Markdown output} guide for more details.\n\t*\n\t* A warning is logged when you try to retrieve data for a detached root, as most probably this is a mistake. A detached root should\n\t* be treated like it is removed, and you should not save its data. Note, that the detached root data is always an empty string.\n\t*\n\t* @param options Additional configuration for the retrieved data.\n\t* Editor features may introduce more configuration options that can be set through this parameter.\n\t* @param options.rootName Root name. Defaults to `'main'`.\n\t* @param options.trim Whether returned data should be trimmed. This option is set to `'empty'` by default,\n\t* which means that whenever editor content is considered empty, an empty string is returned. To turn off trimming\n\t* use `'none'`. In such cases exact content will be returned (for example `'<p>&nbsp;</p>'` for an empty editor).\n\t* @returns Output data.\n\t*/\n\tgetData(options) {\n\t\treturn this.data.get(options);\n\t}\n\t/**\n\t* Loads and initializes plugins specified in the configuration.\n\t*\n\t* @returns A promise which resolves once the initialization is completed, providing an array of loaded plugins.\n\t*/\n\tasync initPlugins() {\n\t\tconst config = this.config;\n\t\tconst plugins = config.get(\"plugins\");\n\t\tconst removePlugins = config.get(\"removePlugins\") || [];\n\t\tconst extraPlugins = config.get(\"extraPlugins\") || [];\n\t\tconst substitutePlugins = config.get(\"substitutePlugins\") || [];\n\t\tconst loadedPlugins = await this.plugins.init(plugins.concat(extraPlugins), removePlugins, substitutePlugins);\n\t\tcheckPluginsAllowedByLicenseKey(this);\n\t\treturn loadedPlugins;\n\t\tfunction checkPluginsAllowedByLicenseKey(editor) {\n\t\t\tconst licenseKey = editor.config.get(\"licenseKey\");\n\t\t\tif (licenseKey === \"GPL\") return;\n\t\t\tconst decodedPayload = decodeLicenseKey(licenseKey);\n\t\t\tif (!decodedPayload) return;\n\t\t\tconst disallowedPlugin = [...editor.plugins].map(([pluginConstructor]) => pluginConstructor).find((pluginConstructor) => {\n\t\t\t\tif (!pluginConstructor.pluginName) return false;\n\t\t\t\tif (!pluginConstructor.licenseFeatureCode) return false;\n\t\t\t\treturn isFeatureBlockedByLicenseKey(decodedPayload, pluginConstructor.licenseFeatureCode);\n\t\t\t});\n\t\t\tif (disallowedPlugin) {\n\t\t\t\teditor.enableReadOnlyMode(Symbol(\"invalidLicense\"));\n\t\t\t\teditor._showLicenseError(\"pluginNotAllowed\", disallowedPlugin.pluginName);\n\t\t\t}\n\t\t}\n\t}\n\t/**\n\t* Destroys the editor instance, releasing all resources used by it.\n\t*\n\t* **Note** The editor cannot be destroyed during the initialization phase so if it is called\n\t* while the editor {@link #state is being initialized}, it will wait for the editor initialization before destroying it.\n\t*\n\t* @fires destroy\n\t* @returns A promise that resolves once the editor instance is fully destroyed.\n\t*/\n\tasync destroy() {\n\t\tif (this.state == \"initializing\") await new Promise((resolve) => this.once(\"ready\", resolve));\n\t\tthis.fire(\"destroy\");\n\t\tthis.stopListening();\n\t\tthis.commands.destroy();\n\t\tawait this.plugins.destroy();\n\t\tthis.model.destroy();\n\t\tthis.data.destroy();\n\t\tthis.editing.destroy();\n\t\tthis.keystrokes.destroy();\n\t\tawait this._context._removeEditor(this);\n\t}\n\t/**\n\t* Executes the specified command with given parameters.\n\t*\n\t* Shorthand for:\n\t*\n\t* ```ts\n\t* editor.commands.get( commandName ).execute( ... );\n\t* ```\n\t*\n\t* @param commandName The name of the command to execute.\n\t* @param commandParams Command parameters.\n\t* @returns The value returned by the {@link module:core/commandcollection~CommandCollection#execute `commands.execute()`}.\n\t*/\n\texecute(commandName, ...commandParams) {\n\t\ttry {\n\t\t\treturn this.commands.execute(commandName, ...commandParams);\n\t\t} catch (err) {\n\t\t\t/* v8 ignore next -- @preserve */\n\t\t\tCKEditorError.rethrowUnexpectedError(err, this);\n\t\t}\n\t}\n\t/**\n\t* Focuses the editor.\n\t*\n\t* **Note** To explicitly focus the editing area of the editor, use the\n\t* {@link module:engine/view/view~EditingView#focus `editor.editing.view.focus()`} method of the editing view.\n\t*\n\t* Check out the {@glink framework/deep-dive/ui/focus-tracking#focus-in-the-editor-ui Focus in the editor UI} section\n\t* of the {@glink framework/deep-dive/ui/focus-tracking Deep dive into focus tracking} guide to learn more.\n\t*/\n\tfocus() {\n\t\tthis.editing.view.focus();\n\t}\n\t/**\n\t* Registers a given string as a root attribute key. Registered root attributes are added to\n\t* the {@link module:engine/model/schema~ModelSchema schema}.\n\t*\n\t* **Note:** Attributes passed in the configuration for multi-root editors\n\t* ({@link module:core/editor/editorconfig~EditorConfig#roots `config.roots.<rootName>.modelAttributes`}) or\n\t* single-root editors ({@link module:core/editor/editorconfig~EditorConfig#root `config.root.modelAttributes`})\n\t* are automatically registered when the editor is initialized. However, registering the same attribute twice\n\t* does not have any negative impact, so it is recommended to use this method in any feature that uses\n\t* root attributes.\n\t*\n\t* **Note:** Registered attributes are attached only to the generic `$root` schema element. A custom root\n\t* {@link module:core/editor/editorconfig~RootConfig#modelElement `modelElement`} must opt into the `$root`\n\t* attribute chain via `allowAttributesOf: '$root'` to inherit these attributes.\n\t* See the {@glink framework/deep-dive/schema#custom-root-elements Custom root elements} section of the\n\t* {@glink framework/deep-dive/schema Schema deep-dive} guide for more details.\n\t*/\n\tregisterRootAttribute(key) {\n\t\tif (this._registeredRootsAttributesKeys.has(key)) return;\n\t\tthis._registeredRootsAttributesKeys.add(key);\n\t\tthis.editing.model.schema.extend(\"$root\", { allowAttributes: key });\n\t}\n\t/**\n\t* Returns attributes for the specified root.\n\t* If no root name is provided, it returns attributes for the 'main' root by default.\n\t*\n\t* Note: all and only {@link ~Editor#registerRootAttribute registered} roots attributes will be returned.\n\t* If a registered root attribute is not set for a given root, `null` will be returned.\n\t*/\n\tgetRootAttributes(rootName = \"main\") {\n\t\tconst root = this.model.document.getRoot(rootName);\n\t\tif (!root)\n /**\n\t\t* The requested root does not exist. Please ensure that the provided root name\n\t\t* is correct and that the root has been properly initialized in the document.\n\t\t*\n\t\t* @error get-root-attributes-missing-root\n\t\t*/\n\t\tthrow new CKEditorError(\"get-root-attributes-missing-root\", this, { rootName });\n\t\tconst rootAttributes = {};\n\t\tfor (const key of this._registeredRootsAttributesKeys) rootAttributes[key] = root.hasAttribute(key) ? root.getAttribute(key) : null;\n\t\treturn rootAttributes;\n\t}\n\t/**\n\t* Creates and initializes a new editor instance.\n\t*\n\t* This is an abstract method. Every editor type needs to implement its own initialization logic.\n\t*\n\t* See the `create()` methods of the existing editor types to learn how to use them:\n\t*\n\t* * {@link module:editor-classic/classiceditor~ClassicEditor.create `ClassicEditor.create()`}\n\t* * {@link module:editor-balloon/ballooneditor~BalloonEditor.create `BalloonEditor.create()`}\n\t* * {@link module:editor-decoupled/decouplededitor~DecoupledEditor.create `DecoupledEditor.create()`}\n\t* * {@link module:editor-inline/inlineeditor~InlineEditor.create `InlineEditor.create()`}\n\t*/\n\tstatic create(...args) {\n\t\tthrow new Error(\"This is an abstract method.\");\n\t}\n\t/**\n\t* The {@link module:core/context~Context} class.\n\t*\n\t* Exposed as static editor field for easier access in editor builds.\n\t*/\n\tstatic Context = Context;\n\t/**\n\t* The {@link module:watchdog/editorwatchdog~EditorWatchdog} class.\n\t*\n\t* Exposed as static editor field for easier access in editor builds.\n\t*/\n\tstatic EditorWatchdog = EditorWatchdog;\n\t/**\n\t* The {@link module:watchdog/contextwatchdog~ContextWatchdog} class.\n\t*\n\t* Exposed as static editor field for easier access in editor builds.\n\t*/\n\tstatic ContextWatchdog = ContextWatchdog;\n\t_showLicenseError(reason, name) {\n\t\tsetTimeout(() => {\n\t\t\tif (reason == \"invalid\")\n /**\n\t\t\t* The license key provided is invalid. Please ensure that it is copied correctly\n\t\t\t* from the [Customer Portal](http://portal.ckeditor.com). If the issue persists,\n\t\t\t* please [contact our customer support](https://ckeditor.com/contact/).\n\t\t\t*\n\t\t\t* @error invalid-license-key\n\t\t\t*/\n\t\t\tthrow new CKEditorError(\"invalid-license-key\");\n\t\t\tif (reason == \"expired\")\n /**\n\t\t\t* Your license key has expired.\n\t\t\t*\n\t\t\t* If you used our free trial, you either need to switch to\n\t\t\t* [open-source license](https://ckeditor.com/docs/ckeditor5/latest/getting-started/licensing/license-and-legal.html), or\n\t\t\t* in case of a commercial plan, change the trial key to production key or development key.\n\t\t\t* Switching from trial, you also need to align the editor configuration to the features available in your plan.\n\t\t\t*\n\t\t\t* If you already had one of our Cloud or Custom plans, please renew your license in the\n\t\t\t* [Customer Portal](https://portal.ckeditor.com).\n\t\t\t*\n\t\t\t* @error license-key-expired\n\t\t\t*/\n\t\t\tthrow new CKEditorError(\"license-key-expired\");\n\t\t\tif (reason == \"domainLimit\")\n /**\n\t\t\t* The provided license does not allow the editor to run on this domain.\n\t\t\t* Some license keys are restricted to local test environments only.\n\t\t\t* For more details, please refer to the\n\t\t\t* {@glink getting-started/licensing/license-key-and-activation#license-key-types license key type documentation}.\n\t\t\t*\n\t\t\t* @error license-key-domain-limit\n\t\t\t*/\n\t\t\tthrow new CKEditorError(\"license-key-domain-limit\");\n\t\t\tif (reason == \"pluginNotAllowed\") {\n\t\t\t\tconst gluePluginName = name.replace(/(Editing|UI)$/, \"\");\n\t\t\t\tconst containsGluePlugin = this.plugins.has(gluePluginName);\n\t\t\t\t/**\n\t\t\t\t* The plugin you are trying to use is not permitted under your current license.\n\t\t\t\t* Please check the available features on the\n\t\t\t\t* [Customer Portal](https://portal.ckeditor.com) or\n\t\t\t\t* [contact support](https://ckeditor.com/contact/) for more information.\n\t\t\t\t*\n\t\t\t\t* @error license-key-plugin-not-allowed\n\t\t\t\t* @param {String} pluginName The plugin you tried to load.\n\t\t\t\t*/\n\t\t\t\tthrow new CKEditorError(\"license-key-plugin-not-allowed\", null, { pluginName: containsGluePlugin ? gluePluginName : name });\n\t\t\t}\n\t\t\tif (reason == \"featureNotAllowed\")\n /**\n\t\t\t* The feature you are trying to use is not permitted under your current license.\n\t\t\t* Please check the available features on the\n\t\t\t* [Customer Portal](https://portal.ckeditor.com) or\n\t\t\t* [contact support](https://ckeditor.com/contact/) for more information.\n\t\t\t*\n\t\t\t* @error license-key-feature-not-allowed\n\t\t\t* @param {String} featureName The feature you tried to use.\n\t\t\t*/\n\t\t\tthrow new CKEditorError(\"license-key-feature-not-allowed\", null, { featureName: name });\n\t\t\tif (reason == \"evaluationLimit\")\n /**\n\t\t\t* You have exceeded the editor operation limit available for your evaluation license key.\n\t\t\t* Please restart the editor to continue using it.\n\t\t\t* {@glink getting-started/licensing/license-key-and-activation#license-key-types Read more about license key types}.\n\t\t\t*\n\t\t\t* @error license-key-evaluation-limit\n\t\t\t*/\n\t\t\tthrow new CKEditorError(\"license-key-evaluation-limit\");\n\t\t\tif (reason == \"trialLimit\")\n /**\n\t\t\t* You have exceeded the editor operation limit for your trial license key.\n\t\t\t* Please restart the editor to continue using it.\n\t\t\t* {@glink getting-started/licensing/license-key-and-activation#license-key-types Read more about license key types}.\n\t\t\t*\n\t\t\t* @error license-key-trial-limit\n\t\t\t*/\n\t\t\tthrow new CKEditorError(\"license-key-trial-limit\");\n\t\t\tif (reason == \"developmentLimit\")\n /**\n\t\t\t* You have exceeded the operation limit for your development license key within the editor.\n\t\t\t* Please restart the editor to continue using it.\n\t\t\t* {@glink getting-started/licensing/license-key-and-activation#license-key-types Read more about license key types}.\n\t\t\t*\n\t\t\t* @error license-key-development-limit\n\t\t\t*/\n\t\t\tthrow new CKEditorError(\"license-key-development-limit\");\n\t\t\tif (reason == \"usageLimit\")\n /**\n\t\t\t* You have reached the usage limit of your license key. This can occur in the following situations:\n\t\t\t*\n\t\t\t* * You are on a free subscription without a connected payment method and have exceeded the allowed usage threshold.\n\t\t\t* * Your account has overdue invoices and the grace period has ended.\n\t\t\t*\n\t\t\t* To extend the limit and restore access, please update the required details in the\n\t\t\t* [Customer Portal](https://portal.ckeditor.com) or\n\t\t\t* [contact our customer support](https://ckeditor.com/contact).\n\t\t\t*\n\t\t\t* @error license-key-usage-limit\n\t\t\t*/\n\t\t\tthrow new CKEditorError(\"license-key-usage-limit\");\n\t\t\t/* v8 ignore else -- @preserve */\n\t\t\tif (reason == \"distributionChannel\")\n /**\n\t\t\t* Your license does not allow the current distribution channel.\n\t\t\t*\n\t\t\t* These are the available distribution channels:\n\t\t\t* * Self-hosted - the editor is installed via npm or from a ZIP package\n\t\t\t* * Cloud - the editor is run from CDN\n\t\t\t*\n\t\t\t* The licenses available include:\n\t\t\t* * GPL license for open-source users.\n\t\t\t* * Commercial plans (Cloud or sales-assisted).\n\t\t\t*\n\t\t\t* The relation between distribution channels and licenses works as follows:\n\t\t\t* * With the 'GPL' license key, you may use the editor installed via npm or a ZIP package (self-hosted).\n\t\t\t* * With the CKEditor Cloud plans, you may use the editor via our CDN.\n\t\t\t* * With the CKEditor Custom plans, depending on your plan details, you can use the editor via npm\n\t\t\t* or a ZIP package (self-hosted) or Cloud (CDN).\n\t\t\t*\n\t\t\t* {@glink getting-started/licensing/usage-based-billing#key-terms Read more about distributions in the documentation}.\n\t\t\t* Please verify your installation or [contact support](https://ckeditor.com/contact/) for assistance.\n\t\t\t* Should you need to migrate your installation from npm to CDN, please refer to our\n\t\t\t* [dedicated migration guides](https://ckeditor.com/docs/ckeditor5/latest/updating/migrations/vanilla-js.html).\n\t\t\t*\n\t\t\t* @error license-key-invalid-distribution-channel\n\t\t\t*/\n\t\t\tthrow new CKEditorError(\"license-key-invalid-distribution-channel\");\n\t\t}, 0);\n\t\tthis._showLicenseError = () => {};\n\t}\n\t/**\n\t* This part of the code is _not_ executed in installations under the GPL license (with `config.licenseKey = 'GPL'`).\n\t*\n\t* It is only executed when a specific license key is provided. If you are uncertain whether\n\t* this applies to your installation, please contact our support team.\n\t*/\n\tasync _sendUsageRequest(endpoint, request) {\n\t\tconst headers = new Headers({ \"Content-Type\": \"application/json\" });\n\t\tconst response = await fetch(new URL(endpoint), {\n\t\t\tmethod: \"POST\",\n\t\t\theaders,\n\t\t\tbody: JSON.stringify(request)\n\t\t});\n\t\tif (!response.ok) throw new Error(`HTTP Response: ${response.status}`);\n\t\treturn response.json();\n\t}\n};\nfunction collectUsageData(editor) {\n\tconst collectedData = getEditorUsageData(editor);\n\tfunction setUsageData(path, value) {\n\t\tif (get(collectedData, path) !== void 0)\n /**\n\t\t* The error thrown when trying to set the usage data path that was already set.\n\t\t* Make sure that you are not setting the same path multiple times.\n\t\t*\n\t\t* @error editor-usage-data-path-already-set\n\t\t* @param {string} path The path that was already set.\n\t\t*/\n\t\tthrow new CKEditorError(\"editor-usage-data-path-already-set\", { path });\n\t\tset(collectedData, path, value);\n\t}\n\teditor.fire(\"collectUsageData\", { setUsageData });\n\treturn collectedData;\n}\n/**\n* This error is thrown when trying to pass a `<textarea>` element to a `create()` function of an editor class.\n*\n* The only editor type which can be initialized on `<textarea>` elements is\n* the {@glink getting-started/setup/editor-types#classic-editor classic editor}.\n* This editor hides the passed element and inserts its own UI next to it. Other types of editors reuse the passed element as their root\n* editable element and therefore `<textarea>` is not appropriate for them. Use a `<div>` or another text container instead:\n*\n* ```html\n* <div id=\"editor\">\n* \t<p>Initial content.</p>\n* </div>\n* ```\n*\n* @error editor-wrong-element\n*/\n/**\n* You are running [CKEditor 5 Long-term Support Edition (LTS)](https://ckeditor.com/ckeditor-5-lts/),\n* but the provided license key does not include access to the LTS version, or the key is invalid.\n*\n* Please ensure that it is copied correctly from the [Customer Portal](http://portal.ckeditor.com/),\n* and if the issue persists, please [contact our customer support](https://ckeditor.com/contact/).\n*\n* In case you intended to use the [LTS Edition](https://ckeditor.com/ckeditor-5-lts/),\n* but have not yet made a purchase, please [contact our sales team](https://ckeditor.com/contact-sales/)\n*\n* If you did not intend to use LTS, please note that all releases in the v47.7 line are\n* for LTS subscribers only. To use a non-LTS edition, either upgrade to v48 or newer,\n* which is our standard [latest](https://ckeditor.com/docs/ckeditor5/latest/updating/guides/changelog.html)\n* release line, or stay on a version 47.6.2 or earlier.\n*\n* @error license-key-lts-not-allowed\n*/\n\n/**\n* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.\n* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options\n*/\n/**\n* @module core/editor/utils/attachtoform\n*/\n/**\n* Checks if the editor is initialized on a `<textarea>` element that belongs to a form. If yes, it updates the editor's element\n* content before submitting the form.\n*\n* This helper requires the {@link module:core/editor/utils/elementapimixin~ElementApi ElementApi interface}.\n*\n* @param editor Editor instance.\n*/\nfunction attachToForm(editor) {\n\tif (!isFunction(editor.updateSourceElement))\n /**\n\t* The editor passed to `attachToForm()` must implement the\n\t* {@link module:core/editor/utils/elementapimixin~ElementApi} interface.\n\t*\n\t* @error attachtoform-missing-elementapi-interface\n\t*/\n\tthrow new CKEditorError(\"attachtoform-missing-elementapi-interface\", editor);\n\tconst sourceElement = editor.sourceElement;\n\tif (isTextArea(sourceElement) && sourceElement.form) {\n\t\tlet originalSubmit;\n\t\tconst form = sourceElement.form;\n\t\tconst onSubmit = () => editor.updateSourceElement();\n\t\tif (isFunction(form.submit)) {\n\t\t\toriginalSubmit = form.submit;\n\t\t\tform.submit = () => {\n\t\t\t\tonSubmit();\n\t\t\t\toriginalSubmit.apply(form);\n\t\t\t};\n\t\t}\n\t\tform.addEventListener(\"submit\", onSubmit);\n\t\teditor.on(\"destroy\", () => {\n\t\t\tform.removeEventListener(\"submit\", onSubmit);\n\t\t\tif (originalSubmit) form.submit = originalSubmit;\n\t\t});\n\t}\n}\nfunction isTextArea(sourceElement) {\n\treturn !!sourceElement && sourceElement.tagName.toLowerCase() === \"textarea\";\n}\n\n/**\n* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.\n* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options\n*/\n/**\n* @module core/editor/utils/elementapimixin\n*/\n/**\n* Implementation of the {@link module:core/editor/utils/elementapimixin~ElementApi}.\n*/\nfunction ElementApiMixin(base) {\n\tclass Mixin extends base {\n\t\tsourceElement;\n\t\tupdateSourceElement(data) {\n\t\t\tif (!this.sourceElement)\n /**\n\t\t\t* Cannot update the source element of a detached editor.\n\t\t\t*\n\t\t\t* The {@link module:core/editor/utils/elementapimixin~ElementApi#updateSourceElement `updateSourceElement()`}\n\t\t\t* method cannot be called if you did not pass an element to `Editor.create()`.\n\t\t\t*\n\t\t\t* @error editor-missing-sourceelement\n\t\t\t*/\n\t\t\tthrow new CKEditorError(\"editor-missing-sourceelement\", this);\n\t\t\tconst shouldUpdateSourceElement = this.config.get(\"updateSourceElementOnDestroy\");\n\t\t\tconst isSourceElementTextArea = this.sourceElement instanceof HTMLTextAreaElement;\n\t\t\tif (!shouldUpdateSourceElement && !isSourceElementTextArea) {\n\t\t\t\tsetDataInElement(this.sourceElement, \"\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tconst dataToSet = typeof data === \"string\" ? data : this.data.get();\n\t\t\tsetDataInElement(this.sourceElement, dataToSet);\n\t\t}\n\t}\n\treturn Mixin;\n}\n\n/**\n* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.\n* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options\n*/\n/**\n* @module core/editor/utils/securesourceelement\n*/\n/**\n* Marks the source element on which the editor was initialized. This prevents other editor instances from using this element.\n*\n* Running multiple editor instances on the same source element causes various issues and it is\n* crucial this helper is called as soon as the source element is known to prevent collisions.\n*\n* @param editor Editor instance.\n* @param sourceElement Element to bind with the editor instance.\n*/\nfunction secureSourceElement(editor, sourceElement) {\n\tif (sourceElement.ckeditorInstance)\n /**\n\t* A DOM element used to create the editor (e.g.\n\t* {@link module:editor-inline/inlineeditor~InlineEditor.create `InlineEditor.create()`})\n\t* has already been used to create another editor instance. Make sure each editor is\n\t* created with a unique DOM element.\n\t*\n\t* @error editor-source-element-already-used\n\t* @param {HTMLElement} element DOM element that caused the collision.\n\t*/\n\tthrow new CKEditorError(\"editor-source-element-already-used\", editor);\n\tsourceElement.ckeditorInstance = editor;\n\teditor.once(\"destroy\", () => {\n\t\tdelete sourceElement.ckeditorInstance;\n\t});\n}\n\n/**\n* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.\n* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options\n*/\nconst CONFIG_FIELDS_AS_ROOT_ATTRIBUTES = [[\"description\", \"$description\"], [\"title\", \"$title\"]];\n/**\n* Registers and initializes root attributes from the editor configuration:\n*\n* * the attributes from\n* {@link module:core/editor/editorconfig~RootConfig#modelAttributes `config.root(s).<rootName>.modelAttributes`}, and\n* * the {@link module:core/editor/editorconfig~RootConfig#description `description`} and\n* {@link module:core/editor/editorconfig~RootConfig#title `title`} fields, stored as the `$description` and `$title`\n* root attributes respectively.\n*\n* @internal\n*/\nfunction registerAndInitializeRootConfigAttributes(editor) {\n\tconst rootsConfig = editor.config.get(\"roots\");\n\tfor (const [rootName, rootConfig] of Object.entries(rootsConfig)) {\n\t\tlet modelAttributes = null;\n\t\tfor (const [configField, attributeKey] of CONFIG_FIELDS_AS_ROOT_ATTRIBUTES) {\n\t\t\tif (rootConfig[configField] == null || rootConfig.modelAttributes && attributeKey in rootConfig.modelAttributes) continue;\n\t\t\tmodelAttributes = modelAttributes || { ...rootConfig.modelAttributes };\n\t\t\tmodelAttributes[attributeKey] = rootConfig[configField];\n\t\t}\n\t\tif (modelAttributes) editor.config.set(`roots.${rootName}.modelAttributes`, modelAttributes);\n\t}\n\tconst normalizedRootsConfig = editor.config.get(\"roots\");\n\tlet hasRootAttributes = false;\n\tfor (const rootConfig of Object.values(normalizedRootsConfig)) for (const key of Object.keys(rootConfig.modelAttributes || {})) {\n\t\teditor.registerRootAttribute(key);\n\t\thasRootAttributes = true;\n\t}\n\tif (!hasRootAttributes) return;\n\teditor.data.once(\"init\", () => {\n\t\teditor.model.enqueueChange({ isUndoable: false }, (writer) => {\n\t\t\tfor (const [rootName, rootConfig] of Object.entries(normalizedRootsConfig)) {\n\t\t\t\tconst root = editor.model.document.getRoot(rootName);\n\t\t\t\tif (!root) continue;\n\t\t\t\tfor (const [key, value] of Object.entries(rootConfig.modelAttributes || {})) if (value !== null) writer.setAttribute(key, value, root);\n\t\t\t}\n\t\t});\n\t});\n}\n\n/**\n* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.\n* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options\n*/\n/**\n* Normalizes the editor roots configuration. It ensures that all root configurations are defined in `config.roots`\n* and that they have `initialData` defined.\n*\n* It normalizes a single-root configuration (where `config.root` is used) to a multi-root configuration\n* (where all roots are defined in `config.roots`). This is considered a standard configuration format,\n* so the editor features can always expect roots to be defined in `config.roots`.\n*\n* It also handles legacy configuration options, such as `config.initialData`, `config.placeholder`, and `config.label`.\n*\n* @internal\n*/\nfunction normalizeRootsConfig(sourceElementsOrData, config, defaultRootName = \"main\", separateAttachTo = false) {\n\tconst mainRootConfig = config.get(\"root\");\n\tconst rootsConfig = config.get(\"roots\") || Object.create(null);\n\tif (!isPlainObject(rootsConfig))\n /**\n\t* The {@link module:core/editor/editorconfig~EditorConfig#roots `config.roots`} option\n\t* must be a plain object (an object literal or `Object.create( null )`). Objects with a\n\t* custom prototype (e.g. created via `Object.create( someProto )`) or class instances\n\t* are not accepted, because internal configuration processing relies on a known\n\t* prototype chain to detect nested configuration objects.\n\t*\n\t* Replace the value with a plain object before passing it to the editor:\n\t*\n\t* ```ts\n\t* // Wrong\n\t* MultiRootEditor.create( {\n\t* roots: Object.assign( Object.create( {} ), { intro: { ... } } )\n\t* } );\n\t*\n\t* // Right\n\t* MultiRootEditor.create( {\n\t* roots: { intro: { ... } }\n\t* } );\n\t* ```\n\t*\n\t* @error editor-create-roots-not-plain-object\n\t*/\n\tthrow new CKEditorError(\"editor-create-roots-not-plain-object\", null);\n\tif (mainRootConfig) {\n\t\tif (!defaultRootName)\n /**\n\t\t* The {@link module:core/editor/editorconfig~EditorConfig#root `config.root`} option is designed\n\t\t* for single-root editors and cannot be used with the\n\t\t* {@link module:editor-multi-root/multirooteditor~MultiRootEditor multi-root editor}.\n\t\t*\n\t\t* To configure a multi-root editor, define each root individually using\n\t\t* {@link module:core/editor/editorconfig~EditorConfig#roots `config.roots`}:\n\t\t*\n\t\t* ```ts\n\t\t* MultiRootEditor.create( {\n\t\t* \troots: {\n\t\t* \t\theader: { initialData: '<p>Header</p>' },\n\t\t* \t\tcontent: { initialData: '<p>Content</p>' }\n\t\t* \t}\n\t\t* } );\n\t\t* ```\n\t\t*\n\t\t* @error editor-create-multi-root-with-main\n\t\t*/\n\t\tthrow new CKEditorError(\"editor-create-multi-root-with-main\", null);\n\t\telse if (defaultRootName in rootsConfig)\n /**\n\t\t* Both {@link module:core/editor/editorconfig~EditorConfig#root `config.root`} and\n\t\t* `config.roots.main` are set, but they both configure the same default editing root,\n\t\t* which creates an ambiguity. Use one or the other:\n\t\t*\n\t\t* * {@link module:core/editor/editorconfig~EditorConfig#root `config.root`} for a single-root editor.\n\t\t* * {@link module:core/editor/editorconfig~EditorConfig#roots `config.roots`} when defining\n\t\t* multiple roots.\n\t\t*\n\t\t* @error editor-create-roots-with-main\n\t\t*/\n\t\tthrow new CKEditorError(\"editor-create-roots-with-main\", null);\n\t}\n\tif (defaultRootName && !rootsConfig[defaultRootName]) rootsConfig[defaultRootName] = mainRootConfig || Object.create(null);\n\tconst sourceElementIsPlainObject = isSourceElementsOrDataRecord(sourceElementsOrData);\n\tconst legacyInitialData = getLegacyInitialData(config, sourceElementIsPlainObject, defaultRootName);\n\tconst rootNames = Array.from(/* @__PURE__ */ new Set([\n\t\t...sourceElementIsPlainObject ? Object.keys(sourceElementsOrData) : [],\n\t\t...Object.keys(rootsConfig),\n\t\t...Object.keys(legacyInitialData)\n\t]));\n\tfor (const rootName of rootNames) {\n\t\tconst rootConfig = rootsConfig[rootName] || Object.create(null);\n\t\tconst sourceElementOrDataForRoot = sourceElementIsPlainObject ? sourceElementsOrData[rootName] : sourceElementsOrData;\n\t\tif (!separateAttachTo && isElement$1(sourceElementOrDataForRoot)) {\n\t\t\tif (rootConfig.element)\n /**\n\t\t\t* The root element is specified both as the first argument of the editor `create()` method\n\t\t\t* (e.g. {@link module:editor-inline/inlineeditor~InlineEditor.create `InlineEditor.create()`} or\n\t\t\t* {@link module:editor-multi-root/multirooteditor~MultiRootEditor.create `MultiRootEditor.create()`})\n\t\t\t* and in {@link module:core/editor/editorconfig~RootConfig#element `config.root.element`}\n\t\t\t* (or `config.roots.<rootName>.element` for the\n\t\t\t* {@link module:editor-multi-root/multirooteditor~MultiRootEditor multi-root editor}).\n\t\t\t*\n\t\t\t* Passing the element as the first argument is deprecated. Remove it and use\n\t\t\t* {@link module:core/editor/editorconfig~RootConfig#element `config.root.element`}\n\t\t\t* (or `config.roots.<rootName>.element` for the multi-root editor) instead.\n\t\t\t*\n\t\t\t* @error editor-create-root-element-overspecified\n\t\t\t*/\n\t\t\tthrow new CKEditorError(\"editor-create-root-element-overspecified\", null);\n\t\t\trootConfig.element = sourceElementOrDataForRoot;\n\t\t}\n\t\tif (separateAttachTo && isElement$1(rootConfig.element)) {\n\t\t\t/**\n\t\t\t* The {@link module:editor-classic/classiceditor~ClassicEditor} cannot use an existing DOM element as\n\t\t\t* {@link module:core/editor/editorconfig~RootConfig#element `config.root.element`} because the classic\n\t\t\t* editor replaces the source element with its own UI rather than editing inline within it. The passed\n\t\t\t* element is ignored along with its content, so any markup inside it will not be used as the editor's\n\t\t\t* initial data. Use {@link module:core/editor/editorconfig~EditorConfig#attachTo `config.attachTo`}\n\t\t\t* to specify the DOM element the editor should replace, or pass the initial data via\n\t\t\t* {@link module:core/editor/editorconfig~RootConfig#initialData `config.root.initialData`}.\n\t\t\t*\n\t\t\t* A tag name string (e.g. `'h1'`) or a\n\t\t\t* {@link module:core/editor/editorconfig~ViewRootElementDefinition view root element definition} are still\n\t\t\t* accepted - they describe the editable root element the classic editor creates inside its UI box.\n\t\t\t*\n\t\t\t* @error editor-create-root-element-not-supported\n\t\t\t*/\n\t\t\tlogWarning(\"editor-create-root-element-not-supported\");\n\t\t\trootConfig.element = void 0;\n\t\t}\n\t\tif (rootConfig.initialData === void 0) if (legacyInitialData[rootName] === void 0) {\n\t\t\tconst rootConfigElement = isElement$1(rootConfig.element) ? rootConfig.element : void 0;\n\t\t\trootConfig.initialData = getInitialData(sourceElementOrDataForRoot || rootConfigElement || separateAttachTo && config.get(\"attachTo\") || \"\");\n\t\t} else if (sourceElementOrDataForRoot && !isElement$1(sourceElementOrDataForRoot))\n /**\n\t\t* The initial data is specified both as the first argument of the editor `create()` method\n\t\t* (e.g. {@link module:editor-inline/inlineeditor~InlineEditor.create `InlineEditor.create()`} or\n\t\t* {@link module:editor-multi-root/multirooteditor~MultiRootEditor.create `MultiRootEditor.create()`})\n\t\t* and in the deprecated {@link module:core/editor/editorconfig~EditorConfig#initialData `config.initialData`}.\n\t\t*\n\t\t* Passing initial data as the first argument is deprecated. Remove it and use\n\t\t* {@link module:core/editor/editorconfig~RootConfig#initialData `config.root.initialData`}\n\t\t* (or `config.roots.<rootName>.initialData` for the multi-root editor) instead.\n\t\t*\n\t\t* @error editor-create-initial-data-overspecified\n\t\t*/\n\t\tthrow new CKEditorError(\"editor-create-initial-data-overspecified\", null);\n\t\telse rootConfig.initialData = legacyInitialData[rootName];\n\t\telse if (sourceElementOrDataForRoot && !isElement$1(sourceElementOrDataForRoot))\n /**\n\t\t* The initial data is specified both as the first argument of the editor `create()` method\n\t\t* (e.g. {@link module:editor-inline/inlineeditor~InlineEditor.create `InlineEditor.create()`} or\n\t\t* {@link module:editor-multi-root/multirooteditor~MultiRootEditor.create `MultiRootEditor.create()`})\n\t\t* and in {@link module:core/editor/editorconfig~RootConfig#initialData `config.root.initialData`}\n\t\t* (or `config.roots.<rootName>.initialData` for the multi-root editor).\n\t\t*\n\t\t* Passing initial data as the first argument is deprecated. Remove it and use\n\t\t* {@link module:core/editor/editorconfig~RootConfig#initialData `config.root.initialData`}\n\t\t* (or `config.roots.<rootName>.initialData` for the multi-root editor) instead.\n\t\t*\n\t\t* @error editor-create-root-initial-data-overspecified\n\t\t*/\n\t\tthrow new CKEditorError(\"editor-create-root-initial-data-overspecified\", null);\n\t\telse if (legacyInitialData[rootName] !== void 0)\n /**\n\t\t* The initial data is specified both in\n\t\t* {@link module:core/editor/editorconfig~RootConfig#initialData `config.root.initialData`}\n\t\t* (or `config.roots.<rootName>.initialData` for the multi-root editor) and in the deprecated\n\t\t* {@link module:core/editor/editorconfig~EditorConfig#initialData `config.initialData`}.\n\t\t*\n\t\t* The `config.initialData` option is deprecated. Remove it and use\n\t\t* {@link module:core/editor/editorconfig~RootConfig#initialData `config.root.initialData`}\n\t\t* (or `config.roots.<rootName>.initialData` for the multi-root editor) instead.\n\t\t*\n\t\t* @error editor-create-legacy-initial-data-overspecified\n\t\t*/\n\t\tthrow new CKEditorError(\"editor-create-legacy-initial-data-overspecified\", null);\n\t\trootConfig.placeholder ??= getLegacyPlainConfigValue(config, \"placeholder\", rootName);\n\t\trootConfig.label ??= getLegacyPlainConfigValue(config, \"label\", rootName);\n\t\trootConfig.modelElement ||= \"$root\";\n\t\trootConfig.element = normalizeViewRootElementDefinition(rootConfig.element);\n\t\trootsConfig[rootName] = rootConfig;\n\t}\n\tif (separateAttachTo && isElement$1(sourceElementsOrData)) {\n\t\tif (config.get(\"attachTo\"))\n /**\n\t\t* The element to attach the editor to is specified both as the first argument of\n\t\t* {@link module:editor-classic/classiceditor~ClassicEditor.create `ClassicEditor.create()`}\n\t\t* and in {@link module:core/editor/editorconfig~EditorConfig#attachTo `config.attachTo`}.\n\t\t*\n\t\t* Passing the element as the first argument is deprecated. Remove it and use\n\t\t* {@link module:core/editor/editorconfig~EditorConfig#attachTo `config.attachTo`} instead.\n\t\t*\n\t\t* @error editor-create-attachto-overspecified\n\t\t*/\n\t\tthrow new CKEditorError(\"editor-create-attachto-overspecified\", null);\n\t\tconfig.set(\"attachTo\", sourceElementsOrData);\n\t}\n\tif (!separateAttachTo && config.get(\"attachTo\"))\n /**\n\t* The {@link module:core/editor/editorconfig~EditorConfig#attachTo `config.attachTo`} option is only\n\t* available for the {@link module:editor-classic/classiceditor~ClassicEditor} because it replaces the\n\t* given DOM element with its own UI. Other editor types (e.g. inline, balloon, decoupled) render inside\n\t* the root element directly, so `config.attachTo` is not applicable.\n\t*\n\t* Remove the `attachTo` option from the editor configuration and use\n\t* {@link module:core/editor/editorconfig~RootConfig#element `config.root.element`}\n\t* (or `config.roots.<rootName>.element` for the multi-root editor) to specify the DOM element instead.\n\t*\n\t* @error editor-create-attachto-ignored\n\t*/\n\tthrow new CKEditorError(\"editor-create-attachto-ignored\", null);\n\tconfig.set(\"roots\", rootsConfig);\n}\n/**\n* Normalizes the parameters passed to the editor constructor when a single root is used. It supports both of the following signatures:\n*\n* ```ts\n* new Editor( editorConfig: EditorConfig );\n* new Editor( sourceElementOrData: HTMLElement | string, editorConfig: EditorConfig );\n* ```\n*\n* @internal\n*/\nfunction normalizeSingleRootEditorConstructorParams(sourceElementOrDataOrConfig, editorConfig) {\n\tif (typeof sourceElementOrDataOrConfig === \"string\" || isElement$1(sourceElementOrDataOrConfig) || editorConfig && Object.keys(editorConfig).length) return {\n\t\tsourceElementOrData: sourceElementOrDataOrConfig,\n\t\teditorConfig\n\t};\n\telse return {\n\t\tsourceElementOrData: \"\",\n\t\teditorConfig: sourceElementOrDataOrConfig\n\t};\n}\n/**\n* Normalizes the parameters passed to the editor constructor when a multi root is used. It supports both of the following signatures:\n*\n* ```ts\n* new Editor( editorConfig: EditorConfig );\n* new Editor( sourceElementsOrData: Record<string, string> | Record<string, HTMLElement>, editorConfig: EditorConfig );\n* ```\n*\n* @internal\n*/\nfunction normalizeMultiRootEditorConstructorParams(sourceElementOrDataOrConfig, editorConfig) {\n\tif (editorConfig && Object.keys(editorConfig).length || Object.keys(sourceElementOrDataOrConfig).length == 0 || Object.values(sourceElementOrDataOrConfig).every((value) => typeof value === \"string\" || isElement$1(value))) return {\n\t\tsourceElementsOrData: sourceElementOrDataOrConfig,\n\t\teditorConfig\n\t};\n\telse return {\n\t\tsourceElementsOrData: {},\n\t\teditorConfig: sourceElementOrDataOrConfig\n\t};\n}\n/**\n* Type guard to check if the provided value is a plain object containing source elements or data.\n*/\nfunction isSourceElementsOrDataRecord(sourceElementsOrData) {\n\treturn !!sourceElementsOrData && typeof sourceElementsOrData == \"object\" && !Array.isArray(sourceElementsOrData) && !isElement$1(sourceElementsOrData);\n}\n/**\n* Retrieve data from source element or return the string data as is.\n*/\nfunction getInitialData(sourceElementOrData) {\n\treturn isElement$1(sourceElementOrData) ? getDataFromElement(sourceElementOrData) : sourceElementOrData;\n}\n/**\n* Retrieve legacy configuration value for `initialData` from the config.\n* Normalize single-root config so returned value is always an object with root names as keys.\n*/\nfunction getLegacyInitialData(config, sourceElementIsObject, defaultRootName) {\n\treturn sourceElementIsObject || !defaultRootName ? config.get(\"initialData\") || Object.create(null) : { [defaultRootName]: config.get(\"initialData\") };\n}\n/**\n* Retrieve legacy configuration value for `placeholder` or `label` from the config for a specific root.\n*/\nfunction getLegacyPlainConfigValue(config, key, rootName) {\n\tconst legacyValue = config.get(key);\n\tif (legacyValue) return typeof legacyValue == \"string\" ? legacyValue : legacyValue[rootName];\n}\n/**\n* Normalizes the value passed in {@link module:core/editor/editorconfig~RootConfig#element `config.root.element`} into a\n* canonical form (`HTMLElement` or {@link module:core/editor/editorconfig~ViewRootElementDefinition}) that the UI layer\n* can consume directly.\n*\n* Accepts:\n*\n* * an existing `HTMLElement` - returned as is, so the editor wraps it in place,\n* * a tag name string (e.g. `'h1'`) - turned into `{ name: 'h1' }`,\n* * a {@link module:core/editor/editorconfig~ViewRootElementDefinition} object - reshaped so `classes` becomes an\n* array and `attributes.class` is lifted into it.\n*\n* The `class` attribute may be passed either as the dedicated `classes` field (string or array of strings) or as a\n* `class` key inside `attributes`. They are concatenated. The `style` attribute may be passed either as the `styles`\n* object or as a `style` string inside `attributes`. When both are provided, the object form takes precedence and a\n* warning is logged.\n*\n* The `<textarea>` tag name is rejected as it cannot host a rich-text editable.\n*\n* Already used internally by {@link ~normalizeRootsConfig `normalizeRootsConfig()`} for `config.root.element` /\n* `config.roots.*.element`. Exported for callers that bypass the regular config-normalization pass, e.g.\n* {@link module:editor-multi-root/multirooteditor~MultiRootEditor#addRoot `MultiRootEditor.addRoot()`}\n* and {@link module:editor-multi-root/multirooteditor~MultiRootEditor#createEditable `MultiRootEditor.createEditable()`}.\n*\n* @internal\n*/\nfunction normalizeViewRootElementDefinition(spec) {\n\tif (spec == null) return;\n\tif (isElement$1(spec)) {\n\t\tassertAllowedTagName(spec.tagName);\n\t\treturn spec;\n\t}\n\tif (typeof spec === \"string\") {\n\t\tassertAllowedTagName(spec);\n\t\treturn { name: spec };\n\t}\n\tconst { name, classes, styles, attributes } = spec;\n\tif (name !== void 0) assertAllowedTagName(name);\n\tconst { class: attrClass, style: attrStyle, ...restAttributes } = attributes || {};\n\tconst hadAttrClass = !!attributes && \"class\" in attributes;\n\tconst hasStyles = !!styles && Object.keys(styles).length > 0;\n\tconst stylesOverrode = hasStyles && !!attrStyle;\n\tif (stylesOverrode)\n /**\n\t* Both the {@link module:core/editor/editorconfig~ViewRootElementDefinition#styles `styles`} object\n\t* and the {@link module:core/editor/editorconfig~ViewRootElementDefinition#attributes `attributes.style`}\n\t* string were provided in {@link module:core/editor/editorconfig~RootConfig#element `config.root.element`}.\n\t* Provide one or the other - the object form takes precedence.\n\t*\n\t* @error editor-root-element-styles-overspecified\n\t*/\n\tlogWarning(\"editor-root-element-styles-overspecified\");\n\tconst normalizedClasses = [...tokenizeClasses(classes), ...tokenizeClasses(attrClass)];\n\tconst normalizedAttributes = { ...restAttributes };\n\tif (hadAttrClass) normalizedAttributes.class = \"\";\n\tif (stylesOverrode) normalizedAttributes.style = \"\";\n\telse if (attrStyle) normalizedAttributes.style = attrStyle;\n\treturn {\n\t\t...name !== void 0 && { name },\n\t\t...normalizedClasses.length && { classes: normalizedClasses },\n\t\t...hasStyles && { styles },\n\t\t...Object.keys(normalizedAttributes).length && { attributes: normalizedAttributes }\n\t};\n}\n/**\n* Splits a class value (string, array of strings, or `undefined`) into individual class tokens.\n* Whitespace-separated tokens within a single string are split into separate array entries and empty entries are dropped.\n*/\nfunction tokenizeClasses(value) {\n\tif (!value) return [];\n\treturn toArray(value).flatMap((token) => token.split(/\\s+/)).filter(Boolean);\n}\n/**\n* Throws when the given value cannot be used as an editable root tag name.\n*\n* Rejects values that are not a valid HTML tag name (non-strings, empty strings, names with whitespace,\n* angle brackets, slashes, or other invalid characters) with `editor-wrong-element-name`.\n*\n* Also rejects the `<textarea>` and `<input>` tags with `editor-wrong-element` - they are form fields\n* and cannot contain other HTML elements, so the editor cannot render rich-text content inside them.\n*\n* To fix the error, use a tag that can contain other elements - for example `'div'`, `'section'`, `'article'`,\n* or a heading like `'h1'`. You can also omit the `name` field to use the default `'div'`.\n*/\nfunction assertAllowedTagName(name) {\n\tif (typeof name !== \"string\" || !/^[A-Za-z][A-Za-z0-9_-]*$/.test(name))\n /**\n\t* The value supplied as the editable root tag name in\n\t* {@link module:core/editor/editorconfig~RootConfig#element `config.root.element`} or\n\t* `config.roots.<rootName>.element` is not a valid HTML tag name.\n\t*\n\t* Valid HTML tag names start with a letter and contain only letters, digits, hyphens, or underscores\n\t* (e.g. `'div'`, `'h1'`, `'my-element'`; uppercase variants such as `'DIV'` and `'H1'` are also accepted).\n\t* Whitespace, angle brackets, slashes, empty strings, and non-string values are not allowed.\n\t*\n\t* @error editor-wrong-element-name\n\t*/\n\tthrow new CKEditorError(\"editor-wrong-element-name\", null, { name });\n\tif ([\"textarea\", \"input\"].includes(name.toLowerCase()))\n /**\n\t* The DOM tag name specified in {@link module:core/editor/editorconfig~RootConfig#element `config.root.element`}\n\t* cannot be used as an editor's editable root. The `<textarea>` and `<input>` elements are form fields and\n\t* cannot contain other HTML elements, so the editor cannot render rich-text content inside them.\n\t*\n\t* To fix the error, use a tag that can contain other elements - for example `'div'`, `'section'`, `'article'`,\n\t* or a heading like `'h1'`. You can also omit the `name` field to use the default `'div'`.\n\t*\n\t* @error editor-wrong-element\n\t*/\n\tthrow new CKEditorError(\"editor-wrong-element\", null);\n}\n/**\n* An alias for `isElement` from `es-toolkit/compat` with additional type guard.\n*/\nfunction isElement$1(value) {\n\treturn isElement(value);\n}\n\n/**\n* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.\n* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options\n*/\n/**\n* @module core/editor/utils/verifyrootelements\n*/\n/**\n* Verifies that all model root elements are registered in the schema as limit elements.\n*\n* @internal\n*/\nfunction verifyRootElements(editor) {\n\tconst schema = editor.model.schema;\n\tconst document = editor.model.document;\n\tfor (const root of document.roots) {\n\t\tif (root === document.graveyard || !root.isAttached()) continue;\n\t\tif (!schema.isLimit(root))\n /**\n\t\t* The model root element must be a {@link module:engine/model/schema~ModelSchemaItemDefinition#isLimit limit element}.\n\t\t* The element name specified in\n\t\t* {@link module:core/editor/editorconfig~RootConfig#modelElement `config.root.modelElement`}\n\t\t* (or `config.roots.<rootName>.modelElement`) must be registered in the schema\n\t\t* with `isLimit` set to `true`.\n\t\t*\n\t\t* @error editor-root-element-is-not-limit\n\t\t* @param rootName The name of the root that uses a non-limit element.\n\t\t* @param elementName The name of the model element used for the root.\n\t\t*/\n\t\tthrow new CKEditorError(\"editor-root-element-is-not-limit\", null, {\n\t\t\trootName: root.rootName,\n\t\t\telementName: root.name\n\t\t});\n\t}\n}\n\n/**\n* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.\n* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options\n*/\n/**\n* Returns whether the model root with the given name accepts `$block` children according to the editor's schema.\n*\n* Call this once the plugin initialization phase is finished — typically during UI init or right after creating\n* a new editable — so the schema reflects any plugin-registered root types or additional content rules.\n*\n* @internal\n*/\nfunction rootAcceptsBlocks(editor, rootName) {\n\tconst root = editor.model.document.getRoot(rootName);\n\treturn editor.model.schema.checkChild(root, \"$block\");\n}\n\n/**\n* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.\n* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options\n*/\n/**\n* @module core/pendingactions\n*/\n/**\n* The list of pending editor actions.\n*\n* This plugin should be used to synchronise plugins that execute long-lasting actions\n* (e.g. file upload) with the editor integration. It gives the developer who integrates the editor\n* an easy way to check if there are any actions pending whenever such information is needed.\n* All plugins that register a pending action also provide a message about the action that is ongoing\n* which can be displayed to the user. This lets them decide if they want to interrupt the action or wait.\n*\n* Adding and updating a pending action:\n*\n* ```ts\n* const pendingActions = editor.plugins.get( 'PendingActions' );\n* const action = pendingActions.add( 'Upload in progress: 0%.' );\n*\n* // You can update the message:\n* action.message = 'Upload in progress: 10%.';\n* ```\n*\n* Removing a pending action:\n*\n* ```ts\n* const pendingActions = editor.plugins.get( 'PendingActions' );\n* const action = pendingActions.add( 'Unsaved changes.' );\n*\n* pendingActions.remove( action );\n* ```\n*\n* Getting pending actions:\n*\n* ```ts\n* const pendingActions = editor.plugins.get( 'PendingActions' );\n*\n* const action1 = pendingActions.add( 'Action 1' );\n* const action2 = pendingActions.add( 'Action 2' );\n*\n* pendingActions.first; // Returns action1\n* Array.from( pendingActions ); // Returns [ action1, action2 ]\n* ```\n*\n* This plugin is used by features like {@link module:upload/filerepository~FileRepository} to register their ongoing actions\n* and by features like {@link module:autosave/autosave~Autosave} to detect whether there are any ongoing actions.\n* Read more about saving the data in the\n* {@glink getting-started/setup/getting-and-setting-data Saving and getting data} guide.\n*/\nvar PendingActions = class extends ContextPlugin {\n\t/**\n\t* A list of pending actions.\n\t*/\n\t_actions;\n\t/**\n\t* @inheritDoc\n\t*/\n\tstatic get pluginName() {\n\t\treturn \"PendingActions\";\n\t}\n\t/**\n\t* @inheritDoc\n\t*/\n\tstatic get isOfficialPlugin() {\n\t\treturn true;\n\t}\n\t/**\n\t* @inheritDoc\n\t*/\n\tinit() {\n\t\tthis.set(\"hasAny\", false);\n\t\tthis._actions = new Collection({ idProperty: \"_id\" });\n\t\tthis._actions.delegate(\"add\", \"remove\").to(this);\n\t}\n\t/**\n\t* Adds an action to the list of pending actions.\n\t*\n\t* This method returns an action object with an observable message property.\n\t* The action object can be later used in the {@link #remove} method. It also allows you to change the message.\n\t*\n\t* @param message The action message.\n\t* @returns An observable object that represents a pending action.\n\t*/\n\tadd(message) {\n\t\tif (typeof message !== \"string\")\n /**\n\t\t* The message must be a string.\n\t\t*\n\t\t* @error pendingactions-add-invalid-message\n\t\t*/\n\t\tthrow new CKEditorError(\"pendingactions-add-invalid-message\", this);\n\t\tconst action = new (ObservableMixin())();\n\t\taction.set(\"message\", message);\n\t\tthis._actions.add(action);\n\t\tthis.hasAny = true;\n\t\treturn action;\n\t}\n\t/**\n\t* Removes an action from the list of pending actions.\n\t*\n\t* @param action An action object.\n\t*/\n\tremove(action) {\n\t\tthis._actions.remove(action);\n\t\tthis.hasAny = !!this._actions.length;\n\t}\n\t/**\n\t* Returns the first action from the list or null if the list is empty\n\t*\n\t* @returns The pending action object.\n\t*/\n\tget first() {\n\t\treturn this._actions.get(0);\n\t}\n\t/**\n\t* Iterable interface.\n\t*/\n\t[Symbol.iterator]() {\n\t\treturn this._actions[Symbol.iterator]();\n\t}\n};\n\n/**\n* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.\n* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options\n*/\n\nexport { Accessibility, Command, CommandCollection, Context, ContextPlugin, EditingKeystrokeHandler, Editor, ElementApiMixin, MultiCommand, PendingActions, Plugin, PluginCollection, DEFAULT_GROUP_ID as _DEFAULT_ACCESSIBILITY_GROUP_ID, getEditorUsageData as _getEditorUsageData, attachToForm, normalizeMultiRootEditorConstructorParams, normalizeRootsConfig, normalizeSingleRootEditorConstructorParams, normalizeViewRootElementDefinition, registerAndInitializeRootConfigAttributes, rootAcceptsBlocks, secureSourceElement, verifyRootElements };\n//# sourceMappingURL=index.js.map"],"names":["PluginBase","ObservableMixin","Plugin","editor","__publicField","id","forceDisable$1","evt","CommandBase","Command","selection","canEditAtSelection","affectsData","forceDisable","args","CommandCollection","commandName","command","commandParams","CKEditorError","PluginCollectionBase","EmitterMixin","PluginCollection","context","availablePlugins","contextPlugins","PluginConstructor","pluginInstance","entry","key","plugin","pluginName","plugins","pluginsToRemove","pluginsSubstitutions","that","findAvailablePluginConstructors","validatePlugins","pluginConstructors","getPluginConstructors","isPluginRemoved","substitutePlugins","pluginInstances","loadPlugins","initPlugins","isPluginConstructor","isContextPlugin","removedPlugin","getPluginName","processed","result","parentPluginConstructor","checkPluginConstructor","checkMissingPlugin","checkContextPlugin","checkRemovedPlugin","method","promise","pluginItem","pluginToReplace","indexInPluginConstructors","promises","Context","_a","config","translations","rest","Config","languageConfig","Locale","Collection","isContextOwner","name","resolve","EditingKeystrokeHandler","KeystrokeHandler","keystroke","callback","options","evtData","cancel","DEFAULT_CATEGORY_ID","DEFAULT_GROUP_ID","Accessibility","isMenuBarVisible","t","navigationKeystrokes","label","description","groups","group","categoryId","keystrokes","category","groupId","getEditorUsageData","getSessionId","getPageSessionID","getEditorType","getPluginsUsageData","getDistributionUsageData","getEnvUsageData","getToolbarUsageData","collection","isOfficialPlugin","isPremiumPlugin","toolbarConfig","normalizedToolbar","flattenToolbarConfigNames","extractToolbarConfigItemsNames","stripToolbarSeparatorItems","items","item","os","browser","env","uid","global","EditorBase","Editor","constructor","defaultTranslations","defaultConfig","language","checkLicenseKeyIsDefined","Model","stylesProcessor","StylesProcessor","DataController","EditingController","Conversion","verifyLicenseKey","licenseKey","distributionChannel","blockEditor","reason","hasAllRequiredFields","licensePayload","field","getCrcInputData","checkLicensedHosts","licensedHosts","hostname","segments","host","octets","segment","index","warnAboutNonProductionLicenseKey","licenseType","capitalizedLicenseType","article","decodeLicenseKey","toArray","crc32","releaseDate","timerId","request","collectUsageData","response","status","message","logError","value","lockId","data","removePlugins","extraPlugins","loadedPlugins","checkPluginsAllowedByLicenseKey","decodedPayload","disallowedPlugin","pluginConstructor","isFeatureBlockedByLicenseKey","err","rootName","root","rootAttributes","gluePluginName","containsGluePlugin","endpoint","headers","EditorWatchdog","ContextWatchdog","collectedData","setUsageData","path","get","set","attachToForm","isFunction","sourceElement","isTextArea","originalSubmit","form","onSubmit","ElementApiMixin","base","Mixin","shouldUpdateSourceElement","isSourceElementTextArea","setDataInElement","dataToSet","CONFIG_FIELDS_AS_ROOT_ATTRIBUTES","registerAndInitializeRootConfigAttributes","rootsConfig","rootConfig","modelAttributes","configField","attributeKey","normalizedRootsConfig","hasRootAttributes","writer","normalizeRootsConfig","sourceElementsOrData","defaultRootName","separateAttachTo","mainRootConfig","isPlainObject","sourceElementIsPlainObject","isSourceElementsOrDataRecord","legacyInitialData","getLegacyInitialData","rootNames","sourceElementOrDataForRoot","isElement$1","logWarning","rootConfigElement","getInitialData","getLegacyPlainConfigValue","normalizeViewRootElementDefinition","normalizeSingleRootEditorConstructorParams","sourceElementOrDataOrConfig","editorConfig","sourceElementOrData","getDataFromElement","sourceElementIsObject","legacyValue","spec","assertAllowedTagName","classes","styles","attributes","attrClass","attrStyle","restAttributes","hadAttrClass","hasStyles","stylesOverrode","normalizedClasses","tokenizeClasses","normalizedAttributes","token","isElement","verifyRootElements","schema","document","rootAcceptsBlocks"],"mappings":";;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AASA;AAAA;AAAA;AAAA;AAOA,MAAMA,KAA6B,gBAAAC,EAAe;AAI/C,IAACC,KAAS,cAAcF,GAAW;AAAA;AAAA;AAAA;AAAA,EAoBrC,YAAYG,GAAQ;AACnB,UAAK;AATN;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAAAC,EAAA;AAIA;AAAA;AAAA;AAAA,IAAAA,EAAA,uBAAgC,oBAAI,IAAG;AAMtC,SAAK,SAASD,GACd,KAAK,IAAI,aAAa,EAAI;AAAA,EAC3B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EA2CA,cAAcE,GAAI;AACjB,SAAK,cAAc,IAAIA,CAAE,GACrB,KAAK,cAAc,QAAQ,MAC9B,KAAK,GAAG,iBAAiBC,GAAgB,EAAE,UAAU,WAAW,GAChE,KAAK,YAAY;AAAA,EAEnB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,mBAAmBD,GAAI;AACtB,SAAK,cAAc,OAAOA,CAAE,GACxB,KAAK,cAAc,QAAQ,MAC9B,KAAK,IAAI,iBAAiBC,CAAc,GACxC,KAAK,YAAY;AAAA,EAEnB;AAAA;AAAA;AAAA;AAAA,EAIA,UAAU;AACT,SAAK,cAAa;AAAA,EACnB;AAAA;AAAA;AAAA;AAAA,EAIA,WAAW,kBAAkB;AAC5B,WAAO;AA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